!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("dns-over-https")):"function"==typeof define&&define.amd?define(["dns-over-https"],e):"object"==typeof exports?exports.rtc_sdk=e(require("dns-over-https")):t.rtc_sdk=e(t["dns-over-https"])}(this,(__WEBPACK_EXTERNAL_MODULE__379__=>(()=>{var __webpack_modules__=[,(t,e,r)=>{"use strict";r.r(e),r.d(e,{customAlphabet:()=>a,customRandom:()=>s,nanoid:()=>o,random:()=>i,urlAlphabet:()=>n.urlAlphabet});var n=r(2);let i=t=>crypto.getRandomValues(new Uint8Array(t)),s=(t,e,r)=>{let n=(2<{let a="";for(;;){let e=r(i),o=i;for(;o--;)if(a+=t[e[o]&n]||"",a.length===s)return a}}},a=(t,e=21)=>s(t,e,i),o=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=n.urlAlphabet[63&r[t]];return e}},(t,e,r)=>{"use strict";r.r(e),r.d(e,{urlAlphabet:()=>n});const n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},function(t,e,r){t=r.nmd(t);var n=r(4); //! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com t.exports=function(){"use strict";var e,i;function s(){return e.apply(null,arguments)}function a(t){e=t}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function u(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(h(t,e))return!1;return!0}function d(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function f(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function m(t,e){var r,n=[],i=t.length;for(r=0;r>>0;for(e=0;e0)for(r=0;r=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var C=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},q={};function F(t,e,r,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),t&&(q[t]=i),e&&(q[e[0]]=function(){return I(i.apply(this,arguments),e[1],e[2])}),r&&(q[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function U(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function z(t){var e,r,n=t.match(C);for(e=0,r=n.length;e=0&&N.test(t);)t=t.replace(N,n),N.lastIndex=0,r-=1;return t}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function K(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()];return e||!r?e:(this._longDateFormat[t]=r.match(C).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var V="Invalid date";function Z(){return this._invalidDate}var $="%d",X=/\d{1,2}/;function Q(t){return this._ordinal.replace("%d",t)}var tt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function et(t,e,r,n){var i=this._relativeTime[r];return j(i)?i(t,e,r,n):i.replace(/%d/i,t)}function rt(t,e){var r=this._relativeTime[t>0?"future":"past"];return j(r)?r(e):r.replace(/%s/i,e)}var nt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function it(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function st(t){var e,r,n={};for(r in t)h(t,r)&&(e=it(r))&&(n[e]=t[r]);return n}var at={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ot(t){var e,r=[];for(e in t)h(t,e)&&r.push({unit:e,priority:at[e]});return r.sort((function(t,e){return t.priority-e.priority})),r}var ut,ht=/\d/,ct=/\d\d/,dt=/\d{3}/,lt=/\d{4}/,ft=/[+-]?\d{6}/,mt=/\d\d?/,pt=/\d\d\d\d?/,_t=/\d\d\d\d\d\d?/,yt=/\d{1,3}/,vt=/\d{1,4}/,gt=/[+-]?\d{1,6}/,bt=/\d+/,Mt=/[+-]?\d+/,wt=/Z|[+-]\d\d:?\d\d/gi,kt=/Z|[+-]\d\d(?::?\d\d)?/gi,Lt=/[+-]?\d+(\.\d{1,3})?/,St=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,xt=/^[1-9]\d?/,Yt=/^([1-9]\d|\d)/;function Tt(t,e,r){ut[t]=j(e)?e:function(t,n){return t&&r?r:e}}function Dt(t,e){return h(ut,t)?ut[t](e._strict,e._locale):new RegExp(Et(t))}function Et(t){return jt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,r,n,i){return e||r||n||i})))}function jt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function At(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Ot(t){var e=+t,r=0;return 0!==e&&isFinite(e)&&(r=At(e)),r}ut={};var Pt={};function Rt(t,e){var r,n,i=e;for("string"==typeof t&&(t=[t]),l(e)&&(i=function(t,r){r[e]=Ot(t)}),n=t.length,r=0;r68?1900:2e3)};var Vt,Zt=Xt("FullYear",!0);function $t(){return Ct(this.year())}function Xt(t,e){return function(r){return null!=r?(te(this,t,r),s.updateOffset(this,e),this):Qt(this,t)}}function Qt(t,e){if(!t.isValid())return NaN;var r=t._d,n=t._isUTC;switch(e){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function te(t,e,r){var n,i,s,a,o;if(t.isValid()&&!isNaN(r)){switch(n=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(i?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(i?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(i?n.setUTCHours(r):n.setHours(r));case"Date":return void(i?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}s=r,a=t.month(),o=29!==(o=t.date())||1!==a||Ct(s)?o:28,i?n.setUTCFullYear(s,a,o):n.setFullYear(s,a,o)}}function ee(t){return j(this[t=it(t)])?this[t]():this}function re(t,e){if("object"==typeof t){var r,n=ot(t=st(t)),i=n.length;for(r=0;r=0?(o=new Date(t+400,e,r,n,i,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,r,n,i,s,a),o}function Me(t){var e,r;return t<100&&t>=0?((r=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function we(t,e,r){var n=7+e-r;return-(7+Me(t,0,n).getUTCDay()-e)%7+n-1}function ke(t,e,r,n,i){var s,a,o=1+7*(e-1)+(7+r-n)%7+we(t,n,i);return o<=0?a=Kt(s=t-1)+o:o>Kt(t)?(s=t+1,a=o-Kt(t)):(s=t,a=o),{year:s,dayOfYear:a}}function Le(t,e,r){var n,i,s=we(t.year(),e,r),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?n=a+Se(i=t.year()-1,e,r):a>Se(t.year(),e,r)?(n=a-Se(t.year(),e,r),i=t.year()+1):(i=t.year(),n=a),{week:n,year:i}}function Se(t,e,r){var n=we(t,e,r),i=we(t+1,e,r);return(Kt(t)-n+i)/7}function xe(t){return Le(t,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),Tt("w",mt,xt),Tt("ww",mt,ct),Tt("W",mt,xt),Tt("WW",mt,ct),Ht(["w","ww","W","WW"],(function(t,e,r,n){e[n.substr(0,1)]=Ot(t)}));var Ye={dow:0,doy:6};function Te(){return this._week.dow}function De(){return this._week.doy}function Ee(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function je(t){var e=Le(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ae(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Oe(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Pe(t,e){return t.slice(e,7).concat(t.slice(0,e))}F("d",0,"do","day"),F("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),F("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),F("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),Tt("d",mt),Tt("e",mt),Tt("E",mt),Tt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Tt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Tt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Ht(["dd","ddd","dddd"],(function(t,e,r,n){var i=r._locale.weekdaysParse(t,n,r._strict);null!=i?e.d=i:v(r).invalidWeekday=t})),Ht(["d","e","E"],(function(t,e,r,n){e[n]=Ot(t)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ce=St,Ne=St,Be=St;function qe(t,e){var r=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Pe(r,this._week.dow):t?r[t.day()]:r}function Fe(t){return!0===t?Pe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ue(t){return!0===t?Pe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function ze(t,e,r){var n,i,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=_([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return r?"dddd"===e?-1!==(i=Vt.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Vt.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Vt.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=Vt.call(this._weekdaysParse,a))||-1!==(i=Vt.call(this._shortWeekdaysParse,a))||-1!==(i=Vt.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Vt.call(this._shortWeekdaysParse,a))||-1!==(i=Vt.call(this._weekdaysParse,a))||-1!==(i=Vt.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Vt.call(this._minWeekdaysParse,a))||-1!==(i=Vt.call(this._weekdaysParse,a))||-1!==(i=Vt.call(this._shortWeekdaysParse,a))?i:null}function We(t,e,r){var n,i,s;if(this._weekdaysParseExact)return ze.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=_([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),r&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(r&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(r&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!r&&this._weekdaysParse[n].test(t))return n}}function Je(t){if(!this.isValid())return null!=t?this:NaN;var e=Qt(this,"Day");return null!=t?(t=Ae(t,this.localeData()),this.add(t-e,"d")):e}function Ge(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ke(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Oe(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ve(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ce),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ze(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ne),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $e(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Be),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xe(){function t(t,e){return e.length-t.length}var e,r,n,i,s,a=[],o=[],u=[],h=[];for(e=0;e<7;e++)r=_([2e3,1]).day(e),n=jt(this.weekdaysMin(r,"")),i=jt(this.weekdaysShort(r,"")),s=jt(this.weekdays(r,"")),a.push(n),o.push(i),u.push(s),h.push(n),h.push(i),h.push(s);a.sort(t),o.sort(t),u.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qe(){return this.hours()%12||12}function tr(){return this.hours()||24}function er(t,e){F(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function rr(t,e){return e._meridiemParse}function nr(t){return"p"===(t+"").toLowerCase().charAt(0)}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Qe),F("k",["kk",2],0,tr),F("hmm",0,0,(function(){return""+Qe.apply(this)+I(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Qe.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),er("a",!0),er("A",!1),Tt("a",rr),Tt("A",rr),Tt("H",mt,Yt),Tt("h",mt,xt),Tt("k",mt,xt),Tt("HH",mt,ct),Tt("hh",mt,ct),Tt("kk",mt,ct),Tt("hmm",pt),Tt("hmmss",_t),Tt("Hmm",pt),Tt("Hmmss",_t),Rt(["H","HH"],Ft),Rt(["k","kk"],(function(t,e,r){var n=Ot(t);e[Ft]=24===n?0:n})),Rt(["a","A"],(function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t})),Rt(["h","hh"],(function(t,e,r){e[Ft]=Ot(t),v(r).bigHour=!0})),Rt("hmm",(function(t,e,r){var n=t.length-2;e[Ft]=Ot(t.substr(0,n)),e[Ut]=Ot(t.substr(n)),v(r).bigHour=!0})),Rt("hmmss",(function(t,e,r){var n=t.length-4,i=t.length-2;e[Ft]=Ot(t.substr(0,n)),e[Ut]=Ot(t.substr(n,2)),e[zt]=Ot(t.substr(i)),v(r).bigHour=!0})),Rt("Hmm",(function(t,e,r){var n=t.length-2;e[Ft]=Ot(t.substr(0,n)),e[Ut]=Ot(t.substr(n))})),Rt("Hmmss",(function(t,e,r){var n=t.length-4,i=t.length-2;e[Ft]=Ot(t.substr(0,n)),e[Ut]=Ot(t.substr(n,2)),e[zt]=Ot(t.substr(i))}));var ir=/[ap]\.?m?\.?/i,sr=Xt("Hours",!0);function ar(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"}var or,ur={calendar:R,longDateFormat:G,invalidDate:V,ordinal:$,dayOfMonthOrdinalParse:X,relativeTime:tt,months:se,monthsShort:ae,week:Ye,weekdays:Re,weekdaysMin:Ie,weekdaysShort:He,meridiemParse:ir},hr={},cr={};function dr(t,e){var r,n=Math.min(t.length,e.length);for(r=0;r0;){if(n=pr(i.slice(0,e).join("-")))return n;if(r&&r.length>=e&&dr(i,r)>=e-1)break;e--}s++}return or}function mr(t){return!(!t||!t.match("^[^/\\\\]*$"))}function pr(e){var n=null;if(void 0===hr[e]&&t&&t.exports&&mr(e))try{n=or._abbr,r(58)("./"+e),_r(n)}catch(t){hr[e]=null}return hr[e]}function _r(t,e){var r;return t&&((r=d(e)?gr(t):yr(t,e))?or=r:void 0!==n&&n.warn&&n.warn("Locale "+t+" not found. Did you forget to load it?")),or._abbr}function yr(t,e){if(null!==e){var r,n=ur;if(e.abbr=t,null!=hr[t])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=hr[t]._config;else if(null!=e.parentLocale)if(null!=hr[e.parentLocale])n=hr[e.parentLocale]._config;else{if(null==(r=pr(e.parentLocale)))return cr[e.parentLocale]||(cr[e.parentLocale]=[]),cr[e.parentLocale].push({name:t,config:e}),null;n=r._config}return hr[t]=new P(O(n,e)),cr[t]&&cr[t].forEach((function(t){yr(t.name,t.config)})),_r(t),hr[t]}return delete hr[t],null}function vr(t,e){if(null!=e){var r,n,i=ur;null!=hr[t]&&null!=hr[t].parentLocale?hr[t].set(O(hr[t]._config,e)):(null!=(n=pr(t))&&(i=n._config),e=O(i,e),null==n&&(e.abbr=t),(r=new P(e)).parentLocale=hr[t],hr[t]=r),_r(t)}else null!=hr[t]&&(null!=hr[t].parentLocale?(hr[t]=hr[t].parentLocale,t===_r()&&_r(t)):null!=hr[t]&&delete hr[t]);return hr[t]}function gr(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return or;if(!o(t)){if(e=pr(t))return e;t=[t]}return fr(t)}function br(){return T(hr)}function Mr(t){var e,r=t._a;return r&&-2===v(t).overflow&&(e=r[Bt]<0||r[Bt]>11?Bt:r[qt]<1||r[qt]>ie(r[Nt],r[Bt])?qt:r[Ft]<0||r[Ft]>24||24===r[Ft]&&(0!==r[Ut]||0!==r[zt]||0!==r[Wt])?Ft:r[Ut]<0||r[Ut]>59?Ut:r[zt]<0||r[zt]>59?zt:r[Wt]<0||r[Wt]>999?Wt:-1,v(t)._overflowDayOfYear&&(eqt)&&(e=qt),v(t)._overflowWeeks&&-1===e&&(e=Jt),v(t)._overflowWeekday&&-1===e&&(e=Gt),v(t).overflow=e),t}var wr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Lr=/Z|[+-]\d\d(?::?\d\d)?/,Sr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yr=/^\/?Date\((-?\d+)/i,Tr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Dr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Er(t){var e,r,n,i,s,a,o=t._i,u=wr.exec(o)||kr.exec(o),h=Sr.length,c=xr.length;if(u){for(v(t).iso=!0,e=0,r=h;eKt(s)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),r=Me(s,0,t._dayOfYear),t._a[Bt]=r.getUTCMonth(),t._a[qt]=r.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Ft]&&0===t._a[Ut]&&0===t._a[zt]&&0===t._a[Wt]&&(t._nextDay=!0,t._a[Ft]=0),t._d=(t._useUTC?Me:be).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ft]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(v(t).weekdayMismatch=!0)}}function qr(t){var e,r,n,i,s,a,o,u,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,a=4,r=Cr(e.GG,t._a[Nt],Le(Zr(),1,4).year),n=Cr(e.W,1),((i=Cr(e.E,1))<1||i>7)&&(u=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,h=Le(Zr(),s,a),r=Cr(e.gg,t._a[Nt],h.year),n=Cr(e.w,h.week),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+s,(e.e<0||e.e>6)&&(u=!0)):i=s),n<1||n>Se(r,s,a)?v(t)._overflowWeeks=!0:null!=u?v(t)._overflowWeekday=!0:(o=ke(r,n,i,s,a),t._a[Nt]=o.year,t._dayOfYear=o.dayOfYear)}function Fr(t){if(t._f!==s.ISO_8601)if(t._f!==s.RFC_2822){t._a=[],v(t).empty=!0;var e,r,n,i,a,o,u,h=""+t._i,c=h.length,d=0;for(u=(n=J(t._f,t._locale).match(C)||[]).length,e=0;e0&&v(t).unusedInput.push(a),h=h.slice(h.indexOf(r)+r.length),d+=r.length),q[i]?(r?v(t).empty=!1:v(t).unusedTokens.push(i),It(i,r,t)):t._strict&&!r&&v(t).unusedTokens.push(i);v(t).charsLeftOver=c-d,h.length>0&&v(t).unusedInput.push(h),t._a[Ft]<=12&&!0===v(t).bigHour&&t._a[Ft]>0&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[Ft]=Ur(t._locale,t._a[Ft],t._meridiem),null!==(o=v(t).era)&&(t._a[Nt]=t._locale.erasConvertYear(o,t._a[Nt])),Br(t),Mr(t)}else Hr(t);else Er(t)}function Ur(t,e,r){var n;return null==r?e:null!=t.meridiemHour?t.meridiemHour(e,r):null!=t.isPM?((n=t.isPM(r))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}function zr(t){var e,r,n,i,s,a,o=!1,u=t._f.length;if(0===u)return v(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;ithis?this:t:b()}));function Qr(t,e){var r,n;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Zr();for(r=e[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ln(){if(!d(this._isDSTShifted))return this._isDSTShifted;var t,e={};return k(e,this),(e=Gr(e))._a?(t=e._isUTC?_(e._a):Zr(e._a),this._isDSTShifted=this.isValid()&&dn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sn(){return!!this.isValid()&&!this._isUTC}function xn(){return!!this.isValid()&&this._isUTC}function Yn(){return!!this.isValid()&&this._isUTC&&0===this._offset}s.updateOffset=function(){};var Tn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function En(t,e){var r,n,i,s=t,a=null;return hn(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:l(t)||!isNaN(+t)?(s={},e?s[e]=+t:s.milliseconds=+t):(a=Tn.exec(t))?(r="-"===a[1]?-1:1,s={y:0,d:Ot(a[qt])*r,h:Ot(a[Ft])*r,m:Ot(a[Ut])*r,s:Ot(a[zt])*r,ms:Ot(cn(1e3*a[Wt]))*r}):(a=Dn.exec(t))?(r="-"===a[1]?-1:1,s={y:jn(a[2],r),M:jn(a[3],r),w:jn(a[4],r),d:jn(a[5],r),h:jn(a[6],r),m:jn(a[7],r),s:jn(a[8],r)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(i=On(Zr(s.from),Zr(s.to)),(s={}).ms=i.milliseconds,s.M=i.months),n=new un(s),hn(t)&&h(t,"_locale")&&(n._locale=t._locale),hn(t)&&h(t,"_isValid")&&(n._isValid=t._isValid),n}function jn(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function An(t,e){var r={};return r.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function On(t,e){var r;return t.isValid()&&e.isValid()?(e=pn(e,t),t.isBefore(e)?r=An(t,e):((r=An(e,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Pn(t,e){return function(r,n){var i;return null===n||isNaN(+n)||(E(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),Rn(this,En(r,n),t),this}}function Rn(t,e,r,n){var i=e._milliseconds,a=cn(e._days),o=cn(e._months);t.isValid()&&(n=null==n||n,o&&me(t,Qt(t,"Month")+o*r),a&&te(t,"Date",Qt(t,"Date")+a*r),i&&t._d.setTime(t._d.valueOf()+i*r),n&&s.updateOffset(t,a||o))}En.fn=un.prototype,En.invalid=on;var Hn=Pn(1,"add"),In=Pn(-1,"subtract");function Cn(t){return"string"==typeof t||t instanceof String}function Nn(t){return S(t)||f(t)||Cn(t)||l(t)||qn(t)||Bn(t)||null==t}function Bn(t){var e,r,n=u(t)&&!c(t),i=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=s.length;for(e=0;er.valueOf():r.valueOf()9999?W(r,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):j(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(r,"Z")):W(r,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ri(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,r,n,i="moment",s="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",n=s+'[")]',this.format(t+e+r+n)}function ni(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=W(this,t);return this.localeData().postformat(e)}function ii(t,e){return this.isValid()&&(S(t)&&t.isValid()||Zr(t).isValid())?En({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function si(t){return this.from(Zr(),t)}function ai(t,e){return this.isValid()&&(S(t)&&t.isValid()||Zr(t).isValid())?En({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function oi(t){return this.to(Zr(),t)}function ui(t){var e;return void 0===t?this._locale._abbr:(null!=(e=gr(t))&&(this._locale=e),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var hi=Y("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ci(){return this._locale}var di=1e3,li=60*di,fi=60*li,mi=3506328*fi;function pi(t,e){return(t%e+e)%e}function _i(t,e,r){return t<100&&t>=0?new Date(t+400,e,r)-mi:new Date(t,e,r).valueOf()}function yi(t,e,r){return t<100&&t>=0?Date.UTC(t+400,e,r)-mi:Date.UTC(t,e,r)}function vi(t){var e,r;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(r=this._isUTC?yi:_i,t){case"year":e=r(this.year(),0,1);break;case"quarter":e=r(this.year(),this.month()-this.month()%3,1);break;case"month":e=r(this.year(),this.month(),1);break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=r(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=pi(e+(this._isUTC?0:this.utcOffset()*li),fi);break;case"minute":e=this._d.valueOf(),e-=pi(e,li);break;case"second":e=this._d.valueOf(),e-=pi(e,di)}return this._d.setTime(e),s.updateOffset(this,!0),this}function gi(t){var e,r;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(r=this._isUTC?yi:_i,t){case"year":e=r(this.year()+1,0,1)-1;break;case"quarter":e=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=r(this.year(),this.month()+1,1)-1;break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=fi-pi(e+(this._isUTC?0:this.utcOffset()*li),fi)-1;break;case"minute":e=this._d.valueOf(),e+=li-pi(e,li)-1;break;case"second":e=this._d.valueOf(),e+=di-pi(e,di)-1}return this._d.setTime(e),s.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function Mi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function ki(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Li(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Si(){return this.isValid()?this.toISOString():null}function xi(){return g(this)}function Yi(){return p({},v(this))}function Ti(){return v(this).overflow}function Di(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ei(t,e){var r,n,i,a=this._eras||gr("en")._eras;for(r=0,n=a.length;r=0)return u[n]}function Ai(t,e){var r=t.since<=t.until?1:-1;return void 0===e?s(t.since).year():s(t.since).year()+(e-t.offset)*r}function Oi(){var t,e,r,n=this.localeData().eras();for(t=0,e=n.length;t(s=Se(t,n,i))&&(e=s),Qi.call(this,t,e,r,n,i))}function Qi(t,e,r,n,i){var s=ke(t,e,r,n,i),a=Me(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function ts(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),Tt("N",Bi),Tt("NN",Bi),Tt("NNN",Bi),Tt("NNNN",qi),Tt("NNNNN",Fi),Rt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,r,n){var i=r._locale.erasParse(t,n,r._strict);i?v(r).era=i:v(r).invalidEra=t})),Tt("y",bt),Tt("yy",bt),Tt("yyy",bt),Tt("yyyy",bt),Tt("yo",Ui),Rt(["y","yy","yyy","yyyy"],Nt),Rt(["yo"],(function(t,e,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=t.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?e[Nt]=r._locale.eraYearOrdinalParse(t,i):e[Nt]=parseInt(t,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Wi("gggg","weekYear"),Wi("ggggg","weekYear"),Wi("GGGG","isoWeekYear"),Wi("GGGGG","isoWeekYear"),Tt("G",Mt),Tt("g",Mt),Tt("GG",mt,ct),Tt("gg",mt,ct),Tt("GGGG",vt,lt),Tt("gggg",vt,lt),Tt("GGGGG",gt,ft),Tt("ggggg",gt,ft),Ht(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,r,n){e[n.substr(0,2)]=Ot(t)})),Ht(["gg","GG"],(function(t,e,r,n){e[n]=s.parseTwoDigitYear(t)})),F("Q",0,"Qo","quarter"),Tt("Q",ht),Rt("Q",(function(t,e){e[Bt]=3*(Ot(t)-1)})),F("D",["DD",2],"Do","date"),Tt("D",mt,xt),Tt("DD",mt,ct),Tt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Rt(["D","DD"],qt),Rt("Do",(function(t,e){e[qt]=Ot(t.match(mt)[0])}));var es=Xt("Date",!0);function rs(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}F("DDD",["DDDD",3],"DDDo","dayOfYear"),Tt("DDD",yt),Tt("DDDD",dt),Rt(["DDD","DDDD"],(function(t,e,r){r._dayOfYear=Ot(t)})),F("m",["mm",2],0,"minute"),Tt("m",mt,Yt),Tt("mm",mt,ct),Rt(["m","mm"],Ut);var ns=Xt("Minutes",!1);F("s",["ss",2],0,"second"),Tt("s",mt,Yt),Tt("ss",mt,ct),Rt(["s","ss"],zt);var is,ss,as=Xt("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Tt("S",yt,ht),Tt("SS",yt,ct),Tt("SSS",yt,dt),is="SSSS";is.length<=9;is+="S")Tt(is,bt);function os(t,e){e[Wt]=Ot(1e3*("0."+t))}for(is="S";is.length<=9;is+="S")Rt(is,os);function us(){return this._isUTC?"UTC":""}function hs(){return this._isUTC?"Coordinated Universal Time":""}ss=Xt("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var cs=L.prototype;function ds(t){return Zr(1e3*t)}function ls(){return Zr.apply(null,arguments).parseZone()}function fs(t){return t}cs.add=Hn,cs.calendar=zn,cs.clone=Wn,cs.diff=Xn,cs.endOf=gi,cs.format=ni,cs.from=ii,cs.fromNow=si,cs.to=ai,cs.toNow=oi,cs.get=ee,cs.invalidAt=Ti,cs.isAfter=Jn,cs.isBefore=Gn,cs.isBetween=Kn,cs.isSame=Vn,cs.isSameOrAfter=Zn,cs.isSameOrBefore=$n,cs.isValid=xi,cs.lang=hi,cs.locale=ui,cs.localeData=ci,cs.max=Xr,cs.min=$r,cs.parsingFlags=Yi,cs.set=re,cs.startOf=vi,cs.subtract=In,cs.toArray=ki,cs.toObject=Li,cs.toDate=wi,cs.toISOString=ei,cs.inspect=ri,"undefined"!=typeof Symbol&&null!=Symbol.for&&(cs[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),cs.toJSON=Si,cs.toString=ti,cs.unix=Mi,cs.valueOf=bi,cs.creationData=Di,cs.eraName=Oi,cs.eraNarrow=Pi,cs.eraAbbr=Ri,cs.eraYear=Hi,cs.year=Zt,cs.isLeapYear=$t,cs.weekYear=Ji,cs.isoWeekYear=Gi,cs.quarter=cs.quarters=ts,cs.month=pe,cs.daysInMonth=_e,cs.week=cs.weeks=Ee,cs.isoWeek=cs.isoWeeks=je,cs.weeksInYear=Zi,cs.weeksInWeekYear=$i,cs.isoWeeksInYear=Ki,cs.isoWeeksInISOWeekYear=Vi,cs.date=es,cs.day=cs.days=Je,cs.weekday=Ge,cs.isoWeekday=Ke,cs.dayOfYear=rs,cs.hour=cs.hours=sr,cs.minute=cs.minutes=ns,cs.second=cs.seconds=as,cs.millisecond=cs.milliseconds=ss,cs.utcOffset=yn,cs.utc=gn,cs.local=bn,cs.parseZone=Mn,cs.hasAlignedHourOffset=wn,cs.isDST=kn,cs.isLocal=Sn,cs.isUtcOffset=xn,cs.isUtc=Yn,cs.isUTC=Yn,cs.zoneAbbr=us,cs.zoneName=hs,cs.dates=Y("dates accessor is deprecated. Use date instead.",es),cs.months=Y("months accessor is deprecated. Use month instead",pe),cs.years=Y("years accessor is deprecated. Use year instead",Zt),cs.zone=Y("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vn),cs.isDSTShifted=Y("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ln);var ms=P.prototype;function ps(t,e,r,n){var i=gr(),s=_().set(n,e);return i[r](s,t)}function _s(t,e,r){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return ps(t,e,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=ps(t,n,r,"month");return i}function ys(t,e,r,n){"boolean"==typeof t?(l(e)&&(r=e,e=void 0),e=e||""):(r=e=t,t=!1,l(e)&&(r=e,e=void 0),e=e||"");var i,s=gr(),a=t?s._week.dow:0,o=[];if(null!=r)return ps(e,(r+a)%7,n,"day");for(i=0;i<7;i++)o[i]=ps(e,(i+a)%7,n,"day");return o}function vs(t,e){return _s(t,e,"months")}function gs(t,e){return _s(t,e,"monthsShort")}function bs(t,e,r){return ys(t,e,r,"weekdays")}function Ms(t,e,r){return ys(t,e,r,"weekdaysShort")}function ws(t,e,r){return ys(t,e,r,"weekdaysMin")}ms.calendar=H,ms.longDateFormat=K,ms.invalidDate=Z,ms.ordinal=Q,ms.preparse=fs,ms.postformat=fs,ms.relativeTime=et,ms.pastFuture=rt,ms.set=A,ms.eras=Ei,ms.erasParse=ji,ms.erasConvertYear=Ai,ms.erasAbbrRegex=Ci,ms.erasNameRegex=Ii,ms.erasNarrowRegex=Ni,ms.months=ce,ms.monthsShort=de,ms.monthsParse=fe,ms.monthsRegex=ve,ms.monthsShortRegex=ye,ms.week=xe,ms.firstDayOfYear=De,ms.firstDayOfWeek=Te,ms.weekdays=qe,ms.weekdaysMin=Ue,ms.weekdaysShort=Fe,ms.weekdaysParse=We,ms.weekdaysRegex=Ve,ms.weekdaysShortRegex=Ze,ms.weekdaysMinRegex=$e,ms.isPM=nr,ms.meridiem=ar,_r("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===Ot(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),s.lang=Y("moment.lang is deprecated. Use moment.locale instead.",_r),s.langData=Y("moment.langData is deprecated. Use moment.localeData instead.",gr);var ks=Math.abs;function Ls(){var t=this._data;return this._milliseconds=ks(this._milliseconds),this._days=ks(this._days),this._months=ks(this._months),t.milliseconds=ks(t.milliseconds),t.seconds=ks(t.seconds),t.minutes=ks(t.minutes),t.hours=ks(t.hours),t.months=ks(t.months),t.years=ks(t.years),this}function Ss(t,e,r,n){var i=En(e,r);return t._milliseconds+=n*i._milliseconds,t._days+=n*i._days,t._months+=n*i._months,t._bubble()}function xs(t,e){return Ss(this,t,e,1)}function Ys(t,e){return Ss(this,t,e,-1)}function Ts(t){return t<0?Math.floor(t):Math.ceil(t)}function Ds(){var t,e,r,n,i,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*Ts(js(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=At(s/1e3),u.seconds=t%60,e=At(t/60),u.minutes=e%60,r=At(e/60),u.hours=r%24,a+=At(r/24),o+=i=At(Es(a)),a-=Ts(js(i)),n=At(o/12),o%=12,u.days=a,u.months=o,u.years=n,this}function Es(t){return 4800*t/146097}function js(t){return 146097*t/4800}function As(t){if(!this.isValid())return NaN;var e,r,n=this._milliseconds;if("month"===(t=it(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,r=this._months+Es(e),t){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(e=this._days+Math.round(js(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}}function Os(t){return function(){return this.as(t)}}var Ps=Os("ms"),Rs=Os("s"),Hs=Os("m"),Is=Os("h"),Cs=Os("d"),Ns=Os("w"),Bs=Os("M"),qs=Os("Q"),Fs=Os("y"),Us=Ps;function zs(){return En(this)}function Ws(t){return t=it(t),this.isValid()?this[t+"s"]():NaN}function Js(t){return function(){return this.isValid()?this._data[t]:NaN}}var Gs=Js("milliseconds"),Ks=Js("seconds"),Vs=Js("minutes"),Zs=Js("hours"),$s=Js("days"),Xs=Js("months"),Qs=Js("years");function ta(){return At(this.days()/7)}var ea=Math.round,ra={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(t,e,r,n,i){return i.relativeTime(e||1,!!r,t,n)}function ia(t,e,r,n){var i=En(t).abs(),s=ea(i.as("s")),a=ea(i.as("m")),o=ea(i.as("h")),u=ea(i.as("d")),h=ea(i.as("M")),c=ea(i.as("w")),d=ea(i.as("y")),l=s<=r.ss&&["s",s]||s0,l[4]=n,na.apply(null,l)}function sa(t){return void 0===t?ea:"function"==typeof t&&(ea=t,!0)}function aa(t,e){return void 0!==ra[t]&&(void 0===e?ra[t]:(ra[t]=e,"s"===t&&(ra.ss=e-1),!0))}function oa(t,e){if(!this.isValid())return this.localeData().invalidDate();var r,n,i=!1,s=ra;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(s=Object.assign({},ra,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=ia(this,!i,s,r=this.localeData()),i&&(n=r.pastFuture(+this,n)),r.postformat(n)}var ua=Math.abs;function ha(t){return(t>0)-(t<0)||+t}function ca(){if(!this.isValid())return this.localeData().invalidDate();var t,e,r,n,i,s,a,o,u=ua(this._milliseconds)/1e3,h=ua(this._days),c=ua(this._months),d=this.asSeconds();return d?(t=At(u/60),e=At(t/60),u%=60,t%=60,r=At(c/12),c%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",s=ha(this._months)!==ha(d)?"-":"",a=ha(this._days)!==ha(d)?"-":"",o=ha(this._milliseconds)!==ha(d)?"-":"",i+"P"+(r?s+r+"Y":"")+(c?s+c+"M":"")+(h?a+h+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+n+"S":"")):"P0D"}var da=un.prototype;return da.isValid=an,da.abs=Ls,da.add=xs,da.subtract=Ys,da.as=As,da.asMilliseconds=Ps,da.asSeconds=Rs,da.asMinutes=Hs,da.asHours=Is,da.asDays=Cs,da.asWeeks=Ns,da.asMonths=Bs,da.asQuarters=qs,da.asYears=Fs,da.valueOf=Us,da._bubble=Ds,da.clone=zs,da.get=Ws,da.milliseconds=Gs,da.seconds=Ks,da.minutes=Vs,da.hours=Zs,da.days=$s,da.weeks=ta,da.months=Xs,da.years=Qs,da.humanize=oa,da.toISOString=ca,da.toString=ca,da.toJSON=ca,da.locale=ui,da.localeData=ci,da.toIsoString=Y("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),da.lang=hi,F("X",0,0,"unix"),F("x",0,0,"valueOf"),Tt("x",Mt),Tt("X",Lt),Rt("X",(function(t,e,r){r._d=new Date(1e3*parseFloat(t))})),Rt("x",(function(t,e,r){r._d=new Date(Ot(t))})), //! moment.js s.version="2.30.1",a(Zr),s.fn=cs,s.min=tn,s.max=en,s.now=rn,s.utc=_,s.unix=ds,s.months=vs,s.isDate=f,s.locale=_r,s.invalid=b,s.duration=En,s.isMoment=S,s.weekdays=bs,s.parseZone=ls,s.localeData=gr,s.isDuration=hn,s.monthsShort=gs,s.weekdaysMin=ws,s.defineLocale=yr,s.updateLocale=vr,s.locales=br,s.weekdaysShort=Ms,s.normalizeUnits=it,s.relativeTimeRounding=sa,s.relativeTimeThreshold=aa,s.calendarFormat=Un,s.prototype=cs,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s}()},(t,e,r)=>{var n=r(5),i=r(40);function s(){return(new Date).getTime()}var a,o=Array.prototype.slice,u={};a=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var h=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(t){u[t]=s()},"time"],[function(t){var e=u[t];if(!e)throw new Error("No such label: "+t);delete u[t];s()},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=n.format.apply(null,arguments),a.error(t.stack)},"trace"],[function(t){n.inspect(t)},"dir"],[function(t){if(!t){var e=o.call(arguments,1);i.ok(!1,n.format.apply(null,e))}},"assert"]],c=0;c{var n=r(6),i=r(4),s=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),o=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&e._extend(n,r),M(n.showHidden)&&(n.showHidden=!1),M(n.depth)&&(n.depth=2),M(n.colors)&&(n.colors=!1),M(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=d),f(n,t,n.depth)}function d(t,e){var r=c.styles[e];return r?"["+c.colors[r][0]+"m"+t+"["+c.colors[r][1]+"m":t}function l(t,e){return t}function f(t,r,n){if(t.customInspect&&r&&x(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return b(i)||(i=f(t,i,n)),i}var s=function(t,e){if(M(e))return t.stylize("undefined","undefined");if(b(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(g(e))return t.stylize(""+e,"number");if(y(e))return t.stylize(""+e,"boolean");if(v(e))return t.stylize("null","null")}(t,r);if(s)return s;var a=Object.keys(r),o=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return m(r);if(0===a.length){if(x(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(L(r))return t.stylize(Date.prototype.toString.call(r),"date");if(S(r))return m(r)}var h,c="",d=!1,l=["{","}"];(_(r)&&(d=!0,l=["[","]"]),x(r))&&(c=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(c=" "+RegExp.prototype.toString.call(r)),L(r)&&(c=" "+Date.prototype.toUTCString.call(r)),S(r)&&(c=" "+m(r)),0!==a.length||d&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),h=d?function(t,e,r,n,i){for(var s=[],a=0,o=e.length;a=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(h,c,l)):l[0]+c+l[1]}function m(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,i,s){var a,o,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?o=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(o=t.stylize("[Setter]","special")),E(n,i)||(a="["+i+"]"),o||(t.seen.indexOf(u.value)<0?(o=v(r)?f(t,u.value,null):f(t,u.value,r-1)).indexOf("\n")>-1&&(o=s?o.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+o.split("\n").map((function(t){return" "+t})).join("\n")):o=t.stylize("[Circular]","special")),M(a)){if(s&&i.match(/^\d+$/))return o;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+o}function _(t){return Array.isArray(t)}function y(t){return"boolean"==typeof t}function v(t){return null===t}function g(t){return"number"==typeof t}function b(t){return"string"==typeof t}function M(t){return void 0===t}function w(t){return k(t)&&"[object RegExp]"===Y(t)}function k(t){return"object"==typeof t&&null!==t}function L(t){return k(t)&&"[object Date]"===Y(t)}function S(t){return k(t)&&("[object Error]"===Y(t)||t instanceof Error)}function x(t){return"function"==typeof t}function Y(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!o[t])if(u.test(t)){var r=n.pid;o[t]=function(){var n=e.format.apply(e,arguments);i.error("%s %d: %s",t,r,n)}}else o[t]=function(){};return o[t]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(7),e.isArray=_,e.isBoolean=y,e.isNull=v,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=b,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=M,e.isRegExp=w,e.types.isRegExp=w,e.isObject=k,e.isDate=L,e.types.isDate=L,e.isError=S,e.types.isNativeError=S,e.isFunction=x,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(38);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;t=new Date,r=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":"),[t.getDate(),D[t.getMonth()],r].join(" "),e.format.apply(e,arguments)},e.inherits=r(39),e._extend=function(t,e){if(!e||!k(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(j&&t[j]){var e;if("function"!=typeof(e=t[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,j,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],s=0;s{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var o,u=[],h=!1,c=-1;function d(){h&&o&&(h=!1,o.length?u=o.concat(u):c=-1,u.length&&l())}function l(){if(!h){var t=a(d);h=!0;for(var e=u.length;e;){for(o=u,u=[];++c1)for(var r=1;r{"use strict";var n=r(8),i=r(31),s=r(32),a=r(37);function o(t){return t.call.bind(t)}var u="undefined"!=typeof BigInt,h="undefined"!=typeof Symbol,c=o(Object.prototype.toString),d=o(Number.prototype.valueOf),l=o(String.prototype.valueOf),f=o(Boolean.prototype.valueOf);if(u)var m=o(BigInt.prototype.valueOf);if(h)var p=o(Symbol.prototype.valueOf);function _(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function y(t){return"[object Map]"===c(t)}function v(t){return"[object Set]"===c(t)}function g(t){return"[object WeakMap]"===c(t)}function b(t){return"[object WeakSet]"===c(t)}function M(t){return"[object ArrayBuffer]"===c(t)}function w(t){return"undefined"!=typeof ArrayBuffer&&(M.working?M(t):t instanceof ArrayBuffer)}function k(t){return"[object DataView]"===c(t)}function L(t){return"undefined"!=typeof DataView&&(k.working?k(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||L(t)},e.isUint8Array=function(t){return"Uint8Array"===s(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===s(t)},e.isUint16Array=function(t){return"Uint16Array"===s(t)},e.isUint32Array=function(t){return"Uint32Array"===s(t)},e.isInt8Array=function(t){return"Int8Array"===s(t)},e.isInt16Array=function(t){return"Int16Array"===s(t)},e.isInt32Array=function(t){return"Int32Array"===s(t)},e.isFloat32Array=function(t){return"Float32Array"===s(t)},e.isFloat64Array=function(t){return"Float64Array"===s(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===s(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===s(t)},y.working="undefined"!=typeof Map&&y(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(y.working?y(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},g.working="undefined"!=typeof WeakMap&&g(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(g.working?g(t):t instanceof WeakMap)},b.working="undefined"!=typeof WeakSet&&b(new WeakSet),e.isWeakSet=function(t){return b(t)},M.working="undefined"!=typeof ArrayBuffer&&M(new ArrayBuffer),e.isArrayBuffer=w,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=L;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(t){return"[object SharedArrayBuffer]"===c(t)}function Y(t){return void 0!==S&&(void 0===x.working&&(x.working=x(new S)),x.working?x(t):t instanceof S)}function T(t){return _(t,d)}function D(t){return _(t,l)}function E(t){return _(t,f)}function j(t){return u&&_(t,m)}function A(t){return h&&_(t,p)}e.isSharedArrayBuffer=Y,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===c(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===c(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===c(t)},e.isGeneratorObject=function(t){return"[object Generator]"===c(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===c(t)},e.isNumberObject=T,e.isStringObject=D,e.isBooleanObject=E,e.isBigIntObject=j,e.isSymbolObject=A,e.isBoxedPrimitive=function(t){return T(t)||D(t)||E(t)||j(t)||A(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(w(t)||Y(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},(t,e,r)=>{"use strict";var n=r(9)(),i=r(11)("Object.prototype.toString"),s=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},a=function(t){return!!s(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},o=function(){return s(arguments)}();s.isLegacyArguments=a,t.exports=o?s:a},(t,e,r)=>{"use strict";var n=r(10);t.exports=function(){return n()&&!!Symbol.toStringTag}},t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},(t,e,r)=>{"use strict";var n=r(12),i=r(25),s=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?i(r):r}},(t,e,r)=>{"use strict";var n,i=r(13),s=r(14),a=r(15),o=r(16),u=r(17),h=r(18),c=r(19),d=Function,l=function(t){try{return d('"use strict"; return ('+t+").constructor;")()}catch(t){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(t){f=null}var m=function(){throw new h},p=f?function(){try{return m}catch(t){try{return f(arguments,"callee").get}catch(t){return m}}}():m,_=r(20)(),y=r(21)(),v=Object.getPrototypeOf||(y?function(t){return t.__proto__}:null),g={},b="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":_&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":s,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":g,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&v?v(""[Symbol.iterator]()):n,"%Symbol%":_?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":p,"%TypedArray%":b,"%TypeError%":h,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(t){var w=v(v(t));M["%Error.prototype%"]=w}var k=function t(e){var r;if("%AsyncFunction%"===e)r=l("async function () {}");else if("%GeneratorFunction%"===e)r=l("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=l("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&v&&(r=v(i.prototype))}return M[e]=r,r},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=r(22),x=r(24),Y=S.call(Function.call,Array.prototype.concat),T=S.call(Function.apply,Array.prototype.splice),D=S.call(Function.call,String.prototype.replace),E=S.call(Function.call,String.prototype.slice),j=S.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,P=function(t,e){var r,n=t;if(x(L,n)&&(n="%"+(r=L[n])[0]+"%"),x(M,n)){var i=M[n];if(i===g&&(i=k(n)),void 0===i&&!e)throw new h("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new h('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=E(t,0,1),r=E(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return D(t,A,(function(t,e,r,i){n[n.length]=r?D(i,O,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",i=P("%"+n+"%",e),s=i.name,a=i.value,o=!1,c=i.alias;c&&(n=c[0],T(r,Y([0,1],c)));for(var d=1,l=!0;d=r.length){var y=f(a,m);a=(l=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[m]}else l=x(a,m),a=a[m];l&&!o&&(M[s]=a)}}return a}},t=>{"use strict";t.exports=Error},t=>{"use strict";t.exports=EvalError},t=>{"use strict";t.exports=RangeError},t=>{"use strict";t.exports=ReferenceError},t=>{"use strict";t.exports=SyntaxError},t=>{"use strict";t.exports=TypeError},t=>{"use strict";t.exports=URIError},(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(10);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},t=>{"use strict";var e={__proto__:null,foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof r)}},(t,e,r)=>{"use strict";var n=r(23);t.exports=Function.prototype.bind||n},t=>{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,s=r(22);t.exports=s.call(n,i)},(t,e,r)=>{"use strict";var n=r(22),i=r(12),s=r(26),a=r(18),o=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),h=i("%Reflect.apply%",!0)||n.call(u,o),c=r(28),d=i("%Math.max%");t.exports=function(t){if("function"!=typeof t)throw new a("a function is required");var e=h(n,u,arguments);return s(e,1+d(0,t.length-(arguments.length-1)),!0)};var l=function(){return h(n,o,arguments)};c?c(t.exports,"apply",{value:l}):t.exports.apply=l},(t,e,r)=>{"use strict";var n=r(12),i=r(27),s=r(30)(),a=r(29),o=r(18),u=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new o("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new o("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,h=!0;if("length"in t&&a){var c=a(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(h=!1)}return(n||h||!r)&&(s?i(t,"length",e,!0,!0):i(t,"length",e)),t}},(t,e,r)=>{"use strict";var n=r(28),i=r(17),s=r(18),a=r(29);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new s("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!a&&a(t,e);if(n)n(t,e,{configurable:null===h&&d?d.configurable:!h,enumerable:null===o&&d?d.enumerable:!o,value:r,writable:null===u&&d?d.writable:!u});else{if(!c&&(o||u||h))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},(t,e,r)=>{"use strict";var n=r(12)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(t){n=!1}t.exports=n},(t,e,r)=>{"use strict";var n=r(12)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},(t,e,r)=>{"use strict";var n=r(28),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},(t,e,r)=>{"use strict";var n,i=Object.prototype.toString,s=Function.prototype.toString,a=/^\s*(?:function)?\*/,o=r(9)(),u=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(s.call(t)))return!0;if(!o)return"[object GeneratorFunction]"===i.call(t);if(!u)return!1;if(void 0===n){var e=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},(t,e,r)=>{"use strict";var n=r(33),i=r(35),s=r(25),a=r(11),o=r(29),u=a("Object.prototype.toString"),h=r(9)(),c="undefined"==typeof globalThis?r.g:globalThis,d=i(),l=a("String.prototype.slice"),f=Object.getPrototypeOf,m=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:"Object"===e&&function(t){var e=!1;return n(p,(function(r,n){if(!e)try{r(t),e=l(n,1)}catch(t){}})),e}(t)}return o?function(t){var e=!1;return n(p,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=l(n,1))}catch(t){}})),e}(t):null}},(t,e,r)=>{"use strict";var n=r(34),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===i.call(t)?function(t,e,r){for(var n=0,i=t.length;n{"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var s=/^\s*class\b/,a=function(t){try{var e=n.call(t);return s.test(e)}catch(t){return!1}},o=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},u=Object.prototype.toString,h="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var l=document.all;u.call(l)===u.call(document.all)&&(d=function(t){if((c||!t)&&(void 0===t||"object"==typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(d(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&o(t)}:function(t){if(d(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(h)return o(t);if(a(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&o(t)}},(t,e,r)=>{"use strict";var n=r(36),i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e{"use strict";t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},(t,e,r)=>{"use strict";var n=r(32);t.exports=function(t){return!!n(t)}},t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},(t,e,r)=>{"use strict";var n=r(6),i=r(4);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){for(var r=0;r2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}d("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),d("ERR_INVALID_ARG_TYPE",(function(t,e,i){var s,a,o,h;if(void 0===u&&(u=r(40)),u("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(a="not ",e.substr(!o||o<0?0:+o,a.length)===a)?(s="must not be",e=e.replace(/^not /,"")):s="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))h="The ".concat(t," ").concat(s," ").concat(l(e,"type"));else{var c=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";h='The "'.concat(t,'" ').concat(c," ").concat(s," ").concat(l(e,"type"))}return h+=". Received type ".concat(n(i))}),TypeError),d("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===h&&(h=r(5));var i=h.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),d("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),d("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n0,"At least one arg needs to be specified");var i="The ",s=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),s){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,s-1).join(", "),i+=", and ".concat(e[s-1]," arguments")}return"".concat(i," must be specified")}),TypeError),t.exports.codes=c},(t,e,r)=>{"use strict";var n=r(6);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;et.length)&&(r=t.length),t.substring(r-e.length,r)===e}var b="",M="",w="",k="",L={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function x(t){return y(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Y(t,e,r){var i="",s="",a=0,o="",u=!1,h=x(t),c=h.split("\n"),d=x(e).split("\n"),l=0,f="";if("strictEqual"===r&&"object"===_(t)&&"object"===_(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===c.length&&1===d.length&&c[0]!==d[0]){var m=c[0].length+d[0].length;if(m<=10){if(!("object"===_(t)&&null!==t||"object"===_(e)&&null!==e||0===t&&0===e))return"".concat(L[r],"\n\n")+"".concat(c[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r){if(m<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][l]===d[0][l];)l++;l>2&&(f="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",l),"^"),l=0)}}}for(var p=c[c.length-1],y=d[d.length-1];p===y&&(l++<2?o="\n ".concat(p).concat(o):i=p,c.pop(),d.pop(),0!==c.length&&0!==d.length);)p=c[c.length-1],y=d[d.length-1];var v=Math.max(c.length,d.length);if(0===v){var S=h.split("\n");if(S.length>30)for(S[26]="".concat(b,"...").concat(k);S.length>27;)S.pop();return"".concat(L.notIdentical,"\n\n").concat(S.join("\n"),"\n")}l>3&&(o="\n".concat(b,"...").concat(k).concat(o),u=!0),""!==i&&(o="\n ".concat(i).concat(o),i="");var Y=0,T=L[r]+"\n".concat(M,"+ actual").concat(k," ").concat(w,"- expected").concat(k),D=" ".concat(b,"...").concat(k," Lines skipped");for(l=0;l1&&l>2&&(E>4?(s+="\n".concat(b,"...").concat(k),u=!0):E>3&&(s+="\n ".concat(d[l-2]),Y++),s+="\n ".concat(d[l-1]),Y++),a=l,i+="\n".concat(w,"-").concat(k," ").concat(d[l]),Y++;else if(d.length1&&l>2&&(E>4?(s+="\n".concat(b,"...").concat(k),u=!0):E>3&&(s+="\n ".concat(c[l-2]),Y++),s+="\n ".concat(c[l-1]),Y++),a=l,s+="\n".concat(M,"+").concat(k," ").concat(c[l]),Y++;else{var j=d[l],A=c[l],O=A!==j&&(!g(A,",")||A.slice(0,-1)!==j);O&&g(j,",")&&j.slice(0,-1)===A&&(O=!1,A+=","),O?(E>1&&l>2&&(E>4?(s+="\n".concat(b,"...").concat(k),u=!0):E>3&&(s+="\n ".concat(c[l-2]),Y++),s+="\n ".concat(c[l-1]),Y++),a=l,s+="\n".concat(M,"+").concat(k," ").concat(A),i+="\n".concat(w,"-").concat(k," ").concat(j),Y+=2):(s+=i,i="",1!==E&&0!==l||(s+="\n ".concat(A),Y++))}if(Y>20&&l30)for(f[26]="".concat(b,"...").concat(k);f.length>27;)f.pop();e=1===f.length?l.call(this,"".concat(d," ").concat(f[0])):l.call(this,"".concat(d,"\n\n").concat(f.join("\n"),"\n"))}else{var m=x(a),p="",y=L[i];"notDeepEqual"===i||"notEqual"===i?(m="".concat(L[i],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(p="".concat(x(o)),m.length>512&&(m="".concat(m.slice(0,509),"...")),p.length>512&&(p="".concat(p.slice(0,509),"...")),"deepEqual"===i||"equal"===i?m="".concat(y,"\n\n").concat(m,"\n\nshould equal\n\n"):p=" ".concat(i," ").concat(p)),e=l.call(this,"".concat(m).concat(p))}return Error.stackTraceLimit=u,e.generatedMessage=!r,Object.defineProperty(c(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=a,e.expected=o,e.operator=i,Error.captureStackTrace&&Error.captureStackTrace(c(e),s),e.stack,e.name="AssertionError",h(e)}return a=g,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return y(this,s(s({},e),{},{customInspect:!1,depth:0}))}}])&&o(a.prototype,u),d&&o(a,d),Object.defineProperty(a,"prototype",{writable:!1}),g}(d(Error),y.custom);t.exports=T},(t,e,r)=>{"use strict";var n=r(44);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n{"use strict";var n=r(45),i=r(10)(),s=r(11),a=Object,o=s("Array.prototype.push"),u=s("Object.prototype.propertyIsEnumerable"),h=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=a(t);if(1===arguments.length)return r;for(var s=1;s{"use strict";var n=Array.prototype.slice,i=r(46),s=Object.keys,a=s?function(t){return s(t)}:r(47),o=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?o(n.call(t)):o(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},(t,e,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,s=Object.prototype.toString,a=r(46),o=Object.prototype.propertyIsEnumerable,u=!o.call({toString:null},"toString"),h=o.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(t){var e=t.constructor;return e&&e.prototype===t},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!l["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{d(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===s.call(t),n=a(t),o=e&&"[object String]"===s.call(t),l=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var m=h&&r;if(o&&t.length>0&&!i.call(t,0))for(var p=0;p0)for(var _=0;_{"use strict";var n=r(49);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},t=>{"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},(t,e,r)=>{"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,s,a,o=[],u=!0,h=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=s.call(r)).done)&&(o.push(n.value),o.length!==e);u=!0);}catch(t){h=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(h)throw i}}return o}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function O(t){return Object.keys(t).filter(A).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))} /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */function P(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);i{"use strict";var n=r(52),i=r(25),s=r(49),a=r(48),o=r(53),u=i(a(),Object);n(u,{getPolyfill:a,implementation:s,shim:o}),t.exports=u},(t,e,r)=>{"use strict";var n=r(45),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),s=Object.prototype.toString,a=Array.prototype.concat,o=r(27),u=r(30)(),h=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==s.call(i)||!n())return;var i;u?o(t,e,r,!0):o(t,e,r)},c=function(t,e){var r=arguments.length>2?arguments[2]:{},s=n(e);i&&(s=a.call(s,Object.getOwnPropertySymbols(e)));for(var o=0;o{"use strict";var n=r(48),i=r(52);t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},(t,e,r)=>{"use strict";var n=r(25),i=r(52),s=r(55),a=r(56),o=r(57),u=n(a(),Number);i(u,{getPolyfill:a,implementation:s,shim:o}),t.exports=u},t=>{"use strict";t.exports=function(t){return t!=t}},(t,e,r)=>{"use strict";var n=r(55);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},(t,e,r)=>{"use strict";var n=r(52),i=r(56);t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},(t,e,r)=>{var n={"./af":59,"./af.js":59,"./ar":60,"./ar-dz":61,"./ar-dz.js":61,"./ar-kw":62,"./ar-kw.js":62,"./ar-ly":63,"./ar-ly.js":63,"./ar-ma":64,"./ar-ma.js":64,"./ar-ps":65,"./ar-ps.js":65,"./ar-sa":66,"./ar-sa.js":66,"./ar-tn":67,"./ar-tn.js":67,"./ar.js":60,"./az":68,"./az.js":68,"./be":69,"./be.js":69,"./bg":70,"./bg.js":70,"./bm":71,"./bm.js":71,"./bn":72,"./bn-bd":73,"./bn-bd.js":73,"./bn.js":72,"./bo":74,"./bo.js":74,"./br":75,"./br.js":75,"./bs":76,"./bs.js":76,"./ca":77,"./ca.js":77,"./cs":78,"./cs.js":78,"./cv":79,"./cv.js":79,"./cy":80,"./cy.js":80,"./da":81,"./da.js":81,"./de":82,"./de-at":83,"./de-at.js":83,"./de-ch":84,"./de-ch.js":84,"./de.js":82,"./dv":85,"./dv.js":85,"./el":86,"./el.js":86,"./en-au":87,"./en-au.js":87,"./en-ca":88,"./en-ca.js":88,"./en-gb":89,"./en-gb.js":89,"./en-ie":90,"./en-ie.js":90,"./en-il":91,"./en-il.js":91,"./en-in":92,"./en-in.js":92,"./en-nz":93,"./en-nz.js":93,"./en-sg":94,"./en-sg.js":94,"./eo":95,"./eo.js":95,"./es":96,"./es-do":97,"./es-do.js":97,"./es-mx":98,"./es-mx.js":98,"./es-us":99,"./es-us.js":99,"./es.js":96,"./et":100,"./et.js":100,"./eu":101,"./eu.js":101,"./fa":102,"./fa.js":102,"./fi":103,"./fi.js":103,"./fil":104,"./fil.js":104,"./fo":105,"./fo.js":105,"./fr":106,"./fr-ca":107,"./fr-ca.js":107,"./fr-ch":108,"./fr-ch.js":108,"./fr.js":106,"./fy":109,"./fy.js":109,"./ga":110,"./ga.js":110,"./gd":111,"./gd.js":111,"./gl":112,"./gl.js":112,"./gom-deva":113,"./gom-deva.js":113,"./gom-latn":114,"./gom-latn.js":114,"./gu":115,"./gu.js":115,"./he":116,"./he.js":116,"./hi":117,"./hi.js":117,"./hr":118,"./hr.js":118,"./hu":119,"./hu.js":119,"./hy-am":120,"./hy-am.js":120,"./id":121,"./id.js":121,"./is":122,"./is.js":122,"./it":123,"./it-ch":124,"./it-ch.js":124,"./it.js":123,"./ja":125,"./ja.js":125,"./jv":126,"./jv.js":126,"./ka":127,"./ka.js":127,"./kk":128,"./kk.js":128,"./km":129,"./km.js":129,"./kn":130,"./kn.js":130,"./ko":131,"./ko.js":131,"./ku":132,"./ku-kmr":133,"./ku-kmr.js":133,"./ku.js":132,"./ky":134,"./ky.js":134,"./lb":135,"./lb.js":135,"./lo":136,"./lo.js":136,"./lt":137,"./lt.js":137,"./lv":138,"./lv.js":138,"./me":139,"./me.js":139,"./mi":140,"./mi.js":140,"./mk":141,"./mk.js":141,"./ml":142,"./ml.js":142,"./mn":143,"./mn.js":143,"./mr":144,"./mr.js":144,"./ms":145,"./ms-my":146,"./ms-my.js":146,"./ms.js":145,"./mt":147,"./mt.js":147,"./my":148,"./my.js":148,"./nb":149,"./nb.js":149,"./ne":150,"./ne.js":150,"./nl":151,"./nl-be":152,"./nl-be.js":152,"./nl.js":151,"./nn":153,"./nn.js":153,"./oc-lnc":154,"./oc-lnc.js":154,"./pa-in":155,"./pa-in.js":155,"./pl":156,"./pl.js":156,"./pt":157,"./pt-br":158,"./pt-br.js":158,"./pt.js":157,"./ro":159,"./ro.js":159,"./ru":160,"./ru.js":160,"./sd":161,"./sd.js":161,"./se":162,"./se.js":162,"./si":163,"./si.js":163,"./sk":164,"./sk.js":164,"./sl":165,"./sl.js":165,"./sq":166,"./sq.js":166,"./sr":167,"./sr-cyrl":168,"./sr-cyrl.js":168,"./sr.js":167,"./ss":169,"./ss.js":169,"./sv":170,"./sv.js":170,"./sw":171,"./sw.js":171,"./ta":172,"./ta.js":172,"./te":173,"./te.js":173,"./tet":174,"./tet.js":174,"./tg":175,"./tg.js":175,"./th":176,"./th.js":176,"./tk":177,"./tk.js":177,"./tl-ph":178,"./tl-ph.js":178,"./tlh":179,"./tlh.js":179,"./tr":180,"./tr.js":180,"./tzl":181,"./tzl.js":181,"./tzm":182,"./tzm-latn":183,"./tzm-latn.js":183,"./tzm.js":182,"./ug-cn":184,"./ug-cn.js":184,"./uk":185,"./uk.js":185,"./ur":186,"./ur.js":186,"./uz":187,"./uz-latn":188,"./uz-latn.js":188,"./uz.js":187,"./vi":189,"./vi.js":189,"./x-pseudo":190,"./x-pseudo.js":190,"./yo":191,"./yo.js":191,"./zh-cn":192,"./zh-cn.js":192,"./zh-hk":193,"./zh-hk.js":193,"./zh-mo":194,"./zh-mo.js":194,"./zh-tw":195,"./zh-tw.js":195};function i(t){var e=s(t);return r(e)}function s(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}i.keys=function(){return Object.keys(n)},i.resolve=s,t.exports=i,i.id=58},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,r){return t<12?r?"vm":"VM":r?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(t){return function(e,r,s,a){var o=n(e),u=i[t][n(e)];return 2===o&&(u=u[r?0:1]),u.replace(/%d/i,e)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,r){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return r[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},n=function(t){return function(n,i,s,a){var o=e(n),u=r[t][e(n)];return 2===o&&(u=u[i?0:1]),u.replace(/%d/i,n)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,r){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:n("s"),ss:n("s"),m:n("m"),mm:n("m"),h:n("h"),hh:n("h"),d:n("d"),dd:n("d"),M:n("M"),MM:n("M"),y:n("y"),yy:n("y")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:0,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},r=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(t){return function(e,i,s,a){var o=r(e),u=n[t][r(e)];return 2===o&&(u=u[i?0:1]),u.replace(/%d/i,e)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-ly",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,r){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,r){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[٣٤٥٦٧٨٩٠]/g,(function(t){return r[t]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(t){return r[t]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,r){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return r[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(t){return/^(gündüz|axşam)$/.test(t)},meridiem:function(t,e,r){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var r=t%10,n=t%100-r,i=t>=100?100:null;return t+(e[r]||e[n]||e[i])},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e){var r=t.split("_");return e%10==1&&e%100!=11?r[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?r[1]:r[2]}function r(t,r,n){return"m"===n?r?"хвіліна":"хвіліну":"h"===n?r?"гадзіна":"гадзіну":t+" "+e({ss:r?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:r?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:r?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n],+t)}t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:r,mm:r,h:r,hh:r,d:"дзень",dd:r,M:"месяц",MM:r,y:"год",yy:r},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(t){return/^(дня|вечара)$/.test(t)},meridiem:function(t,e,r){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,r=t%100;return 0===t?t+"-ев":0===r?t+"-ен":r>10&&r<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},r={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e&&t>=4||"দুপুর"===e&&t<5||"বিকাল"===e?t+12:t},meridiem:function(t,e,r){return t<4?"রাত":t<10?"সকাল":t<17?"দুপুর":t<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},r={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e?t<4?t:t+12:"ভোর"===e||"সকাল"===e?t:"দুপুর"===e?t>=3?t:t+12:"বিকাল"===e||"সন্ধ্যা"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"রাত":t<6?"ভোর":t<12?"সকাল":t<15?"দুপুর":t<18?"বিকাল":t<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},r={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(t){return t.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(t,e){return 12===t&&(t=0),"མཚན་མོ"===e&&t>=4||"ཉིན་གུང"===e&&t<5||"དགོང་དག"===e?t+12:t},meridiem:function(t,e,r){return t<4?"མཚན་མོ":t<10?"ཞོགས་ཀས":t<17?"ཉིན་གུང":t<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r){return t+" "+i({mm:"munutenn",MM:"miz",dd:"devezh"}[r],t)}function r(t){switch(n(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}function n(t){return t>9?n(t%10):t}function i(t,e){return 2===e?s(t):t}function s(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}var a=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],o=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,h=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,c=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],l=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];t.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:l,fullWeekdaysParse:c,shortWeekdaysParse:d,minWeekdaysParse:l,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:u,monthsShortStrictRegex:h,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:r},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(t){return t+(1===t?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(t){return"g.m."===t},meridiem:function(t,e,r){return t<12?"a.m.":"g.m."}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r,n){if("m"===r)return e?"jedna minuta":n?"jednu minutu":"jedne minute"}function r(t,e,r){var n=t+" ";switch(r){case"ss":return n+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"mm":return n+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return"jedan sat";case"hh":return n+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return n+=1===t?"dan":"dana";case"MM":return n+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return n+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:r,m:e,mm:r,h:r,hh:r,d:"dan",dd:r,M:"mjesec",MM:r,y:"godinu",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var r=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(r="a"),t+r},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},r="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),n=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function s(t){return t>1&&t<5&&1!=~~(t/10)}function a(t,e,r,n){var i=t+" ";switch(r){case"s":return e||n?"pár sekund":"pár sekundami";case"ss":return e||n?i+(s(t)?"sekundy":"sekund"):i+"sekundami";case"m":return e?"minuta":n?"minutu":"minutou";case"mm":return e||n?i+(s(t)?"minuty":"minut"):i+"minutami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?i+(s(t)?"hodiny":"hodin"):i+"hodinami";case"d":return e||n?"den":"dnem";case"dd":return e||n?i+(s(t)?"dny":"dní"):i+"dny";case"M":return e||n?"měsíc":"měsícem";case"MM":return e||n?i+(s(t)?"měsíce":"měsíců"):i+"měsíci";case"y":return e||n?"rok":"rokem";case"yy":return e||n?i+(s(t)?"roky":"let"):i+"lety"}}t.defineLocale("cs",{months:e,monthsShort:r,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(t){return t+(/сехет$/i.exec(t)?"рен":/ҫул$/i.exec(t)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[r][0]:i[r][1]}t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[r][0]:i[r][1]}t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[r][0]:i[r][1]}t.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],r=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:r,weekdaysShort:r,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(t){return"މފ"===t},meridiem:function(t,e,r){return t<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:7,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,r){return t>11?r?"μμ":"ΜΜ":r?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(t,r){var n=this._calendarEl[t],i=r&&r.hours();return e(n)&&(n=n.apply(r)),n.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,r){return t>11?r?"p.t.m.":"P.T.M.":r?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r,n){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?i[r][2]?i[r][2]:i[r][1]:n?i[r][0]:i[r][1]}t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},r={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(t){return/بعد از ظهر/.test(t)},meridiem:function(t,e,r){return t<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(t){return t.replace(/[۰-۹]/g,(function(t){return r[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),r=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",e[7],e[8],e[9]];function n(t,e,r,n){var s="";switch(r){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"ss":s=n?"sekunnin":"sekuntia";break;case"m":return n?"minuutin":"minuutti";case"mm":s=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":s=n?"tunnin":"tuntia";break;case"d":return n?"päivän":"päivä";case"dd":s=n?"päivän":"päivää";break;case"M":return n?"kuukauden":"kuukausi";case"MM":s=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":s=n?"vuoden":"vuotta"}return s=i(t,n)+" "+s}function i(t,n){return t<10?n?r[t]:e[t]:t}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:n,monthsShortRegex:n,monthsStrictRegex:e,monthsShortStrictRegex:r,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),r="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],r=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],n=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],i=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],s=["Do","Lu","Má","Cé","Dé","A","Sa"];t.defineLocale("ga",{months:e,monthsShort:r,monthsParseExact:!0,weekdays:n,weekdaysShort:i,weekdaysMin:s,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],r=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],n=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],i=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],s=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];t.defineLocale("gd",{months:e,monthsShort:r,monthsParseExact:!0,weekdays:n,weekdaysShort:i,weekdaysMin:s,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r,n){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[t+" सॅकंडांनी",t+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[t+" मिणटांनी",t+" मिणटां"],h:["एका वरान","एक वर"],hh:[t+" वरांनी",t+" वरां"],d:["एका दिसान","एक दीस"],dd:[t+" दिसांनी",t+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[t+" म्हयन्यानी",t+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[t+" वर्सांनी",t+" वर्सां"]};return n?i[r][0]:i[r][1]}t.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(t,e){return"D"===e?t+"वेर":t},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(t,e){return 12===t&&(t=0),"राती"===e?t<4?t:t+12:"सकाळीं"===e?t:"दनपारां"===e?t>12?t:t+12:"सांजे"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"राती":t<12?"सकाळीं":t<16?"दनपारां":t<20?"सांजे":"राती"}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r,n){var i={s:["thoddea sekondamni","thodde sekond"],ss:[t+" sekondamni",t+" sekond"],m:["eka mintan","ek minut"],mm:[t+" mintamni",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voramni",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disamni",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineamni",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsamni",t+" vorsam"]};return n?i[r][0]:i[r][1]}t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){return"D"===e?t+"er":t},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokallim"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"rati":t<12?"sokallim":t<16?"donparam":t<20?"sanje":"rati"}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},r={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t%10==0&&10!==t?t+" שנה":t+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(t){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(t)},meridiem:function(t,e,r){return t<5?"לפנות בוקר":t<10?"בבוקר":t<12?r?'לפנה"צ':"לפני הצהריים":t<18?r?'אחה"צ':"אחרי הצהריים":"בערב"}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],i=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];t.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:n,longMonthsParse:n,shortMonthsParse:i,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात"===e?t<4?t:t+12:"सुबह"===e?t:"दोपहर"===e?t>=10?t:t+12:"शाम"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"रात":t<10?"सुबह":t<17?"दोपहर":t<20?"शाम":"रात"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r){var n=t+" ";switch(r){case"ss":return n+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return n+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return n+=1===t?"dan":"dana";case"MM":return n+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return n+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function r(t,e,r,n){var i=t;switch(r){case"s":return n||e?"néhány másodperc":"néhány másodperce";case"ss":return i+(n||e)?" másodperc":" másodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return i+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" óra":" órája");case"hh":return i+(n||e?" óra":" órája");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return i+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" hónap":" hónapja");case"MM":return i+(n||e?" hónap":" hónapja");case"y":return"egy"+(n||e?" év":" éve");case"yy":return i+(n||e?" év":" éve")}return""}function n(t){return(t?"":"[múlt] ")+"["+e[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,r){return t<12?!0===r?"de":"DE":!0===r?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(t){return/^(ցերեկվա|երեկոյան)$/.test(t)},meridiem:function(t){return t<4?"գիշերվա":t<12?"առավոտվա":t<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-ին":t+"-րդ";default:return t}},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,r){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t){return t%100==11||t%10!=1}function r(t,r,n,i){var s=t+" ";switch(n){case"s":return r||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return e(t)?s+(r||i?"sekúndur":"sekúndum"):s+"sekúnda";case"m":return r?"mínúta":"mínútu";case"mm":return e(t)?s+(r||i?"mínútur":"mínútum"):r?s+"mínúta":s+"mínútu";case"hh":return e(t)?s+(r||i?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return r?"dagur":i?"dag":"degi";case"dd":return e(t)?r?s+"dagar":s+(i?"daga":"dögum"):r?s+"dagur":s+(i?"dag":"degi");case"M":return r?"mánuður":i?"mánuð":"mánuði";case"MM":return e(t)?r?s+"mánuðir":s+(i?"mánuði":"mánuðum"):r?s+"mánuður":s+(i?"mánuð":"mánuði");case"y":return r||i?"ár":"ári";case"yy":return e(t)?s+(r||i?"ár":"árum"):s+(r||i?"ár":"ári")}}t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:r,ss:r,m:r,mm:r,h:"klukkustund",hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(t,e){return"元"===e[1]?1:parseInt(e[1]||t,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,r){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()!==t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"y":return 1===t?"元年":t+"年";case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(t,e){return 12===t&&(t=0),"enjing"===e?t:"siyang"===e?t>=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,r){return t<11?"enjing":t<15?"siyang":t<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return t.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(t,e,r){return"ი"===r?e+"ში":e+r+"ში"}))},past:function(t){return/(წამი|წუთი|საათი|დღე|თვე)/.test(t)?t.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(t)?t.replace(/წელი$/,"წლის წინ"):t},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(t){return 0===t?t:1===t?t+"-ლი":t<20||t<=100&&t%20==0||t%100==0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};t.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(t){var r=t%10,n=t>=100?100:null;return t+(e[t]||e[r]||e[n])},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},r={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(t){return"ល្ងាច"===t},meridiem:function(t,e,r){return t<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(t){return t.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},r={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(t){return t.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?t>=10?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"일";case"M":return t+"월";case"w":case"W":return t+"주";default:return t}},meridiemParse:/오전|오후/,isPM:function(t){return"오후"===t},meridiem:function(t,e,r){return t<12?"오전":"오후"}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];t.defineLocale("ku",{months:n,monthsShort:n,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(t){return/ئێواره‌/.test(t)},meridiem:function(t,e,r){return t<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return r[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r,n){var i={s:["çend sanîye","çend sanîyeyan"],ss:[t+" sanîye",t+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[t+" deqîqe",t+" deqîqeyan"],h:["saetek","saetekê"],hh:[t+" saet",t+" saetan"],d:["rojek","rojekê"],dd:[t+" roj",t+" rojan"],w:["hefteyek","hefteyekê"],ww:[t+" hefte",t+" hefteyan"],M:["mehek","mehekê"],MM:[t+" meh",t+" mehan"],y:["salek","salekê"],yy:[t+" sal",t+" salan"]};return e?i[r][0]:i[r][1]}function r(t){var e=(t=""+t).substring(t.length-1),r=t.length>1?t.substring(t.length-2):"";return 12==r||13==r||"2"!=e&&"3"!=e&&"50"!=r&&"70"!=e&&"80"!=e?"ê":"yê"}t.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(t,e,r){return t<12?r?"bn":"BN":r?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,w:e,ww:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(t,e){var n=e.toLowerCase();return n.includes("w")||n.includes("m")?t+".":t+r(t)},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(t){var r=t%10,n=t>=100?100:null;return t+(e[t]||e[r]||e[n])},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r,n){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?i[r][0]:i[r][1]}function r(t){return i(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t}function n(t){return i(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t}function i(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return i(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return i(t)}return i(t/=1e3)}t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:r,past:n,s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(t){return"ຕອນແລງ"===t},meridiem:function(t,e,r){return t<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(t){return"ທີ່"+t}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function r(t,e,r,n){return e?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"}function n(t,e,r,n){return e?s(r)[0]:n?s(r)[1]:s(r)[2]}function i(t){return t%10==0||t>10&&t<20}function s(t){return e[t].split("_")}function a(t,e,r,a){var o=t+" ";return 1===t?o+n(t,e,r[0],a):e?o+(i(t)?s(r)[1]:s(r)[0]):a?o+s(r)[1]:o+(i(t)?s(r)[1]:s(r)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:r,ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function r(t,e,r){return r?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function n(t,n,i){return t+" "+r(e[i],t,n)}function i(t,n,i){return r(e[i],t,n)}function s(t,e){return e?"dažas sekundes":"dažām sekundēm"}t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s,ss:n,m:i,mm:n,h:i,hh:n,d:i,dd:n,M:i,MM:n,y:i,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,r,n){var i=e.words[n];return 1===n.length?r?i[0]:i[1]:t+" "+e.correctGrammaticalCase(t,i)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,r=t%100;return 0===t?t+"-ев":0===r?t+"-ен":r>10&&r<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(t,e){return 12===t&&(t=0),"രാത്രി"===e&&t>=4||"ഉച്ച കഴിഞ്ഞ്"===e||"വൈകുന്നേരം"===e?t+12:t},meridiem:function(t,e,r){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r,n){switch(r){case"s":return e?"хэдхэн секунд":"хэдхэн секундын";case"ss":return t+(e?" секунд":" секундын");case"m":case"mm":return t+(e?" минут":" минутын");case"h":case"hh":return t+(e?" цаг":" цагийн");case"d":case"dd":return t+(e?" өдөр":" өдрийн");case"M":case"MM":return t+(e?" сар":" сарын");case"y":case"yy":return t+(e?" жил":" жилийн");default:return t}}t.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(t){return"ҮХ"===t},meridiem:function(t,e,r){return t<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" өдөр";default:return t}}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function n(t,e,r,n){var i="";if(e)switch(r){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(r){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,t)}t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(t,e){return 12===t&&(t=0),"पहाटे"===e||"सकाळी"===e?t:"दुपारी"===e||"सायंकाळी"===e||"रात्री"===e?t>=12?t:t+12:void 0},meridiem:function(t,e,r){return t>=0&&t<6?"पहाटे":t<12?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,r){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,r){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},r={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(t){return t.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?t>=10?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,r){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),r="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),r="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var r=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(r="a"),t+r},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},r={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(t){return t.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ਰਾਤ"===e?t<4?t:t+12:"ਸਵੇਰ"===e?t:"ਦੁਪਹਿਰ"===e?t>=10?t:t+12:"ਸ਼ਾਮ"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"ਰਾਤ":t<10?"ਸਵੇਰ":t<17?"ਦੁਪਹਿਰ":t<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),r="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),n=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function s(t,e,r){var n=t+" ";switch(r){case"ss":return n+(i(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return n+(i(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return n+(i(t)?"godziny":"godzin");case"ww":return n+(i(t)?"tygodnie":"tygodni");case"MM":return n+(i(t)?"miesiące":"miesięcy");case"yy":return n+(i(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?/D MMMM/.test(n)?r[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:s,m:s,mm:s,h:s,hh:s,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:s,M:"miesiąc",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r){var n=" ";return(t%100>=20||t>=100&&t%100==0)&&(n=" de "),t+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[r]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:e,m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,w:"o săptămână",ww:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e){var r=t.split("_");return e%10==1&&e%100!=11?r[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?r[1]:r[2]}function r(t,r,n){return"m"===n?r?"минута":"минуту":t+" "+e({ss:r?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:r?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n],+t)}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:r,m:r,mm:r,h:"час",hh:r,d:"день",dd:r,w:"неделя",ww:r,M:"месяц",MM:r,y:"год",yy:r},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,r){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],r=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:r,weekdaysShort:r,weekdaysMin:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,r){return t<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(t){return t+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,r){return t>11?r?"ප.ව.":"පස් වරු":r?"පෙ.ව.":"පෙර වරු"}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),r="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function n(t){return t>1&&t<5}function i(t,e,r,i){var s=t+" ";switch(r){case"s":return e||i?"pár sekúnd":"pár sekundami";case"ss":return e||i?s+(n(t)?"sekundy":"sekúnd"):s+"sekundami";case"m":return e?"minúta":i?"minútu":"minútou";case"mm":return e||i?s+(n(t)?"minúty":"minút"):s+"minútami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?s+(n(t)?"hodiny":"hodín"):s+"hodinami";case"d":return e||i?"deň":"dňom";case"dd":return e||i?s+(n(t)?"dni":"dní"):s+"dňami";case"M":return e||i?"mesiac":"mesiacom";case"MM":return e||i?s+(n(t)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return e||i?"rok":"rokom";case"yy":return e||i?s+(n(t)?"roky":"rokov"):s+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:r,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r,n){var i=t+" ";switch(r){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund";case"m":return e?"ena minuta":"eno minuto";case"mm":return i+=1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami";case"h":return e?"ena ura":"eno uro";case"hh":return i+=1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami";case"d":return e||n?"en dan":"enim dnem";case"dd":return i+=1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi";case"M":return e||n?"en mesec":"enim mesecem";case"MM":return i+=1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci";case"y":return e||n?"eno leto":"enim letom";case"yy":return i+=1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"let":"leti"}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,r){return t<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(t,e){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10==1?e[0]:e[1]:e[2]},translate:function(t,r,n,i){var s,a=e.words[n];return 1===n.length?"y"===n&&r?"jedna godina":i||r?a[0]:a[1]:(s=e.correctGrammaticalCase(t,a),"yy"===n&&r&&"godinu"===s?t+" godina":t+" "+s)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(t,e){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10==1?e[0]:e[1]:e[2]},translate:function(t,r,n,i){var s,a=e.words[n];return 1===n.length?"y"===n&&r?"једна година":i||r?a[0]:a[1]:(s=e.correctGrammaticalCase(t,a),"yy"===n&&r&&"годину"===s?t+" година":t+" "+s)}};t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,r){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?":e":1===e||2===e?":a":":e")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},r={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(t){return t+"வது"},preparse:function(t){return t.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(t,e,r){return t<2?" யாமம்":t<6?" வைகறை":t<10?" காலை":t<14?" நண்பகல்":t<18?" எற்பாடு":t<22?" மாலை":" யாமம்"},meridiemHour:function(t,e){return 12===t&&(t=0),"யாமம்"===e?t<2?t:t+12:"வைகறை"===e||"காலை"===e||"நண்பகல்"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(t,e){return 12===t&&(t=0),"రాత్రి"===e?t<4?t:t+12:"ఉదయం"===e?t:"మధ్యాహ్నం"===e?t>=10?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};t.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(t,e){return 12===t&&(t=0),"шаб"===e?t<4?t:t+12:"субҳ"===e?t:"рӯз"===e?t>=11?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(t){var r=t%10,n=t>=100?100:null;return t+(e[t]||e[r]||e[n])},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(t){return"หลังเที่ยง"===t},meridiem:function(t,e,r){return t<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};t.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(t,r){switch(r){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'unjy";var n=t%10,i=t%100-n,s=t>=100?100:null;return t+(e[n]||e[i]||e[s])}},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function r(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"}function n(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu’":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"}function i(t,e,r,n){var i=s(t);switch(r){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}function s(t){var r=Math.floor(t%1e3/100),n=Math.floor(t%100/10),i=t%10,s="";return r>0&&(s+=e[r]+"vatlh"),n>0&&(s+=(""!==s?" ":"")+e[n]+"maH"),i>0&&(s+=(""!==s?" ":"")+e[i]),""===s?"pagh":s}t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:r,past:n,s:"puS lup",ss:i,m:"wa’ tup",mm:i,h:"wa’ rep",hh:i,d:"wa’ jaj",dd:i,M:"wa’ jar",MM:i,y:"wa’ DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(t,e,r){return t<12?r?"öö":"ÖÖ":r?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(t){return"ös"===t||"ÖS"===t},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(t,r){switch(r){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'ıncı";var n=t%10,i=t%100-n,s=t>=100?100:null;return t+(e[n]||e[i]||e[s])}},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,r,n){var i={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n míut","'iens míut"],mm:[t+" míuts",t+" míuts"],h:["'n þora","'iensa þora"],hh:[t+" þoras",t+" þoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return n||e?i[r][0]:i[r][1]}t.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,r){return t>11?r?"d'o":"D'O":r?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(t,e){return 12===t&&(t=0),"يېرىم كېچە"===e||"سەھەر"===e||"چۈشتىن بۇرۇن"===e?t:"چۈشتىن كېيىن"===e||"كەچ"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,r){var n=100*t+e;return n<600?"يېرىم كېچە":n<900?"سەھەر":n<1130?"چۈشتىن بۇرۇن":n<1230?"چۈش":n<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"-كۈنى";case"w":case"W":return t+"-ھەپتە";default:return t}},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration function e(t,e){var r=t.split("_");return e%10==1&&e%100!=11?r[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?r[1]:r[2]}function r(t,r,n){return"m"===n?r?"хвилина":"хвилину":"h"===n?r?"година":"годину":t+" "+e({ss:r?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:r?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:r?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n],+t)}function n(t,e){var r={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===t?r.nominative.slice(1,7).concat(r.nominative.slice(0,1)):t?r[/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:r.nominative}function i(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:n,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:r,m:r,mm:r,h:"годину",hh:r,d:"день",dd:r,M:"місяць",MM:r,y:"рік",yy:r},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,r){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration var e=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],r=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:r,weekdaysShort:r,weekdaysMin:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,r){return t<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,r){return t<12?r?"sa":"SA":r?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,r){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,r){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1200?"上午":1200===n?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,r){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(3))},function(t,e,r){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,r){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(3))},(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>g});var n=r(197),i=r(4);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e,r){return e=c(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,r||[],c(t).constructor):e.apply(t,r))}function o(t){var e="function"==typeof Map?new Map:void 0;return o=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&h(i,r.prototype),i}(t,arguments,c(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,t)},o(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",h=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var s=e&&e.prototype instanceof g?e:g,a=Object.create(s.prototype),o=new A(n||[]);return i(a,"_invoke",{value:T(t,r,o)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var m="suspendedStart",p="suspendedYield",_="executing",y="completed",v={};function g(){}function b(){}function M(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(O([])));L&&L!==r&&n.call(L,o)&&(w=L);var S=M.prototype=g.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function Y(t,e){function r(i,a,o,u){var h=f(t[i],t,a);if("throw"!==h.type){var c=h.arg,d=c.value;return d&&"object"==s(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,o,u)}),(function(t){r("throw",t,o,u)})):e.resolve(d).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,u)}))}u(h.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function T(e,r,n){var i=m;return function(s,a){if(i===_)throw Error("Generator is already running");if(i===y){if("throw"===s)throw a;return{value:t,done:!0}}for(n.method=s,n.arg=a;;){var o=n.delegate;if(o){var u=D(o,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=_;var h=f(e,r,n);if("normal"===h.type){if(i=n.done?y:p,h.arg===v)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(i=y,n.method="throw",n.arg=h.arg)}}}function D(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,D(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var s=f(i,e.iterator,r.arg);if("throw"===s.type)return r.method="throw",r.arg=s.arg,r.delegate=null,v;var a=s.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function l(t,e,r,n,i,s,a){try{var o=t[s](a),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var s=t.apply(e,r);function a(t){l(s,n,i,a,o,"next",t)}function o(t){l(s,n,i,a,o,"throw",t)}a(void 0)}))}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var r=0;r0)for(b=0;b0)for(r=0;r3&&this.maxLostRate>.15)&&(this.lostPacketCount,this.maxLostRate,this.stateCallBack("weak_net_feedback",n.decode_Failed,"当前弱网")),this.lostPacketCount=0,this.maxLostRate=0}}},{key:"heartBeatRevious",value:function(){if(this.checkDecodeState){var t=this.pc,e=this;t.getStats(null).then((function(t){t.forEach((function(t){if("inbound-rtp"===t.type&&void 0!==t.frameWidth&&void 0!==t.frameHeight){var r=t.frameWidth,n=t.frameHeight;if(null===e.previousWidth&&null===e.previousHeight){var i={width:r,height:n};e.stateCallBack("videoResolution",i,"视频分辨率"),r>n?e.stateCallBack("screenChange",0,"安卓卡横屏"):e.stateCallBack("screenChange",1,"安卓卡竖屏")}else if(r!==e.previousWidth||n!==e.previousHeight){var s={width:r,height:n};e.stateCallBack("videoResolution",s,"视频分辨率"),r>n?e.stateCallBack("screenChange",0,"安卓卡横屏"):e.stateCallBack("screenChange",1,"安卓卡竖屏")}e.previousWidth=r,e.previousHeight=n}}))}))}}},{key:"getStreamStates",value:function(){var t=this;this.getReceiversStats().then((function(e){var r=0,n=0,i=0,s=(new Date).getTime(),a=0,o=0,u=0,h=0;0!=t.lastReportTime&&(i=(n=(r=(e.bytesReceived-t.lastBytesReceived)/(s-t.lastReportTime)*1e3)/1024)/1024),t.lastBytesReceived=e.bytesReceived,t.lastReportTime=s,0!=t.lastPacketsLost&&((o=e.packetsLost-t.lastPacketsLost)>0&&t.lostPacketCount++,u=e.packetsReceived-t.lastPacketsReceived,o>0&&u>0&&(a=o/(u+o))>t.maxLostRate&&(t.maxLostRate=a)),t.lastPacketsLost=e.packetsLost,t.lastPacketsReceived=e.packetsReceived,t.decodedCount=e.framesDecoded,h=e.framesPerSecond,0!=t.lastSecondDecodedCount&&void 0===e.framesPerSecond&&(h=t.decodedCount-t.lastSecondDecodedCount),t.lastSecondDecodedCount=t.decodedCount;var c={framesPerSecond:h,currentRoundTripTime:e.currentRoundTripTime,lostRate:Math.floor(a),secondsBytes:Math.floor(r),secondsKBytes:Math.floor(n),secondsMBytes:Math.floor(i),pliCount:e.pliCount};t.stateCallBack("StreamStates",c,"流状态")})).catch((function(t){}))}},{key:"getReceiversStats",value:function(){var t=this.pc;return new Promise((function(e,r){t.getStats(null).then((function(t){var r=0,n=0,i=0,s=0,a=0,o=0,u=0,h=0;t.forEach((function(t){"inbound-rtp"===t.type&&"video"===t.kind&&(r=t.framesPerSecond,a+=t.bytesReceived,i+=t.packetsLost,s+=t.packetsReceived,o=t.framesDecoded,u=t.framesReceived,h=t.pliCount,h+=t.firCount),"inbound-rtp"===t.type&&"audio"===t.kind&&(a+=t.bytesReceived,i+=t.packetsLost,s+=t.packetsReceived),"candidate-pair"===t.type&&void 0===(n=t.currentRoundTripTime)&&(n=0===t.totalRoundTripTime&&0===t.responsesReceived?0:t.totalRoundTripTime/t.responsesReceived)})),null!=n?n*=1e3:n=0,e({framesPerSecond:r,currentRoundTripTime:n,packetsLost:i,packetsReceived:s,bytesReceived:a,framesDecoded:o,framesReceived:u,pliCount:h})})).catch((function(t){r(t)}))}))}}])}();var b=function(t){function e(t,r){var n;return m(this,e),(n=a(this,e,[r.kind])).kind=r.kind,n.id=r.id,n.label=r.label,n.clone=r.clone.bind(r),n.enabled=!0,n.processFrame=t,n._processor=new M(n),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),_(e)}(o(MediaStreamTrack)),M=function(){return _((function t(e){m(this,t),this.track=e,this.requestFrame()}),[{key:"requestFrame",value:function(){var t=this,e=this.track.requestFrame();if(e)this.track.processFrame(e);requestAnimationFrame((function(){return t.requestFrame()}))}}])}()},(t,e,r)=>{"use strict";r.r(e),r.d(e,{Audio_ID:()=>a,Authen_ID:()=>n,DefinitionLevel_ID:()=>f,I_Frame_ID:()=>l,Landscape_ID:()=>u,MultiLogin_ID:()=>i,Net_Disconnect:()=>m,OPEN_SUCCESS:()=>y,PPS_ID:()=>d,Porto_Header_ID:()=>o,SPS_ID:()=>c,ScreenDirection_ID:()=>s,Vertica_ID:()=>h,decode_Failed:()=>_,verify_Failed:()=>p});var n=92,i=11,s=5,a=255,o=104,u=0,h=1,c=7,d=8,l=5,f=21,m=-1e3,p=-1001,_=-1002,y=0},(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>m});var n=r(199);r(4);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",h=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,s=Object.create(i.prototype),o=new A(n||[]);return a(s,"_invoke",{value:T(t,r,o)}),s}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var m="suspendedStart",p="suspendedYield",_="executing",y="completed",v={};function g(){}function b(){}function M(){}var w={};d(w,u,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(O([])));L&&L!==r&&n.call(L,u)&&(w=L);var S=M.prototype=g.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function Y(t,e){function r(s,a,o,u){var h=f(t[s],t,a);if("throw"!==h.type){var c=h.arg,d=c.value;return d&&"object"==i(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,o,u)}),(function(t){r("throw",t,o,u)})):e.resolve(d).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,u)}))}u(h.arg)}var s;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return s=s?s.then(i,i):i()}})}function T(e,r,n){var i=m;return function(s,a){if(i===_)throw Error("Generator is already running");if(i===y){if("throw"===s)throw a;return{value:t,done:!0}}for(n.method=s,n.arg=a;;){var o=n.delegate;if(o){var u=D(o,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=_;var h=f(e,r,n);if("normal"===h.type){if(i=n.done?y:p,h.arg===v)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(i=y,n.method="throw",n.arg=h.arg)}}}function D(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,D(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var s=f(i,e.iterator,r.arg);if("throw"===s.type)return r.method="throw",r.arg=s.arg,r.delegate=null,v;var a=s.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,a=function r(){for(;++s=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function a(t,e,r,n,i,s,a){try{var o=t[s](a),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var s=t.apply(e,r);function o(t){a(s,n,i,o,u,"next",t)}function u(t){a(s,n,i,o,u,"throw",t)}o(void 0)}))}}function u(t,e){for(var r=0;r{"use strict";r.r(e),r.d(e,{AckPolicy:()=>It,AdvisoryKind:()=>qt,Bench:()=>Ur,ConsumerDebugEvents:()=>an,ConsumerEvents:()=>sn,DebugEvents:()=>q,DeliverPolicy:()=>Ht,DirectMsgHeaders:()=>zt,DiscardPolicy:()=>Pt,Empty:()=>A,ErrorCode:()=>F,Events:()=>B,JSONCodec:()=>bt,JsHeaders:()=>Ft,KvWatchInclude:()=>Ut,Match:()=>W,Metric:()=>Fr,MsgHdrsImpl:()=>vt,NatsError:()=>Z,Nuid:()=>U,ReplayPolicy:()=>Ct,RepublishHeaders:()=>Wt,RequestStrategy:()=>J,RetentionPolicy:()=>Ot,ServiceError:()=>tt,ServiceErrorCodeHeader:()=>Q,ServiceErrorHeader:()=>X,ServiceResponseType:()=>G,ServiceVerb:()=>rt,StorageType:()=>Rt,StoreCompression:()=>Nt,StringCodec:()=>gt,backoff:()=>lt,buildAuthenticator:()=>Yr,canonicalMIMEHeaderKey:()=>pt,checkJsError:()=>Et,connect:()=>zn,consumerOpts:()=>Zt,createInbox:()=>et,credsAuthenticator:()=>Lr,deadline:()=>ut,deferred:()=>ht,delay:()=>ot,headers:()=>_t,isFlowControlMsg:()=>Tt,isHeartbeatMsg:()=>Dt,jwtAuthenticator:()=>kr,millis:()=>mt,nanos:()=>ft,nkeyAuthenticator:()=>wr,nkeys:()=>gr,nuid:()=>z,syncIterator:()=>$,tokenAuthenticator:()=>Mr,usernamePasswordAuthenticator:()=>br}),t=r.hmd(t);var n=r(4);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function s(t,e,r,n){var i=a(b(1&n?t.prototype:t),e,r);return 2&n?function(t){return i.apply(r,t)}:i}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=b(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},a.apply(null,arguments)}function o(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,s,a,o=[],u=!0,h=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=s.call(r)).done)&&(o.push(n.value),o.length!==e);u=!0);}catch(t){h=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(h)throw i}}return o}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=c(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){o=!0,s=t},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw s}}}}function c(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function f(t,e,r,n,i,s,a){try{var o=t[s](a),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(n,i)}function m(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var s=t.apply(e,r);function a(t){f(s,n,i,a,o,"next",t)}function o(t){f(s,n,i,a,o,"throw",t)}a(void 0)}))}}function p(t,e,r){return e=b(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,v()?Reflect.construct(e,r||[],b(t).constructor):e.apply(t,r))}function _(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}function y(t){var e="function"==typeof Map?new Map:void 0;return y=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(v())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&g(i,r.prototype),i}(t,arguments,b(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g(r,t)},y(t)}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var r=0;r=12;e--)this.buf[e]=C.charCodeAt(t%36),t=Math.floor(t/36)}},{key:"next",value:function(){return this.inited||this.init(),this.seq+=this.inc,this.seq>0xcfd41b9100000&&(this.setPre(),this.initSeqAndInc()),this.fillSeq(),String.fromCharCode.apply(String,this.buf)}},{key:"reset",value:function(){this.init()}}])}(),z=new U;!function(t){t.Disconnect="disconnect",t.Reconnect="reconnect",t.Update="update",t.LDM="ldm",t.Error="error"}(B||(B={})),function(t){t.Reconnecting="reconnecting",t.PingTimer="pingTimer",t.StaleConnection="staleConnection",t.ClientInitiatedReconnect="client initiated reconnect"}(q||(q={})),function(t){t.ApiError="BAD API",t.BadAuthentication="BAD_AUTHENTICATION",t.BadCreds="BAD_CREDS",t.BadHeader="BAD_HEADER",t.BadJson="BAD_JSON",t.BadPayload="BAD_PAYLOAD",t.BadSubject="BAD_SUBJECT",t.Cancelled="CANCELLED",t.ConnectionClosed="CONNECTION_CLOSED",t.ConnectionDraining="CONNECTION_DRAINING",t.ConnectionRefused="CONNECTION_REFUSED",t.ConnectionTimeout="CONNECTION_TIMEOUT",t.Disconnect="DISCONNECT",t.InvalidOption="INVALID_OPTION",t.InvalidPayload="INVALID_PAYLOAD",t.MaxPayloadExceeded="MAX_PAYLOAD_EXCEEDED",t.NoResponders="503",t.NotFunction="NOT_FUNC",t.RequestError="REQUEST_ERROR",t.ServerOptionNotAvailable="SERVER_OPT_NA",t.SubClosed="SUB_CLOSED",t.SubDraining="SUB_DRAINING",t.Timeout="TIMEOUT",t.Tls="TLS",t.Unknown="UNKNOWN_ERROR",t.WssRequired="WSS_REQUIRED",t.JetStreamInvalidAck="JESTREAM_INVALID_ACK",t.JetStream404NoMessages="404",t.JetStream408RequestTimeout="408",t.JetStream409MaxAckPendingExceeded="409",t.JetStream409="409",t.JetStreamNotEnabled="503",t.JetStreamIdleHeartBeat="IDLE_HEARTBEAT",t.AuthorizationViolation="AUTHORIZATION_VIOLATION",t.AuthenticationExpired="AUTHENTICATION_EXPIRED",t.ProtocolError="NATS_PROTOCOL_ERR",t.PermissionsViolation="PERMISSIONS_VIOLATION",t.AuthenticationTimeout="AUTHENTICATION_TIMEOUT",t.AccountExpired="ACCOUNT_EXPIRED"}(F||(F={}));var W,J,G,K=function(){return k((function t(){M(this,t),L(this,"messages",void 0),this.messages=new Map,this.messages.set(F.InvalidPayload,"Invalid payload type - payloads can be 'binary', 'string', or 'json'"),this.messages.set(F.BadJson,"Bad JSON"),this.messages.set(F.WssRequired,"TLS is required, therefore a secure websocket connection is also required")}),[{key:"getMessage",value:function(t){return this.messages.get(t)||t}}],[{key:"getMessage",value:function(t){return V.getMessage(t)}}])}(),V=new K,Z=function(t){function e(t,r,n){var i;return M(this,e),L(i=p(this,e,[t]),"name",void 0),L(i,"message",void 0),L(i,"code",void 0),L(i,"permissionContext",void 0),L(i,"chainedError",void 0),L(i,"api_error",void 0),i.name="NatsError",i.message=t,i.code=r,i.chainedError=n,i}return _(e,t),k(e,[{key:"isAuthError",value:function(){return this.code===F.AuthenticationExpired||this.code===F.AuthorizationViolation||this.code===F.AccountExpired}},{key:"isAuthTimeout",value:function(){return this.code===F.AuthenticationTimeout}},{key:"isPermissionError",value:function(){return this.code===F.PermissionsViolation}},{key:"isProtocolError",value:function(){return this.code===F.ProtocolError}},{key:"isJetStreamError",value:function(){return void 0!==this.api_error}},{key:"jsError",value:function(){return this.api_error?this.api_error:null}}],[{key:"errorForCode",value:function(t,r){return new e(K.getMessage(t),t,r)}}])}(y(Error));function $(t){var e=t[Symbol.asyncIterator]();return{next:function(){return m(l().mark((function t(){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.next();case 2:if(!(r=t.sent).done){t.next=5;break}return t.abrupt("return",Promise.resolve(null));case 5:return t.abrupt("return",Promise.resolve(r.value));case 6:case"end":return t.stop()}}),t)})))()}}}!function(t){t[t.Exact=0]="Exact",t[t.CanonicalMIME=1]="CanonicalMIME",t[t.IgnoreCase=2]="IgnoreCase"}(W||(W={})),function(t){t.Timer="timer",t.Count="count",t.JitterTimer="jitterTimer",t.SentinelMsg="sentinelMsg"}(J||(J={})),function(t){t.STATS="io.nats.micro.v1.stats_response",t.INFO="io.nats.micro.v1.info_response",t.PING="io.nats.micro.v1.ping_response"}(G||(G={}));var X="Nats-Service-Error",Q="Nats-Service-Error-Code",tt=function(t){function e(t,r){var n;return M(this,e),L(n=p(this,e,[r]),"code",void 0),n.code=t,n}return _(e,t),k(e,null,[{key:"isServiceError",value:function(t){return null!==e.toServiceError(t)}},{key:"toServiceError",value:function(t){var r,n=(null==t||null===(r=t.headers)||void 0===r?void 0:r.get(Q))||"";if(""!==n){var i,s=parseInt(n)||400,a=(null==t||null===(i=t.headers)||void 0===i?void 0:i.get(X))||"";return new e(s,a.length?a:n)}return null}}])}(y(Error));function et(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("string"!=typeof(t=t||"_INBOX"))throw new Error("prefix must be a string");return t.split(".").forEach((function(e){if("*"===e||">"===e)throw new Error("inbox prefixes cannot have wildcards '".concat(t,"'"))})),"".concat(t,".").concat(z.next())}var rt,nt="127.0.0.1";function it(t){for(var e=arguments,r=function(){var r=n+1<1||e.length<=n+1?void 0:e[n+1];Object.keys(r).forEach((function(e){t[e]=r[e]}))},n=0;n<(arguments.length<=1?0:arguments.length-1);n++)r();return t}function st(t){return P.decode(t).replace(/\n/g,"␊").replace(/\r/g,"␍")}function at(t){var e,r,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?Z.errorForCode(F.Timeout):null,i=new Promise((function(i,s){e={cancel:function(){r&&clearTimeout(r)}},r=setTimeout((function(){s(null===n?Z.errorForCode(F.Timeout):n)}),t)}));return Object.assign(i,e)}function ot(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=new Promise((function(r){var n=setTimeout((function(){r()}),e);t={cancel:function(){n&&clearTimeout(n)}}}));return Object.assign(r,t)}function ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=new Error("deadline exceeded"),n=ht(),i=setTimeout((function(){return n.reject(r)}),e);return Promise.race([t,n]).finally((function(){return clearTimeout(i)}))}function ht(){var t={},e=new Promise((function(e,r){t={resolve:e,reject:r}}));return Object.assign(e,t)}function ct(t){for(var e=t.length-1;e>0;e--){var r=Math.floor(Math.random()*(e+1)),n=[t[r],t[e]];t[e]=n[0],t[r]=n[1]}return t}!function(t){t.PING="PING",t.STATS="STATS",t.INFO="INFO"}(rt||(rt={}));var dt=function(){return k((function t(){M(this,t),L(this,"timers",void 0),L(this,"measures",void 0),this.timers=new Map,this.measures=new Map}),[{key:"mark",value:function(t){this.timers.set(t,performance.now())}},{key:"measure",value:function(t,e,r){var n=this.timers.get(e);if(void 0===n)throw new Error("".concat(e," is not defined"));var i=this.timers.get(r);if(void 0===i)throw new Error("".concat(r," is not defined"));this.measures.set(t,i-n)}},{key:"getEntries",value:function(){var t=[];return this.measures.forEach((function(e,r){t.push({name:r,duration:e})})),t}}])}();function lt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,250,250,500,500,3e3,5e3];Array.isArray(t)||(t=[0,250,250,500,500,3e3,5e3]);var e=t.length-1;return{backoff:function(r){return 0===(n=r>e?t[e]:t[r])?0:Math.floor(n/2+Math.random()*n);var n}}}function ft(t){return 1e6*t}function mt(t){return Math.floor(t/1e6)}function pt(t){for(var e=!0,r=new Array(t.length),n=0;n126)throw new Z("'".concat(t[n],"' is not a valid character for a header key"),F.BadHeader);e&&97<=i&&i<=122?i-=32:!e&&65<=i&&i<=90&&(i+=32),r[n]=i,e=45==i}return String.fromCharCode.apply(String,r)}function _t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t&&""!==e||t>0&&""===e)throw new Error("setting status requires both code and description");return new vt(t,e)}var yt="NATS/1.0",vt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";M(this,t),L(this,"_code",void 0),L(this,"headers",void 0),L(this,"_description",void 0),this._code=e,this._description=r,this.headers=new Map}return k(t,[{key:Symbol.iterator,value:function(){return this.headers.entries()}},{key:"size",value:function(){return this.headers.size}},{key:"equals",value:function(t){if(t&&this.headers.size===t.headers.size&&this._code===t._code){var e,r=h(this.headers);try{for(r.s();!(e=r.n()).done;){var n=u(e.value,2),i=n[0],s=n[1],a=t.values(i);if(s.length!==a.length)return!1;for(var c=o(s).sort(),d=o(a).sort(),l=0;l0&&""!==this._description&&(t+=" ".concat(this._code," ").concat(this._description));var e,r=h(this.headers);try{for(r.s();!(e=r.n()).done;)for(var n=u(e.value,2),i=n[0],s=n[1],a=0;a1&&void 0!==arguments[1]?arguments[1]:W.Exact,r=this.keys();switch(e){case W.Exact:return r.filter((function(e){return e===t}));case W.CanonicalMIME:return t=pt(t),r.filter((function(e){return e===t}));default:var n=t.toLowerCase();return r.filter((function(t){return n===t.toLowerCase()}))}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.Exact,r=this.findKeys(t,e);if(r.length){var n=this.headers.get(r[0]);if(n)return Array.isArray(n)?n[0]:n}return""}},{key:"last",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.Exact,r=this.findKeys(t,e);if(r.length){var n=this.headers.get(r[0]);if(n)return Array.isArray(n)?n[n.length-1]:n}return""}},{key:"has",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.Exact;return this.findKeys(t,e).length>0}},{key:"set",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W.Exact;this.delete(t,r),this.append(t,e,r)}},{key:"append",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W.Exact,i=pt(e);n===W.CanonicalMIME&&(e=i);var s=this.findKeys(e,n);e=s.length>0?s[0]:e;var a=t.validHeaderValue(r),o=this.headers.get(e);o||(o=[],this.headers.set(e,o)),o.push(a)}},{key:"values",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.Exact,n=[];return this.findKeys(t,r).forEach((function(t){var r=e.headers.get(t);r&&n.push.apply(n,o(r))})),n}},{key:"delete",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.Exact;this.findKeys(t,r).forEach((function(t){e.headers.delete(t)}))}},{key:"hasError",get:function(){return this._code>=300}},{key:"status",get:function(){return"".concat(this._code," ").concat(this._description).trim()}},{key:"toRecord",value:function(){var t=this,e={};return this.keys().forEach((function(r){e[r]=t.values(r)})),e}},{key:"code",get:function(){return this._code}},{key:"description",get:function(){return this._description}}],[{key:"decode",value:function(e){var r=new t,n=P.decode(e).split("\r\n"),i=n[0];if(i!==yt){var s=i.replace(yt,"").trim();if(s.length>0){r._code=parseInt(s,10),isNaN(r._code)&&(r._code=0);var a=r._code.toString();s=s.replace(a,""),r._description=s.trim()}}return n.length>=1&&n.slice(1).map((function(t){if(t){var e=t.indexOf(":");if(e>-1){var n=t.slice(0,e),i=t.slice(e+1).trim();r.append(n,i)}}})),r}},{key:"validHeaderValue",value:function(t){if(/[\r\n]/.test(t))throw new Z("invalid header value - \\r and \\n are not allowed.",F.BadHeader);return t.trim()}},{key:"fromRecord",value:function(e){var r=new t;for(var n in e)r.headers.set(n,e[n]);return r}}])}();function gt(){return{encode:function(t){return O.encode(t)},decode:function(t){return P.decode(t)}}}function bt(t){return{encode:function(t){try{return void 0===t&&(t=null),O.encode(JSON.stringify(t))}catch(t){throw Z.errorForCode(F.BadJson,t)}},decode:function(e){try{return JSON.parse(P.decode(e),t)}catch(t){throw Z.errorForCode(F.BadJson,t)}}}}function Mt(t){var e;return t&&0===t.data.length&&503===(null===(e=t.headers)||void 0===e?void 0:e.code)?Z.errorForCode(F.NoResponders):null}var wt,kt=function(){return k((function t(e,r,n){M(this,t),L(this,"_headers",void 0),L(this,"_msg",void 0),L(this,"_rdata",void 0),L(this,"_reply",void 0),L(this,"_subject",void 0),L(this,"publisher",void 0),this._msg=e,this._rdata=r,this.publisher=n}),[{key:"subject",get:function(){return this._subject||(this._subject=P.decode(this._msg.subject)),this._subject}},{key:"reply",get:function(){return this._reply||(this._reply=P.decode(this._msg.reply)),this._reply}},{key:"sid",get:function(){return this._msg.sid}},{key:"headers",get:function(){if(this._msg.hdr>-1&&!this._headers){var t=this._rdata.subarray(0,this._msg.hdr);this._headers=vt.decode(t)}return this._headers}},{key:"data",get:function(){return this._rdata?this._msg.hdr>-1?this._rdata.subarray(this._msg.hdr):this._rdata:new Uint8Array(0)}},{key:"respond",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,e=arguments.length>1?arguments[1]:void 0;return!!this.reply&&(this.publisher.publish(this.reply,t,e),!0)}},{key:"size",value:function(){var t;return this._msg.subject.length+((null===(t=this._msg.reply)||void 0===t?void 0:t.length)||0)+(-1===this._msg.size?0:this._msg.size)}},{key:"json",value:function(t){return bt(t).decode(this.data)}},{key:"string",value:function(){return P.decode(this.data)}},{key:"requestInfo",value:function(){var t,e=null===(t=this.headers)||void 0===t?void 0:t.get("Nats-Request-Info");return e?JSON.parse(e,(function(t,e){return"start"!==t&&"stop"!==t||""===e?e:new Date(Date.parse(e))})):null}}])}();function Lt(t){return xt("durable",t)}function St(t){return xt("stream",t)}function xt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)throw Error("".concat(t," name required"));return[".","*",">","/","\\"," ","\t","\n","\r"].forEach((function(r){if(-1!==e.indexOf(r)){switch(r){case"\n":r="\\n";break;case"\r":r="\\r";break;case"\t":r="\\t"}throw Error("invalid ".concat(t," name - ").concat(t," name cannot contain '").concat(r,"'"))}})),""}function Yt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)throw Error("".concat(t," name required"));var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""===t)throw Error("name required");var e=/^[-\w]+$/g,r=t.match(e);if(null===r){var n,i=h(t.split(""));try{for(i.s();!(n=i.n()).done;){var s=n.value;if(null===s.match(e))return"cannot contain '".concat(s,"'")}}catch(t){i.e(t)}finally{i.f()}}return""}(e);if(r.length)throw new Error("invalid ".concat(t," name - ").concat(t," name ").concat(r))}function Tt(t){if(t.data.length>0)return!1;var e=t.headers;return!!e&&(e.code>=100&&e.code<200)}function Dt(t){var e;return Tt(t)&&"Idle Heartbeat"===(null===(e=t.headers)||void 0===e?void 0:e.description)}function Et(t){if(0!==t.data.length)return null;var e=t.headers;return e?At(e.code,e.description):null}L(kt,"jc",void 0),function(t){t.MaxBatchExceeded="exceeded maxrequestbatch of",t.MaxExpiresExceeded="exceeded maxrequestexpires of",t.MaxBytesExceeded="exceeded maxrequestmaxbytes of",t.MaxMessageSizeExceeded="message size exceeds maxbytes",t.PushConsumer="consumer is push based",t.MaxWaitingExceeded="exceeded maxwaiting",t.IdleHeartbeatMissed="idle heartbeats missed",t.ConsumerDeleted="consumer deleted"}(wt||(wt={}));var jt=!1;function At(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t<300)return null;switch(e=e.toLowerCase(),t){case 404:return new Z(e,F.JetStream404NoMessages);case 408:return new Z(e,F.JetStream408RequestTimeout);case 409:var r=e.startsWith(wt.IdleHeartbeatMissed)?F.JetStreamIdleHeartBeat:F.JetStream409;return new Z(e,r);case 503:return Z.errorForCode(F.JetStreamNotEnabled,new Error(e));default:return""===e&&(e=F.Unknown),new Z(e,"".concat(t))}}var Ot,Pt,Rt,Ht,It,Ct,Nt,Bt,qt,Ft,Ut,zt,Wt,Jt=function(){return k((function t(){M(this,t),L(this,"inflight",void 0),L(this,"processed",void 0),L(this,"received",void 0),L(this,"noIterator",void 0),L(this,"iterClosed",void 0),L(this,"done",void 0),L(this,"signal",void 0),L(this,"yields",void 0),L(this,"filtered",void 0),L(this,"pendingFiltered",void 0),L(this,"ingestionFilterFn",void 0),L(this,"protocolFilterFn",void 0),L(this,"dispatchedFn",void 0),L(this,"ctx",void 0),L(this,"_data",void 0),L(this,"err",void 0),L(this,"time",void 0),L(this,"yielding",void 0),this.inflight=0,this.filtered=0,this.pendingFiltered=0,this.processed=0,this.received=0,this.noIterator=!1,this.done=!1,this.signal=ht(),this.yields=[],this.iterClosed=ht(),this.time=0,this.yielding=!1}),[{key:Symbol.asyncIterator,value:function(){return this.iterate()}},{key:"push",value:function(t){if(!this.done){if("function"==typeof t)return this.yields.push(t),void this.signal.resolve();var e=this.ingestionFilterFn?this.ingestionFilterFn(t,this.ctx||this):{ingest:!0,protocol:!1},r=e.ingest,n=e.protocol;r&&(n&&(this.filtered++,this.pendingFiltered++),this.yields.push(t),this.signal.resolve())}}},{key:"iterate",value:function(){var t=this;return D(l().mark((function e(){var r,n,i,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.noIterator){e.next=2;break}throw new Z("unsupported iterator",F.ApiError);case 2:if(!t.yielding){e.next=4;break}throw new Z("already yielding",F.ApiError);case 4:t.yielding=!0,e.prev=5;case 6:if(0!==t.yields.length){e.next=10;break}return e.next=10,T(t.signal);case 10:if(!t.err){e.next=12;break}throw t.err;case 12:r=t.yields,t.inflight=r.length,t.yields=[],n=0;case 16:if(!(n2&&void 0!==arguments[2]?arguments[2]:{maxOut:2};M(this,t),L(this,"interval",void 0),L(this,"maxOut",void 0),L(this,"cancelAfter",void 0),L(this,"timer",void 0),L(this,"autoCancelTimer",void 0),L(this,"last",void 0),L(this,"missed",void 0),L(this,"count",void 0),L(this,"callback",void 0),this.interval=e,this.maxOut=(null==n?void 0:n.maxOut)||2,this.cancelAfter=(null==n?void 0:n.cancelAfter)||0,this.last=Date.now(),this.missed=0,this.count=0,this.callback=r,this._schedule()}),[{key:"cancel",value:function(){this.autoCancelTimer&&clearTimeout(this.autoCancelTimer),this.timer&&clearInterval(this.timer),this.timer=0,this.autoCancelTimer=0,this.missed=0}},{key:"work",value:function(){this.last=Date.now(),this.missed=0}},{key:"_change",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;this.interval=t,this.maxOut=r,this.cancelAfter=e,this.restart()}},{key:"restart",value:function(){this.cancel(),this._schedule()}},{key:"_schedule",value:function(){var t=this;this.cancelAfter>0&&(this.autoCancelTimer=setTimeout((function(){t.cancel()}),this.cancelAfter)),this.timer=setInterval((function(){if(t.count++,Date.now()-t.last>t.interval&&t.missed++,t.missed>=t.maxOut)try{!0===t.callback(t.missed)&&t.cancel()}catch(t){}}),this.interval)}}])}();!function(t){t.Limits="limits",t.Interest="interest",t.Workqueue="workqueue"}(Ot||(Ot={})),function(t){t.Old="old",t.New="new"}(Pt||(Pt={})),function(t){t.File="file",t.Memory="memory"}(Rt||(Rt={})),function(t){t.All="all",t.Last="last",t.New="new",t.StartSequence="by_start_sequence",t.StartTime="by_start_time",t.LastPerSubject="last_per_subject"}(Ht||(Ht={})),function(t){t.None="none",t.All="all",t.Explicit="explicit",t.NotSet=""}(It||(It={})),function(t){t.Instant="instant",t.Original="original"}(Ct||(Ct={})),function(t){t.None="none",t.S2="s2"}(Nt||(Nt={})),function(t){t.CreateOrUpdate="",t.Update="update",t.Create="create"}(Bt||(Bt={})),function(t){t.API="api_audit",t.StreamAction="stream_action",t.ConsumerAction="consumer_action",t.SnapshotCreate="snapshot_create",t.SnapshotComplete="snapshot_complete",t.RestoreCreate="restore_create",t.RestoreComplete="restore_complete",t.MaxDeliver="max_deliver",t.Terminated="terminated",t.Ack="consumer_ack",t.StreamLeaderElected="stream_leader_elected",t.StreamQuorumLost="stream_quorum_lost",t.ConsumerLeaderElected="consumer_leader_elected",t.ConsumerQuorumLost="consumer_quorum_lost"}(qt||(qt={})),function(t){t.StreamSourceHdr="Nats-Stream-Source",t.LastConsumerSeqHdr="Nats-Last-Consumer",t.LastStreamSeqHdr="Nats-Last-Stream",t.ConsumerStalledHdr="Nats-Consumer-Stalled",t.MessageSizeHdr="Nats-Msg-Size",t.RollupHdr="Nats-Rollup",t.RollupValueSubject="sub",t.RollupValueAll="all",t.PendingMessagesHdr="Nats-Pending-Messages",t.PendingBytesHdr="Nats-Pending-Bytes"}(Ft||(Ft={})),function(t){t.LastValue="",t.AllHistory="history",t.UpdatesOnly="updates"}(Ut||(Ut={})),function(t){t.Stream="Nats-Stream",t.Sequence="Nats-Sequence",t.TimeStamp="Nats-Time-Stamp",t.Subject="Nats-Subject"}(zt||(zt={})),function(t){t.Stream="Nats-Stream",t.Subject="Nats-Subject",t.Sequence="Nats-Sequence",t.LastSequence="Nats-Last-Sequence",t.Size="Nats-Msg-Size"}(Wt||(Wt={}));var Kt="KV_",Vt=function(){return k((function t(e){M(this,t),L(this,"config",void 0),L(this,"ordered",void 0),L(this,"mack",void 0),L(this,"stream",void 0),L(this,"callbackFn",void 0),L(this,"max",void 0),L(this,"qname",void 0),L(this,"isBind",void 0),L(this,"filters",void 0),this.stream="",this.mack=!1,this.ordered=!1,this.config=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({name:t,deliver_policy:Ht.All,ack_policy:It.Explicit,ack_wait:ft(3e4),replay_policy:Ct.Instant},e)}("",e||{})}),[{key:"getOpts",value:function(){var t,e=this,r={};(r.config=Object.assign({},this.config),r.config.filter_subject&&(this.filterSubject(r.config.filter_subject),r.config.filter_subject=void 0),r.config.filter_subjects)&&(null===(t=r.config.filter_subjects)||void 0===t||t.forEach((function(t){e.filterSubject(t)})),r.config.filter_subjects=void 0);if(r.mack=this.mack,r.stream=this.stream,r.callbackFn=this.callbackFn,r.max=this.max,r.queue=this.qname,r.ordered=this.ordered,r.config.ack_policy=r.ordered?It.None:r.config.ack_policy,r.isBind=r.isBind||!1,this.filters)switch(this.filters.length){case 0:break;case 1:r.config.filter_subject=this.filters[0];break;default:r.config.filter_subjects=this.filters}return r}},{key:"description",value:function(t){return this.config.description=t,this}},{key:"deliverTo",value:function(t){return this.config.deliver_subject=t,this}},{key:"durable",value:function(t){return Lt(t),this.config.durable_name=t,this}},{key:"startSequence",value:function(t){if(t<=0)throw new Error("sequence must be greater than 0");return this.config.deliver_policy=Ht.StartSequence,this.config.opt_start_seq=t,this}},{key:"startTime",value:function(t){return this.config.deliver_policy=Ht.StartTime,this.config.opt_start_time=t.toISOString(),this}},{key:"deliverAll",value:function(){return this.config.deliver_policy=Ht.All,this}},{key:"deliverLastPerSubject",value:function(){return this.config.deliver_policy=Ht.LastPerSubject,this}},{key:"deliverLast",value:function(){return this.config.deliver_policy=Ht.Last,this}},{key:"deliverNew",value:function(){return this.config.deliver_policy=Ht.New,this}},{key:"startAtTimeDelta",value:function(t){return this.startTime(new Date(Date.now()-t)),this}},{key:"headersOnly",value:function(){return this.config.headers_only=!0,this}},{key:"ackNone",value:function(){return this.config.ack_policy=It.None,this}},{key:"ackAll",value:function(){return this.config.ack_policy=It.All,this}},{key:"ackExplicit",value:function(){return this.config.ack_policy=It.Explicit,this}},{key:"ackWait",value:function(t){return this.config.ack_wait=ft(t),this}},{key:"maxDeliver",value:function(t){return this.config.max_deliver=t,this}},{key:"filterSubject",value:function(t){return this.filters=this.filters||[],this.filters.push(t),this}},{key:"replayInstantly",value:function(){return this.config.replay_policy=Ct.Instant,this}},{key:"replayOriginal",value:function(){return this.config.replay_policy=Ct.Original,this}},{key:"sample",value:function(t){if((t=Math.trunc(t))<0||t>100)throw new Error("value must be between 0-100");return this.config.sample_freq="".concat(t,"%"),this}},{key:"limit",value:function(t){return this.config.rate_limit_bps=t,this}},{key:"maxWaiting",value:function(t){return this.config.max_waiting=t,this}},{key:"maxAckPending",value:function(t){return this.config.max_ack_pending=t,this}},{key:"idleHeartbeat",value:function(t){return this.config.idle_heartbeat=ft(t),this}},{key:"flowControl",value:function(){return this.config.flow_control=!0,this}},{key:"deliverGroup",value:function(t){return this.queue(t),this}},{key:"manualAck",value:function(){return this.mack=!0,this}},{key:"maxMessages",value:function(t){return this.max=t,this}},{key:"callback",value:function(t){return this.callbackFn=t,this}},{key:"queue",value:function(t){return this.qname=t,this.config.deliver_group=t,this}},{key:"orderedConsumer",value:function(){return this.ordered=!0,this}},{key:"bind",value:function(t,e){return this.stream=t,this.config.durable_name=e,this.isBind=!0,this}},{key:"bindStream",value:function(t){return this.stream=t,this}},{key:"inactiveEphemeralThreshold",value:function(t){return this.config.inactive_threshold=ft(t),this}},{key:"maxPullBatch",value:function(t){return this.config.max_batch=t,this}},{key:"maxPullRequestExpires",value:function(t){return this.config.max_expires=ft(t),this}},{key:"memory",value:function(){return this.config.mem_storage=!0,this}},{key:"numReplicas",value:function(t){return this.config.num_replicas=t,this}},{key:"consumerName",value:function(t){return this.config.name=t,this}}])}();function Zt(t){return new Vt(t)}function $t(t){return"function"==typeof t.getOpts}var Xt=function(){return k((function t(){M(this,t)}),null,[{key:"encode",value:function(t){if("string"==typeof t)return btoa(t);var e=Array.from(t);return btoa(String.fromCharCode.apply(String,e))}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=atob(t);return e?Uint8Array.from(r,(function(t){return t.charCodeAt(0)})):r}}])}(),Qt=function(){function t(){M(this,t)}return k(t,null,[{key:"encode",value:function(e){return t.toB64URLEncoding(Xt.encode(e))}},{key:"decode",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.decode(t.fromB64URLEncoding(e),r)}},{key:"toB64URLEncoding",value:function(t){return t.replace(/\+/g,"-").replace(/\//g,"_")}},{key:"fromB64URLEncoding",value:function(t){return t.replace(/_/g,"/").replace(/-/g,"+")}}])}(),te=function(){return k((function t(){M(this,t),L(this,"buffers",void 0),L(this,"byteLength",void 0),this.buffers=[],this.byteLength=0}),[{key:"reset",value:function(){this.buffers.length=0,this.byteLength=0}},{key:"pack",value:function(){if(this.buffers.length>1){for(var t=new Uint8Array(this.byteLength),e=0,r=0;rr)&&(t=r);var n=e.subarray(0,t);return r>t&&this.buffers.push(e.subarray(t)),this.byteLength=r-t,n}}return new Uint8Array(0)}},{key:"fill",value:function(t){t&&(this.buffers.push(t),this.byteLength+=t.length);for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n2&&void 0!==arguments[2]&&arguments[2];function n(t,e){return Math.floor(3*(t+e)/4-e)}function i(e,r,n){for(var i,s=new Array((n-r)/3),a=r,o=0;a>18&63]+t[i>>12&63]+t[i>>6&63]+t[63&i]);return s.join("")}return{byteLength:function(t){return n.apply(null,ee(t))},toUint8Array:function(t){var r,i,s=u(ee(t),2),a=s[0],o=s[1],h=new Uint8Array(n(a,o)),c=o?a-4:a,d=0;for(i=0;i>16&255,h[d++]=r>>8&255,h[d++]=255&r;return 2===o?(r=e[t.charCodeAt(i)]<<2|e[t.charCodeAt(i+1)]>>4,h[d++]=255&r):1===o&&(r=e[t.charCodeAt(i)]<<10|e[t.charCodeAt(i+1)]<<4|e[t.charCodeAt(i+2)]>>2,h[d++]=r>>8&255,h[d++]=255&r),h},fromUint8Array:function(e){for(var n,s,a=e.length,o=a%3,u=a-o,h=new Array(Math.ceil(u/16383)+(o?1:0)),c=0,d=0;du?u:n);return 1===o?(s=e[u],h[c]=t[s>>2]+t[s<<4&63],r||(h[c]+="==")):2===o&&(s=e[u]<<8|255&e[u+1],h[c]=t[s>>10]+t[s>>4&63]+t[s<<2&63],r||(h[c]+="=")),h.join("")}}}(re,ne,!0),oe=(ae.byteLength,ae.toUint8Array),ue=ae.fromUint8Array,he=new TextDecoder,ce=new TextEncoder;function de(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if(/^utf-?8$/i.test(e))return ce.encode(t);if(/^base64$/i.test(e))return oe(t);if(/^hex(?:adecimal)?$/i.test(e))return function(t){var e=t.length;if(e%2||!/^[0-9a-fA-F]+$/.test(t))throw new TypeError("Invalid hex string.");t=t.toLowerCase();for(var r=new Uint8Array(Math.floor(e/2)),n=e/2,i=0;i>>29,this}},{key:"digest",value:function(t){if(this._finalized)throw new Error("digest has already been called.");this._finalized=!0;var e=this._buf,r=this._bufIdx;for(e[r++]=128;56!==r;)64===r&&(this._transform(),r=0),e[r++]=0;var n=this._count;e[56]=n[1]>>>24&255,e[57]=n[1]>>>16&255,e[58]=n[1]>>>8&255,e[59]=n[1]>>>0&255,e[60]=n[0]>>>24&255,e[61]=n[0]>>>16&255,e[62]=n[0]>>>8&255,e[63]=n[0]>>>0&255,this._transform();for(var i=new Uint8Array(32),s=0;s<8;s++)i[0+(s<<2)]=this._H[s]>>>24&255,i[1+(s<<2)]=this._H[s]>>>16&255,i[2+(s<<2)]=this._H[s]>>>8&255,i[3+(s<<2)]=this._H[s]>>>0&255;return this.init(),t?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if(/^utf-?8$/i.test(e))return he.decode(t);if(/^base64$/i.test(e))return ue(t);if(/^hex(?:adecimal)?$/i.test(e))return function(t){return t.reduce((function(t,e){return"".concat(t).concat(e<16?"0":"").concat(e.toString(16))}),"")}(t);throw new TypeError("Unsupported string encoding.")}(i,t):i}},{key:"_transform",value:function(){var t,e=this._H,r=e[0],n=e[1],i=e[2],s=e[3],a=e[4],o=e[5],u=e[6],h=e[7],c=new Uint32Array(16);for(t=0;t<16;t++)c[t]=this._buf[3+(t<<2)]|this._buf[2+(t<<2)]<<8|this._buf[1+(t<<2)]<<16|this._buf[t<<2]<<24;for(t=0;t<64;t++){var d=void 0;if(t<16)d=c[t];else{var l=c[t+1&15],f=c[t+14&15];d=c[15&t]=(l>>>7^l>>>18^l>>>3^l<<25^l<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+c[15&t]+c[t+9&15]|0}d=d+h+(a>>>6^a>>>11^a>>>25^a<<26^a<<21^a<<7)+(u^a&(o^u))+this._K[t]|0,h=u,u=o,o=a,a=s+d,s=i,i=n,r=d+((n=r)&i^s&(n^i))+(n>>>2^n>>>13^n>>>22^n<<30^n<<19^n<<10)|0}e[0]=e[0]+r|0,e[1]=e[1]+n|0,e[2]=e[2]+i|0,e[3]=e[3]+s|0,e[4]=e[4]+a|0,e[5]=e[5]+o|0,e[6]=e[6]+u|0,e[7]=e[7]+h|0}}])}(),fe=k((function t(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];M(this,t),L(this,"token",void 0),L(this,"received",void 0),L(this,"ctx",void 0),L(this,"requestSubject",void 0),L(this,"mux",void 0),this.mux=e,this.requestSubject=r,this.received=0,this.token=z.next(),n&&(this.ctx=new Error)})),me=function(t){function e(t,r){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{maxWait:1e3};if(M(this,e),L(n=p(this,e,[t,r]),"callback",void 0),L(n,"done",void 0),L(n,"timer",void 0),L(n,"max",void 0),L(n,"opts",void 0),n.opts=i,"function"!=typeof n.opts.callback)throw new Error("callback is required");return n.callback=n.opts.callback,n.max="number"==typeof i.maxMessages&&i.maxMessages>0?i.maxMessages:-1,n.done=ht(),n.done.then((function(){n.callback(null,null)})),n.timer=setTimeout((function(){n.cancel()}),i.maxWait),n}return _(e,t),k(e,[{key:"cancel",value:function(t){t&&this.callback(t,null),clearTimeout(this.timer),this.mux.cancel(this),this.done.resolve()}},{key:"resolver",value:function(t,e){var r=this;t?(this.ctx&&(t.stack+="\n\n".concat(this.ctx.stack)),this.cancel(t)):(this.callback(null,e),this.opts.strategy===J.Count&&(this.max--,0===this.max&&this.cancel()),this.opts.strategy===J.JitterTimer&&(clearTimeout(this.timer),this.timer=setTimeout((function(){r.cancel()}),this.opts.jitter||300)),this.opts.strategy===J.SentinelMsg&&e&&0===e.data.length&&this.cancel())}}])}(fe),pe=function(t){function e(t,r){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{timeout:1e3},s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return M(this,e),L(n=p(this,e,[t,r,s]),"deferred",void 0),L(n,"timer",void 0),n.deferred=ht(),n.timer=at(i.timeout,s),n}return _(e,t),k(e,[{key:"resolver",value:function(t,e){this.timer&&this.timer.cancel(),t?(this.ctx&&(t.stack+="\n\n".concat(this.ctx.stack)),this.deferred.reject(t)):this.deferred.resolve(e),this.cancel()}},{key:"cancel",value:function(t){this.timer&&this.timer.cancel(),this.mux.cancel(this),this.deferred.reject(t||Z.errorForCode(F.Cancelled))}}])}(fe);var _e,ye=function(){return k((function t(e,r){M(this,t),L(this,"nc",void 0),L(this,"opts",void 0),L(this,"prefix",void 0),L(this,"timeout",void 0),L(this,"jc",void 0),this.nc=e,this.opts=function(t){return(t=t||{}).domain&&(t.apiPrefix="$JS.".concat(t.domain,".API"),delete t.domain),it({apiPrefix:"$JS.API",timeout:5e3},t)}(r),this._parseOpts(),this.prefix=this.opts.apiPrefix,this.timeout=this.opts.timeout,this.jc=bt()}),[{key:"getOptions",value:function(){return Object.assign({},this.opts)}},{key:"_parseOpts",value:function(){var t=this.opts.apiPrefix;if(!t||0===t.length)throw new Error("invalid empty prefix");"."===t[t.length-1]&&(t=t.substr(0,t.length-1)),this.opts.apiPrefix=t}},{key:"_request",value:(e=m(l().mark((function t(e){var r,n,i,s,a,o,u,h,c=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=c.length>1&&void 0!==c[1]?c[1]:null,(n=(n=c.length>2?c[2]:void 0)||{}).timeout=this.timeout,i=A,r&&(i=this.jc.encode(r)),s=-1===(s=(s=n.retries)||1)?Number.MAX_SAFE_INTEGER:s,a=lt(),o=0;case 11:if(!(o=this.pageInfo.total)){t.next=4;break}return t.abrupt("return",[]);case 4:return e={offset:this.offset},this.payload&&Object.assign(e,this.payload),t.prev=6,t.next=9,this.jsm._request(this.subject,e,{timeout:this.jsm.timeout});case 9:if(r=t.sent,this.pageInfo=r,0!==(n=this.countResponse(r))){t.next=14;break}return t.abrupt("return",[]);case 14:return this.offset+=n,i=this.filter(r),t.abrupt("return",i);case 19:throw t.prev=19,t.t0=t.catch(6),this.err=t.t0,t.t0;case 23:case"end":return t.stop()}}),t,this,[[6,19]])}))),function(){return t.apply(this,arguments)})},{key:"countResponse",value:function(t){var e,r,i;switch(null==t?void 0:t.type){case"io.nats.jetstream.api.v1.stream_names_response":case"io.nats.jetstream.api.v1.stream_list_response":return(null===(e=t.streams)||void 0===e?void 0:e.length)||0;case"io.nats.jetstream.api.v1.consumer_list_response":return(null===(r=t.consumers)||void 0===r?void 0:r.length)||0;default:return n.error("jslister.ts: unknown API response for paged output: ".concat(null==t?void 0:t.type)),(null===(i=t.streams)||void 0===i?void 0:i.length)||0}return 0}},{key:Symbol.asyncIterator,value:function(){var t=this;return D(l().mark((function e(){var r,n,i,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(t.next());case 2:r=e.sent;case 3:if(!(r.length>0)){e.next=26;break}n=h(r),e.prev=5,n.s();case 7:if((i=n.n()).done){e.next=13;break}return s=i.value,e.next=11,s;case 11:e.next=7;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:return e.next=23,T(t.next());case 23:r=e.sent,e.next=3;break;case 26:case"end":return e.stop()}}),e,null,[[5,15,18,21]])})))()}}]);var t}();function ge(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.match(/(\d+).(\d+).(\d+)/);if(e)return{major:parseInt(e[1]),minor:parseInt(e[2]),micro:parseInt(e[3])};throw new Error("'".concat(t,"' is not a semver value"))}function be(t,e){return t.majore.major?1:t.minore.minor?1:t.microe.micro?1:0}!function(t){t.JS_KV="js_kv",t.JS_OBJECTSTORE="js_objectstore",t.JS_PULL_MAX_BYTES="js_pull_max_bytes",t.JS_NEW_CONSUMER_CREATE_API="js_new_consumer_create",t.JS_ALLOW_DIRECT="js_allow_direct",t.JS_MULTIPLE_CONSUMER_FILTER="js_multiple_consumer_filter",t.JS_SIMPLIFICATION="js_simplification",t.JS_STREAM_CONSUMER_METADATA="js_stream_consumer_metadata",t.JS_CONSUMER_FILTER_SUBJECTS="js_consumer_filter_subjects",t.JS_STREAM_FIRST_SEQ="js_stream_first_seq",t.JS_STREAM_SUBJECT_TRANSFORM="js_stream_subject_transform",t.JS_STREAM_SOURCE_SUBJECT_TRANSFORM="js_stream_source_subject_transform",t.JS_STREAM_COMPRESSION="js_stream_compression",t.JS_DEFAULT_CONSUMER_LIMITS="js_default_consumer_limits",t.JS_BATCH_DIRECT_GET="js_batch_direct_get"}(_e||(_e={}));var Me=function(){return k((function t(e){M(this,t),L(this,"server",void 0),L(this,"features",void 0),L(this,"disabled",void 0),this.features=new Map,this.disabled=[],this.update(e)}),[{key:"resetDisabled",value:function(){this.disabled.length=0,this.update(this.server)}},{key:"disable",value:function(t){this.disabled.push(t),this.update(this.server)}},{key:"isDisabled",value:function(t){return-1!==this.disabled.indexOf(t)}},{key:"update",value:function(t){var e=this;"string"==typeof t&&(t=ge(t)),this.server=t,this.set(_e.JS_KV,"2.6.2"),this.set(_e.JS_OBJECTSTORE,"2.6.3"),this.set(_e.JS_PULL_MAX_BYTES,"2.8.3"),this.set(_e.JS_NEW_CONSUMER_CREATE_API,"2.9.0"),this.set(_e.JS_ALLOW_DIRECT,"2.9.0"),this.set(_e.JS_MULTIPLE_CONSUMER_FILTER,"2.10.0"),this.set(_e.JS_SIMPLIFICATION,"2.9.4"),this.set(_e.JS_STREAM_CONSUMER_METADATA,"2.10.0"),this.set(_e.JS_CONSUMER_FILTER_SUBJECTS,"2.10.0"),this.set(_e.JS_STREAM_FIRST_SEQ,"2.10.0"),this.set(_e.JS_STREAM_SUBJECT_TRANSFORM,"2.10.0"),this.set(_e.JS_STREAM_SOURCE_SUBJECT_TRANSFORM,"2.10.0"),this.set(_e.JS_STREAM_COMPRESSION,"2.10.0"),this.set(_e.JS_DEFAULT_CONSUMER_LIMITS,"2.10.0"),this.set(_e.JS_BATCH_DIRECT_GET,"2.11.0"),this.disabled.forEach((function(t){e.features.delete(t)}))}},{key:"set",value:function(t,e){this.features.set(t,{min:e,ok:be(this.server,ge(e))>=0})}},{key:"get",value:function(t){return this.features.get(t)||{min:"unknown",ok:!1}}},{key:"supports",value:function(t){var e;return(null===(e=this.get(t))||void 0===e?void 0:e.ok)||!1}},{key:"require",value:function(t){return"string"==typeof t&&(t=ge(t)),be(this.server,t)>=0}}])}(),we=function(t){function e(t,r){return M(this,e),p(this,e,[t,r])}return _(e,t),k(e,[{key:"add",value:(s=m(l().mark((function t(e,r){var n,i,s,a,o,u,h,c,d,f,m,p,_,y,v,g,b,M,w,k,L=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=L.length>2&&void 0!==L[2]?L[2]:Bt.Create,St(e),!r.deliver_group||!r.flow_control){t.next=4;break}throw new Error("jetstream flow control is not supported with queue groups");case 4:if(!r.deliver_group||!r.idle_heartbeat){t.next=6;break}throw new Error("jetstream idle heartbeat is not supported with queue groups");case 6:if((i={}).config=r,i.stream_name=e,i.action=n,i.config.durable_name&&Lt(i.config.durable_name),s=this.nc,a=s.features.get(_e.JS_NEW_CONSUMER_CREATE_API),o=a.min,u=a.ok,!(h=""===r.name?void 0:r.name)||u){t.next=16;break}throw new Error("consumer 'name' requires server ".concat(o));case 16:if(!h){t.next=28;break}t.prev=17,xt("name",h),t.next=28;break;case 21:if(t.prev=21,t.t0=t.catch(17),c=t.t0.message,-1===(d=c.indexOf("cannot contain"))){t.next=27;break}throw new Error("consumer 'name' ".concat(c.substring(d)));case 27:throw t.t0;case 28:if(m="",!Array.isArray(r.filter_subjects)){t.next=34;break}if(p=s.features.get(_e.JS_MULTIPLE_CONSUMER_FILTER),_=p.min,p.ok){t.next=33;break}throw new Error("consumer 'filter_subjects' requires server ".concat(_));case 33:u=!1;case 34:if(!r.metadata){t.next=38;break}if(y=s.features.get(_e.JS_STREAM_CONSUMER_METADATA),v=y.min,y.ok){t.next=38;break}throw new Error("consumer 'metadata' requires server ".concat(v));case 38:return u&&(m=null!==(g=null!==(b=r.name)&&void 0!==b?b:r.durable_name)&&void 0!==g?g:""),""!==m?(">"===(w=null!==(M=r.filter_subject)&&void 0!==M?M:void 0)&&(w=void 0),f=void 0!==w?"".concat(this.prefix,".CONSUMER.CREATE.").concat(e,".").concat(m,".").concat(w):"".concat(this.prefix,".CONSUMER.CREATE.").concat(e,".").concat(m)):f=r.durable_name?"".concat(this.prefix,".CONSUMER.DURABLE.CREATE.").concat(e,".").concat(r.durable_name):"".concat(this.prefix,".CONSUMER.CREATE.").concat(e),t.next=42,this._request(f,i);case 42:return k=t.sent,t.abrupt("return",k);case 44:case"end":return t.stop()}}),t,this,[[17,21]])}))),function(t,e){return s.apply(this,arguments)})},{key:"update",value:(i=m(l().mark((function t(e,r,n){var i,s;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.info(e,r);case 2:return i=t.sent,s=n,t.abrupt("return",this.add(e,Object.assign(i.config,s),Bt.Update));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return i.apply(this,arguments)})},{key:"info",value:(n=m(l().mark((function t(e,r){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return St(e),Lt(r),t.next=4,this._request("".concat(this.prefix,".CONSUMER.INFO.").concat(e,".").concat(r));case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"delete",value:(r=m(l().mark((function t(e,r){var n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return St(e),Lt(r),t.next=4,this._request("".concat(this.prefix,".CONSUMER.DELETE.").concat(e,".").concat(r));case 4:return n=t.sent,i=n,t.abrupt("return",i.success);case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"list",value:function(t){St(t);var e="".concat(this.prefix,".CONSUMER.LIST.").concat(t);return new ve(e,(function(t){return t.consumers}),this)}},{key:"pause",value:function(t,e,r){var n="".concat(this.prefix,".CONSUMER.PAUSE.").concat(t,".").concat(e),i={pause_until:r.toISOString()};return this._request(n,i)}},{key:"resume",value:function(t,e){return this.pause(t,e,new Date(0))}}]);var r,n,i,s}(ye);function ke(t,e){if(!0===(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&!t)throw Z.errorForCode(F.ApiError,new Error("".concat(e," is not a function")));if(t&&"function"!=typeof t)throw Z.errorForCode(F.ApiError,new Error("".concat(e," is not a function")))}var Le,Se=function(t){function e(t,r,n){var i;M(this,e),L(i=p(this,e),"sub",void 0),L(i,"adapter",void 0),L(i,"subIterDone",void 0),ke(n.adapter,"adapter",!0),i.adapter=n.adapter,n.callback&&ke(n.callback,"callback"),i.noIterator="function"==typeof n.callback,n.ingestionFilterFn&&(ke(n.ingestionFilterFn,"ingestionFilterFn"),i.ingestionFilterFn=n.ingestionFilterFn),n.protocolFilterFn&&(ke(n.protocolFilterFn,"protocolFilterFn"),i.protocolFilterFn=n.protocolFilterFn),n.dispatchedFn&&(ke(n.dispatchedFn,"dispatchedFn"),i.dispatchedFn=n.dispatchedFn),n.cleanupFn&&ke(n.cleanupFn,"cleanupFn");var s=function(t,e){i.callback(t,e)};if(n.callback){var a=n.callback;s=function(t,e){var r=u(i.adapter(t,e),2),n=r[0],s=r[1];n?a(n,null):(i.ingestionFilterFn?i.ingestionFilterFn(s,i):{ingest:!0}).ingest&&(!i.protocolFilterFn||i.protocolFilterFn(s))&&(a(n,s),i.dispatchedFn&&s&&i.dispatchedFn(s))}}var o,h=n.max,c={queue:n.queue,timeout:n.timeout,callback:s};return h&&h>0&&(c.max=h),i.sub=t.subscribe(r,c),n.cleanupFn&&(i.sub.cleanupFn=n.cleanupFn),i.noIterator||i.iterClosed.then((function(){i.unsubscribe()})),i.subIterDone=ht(),Promise.all([i.sub.closed,i.iterClosed]).then((function(){i.subIterDone.resolve()})).catch((function(){i.subIterDone.resolve()})),(o=m(l().mark((function t(e){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.closed;case 2:i.stop();case 3:case"end":return t.stop()}}),t)}))),function(t){return o.apply(this,arguments)})(i.sub).then().catch(),i}return _(e,t),k(e,[{key:"unsubscribe",value:function(t){this.sub.unsubscribe(t)}},{key:"drain",value:function(){return this.sub.drain()}},{key:"isDraining",value:function(){return this.sub.isDraining()}},{key:"isClosed",value:function(){return this.sub.isClosed()}},{key:"callback",value:function(t,e){this.sub.cancelTimeout();var r=u(this.adapter(t,e),2),n=r[0],i=r[1];n&&this.stop(n),i&&this.push(i)}},{key:"getSubject",value:function(){return this.sub.getSubject()}},{key:"getReceived",value:function(){return this.sub.getReceived()}},{key:"getProcessed",value:function(){return this.sub.getProcessed()}},{key:"getPending",value:function(){return this.sub.getPending()}},{key:"getID",value:function(){return this.sub.getID()}},{key:"getMax",value:function(){return this.sub.getMax()}},{key:"closed",get:function(){return this.sub.closed}}])}(Jt);function xe(){return void 0!==Le&&void 0!==Le.defaultPort?Le.defaultPort:4222}function Ye(){return void 0!==Le&&Le.urlParseFn?Le.urlParseFn:void 0}function Te(){return void 0!==Le&&Le.dnsResolveFn?Le.dnsResolveFn:void 0}var De="\r\n",Ee=te.fromAscii(De),je=new Uint8Array(Ee)[0],Ae=new Uint8Array(Ee)[1];function Oe(t){var e=function(t){for(var e=0;er&&t[e]===je&&t[r]===Ae)return r+1}return 0}(t);if(e>0){var r=new Uint8Array(t).slice(0,e);return P.decode(r)}return""}var Pe=4,Re=48,He=65,Ie=97;function Ce(t){return void 0!==function(t){for(var e=0;e0){if("."!==t[0])return;t=t.substring(1)}var n=qe(t),i=n.n,s=n.c;if(!n.ok||i>255)return;t=t.substring(s),e[r]=i}return function(t,e,r,n){var i=new Uint8Array(16);return[0,0,0,0,0,0,0,0,0,0,255,255].forEach((function(t,e){i[e]=t})),i[12]=t,i[13]=e,i[14]=r,i[15]=n,i}(e[0],e[1],e[2],e[3])}function Be(t){var e=new Uint8Array(16),r=-1;if(t.length>=2&&":"===t[0]&&":"===t[1]&&(r=0,0===(t=t.substring(2)).length))return e;for(var n=0;n<16;){var i=Fe(t),s=i.n,a=i.c;if(!i.ok||s>65535)return;if(a16)return;var o=Ne(t);if(void 0===o)return;e[n]=o[12],e[n+1]=o[13],e[n+2]=o[14],e[n+3]=o[15],t="",n+=Pe;break}if(e[n]=s>>8,e[n+1]=s,n+=2,0===(t=t.substring(a)).length)break;if(":"!==t[0]||1==t.length)return;if(":"===(t=t.substring(1))[0]){if(r>=0)return;if(r=n,0===(t=t.substring(1)).length)break}}if(0===t.length){if(n<16){if(r<0)return;for(var u=16-n,h=n-1;h>=r;h--)e[h+u]=e[h];for(var c=r+u-1;c>=r;c--)e[c]=0}else if(r>=0)return;return e}}function qe(t){var e=0,r=0;for(e=0;e=16777215)return{n:16777215,c:e,ok:!1};return 0===e?{n:0,c:0,ok:!1}:{n:r,c:e,ok:!0}}function Fe(t){var e=0,r=0;for(r=0;r=16777215)return{n:0,c:r,ok:!1}}return 0===r?{n:0,c:r,ok:!1}:{n:e,c:r,ok:!0}}function Ue(t){return!function(t){return-1===t.indexOf("[")&&-1===t.indexOf("::")&&(-1!==t.indexOf(".")||t.split(":").length<=2)}(t)}var ze=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];M(this,t),L(this,"src",void 0),L(this,"listen",void 0),L(this,"hostname",void 0),L(this,"port",void 0),L(this,"didConnect",void 0),L(this,"reconnects",void 0),L(this,"lastConnect",void 0),L(this,"gossiped",void 0),L(this,"tlsName",void 0),L(this,"resolves",void 0),this.src=e,this.tlsName="";var n=function(t){(t=t.trim()).match(/^(.*:\/\/)(.*)/m)&&(t=t.replace(/^(.*:\/\/)(.*)/gm,"$2")),Ue(t=function(t){var e="::FFFF:",r=t.toUpperCase().indexOf(e);if(-1!==r&&-1!==t.indexOf(".")){var n=t.substring(r+7);return(n=n.replace("[","")).replace("]","")}return t}(t))&&-1===t.indexOf("[")&&(t="[".concat(t,"]"));var e=Ue(t)?t.match(/(]:)(\d+)/):t.match(/(:)(\d+)/),r=e&&3===e.length&&e[1]&&e[2]?parseInt(e[2]):4222,n=new URL("".concat(80===r?"https":"http","://").concat(t));n.port="".concat(r);var i=n.hostname;return"["===i.charAt(0)&&(i=i.substring(1,i.length-1)),{listen:n.host,hostname:i,port:r}}(e);this.listen=n.listen,this.hostname=n.hostname,this.port=n.port,this.didConnect=!1,this.reconnects=0,this.lastConnect=0,this.gossiped=r}return k(t,[{key:"toString",value:function(){return this.listen}},{key:"resolve",value:(e=m(l().mark((function e(r){var n,i,s,a,o,u,c,d;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.fn&&!1!==r.resolve){e.next=2;break}return e.abrupt("return",[this]);case 2:if(n=[],!Ce(this.hostname)){e.next=7;break}return e.abrupt("return",[this]);case 7:return e.next=9,r.fn(this.hostname);case 9:i=e.sent,r.debug&&"resolve ".concat(this.hostname," = ").concat(i.join(",")),s=h(i);try{for(s.s();!(a=s.n()).done;)o=a.value,u=80===this.port?"https":"http",(c=new URL("".concat(u,"://").concat(Ue(o)?"["+o+"]":o))).port="".concat(this.port),(d=new t(c.host,!1)).tlsName=this.hostname,n.push(d)}catch(t){s.e(t)}finally{s.f()}case 13:return r.randomize&&ct(n),this.resolves=n,e.abrupt("return",n);case 16:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})}]);var e}(),We=function(){return k((function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};M(this,t),L(this,"firstSelect",void 0),L(this,"servers",void 0),L(this,"currentServer",void 0),L(this,"tlsName",void 0),L(this,"randomize",void 0),this.firstSelect=!0,this.servers=[],this.tlsName="",this.randomize=n.randomize||!1;var i=Ye();r&&(r.forEach((function(t){t=i?i(t):t,e.servers.push(new ze(t))})),this.randomize&&(this.servers=ct(this.servers))),0===this.servers.length&&this.addServer("".concat(nt,":").concat(xe()),!1),this.currentServer=this.servers[0]}),[{key:"clear",value:function(){this.servers.length=0}},{key:"updateTLSName",value:function(){var t=this,e=this.getCurrentServer();Ce(e.hostname)||(this.tlsName=e.hostname,this.servers.forEach((function(e){e.gossiped&&(e.tlsName=t.tlsName)})))}},{key:"getCurrentServer",value:function(){return this.currentServer}},{key:"addServer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Ye();t=r?r(t):t;var n=new ze(t,e);Ce(n.hostname)&&(n.tlsName=this.tlsName),this.servers.push(n)}},{key:"selectServer",value:function(){if(this.firstSelect)return this.firstSelect=!1,this.currentServer;var t=this.servers.shift();return t&&(this.servers.push(t),this.currentServer=t),t}},{key:"removeCurrentServer",value:function(){this.removeServer(this.currentServer)}},{key:"removeServer",value:function(t){if(t){var e=this.servers.indexOf(t);this.servers.splice(e,1)}}},{key:"length",value:function(){return this.servers.length}},{key:"next",value:function(){return this.servers.length?this.servers[0]:void 0}},{key:"getServers",value:function(){return this.servers}},{key:"update",value:function(t,e){var r=this,n=[],i=[],s=Ye(),a=new Map;t.connect_urls&&t.connect_urls.length>0&&t.connect_urls.forEach((function(t){t=s?s(t,e):t;var r=new ze(t,!0);a.set(t,r)}));var o=[];return this.servers.forEach((function(t,e){var n=t.listen;t.gossiped&&r.currentServer.listen!==n&&void 0===a.get(n)&&o.push(e),a.delete(n)})),o.reverse(),o.forEach((function(t){var e=r.servers.splice(t,1);i=i.concat(e[0].listen)})),a.forEach((function(t,e){r.servers.push(t),n.push(e)})),{added:n,deleted:i}}}])}(),Je=function(){return k((function t(){M(this,t),L(this,"baseInbox",void 0),L(this,"reqs",void 0),this.reqs=new Map}),[{key:"size",value:function(){return this.reqs.size}},{key:"init",value:function(t){return this.baseInbox="".concat(et(t),"."),this.baseInbox}},{key:"add",value:function(t){isNaN(t.received)||(t.received=0),this.reqs.set(t.token,t)}},{key:"get",value:function(t){return this.reqs.get(t)}},{key:"cancel",value:function(t){this.reqs.delete(t.token)}},{key:"getToken",value:function(t){var e=t.subject||"";return 0===e.indexOf(this.baseInbox)?e.substring(this.baseInbox.length):null}},{key:"all",value:function(){return Array.from(this.reqs.values())}},{key:"handleError",value:function(t,e){if(e&&e.permissionContext){if(t)return this.all().forEach((function(t){t.resolver(e,{})})),!0;var r=e.permissionContext;if("publish"===r.operation){var n=this.all().find((function(t){return t.requestSubject===r.subject}));if(n)return n.resolver(e,{}),!0}}return!1}},{key:"dispatcher",value:function(){var t=this;return function(e,r){var n=t.getToken(r);if(n){var i=t.get(n);i&&(null===e&&r.headers&&(e=Mt(r)),i.resolver(e,r))}}}},{key:"close",value:function(){var t=Z.errorForCode(F.Timeout);this.reqs.forEach((function(e){e.resolver(t,{})}))}}])}(),Ge=function(){return k((function t(e,r,n){M(this,t),L(this,"ph",void 0),L(this,"interval",void 0),L(this,"maxOut",void 0),L(this,"timer",void 0),L(this,"pendings",void 0),this.ph=e,this.interval=r,this.maxOut=n,this.pendings=[]}),[{key:"start",value:function(){this.cancel(),this._schedule()}},{key:"cancel",value:function(t){this.timer&&(clearTimeout(this.timer),this.timer=void 0),this._reset(),t&&this.ph.disconnect()}},{key:"_schedule",value:function(){var t=this;this.timer=setTimeout((function(){if(t.ph.dispatchStatus({type:q.PingTimer,data:"".concat(t.pendings.length+1)}),t.pendings.length!==t.maxOut){var e=ht();t.ph.flush(e).then((function(){t._reset()})).catch((function(){t.cancel()})),t.pendings.push(e),t._schedule()}else t.cancel(!0)}),this.interval)}},{key:"_reset",value:function(){this.pendings=this.pendings.filter((function(t){return t.resolve(),!1}))}}])}(),Ke=function(t){function e(t){var r;return M(this,e),(r=p(this,e,[t])).name="AssertionError",r}return _(e,t),k(e)}(y(Error));var Ve=Math.pow(2,32)-2;function Ze(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.byteLength-r;return t.byteLength>n&&(t=t.subarray(0,n)),e.set(t,r),t.byteLength}var $e,Xe=function(){return k((function t(e){M(this,t),L(this,"_buf",void 0),L(this,"_off",void 0),this._off=0,this._buf=null!=e?new Uint8Array(e):new Uint8Array(0)}),[{key:"bytes",value:function(){return!1===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{copy:!0}).copy?this._buf.subarray(this._off):this._buf.slice(this._off)}},{key:"empty",value:function(){return this._buf.byteLength<=this._off}},{key:"length",get:function(){return this._buf.byteLength-this._off}},{key:"capacity",get:function(){return this._buf.buffer.byteLength}},{key:"truncate",value:function(t){if(0!==t){if(t<0||t>this.length)throw Error("bytes.Buffer: truncation out of range");this._reslice(this._off+t)}else this.reset()}},{key:"reset",value:function(){this._reslice(0),this._off=0}},{key:"_tryGrowByReslice",value:function(t){var e=this._buf.byteLength;return t<=this.capacity-e?(this._reslice(e+t),e):-1}},{key:"_reslice",value:function(t){!function(t){if(!t)throw new Ke(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Assertion failed.")}(t<=this._buf.buffer.byteLength),this._buf=new Uint8Array(this._buf.buffer,0,t)}},{key:"readByte",value:function(){var t=new Uint8Array(1);return this.read(t)?t[0]:null}},{key:"read",value:function(t){if(this.empty())return this.reset(),0===t.byteLength?0:null;var e=Ze(this._buf.subarray(this._off),t);return this._off+=e,e}},{key:"writeByte",value:function(t){return this.write(Uint8Array.of(t))}},{key:"writeString",value:function(t){return this.write(O.encode(t))}},{key:"write",value:function(t){var e=this._grow(t.byteLength);return Ze(t,this._buf,e)}},{key:"_grow",value:function(t){var e=this.length;0===e&&0!==this._off&&this.reset();var r=this._tryGrowByReslice(t);if(r>=0)return r;var n=this.capacity;if(t<=Math.floor(n/2)-e)Ze(this._buf.subarray(this._off),this._buf);else{if(n+t>Ve)throw new Error("The buffer cannot be grown beyond the maximum size.");var i=new Uint8Array(Math.min(2*n+t,Ve));Ze(this._buf.subarray(this._off),i),this._buf=i}return this._off=0,this._reslice(Math.min(e+t,Ve)),e}},{key:"grow",value:function(t){if(t<0)throw Error("Buffer._grow: negative count");var e=this._grow(t);this._reslice(e)}},{key:"readFrom",value:function(t){for(var e=0,r=new Uint8Array(32768);;){var n=this.capacity-this.length<32768,i=n?r:new Uint8Array(this._buf.buffer,this.length),s=t.read(i);if(null===s)return e;n?this.write(i.subarray(0,s)):this._reslice(this.length+s),e+=s}}}])}();function Qe(){var t={sid:-1,hdr:-1,size:-1};return t}!function(t){t[t.OK=0]="OK",t[t.ERR=1]="ERR",t[t.MSG=2]="MSG",t[t.INFO=3]="INFO",t[t.PING=4]="PING",t[t.PONG=5]="PONG"}($e||($e={}));var tr,er,rr=function(){return k((function t(e){M(this,t),L(this,"dispatcher",void 0),L(this,"state",void 0),L(this,"as",void 0),L(this,"drop",void 0),L(this,"hdr",void 0),L(this,"ma",void 0),L(this,"argBuf",void 0),L(this,"msgBuf",void 0),this.dispatcher=e,this.state=tr.OP_START,this.as=0,this.drop=0,this.hdr=0}),[{key:"parse",value:function(t){var e;for(e=0;e=this.ma.size){var i=this.msgBuf.bytes({copy:!1});this.dispatcher.push({kind:$e.MSG,msg:this.ma,data:i}),this.argBuf=void 0,this.msgBuf=void 0,this.state=tr.MSG_END}else{var s=this.ma.size-this.msgBuf.length,a=t.length-e;a0?(this.msgBuf.write(t.subarray(e,e+s)),e=e+s-1):this.msgBuf.writeByte(r)}else e-this.as>=this.ma.size&&(this.dispatcher.push({kind:$e.MSG,msg:this.ma,data:t.subarray(this.as,e)}),this.argBuf=void 0,this.msgBuf=void 0,this.state=tr.MSG_END);break;case tr.MSG_END:if(r!==er.NL)continue;this.drop=0,this.as=e+1,this.state=tr.OP_START;break;case tr.OP_PLUS:switch(r){case er.O:case er.o:this.state=tr.OP_PLUS_O;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_PLUS_O:switch(r){case er.K:case er.k:this.state=tr.OP_PLUS_OK;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_PLUS_OK:if(r===er.NL)this.dispatcher.push({kind:$e.OK}),this.drop=0,this.state=tr.OP_START;break;case tr.OP_MINUS:switch(r){case er.E:case er.e:this.state=tr.OP_MINUS_E;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_MINUS_E:switch(r){case er.R:case er.r:this.state=tr.OP_MINUS_ER;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_MINUS_ER:switch(r){case er.R:case er.r:this.state=tr.OP_MINUS_ERR;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_MINUS_ERR:switch(r){case er.SPACE:case er.TAB:this.state=tr.OP_MINUS_ERR_SPC;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_MINUS_ERR_SPC:switch(r){case er.SPACE:case er.TAB:continue;default:this.state=tr.MINUS_ERR_ARG,this.as=e}break;case tr.MINUS_ERR_ARG:switch(r){case er.CR:this.drop=1;break;case er.NL:var o=void 0;this.argBuf?(o=this.argBuf.bytes(),this.argBuf=void 0):o=t.subarray(this.as,e-this.drop),this.dispatcher.push({kind:$e.ERR,data:o}),this.drop=0,this.as=e+1,this.state=tr.OP_START;break;default:this.argBuf&&this.argBuf.write(Uint8Array.of(r))}break;case tr.OP_P:switch(r){case er.I:case er.i:this.state=tr.OP_PI;break;case er.O:case er.o:this.state=tr.OP_PO;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_PO:switch(r){case er.N:case er.n:this.state=tr.OP_PON;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_PON:switch(r){case er.G:case er.g:this.state=tr.OP_PONG;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_PONG:if(r===er.NL)this.dispatcher.push({kind:$e.PONG}),this.drop=0,this.state=tr.OP_START;break;case tr.OP_PI:switch(r){case er.N:case er.n:this.state=tr.OP_PIN;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_PIN:switch(r){case er.G:case er.g:this.state=tr.OP_PING;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_PING:if(r===er.NL)this.dispatcher.push({kind:$e.PING}),this.drop=0,this.state=tr.OP_START;break;case tr.OP_I:switch(r){case er.N:case er.n:this.state=tr.OP_IN;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_IN:switch(r){case er.F:case er.f:this.state=tr.OP_INF;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_INF:switch(r){case er.O:case er.o:this.state=tr.OP_INFO;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_INFO:switch(r){case er.SPACE:case er.TAB:this.state=tr.OP_INFO_SPC;break;default:throw this.fail(t.subarray(e))}break;case tr.OP_INFO_SPC:switch(r){case er.SPACE:case er.TAB:continue;default:this.state=tr.INFO_ARG,this.as=e}break;case tr.INFO_ARG:switch(r){case er.CR:this.drop=1;break;case er.NL:var u=void 0;this.argBuf?(u=this.argBuf.bytes(),this.argBuf=void 0):u=t.subarray(this.as,e-this.drop),this.dispatcher.push({kind:$e.INFO,data:u}),this.drop=0,this.as=e+1,this.state=tr.OP_START;break;default:this.argBuf&&this.argBuf.writeByte(r)}break;default:throw this.fail(t.subarray(e))}}this.state!==tr.MSG_ARG&&this.state!==tr.MINUS_ERR_ARG&&this.state!==tr.INFO_ARG||this.argBuf||(this.argBuf=new Xe(t.subarray(this.as,e-this.drop))),this.state!==tr.MSG_PAYLOAD||this.msgBuf||(this.argBuf||this.cloneMsgArg(),this.msgBuf=new Xe(t.subarray(this.as)))}},{key:"cloneMsgArg",value:function(){var t=this.ma.subject.length,e=this.ma.reply?this.ma.reply.length:0,r=new Uint8Array(t+e);r.set(this.ma.subject),this.ma.reply&&r.set(this.ma.reply,t),this.argBuf=new Xe(r),this.ma.subject=r.subarray(0,t),this.ma.reply&&(this.ma.reply=r.subarray(t))}},{key:"processMsgArgs",value:function(t){if(this.hdr>=0)return this.processHeaderMsgArgs(t);for(var e=[],r=-1,n=0;n=0&&(e.push(t.subarray(r,n)),r=-1);break;default:r<0&&(r=n)}}switch(r>=0&&e.push(t.subarray(r)),e.length){case 3:this.ma.subject=e[0],this.ma.sid=this.protoParseInt(e[1]),this.ma.reply=void 0,this.ma.size=this.protoParseInt(e[2]);break;case 4:this.ma.subject=e[0],this.ma.sid=this.protoParseInt(e[1]),this.ma.reply=e[2],this.ma.size=this.protoParseInt(e[3]);break;default:throw this.fail(t,"processMsgArgs Parse Error")}if(this.ma.sid<0)throw this.fail(t,"processMsgArgs Bad or Missing Sid Error");if(this.ma.size<0)throw this.fail(t,"processMsgArgs Bad or Missing Size Error")}},{key:"fail",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=e?"".concat(e," [").concat(this.state,"]"):"parse error [".concat(this.state,"]"),new Error("".concat(e,": ").concat(P.decode(t)))}},{key:"processHeaderMsgArgs",value:function(t){for(var e=[],r=-1,n=0;n=0&&(e.push(t.subarray(r,n)),r=-1);break;default:r<0&&(r=n)}}switch(r>=0&&e.push(t.subarray(r)),e.length){case 4:this.ma.subject=e[0],this.ma.sid=this.protoParseInt(e[1]),this.ma.reply=void 0,this.ma.hdr=this.protoParseInt(e[2]),this.ma.size=this.protoParseInt(e[3]);break;case 5:this.ma.subject=e[0],this.ma.sid=this.protoParseInt(e[1]),this.ma.reply=e[2],this.ma.hdr=this.protoParseInt(e[3]),this.ma.size=this.protoParseInt(e[4]);break;default:throw this.fail(t,"processHeaderMsgArgs Parse Error")}if(this.ma.sid<0)throw this.fail(t,"processHeaderMsgArgs Bad or Missing Sid Error");if(this.ma.hdr<0||this.ma.hdr>this.ma.size)throw this.fail(t,"processHeaderMsgArgs Bad or Missing Header Size Error");if(this.ma.size<0)throw this.fail(t,"processHeaderMsgArgs Bad or Missing Size Error")}},{key:"protoParseInt",value:function(t){if(0===t.length)return-1;for(var e=0,r=0;r57)return-1;e=10*e+(t[r]-48)}return e}}])}();!function(t){t[t.OP_START=0]="OP_START",t[t.OP_PLUS=1]="OP_PLUS",t[t.OP_PLUS_O=2]="OP_PLUS_O",t[t.OP_PLUS_OK=3]="OP_PLUS_OK",t[t.OP_MINUS=4]="OP_MINUS",t[t.OP_MINUS_E=5]="OP_MINUS_E",t[t.OP_MINUS_ER=6]="OP_MINUS_ER",t[t.OP_MINUS_ERR=7]="OP_MINUS_ERR",t[t.OP_MINUS_ERR_SPC=8]="OP_MINUS_ERR_SPC",t[t.MINUS_ERR_ARG=9]="MINUS_ERR_ARG",t[t.OP_M=10]="OP_M",t[t.OP_MS=11]="OP_MS",t[t.OP_MSG=12]="OP_MSG",t[t.OP_MSG_SPC=13]="OP_MSG_SPC",t[t.MSG_ARG=14]="MSG_ARG",t[t.MSG_PAYLOAD=15]="MSG_PAYLOAD",t[t.MSG_END=16]="MSG_END",t[t.OP_H=17]="OP_H",t[t.OP_P=18]="OP_P",t[t.OP_PI=19]="OP_PI",t[t.OP_PIN=20]="OP_PIN",t[t.OP_PING=21]="OP_PING",t[t.OP_PO=22]="OP_PO",t[t.OP_PON=23]="OP_PON",t[t.OP_PONG=24]="OP_PONG",t[t.OP_I=25]="OP_I",t[t.OP_IN=26]="OP_IN",t[t.OP_INF=27]="OP_INF",t[t.OP_INFO=28]="OP_INFO",t[t.OP_INFO_SPC=29]="OP_INFO_SPC",t[t.INFO_ARG=30]="INFO_ARG"}(tr||(tr={})),function(t){t[t.CR="\r".charCodeAt(0)]="CR",t[t.E="E".charCodeAt(0)]="E",t[t.e="e".charCodeAt(0)]="e",t[t.F="F".charCodeAt(0)]="F",t[t.f="f".charCodeAt(0)]="f",t[t.G="G".charCodeAt(0)]="G",t[t.g="g".charCodeAt(0)]="g",t[t.H="H".charCodeAt(0)]="H",t[t.h="h".charCodeAt(0)]="h",t[t.I="I".charCodeAt(0)]="I",t[t.i="i".charCodeAt(0)]="i",t[t.K="K".charCodeAt(0)]="K",t[t.k="k".charCodeAt(0)]="k",t[t.M="M".charCodeAt(0)]="M",t[t.m="m".charCodeAt(0)]="m",t[t.MINUS="-".charCodeAt(0)]="MINUS",t[t.N="N".charCodeAt(0)]="N",t[t.n="n".charCodeAt(0)]="n",t[t.NL="\n".charCodeAt(0)]="NL",t[t.O="O".charCodeAt(0)]="O",t[t.o="o".charCodeAt(0)]="o",t[t.P="P".charCodeAt(0)]="P",t[t.p="p".charCodeAt(0)]="p",t[t.PLUS="+".charCodeAt(0)]="PLUS",t[t.R="R".charCodeAt(0)]="R",t[t.r="r".charCodeAt(0)]="r",t[t.S="S".charCodeAt(0)]="S",t[t.s="s".charCodeAt(0)]="s",t[t.SPACE=" ".charCodeAt(0)]="SPACE",t[t.TAB="\t".charCodeAt(0)]="TAB"}(er||(er={})),function(t){var e=function(t,e){this.hi=0|t,this.lo=0|e},n=function(t){var e,r=new Float64Array(16);if(t)for(e=0;e>>32-e}function _(t,e){var r=255&t[e+3];return(r=(r=r<<8|255&t[e+2])<<8|255&t[e+1])<<8|255&t[e+0]}function y(t,r){var n=t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3],i=t[r+4]<<24|t[r+5]<<16|t[r+6]<<8|t[r+7];return new e(n,i)}function v(t,e,r){var n;for(n=0;n<4;n++)t[e+n]=255&r,r>>>=8}function g(t,e,r){t[e]=r.hi>>24&255,t[e+1]=r.hi>>16&255,t[e+2]=r.hi>>8&255,t[e+3]=255&r.hi,t[e+4]=r.lo>>24&255,t[e+5]=r.lo>>16&255,t[e+6]=r.lo>>8&255,t[e+7]=255&r.lo}function b(t,e,r,n,i){var s,a=0;for(s=0;s>>8)-1}function M(t,e,r,n){return b(t,e,r,n,16)}function w(t,e,r,n){return b(t,e,r,n,32)}function k(t,e,r,n,i){var s,a,o,u=new Uint32Array(16),h=new Uint32Array(16),c=new Uint32Array(16),d=new Uint32Array(4);for(s=0;s<4;s++)h[5*s]=_(n,4*s),h[1+s]=_(r,4*s),h[6+s]=_(e,4*s),h[11+s]=_(r,16+4*s);for(s=0;s<16;s++)c[s]=h[s];for(s=0;s<20;s++){for(a=0;a<4;a++){for(o=0;o<4;o++)d[o]=h[(5*a+4*o)%16];for(d[1]^=p(d[0]+d[3]|0,7),d[2]^=p(d[1]+d[0]|0,9),d[3]^=p(d[2]+d[1]|0,13),d[0]^=p(d[3]+d[2]|0,18),o=0;o<4;o++)u[4*a+(a+o)%4]=d[o]}for(o=0;o<16;o++)h[o]=u[o]}if(i){for(s=0;s<16;s++)h[s]=h[s]+c[s]|0;for(s=0;s<4;s++)h[5*s]=h[5*s]-_(n,4*s)|0,h[6+s]=h[6+s]-_(e,4*s)|0;for(s=0;s<4;s++)v(t,4*s,h[5*s]),v(t,16+4*s,h[6+s])}else for(s=0;s<16;s++)v(t,4*s,h[s]+c[s]|0)}function L(t,e,r,n){return k(t,e,r,n,!1),0}function S(t,e,r,n){return k(t,e,r,n,!0),0}var x=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Y(t,e,r,n,i,s,a){var o,u,h=new Uint8Array(16),c=new Uint8Array(64);if(!i)return 0;for(u=0;u<16;u++)h[u]=0;for(u=0;u<8;u++)h[u]=s[u];for(;i>=64;){for(L(c,h,a,x),u=0;u<64;u++)t[e+u]=(r?r[n+u]:0)^c[u];for(o=1,u=8;u<16;u++)o=o+(255&h[u])|0,h[u]=255&o,o>>>=8;i-=64,e+=64,r&&(n+=64)}if(i>0)for(L(c,h,a,x),u=0;u>>=8}var A=new Uint32Array([5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252]);function O(t,e,r,n,i,s){var a,o,u,h,c=new Uint32Array(17),d=new Uint32Array(17),l=new Uint32Array(17),f=new Uint32Array(17),m=new Uint32Array(17);for(u=0;u<17;u++)d[u]=l[u]=0;for(u=0;u<16;u++)d[u]=s[u];for(d[3]&=15,d[4]&=252,d[7]&=15,d[8]&=252,d[11]&=15,d[12]&=252,d[15]&=15;i>0;){for(u=0;u<17;u++)f[u]=0;for(u=0;u<16&&u>>=8;for(h=h+l[16]|0,l[16]=3&h,h=5*(h>>>2)|0,u=0;u<16;u++)h=h+l[u]|0,l[u]=255&h,h>>>=8;h=h+l[16]|0,l[16]=h}for(u=0;u<17;u++)m[u]=l[u];for(j(l,A),a=0|-(l[16]>>>7),u=0;u<17;u++)l[u]^=a&(m[u]^l[u]);for(u=0;u<16;u++)f[u]=s[u+16];for(f[16]=0,j(l,f),u=0;u<16;u++)t[e+u]=l[u];return 0}function P(t,e,r,n,i,s){var a=new Uint8Array(16);return O(a,0,r,n,i,s),M(t,e,a,0)}function R(t,e,r,n,i){var s;if(r<32)return-1;for(E(t,0,e,0,r,n,i),O(t,16,t,32,r-32,t),s=0;s<16;s++)t[s]=0;return 0}function H(t,e,r,n,i){var s,a=new Uint8Array(32);if(r<32)return-1;if(D(a,0,32,n,i),0!==P(e,16,e,32,r-32,a))return-1;for(E(t,0,e,0,r,n,i),s=0;s<32;s++)t[s]=0;return 0}function I(t,e){var r;for(r=0;r<16;r++)t[r]=0|e[r]}function C(t){var e,r;for(r=0;r<16;r++)t[r]+=65536,e=Math.floor(t[r]/65536),t[(r+1)*(r<15?1:0)]+=e-1+37*(e-1)*(15===r?1:0),t[r]-=65536*e}function N(t,e,r){for(var n,i=~(r-1),s=0;s<16;s++)n=i&(t[s]^e[s]),t[s]^=n,e[s]^=n}function B(t,e){var r,i,s,a=n(),o=n();for(r=0;r<16;r++)o[r]=e[r];for(C(o),C(o),C(o),i=0;i<2;i++){for(a[0]=o[0]-65517,r=1;r<15;r++)a[r]=o[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=o[15]-32767-(a[14]>>16&1),s=a[15]>>16&1,a[14]&=65535,N(o,a,1-s)}for(r=0;r<16;r++)t[2*r]=255&o[r],t[2*r+1]=o[r]>>8}function q(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return B(r,t),B(n,e),w(r,0,n,0)}function F(t){var e=new Uint8Array(32);return B(e,t),1&e[0]}function U(t,e){var r;for(r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}function z(t,e,r){var n;for(n=0;n<16;n++)t[n]=e[n]+r[n]|0}function W(t,e,r){var n;for(n=0;n<16;n++)t[n]=e[n]-r[n]|0}function J(t,e,r){var n,i,s=new Float64Array(31);for(n=0;n<31;n++)s[n]=0;for(n=0;n<16;n++)for(i=0;i<16;i++)s[n+i]+=e[n]*r[i];for(n=0;n<15;n++)s[n]+=38*s[n+16];for(n=0;n<16;n++)t[n]=s[n];C(t),C(t)}function G(t,e){J(t,e,e)}function K(t,e){var r,i=n();for(r=0;r<16;r++)i[r]=e[r];for(r=253;r>=0;r--)G(i,i),2!==r&&4!==r&&J(i,i,e);for(r=0;r<16;r++)t[r]=i[r]}function V(t,e){var r,i=n();for(r=0;r<16;r++)i[r]=e[r];for(r=250;r>=0;r--)G(i,i),1!==r&&J(i,i,e);for(r=0;r<16;r++)t[r]=i[r]}function Z(t,e,r){var i,s,a=new Uint8Array(32),o=new Float64Array(80),u=n(),c=n(),d=n(),l=n(),f=n(),m=n();for(s=0;s<31;s++)a[s]=e[s];for(a[31]=127&e[31]|64,a[0]&=248,U(o,r),s=0;s<16;s++)c[s]=o[s],l[s]=u[s]=d[s]=0;for(u[0]=l[0]=1,s=254;s>=0;--s)N(u,c,i=a[s>>>3]>>>(7&s)&1),N(d,l,i),z(f,u,d),W(u,u,d),z(d,c,l),W(c,c,l),G(l,f),G(m,u),J(u,d,u),J(d,c,f),z(f,u,d),W(u,u,d),G(c,u),W(d,l,m),J(u,d,h),z(u,u,l),J(d,d,u),J(u,l,m),J(l,c,o),G(c,f),N(u,c,i),N(d,l,i);for(s=0;s<16;s++)o[s+16]=u[s],o[s+32]=d[s],o[s+48]=c[s],o[s+64]=l[s];var p=o.subarray(32),_=o.subarray(16);return K(p,p),J(_,_,p),B(t,_),0}function $(t,e){return Z(t,e,a)}function X(t,e){return i(e,32),$(t,e)}function Q(t,e,r){var n=new Uint8Array(32);return Z(n,r,e),S(t,s,n,x)}var tt=R,et=H;function rt(){var t,r,n,i=0,s=0,a=0,o=0,u=65535;for(n=0;n>>16,a+=(r=arguments[n].hi)&u,o+=r>>>16;return new e((a+=(s+=i>>>16)>>>16)&u|(o+=a>>>16)<<16,i&u|s<<16)}function nt(t,r){return new e(t.hi>>>r,t.lo>>>r|t.hi<<32-r)}function it(){var t,r=0,n=0;for(t=0;t>>r|t.lo<>>r|t.hi<>>r|t.hi<>>r|t.lo<=128;){for(i=0;i<16;i++)h[i]=y(e,8*i+c);for(i=0;i<80;i++){for(s=0;s<8;s++)o[s]=u[s];for(n=rt(u[7],ht(u[4]),at(u[4],u[5],u[6]),lt[i],h[i%16]),o[7]=rt(n,ut(u[0]),ot(u[0],u[1],u[2])),o[3]=rt(o[3],n),s=0;s<8;s++)u[(s+1)%8]=o[s];if(i%16==15)for(s=0;s<16;s++)h[s]=rt(h[s],h[(s+9)%16],ct(h[(s+1)%16]),dt(h[(s+14)%16]))}for(i=0;i<8;i++)u[i]=rt(u[i],a[i]),a[i]=u[i];c+=128,r-=128}for(i=0;i<8;i++)g(t,8*i,a[i]);return r}var mt=new Uint8Array([106,9,230,103,243,188,201,8,187,103,174,133,132,202,167,59,60,110,243,114,254,148,248,43,165,79,245,58,95,29,54,241,81,14,82,127,173,230,130,209,155,5,104,140,43,62,108,31,31,131,217,171,251,65,189,107,91,224,205,25,19,126,33,121]);function pt(t,r,n){var i,s=new Uint8Array(64),a=new Uint8Array(256),o=n;for(i=0;i<64;i++)s[i]=mt[i];for(ft(s,r,n),n%=128,i=0;i<256;i++)a[i]=0;for(i=0;i=0;--i)yt(t,e,n=r[i/8|0]>>(7&i)&1),_t(e,t),_t(t,t),yt(t,e,n)}function bt(t,e){var r=[n(),n(),n(),n()];I(r[0],l),I(r[1],f),I(r[2],u),J(r[3],l,f),gt(t,r,e)}function Mt(t,e,r){var s,a=new Uint8Array(64),o=[n(),n(),n(),n()];for(r||i(e,32),pt(a,e,32),a[0]&=248,a[31]&=127,a[31]|=64,bt(o,a),vt(t,o),s=0;s<32;s++)e[s+32]=t[s];return 0}var wt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function kt(t,e){var r,n,i,s;for(n=63;n>=32;--n){for(r=0,i=n-32,s=n-12;i>4)*wt[i],r=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=r*wt[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function Lt(t){var e,r=new Float64Array(64);for(e=0;e<64;e++)r[e]=t[e];for(e=0;e<64;e++)t[e]=0;kt(t,r)}function St(t,e,r,i){var s,a,o=new Uint8Array(64),u=new Uint8Array(64),h=new Uint8Array(64),c=new Float64Array(64),d=[n(),n(),n(),n()];pt(o,i,32),o[0]&=248,o[31]&=127,o[31]|=64;var l=r+64;for(s=0;s>7&&W(t[0],o,t[0]),J(t[3],t[0],t[1]),0)}(l,i))return-1;for(s=0;s=0},t.sign.keyPair=function(){var t=new Uint8Array(Dt),e=new Uint8Array(Et);return Mt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(At(t),t.length!==Et)throw new Error("bad secret key size");for(var e=new Uint8Array(Dt),r=0;r>8^n)]}return e}},{key:"validate",value:function(e,r){return t.checksum(e)==r}}])}(),dr="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",lr=function(){return k((function t(){M(this,t)}),null,[{key:"encode",value:function(t){for(var e=0,r=0,n=new Uint8Array(t),i=new Uint8Array(2*t.byteLength),s=0,a=0;a=5;){var o=r>>>e-5&31;i[s++]=dr.charAt(o).charCodeAt(0),e-=5}if(e>0){var u=r<<5-e&31;i[s++]=dr.charAt(u).charCodeAt(0)}return i.slice(0,s)}},{key:"decode",value:function(t){for(var e=0,r=0,n=0,i=new Uint8Array(t),s=new Uint8Array(5*i.byteLength/8|0),a=0;a=8&&(s[n++]=r>>>e-8&255,e-=8)}return s.slice(0,n)}}])}(),fr=function(t){function e(t,r){var n;return M(this,e),L(n=p(this,e,[t]),"name",void 0),L(n,"code",void 0),L(n,"chainedError",void 0),n.name="NKeysError",n.code=t,n.chainedError=r,n}return _(e,t),k(e)}(y(Error));!function(t){t.InvalidPrefixByte="nkeys: invalid prefix byte",t.InvalidKey="nkeys: invalid key",t.InvalidPublicKey="nkeys: invalid public key",t.InvalidSeedLen="nkeys: invalid seed length",t.InvalidSeed="nkeys: invalid seed",t.InvalidEncoding="nkeys: invalid encoded key",t.InvalidSignature="nkeys: signature verification failed",t.CannotSign="nkeys: cannot sign, no private key available",t.PublicKeyOnly="nkeys: no seed or private key available",t.InvalidChecksum="nkeys: invalid checksum",t.SerializationError="nkeys: serialization error",t.ApiError="nkeys: api error",t.ClearedPair="nkeys: pair is cleared"}(or||(or={})),function(t){t[t.Seed=144]="Seed",t[t.Private=120]="Private",t[t.Operator=112]="Operator",t[t.Server=104]="Server",t[t.Cluster=16]="Cluster",t[t.Account=0]="Account",t[t.User=160]="User"}(ur||(ur={}));var mr=function(){return k((function t(){M(this,t)}),null,[{key:"isValidPublicPrefix",value:function(t){return t==ur.Server||t==ur.Operator||t==ur.Cluster||t==ur.Account||t==ur.User}},{key:"startsWithValidPrefix",value:function(t){var e=t[0];return"S"==e||"P"==e||"O"==e||"N"==e||"C"==e||"A"==e||"U"==e}},{key:"isValidPrefix",value:function(t){return-1!=this.parsePrefix(t)}},{key:"parsePrefix",value:function(t){switch(t){case ur.Seed:return ur.Seed;case ur.Private:return ur.Private;case ur.Operator:return ur.Operator;case ur.Server:return ur.Server;case ur.Cluster:return ur.Cluster;case ur.Account:return ur.Account;case ur.User:return ur.User;default:return-1}}}])}(),pr=function(){function t(){M(this,t)}return k(t,null,[{key:"encode",value:function(e,r){if(!(r&&r instanceof Uint8Array))throw new fr(or.SerializationError);if(!mr.isValidPrefix(e))throw new fr(or.InvalidPrefixByte);return t._encode(!1,e,r)}},{key:"encodeSeed",value:function(e,r){if(!r)throw new fr(or.ApiError);if(!mr.isValidPublicPrefix(e))throw new fr(or.InvalidPrefixByte);if(32!==r.byteLength)throw new fr(or.InvalidSeedLen);return t._encode(!0,e,r)}},{key:"decode",value:function(e,r){if(!mr.isValidPrefix(e))throw new fr(or.InvalidPrefixByte);var n=t._decode(r);if(n[0]!==e)throw new fr(or.InvalidPrefixByte);return n.slice(1)}},{key:"decodeSeed",value:function(e){var r=t._decode(e),n=t._decodePrefix(r);if(n[0]!=ur.Seed)throw new fr(or.InvalidSeed);if(!mr.isValidPublicPrefix(n[1]))throw new fr(or.InvalidPrefixByte);return{buf:r.slice(2),prefix:n[1]}}},{key:"_encode",value:function(e,r,n){var i=e?2:1,s=n.byteLength,a=i+s,o=new Uint8Array(i+s+2);if(e){var u=t._encodePrefix(ur.Seed,r);o.set(u)}else o[0]=r;o.set(n,i);var h=cr.checksum(o.slice(0,a));return new DataView(o.buffer).setUint16(a,h,!0),lr.encode(o)}},{key:"_decode",value:function(t){if(t.byteLength<4)throw new fr(or.InvalidEncoding);var e;try{e=lr.decode(t)}catch(t){throw new fr(or.InvalidEncoding,t)}var r=e.byteLength-2,n=new DataView(e.buffer).getUint16(r,!0),i=e.slice(0,r);if(!cr.validate(i,n))throw new fr(or.InvalidChecksum);return i}},{key:"_encodePrefix",value:function(t,e){return new Uint8Array([t|e>>5,(31&e)<<3])}},{key:"_decodePrefix",value:function(t){var e=248&t[0],r=(7&t[0])<<5|(248&t[1])>>3;return new Uint8Array([e,r])}}])}(),_r=function(){return k((function t(e){M(this,t),L(this,"seed",void 0),this.seed=e}),[{key:"getRawSeed",value:function(){if(!this.seed)throw new fr(or.ClearedPair);return pr.decodeSeed(this.seed).buf}},{key:"getSeed",value:function(){if(!this.seed)throw new fr(or.ClearedPair);return this.seed}},{key:"getPublicKey",value:function(){if(!this.seed)throw new fr(or.ClearedPair);var t=pr.decodeSeed(this.seed),e=ar().fromSeed(this.getRawSeed()),r=pr.encode(t.prefix,e.publicKey);return(new TextDecoder).decode(r)}},{key:"getPrivateKey",value:function(){if(!this.seed)throw new fr(or.ClearedPair);var t=ar().fromSeed(this.getRawSeed());return pr.encode(ur.Private,t.secretKey)}},{key:"sign",value:function(t){if(!this.seed)throw new fr(or.ClearedPair);var e=ar().fromSeed(this.getRawSeed());return ar().sign(t,e.secretKey)}},{key:"verify",value:function(t,e){if(!this.seed)throw new fr(or.ClearedPair);var r=ar().fromSeed(this.getRawSeed());return ar().verify(t,e,r.publicKey)}},{key:"clear",value:function(){this.seed&&(this.seed.fill(0),this.seed=void 0)}}])}();function yr(t){var e=ar().randomBytes(32),r=pr.encodeSeed(t,new Uint8Array(e));return new _r(r)}var vr=function(){return k((function t(e){M(this,t),L(this,"publicKey",void 0),this.publicKey=e}),[{key:"getPublicKey",value:function(){if(!this.publicKey)throw new fr(or.ClearedPair);return(new TextDecoder).decode(this.publicKey)}},{key:"getPrivateKey",value:function(){if(!this.publicKey)throw new fr(or.ClearedPair);throw new fr(or.PublicKeyOnly)}},{key:"getSeed",value:function(){if(!this.publicKey)throw new fr(or.ClearedPair);throw new fr(or.PublicKeyOnly)}},{key:"sign",value:function(t){if(!this.publicKey)throw new fr(or.ClearedPair);throw new fr(or.CannotSign)}},{key:"verify",value:function(t,e){if(!this.publicKey)throw new fr(or.ClearedPair);var r=pr._decode(this.publicKey);return ar().verify(t,e,r.slice(1))}},{key:"clear",value:function(){this.publicKey&&(this.publicKey.fill(0),this.publicKey=void 0)}}])}();nr=sr;var gr={createAccount:function(){return yr(ur.Account)},createOperator:function(){return yr(ur.Operator)},createPair:yr,createUser:function(){return yr(ur.User)},fromPublic:function(t){var e=(new TextEncoder).encode(t),r=pr._decode(e),n=mr.parsePrefix(r[0]);if(mr.isValidPublicPrefix(n))return new vr(e);throw new fr(or.InvalidPublicKey)},fromSeed:function(t){return pr.decodeSeed(t),new _r(t)},NKeysError:fr,NKeysErrorCode:or,Prefix:ur,decode:function(t){for(var e=atob(t),r=new Uint8Array(e.length),n=0;n0&&t.port)throw new Z("port and servers options are mutually exclusive",F.InvalidOption);0===t.servers.length&&t.port&&(t.servers=["".concat(nt,":").concat(t.port)]),t.servers&&0===t.servers.length&&(t.servers=[e]);var r=it({maxPingOut:2,maxReconnectAttempts:10,noRandomize:!1,pedantic:!1,pingInterval:Sr,reconnect:!0,reconnectJitter:100,reconnectJitterTLS:1e3,reconnectTimeWait:xr,tls:void 0,verbose:!1,waitOnFirstConnect:!1,ignoreAuthErrorAbort:!1},t);if(r.authenticator=Yr(r),["reconnectDelayHandler","authenticator"].forEach((function(t){if(r[t]&&"function"!=typeof r[t])throw new Z("".concat(t," option should be a function"),F.NotFunction)})),r.reconnectDelayHandler||(r.reconnectDelayHandler=function(){var t=r.tls?r.reconnectJitterTLS:r.reconnectJitter;return t&&(t++,t=Math.floor(Math.random()*t)),r.reconnectTimeWait+t}),r.inboxPrefix)try{et(r.inboxPrefix)}catch(t){throw new Z(t.message,F.ApiError)}if(void 0===r.resolve&&(r.resolve="function"==typeof Te()),r.resolve&&"function"!=typeof Te())throw new Z("'resolve' is not supported on this client",F.InvalidOption);return r}function Dr(t,e){var r=t.proto,n=t.tls_required,i=t.tls_available;if((void 0===r||r<1)&&e.noEcho)throw new Z("noEcho",F.ServerOptionNotAvailable);var s=n||i||!1;if(e.tls&&!s)throw new Z("tls",F.ServerOptionNotAvailable)}var Er=/^INFO\s+([^\r\n]+)\r\n/i,jr=H("PONG\r\n"),Ar=H("PING\r\n"),Or=k((function t(e,r,n){M(this,t),L(this,"echo",void 0),L(this,"no_responders",void 0),L(this,"protocol",void 0),L(this,"verbose",void 0),L(this,"pedantic",void 0),L(this,"jwt",void 0),L(this,"nkey",void 0),L(this,"sig",void 0),L(this,"user",void 0),L(this,"pass",void 0),L(this,"auth_token",void 0),L(this,"tls_required",void 0),L(this,"name",void 0),L(this,"lang",void 0),L(this,"version",void 0),L(this,"headers",void 0),this.protocol=1,this.version=e.version,this.lang=e.lang,this.echo=!r.noEcho&&void 0,this.verbose=r.verbose,this.pedantic=r.pedantic,this.tls_required=!!r.tls||void 0,this.name=r.name,it(this,(r&&"function"==typeof r.authenticator?r.authenticator(n):{})||{})})),Pr=function(t){function e(t,r){var n,i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};M(this,e),L(i=p(this,e),"sid",void 0),L(i,"queue",void 0),L(i,"draining",void 0),L(i,"max",void 0),L(i,"subject",void 0),L(i,"drained",void 0),L(i,"protocol",void 0),L(i,"timer",void 0),L(i,"info",void 0),L(i,"cleanupFn",void 0),L(i,"closed",void 0),L(i,"requestSubject",void 0),it(i,s),i.protocol=t,i.subject=r,i.draining=!1,i.noIterator="function"==typeof s.callback,i.closed=ht();var a=!(null!==(n=t.options)&&void 0!==n&&n.noAsyncTraces);return s.timeout&&(i.timer=at(s.timeout,a),i.timer.then((function(){i.timer=void 0})).catch((function(t){i.stop(t),i.noIterator&&i.callback(t,{})}))),i.noIterator||i.iterClosed.then((function(){i.closed.resolve(),i.unsubscribe()})),i}return _(e,t),k(e,[{key:"setPrePostHandlers",value:function(t){if(this.noIterator){var e=this.callback,r=t.ingestionFilterFn?t.ingestionFilterFn:function(){return{ingest:!0,protocol:!1}},n=t.protocolFilterFn?t.protocolFilterFn:function(){return!0},i=t.dispatchedFn?t.dispatchedFn:function(){};this.callback=function(t,s){r(s).ingest&&n(s)&&(e(t,s),i(s))}}else this.protocolFilterFn=t.protocolFilterFn,this.dispatchedFn=t.dispatchedFn}},{key:"callback",value:function(t,e){this.cancelTimeout(),t?this.stop(t):this.push(e)}},{key:"close",value:function(){var t=this;if(!this.isClosed()){this.cancelTimeout();var e=function(){if(t.stop(),t.cleanupFn)try{t.cleanupFn(t,t.info)}catch(t){}t.closed.resolve()};this.noIterator?e():this.push(e)}}},{key:"unsubscribe",value:function(t){this.protocol.unsubscribe(this,t)}},{key:"cancelTimeout",value:function(){this.timer&&(this.timer.cancel(),this.timer=void 0)}},{key:"drain",value:function(){var t=this;return this.protocol.isClosed()?Promise.reject(Z.errorForCode(F.ConnectionClosed)):this.isClosed()?Promise.reject(Z.errorForCode(F.SubClosed)):(this.drained||(this.draining=!0,this.protocol.unsub(this),this.drained=this.protocol.flush(ht()).then((function(){t.protocol.subscriptions.cancel(t)})).catch((function(){t.protocol.subscriptions.cancel(t)}))),this.drained)}},{key:"isDraining",value:function(){return this.draining}},{key:"isClosed",value:function(){return this.done}},{key:"getSubject",value:function(){return this.subject}},{key:"getMax",value:function(){return this.max}},{key:"getID",value:function(){return this.sid}}])}(Jt),Rr=function(){return k((function t(){M(this,t),L(this,"mux",void 0),L(this,"subs",void 0),L(this,"sidCounter",void 0),this.sidCounter=0,this.mux=null,this.subs=new Map}),[{key:"size",value:function(){return this.subs.size}},{key:"add",value:function(t){return this.sidCounter++,t.sid=this.sidCounter,this.subs.set(t.sid,t),t}},{key:"setMux",value:function(t){return this.mux=t,t}},{key:"getMux",value:function(){return this.mux}},{key:"get",value:function(t){return this.subs.get(t)}},{key:"resub",value:function(t){return this.sidCounter++,this.subs.delete(t.sid),t.sid=this.sidCounter,this.subs.set(t.sid,t),t}},{key:"all",value:function(){return Array.from(this.subs.values())}},{key:"cancel",value:function(t){t&&(t.close(),this.subs.delete(t.sid))}},{key:"handleError",value:function(t){if(t&&t.permissionContext){var e,r=t.permissionContext,n=this.all();if("subscription"===r.operation&&(e=n.find((function(t){return t.subject===r.subject&&t.queue===r.queue}))),"publish"===r.operation&&(e=n.find((function(t){return t.requestSubject===r.subject}))),e)return e.callback(t,{}),e.close(),this.subs.delete(e.sid),e!==this.mux}return!1}},{key:"close",value:function(){this.subs.forEach((function(t){t.close()}))}}])}(),Hr=function(){function t(e,r){M(this,t),L(this,"connected",void 0),L(this,"connectedOnce",void 0),L(this,"infoReceived",void 0),L(this,"info",void 0),L(this,"muxSubscriptions",void 0),L(this,"options",void 0),L(this,"outbound",void 0),L(this,"pongs",void 0),L(this,"subscriptions",void 0),L(this,"transport",void 0),L(this,"noMorePublishing",void 0),L(this,"connectError",void 0),L(this,"publisher",void 0),L(this,"_closed",void 0),L(this,"closed",void 0),L(this,"listeners",void 0),L(this,"heartbeats",void 0),L(this,"parser",void 0),L(this,"outMsgs",void 0),L(this,"inMsgs",void 0),L(this,"outBytes",void 0),L(this,"inBytes",void 0),L(this,"pendingLimit",void 0),L(this,"lastError",void 0),L(this,"abortReconnect",void 0),L(this,"whyClosed",void 0),L(this,"servers",void 0),L(this,"server",void 0),L(this,"features",void 0),L(this,"connectPromise",void 0),this._closed=!1,this.connected=!1,this.connectedOnce=!1,this.infoReceived=!1,this.noMorePublishing=!1,this.abortReconnect=!1,this.listeners=[],this.pendingLimit=32768,this.outMsgs=0,this.inMsgs=0,this.outBytes=0,this.inBytes=0,this.options=e,this.publisher=r,this.subscriptions=new Rr,this.muxSubscriptions=new Je,this.outbound=new te,this.pongs=[],this.whyClosed="",this.pendingLimit=e.pendingLimit||this.pendingLimit,this.features=new Me({major:0,minor:0,micro:0}),this.connectPromise=null;var n="string"==typeof e.servers?[e.servers]:e.servers;this.servers=new We(n,{randomize:!e.noRandomize}),this.closed=ht(),this.parser=new rr(this),this.heartbeats=new Ge(this,this.options.pingInterval||Sr,this.options.maxPingOut||2)}return k(t,[{key:"resetOutbound",value:function(){this.outbound.reset();var t=this.pongs;this.pongs=[];var e=Z.errorForCode(F.Disconnect);e.stack="",t.forEach((function(t){t.reject(e)})),this.parser=new rr(this),this.infoReceived=!1}},{key:"dispatchStatus",value:function(t){this.listeners.forEach((function(e){e.push(t)}))}},{key:"status",value:function(){var t=new Jt;return this.listeners.push(t),t}},{key:"prepare",value:function(){var t=this;this.transport&&this.transport.discard(),this.info=void 0,this.resetOutbound();var e=ht();return e.catch((function(){})),this.pongs.unshift(e),this.connectError=function(t){e.reject(t)},this.transport=function(){if(!Le||"function"!=typeof Le.factory)throw new Error("transport fn is not set");return Le.factory()}(),this.transport.closed().then(function(){var e=m(l().mark((function e(r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.connected=!1,t.isClosed()){e.next=5;break}return e.next=4,t.disconnected(t.transport.closeError||t.lastError);case 4:return e.abrupt("return");case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e}},{key:"disconnect",value:function(){this.dispatchStatus({type:q.StaleConnection,data:""}),this.transport.disconnect()}},{key:"reconnect",value:function(){return this.connected&&(this.dispatchStatus({type:q.ClientInitiatedReconnect,data:""}),this.transport.disconnect()),Promise.resolve()}},{key:"disconnected",value:(a=m(l().mark((function t(e){var r=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.dispatchStatus({type:B.Disconnect,data:this.servers.getCurrentServer().toString()}),!this.options.reconnect){t.next=6;break}return t.next=4,this.dialLoop().then((function(){var t;r.dispatchStatus({type:B.Reconnect,data:r.servers.getCurrentServer().toString()}),(null===(t=r.lastError)||void 0===t?void 0:t.code)===F.AuthenticationExpired&&(r.lastError=void 0)})).catch((function(t){r._close(t)}));case 4:t.next=8;break;case 6:return t.next=8,this._close(e);case 8:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})},{key:"dial",value:(s=m(l().mark((function t(e){var r,n,i,s=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.prepare(),t.prev=1,n=at(this.options.timeout||2e4),i=this.transport.connect(e,this.options),t.next=6,Promise.race([i,n]);case 6:m(l().mark((function t(){var e,r,n,i,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.prev=0,e=!1,r=!1,t.prev=3,i=x(s.transport);case 5:return t.next=7,i.next();case 7:if(!(e=!(a=t.sent).done)){t.next=13;break}o=a.value,s.parser.parse(o);case 10:e=!1,t.next=5;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(3),r=!0,n=t.t0;case 19:if(t.prev=19,t.prev=20,!e||null==i.return){t.next=24;break}return t.next=24,i.return();case 24:if(t.prev=24,!r){t.next=27;break}throw n;case 27:return t.finish(24);case 28:return t.finish(19);case 29:t.next=34;break;case 31:t.prev=31,t.t1=t.catch(0),t.t1;case 34:case"end":return t.stop()}}),t,null,[[0,31],[3,15,19,29],[20,,24,28]])})))().then(),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1),r.reject(t.t0);case 12:return t.prev=12,t.next=15,Promise.race([n,r]);case 15:n&&n.cancel(),this.connected=!0,this.connectError=void 0,this.sendSubscriptions(),this.connectedOnce=!0,this.server.didConnect=!0,this.server.reconnects=0,this.flushPending(),this.heartbeats.start(),t.next=32;break;case 26:return t.prev=26,t.t1=t.catch(12),n&&n.cancel(),t.next=31,this.transport.close(t.t1);case 31:throw t.t1;case 32:case"end":return t.stop()}}),t,this,[[1,9],[12,26]])}))),function(t){return s.apply(this,arguments)})},{key:"_doDial",value:(i=m(l().mark((function t(e){var r,n,i,s,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.options.resolve,t.next=3,e.resolve({fn:Te(),debug:this.options.debug,randomize:!this.options.noRandomize,resolve:r});case 3:n=t.sent,i=null,s=h(n),t.prev=6,s.s();case 8:if((a=s.n()).done){t.next=23;break}return o=a.value,t.prev=10,i=null,this.dispatchStatus({type:q.Reconnecting,data:o.toString()}),t.next=15,this.dial(o);case 15:return t.abrupt("return");case 18:t.prev=18,t.t0=t.catch(10),i=t.t0;case 21:t.next=8;break;case 23:t.next=28;break;case 25:t.prev=25,t.t1=t.catch(6),s.e(t.t1);case 28:return t.prev=28,s.f(),t.finish(28);case 31:throw i;case 32:case"end":return t.stop()}}),t,this,[[6,25,28,31],[10,18]])}))),function(t){return i.apply(this,arguments)})},{key:"dialLoop",value:function(){var t=this;return null===this.connectPromise&&(this.connectPromise=this.dodialLoop(),this.connectPromise.then((function(){})).catch((function(){})).finally((function(){t.connectPromise=null}))),this.connectPromise}},{key:"dodialLoop",value:(n=m(l().mark((function t(){var e,r,n,i,s,a;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._closed&&this.servers.clear(),r=this.options.reconnectDelayHandler?this.options.reconnectDelayHandler():xr,n=r,(i=this.selectServer())&&!this.abortReconnect){t.next=15;break}if(!e){t.next=10;break}throw e;case 10:if(!this.lastError){t.next=14;break}throw this.lastError;case 14:throw Z.errorForCode(F.ConnectionRefused);case 15:if(s=Date.now(),!(0===i.lastConnect||i.lastConnect+r<=s)){t.next=36;break}return i.lastConnect=Date.now(),t.prev=18,t.next=21,this._doDial(i);case 21:return t.abrupt("break",41);case 24:if(t.prev=24,t.t0=t.catch(18),e=t.t0,this.connectedOnce){t.next=31;break}if(!this.options.waitOnFirstConnect){t.next=30;break}return t.abrupt("continue",0);case 30:this.servers.removeCurrentServer();case 31:i.reconnects++,-1!==(a=this.options.maxReconnectAttempts||0)&&i.reconnects>=a&&this.servers.removeCurrentServer();case 34:t.next=39;break;case 36:return n=Math.min(n,i.lastConnect+r-s),t.next=39,ot(n);case 39:t.next=0;break;case 41:case"end":return t.stop()}}),t,this,[[18,24]])}))),function(){return n.apply(this,arguments)})},{key:"processMsg",value:function(t,e){if(this.inMsgs++,this.inBytes+=e.length,this.subscriptions.sidCounter){var r=this.subscriptions.get(t.sid);r&&(r.received+=1,r.callback&&r.callback(null,new kt(t,e,this)),void 0!==r.max&&r.received>=r.max&&r.unsubscribe())}}},{key:"processError",value:function(e){var r=I(e),n=t.toError(r),i={type:B.Error,data:n.code};if(n.isPermissionError()){var s=!1;if(n.permissionContext){i.permissionContext=n.permissionContext;var a=this.subscriptions.getMux();s=(null==a?void 0:a.subject)===n.permissionContext.subject}this.subscriptions.handleError(n),this.muxSubscriptions.handleError(s,n),s&&this.subscriptions.setMux(null)}this.dispatchStatus(i),this.handleError(n)}},{key:"handleError",value:function(t){t.isAuthError()?this.handleAuthError(t):(t.isProtocolError()||t.isAuthTimeout())&&(this.lastError=t),t.isPermissionError()||(this.lastError=t)}},{key:"handleAuthError",value:function(t){this.lastError&&t.code===this.lastError.code&&!1===this.options.ignoreAuthErrorAbort&&(this.abortReconnect=!0),this.connectError?this.connectError(t):this.disconnect()}},{key:"processPing",value:function(){this.transport.send(jr)}},{key:"processPong",value:function(){var t=this.pongs.shift();t&&t.resolve()}},{key:"processInfo",value:function(t){var e=JSON.parse(I(t));this.info=e;var r=this.options&&this.options.ignoreClusterUpdates?void 0:this.servers.update(e,this.transport.isEncrypted());if(!this.infoReceived){this.features.update(ge(e.version)),this.infoReceived=!0,this.transport.isEncrypted()&&this.servers.updateTLSName();var n=this.transport,i=n.version,s=n.lang;try{var a=new Or({version:i,lang:s},this.options,e.nonce);e.headers&&(a.headers=!0,a.no_responders=!0);var o=JSON.stringify(a);this.transport.send(H("CONNECT ".concat(o).concat(De))),this.transport.send(Ar)}catch(t){this._close(t)}}r&&this.dispatchStatus({type:B.Update,data:r}),void 0!==e.ldm&&e.ldm&&this.dispatchStatus({type:B.LDM,data:this.servers.getCurrentServer().toString()})}},{key:"push",value:function(t){switch(t.kind){case $e.MSG:var e=t.msg,r=t.data;this.processMsg(e,r);break;case $e.OK:break;case $e.ERR:this.processError(t.data);break;case $e.PING:this.processPing();break;case $e.PONG:this.processPong();break;case $e.INFO:this.processInfo(t.data)}}},{key:"sendCommand",value:function(t){var e,r,n=this,i=this.outbound.length();r="string"==typeof t?H(t):t;for(var s=arguments.length,a=new Array(s>1?s-1:0),o=1;o=this.pendingLimit&&this.flushPending()}},{key:"publish",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,n=arguments.length>2?arguments[2]:void 0;if(r instanceof Uint8Array)e=r;else{if("string"!=typeof r)throw Z.errorForCode(F.BadPayload);e=O.encode(r)}var i=e.length;(n=n||{}).reply=n.reply||"";var s,a=A,o=0;if(n.headers){if(this.info&&!this.info.headers)throw new Z("headers",F.ServerOptionNotAvailable);o=(a=n.headers.encode()).length,i=e.length+o}if(this.info&&i>this.info.max_payload)throw Z.errorForCode(F.MaxPayloadExceeded);this.outBytes+=i,this.outMsgs++,n.headers?(s=n.reply?"HPUB ".concat(t," ").concat(n.reply," ").concat(o," ").concat(i,"\r\n"):"HPUB ".concat(t," ").concat(o," ").concat(i,"\r\n"),this.sendCommand(s,a,e,Ee)):(s=n.reply?"PUB ".concat(t," ").concat(n.reply," ").concat(i,"\r\n"):"PUB ".concat(t," ").concat(i,"\r\n"),this.sendCommand(s,e,Ee))}},{key:"request",value:function(t){return this.initMux(),this.muxSubscriptions.add(t),t}},{key:"subscribe",value:function(t){return this.subscriptions.add(t),this._subunsub(t),t}},{key:"_sub",value:function(t){t.queue?this.sendCommand("SUB ".concat(t.subject," ").concat(t.queue," ").concat(t.sid,"\r\n")):this.sendCommand("SUB ".concat(t.subject," ").concat(t.sid,"\r\n"))}},{key:"_subunsub",value:function(t){return this._sub(t),t.max&&this.unsubscribe(t,t.max),t}},{key:"unsubscribe",value:function(t,e){this.unsub(t,e),(void 0===t.max||t.received>=t.max)&&this.subscriptions.cancel(t)}},{key:"unsub",value:function(t,e){t&&!this.isClosed()&&(e?this.sendCommand("UNSUB ".concat(t.sid," ").concat(e,"\r\n")):this.sendCommand("UNSUB ".concat(t.sid,"\r\n")),t.max=e)}},{key:"resub",value:function(t,e){t&&!this.isClosed()&&(this.unsub(t),t.subject=e,this.subscriptions.resub(t),this._sub(t))}},{key:"flush",value:function(t){return t||(t=ht()),this.pongs.push(t),this.outbound.fill(Ar),this.flushPending(),t}},{key:"sendSubscriptions",value:function(){var t=[];this.subscriptions.all().forEach((function(e){var r=e;r.queue?t.push("SUB ".concat(r.subject," ").concat(r.queue," ").concat(r.sid).concat(De)):t.push("SUB ".concat(r.subject," ").concat(r.sid).concat(De))})),t.length&&this.transport.send(H(t.join("")))}},{key:"_close",value:(r=m(l().mark((function t(e){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._closed){t.next=2;break}return t.abrupt("return");case 2:return this.whyClosed=new Error("close trace").stack||"",this.heartbeats.cancel(),this.connectError&&(this.connectError(e),this.connectError=void 0),this.muxSubscriptions.close(),this.subscriptions.close(),this.listeners.forEach((function(t){t.stop()})),this._closed=!0,t.next=11,this.transport.close(e);case 11:return t.next=13,this.closed.resolve(e);case 13:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"close",value:function(){return this._close()}},{key:"isClosed",value:function(){return this._closed}},{key:"drain",value:function(){var t=this,e=this.subscriptions.all(),r=[];return e.forEach((function(t){r.push(t.drain())})),Promise.all(r).then(m(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.noMorePublishing=!0,e.next=3,t.flush();case 3:return e.abrupt("return",t.close());case 4:case"end":return e.stop()}}),e)})))).catch((function(){}))}},{key:"flushPending",value:function(){if(this.infoReceived&&this.connected&&this.outbound.size()){var t=this.outbound.drain();this.transport.send(t)}}},{key:"initMux",value:function(){if(!this.subscriptions.getMux()){var t=this.muxSubscriptions.init(this.options.inboxPrefix),e=new Pr(this,"".concat(t,"*"));e.callback=this.muxSubscriptions.dispatcher(),this.subscriptions.setMux(e),this.subscribe(e)}}},{key:"selectServer",value:function(){var t=this.servers.selectServer();if(void 0!==t)return this.server=t,this.server}},{key:"getServer",value:function(){return this.server}}],[{key:"connect",value:(e=m(l().mark((function e(r,n){var i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new t(r,n),e.next=3,i.dialLoop();case 3:return e.abrupt("return",i);case 4:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})},{key:"toError",value:function(t){var e=t?t.toLowerCase():"";if(-1!==e.indexOf("permissions violation")){var r=new Z(t,F.PermissionsViolation),n=t.match(/(Publish|Subscription) to "(\S+)"/);if(n){r.permissionContext={operation:n[1].toLowerCase(),subject:n[2],queue:void 0};var i=t.match(/using queue "(\S+)"/);i&&(r.permissionContext.queue=i[1])}return r}return-1!==e.indexOf("authorization violation")?new Z(t,F.AuthorizationViolation):-1!==e.indexOf("user authentication expired")?new Z(t,F.AuthenticationExpired):-1!=e.indexOf("account authentication expired")?new Z(t,F.AccountExpired):-1!==e.indexOf("authentication timeout")?new Z(t,F.AuthenticationTimeout):new Z(t,F.ProtocolError)}}]);var e,r,n,i,s,a}(),Ir=function(){return k((function t(e){M(this,t),L(this,"msg",void 0),this.msg=e}),[{key:"data",get:function(){return this.msg.data}},{key:"sid",get:function(){return this.msg.sid}},{key:"subject",get:function(){return this.msg.subject}},{key:"reply",get:function(){return this.msg.reply||""}},{key:"headers",get:function(){return this.msg.headers}},{key:"respond",value:function(t,e){return this.msg.respond(t,e)}},{key:"respondError",value:function(t,e,r,n){var i,s;return(n=n||{}).headers=n.headers||_t(),null===(i=n.headers)||void 0===i||i.set(Q,"".concat(t)),null===(s=n.headers)||void 0===s||s.set(X,e),this.msg.respond(r,n)}},{key:"json",value:function(t){return this.msg.json(t)}},{key:"string",value:function(){return this.msg.string()}}])}(),Cr=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";M(this,t),L(this,"subject",void 0),L(this,"queue",void 0),L(this,"srv",void 0),""!==r&&function(t,e){if(-1!==e.indexOf(" "))throw new Error("".concat(t," cannot contain spaces: '").concat(e,"'"));e.split(".").forEach((function(r){if(">"===r)throw new Error("".concat(t," name cannot contain internal '>': '").concat(e,"'"))}))}("service group",r);var i="";if(e instanceof Nr)this.srv=e,i="";else{if(!(e instanceof t))throw new Error("unknown ServiceGroup type");var s=e;this.srv=s.srv,""===n&&""!==s.queue&&(n=s.queue),i=s.subject}this.subject=this.calcSubject(i,r),this.queue=n}return k(t,[{key:"calcSubject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return""===e?t:""!==t?"".concat(t,".").concat(e):e}},{key:"addEndpoint",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,r="function"==typeof(e=e||{subject:t})?{handler:e,subject:t}:e;Yt("endpoint",t);var n=r.subject,i=r.handler,s=r.metadata,a=r.queue;n=n||t,a=a||this.queue,function(t,e){if(""===e)throw new Error("".concat(t," cannot be empty"));if(-1!==e.indexOf(" "))throw new Error("".concat(t," cannot contain spaces: '").concat(e,"'"));var r=e.split(".");r.forEach((function(n,i){if(">"===n&&i!==r.length-1)throw new Error("".concat(t," cannot have internal '>': '").concat(e,"'"))}))}("endpoint subject",n);var o={name:t,subject:n=this.calcSubject(this.subject,n),queue:a,handler:i,metadata:s};return this.srv._addEndpoint(o)}},{key:"addGroup",value:function(){return new t(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")}}])}();var Nr=function(){function t(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{name:"",version:""};M(this,t),L(this,"nc",void 0),L(this,"_id",void 0),L(this,"config",void 0),L(this,"handlers",void 0),L(this,"internal",void 0),L(this,"_stopped",void 0),L(this,"_done",void 0),L(this,"started",void 0),this.nc=e,this.config=Object.assign({},n),this.config.queue||(this.config.queue="q"),Yt("name",this.config.name),Yt("queue",this.config.queue),ge(this.config.version),this._id=z.next(),this.internal=[],this._done=ht(),this._stopped=!1,this.handlers=[],this.started=(new Date).toISOString(),this.reset(),this.nc.closed().then((function(){r.close().catch()})).catch((function(t){r.close(t).catch()}))}return k(t,[{key:"subjects",get:function(){return this.handlers.filter((function(t){return!1===t.internal})).map((function(t){return t.subject}))}},{key:"id",get:function(){return this._id}},{key:"name",get:function(){return this.config.name}},{key:"description",get:function(){var t;return null!==(t=this.config.description)&&void 0!==t?t:""}},{key:"version",get:function(){return this.config.version}},{key:"metadata",get:function(){return this.config.metadata}},{key:"errorToHeader",value:function(t){var e=_t();if(t instanceof tt){var r=t;e.set(X,r.message),e.set(Q,"".concat(r.code))}else e.set(X,t.message),e.set(Q,"500");return e}},{key:"setupHandler",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r?"":t.queue?t.queue:this.config.queue,i=t.name,s=t.subject,a=t.handler,o=t;o.internal=r,r&&this.internal.push(o),o.stats=new Br(i,s,n),o.queue=n;var u=a?function(t,r){if(t)e.close(t);else{var n=Date.now();try{a(t,new Ir(r))}catch(t){o.stats.countError(t),null==r||r.respond(A,{headers:e.errorToHeader(t)})}finally{o.stats.countLatency(n)}}}:void 0;return o.sub=this.nc.subscribe(s,{callback:u,queue:n}),o.sub.closed.then((function(){e._stopped||e.close(new Error("required subscription ".concat(t.subject," stopped"))).catch()})).catch((function(r){if(!e._stopped){var n=new Error("required subscription ".concat(t.subject," errored: ").concat(r.message));n.stack=r.stack,e.close(n).catch()}})),o}},{key:"info",value:function(){return{type:G.INFO,name:this.name,id:this.id,version:this.version,description:this.description,metadata:this.metadata,endpoints:this.endpoints()}}},{key:"endpoints",value:function(){return this.handlers.map((function(t){return{subject:t.subject,metadata:t.metadata,name:t.name,queue_group:t.queue}}))}},{key:"stats",value:(e=m(l().mark((function t(){var e,r,n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=[],r=h(this.handlers),t.prev=2,r.s();case 4:if((n=r.n()).done){t.next=19;break}if(i=n.value,"function"!=typeof this.config.statsHandler){t.next=16;break}return t.prev=7,t.next=10,this.config.statsHandler(i);case 10:i.stats.data=t.sent,t.next=16;break;case 13:t.prev=13,t.t0=t.catch(7),i.stats.countError(t.t0);case 16:e.push(i.stats.stats(i.qi));case 17:t.next=4;break;case 19:t.next=24;break;case 21:t.prev=21,t.t1=t.catch(2),r.e(t.t1);case 24:return t.prev=24,r.f(),t.finish(24);case 27:return t.abrupt("return",{type:G.STATS,name:this.name,id:this.id,version:this.version,started:this.started,metadata:this.metadata,endpoints:e});case 28:case"end":return t.stop()}}),t,this,[[2,21,24,27],[7,13]])}))),function(){return e.apply(this,arguments)})},{key:"addInternalHandler",value:function(t,e){var r="".concat(t).toUpperCase();this._doAddInternalHandler("".concat(r,"-all"),t,e),this._doAddInternalHandler("".concat(r,"-kind"),t,e,this.name),this._doAddInternalHandler("".concat(r),t,e,this.name,this.id)}},{key:"_doAddInternalHandler",value:function(e,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a={};a.name=e,a.subject=t.controlSubject(r,i,s),a.handler=n,this.setupHandler(a,!0)}},{key:"start",value:function(){var t=this,e=bt(),r=e.encode(this.ping());return this.addInternalHandler(rt.PING,(function(e,n){return e?(t.close(e).then().catch(),Promise.reject(e)):(n.respond(r),Promise.resolve())})),this.addInternalHandler(rt.STATS,(function(r,n){return r?(t.close(r),Promise.reject(r)):t.stats().then((function(t){return null==n||n.respond(e.encode(t)),Promise.resolve()}))})),this.addInternalHandler(rt.INFO,(function(r,n){return r?(t.close(r),Promise.reject(r)):(null==n||n.respond(e.encode(t.info())),Promise.resolve())})),this.handlers.forEach((function(e){"string"==typeof e.subject&&null!==e.handler&&t.setupHandler(e)})),Promise.resolve(this)}},{key:"close",value:function(t){var e=this;if(this._stopped)return this._done;this._stopped=!0;var r=[];return this.nc.isClosed()||(r=this.handlers.concat(this.internal).map((function(t){return t.sub.drain()}))),Promise.allSettled(r).then((function(){e._done.resolve(t||null)})),this._done}},{key:"stopped",get:function(){return this._done}},{key:"isStopped",get:function(){return this._stopped}},{key:"stop",value:function(t){return this.close(t)}},{key:"ping",value:function(){return{type:G.PING,name:this.name,id:this.id,version:this.version,metadata:this.metadata}}},{key:"reset",value:function(){if(this.started=(new Date).toISOString(),this.handlers){var t,e=h(this.handlers);try{for(e.s();!(t=e.n()).done;){var r=t.value;r.stats.reset(r.qi)}}catch(t){e.e(t)}finally{e.f()}}}},{key:"addGroup",value:function(t,e){return new Cr(this,t,e)}},{key:"addEndpoint",value:function(t,e){return new Cr(this).addEndpoint(t,e)}},{key:"_addEndpoint",value:function(t){var e=this,r=new Jt;r.noIterator="function"==typeof t.handler,r.noIterator||(t.handler=function(t,n){t?e.stop(t).catch():r.push(new Ir(n))},r.iterClosed.then((function(){e.close().catch()})));var n=this.setupHandler(t,!1);return n.qi=r,this.handlers.push(n),r}}],[{key:"controlSubject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3?arguments[3]:void 0,i=null!=n?n:"$SRV";return""===e&&""===r?"".concat(i,".").concat(t):(Yt("control subject name",e),""!==r?(Yt("control subject id",r),"".concat(i,".").concat(t,".").concat(e,".").concat(r)):"".concat(i,".").concat(t,".").concat(e))}}]);var e}(),Br=function(){return k((function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";M(this,t),L(this,"name",void 0),L(this,"subject",void 0),L(this,"average_processing_time",void 0),L(this,"num_requests",void 0),L(this,"processing_time",void 0),L(this,"num_errors",void 0),L(this,"last_error",void 0),L(this,"data",void 0),L(this,"metadata",void 0),L(this,"queue",void 0),this.name=e,this.subject=r,this.average_processing_time=0,this.num_errors=0,this.num_requests=0,this.processing_time=0,this.queue=n}),[{key:"reset",value:function(t){this.num_requests=0,this.processing_time=0,this.average_processing_time=0,this.num_errors=0,this.last_error=void 0,this.data=void 0;var e=t;e&&(e.time=0,e.processed=0)}},{key:"countLatency",value:function(t){this.num_requests++,this.processing_time+=ft(Date.now()-t),this.average_processing_time=Math.round(this.processing_time/this.num_requests)}},{key:"countError",value:function(t){this.num_errors++,this.last_error=t.message}},{key:"_stats",value:function(){return{name:this.name,subject:this.subject,average_processing_time:this.average_processing_time,num_errors:this.num_errors,num_requests:this.num_requests,processing_time:this.processing_time,last_error:this.last_error,data:this.data,queue_group:this.queue}}},{key:"stats",value:function(t){var e=t;return!1===(null==e?void 0:e.noIterator)&&(this.processing_time=e.time,this.num_requests=e.processed,this.average_processing_time=this.processing_time>0&&this.num_requests>0?this.processing_time/this.num_requests:0),this._stats()}}])}(),qr=function(){return k((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{strategy:J.JitterTimer,maxWait:2e3},n=arguments.length>2?arguments[2]:void 0;M(this,t),L(this,"nc",void 0),L(this,"prefix",void 0),L(this,"opts",void 0),this.nc=e,this.prefix=n,this.opts=r}),[{key:"ping",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.q(rt.PING,t,e)}},{key:"stats",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.q(rt.STATS,t,e)}},{key:"info",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.q(rt.INFO,t,e)}},{key:"q",value:(t=m(l().mark((function t(e){var r,n,i,s,a,o,u=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:"",n=u.length>2&&void 0!==u[2]?u[2]:"",i=new Jt,s=bt(),a=Nr.controlSubject(e,r,n,this.prefix),t.next=7,this.nc.requestMany(a,A,this.opts);case 7:return o=t.sent,m(l().mark((function t(){var e,r,n,a,u,h;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!1,r=!1,t.prev=2,a=l().mark((function t(){var e,r;return l().wrap((function(t){for(var n,a=function(){switch(t.prev=t.next){case 0:e=h.value;try{r=s.decode(e.data),i.push(r)}catch(t){i.push((function(){i.stop(t)}))}case 2:case"end":return{v:t.stop()}}};;)if(n=a())return n.v}),t)})),u=x(o);case 5:return t.next=7,u.next();case 7:if(!(e=!(h=t.sent).done)){t.next=12;break}return t.delegateYield(a(),"t0",9);case 9:e=!1,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t1=t.catch(2),r=!0,n=t.t1;case 18:if(t.prev=18,t.prev=19,!e||null==u.return){t.next=23;break}return t.next=23,u.return();case 23:if(t.prev=23,!r){t.next=26;break}throw n;case 26:return t.finish(23);case 27:return t.finish(18);case 28:i.push((function(){i.stop()}));case 29:case"end":return t.stop()}}),t,null,[[2,14,18,28],[19,,23,27]])})))().catch((function(t){i.stop(t)})),t.abrupt("return",i);case 10:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})}]);var t}(),Fr=function(){return k((function t(e,r){M(this,t),L(this,"name",void 0),L(this,"duration",void 0),L(this,"date",void 0),L(this,"payload",void 0),L(this,"msgs",void 0),L(this,"lang",void 0),L(this,"version",void 0),L(this,"bytes",void 0),L(this,"asyncRequests",void 0),L(this,"min",void 0),L(this,"max",void 0),this.name=e,this.duration=r,this.date=Date.now(),this.payload=0,this.msgs=0,this.bytes=0}),[{key:"toString",value:function(){var t,e,r,n=this.duration/1e3,i=Math.round(this.msgs/n),s=this.asyncRequests?"asyncRequests":"",a="";return this.max&&(a="".concat(this.min,"/").concat(this.max)),"".concat(this.name).concat(s?" [asyncRequests]":""," ").concat((r=i,r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","))," msgs/sec - [").concat(n.toFixed(2)," secs] ~ ").concat((t=this.bytes,e=n,"".concat(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e?1e3:1024,n=e?["k","M","G","T","P","E"]:["K","M","G","T","P","E"],i=e?"iB":"B";if(t1&&void 0!==arguments[1]?arguments[1]:{msgs:1e5,size:128,subject:"",asyncRequests:!1,pub:!1,sub:!1,req:!1,rep:!1};if(M(this,t),L(this,"nc",void 0),L(this,"callbacks",void 0),L(this,"msgs",void 0),L(this,"size",void 0),L(this,"subject",void 0),L(this,"asyncRequests",void 0),L(this,"pub",void 0),L(this,"sub",void 0),L(this,"req",void 0),L(this,"rep",void 0),L(this,"perf",void 0),L(this,"payload",void 0),this.nc=e,this.callbacks=r.callbacks||!1,this.msgs=r.msgs||0,this.size=r.size||0,this.subject=r.subject||z.next(),this.asyncRequests=r.asyncRequests||!1,this.pub=r.pub||!1,this.sub=r.sub||!1,this.req=r.req||!1,this.rep=r.rep||!1,this.perf=new dt,this.payload=this.size?new Uint8Array(this.size):A,!(this.pub||this.sub||this.req||this.rep))throw new Error("no bench option selected")}),[{key:"run",value:(r=m(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.nc.closed().then((function(t){if(t)throw new Z("bench closed with an error: ".concat(t.message),F.Unknown,t)})),!this.callbacks){t.next=6;break}return t.next=4,this.runCallbacks();case 4:t.next=8;break;case 6:return t.next=8,this.runAsync();case 8:return t.abrupt("return",this.processMetrics());case 9:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"processMetrics",value:function(){var t=this.nc.protocol.transport,e=t.lang,r=t.version;this.pub&&this.sub&&this.perf.measure("pubsub","pubStart","subStop"),this.req&&this.rep&&this.perf.measure("reqrep","reqStart","reqStop");var n=this.perf.getEntries(),i=n.find((function(t){return"pubsub"===t.name})),s=n.find((function(t){return"reqrep"===t.name})),a=n.find((function(t){return"req"===t.name})),o=n.find((function(t){return"rep"===t.name})),u=n.find((function(t){return"pub"===t.name})),h=n.find((function(t){return"sub"===t.name})),c=this.nc.stats(),d=[];if(i){var l=i.name,f=i.duration,m=new Fr(l,f);m.msgs=2*this.msgs,m.bytes=c.inBytes+c.outBytes,m.lang=e,m.version=r,m.payload=this.payload.length,d.push(m)}if(s){var p=s.name,_=s.duration,y=new Fr(p,_);y.msgs=2*this.msgs,y.bytes=c.inBytes+c.outBytes,y.lang=e,y.version=r,y.payload=this.payload.length,d.push(y)}if(u){var v=u.name,g=u.duration,b=new Fr(v,g);b.msgs=this.msgs,b.bytes=c.outBytes,b.lang=e,b.version=r,b.payload=this.payload.length,d.push(b)}if(h){var M=h.name,w=h.duration,k=new Fr(M,w);k.msgs=this.msgs,k.bytes=c.inBytes,k.lang=e,k.version=r,k.payload=this.payload.length,d.push(k)}if(o){var L=o.name,S=o.duration,x=new Fr(L,S);x.msgs=this.msgs,x.bytes=c.inBytes+c.outBytes,x.lang=e,x.version=r,x.payload=this.payload.length,d.push(x)}if(a){var Y=a.name,T=a.duration,D=new Fr(Y,T);D.msgs=this.msgs,D.bytes=c.inBytes+c.outBytes,D.lang=e,D.version=r,D.payload=this.payload.length,d.push(D)}return d}},{key:"runCallbacks",value:(e=m(l().mark((function t(){var e,r,n,i,s,a,o,u=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],this.sub&&(r=ht(),e.push(r),n=0,this.nc.subscribe(this.subject,{max:this.msgs,callback:function(){1==++n&&u.perf.mark("subStart"),n===u.msgs&&(u.perf.mark("subStop"),u.perf.measure("sub","subStart","subStop"),r.resolve())}})),this.rep&&(i=ht(),e.push(i),s=0,this.nc.subscribe(this.subject,{max:this.msgs,callback:function(t,e){e.respond(u.payload),1==++s&&u.perf.mark("repStart"),s===u.msgs&&(u.perf.mark("repStop"),u.perf.measure("rep","repStart","repStop"),i.resolve())}})),this.pub&&(a=m(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(u.perf.mark("pubStart"),e=0;e*\w]+$/,Kr=/^[-\w]+$/;function Vr(t){if(t.startsWith(".")||t.endsWith(".")||!Jr.test(t))throw new Error("invalid key: ".concat(t))}function Zr(t){if(t.startsWith(".")||t.endsWith(".")||!Gr.test(t))throw new Error("invalid key: ".concat(t))}function $r(t){if(t.startsWith(".")||t.endsWith("."))throw new Error("invalid key: ".concat(t));for(var e=t.split("."),r=!1,n=0;n":if(n!==e.length-1)throw new Error("invalid key: ".concat(t));r=!0}return r}function Xr(t){if(!Kr.test(t))throw new Error("invalid bucket name: ".concat(t))}!function(t){t.MsgIdHdr="Nats-Msg-Id",t.ExpectedStreamHdr="Nats-Expected-Stream",t.ExpectedLastSeqHdr="Nats-Expected-Last-Sequence",t.ExpectedLastMsgIdHdr="Nats-Expected-Last-Msg-Id",t.ExpectedLastSubjectSequenceHdr="Nats-Expected-Last-Subject-Sequence"}(zr||(zr={}));var Qr=function(){function t(e,r,n){M(this,t),L(this,"js",void 0),L(this,"jsm",void 0),L(this,"stream",void 0),L(this,"bucket",void 0),L(this,"direct",void 0),L(this,"codec",void 0),L(this,"prefix",void 0),L(this,"editPrefix",void 0),L(this,"useJsPrefix",void 0),L(this,"_prefixLen",void 0),L(this,"validateKey",Vr),L(this,"validateSearchKey",Zr),L(this,"hasWildcards",$r),Xr(e),this.js=r,this.jsm=n,this.bucket=e,this.prefix="$KV",this.editPrefix="",this.useJsPrefix=!1,this._prefixLen=0}return k(t,[{key:"init",value:(_=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h,c,d,f,m,p,_,y,v=this,g=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=g.length>0&&void 0!==g[0]?g[0]:{},i=Object.assign({replicas:1,history:1,timeout:2e3,max_bytes:-1,maxValueSize:-1,codec:{key:{encode:function(t){return t},decode:function(t){return t}},value:{encode:function(t){return t},decode:function(t){return t}}},storage:Rt.File},n),this.codec=i.codec,s={},this.stream=s.name=null!==(e=n.streamName)&&void 0!==e?e:this.bucketName(),s.retention=Ot.Limits,s.max_msgs_per_subject=i.history,i.maxBucketSize&&(i.max_bytes=i.maxBucketSize),i.max_bytes&&(s.max_bytes=i.max_bytes),s.max_msg_size=i.maxValueSize,s.storage=i.storage,(a=null!==(r=n.placementCluster)&&void 0!==r?r:"")&&(n.placement={},n.placement.cluster=a,n.placement.tags=[]),n.placement&&(s.placement=n.placement),n.republish&&(s.republish=n.republish),n.description&&(s.description=n.description),n.mirror?((o=Object.assign({},n.mirror)).name.startsWith(Kt)||(o.name="".concat(Kt).concat(o.name)),s.mirror=o,s.mirror_direct=!0):n.sources?(u=n.sources.map((function(t){var e=Object.assign({},t),r=e.name.startsWith(Kt)?e.name.substring(3):e.name;return e.name.startsWith(Kt)||(e.name="".concat(Kt).concat(e.name)),t.external||r===v.bucket||(e.subject_transforms=[{src:"$KV.".concat(r,".>"),dest:"$KV.".concat(v.bucket,".>")}]),e})),s.sources=u,s.subjects=[this.subjectForBucket()]):s.subjects=[this.subjectForBucket()],n.metadata&&(s.metadata=n.metadata),"boolean"==typeof n.compression&&(s.compression=n.compression?Nt.S2:Nt.None),h=this.js.nc,c=h.getServerVersion(),d=!!c&&be(c,ge("2.7.2"))>=0,s.discard=d?Pt.New:Pt.Old,f=h.features.get(_e.JS_ALLOW_DIRECT),m=f.ok,p=f.min,m||!0!==n.allow_direct){t.next=27;break}return _=c?"".concat(c.major,".").concat(c.minor,".").concat(c.micro):"unknown",t.abrupt("return",Promise.reject(new Error("allow_direct is not available on server version ".concat(_," - requires ").concat(p))));case 27:return n.allow_direct="boolean"==typeof n.allow_direct?n.allow_direct:m,s.allow_direct=n.allow_direct,this.direct=s.allow_direct,s.num_replicas=i.replicas,i.ttl&&(s.max_age=ft(i.ttl)),s.allow_rollup_hdrs=!0,t.prev=33,t.next=36,this.jsm.streams.info(s.name);case 36:(y=t.sent).config.allow_direct||!0!==this.direct||(this.direct=!1),t.next=49;break;case 40:if(t.prev=40,t.t0=t.catch(33),"stream not found"!==t.t0.message){t.next=48;break}return t.next=45,this.jsm.streams.add(s);case 45:y=t.sent,t.next=49;break;case 48:throw t.t0;case 49:this.initializePrefixes(y);case 50:case"end":return t.stop()}}),t,this,[[33,40]])}))),function(){return _.apply(this,arguments)})},{key:"initializePrefixes",value:function(t){this._prefixLen=0,this.prefix="$KV.".concat(this.bucket),this.useJsPrefix="$JS.API"!==this.js.apiPrefix;var e=t.config.mirror;if(e){var r=e.name;if(r.startsWith(Kt)&&(r=r.substring(3)),e.external&&""!==e.external.api){var n=e.name.substring(3);this.useJsPrefix=!1,this.prefix="$KV.".concat(n),this.editPrefix="".concat(e.external.api,".$KV.").concat(r)}else this.editPrefix=this.prefix}}},{key:"bucketName",value:function(){var t;return null!==(t=this.stream)&&void 0!==t?t:"".concat(Kt).concat(this.bucket)}},{key:"subjectForBucket",value:function(){return"".concat(this.prefix,".").concat(this.bucket,".>")}},{key:"subjectForKey",value:function(t){var e=[];return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(this.useJsPrefix&&e.push(this.js.apiPrefix),""!==this.editPrefix?e.push(this.editPrefix):e.push(this.prefix)):this.prefix&&e.push(this.prefix),e.push(t),e.join(".")}},{key:"fullKeyName",value:function(t){return""!==this.prefix?"".concat(this.prefix,".").concat(t):"".concat("$KV",".").concat(this.bucket,".").concat(t)}},{key:"prefixLen",get:function(){return 0===this._prefixLen&&(this._prefixLen=this.prefix.length+1),this._prefixLen}},{key:"encodeKey",value:function(t){var e,r=[],n=h(t.split("."));try{for(n.s();!(e=n.n()).done;){var i=e.value;switch(i){case">":case"*":r.push(i);break;default:r.push(this.codec.key.encode(i))}}}catch(t){n.e(t)}finally{n.f()}return r.join(".")}},{key:"decodeKey",value:function(t){var e,r=[],n=h(t.split("."));try{for(n.s();!(e=n.n()).done;){var i=e.value;switch(i){case">":case"*":r.push(i);break;default:r.push(this.codec.key.decode(i))}}}catch(t){n.e(t)}finally{n.f()}return r.join(".")}},{key:"close",value:function(){return Promise.resolve()}},{key:"dataLen",value:function(t,e){var r=e&&e.get(Ft.MessageSizeHdr)||"";return""!==r?parseInt(r,10):t.length}},{key:"smToEntry",value:function(t){return new Rn(this.bucket,this.prefixLen,t)}},{key:"jmToEntry",value:function(t){var e=this.decodeKey(t.subject.substring(this.prefixLen));return new Hn(this.bucket,e,t)}},{key:"create",value:(p=m(l().mark((function t(e,r){var n,i,s,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.put(e,r,{previousSeq:0});case 3:return i=t.sent,t.abrupt("return",Promise.resolve(i));case 7:if(t.prev=7,t.t0=t.catch(0),n=t.t0,10071===(null===t.t0||void 0===t.t0||null===(s=t.t0.api_error)||void 0===s?void 0:s.err_code)){t.next=12;break}return t.abrupt("return",Promise.reject(t.t0));case 12:return a=0,t.prev=13,t.next=16,this.get(e);case 16:if("DEL"!==(null==(o=t.sent)?void 0:o.operation)&&"PURGE"!==(null==o?void 0:o.operation)){t.next=22;break}return a=null!==o?o.revision:0,t.abrupt("return",this.update(e,r,a));case 22:return t.abrupt("return",Promise.reject(n));case 23:t.next=28;break;case 25:return t.prev=25,t.t1=t.catch(13),t.abrupt("return",Promise.reject(t.t1));case 28:case"end":return t.stop()}}),t,this,[[0,7],[13,25]])}))),function(t,e){return p.apply(this,arguments)})},{key:"update",value:function(t,e,r){if(r<=0)throw new Error("version must be greater than 0");return this.put(t,e,{previousSeq:r})}},{key:"put",value:(f=m(l().mark((function t(e,r){var n,i,s,a,o,u,h,c,d=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=d.length>2&&void 0!==d[2]?d[2]:{},i=this.encodeKey(e),this.validateKey(i),s={},void 0!==n.previousSeq&&(a=_t(),s.headers=a,a.set(zr.ExpectedLastSubjectSequenceHdr,"".concat(n.previousSeq))),t.prev=5,t.next=8,this.js.publish(this.subjectForKey(i,!0),r,s);case 8:return o=t.sent,t.abrupt("return",o.seq);case 12:if(t.prev=12,t.t0=t.catch(5),!(u=t.t0).isJetStreamError()){t.next=19;break}return u.message=null===(h=u.api_error)||void 0===h?void 0:h.description,u.code="".concat(null===(c=u.api_error)||void 0===c?void 0:c.code),t.abrupt("return",Promise.reject(u));case 19:return t.abrupt("return",Promise.reject(t.t0));case 20:case"end":return t.stop()}}),t,this,[[5,12]])}))),function(t,e){return f.apply(this,arguments)})},{key:"get",value:(d=m(l().mark((function t(e,r){var n,i,s,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.encodeKey(e),this.validateKey(n),i={last_by_subj:this.subjectForKey(n)},r&&r.revision>0&&(i={seq:r.revision}),t.prev=4,!this.direct){t.next=12;break}return a=this.jsm.direct,t.next=9,a.getMessage(this.bucketName(),i);case 9:s=t.sent,t.next=15;break;case 12:return t.next=14,this.jsm.streams.getMessage(this.bucketName(),i);case 14:s=t.sent;case 15:if((o=this.smToEntry(s)).key===n){t.next=18;break}return t.abrupt("return",null);case 18:return t.abrupt("return",o);case 21:if(t.prev=21,t.t0=t.catch(4),t.t0.code!==F.JetStream404NoMessages){t.next=25;break}return t.abrupt("return",null);case 25:throw t.t0;case 26:case"end":return t.stop()}}),t,this,[[4,21]])}))),function(t,e){return d.apply(this,arguments)})},{key:"purge",value:function(t,e){return this._deleteOrPurge(t,"PURGE",e)}},{key:"delete",value:function(t,e){return this._deleteOrPurge(t,"DEL",e)}},{key:"purgeDeletes",value:(c=m(l().mark((function t(){var e,r,n,i,s,a,o,u=this,h=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:18e5,r=ht(),n=[],t.next=5,this.watch({key:">",initializedFn:function(){r.resolve()}});case 5:return i=t.sent,m(l().mark((function t(){var e,r,s,a,o,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!1,r=!1,t.prev=2,a=x(i);case 4:return t.next=6,a.next();case 6:if(!(e=!(o=t.sent).done)){t.next=12;break}"DEL"!==(u=o.value).operation&&"PURGE"!==u.operation||n.push(u);case 9:e=!1,t.next=4;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(2),r=!0,s=t.t0;case 18:if(t.prev=18,t.prev=19,!e||null==a.return){t.next=23;break}return t.next=23,a.return();case 23:if(t.prev=23,!r){t.next=26;break}throw s;case 26:return t.finish(23);case 27:return t.finish(18);case 28:case"end":return t.stop()}}),t,null,[[2,14,18,28],[19,,23,27]])})))().then(),t.next=9,r;case 9:return i.stop(),s=Date.now()-e,a=n.map((function(t){var e=u.subjectForKey(t.key);return t.created.getTime()>=s?u.jsm.streams.purge(u.stream,{filter:e,keep:1}):u.jsm.streams.purge(u.stream,{filter:e,keep:0})})),t.next=14,Promise.all(a);case 14:return(o=t.sent).unshift({success:!0,purged:0}),t.abrupt("return",o.reduce((function(t,e){return t.purged+=e.purged,t})));case 17:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"_deleteOrPurge",value:(u=m(l().mark((function t(e,r,n){var i,s,a,o,u,h,c,d;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.hasWildcards(e)){t.next=2;break}return t.abrupt("return",this._doDeleteOrPurge(e,r,n));case 2:return t.next=4,this.keys(e);case 4:i=t.sent,s=[],a=!1,o=!1,t.prev=8,h=x(i);case 10:return t.next=12,h.next();case 12:if(!(a=!(c=t.sent).done)){t.next=22;break}if(d=c.value,s.push(this._doDeleteOrPurge(d,r)),100!==s.length){t.next=19;break}return t.next=18,Promise.all(s);case 18:s.length=0;case 19:a=!1,t.next=10;break;case 22:t.next=28;break;case 24:t.prev=24,t.t0=t.catch(8),o=!0,u=t.t0;case 28:if(t.prev=28,t.prev=29,!a||null==h.return){t.next=33;break}return t.next=33,h.return();case 33:if(t.prev=33,!o){t.next=36;break}throw u;case 36:return t.finish(33);case 37:return t.finish(28);case 38:if(!(s.length>0)){t.next=41;break}return t.next=41,Promise.all(s);case 41:case"end":return t.stop()}}),t,this,[[8,24,28,38],[29,,33,37]])}))),function(t,e,r){return u.apply(this,arguments)})},{key:"_doDeleteOrPurge",value:(o=m(l().mark((function t(e,r,n){var i,s;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.encodeKey(e),this.validateKey(i),(s=_t()).set(Wr,r),"PURGE"===r&&s.set(Ft.RollupHdr,Ft.RollupValueSubject),null!=n&&n.previousSeq&&s.set(zr.ExpectedLastSubjectSequenceHdr,"".concat(n.previousSeq)),t.next=8,this.js.publish(this.subjectForKey(i,!0),A,{headers:s});case 8:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return o.apply(this,arguments)})},{key:"_buildCC",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(Array.isArray(t)?t:[t]).map((function(t){var e=r.encodeKey(t);return r.validateSearchKey(t),r.fullKeyName(e)})),s=Ht.LastPerSubject;e===Ut.AllHistory&&(s=Ht.All),e===Ut.UpdatesOnly&&(s=Ht.New);var a=void 0;return 1===i.length&&(a=i[0],i=void 0),Object.assign({deliver_policy:s,ack_policy:It.None,filter_subjects:i,filter_subject:a,flow_control:!0,idle_heartbeat:ft(5e3)},n)}},{key:"remove",value:function(t){return this.purge(t)}},{key:"history",value:(a=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h,c,d,f,m,p=this,_=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=null!==(e=(r=_.length>0&&void 0!==_[0]?_[0]:{}).key)&&void 0!==e?e:">",i=new Jt,(s={}).headers_only=r.headers_only||!1,a=function(){i.stop()},o=0,u=this._buildCC(n,Ut.AllHistory,s),h=u.filter_subject,(c=Zt(u)).bindStream(this.stream),c.orderedConsumer(),c.callback((function(t,e){if(t)i.stop(t);else if(e){var r=p.jmToEntry(e);i.push(r),i.received++,(a&&o>0&&i.received>=o||0===e.info.pending)&&(i.push(a),a=void 0)}})),t.next=15,this.js.subscribe(h,c);case 15:if(d=t.sent,a)if(f=d.info.last,0===(m=f.num_pending+f.delivered.consumer_seq)||i.received>=m)try{a()}catch(t){i.stop(t)}finally{a=void 0}else o=m;return i._data=d,i.iterClosed.then((function(){d.unsubscribe()})),d.closed.then((function(){i.stop()})).catch((function(t){i.stop(t)})),t.abrupt("return",i);case 21:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"canSetWatcherName",value:function(){return this.js.nc.features.get(_e.JS_NEW_CONSUMER_CREATE_API).ok}},{key:"watch",value:(s=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h,c,d,f,m,p,_,y=this,v=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=null!==(e=(r=v.length>0&&void 0!==v[0]?v[0]:{}).key)&&void 0!==e?e:">",i=new Jt,(s={}).headers_only=r.headers_only||!1,a=Ut.LastValue,r.include===Ut.AllHistory?a=Ut.AllHistory:r.include===Ut.UpdatesOnly&&(a=Ut.UpdatesOnly),o=!0===r.ignoreDeletes,u=r.initializedFn,h=0,c=this._buildCC(n,a,s),d=c.filter_subject,f=Zt(c),this.canSetWatcherName()&&f.consumerName(z.next()),f.bindStream(this.stream),r.resumeFromRevision&&r.resumeFromRevision>0&&f.startSequence(r.resumeFromRevision),f.orderedConsumer(),f.callback((function(t,e){if(t)i.stop(t);else if(e){var r=y.jmToEntry(e);if(o&&"DEL"===r.operation)return;i.push(r),i.received++,u&&(h>0&&i.received>=h||0===e.info.pending)&&(i.push(u),u=void 0)}})),t.next=20,this.js.subscribe(d,f);case 20:if(m=t.sent,u)if(p=m.info.last,0===(_=p.num_pending+p.delivered.consumer_seq)||i.received>=_)try{u()}catch(t){i.stop(t)}finally{u=void 0}else h=_;return i._data=m,i.iterClosed.then((function(){m.unsubscribe()})),m.closed.then((function(){i.stop()})).catch((function(t){i.stop(t)})),t.abrupt("return",i);case 26:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"keys",value:(i=m(l().mark((function t(){var e,r,n,i,s,a,o=this,u=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:">",r=new Jt,n=this._buildCC(e,Ut.LastValue,{headers_only:!0}),i=Array.isArray(e)?">":n.filter_subject,(s=Zt(n)).bindStream(this.stream),s.orderedConsumer(),t.next=9,this.js.subscribe(i,s);case 9:return a=t.sent,m(l().mark((function t(){var e,n,i,s,u,h,c,d,f;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!1,n=!1,t.prev=2,s=x(a);case 4:return t.next=6,s.next();case 6:if(!(e=!(u=t.sent).done)){t.next=14;break}h=u.value,"DEL"!==(d=null===(c=h.headers)||void 0===c?void 0:c.get(Wr))&&"PURGE"!==d&&(f=o.decodeKey(h.subject.substring(o.prefixLen)),r.push(f)),0===h.info.pending&&a.unsubscribe();case 11:e=!1,t.next=4;break;case 14:t.next=20;break;case 16:t.prev=16,t.t0=t.catch(2),n=!0,i=t.t0;case 20:if(t.prev=20,t.prev=21,!e||null==s.return){t.next=25;break}return t.next=25,s.return();case 25:if(t.prev=25,!n){t.next=28;break}throw i;case 28:return t.finish(25);case 29:return t.finish(20);case 30:case"end":return t.stop()}}),t,null,[[2,16,20,30],[21,,25,29]])})))().then((function(){r.stop()})).catch((function(t){r.stop(t)})),0===a.info.last.num_pending&&a.unsubscribe(),t.abrupt("return",r);case 14:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"purgeBucket",value:function(t){return this.jsm.streams.purge(this.bucketName(),t)}},{key:"destroy",value:function(){return this.jsm.streams.delete(this.bucketName())}},{key:"status",value:(n=m(l().mark((function t(){var e,r,n,i,s,a;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.js.nc,i=null!==(e=null===(r=n.info)||void 0===r?void 0:r.cluster)&&void 0!==e?e:"",s=this.bucketName(),t.next=5,this.jsm.streams.info(s);case 5:return a=t.sent,t.abrupt("return",new tn(a,i));case 7:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}],[{key:"create",value:(r=m(l().mark((function e(r,n){var i,s,a,o=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.length>2&&void 0!==o[2]?o[2]:{},Xr(n),e.next=4,r.jetstreamManager();case 4:return s=e.sent,a=new t(n,r,s),e.next=8,a.init(i);case 8:return e.abrupt("return",a);case 9:case"end":return e.stop()}}),e)}))),function(t,e){return r.apply(this,arguments)})},{key:"bind",value:(e=m(l().mark((function e(r,n){var i,s,a,o,u,h,c=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},e.next=3,r.jetstreamManager();case 3:return o=e.sent,u={config:{allow_direct:a.allow_direct}},Xr(n),h=new t(n,r,o),u.config.name=null!==(i=a.streamName)&&void 0!==i?i:h.bucketName(),Object.assign(h,u),h.stream=u.config.name,h.codec=a.codec||{key:{encode:function(t){return t},decode:function(t){return t}},value:{encode:function(t){return t},decode:function(t){return t}}},h.direct=null!==(s=u.config.allow_direct)&&void 0!==s&&s,h.initializePrefixes(u),e.abrupt("return",h);case 14:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})}]);var e,r,n,i,s,a,o,u,c,d,f,p,_}(),tn=function(){return k((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";M(this,t),L(this,"si",void 0),L(this,"cluster",void 0),this.si=e,this.cluster=r}),[{key:"bucket",get:function(){return this.si.config.name.startsWith(Kt)?this.si.config.name.substring(3):this.si.config.name}},{key:"values",get:function(){return this.si.state.messages}},{key:"history",get:function(){return this.si.config.max_msgs_per_subject}},{key:"ttl",get:function(){return mt(this.si.config.max_age)}},{key:"bucket_location",get:function(){return this.cluster}},{key:"backingStore",get:function(){return this.si.config.storage}},{key:"storage",get:function(){return this.si.config.storage}},{key:"replicas",get:function(){return this.si.config.num_replicas}},{key:"description",get:function(){var t;return null!==(t=this.si.config.description)&&void 0!==t?t:""}},{key:"maxBucketSize",get:function(){return this.si.config.max_bytes}},{key:"maxValueSize",get:function(){return this.si.config.max_msg_size}},{key:"max_bytes",get:function(){return this.si.config.max_bytes}},{key:"placement",get:function(){return this.si.config.placement||{cluster:"",tags:[]}}},{key:"placementCluster",get:function(){var t,e;return null!==(t=null===(e=this.si.config.placement)||void 0===e?void 0:e.cluster)&&void 0!==t?t:""}},{key:"republish",get:function(){var t;return null!==(t=this.si.config.republish)&&void 0!==t?t:{src:"",dest:""}}},{key:"streamInfo",get:function(){return this.si}},{key:"size",get:function(){return this.si.state.bytes}},{key:"metadata",get:function(){var t;return null!==(t=this.si.config.metadata)&&void 0!==t?t:{}}},{key:"compression",get:function(){return!!this.si.config.compression&&this.si.config.compression!==Nt.None}}])}(),en="OBJ_",rn="SHA-256=";var nn,sn,an,on=function(){return k((function t(e){M(this,t),L(this,"si",void 0),L(this,"backingStore",void 0),this.si=e,this.backingStore="JetStream"}),[{key:"bucket",get:function(){return(t=this.si.config.name).startsWith(en)?t.substring(4):t;var t}},{key:"description",get:function(){var t;return null!==(t=this.si.config.description)&&void 0!==t?t:""}},{key:"ttl",get:function(){return this.si.config.max_age}},{key:"storage",get:function(){return this.si.config.storage}},{key:"replicas",get:function(){return this.si.config.num_replicas}},{key:"sealed",get:function(){return this.si.config.sealed}},{key:"size",get:function(){return this.si.state.bytes}},{key:"streamInfo",get:function(){return this.si}},{key:"metadata",get:function(){return this.si.config.metadata}},{key:"compression",get:function(){return!!this.si.config.compression&&this.si.config.compression!==Nt.None}}])}();function un(t){if(void 0!==t){var e=t.domain;if(void 0===e)return t;var r=Object.assign({},t);if(delete r.domain,""===e)return r;if(r.external)throw new Error("domain and external are both set");return r.external={api:"$JS.".concat(e,".API")},r}}!function(t){t[t.Unset=-1]="Unset",t[t.Consume=0]="Consume",t[t.Fetch=1]="Fetch"}(nn||(nn={})),function(t){t.HeartbeatsMissed="heartbeats_missed",t.ConsumerNotFound="consumer_not_found",t.StreamNotFound="stream_not_found",t.ConsumerDeleted="consumer_deleted",t.OrderedConsumerRecreated="ordered_consumer_recreated"}(sn||(sn={})),function(t){t.DebugEvent="debug",t.Discard="discard",t.Reset="reset",t.Next="next"}(an||(an={}));var hn=Uint8Array.of(43,65,67,75),cn=Uint8Array.of(45,78,65,75),dn=Uint8Array.of(43,87,80,73),ln=Uint8Array.of(43,78,88,84),fn=Uint8Array.of(43,84,69,82,77),mn=Uint8Array.of(32);function pn(t){return new qn(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3)}var _n=function(t){function e(t,r){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];M(this,e),L(n=p(this,e),"consumer",void 0),L(n,"opts",void 0),L(n,"sub",void 0),L(n,"monitor",void 0),L(n,"pending",void 0),L(n,"inbox",void 0),L(n,"refilling",void 0),L(n,"pong",void 0),L(n,"callback",void 0),L(n,"timeout",void 0),L(n,"cleanupHandler",void 0),L(n,"listeners",void 0),L(n,"statusIterator",void 0),L(n,"forOrderedConsumer",void 0),L(n,"resetHandler",void 0),L(n,"abortOnMissingResource",void 0),L(n,"bind",void 0),n.consumer=t;var s=r;return n.opts=n.parseOptions(r,i),n.callback=s.callback||null,n.noIterator="function"==typeof n.callback,n.monitor=null,n.pong=null,n.pending={msgs:0,bytes:0,requests:0},n.refilling=i,n.timeout=null,n.inbox=et(t.api.nc.options.inboxPrefix),n.listeners=[],n.forOrderedConsumer=!1,n.abortOnMissingResource=!0===s.abort_on_missing_resource,n.bind=!0===s.bind,n.start(),n}return _(e,t),k(e,[{key:"start",value:function(){var t=this,e=this.opts,r=e.max_messages,n=e.max_bytes,i=e.idle_heartbeat,s=e.threshold_bytes,a=e.threshold_messages;this.closed().then((function(e){if(t.cleanupHandler)try{t.cleanupHandler(e)}catch(t){}}));var o=this.sub;o&&o.unsubscribe(),this.sub=this.consumer.api.nc.subscribe(this.inbox,{callback:function(e,i){var o;if(e)t.stop(e);else{if(null===(o=t.monitor)||void 0===o||o.work(),i.subject===t.inbox){var u,h;if(Dt(i))return;var c=null===(u=i.headers)||void 0===u?void 0:u.code,d=(null===(h=i.headers)||void 0===h||null===(h=h.description)||void 0===h?void 0:h.toLowerCase())||"unknown",l=t.parseDiscard(i.headers),f=l.msgsLeft,m=l.bytesLeft;if(f>0||m>0)t.pending.msgs-=f,t.pending.bytes-=m,t.pending.requests--,t.notify(an.Discard,{msgsLeft:f,bytesLeft:m});else{if(400===c)return void t.stop(new Z(d,"".concat(c)));if(409===c&&"consumer deleted"===d){if(t.notify(sn.ConsumerDeleted,"".concat(c," ").concat(d)),!t.refilling||t.abortOnMissingResource){var p=new Z(d,"".concat(c));return void t.stop(p)}}else t.notify(an.DebugEvent,"".concat(c," ").concat(d))}}else t._push(pn(i,t.consumer.api.timeout)),t.received++,t.pending.msgs&&t.pending.msgs--,t.pending.bytes&&(t.pending.bytes-=i.size());if(0===t.pending.msgs&&0===t.pending.bytes&&(t.pending.requests=0),t.refilling){if(r&&t.pending.msgs<=a||n&&t.pending.bytes<=s){var _=t.pullOptions();t.pull(_)}}else 0===t.pending.requests&&t._push((function(){t.stop()}))}}}),this.sub.closed.then((function(){t.sub.draining&&t._push((function(){t.stop()}))})),i&&(this.monitor=new Gt(i,(function(e){return t.notify(sn.HeartbeatsMissed,e),t.resetPending().then((function(){})).catch((function(){})),!1}),{maxOut:2})),m(l().mark((function e(){var r,n,i,s,a,o,u,h;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.consumer.api.nc.status(),t.statusIterator=n,i=!1,s=!1,e.prev=4,o=x(n);case 6:return e.next=8,o.next();case 8:if(!(i=!(u=e.sent).done)){e.next=20;break}h=u.value,e.t0=h.type,e.next=e.t0===B.Disconnect?13:e.t0===B.Reconnect?15:17;break;case 13:return null===(r=t.monitor)||void 0===r||r.cancel(),e.abrupt("break",17);case 15:return t.resetPending().then((function(e){var r;e&&(null===(r=t.monitor)||void 0===r||r.restart())})).catch((function(){})),e.abrupt("break",17);case 17:i=!1,e.next=6;break;case 20:e.next=26;break;case 22:e.prev=22,e.t1=e.catch(4),s=!0,a=e.t1;case 26:if(e.prev=26,e.prev=27,!i||null==o.return){e.next=31;break}return e.next=31,o.return();case 31:if(e.prev=31,!s){e.next=34;break}throw a;case 34:return e.finish(31);case 35:return e.finish(26);case 36:case"end":return e.stop()}}),e,null,[[4,22,26,36],[27,,31,35]])})))(),this.pull(this.pullOptions())}},{key:"_push",value:function(t){if(this.callback){var r="function"==typeof t?t:null;try{r?r():this.callback(t)}catch(t){this.stop(t)}}else s(e,"push",this,3)([t])}},{key:"notify",value:function(t,e){var r=this;this.listeners.length>0&&r.listeners.forEach((function(r){r.done||r.push({type:t,data:e})}))}},{key:"resetPending",value:function(){return this.bind?this.resetPendingNoInfo():this.resetPendingWithInfo()}},{key:"resetPendingNoInfo",value:function(){return this.pending.msgs=0,this.pending.bytes=0,this.pending.requests=0,this.pull(this.pullOptions()),Promise.resolve(!0)}},{key:"resetPendingWithInfo",value:(r=m(l().mark((function t(){var e,r,i,s,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=0,r=0,i=lt(),s=0;case 4:if(!this.done){t.next=7;break}return t.abrupt("return",!1);case 7:if(!this.consumer.api.nc.isClosed()){t.next=10;break}return n.error("aborting resetPending - connection is closed"),t.abrupt("return",!1);case 10:return t.prev=10,t.next=13,this.consumer.info();case 13:return e=0,this.pending.msgs=0,this.pending.bytes=0,this.pending.requests=0,this.pull(this.pullOptions()),t.abrupt("return",!0);case 21:if(t.prev=21,t.t0=t.catch(10),"stream not found"!==t.t0.message){t.next=31;break}if(r++,this.notify(sn.StreamNotFound,r),this.refilling&&!this.abortOnMissingResource){t.next=29;break}return this.stop(t.t0),t.abrupt("return",!1);case 29:t.next=44;break;case 31:if("consumer not found"!==t.t0.message){t.next=42;break}if(e++,this.notify(sn.ConsumerNotFound,e),this.resetHandler)try{this.resetHandler()}catch(t){}if(this.refilling&&!this.abortOnMissingResource){t.next=38;break}return this.stop(t.t0),t.abrupt("return",!1);case 38:if(!this.forOrderedConsumer){t.next=40;break}return t.abrupt("return",!1);case 40:t.next=44;break;case 42:e=0,r=0;case 44:return a=i.backoff(s),o=ot(a),t.next=48,Promise.race([o,this.consumer.api.nc.closed()]);case 48:o.cancel(),s++;case 50:t.next=4;break;case 52:case"end":return t.stop()}}),t,this,[[10,21]])}))),function(){return r.apply(this,arguments)})},{key:"pull",value:function(t){var e,r,n=this;this.pending.bytes+=null!==(e=t.max_bytes)&&void 0!==e?e:0,this.pending.msgs+=null!==(r=t.batch)&&void 0!==r?r:0,this.pending.requests++;var i=this.consumer.api.nc;this._push((function(){i.publish("".concat(n.consumer.api.prefix,".CONSUMER.MSG.NEXT.").concat(n.consumer.stream,".").concat(n.consumer.name),n.consumer.api.jc.encode(t),{reply:n.inbox}),n.notify(an.Next,t)}))}},{key:"pullOptions",value:function(){return{batch:this.opts.max_messages-this.pending.msgs,max_bytes:this.opts.max_bytes-this.pending.bytes,idle_heartbeat:ft(this.opts.idle_heartbeat),expires:ft(this.opts.expires)}}},{key:"parseDiscard",value:function(t){var e={msgsLeft:0,bytesLeft:0},r=null==t?void 0:t.get(Ft.PendingMessagesHdr);r&&(e.msgsLeft=parseInt(r));var n=null==t?void 0:t.get(Ft.PendingBytesHdr);return n&&(e.bytesLeft=parseInt(n)),e}},{key:"trackTimeout",value:function(t){this.timeout=t}},{key:"close",value:function(){return this.stop(),this.iterClosed}},{key:"closed",value:function(){return this.iterClosed}},{key:"clearTimers",value:function(){var t,e;null===(t=this.monitor)||void 0===t||t.cancel(),this.monitor=null,null===(e=this.timeout)||void 0===e||e.cancel(),this.timeout=null}},{key:"setCleanupHandler",value:function(t){this.cleanupHandler=t}},{key:"stop",value:function(t){var r,n,i=this;this.done||(null===(r=this.sub)||void 0===r||r.unsubscribe(),this.clearTimers(),null===(n=this.statusIterator)||void 0===n||n.stop(),this._push((function(){s(e,"stop",i,3)([t]),i.listeners.forEach((function(t){t.stop()}))})))}},{key:"parseOptions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t||{};if(r.max_messages=r.max_messages||0,r.max_bytes=r.max_bytes||0,0!==r.max_messages&&0!==r.max_bytes)throw new Error("only specify one of max_messages or max_bytes");if(0===r.max_messages&&(r.max_messages=100),r.expires=r.expires||3e4,r.expires<1e3)throw new Error("expires should be at least 1000ms");if(r.idle_heartbeat=r.idle_heartbeat||r.expires/2,r.idle_heartbeat=r.idle_heartbeat>3e4?3e4:r.idle_heartbeat,e){var n=Math.round(.75*r.max_messages)||1;r.threshold_messages=r.threshold_messages||n;var i=Math.round(.75*r.max_bytes)||1;r.threshold_bytes=r.threshold_bytes||i}return r}},{key:"status",value:function(){var t=new Jt;return this.listeners.push(t),Promise.resolve(t)}}]);var r}(Jt),yn=function(t){function e(){var t;return M(this,e),L(t=p(this,e),"src",void 0),L(t,"listeners",void 0),t.listeners=[],t}return _(e,t),k(e,[{key:"setSource",value:function(t){var e=this;this.src&&(this.src.resetHandler=void 0,this.src.setCleanupHandler(),this.src.stop()),this.src=t,this.src.setCleanupHandler((function(t){e.stop(t||void 0)})),m(l().mark((function t(){var r,n,i,s,a,o,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.src.status();case 2:r=t.sent,n=!1,i=!1,t.prev=5,a=x(r);case 7:return t.next=9,a.next();case 9:if(!(n=!(o=t.sent).done)){t.next=15;break}u=o.value,e.notify(u.type,u.data);case 12:n=!1,t.next=7;break;case 15:t.next=21;break;case 17:t.prev=17,t.t0=t.catch(5),i=!0,s=t.t0;case 21:if(t.prev=21,t.prev=22,!n||null==a.return){t.next=26;break}return t.next=26,a.return();case 26:if(t.prev=26,!i){t.next=29;break}throw s;case 29:return t.finish(26);case 30:return t.finish(21);case 31:case"end":return t.stop()}}),t,null,[[5,17,21,31],[22,,26,30]])})))().catch((function(){}))}},{key:"notify",value:function(t,e){var r=this;this.listeners.length>0&&r.listeners.forEach((function(r){r.done||r.push({type:t,data:e})}))}},{key:"stop",value:function(t){var r;this.done||(null===(r=this.src)||void 0===r||r.stop(t),s(e,"stop",this,3)([t]),this.listeners.forEach((function(t){t.stop()})))}},{key:"close",value:function(){return this.stop(),this.iterClosed}},{key:"closed",value:function(){return this.iterClosed}},{key:"status",value:function(){var t=new Jt;return this.listeners.push(t),Promise.resolve(t)}}])}(Jt),vn=function(){return k((function t(e,r){M(this,t),L(this,"api",void 0),L(this,"_info",void 0),L(this,"stream",void 0),L(this,"name",void 0),this.api=e,this._info=r,this.stream=r.stream_name,this.name=r.name}),[{key:"consume",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{max_messages:100,expires:3e4};return Promise.resolve(new _n(this,t,!0))}},{key:"fetch",value:function(){var t=new _n(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{max_messages:100,expires:3e4},!1),e=at(Math.round(1.05*t.opts.expires));return t.closed().catch((function(){})).finally((function(){e.cancel()})),e.catch((function(){t.close().catch()})),t.trackTimeout(e),Promise.resolve(t)}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{expires:3e4},e=ht(),r=t;r.max_messages=1;var n=new _n(this,r,!1),i=Math.round(1.05*n.opts.expires);i>=6e4&&m(l().mark((function t(){var r,i,s,a,o,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=!1,i=!1,t.prev=2,t.t0=x,t.next=6,n.status();case 6:t.t1=t.sent,a=(0,t.t0)(t.t1);case 8:return t.next=10,a.next();case 10:if(!(r=!(o=t.sent).done)){t.next=18;break}if(!((u=o.value).type===sn.HeartbeatsMissed&&u.data>=2)){t.next=15;break}return e.reject(new Error("consumer missed heartbeats")),t.abrupt("break",18);case 15:r=!1,t.next=8;break;case 18:t.next=24;break;case 20:t.prev=20,t.t2=t.catch(2),i=!0,s=t.t2;case 24:if(t.prev=24,t.prev=25,!r||null==a.return){t.next=29;break}return t.next=29,a.return();case 29:if(t.prev=29,!i){t.next=32;break}throw s;case 32:return t.finish(29);case 33:return t.finish(24);case 34:case"end":return t.stop()}}),t,null,[[2,20,24,34],[25,,29,33]])})))().catch(),m(l().mark((function t(){var r,i,s,a,o,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=!1,i=!1,t.prev=2,a=x(n);case 4:return t.next=6,a.next();case 6:if(!(r=!(o=t.sent).done)){t.next=13;break}return u=o.value,e.resolve(u),t.abrupt("break",13);case 10:r=!1,t.next=4;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(2),i=!0,s=t.t0;case 19:if(t.prev=19,t.prev=20,!r||null==a.return){t.next=24;break}return t.next=24,a.return();case 24:if(t.prev=24,!i){t.next=27;break}throw s;case 27:return t.finish(24);case 28:return t.finish(19);case 29:case"end":return t.stop()}}),t,null,[[2,15,19,29],[20,,24,28]])})))().catch((function(){}));var s=at(i);return n.closed().then((function(t){t?e.reject(t):e.resolve(null)})).catch((function(t){e.reject(t)})).finally((function(){s.cancel()})),s.catch((function(t){e.resolve(null),n.close().catch()})),n.trackTimeout(s),e}},{key:"delete",value:function(){var t=this._info,e=t.stream_name,r=t.name;return this.api.delete(e,r)}},{key:"info",value:function(){var t=this;if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return Promise.resolve(this._info);var e=this._info,r=e.stream_name,n=e.name;return this.api.info(r,n).then((function(e){return t._info=e,t._info}))}}])}(),gn=function(){return k((function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};M(this,t),L(this,"api",void 0),L(this,"consumerOpts",void 0),L(this,"consumer",void 0),L(this,"opts",void 0),L(this,"cursor",void 0),L(this,"stream",void 0),L(this,"namePrefix",void 0),L(this,"serial",void 0),L(this,"currentConsumer",void 0),L(this,"userCallback",void 0),L(this,"iter",void 0),L(this,"type",void 0),L(this,"startSeq",void 0),this.api=e,this.stream=r,this.cursor={stream_seq:1,deliver_seq:0},this.namePrefix=z.next(),"string"==typeof n.name_prefix&&(xt("name_prefix",n.name_prefix),this.namePrefix=n.name_prefix+this.namePrefix),this.serial=0,this.currentConsumer=null,this.userCallback=null,this.iter=null,this.type=nn.Unset,this.consumerOpts=n,this.startSeq=this.consumerOpts.opt_start_seq||0,this.cursor.stream_seq=this.startSeq>0?this.startSeq-1:0}),[{key:"getConsumerOpts",value:function(t){this.serial++,t=0===t?1:t;var e={name:"".concat(this.namePrefix,"_").concat(this.serial),deliver_policy:Ht.StartSequence,opt_start_seq:t,ack_policy:It.None,inactive_threshold:ft(3e5),num_replicas:1};return!0===this.consumerOpts.headers_only&&(e.headers_only=!0),Array.isArray(this.consumerOpts.filterSubjects)&&(e.filter_subjects=this.consumerOpts.filterSubjects),"string"==typeof this.consumerOpts.filterSubjects&&(e.filter_subject=this.consumerOpts.filterSubjects),this.consumerOpts.replay_policy&&(e.replay_policy=this.consumerOpts.replay_policy),t===this.startSeq+1&&(e.deliver_policy=this.consumerOpts.deliver_policy||Ht.StartSequence,this.consumerOpts.deliver_policy!==Ht.LastPerSubject&&this.consumerOpts.deliver_policy!==Ht.New&&this.consumerOpts.deliver_policy!==Ht.Last||(delete e.opt_start_seq,e.deliver_policy=this.consumerOpts.deliver_policy),e.deliver_policy===Ht.LastPerSubject&&void 0===e.filter_subjects&&void 0===e.filter_subject&&(e.filter_subject=">"),this.consumerOpts.opt_start_time&&(delete e.opt_start_seq,e.deliver_policy=Ht.StartTime,e.opt_start_time=this.consumerOpts.opt_start_time),this.consumerOpts.inactive_threshold&&(e.inactive_threshold=ft(this.consumerOpts.inactive_threshold))),e}},{key:"resetConsumer",value:(s=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h,c=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=c.length>0&&void 0!==c[0]?c[0]:0,null===(e=this.consumer)||void 0===e||e.delete().catch((function(){})),r=0===r?1:r,this.cursor.deliver_seq=0,(n=this.getConsumerOpts(r)).max_deliver=1,n.mem_storage=!0,i=lt(),a=0;case 9:return t.prev=9,t.next=12,this.api.add(this.stream,n);case 12:return s=t.sent,null===(o=this.iter)||void 0===o||o.notify(sn.OrderedConsumerRecreated,s.name),t.abrupt("break",33);case 17:if(t.prev=17,t.t0=t.catch(9),"stream not found"!==t.t0.message){t.next=24;break}if(null===(u=this.iter)||void 0===u||u.notify(sn.StreamNotFound,a),this.type!==nn.Fetch&&!0!==this.opts.abort_on_missing_resource){t.next=24;break}return null===(h=this.iter)||void 0===h||h.stop(t.t0),t.abrupt("return",Promise.reject(t.t0));case 24:if(!(0===r&&a>=30)){t.next=28;break}throw t.t0;case 28:return t.next=30,ot(i.backoff(a+1));case 30:a++,t.next=9;break;case 33:return t.abrupt("return",s);case 34:case"end":return t.stop()}}),t,this,[[9,17]])}))),function(){return s.apply(this,arguments)})},{key:"internalHandler",value:function(t){var e=this;return function(r){if(e.serial===t){var n,i=r.info.deliverySequence;if(i===e.cursor.deliver_seq+1)if(e.cursor.deliver_seq=i,e.cursor.stream_seq=r.info.streamSequence,e.userCallback)e.userCallback(r);else null===(n=e.iter)||void 0===n||n.push(r);else e.notifyOrderedResetAndReset()}}}},{key:"reset",value:(i=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h=this,c=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{max_messages:100,expires:3e4},n=(r=(r=c.length>1?c[1]:void 0)||{}).fromFetch||!1,i=r.orderedReset||!1,this.type!==nn.Fetch||!i){t.next=11;break}return null===(s=this.iter)||void 0===s||s.src.stop(),t.next=9,null===(a=this.iter)||void 0===a?void 0:a.closed();case 9:return this.currentConsumer=null,t.abrupt("return");case 11:if(null!==this.currentConsumer&&!i){t.next=15;break}return t.next=14,this.resetConsumer(this.cursor.stream_seq+1);case 14:this.currentConsumer=t.sent;case 15:if((null===this.iter||n)&&(this.iter=new yn),this.consumer=new vn(this.api,this.currentConsumer),e.callback=this.internalHandler(this.serial),o=null,this.type!==nn.Fetch||!n){t.next=26;break}return t.next=23,this.consumer.fetch(e);case 23:o=t.sent,t.next=30;break;case 26:if(this.type!==nn.Consume){t.next=30;break}return t.next=29,this.consumer.consume(e);case 29:o=t.sent;case 30:(u=o).forOrderedConsumer=!0,u.resetHandler=function(){h.notifyOrderedResetAndReset()},this.iter.setSource(u);case 34:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"notifyOrderedResetAndReset",value:function(){var t;null===(t=this.iter)||void 0===t||t.notify(an.Reset,""),this.reset(this.opts,{orderedReset:!0})}},{key:"consume",value:(n=m(l().mark((function t(){var e,r,n=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=n.length>0&&void 0!==n[0]?n[0]:{max_messages:100,expires:3e4}).bind){t.next=4;break}return t.abrupt("return",Promise.reject(new Error("bind is not supported")));case 4:if(this.type!==nn.Fetch){t.next=6;break}return t.abrupt("return",Promise.reject(new Error("ordered consumer initialized as fetch")));case 6:if(this.type!==nn.Consume){t.next=8;break}return t.abrupt("return",Promise.reject(new Error("ordered consumer doesn't support concurrent consume")));case 8:return(r=e.callback)&&(this.userCallback=r),this.type=nn.Consume,this.opts=e,t.next=14,this.reset(e);case 14:return t.abrupt("return",this.iter);case 15:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"fetch",value:(r=m(l().mark((function t(){var e,r,n,i=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=i.length>0&&void 0!==i[0]?i[0]:{max_messages:100,expires:3e4}).bind){t.next=4;break}return t.abrupt("return",Promise.reject(new Error("bind is not supported")));case 4:if(this.type!==nn.Consume){t.next=6;break}return t.abrupt("return",Promise.reject(new Error("ordered consumer already initialized as consume")));case 6:if(!1!==(null===(e=this.iter)||void 0===e?void 0:e.done)){t.next=8;break}return t.abrupt("return",Promise.reject(new Error("ordered consumer doesn't support concurrent fetch")));case 8:return(n=r.callback)&&(this.userCallback=n),this.type=nn.Fetch,this.opts=r,t.next=14,this.reset(r,{fromFetch:!0});case 14:return t.abrupt("return",this.iter);case 15:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"next",value:(e=m(l().mark((function t(){var e,r,n=this,i=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=i.length>0&&void 0!==i[0]?i[0]:{expires:3e4}).bind){t.next=4;break}return t.abrupt("return",Promise.reject(new Error("bind is not supported")));case 4:return e.max_messages=1,r=ht(),e.callback=function(t){n.userCallback=null,r.resolve(t)},t.next=9,this.fetch(e);case 9:return t.sent.iterClosed.then((function(t){t&&r.reject(t),r.resolve(null)})).catch((function(t){r.reject(t)})),t.abrupt("return",r);case 12:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"delete",value:function(){var t=this;return this.currentConsumer?this.api.delete(this.stream,this.currentConsumer.name).then((function(t){return Promise.resolve(t)})).catch((function(t){return Promise.reject(t)})).finally((function(){t.currentConsumer=null})):Promise.resolve(!1)}},{key:"info",value:(t=m(l().mark((function t(e){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=this.currentConsumer){t.next=5;break}return t.next=3,this.resetConsumer(this.serial);case 3:return this.currentConsumer=t.sent,t.abrupt("return",Promise.resolve(this.currentConsumer));case 5:if(!e||!this.currentConsumer){t.next=7;break}return t.abrupt("return",Promise.resolve(this.currentConsumer));case 7:return t.abrupt("return",this.api.info(this.stream,this.currentConsumer.name));case 8:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})}]);var t,e,r,n,i,s}(),bn=function(){return k((function t(e){M(this,t),L(this,"api",void 0),L(this,"notified",void 0),this.api=e,this.notified=!1}),[{key:"checkVersion",value:function(){var t=this.api.nc.features.get(_e.JS_SIMPLIFICATION);return t.ok?Promise.resolve():Promise.reject(new Error("consumers framework is only supported on servers ".concat(t.min," or better")))}},{key:"get",value:(e=m(l().mark((function t(e){var r,n=this,s=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("object"!==i(r=s.length>1&&void 0!==s[1]?s[1]:{})){t.next=3;break}return t.abrupt("return",this.ordered(e,r));case 3:return t.next=5,this.checkVersion();case 5:return t.abrupt("return",this.api.info(e,r).then((function(t){return void 0!==t.config.deliver_subject?Promise.reject(new Error("push consumer not supported")):new vn(n.api,t)})).catch((function(t){return Promise.reject(t)})));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"ordered",value:(t=m(l().mark((function t(e,r){var n,i,s=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkVersion();case 2:return n=this.api,i=new wn(n.nc,n.opts),t.abrupt("return",i.info(e).then((function(t){return Promise.resolve(new gn(s.api,e,r))})).catch((function(t){return Promise.reject(t)})));case 5:case"end":return t.stop()}}),t,this)}))),function(e,r){return t.apply(this,arguments)})}]);var t,e}(),Mn=function(){function t(e,r){M(this,t),L(this,"api",void 0),L(this,"_info",void 0),this.api=e,this._info=r}return k(t,[{key:"name",get:function(){return this._info.config.name}},{key:"alternates",value:function(){return this.info().then((function(t){return t.alternates?t.alternates:[]}))}},{key:"best",value:(e=m(l().mark((function e(){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.info();case 2:if(!this._info.alternates){e.next=9;break}return e.next=5,this.api.info(this._info.alternates[0].name);case 5:return r=e.sent,e.abrupt("return",new t(this.api,r));case 9:return e.abrupt("return",this);case 10:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"info",value:function(){var t=this,e=arguments.length>1?arguments[1]:void 0;return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Promise.resolve(this._info):this.api.info(this.name,e).then((function(e){return t._info=e,t._info}))}},{key:"getConsumer",value:function(t){return new bn(new we(this.api.nc,this.api.opts)).get(this.name,t)}},{key:"getMessage",value:function(t){return this.api.getMessage(this.name,t)}},{key:"deleteMessage",value:function(t,e){return this.api.deleteMessage(this.name,t,e)}}]);var e}(),wn=function(t){function e(t,r){return M(this,e),p(this,e,[t,r])}return _(e,t),k(e,[{key:"checkStreamConfigVersions",value:function(t){var e=this.nc;if(t.metadata){var r=e.features.get(_e.JS_STREAM_CONSUMER_METADATA),n=r.min;if(!r.ok)throw new Error("stream 'metadata' requires server ".concat(n))}if(t.first_seq){var i=e.features.get(_e.JS_STREAM_FIRST_SEQ),s=i.min;if(!i.ok)throw new Error("stream 'first_seq' requires server ".concat(s))}if(t.subject_transform){var a=e.features.get(_e.JS_STREAM_SUBJECT_TRANSFORM),o=a.min;if(!a.ok)throw new Error("stream 'subject_transform' requires server ".concat(o))}if(t.compression){var u=e.features.get(_e.JS_STREAM_COMPRESSION),h=u.min;if(!u.ok)throw new Error("stream 'compression' requires server ".concat(h))}if(t.consumer_limits){var c=e.features.get(_e.JS_DEFAULT_CONSUMER_LIMITS),d=c.min;if(!c.ok)throw new Error("stream 'consumer_limits' requires server ".concat(d))}function l(t,r){var n;if(((null==r||null===(n=r.subject_transforms)||void 0===n?void 0:n.length)||0)>0){var i=e.features.get(_e.JS_STREAM_SOURCE_SUBJECT_TRANSFORM),s=i.min;if(!i.ok)throw new Error("".concat(t," 'subject_transforms' requires server ").concat(s))}}t.sources&&t.sources.forEach((function(t){l("stream sources",t)})),t.mirror&&l("stream mirror",t.mirror)}},{key:"add",value:(d=m(l().mark((function t(){var e,r,n,i,s=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=s.length>0&&void 0!==s[0]?s[0]:{},this.checkStreamConfigVersions(r),St(r.name),r.mirror=un(r.mirror),r.sources=null===(e=r.sources)||void 0===e?void 0:e.map(un),t.next=7,this._request("".concat(this.prefix,".STREAM.CREATE.").concat(r.name),r);case 7:return n=t.sent,i=n,this._fixInfo(i),t.abrupt("return",i);case 11:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:"delete",value:(c=m(l().mark((function t(e){var r,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return St(e),t.next=3,this._request("".concat(this.prefix,".STREAM.DELETE.").concat(e));case 3:return r=t.sent,n=r,t.abrupt("return",n.success);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"update",value:(h=m(l().mark((function t(e){var r,s,a,o,u,h,c,d=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=d.length>1&&void 0!==d[1]?d[1]:{},"object"===i(e)&&(e=(a=e).name,s=a,n.trace(" >> streams.update(config: StreamConfig) api changed to streams.update(name: string, config: StreamUpdateConfig) - this shim will be removed - update your code. ")),this.checkStreamConfigVersions(s),St(e),t.next=6,this.info(e);case 6:return o=t.sent,(u=Object.assign(o.config,s)).mirror=un(u.mirror),u.sources=null===(r=u.sources)||void 0===r?void 0:r.map(un),t.next=12,this._request("".concat(this.prefix,".STREAM.UPDATE.").concat(e),u);case 12:return h=t.sent,c=h,this._fixInfo(c),t.abrupt("return",c);case 16:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:"info",value:(u=m(l().mark((function t(e,r){var n,i,s,a,o,u,h,c,d,f,m,p,_,y;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return St(e),n="".concat(this.prefix,".STREAM.INFO.").concat(e),t.next=4,this._request(n,r);case 4:if(i=t.sent,o=(a=s=i).total,u=a.limit,h=s.state.subjects?Object.getOwnPropertyNames(s.state.subjects).length:1,!(o&&o>h)){t.next=32;break}c=[s],d=r||{},f=0;case 12:if(!(o>h)){t.next=26;break}return f++,d.offset=u*f,t.next=17,this._request(n,d);case 17:if(m=t.sent,o=m.total,c.push(m),p=Object.getOwnPropertyNames(m.state.subjects).length,h+=p,!(p0&&void 0!==arguments[0]?arguments[0]:"",r=null!=e&&e.length?{subject:e}:{},n="".concat(this.prefix,".STREAM.LIST");return new ve(n,(function(e){var r=e;return r.streams.forEach((function(e){t._fixInfo(e)})),r.streams}),this,r)}},{key:"_fixInfo",value:function(t){t.config.sealed=t.config.sealed||!1,t.config.deny_delete=t.config.deny_delete||!1,t.config.deny_purge=t.config.deny_purge||!1,t.config.allow_rollup_hdrs=t.config.allow_rollup_hdrs||!1}},{key:"purge",value:(o=m(l().mark((function t(e,r){var n,i,s;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=4;break}if(n=r.keep,i=r.seq,"number"!=typeof n||"number"!=typeof i){t.next=4;break}throw new Error("can specify one of keep or seq");case 4:return St(e),t.next=7,this._request("".concat(this.prefix,".STREAM.PURGE.").concat(e),r);case 7:return s=t.sent,t.abrupt("return",s);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"deleteMessage",value:(a=m(l().mark((function t(e,r){var n,i,s,a,o=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=!(o.length>2&&void 0!==o[2])||o[2],St(e),i={seq:r},n||(i.no_erase=!0),t.next=6,this._request("".concat(this.prefix,".STREAM.MSG.DELETE.").concat(e),i);case 6:return s=t.sent,a=s,t.abrupt("return",a.success);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return a.apply(this,arguments)})},{key:"getMessage",value:(s=m(l().mark((function t(e,r){var n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return St(e),t.next=3,this._request("".concat(this.prefix,".STREAM.MSG.GET.").concat(e),r);case 3:return n=t.sent,i=n,t.abrupt("return",new xn(i));case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return s.apply(this,arguments)})},{key:"find",value:function(t){return this.findStream(t)}},{key:"listKvs",value:function(){var t=this,e="".concat(this.prefix,".STREAM.LIST");return new ve(e,(function(e){var r=e.streams.filter((function(t){return t.config.name.startsWith(Kt)}));r.forEach((function(e){t._fixInfo(e)}));var n,i,s="";r.length&&(s=null!==(n=null===(i=t.nc.info)||void 0===i?void 0:i.cluster)&&void 0!==n?n:"");return r.map((function(t){return new tn(t,s)}))}),this)}},{key:"listObjectStores",value:function(){var t=this,e="".concat(this.prefix,".STREAM.LIST");return new ve(e,(function(e){var r=e.streams.filter((function(t){return t.config.name.startsWith(en)}));return r.forEach((function(e){t._fixInfo(e)})),r.map((function(t){return new on(t)}))}),this)}},{key:"names",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=null!=t&&t.length?{subject:t}:{},r="".concat(this.prefix,".STREAM.NAMES");return new ve(r,(function(t){return t.streams}),this,e)}},{key:"get",value:(r=m(l().mark((function t(e){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.info(e);case 2:return r=t.sent,t.abrupt("return",Promise.resolve(new Mn(this,r)));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})}]);var r,s,a,o,u,h,c,d}(ye),kn=function(t){function e(t,r){return M(this,e),p(this,e,[t,r])}return _(e,t),k(e,[{key:"getMessage",value:(n=m(l().mark((function t(e,r){var n,i,s,a,o,u,h,c;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return St(e),(i=(n=r).last_by_subj)&&(n=null),s=n?this.jc.encode(n):A,a=this.opts.apiPrefix||"$JS.API",o=i?"".concat(a,".DIRECT.GET.").concat(e,".").concat(i):"".concat(a,".DIRECT.GET.").concat(e),t.next=9,this.nc.request(o,s);case 9:if(u=t.sent,!(h=Et(u))){t.next=13;break}return t.abrupt("return",Promise.reject(h));case 13:return c=new Ln(u),t.abrupt("return",Promise.resolve(c));case 15:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"getBatch",value:(r=m(l().mark((function t(e,r){var n,i,s,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(St(e),n=this.opts.apiPrefix||"$JS.API",i="".concat(n,".DIRECT.GET.").concat(e),Array.isArray(r.multi_last)&&0!==r.multi_last.length){t.next=5;break}return t.abrupt("return",Promise.reject("multi_last is required"));case 5:return s=JSON.stringify(r,(function(t,e){return"up_to_time"===t&&e instanceof Date?e.toISOString():e})),a=new Jt,t.next=9,this.nc.requestMany(i,s,{strategy:J.SentinelMsg});case 9:return o=t.sent,m(l().mark((function t(){var e,r,n,i,s,u,h,c,d,f,m,p,_;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!1,r=!1,i=!1,s=!1,t.prev=4,h=x(o);case 6:return t.next=8,h.next();case 8:if(!(i=!(c=t.sent).done)){t.next=26;break}if(d=c.value,e){t.next=20;break}if(e=!0,!(0!==(p=(null===(f=d.headers)||void 0===f?void 0:f.code)||0)&&p<200||p>299)){t.next=16;break}return n=null===(_=d.headers)||void 0===_?void 0:_.description.toLowerCase(),t.abrupt("break",26);case 16:if(""!==(null===(m=d.headers)||void 0===m?void 0:m.get("Nats-Num-Pending"))){t.next=20;break}return r=!0,t.abrupt("break",26);case 20:if(0!==d.data.length){t.next=22;break}return t.abrupt("break",26);case 22:a.push(new Ln(d));case 23:i=!1,t.next=6;break;case 26:t.next=32;break;case 28:t.prev=28,t.t0=t.catch(4),s=!0,u=t.t0;case 32:if(t.prev=32,t.prev=33,!i||null==h.return){t.next=37;break}return t.next=37,h.return();case 37:if(t.prev=37,!s){t.next=40;break}throw u;case 40:return t.finish(37);case 41:return t.finish(32);case 42:a.push((function(){if(r)throw new Error("batch direct get not supported by the server");if(n)throw new Error("bad request: ".concat(n));a.stop()}));case 43:case"end":return t.stop()}}),t,null,[[4,28,32,42],[33,,37,41]])})))(),t.abrupt("return",Promise.resolve(a));case 12:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})}]);var r,n}(ye),Ln=function(){return k((function t(e){if(M(this,t),L(this,"data",void 0),L(this,"header",void 0),!e.headers)throw new Error("headers expected");this.data=e.data,this.header=e.headers}),[{key:"subject",get:function(){return this.header.last(zt.Subject)}},{key:"seq",get:function(){var t=this.header.last(zt.Sequence);return"string"==typeof t?parseInt(t):0}},{key:"time",get:function(){return new Date(Date.parse(this.timestamp))}},{key:"timestamp",get:function(){return this.header.last(zt.TimeStamp)}},{key:"stream",get:function(){return this.header.last(zt.Stream)}},{key:"json",value:function(t){return bt(t).decode(this.data)}},{key:"string",value:function(){return P.decode(this.data)}}])}();L(Ln,"jc",void 0);var Sn=function(t){function e(t,r){var n;return M(this,e),L(n=p(this,e,[t,r]),"streams",void 0),L(n,"consumers",void 0),L(n,"direct",void 0),n.streams=new wn(t,r),n.consumers=new we(t,r),n.direct=new kn(t,r),n}return _(e,t),k(e,[{key:"getAccountInfo",value:(r=m(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._request("".concat(this.prefix,".INFO"));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"jetstream",value:function(){return this.nc.jetstream(this.getOptions())}},{key:"advisories",value:function(){var t=this,e=new Jt;return this.nc.subscribe("$JS.EVENT.ADVISORY.>",{callback:function(r,n){if(r)throw r;try{var i=t.parseJsResponse(n),s=i.type.split("."),a=s[s.length-1];e.push({kind:a,data:i})}catch(r){e.stop(r)}}}),e}}]);var r}(ye),xn=function(){return k((function t(e){M(this,t),L(this,"_header",void 0),L(this,"smr",void 0),this.smr=e}),[{key:"subject",get:function(){return this.smr.message.subject}},{key:"seq",get:function(){return this.smr.message.seq}},{key:"timestamp",get:function(){return this.smr.message.time}},{key:"time",get:function(){return new Date(Date.parse(this.timestamp))}},{key:"data",get:function(){return this.smr.message.data?this._parse(this.smr.message.data):A}},{key:"header",get:function(){if(!this._header)if(this.smr.message.hdrs){var t=this._parse(this.smr.message.hdrs);this._header=vt.decode(t)}else this._header=_t();return this._header}},{key:"_parse",value:function(t){for(var e=atob(t),r=e.length,n=new Uint8Array(r),i=0;id?d:f,e.options.max_chunk_size=f,t.next=14,this.info(e.name);case 14:if(m=t.sent,p=this._checkNotEmpty(e.name),_=p.name,!(y=p.error)){t.next=18;break}return t.abrupt("return",Promise.reject(y));case 18:v=z.next(),g=this._chunkSubject(v),b=this._metaSubject(_),M=Object.assign({bucket:this.name,nuid:v,size:0,chunks:0},Dn(e)),w=ht(),k=[],L=new te,t.prev=25,S=r?r.getReader():null,x=new le;case 28:if(!S){t.next=35;break}return t.next=32,S.read();case 32:t.t0=t.sent,t.next=36;break;case 35:t.t0={done:!0,value:void 0};case 36:if(Y=t.t0,T=Y.done,D=Y.value,!T){t.next=67;break}return L.size()>0&&(E=L.drain(),x.update(E),M.chunks++,M.size+=E.length,k.push(this.js.publish(g,E,{timeout:u}))),t.next=43,Promise.all(k);case 43:return k.length=0,M.mtime=(new Date).toISOString(),j=x.digest("base64"),A=j.length%3,O=A>0?"=".repeat(A):"",M.digest="".concat(rn).concat(j).concat(O),M.deleted=!1,P=_t(),"number"==typeof h&&P.set(zr.ExpectedLastSubjectSequenceHdr,"".concat(h)),P.set(Ft.RollupHdr,Ft.RollupValueSubject),t.next=55,this.js.publish(b,bt().encode(M),{headers:P,timeout:u});case 55:if(R=t.sent,M.revision=R.seq,!m){t.next=65;break}return t.prev=58,t.next=61,this.jsm.streams.purge(this.stream,{filter:"$O.".concat(this.name,".C.").concat(m.nuid)});case 61:t.next=65;break;case 63:t.prev=63,t.t1=t.catch(58);case 65:return w.resolve(new Tn(M)),t.abrupt("break",70);case 67:if(D)for(L.fill(D);L.size()>f;)M.chunks++,M.size+=f,H=L.drain(e.options.max_chunk_size),x.update(H),k.push(this.js.publish(g,H,{timeout:u}));t.next=28;break;case 70:t.next=77;break;case 72:return t.prev=72,t.t2=t.catch(25),t.next=76,this.jsm.streams.purge(this.stream,{filter:g});case 76:w.reject(t.t2);case 77:return t.abrupt("return",w);case 78:case"end":return t.stop()}}),t,this,[[25,72],[58,63]])}))),function(t,e,r){return h.apply(this,arguments)})},{key:"putBlob",value:function(t,e,r){return null===e&&(e=new Uint8Array(0)),this.put(t,function(t){return new ReadableStream({pull:function(e){e.enqueue(t),e.close()}})}(e),r)}},{key:"put",value:function(t,e,r){var n;return null!=t&&null!==(n=t.options)&&void 0!==n&&n.link?Promise.reject(new Error("link cannot be set when putting the object in bucket")):this._put(t,e,r)}},{key:"getBlob",value:(u=m(l().mark((function t(e){var r,n,i,s;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=function(){return(n=m(l().mark((function t(e){var r,n,i,s,a;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=new te,n=e.getReader();case 2:return t.next=5,n.read();case 5:if(i=t.sent,s=i.done,a=i.value,!s){t.next=10;break}return t.abrupt("return",r.drain());case 10:a&&a.length&&r.fill(a),t.next=2;break;case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)},r=function(t){return n.apply(this,arguments)},t.next=4,this.get(e);case 4:if(null!==(i=t.sent)){t.next=7;break}return t.abrupt("return",Promise.resolve(null));case 7:return t.next=9,Promise.all([i.error,r(i.data)]);case 9:if(!(s=t.sent)[0]){t.next=14;break}return t.abrupt("return",Promise.reject(s[0]));case 14:return t.abrupt("return",Promise.resolve(s[1]));case 15:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"get",value:(o=m(l().mark((function e(r){var n,i,s,a,o,u,h,c,d,f;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.rawInfo(r);case 2:if(null!==(n=e.sent)){e.next=5;break}return e.abrupt("return",Promise.resolve(null));case 5:if(!n.deleted){e.next=7;break}return e.abrupt("return",Promise.resolve(null));case 7:if(!n.options||!n.options.link){e.next=20;break}if(""!==(i=n.options.link.name||"")){e.next=11;break}throw new Error("link is a bucket");case 11:if(n.options.link.bucket===this.name){e.next=17;break}return e.next=14,t.create(this.js,n.options.link.bucket);case 14:e.t0=e.sent,e.next=18;break;case 17:e.t0=this;case 18:return s=e.t0,e.abrupt("return",s.get(i));case 20:if(a=ht(),o={info:new Tn(n),error:a},0!==n.size){e.next=26;break}return o.data=new ReadableStream({pull:function(t){t.enqueue(new Uint8Array(0)),t.close()}}),a.resolve(null),e.abrupt("return",Promise.resolve(o));case 26:return(h=Zt()).orderedConsumer(),c=new le,d="$O.".concat(this.name,".C.").concat(n.nuid),e.next=32,this.js.subscribe(d,h);case 32:return f=e.sent,m(l().mark((function t(){var e,r,i,s,a,o,h,d,m,p;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!1,r=!1,t.prev=2,s=x(f);case 4:return t.next=6,s.next();case 6:if(!(e=!(a=t.sent).done)){t.next=13;break}(o=a.value).data.length>0&&(c.update(o.data),u.enqueue(o.data)),0===o.info.pending&&(h=c.digest("base64"),d=h.length%3,m=d>0?"=".repeat(d):"",(p="".concat(rn).concat(h).concat(m))!==n.digest?u.error(new Error("received a corrupt object, digests do not match received: ".concat(n.digest," calculated ").concat(p))):u.close(),f.unsubscribe());case 10:e=!1,t.next=4;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(2),r=!0,i=t.t0;case 19:if(t.prev=19,t.prev=20,!e||null==s.return){t.next=24;break}return t.next=24,s.return();case 24:if(t.prev=24,!r){t.next=27;break}throw i;case 27:return t.finish(24);case 28:return t.finish(19);case 29:case"end":return t.stop()}}),t,null,[[2,15,19,29],[20,,24,28]])})))().then((function(){a.resolve()})).catch((function(t){u.error(t),a.reject(t)})),o.data=new ReadableStream({start:function(t){u=t},cancel:function(){f.unsubscribe()}}),e.abrupt("return",o);case 36:case"end":return e.stop()}}),e,this)}))),function(t){return o.apply(this,arguments)})},{key:"linkStore",value:function(e,r){if(!(r instanceof t))return Promise.reject("bucket required");var n=r,i=this._checkNotEmpty(e),s=i.name,a=i.error;if(a)return Promise.reject(a);var o={name:s,options:{link:{bucket:n.name}}};return this._put(o,null)}},{key:"link",value:(a=m(l().mark((function t(e,r){var n,i,s,a,o,u,h;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this._checkNotEmpty(e),i=n.name,!(s=n.error)){t.next=3;break}return t.abrupt("return",Promise.reject(s));case 3:if(!r.deleted){t.next=5;break}return t.abrupt("return",Promise.reject(new Error("src object is deleted")));case 5:if(!r.isLink()){t.next=7;break}return t.abrupt("return",Promise.reject(new Error("src object is a link")));case 7:return t.next=9,this.rawInfo(e);case 9:if(null===(a=t.sent)||a.deleted){t.next=12;break}return t.abrupt("return",Promise.reject(new Error("an object already exists with that name")));case 12:return o={bucket:r.bucket,name:r.name},u={name:i,bucket:r.bucket,options:{link:o}},t.next=16,this.js.publish(this._metaSubject(e),JSON.stringify(u));case 16:return t.next=18,this.info(e);case 18:return h=t.sent,t.abrupt("return",Promise.resolve(h));case 20:case"end":return t.stop()}}),t,this)}))),function(t,e){return a.apply(this,arguments)})},{key:"delete",value:(s=m(l().mark((function t(e){var r,n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.rawInfo(e);case 2:if(null!==(r=t.sent)){t.next=5;break}return t.abrupt("return",Promise.resolve({purged:0,success:!1}));case 5:return r.deleted=!0,r.size=0,r.chunks=0,r.digest="",n=bt(),(i=_t()).set(Ft.RollupHdr,Ft.RollupValueSubject),t.next=14,this.js.publish(this._metaSubject(r.name),n.encode(r),{headers:i});case 14:return t.abrupt("return",this.jsm.streams.purge(this.stream,{filter:this._chunkSubject(r.nuid)}));case 15:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"update",value:(i=m(l().mark((function t(e){var r,n,i,s,a,o,u,h,c,d=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=d.length>1&&void 0!==d[1]?d[1]:{},t.next=3,this.rawInfo(e);case 3:if(null!==(i=t.sent)){t.next=6;break}return t.abrupt("return",Promise.reject(new Error("object not found")));case 6:if(!i.deleted){t.next=8;break}return t.abrupt("return",Promise.reject(new Error("cannot update meta for a deleted object")));case 8:if(n.name=null!==(r=n.name)&&void 0!==r?r:i.name,s=this._checkNotEmpty(n.name),a=s.name,!(o=s.error)){t.next=12;break}return t.abrupt("return",Promise.reject(o));case 12:if(e===n.name){t.next=18;break}return t.next=15,this.info(n.name);case 15:if(!(u=t.sent)||u.deleted){t.next=18;break}return t.abrupt("return",Promise.reject(new Error("an object already exists with that name")));case 18:return n.name=a,h=Object.assign({},i,Dn(n)),t.next=22,this.js.publish(this._metaSubject(h.name),JSON.stringify(h));case 22:if(c=t.sent,e===n.name){t.next=26;break}return t.next=26,this.jsm.streams.purge(this.stream,{filter:this._metaSubject(e)});case 26:return t.abrupt("return",Promise.resolve(c));case 27:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"watch",value:(n=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h,c=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=c.length>0&&void 0!==c[0]?c[0]:{}).includeHistory=null!==(e=n.includeHistory)&&void 0!==e&&e,n.ignoreDeletes=null!==(r=n.ignoreDeletes)&&void 0!==r&&r,i=!1,s=new Jt,a=this._metaSubjectAll(),t.prev=6,t.next=9,this.jsm.streams.getMessage(this.stream,{last_by_subj:a});case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(6),"404"===t.t0.code?(s.push(null),i=!0):s.stop(t.t0);case 14:return o=bt(),(u=Zt()).orderedConsumer(),n.includeHistory?u.deliverLastPerSubject():(i=!0,u.deliverNew()),u.callback((function(t,e){if(t)s.stop(t);else if(null!==e){var r,a=o.decode(e.data);a.deleted&&!0===n.ignoreDeletes||s.push(a),0!==(null===(r=e.info)||void 0===r?void 0:r.pending)||i||(i=!0,s.push(null))}})),t.next=21,this.js.subscribe(a,u);case 21:return h=t.sent,s._data=h,s.iterClosed.then((function(){h.unsubscribe()})),h.closed.then((function(){s.stop()})).catch((function(t){s.stop(t)})),t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,this,[[6,11]])}))),function(){return n.apply(this,arguments)})},{key:"_chunkSubject",value:function(t){return"$O.".concat(this.name,".C.").concat(t)}},{key:"_metaSubject",value:function(t){return"$O.".concat(this.name,".M.").concat(Qt.encode(t))}},{key:"_metaSubjectAll",value:function(){return"$O.".concat(this.name,".M.>")}},{key:"init",value:(r=m(l().mark((function t(){var e,r,n,i,s=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=s.length>0&&void 0!==s[0]?s[0]:{},t.prev=1,this.stream=(Xr(a=this.name),"".concat(en).concat(a)),t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(1),t.abrupt("return",Promise.reject(t.t0));case 8:return n=(null==r?void 0:r.ttl)||0,delete r.ttl,(i=Object.assign({max_age:n},r)).name=this.stream,i.num_replicas=null!==(e=r.replicas)&&void 0!==e?e:1,i.allow_direct=!0,i.allow_rollup_hdrs=!0,i.discard=Pt.New,i.subjects=["$O.".concat(this.name,".C.>"),"$O.".concat(this.name,".M.>")],r.placement&&(i.placement=r.placement),r.metadata&&(i.metadata=r.metadata),"boolean"==typeof r.compression&&(i.compression=r.compression?Nt.S2:Nt.None),t.prev=20,t.next=23,this.jsm.streams.info(i.name);case 23:t.next=30;break;case 25:if(t.prev=25,t.t1=t.catch(20),"stream not found"!==t.t1.message){t.next=30;break}return t.next=30,this.jsm.streams.add(i);case 30:case"end":return t.stop()}var a}),t,this,[[1,5],[20,25]])}))),function(){return r.apply(this,arguments)})}],[{key:"create",value:(e=m(l().mark((function e(r,n){var i,s,a,o=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.length>2&&void 0!==o[2]?o[2]:{},e.next=3,r.jetstreamManager();case 3:return s=e.sent,a=new t(n,s,r),e.next=7,a.init(i);case 7:return e.abrupt("return",Promise.resolve(a));case 8:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})}]);var e,r,n,i,s,a,o,u,h,c,d,f,p,_,y}(),jn=function(){return k((function t(e){M(this,t),L(this,"js",void 0),this.js=e}),[{key:"kv",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.js.nc.features.get(_e.JS_KV),n=r.ok,i=r.min;return n?e.bindOnly?Qr.bind(this.js,t,e):Qr.create(this.js,t,e):Promise.reject(new Error("kv is only supported on servers ".concat(i," or better")))}},{key:"os",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof(null===(e=crypto)||void 0===e||null===(e=e.subtle)||void 0===e?void 0:e.digest))return Promise.reject(new Error("objectstore: unable to calculate hashes - crypto.subtle.digest with sha256 support is required"));var n=this.js.nc.features.get(_e.JS_OBJECTSTORE),i=n.ok,s=n.min;return i?En.create(this.js,t,r):Promise.reject(new Error("objectstore is only supported on servers ".concat(s," or better")))}}])}(),An=function(t){function e(t,r){var n;return M(this,e),L(n=p(this,e,[t,r]),"consumers",void 0),L(n,"streams",void 0),L(n,"consumerAPI",void 0),L(n,"streamAPI",void 0),n.consumerAPI=new we(t,r),n.streamAPI=new wn(t,r),n.consumers=new bn(n.consumerAPI),n.streams=new Yn(n.streamAPI),n}return _(e,t),k(e,[{key:"jetstreamManager",value:function(t){void 0===t&&(t=this.opts.checkAPI);var e=Object.assign({},this.opts,{checkAPI:t});return this.nc.jetstreamManager(e)}},{key:"apiPrefix",get:function(){return this.prefix}},{key:"views",get:function(){return new jn(this)}},{key:"publish",value:(o=m(l().mark((function t(e){var r,n,i,s,a,o,u,h,c,d,f,m,p=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=p.length>1&&void 0!==p[1]?p[1]:A,(i=(i=p.length>2?p[2]:void 0)||{}).expect=i.expect||{},s=(null===(r=i)||void 0===r?void 0:r.headers)||_t(),i&&(i.msgID&&s.set(zr.MsgIdHdr,i.msgID),i.expect.lastMsgID&&s.set(zr.ExpectedLastMsgIdHdr,i.expect.lastMsgID),i.expect.streamName&&s.set(zr.ExpectedStreamHdr,i.expect.streamName),"number"==typeof i.expect.lastSequence&&s.set(zr.ExpectedLastSeqHdr,"".concat(i.expect.lastSequence)),"number"==typeof i.expect.lastSubjectSequence&&s.set(zr.ExpectedLastSubjectSequenceHdr,"".concat(i.expect.lastSubjectSequence))),a=i.timeout||this.timeout,o={},a&&(o.timeout=a),i&&(o.headers=s),h=(u=i).retries,c=u.retry_delay,h=h||1,c=c||250,f=0;case 14:if(!(f2&&void 0!==u[2]?u[2]:0,St(e),Lt(r),i=this.timeout,n>i&&(i=n),n=n<0?0:ft(n),s={batch:1,no_wait:0===n,expires:n},t.next=9,this.nc.request("".concat(this.prefix,".CONSUMER.MSG.NEXT.").concat(e,".").concat(r),this.jc.encode(s),{noMux:!0,timeout:i});case 9:if(a=t.sent,!(o=Et(a))){t.next=13;break}throw o;case 13:return t.abrupt("return",pn(a,this.timeout));case 14:case"end":return t.stop()}}),t,this)}))),function(t,e){return a.apply(this,arguments)})},{key:"fetch",value:function(t,e){var r,n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};St(t),Lt(e);var s=null,a=(null!==(r=i.max_bytes)&&void 0!==r?r:0)>0,o=0,u=a?i.max_bytes:0,h=null,c={};if(c.batch=i.batch||1,u){var d=this.nc.features.get(_e.JS_PULL_MAX_BYTES);if(!d.ok)throw new Error("max_bytes is only supported on servers ".concat(d.min," or better"));c.max_bytes=u}c.no_wait=i.no_wait||!1,c.no_wait&&c.expires&&(c.expires=0);var f=i.expires||0;if(f&&(c.expires=ft(f)),0===f&&!1===c.no_wait)throw new Error("expires or no_wait is required");var p=i.idle_heartbeat||0;p&&(c.idle_heartbeat=ft(p),!0===i.delay_heartbeat&&(c.idle_heartbeat=ft(4*p)));var _=new Jt,y=c.batch,v=0;_.protocolFilterFn=function(t){var e;return!Dt(t.msg)||(null===(e=h)||void 0===e||e.work(),!1)},_.dispatchedFn=function(t){if(t){if(a&&(o+=t.data.length),v++,s&&0===t.info.pending)return;(1===_.getPending()&&0===t.info.pending||y===v||u>0&&o>=u)&&_.stop()}};var g=et(this.nc.options.inboxPrefix),b=this.nc.subscribe(g,{max:i.batch,callback:function(t,e){var r;(null===t&&(t=Et(e)),null!==t)?(s&&(s.cancel(),s=null),!function(t){return"string"==typeof t.code}(t)?_.stop(t):_.stop(null===Nn(t)?void 0:t)):(null===(r=h)||void 0===r||r.work(),_.received++,_.push(pn(e,n.timeout)))}});return f&&(s=at(f)).catch((function(){b.isClosed()||(b.drain().catch((function(){})),s=null),h&&h.cancel()})),m(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{p&&(h=new Gt(p,(function(t){return _.push((function(){_.err=new Z("".concat(wt.IdleHeartbeatMissed,": ").concat(t),F.JetStreamIdleHeartBeat)})),!0})))}catch(t){}return t.next=3,b.closed;case 3:null!==s&&(s.cancel(),s=null),h&&h.cancel(),_.stop();case 6:case"end":return t.stop()}}),t)})))().catch(),this.nc.publish("".concat(this.prefix,".CONSUMER.MSG.NEXT.").concat(t,".").concat(e),this.jc.encode(c),{reply:g}),_}},{key:"pullSubscribe",value:(s=m(l().mark((function t(e){var r,n,i,s,a,o=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:Zt(),t.next=3,this._processOptions(e,r);case 3:if(!(n=t.sent).ordered){t.next=6;break}throw new Error("pull subscribers cannot be be ordered");case 6:if(!n.config.deliver_subject){t.next=8;break}throw new Error("consumer info specifies deliver_subject - pull consumers cannot have deliver_subject set");case 8:if((i=n.config.ack_policy)!==It.None&&i!==It.All){t.next=11;break}throw new Error("ack policy for pull consumers must be explicit");case 11:return s=this._buildTypedSubscriptionOpts(n),(a=new Cn(this,n.deliver,s)).info=n,t.prev=14,t.next=17,this._maybeCreateConsumer(n);case 17:t.next=23;break;case 19:throw t.prev=19,t.t0=t.catch(14),a.unsubscribe(),t.t0;case 23:return t.abrupt("return",a);case 24:case"end":return t.stop()}}),t,this,[[14,19]])}))),function(t){return s.apply(this,arguments)})},{key:"subscribe",value:(i=m(l().mark((function t(e){var r,n,i,s,a=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:Zt(),t.next=3,this._processOptions(e,r);case 3:if((n=t.sent).isBind||n.config.deliver_subject){t.next=6;break}throw new Error("push consumer requires deliver_subject");case 6:return i=this._buildTypedSubscriptionOpts(n),(s=new In(this,n.deliver,i)).info=n,t.prev=9,t.next=12,this._maybeCreateConsumer(n);case 12:t.next=18;break;case 14:throw t.prev=14,t.t0=t.catch(9),s.unsubscribe(),t.t0;case 18:return s._maybeSetupHbMonitoring(),t.abrupt("return",s);case 20:case"end":return t.stop()}}),t,this,[[9,14]])}))),function(t){return i.apply(this,arguments)})},{key:"_processOptions",value:(n=m(l().mark((function t(e){var r,n,i,s,a,o,u,h=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=h.length>1&&void 0!==h[1]?h[1]:Zt(),(n=$t(r)?r.getOpts():r).isBind=!!$t(r)&&r.isBind,n.flow_control={heartbeat_count:0,fc_count:0,consumer_restarts:0},!n.ordered){t.next=24;break}if(n.ordered_consumer_sequence={stream_seq:0,delivery_seq:0},n.config.ack_policy===It.NotSet||n.config.ack_policy===It.None){t.next=8;break}throw new Z("ordered consumer: ack_policy can only be set to 'none'",F.ApiError);case 8:if(!(n.config.durable_name&&n.config.durable_name.length>0)){t.next=10;break}throw new Z("ordered consumer: durable_name cannot be set",F.ApiError);case 10:if(!(n.config.deliver_subject&&n.config.deliver_subject.length>0)){t.next=12;break}throw new Z("ordered consumer: deliver_subject cannot be set",F.ApiError);case 12:if(!(void 0!==n.config.max_deliver&&n.config.max_deliver>1)){t.next=14;break}throw new Z("ordered consumer: max_deliver cannot be set",F.ApiError);case 14:if(!(n.config.deliver_group&&n.config.deliver_group.length>0)){t.next=16;break}throw new Z("ordered consumer: deliver_group cannot be set",F.ApiError);case 16:n.config.deliver_subject=et(this.nc.options.inboxPrefix),n.config.ack_policy=It.None,n.config.max_deliver=1,n.config.flow_control=!0,n.config.idle_heartbeat=n.config.idle_heartbeat||ft(5e3),n.config.ack_wait=ft(792e5),n.config.mem_storage=!0,n.config.num_replicas=1;case 24:if(n.config.ack_policy===It.NotSet&&(n.config.ack_policy=It.All),n.api=this,n.config=n.config||{},!n.stream){t.next=31;break}t.t0=n.stream,t.next=34;break;case 31:return t.next=33,this.findStream(e);case 33:t.t0=t.sent;case 34:if(n.stream=t.t0,n.attached=!1,!n.config.durable_name){t.next=64;break}return t.prev=37,t.next=40,this.consumerAPI.info(n.stream,n.config.durable_name);case 40:if(!(i=t.sent)){t.next=58;break}if(!i.config.filter_subject||i.config.filter_subject===e){t.next=44;break}throw new Error("subject does not match consumer");case 44:if(""!==(o=null!==(s=n.config.deliver_group)&&void 0!==s?s:"")||!0!==i.push_bound){t.next=47;break}throw new Error("duplicate subscription");case 47:if(u=null!==(a=i.config.deliver_group)&&void 0!==a?a:"",o===u){t.next=54;break}if(""!==u){t.next=53;break}throw new Error("durable requires no queue group");case 53:throw new Error("durable requires queue group '".concat(u,"'"));case 54:n.last=i,n.config=i.config,n.attached=!0,n.config.durable_name||(n.name=i.name);case 58:t.next=64;break;case 60:if(t.prev=60,t.t1=t.catch(37),"404"===t.t1.code){t.next=64;break}throw t.t1;case 64:return n.attached||void 0!==n.config.filter_subject||void 0!==n.config.filter_subjects||(n.config.filter_subject=e),n.deliver=n.config.deliver_subject||et(this.nc.options.inboxPrefix),t.abrupt("return",n);case 67:case"end":return t.stop()}}),t,this,[[37,60]])}))),function(t){return n.apply(this,arguments)})},{key:"_buildTypedSubscriptionOpts",value:function(t){var r,n,i={};return i.adapter=(r=void 0===t.callbackFn,n=this.timeout,r?function(t){return function(e,r){if(e)return[e,null];var n=Et(r);return null!==n?[Nn(n),null]:[null,pn(r,t)]}}(n):function(t){return function(e,r){return e||(e=Et(r))?[e,null]:[null,pn(r,t)]}}(n)),i.ingestionFilterFn=e.ingestionFn(t.ordered),i.protocolFilterFn=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t;return!Tt(r.msg)||(e||r.msg.respond(),!1)},t.mack||t.config.ack_policy===It.None||(i.dispatchedFn=Bn),t.callbackFn&&(i.callback=t.callbackFn),i.max=t.max||0,i.queue=t.queue,i}},{key:"_maybeCreateConsumer",value:(r=m(l().mark((function t(e){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.attached){t.next=2;break}return t.abrupt("return");case 2:if(!e.isBind){t.next=4;break}throw new Error("unable to bind - durable consumer ".concat(e.config.durable_name," doesn't exist in ").concat(e.stream));case 4:return e.config=Object.assign({deliver_policy:Ht.All,ack_policy:It.Explicit,ack_wait:ft(3e4),replay_policy:Ct.Instant},e.config),t.next=7,this.consumerAPI.add(e.stream,e.config);case 7:if(r=t.sent,!Array.isArray(e.config.filter_subjects&&!Array.isArray(r.config.filter_subjects))){t.next=10;break}throw new Error("jetstream server doesn't support consumers with multiple filter subjects");case 10:e.name=r.name,e.config=r.config,e.last=r;case 13:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})}],[{key:"ingestionFn",value:function(t){return function(e,r){var n=r;if(!e)return{ingest:!1,protocol:!1};var i,s=e;Et(s.msg)||(null===(i=n.monitor)||void 0===i||i.work());if(Dt(s.msg)){var a=!t||n._checkHbOrderConsumer(s.msg);return t||n.info.flow_control.heartbeat_count++,{ingest:a,protocol:!0}}return Tt(s.msg)?(n.info.flow_control.fc_count++,{ingest:!0,protocol:!0}):{ingest:!t||n._checkOrderedConsumer(e),protocol:!1}}}}]);var r,n,i,s,a,o}(ye),On=function(){function t(e){M(this,t),L(this,"options",void 0),L(this,"protocol",void 0),L(this,"draining",void 0),L(this,"listeners",void 0),L(this,"_services",void 0),this.draining=!1,this.options=Tr(e),this.listeners=[]}return k(t,[{key:"closed",value:function(){return this.protocol.closed}},{key:"close",value:(s=m(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.protocol.close();case 2:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"_check",value:function(t,e,r){if(this.isClosed())throw Z.errorForCode(F.ConnectionClosed);if(e&&this.isDraining())throw Z.errorForCode(F.ConnectionDraining);if(r&&this.protocol.noMorePublishing)throw Z.errorForCode(F.ConnectionDraining);if(0===(t=t||"").length)throw Z.errorForCode(F.BadSubject)}},{key:"publish",value:function(t,e,r){this._check(t,!1,!0),this.protocol.publish(t,e,r)}},{key:"publishMessage",value:function(t){return this.publish(t.subject,t.data,{reply:t.reply,headers:t.headers})}},{key:"respondMessage",value:function(t){return!!t.reply&&(this.publish(t.reply,t.data,{reply:t.reply,headers:t.headers}),!0)}},{key:"subscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._check(t,!0,!1);var r=new Pr(this.protocol,t,e);return this.protocol.subscribe(r),r}},{key:"_resub",value:function(t,e,r){this._check(e,!0,!1);var n=t;n.max=r,r&&(n.max=r+n.received),this.protocol.resub(n,e)}},{key:"requestMany",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{maxWait:1e3,maxMessages:-1},n=!this.protocol.options.noAsyncTraces;try{this._check(t,!0,!0)}catch(t){return Promise.reject(t)}if(r.strategy=r.strategy||J.Timer,r.maxWait=r.maxWait||1e3,r.maxWait<1)return Promise.reject(new Z("timeout",F.InvalidOption));var i=new Jt;function s(t){i.push((function(){i.stop(t)}))}function a(t,e){t||null===e?s(null===t?void 0:t):i.push(e)}if(r.noMux){var o=n?(new Error).stack:null,u="number"==typeof r.maxMessages&&r.maxMessages>0?r.maxMessages:-1,h=this.subscribe(et(this.options.inboxPrefix),{callback:function(t,e){var n,i;if(0===(null==e||null===(n=e.data)||void 0===n?void 0:n.length)&&(null==e||null===(i=e.headers)||void 0===i?void 0:i.status)===F.NoResponders&&(t=Z.errorForCode(F.NoResponders)),t)return o&&(t.stack+="\n\n".concat(o)),void c(t);a(null,e),r.strategy===J.Count&&0===--u&&c(),r.strategy===J.JitterTimer&&(l(),d=setTimeout((function(){c()}),300)),r.strategy===J.SentinelMsg&&e&&0===e.data.length&&c()}});h.requestSubject=t,h.closed.then((function(){s()})).catch((function(t){i.stop(t)}));var c=function(t){t&&i.push((function(){throw t})),l(),h.drain().then((function(){s()})).catch((function(t){s()}))};i.iterClosed.then((function(){l(),null==h||h.unsubscribe()})).catch((function(t){l(),null==h||h.unsubscribe()}));try{this.publish(t,e,{reply:h.getSubject()})}catch(t){c(t)}var d=setTimeout((function(){c()}),r.maxWait),l=function(){d&&clearTimeout(d)}}else{var f=r;f.callback=a,i.iterClosed.then((function(){m.cancel()})).catch((function(t){m.cancel(t)}));var m=new me(this.protocol.muxSubscriptions,t,f);this.protocol.request(m);try{this.publish(t,e,{reply:"".concat(this.protocol.muxSubscriptions.baseInbox).concat(m.token),headers:r.headers})}catch(t){m.cancel(t)}}return Promise.resolve(i)}},{key:"request",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{timeout:1e3,noMux:!1};try{this._check(t,!0,!0)}catch(t){return Promise.reject(t)}var n=!this.protocol.options.noAsyncTraces;if(r.timeout=r.timeout||1e3,r.timeout<1)return Promise.reject(new Z("timeout",F.InvalidOption));if(!r.noMux&&r.reply)return Promise.reject(new Z("reply can only be used with noMux",F.InvalidOption));if(r.noMux){var i=r.reply?r.reply:et(this.options.inboxPrefix),s=ht(),a=n?new Error:null,o=this.subscribe(i,{max:1,timeout:r.timeout,callback:function(t,e){t?(a&&t.code!==F.Timeout&&(t.stack+="\n\n".concat(a.stack)),o.unsubscribe(),s.reject(t)):(t=Mt(e))?(a&&(t.stack+="\n\n".concat(a.stack)),s.reject(t)):s.resolve(e)}});return o.requestSubject=t,this.protocol.publish(t,e,{reply:i,headers:r.headers}),s}var u=new pe(this.protocol.muxSubscriptions,t,r,n);this.protocol.request(u);try{this.publish(t,e,{reply:"".concat(this.protocol.muxSubscriptions.baseInbox).concat(u.token),headers:r.headers})}catch(t){u.cancel(t)}var h=Promise.race([u.timer,u.deferred]);return h.catch((function(){u.cancel()})),h}},{key:"flush",value:function(){return this.isClosed()?Promise.reject(Z.errorForCode(F.ConnectionClosed)):this.protocol.flush()}},{key:"drain",value:function(){return this.isClosed()?(n.warn("Attempt to drain when connection is closed."),Promise.resolve()):this.isDraining()?(n.warn("Attempt to drain while already draining."),Promise.resolve()):(this.draining=!0,this.protocol.drain().catch((function(t){return n.warn("Draining error:",t),Promise.resolve()})))}},{key:"isClosed",value:function(){return this.protocol.isClosed()}},{key:"isDraining",value:function(){return this.draining}},{key:"getServer",value:function(){var t=this.protocol.getServer();return t?t.listen:""}},{key:"status",value:function(){var t=this,e=new Jt;return e.iterClosed.then((function(){var r=t.listeners.indexOf(e);t.listeners.splice(r,1)})),this.listeners.push(e),e}},{key:"info",get:function(){return this.protocol.isClosed()?void 0:this.protocol.info}},{key:"context",value:(i=m(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.request("$SYS.REQ.USER.INFO");case 2:return e=t.sent,t.abrupt("return",e.json((function(t,e){return"time"===t?new Date(Date.parse(e)):e})));case 4:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"stats",value:function(){return{inBytes:this.protocol.inBytes,outBytes:this.protocol.outBytes,inMsgs:this.protocol.inMsgs,outMsgs:this.protocol.outMsgs}}},{key:"jetstreamManager",value:(r=m(l().mark((function t(){var e,r,n,i=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=new Sn(this,e=i.length>0&&void 0!==i[0]?i[0]:{}),!1===e.checkAPI){t.next=13;break}return t.prev=3,t.next=6,r.getAccountInfo();case 6:t.next=13;break;case 8:throw t.prev=8,t.t0=t.catch(3),(n=t.t0).code===F.NoResponders&&(n.code=F.JetStreamNotEnabled),n;case 13:return t.abrupt("return",r);case 14:case"end":return t.stop()}}),t,this,[[3,8]])}))),function(){return r.apply(this,arguments)})},{key:"jetstream",value:function(){return new An(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},{key:"getServerVersion",value:function(){var t=this.info;return t?ge(t.version):void 0}},{key:"rtt",value:(e=m(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.protocol._closed||this.protocol.connected){t.next=2;break}throw Z.errorForCode(F.Disconnect);case 2:return e=Date.now(),t.next=5,this.flush();case 5:return t.abrupt("return",Date.now()-e);case 6:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"features",get:function(){return this.protocol.features}},{key:"services",get:function(){return this._services||(this._services=new Pn(this)),this._services}},{key:"reconnect",value:function(){return this.isClosed()?Promise.reject(Z.errorForCode(F.ConnectionClosed)):this.isDraining()?Promise.reject(Z.errorForCode(F.ConnectionDraining)):this.protocol.reconnect()}}],[{key:"connect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(r,n){var i=new t(e);Hr.connect(i.options,i).then((function(t){i.protocol=t,m(l().mark((function e(){var r,n,s,a,o,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1,n=!1,e.prev=2,a=l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=u.value,i.listeners.forEach((function(t){t.push(e)}));case 2:case"end":return t.stop()}}),t)})),o=x(t.status());case 5:return e.next=7,o.next();case 7:if(!(r=!(u=e.sent).done)){e.next=12;break}return e.delegateYield(a(),"t0",9);case 9:r=!1,e.next=5;break;case 12:e.next=18;break;case 14:e.prev=14,e.t1=e.catch(2),n=!0,s=e.t1;case 18:if(e.prev=18,e.prev=19,!r||null==o.return){e.next=23;break}return e.next=23,o.return();case 23:if(e.prev=23,!n){e.next=26;break}throw s;case 26:return e.finish(23);case 27:return e.finish(18);case 28:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})))(),r(i)})).catch((function(t){n(t)}))}))}}]);var e,r,i,s}(),Pn=function(){return k((function t(e){M(this,t),L(this,"nc",void 0),this.nc=e}),[{key:"add",value:function(t){try{return new Nr(this.nc,t).start()}catch(t){return Promise.reject(t)}}},{key:"client",value:function(t,e){return new qr(this.nc,t,e)}}])}(),Rn=function(){return k((function t(e,r,n){M(this,t),L(this,"bucket",void 0),L(this,"sm",void 0),L(this,"prefixLen",void 0),this.bucket=e,this.prefixLen=r,this.sm=n}),[{key:"key",get:function(){return this.sm.subject.substring(this.prefixLen)}},{key:"value",get:function(){return this.sm.data}},{key:"delta",get:function(){return 0}},{key:"created",get:function(){return this.sm.time}},{key:"revision",get:function(){return this.sm.seq}},{key:"operation",get:function(){return this.sm.header.get(Wr)||"PUT"}},{key:"length",get:function(){var t=this.sm.header.get(Ft.MessageSizeHdr)||"";return""!==t?parseInt(t,10):this.sm.data.length}},{key:"json",value:function(){return this.sm.json()}},{key:"string",value:function(){return this.sm.string()}}])}(),Hn=function(){return k((function t(e,r,n){M(this,t),L(this,"bucket",void 0),L(this,"key",void 0),L(this,"sm",void 0),this.bucket=e,this.key=r,this.sm=n}),[{key:"value",get:function(){return this.sm.data}},{key:"created",get:function(){return new Date(mt(this.sm.info.timestampNanos))}},{key:"revision",get:function(){return this.sm.seq}},{key:"operation",get:function(){var t;return(null===(t=this.sm.headers)||void 0===t?void 0:t.get(Wr))||"PUT"}},{key:"delta",get:function(){return this.sm.info.pending}},{key:"length",get:function(){var t,e=(null===(t=this.sm.headers)||void 0===t?void 0:t.get(Ft.MessageSizeHdr))||"";return""!==e?parseInt(e,10):this.sm.data.length}},{key:"json",value:function(){return this.sm.json()}},{key:"string",value:function(){return this.sm.string()}}])}(),In=function(t){function e(t,r,n){var i;return M(this,e),L(i=p(this,e,[t.nc,r,n]),"js",void 0),L(i,"monitor",void 0),i.js=t,i.monitor=null,i.sub.closed.then((function(){i.monitor&&i.monitor.cancel()})),i}return _(e,t),k(e,[{key:"info",get:function(){return this.sub.info},set:function(t){this.sub.info=t}},{key:"_resetOrderedConsumer",value:function(t){var e=this;if(null!==this.info&&!this.sub.isClosed()){var r=et(this.js.nc.options.inboxPrefix);this.js.nc._resub(this.sub,r);var n=this.info;n.config.name=z.next(),n.ordered_consumer_sequence.delivery_seq=0,n.flow_control.heartbeat_count=0,n.flow_control.fc_count=0,n.flow_control.consumer_restarts++,n.deliver=r,n.config.deliver_subject=r,n.config.deliver_policy=Ht.StartSequence,n.config.opt_start_seq=t;var i={};i.stream_name=this.info.stream,i.config=n.config;var s="".concat(n.api.prefix,".CONSUMER.CREATE.").concat(n.stream);this.js._request(s,i,{retries:-1}).then((function(t){var r=t;e.sub.info.last=r,e.info.config=r.config,e.info.name=r.name})).catch((function(r){var i=new Z("unable to recreate ordered consumer ".concat(n.stream," at seq ").concat(t),F.RequestError,r);e.sub.callback(i,{})}))}}},{key:"_maybeSetupHbMonitoring",value:function(){var t,e=(null===(t=this.info)||void 0===t||null===(t=t.config)||void 0===t?void 0:t.idle_heartbeat)||0;e&&this._setupHbMonitoring(mt(e))}},{key:"_setupHbMonitoring",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={cancelAfter:0,maxOut:2};r&&(n.cancelAfter=r);var i=this.sub;this.monitor=new Gt(t,(function(t){var r,n=function(t,e,r){var n=_t(t,e),i=new kt({hdr:1,sid:0,size:0},A,{});return i._headers=n,i._subject=r,i}(409,"".concat(wt.IdleHeartbeatMissed,": ").concat(t),e.sub.subject);if(null===(r=e.info)||void 0===r?void 0:r.ordered){var s,a;if(!e.js.nc.protocol.connected)return!1;var o=(null===(s=e.info)||void 0===s||null===(s=s.ordered_consumer_sequence)||void 0===s?void 0:s.stream_seq)||0;return e._resetOrderedConsumer(o+1),null===(a=e.monitor)||void 0===a||a.restart(),!1}return e.sub.callback(null,n),!i.noIterator}),n)}},{key:"_checkHbOrderConsumer",value:function(t){var e=t.headers.get(Ft.ConsumerStalledHdr);""!==e&&this.js.nc.publish(e);var r=parseInt(t.headers.get(Ft.LastConsumerSeqHdr),10),n=this.info.ordered_consumer_sequence;return this.info.flow_control.heartbeat_count++,r!==n.delivery_seq&&this._resetOrderedConsumer(n.stream_seq+1),!1}},{key:"_checkOrderedConsumer",value:function(t){var e=this.info.ordered_consumer_sequence,r=t.info.streamSequence,n=t.info.deliverySequence;return n!=e.delivery_seq+1?(this._resetOrderedConsumer(e.stream_seq+1),!1):(e.delivery_seq=n,e.stream_seq=r,!0)}},{key:"destroy",value:(n=m(l().mark((function t(){var e,r,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isClosed()){t.next=3;break}return t.next=3,this.drain();case 3:return e=this.sub.info,r=e.config.durable_name||e.name,n="".concat(e.api.prefix,".CONSUMER.DELETE.").concat(e.stream,".").concat(r),t.next=8,e.api._request(n);case 8:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"consumerInfo",value:(r=m(l().mark((function t(){var e,r,n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.sub.info,r=e.config.durable_name||e.name,n="".concat(e.api.prefix,".CONSUMER.INFO.").concat(e.stream,".").concat(r),t.next=5,e.api._request(n);case 5:return i=t.sent,e.last=i,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})}]);var r,n}(Se),Cn=function(t){function e(t,r,n){return M(this,e),p(this,e,[t,r,n])}return _(e,t),k(e,[{key:"pull",value:function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{batch:1},n=this.sub.info,i=n.stream,s=n.config,a=n.name,o=null!==(t=s.durable_name)&&void 0!==t?t:a,u={};if(u.batch=r.batch||1,u.no_wait=r.no_wait||!1,(null!==(e=r.max_bytes)&&void 0!==e?e:0)>0){var h=this.js.nc.features.get(_e.JS_PULL_MAX_BYTES);if(!h.ok)throw new Error("max_bytes is only supported on servers ".concat(h.min," or better"));u.max_bytes=r.max_bytes}var c=0;r.expires&&r.expires>0&&(c=r.expires,u.expires=ft(c));var d=0;if(r.idle_heartbeat&&r.idle_heartbeat>0&&(d=r.idle_heartbeat,u.idle_heartbeat=ft(d)),d&&0===c)throw new Error("idle_heartbeat requires expires");if(d>c)throw new Error("expires must be greater than idle_heartbeat");if(this.info){this.monitor&&this.monitor.cancel(),c&&d&&(this.monitor?this.monitor._change(d,c):this._setupHbMonitoring(d,c));var l=this.info.api,f="".concat(l.prefix,".CONSUMER.MSG.NEXT.").concat(i,".").concat(o),m=this.sub.subject;l.nc.publish(f,l.jc.encode(u),{reply:m})}}}])}(In);function Nn(t){if(null!==t)switch(t.code){case F.JetStream404NoMessages:case F.JetStream408RequestTimeout:return null;case F.JetStream409:return function(t){if(t.code!==F.JetStream409)return!1;var e=[wt.MaxBatchExceeded,wt.MaxExpiresExceeded,wt.MaxBytesExceeded,wt.MaxMessageSizeExceeded,wt.PushConsumer,wt.IdleHeartbeatMissed,wt.ConsumerDeleted];return jt&&e.push(wt.MaxWaitingExceeded),void 0!==e.find((function(e){return-1!==t.message.indexOf(e)}))}(t)?t:null;default:return t}return null}function Bn(t){t&&t.ack()}var qn=function(){return k((function t(e,r){M(this,t),L(this,"msg",void 0),L(this,"di",void 0),L(this,"didAck",void 0),L(this,"timeout",void 0),this.msg=e,this.didAck=!1,this.timeout=r}),[{key:"subject",get:function(){return this.msg.subject}},{key:"sid",get:function(){return this.msg.sid}},{key:"data",get:function(){return this.msg.data}},{key:"headers",get:function(){return this.msg.headers}},{key:"info",get:function(){return this.di||(this.di=function(t){var e=t.split(".");if(9===e.length&&e.splice(2,0,"_",""),e.length<11||"$JS"!==e[0]||"ACK"!==e[1])throw new Error("not js message");var r={};return r.domain="_"===e[2]?"":e[2],r.account_hash=e[3],r.stream=e[4],r.consumer=e[5],r.redeliveryCount=parseInt(e[6],10),r.redelivered=r.redeliveryCount>1,r.streamSequence=parseInt(e[7],10),r.deliverySequence=parseInt(e[8],10),r.timestampNanos=parseInt(e[9],10),r.pending=parseInt(e[10],10),r}(this.reply)),this.di}},{key:"redelivered",get:function(){return this.info.redeliveryCount>1}},{key:"reply",get:function(){return this.msg.reply||""}},{key:"seq",get:function(){return this.info.streamSequence}},{key:"doAck",value:function(t){this.didAck||(this.didAck=!this.isWIP(t),this.msg.respond(t))}},{key:"isWIP",value:function(t){return 4===t.length&&t[0]===dn[0]&&t[1]===dn[1]&&t[2]===dn[2]&&t[3]===dn[3]}},{key:"ackAck",value:(t=m(l().mark((function t(e){var r,n,i,s,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=e||{}).timeout=e.timeout||this.timeout,r=ht(),this.didAck){t.next=27;break}if(this.didAck=!0,!this.msg.reply){t.next=24;break}i=this.msg,s=i.publisher,a=!(null!==(n=s.options)&&void 0!==n&&n.noAsyncTraces),o=new pe(s.muxSubscriptions,this.msg.reply,{timeout:e.timeout},a),s.request(o);try{s.publish(this.msg.reply,hn,{reply:"".concat(s.muxSubscriptions.baseInbox).concat(o.token)})}catch(t){o.cancel(t)}return t.prev=12,t.next=15,Promise.race([o.timer,o.deferred]);case 15:r.resolve(!0),t.next=22;break;case 18:t.prev=18,t.t0=t.catch(12),o.cancel(t.t0),r.reject(t.t0);case 22:t.next=25;break;case 24:r.resolve(!1);case 25:t.next=28;break;case 27:r.resolve(!1);case 28:return t.abrupt("return",r);case 29:case"end":return t.stop()}}),t,this,[[12,18]])}))),function(e){return t.apply(this,arguments)})},{key:"ack",value:function(){this.doAck(hn)}},{key:"nak",value:function(t){var e=cn;t&&(e=gt().encode("-NAK ".concat(JSON.stringify({delay:ft(t)})))),this.doAck(e)}},{key:"working",value:function(){this.doAck(dn)}},{key:"next",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{batch:1},r={};r.batch=e.batch||1,r.no_wait=e.no_wait||!1,e.expires&&e.expires>0&&(r.expires=ft(e.expires));var n=bt().encode(r),i=te.concat(ln,mn,n),s=t?{reply:t}:void 0;this.msg.respond(i,s)}},{key:"term",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=fn;(null==t?void 0:t.length)>0&&(e=gt().encode("+TERM ".concat(t))),this.doAck(e)}},{key:"json",value:function(){return this.msg.json()}},{key:"string",value:function(){return this.msg.string()}}]);var t}(),Fn=function(){return k((function t(){M(this,t),L(this,"version",void 0),L(this,"lang",void 0),L(this,"closeError",void 0),L(this,"connected",void 0),L(this,"done",void 0),L(this,"socket",void 0),L(this,"options",void 0),L(this,"socketClosed",void 0),L(this,"encrypted",void 0),L(this,"peeked",void 0),L(this,"yields",void 0),L(this,"signal",void 0),L(this,"closedNotification",void 0),this.version="1.29.2",this.lang="nats.ws",this.connected=!1,this.done=!1,this.socketClosed=!1,this.encrypted=!1,this.peeked=!1,this.yields=[],this.signal=ht(),this.closedNotification=ht()}),[{key:"connect",value:(e=m(l().mark((function t(e,r){var i,s,a,u,h,c,d=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=!1,s=ht(),!r.tls){t.next=5;break}return s.reject(new Z("tls",F.InvalidOption)),t.abrupt("return",s);case 5:if(this.options=r,a=e.src,!r.wsFactory){t.next=17;break}return t.next=10,r.wsFactory(e.src,r);case 10:u=t.sent,h=u.socket,c=u.encrypted,this.socket=h,this.encrypted=c,t.next=19;break;case 17:this.encrypted=0===a.indexOf("wss://"),this.socket=new WebSocket(a);case 19:return this.socket.binaryType="arraybuffer",this.socket.onopen=function(){d.isDiscarded()},this.socket.onmessage=function(t){if(!d.isDiscarded())if(d.yields.push(new Uint8Array(t.data)),d.peeked)d.signal.resolve();else{var e=te.concat.apply(te,o(d.yields)),i=Oe(e);if(""!==i){var a=Er.exec(i);if(!a)return r.debug&&n.error("!!!",st(e)),void s.reject(new Error("unexpected response from server"));try{Dr(JSON.parse(a[1]),d.options),d.peeked=!0,d.connected=!0,d.signal.resolve(),s.resolve()}catch(t){return void s.reject(t)}}}},this.socket.onclose=function(t){var e;d.isDiscarded()||(d.socketClosed=!0,d.done||(t.wasClean||(e=new Error(t.reason)),d._closed(e)))},this.socket.onerror=function(t){if(!d.isDiscarded()){var e=t,r=new Z(e.message,F.Unknown,new Error(e.error));i?d._closed(r):s.reject(r)}},t.abrupt("return",s);case 25:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})},{key:"disconnect",value:function(){this._closed(void 0,!0)}},{key:"_closed",value:(t=m(l().mark((function t(e){var r,n=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=!(n.length>1&&void 0!==n[1])||n[1],!this.isDiscarded()){t.next=3;break}return t.abrupt("return");case 3:if(this.connected){t.next=5;break}return t.abrupt("return");case 5:if(!this.done){t.next=7;break}return t.abrupt("return");case 7:if(this.closeError=e,e){t.next=14;break}case 9:if(this.socketClosed||!(this.socket.bufferedAmount>0)){t.next=14;break}return t.next=12,ot(100);case 12:t.next=9;break;case 14:this.done=!0;try{this.socket.close(e?1002:1e3,e?e.message:void 0)}catch(t){}r&&this.closedNotification.resolve(e);case 17:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"isClosed",get:function(){return this.done}},{key:Symbol.asyncIterator,value:function(){return this.iterate()}},{key:"iterate",value:function(){var t=this;return D(l().mark((function e(){var r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isDiscarded()){e.next=3;break}return e.abrupt("return");case 3:if(0!==t.yields.length){e.next=6;break}return e.next=6,T(t.signal);case 6:r=t.yields,t.yields=[],i=0;case 9:if(!(i ".concat(st(r[i]))),e.next=13,r[i];case 13:i++,e.next=9;break;case 16:if(!t.done){e.next=20;break}return e.abrupt("break",23);case 20:0===t.yields.length&&(r.length=0,t.yields=r,t.signal=ht());case 21:e.next=0;break;case 23:case"end":return e.stop()}}),e)})))()}},{key:"isEncrypted",value:function(){return this.connected&&this.encrypted}},{key:"send",value:function(t){if(!this.isDiscarded())try{return this.socket.send(t.buffer),void(this.options.debug&&n.info("< ".concat(st(t))))}catch(e){this.options.debug&&n.error("!!! ".concat(st(t),": ").concat(e))}}},{key:"close",value:function(t){return this._closed(t,!1)}},{key:"closed",value:function(){return this.closedNotification}},{key:"isDiscarded",value:function(){return!!this.done&&(this.discard(),!0)}},{key:"discard",value:function(){this.done=!0;try{var t;null===(t=this.socket)||void 0===t||t.close()}catch(t){}}}]);var t,e}();function Un(t,e){/^(.*:\/\/)(.*)/.test(t)||(t="boolean"==typeof e?"".concat(!0===e?"https":"http","://").concat(t):"https://".concat(t));var r,n,i=new URL(t),s=i.protocol.toLowerCase();"ws:"===s&&(e=!1),"wss:"===s&&(e=!0),"https:"!==s&&"http"!==s&&(t=t.replace(/^(.*:\/\/)(.*)/gm,"$2"),i=new URL("http://".concat(t)));var a=i.hostname,o=i.pathname,u=i.search||"";switch(s){case"http:":case"ws:":case"nats:":n=i.port||"80",r="ws:";break;case"https:":case"wss:":case"tls:":n=i.port||"443",r="wss:";break;default:n=i.port||!0===e?"443":"80",r=!0===e?"wss:":"ws:"}return"".concat(r,"//").concat(a,":").concat(n).concat(o).concat(u)}function zn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le={defaultPort:443,urlParseFn:Un,factory:function(){return new Fn}},On.connect(t)}},(t,e,r)=>{"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(201),e.createHash=e.Hash=r(206),e.createHmac=e.Hmac=r(239);var n=r(242),i=Object.keys(n),s=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return s};var a=r(244);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var o=r(250);e.Cipher=o.Cipher,e.createCipher=o.createCipher,e.Cipheriv=o.Cipheriv,e.createCipheriv=o.createCipheriv,e.Decipher=o.Decipher,e.createDecipher=o.createDecipher,e.Decipheriv=o.Decipheriv,e.createDecipheriv=o.createDecipheriv,e.getCiphers=o.getCiphers,e.listCiphers=o.listCiphers;var u=r(279);e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var h=r(289);e.createSign=h.createSign,e.Sign=h.Sign,e.createVerify=h.createVerify,e.Verify=h.Verify,e.createECDH=r(366);var c=r(369);e.publicEncrypt=c.publicEncrypt,e.privateEncrypt=c.privateEncrypt,e.publicDecrypt=c.publicDecrypt,e.privateDecrypt=c.privateDecrypt;var d=r(377);e.randomFill=d.randomFill,e.randomFillSync=d.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},(t,e,r)=>{"use strict";var n=r(6),i=65536,s=4294967295;var a=r(202).Buffer,o=r.g.crypto||r.g.msCrypto;o&&o.getRandomValues?t.exports=function(t,e){if(t>s)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(t);if(t>0)if(t>i)for(var u=0;u{ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ var n=r(203),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),s(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},(t,e,r)=>{"use strict";var n=r(4); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */const i=r(204),s=r(205),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=h,e.SlowBuffer=function(t){+t!=t&&(t=0);return h.alloc(+t)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function u(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,h.prototype),e}function h(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!h.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|_(t,e);let n=u(r);const i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Z(t,Uint8Array)){const e=new Uint8Array(t);return m(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Z(t,ArrayBuffer)||t&&Z(t.buffer,ArrayBuffer))return m(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Z(t,SharedArrayBuffer)||t&&Z(t.buffer,SharedArrayBuffer)))return m(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return h.from(n,e,r);const i=function(t){if(h.isBuffer(t)){const e=0|p(t.length),r=u(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||$(t.length)?u(0):f(t);if("Buffer"===t.type&&Array.isArray(t.data))return f(t.data)}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return h.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function d(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return d(t),u(t<0?0:0|p(t))}function f(t){const e=t.length<0?0:0|p(t.length),r=u(e);for(let n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function _(t,e){if(h.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Z(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return K(t).length;default:if(i)return n?-1:G(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,r);case"utf8":case"utf-8":return Y(this,e,r);case"ascii":return D(this,e,r);case"latin1":case"binary":return E(this,e,r);case"base64":return x(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),$(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=h.from(e,n)),h.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){let s,a=1,o=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,o/=2,u/=2,r/=2}function h(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let n=-1;for(s=r;so&&(r=o-u),s=r;s>=0;s--){let r=!0;for(let n=0;ni&&(n=i):n=i;const s=e.length;let a;for(n>s/2&&(n=s/2),a=0;a>8,i=r%256,s.push(i),s.push(n);return s}(e,t.length-r),t,r,n)}function x(t,e,r){return 0===e&&r===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,r))}function Y(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+a<=r){let r,n,o,u;switch(a){case 1:e<128&&(s=e);break;case 2:r=t[i+1],128==(192&r)&&(u=(31&e)<<6|63&r,u>127&&(s=u));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(u=(15&e)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(s=u));break;case 4:r=t[i+1],n=t[i+2],o=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&o)&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&o,u>65535&&u<1114112&&(s=u))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=a}return function(t){const e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);let r="",n=0;for(;nn.length?(h.isBuffer(e)||(e=h.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!h.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},h.byteLength=_,h.prototype._isBuffer=!0,h.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;er&&(t+=" ... "),""},a&&(h.prototype[a]=h.prototype.inspect),h.prototype.compare=function(t,e,r,n,i){if(Z(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let s=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0);const o=Math.min(s,a),u=this.slice(n,i),c=t.slice(e,r);for(let t=0;t>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let s=!1;for(;;)switch(n){case"hex":return M(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":case"latin1":case"binary":return k(this,t,e,r);case"base64":return L(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function D(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;in)&&(r=n);let i="";for(let n=e;nr)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,r,n,i,s){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function R(t,e,r,n,i){U(e,n,i,t,r,7);let s=Number(e&BigInt(4294967295));t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,r}function H(t,e,r,n,i){U(e,n,i,t,r,7);let s=Number(e&BigInt(4294967295));t[r+7]=s,s>>=8,t[r+6]=s,s>>=8,t[r+5]=s,s>>=8,t[r+4]=s;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a>>=8,t[r+2]=a,a>>=8,t[r+1]=a,a>>=8,t[r]=a,r+8}function I(t,e,r,n,i,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(t,e,r,n,i){return e=+e,r>>>=0,i||I(t,0,r,4),s.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,i){return e=+e,r>>>=0,i||I(t,0,r,8),s.write(t,e,r,n,52,8),r+8}h.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||O(t,e,this.length);let n=this[t],i=1,s=0;for(;++s>>=0,e>>>=0,r||O(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},h.prototype.readUint8=h.prototype.readUInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),this[t]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readBigUInt64LE=Q((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<>>=0,e>>>=0,r||O(t,e,this.length);let n=this[t],i=1,s=0;for(;++s=i&&(n-=Math.pow(2,8*e)),n},h.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||O(t,e,this.length);let n=e,i=1,s=this[t+--n];for(;n>0&&(i*=256);)s+=this[t+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*e)),s},h.prototype.readInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){t>>>=0,e||O(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(t,e){t>>>=0,e||O(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readBigInt64LE=Q((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<>>=0,e||O(t,4,this.length),s.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||O(t,4,this.length),s.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||O(t,8,this.length),s.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||O(t,8,this.length),s.read(this,t,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){P(this,t,e,r,Math.pow(2,8*r)-1,0)}let i=1,s=0;for(this[e]=255&t;++s>>=0,r>>>=0,!n){P(this,t,e,r,Math.pow(2,8*r)-1,0)}let i=r-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+r},h.prototype.writeUint8=h.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,255,0),this[e]=255&t,e+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeBigUInt64LE=Q((function(t,e=0){return R(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=Q((function(t,e=0){return H(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);P(this,t,e,r,n-1,-n)}let i=0,s=1,a=0;for(this[e]=255&t;++i>>=0,!n){const n=Math.pow(2,8*r-1);P(this,t,e,r,n-1,-n)}let i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},h.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},h.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeBigInt64LE=Q((function(t,e=0){return R(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=Q((function(t,e=0){return H(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(t,e,r){return C(this,t,e,!0,r)},h.prototype.writeFloatBE=function(t,e,r){return C(this,t,e,!1,r)},h.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},h.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},h.prototype.copy=function(t,e,r,n){if(!h.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function U(t,e,r,n,i,s){if(t>r||t3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(s+1)}${n}`:`>= -(2${n} ** ${8*(s+1)-1}${n}) and < 2 ** ${8*(s+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new B.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){z(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||W(e,t.length-(r+1))}(n,i,s)}function z(t,e){if("number"!=typeof t)throw new B.ERR_INVALID_ARG_TYPE(e,"number",t)}function W(t,e,r){if(Math.floor(t)!==t)throw z(t,r),new B.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),q("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=F(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);const J=/[^+/0-9A-Za-z-_]/g;function G(t,e){let r;e=e||1/0;const n=t.length;let i=null;const s=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function K(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(J,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,r,n){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function $(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function Q(t){return"undefined"==typeof BigInt?tt:t}function tt(){throw new Error("BigInt not supported")}},(t,e)=>{"use strict";e.byteLength=function(t){var e=o(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,s=o(t),a=s[0],u=s[1],h=new i(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),c=0,d=u>0?a-4:a;for(r=0;r>16&255,h[c++]=e>>8&255,h[c++]=255&e;2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,h[c++]=255&e);1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,h[c++]=e>>8&255,h[c++]=255&e);return h},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,s=[],a=16383,o=0,h=n-i;oh?h:o+a));1===i?(e=t[n-1],s.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],s.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=s[a],n[s.charCodeAt(a)]=a;function o(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var i,s,a=[],o=e;o>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},(t,e)=>{ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ e.read=function(t,e,r,n,i){var s,a,o=8*i-n-1,u=(1<>1,c=-7,d=r?i-1:0,l=r?-1:1,f=t[e+d];for(d+=l,s=f&(1<<-c)-1,f>>=-c,c+=o;c>0;s=256*s+t[e+d],d+=l,c-=8);for(a=s&(1<<-c)-1,s>>=-c,c+=n;c>0;a=256*a+t[e+d],d+=l,c-=8);if(0===s)s=1-h;else{if(s===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),s-=h}return(f?-1:1)*a*Math.pow(2,s-n)},e.write=function(t,e,r,n,i,s){var a,o,u,h=8*s-i-1,c=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:s-1,m=n?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+d>=1?l/u:l*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=c?(o=0,a=c):a+d>=1?(o=(e*u-1)*Math.pow(2,i),a+=d):(o=e*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;t[r+f]=255&o,f+=m,o/=256,i-=8);for(a=a<0;t[r+f]=255&a,f+=m,a/=256,h-=8);t[r+f-m]|=128*p}},(t,e,r)=>{"use strict";var n=r(39),i=r(207),s=r(229),a=r(230),o=r(238);function u(t){o.call(this,"digest"),this._hash=t}n(u,o),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new i:"rmd160"===t||"ripemd160"===t?new s:new u(a(t))}},(t,e,r)=>{"use strict";var n=r(39),i=r(208),s=r(202).Buffer,a=new Array(16);function o(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<>>32-e}function h(t,e,r,n,i,s,a){return u(t+(e&r|~e&n)+i+s|0,a)+e|0}function c(t,e,r,n,i,s,a){return u(t+(e&n|r&~n)+i+s|0,a)+e|0}function d(t,e,r,n,i,s,a){return u(t+(e^r^n)+i+s|0,a)+e|0}function l(t,e,r,n,i,s,a){return u(t+(r^(e|~n))+i+s|0,a)+e|0}n(o,i),o.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,s=this._d;r=h(r,n,i,s,t[0],3614090360,7),s=h(s,r,n,i,t[1],3905402710,12),i=h(i,s,r,n,t[2],606105819,17),n=h(n,i,s,r,t[3],3250441966,22),r=h(r,n,i,s,t[4],4118548399,7),s=h(s,r,n,i,t[5],1200080426,12),i=h(i,s,r,n,t[6],2821735955,17),n=h(n,i,s,r,t[7],4249261313,22),r=h(r,n,i,s,t[8],1770035416,7),s=h(s,r,n,i,t[9],2336552879,12),i=h(i,s,r,n,t[10],4294925233,17),n=h(n,i,s,r,t[11],2304563134,22),r=h(r,n,i,s,t[12],1804603682,7),s=h(s,r,n,i,t[13],4254626195,12),i=h(i,s,r,n,t[14],2792965006,17),r=c(r,n=h(n,i,s,r,t[15],1236535329,22),i,s,t[1],4129170786,5),s=c(s,r,n,i,t[6],3225465664,9),i=c(i,s,r,n,t[11],643717713,14),n=c(n,i,s,r,t[0],3921069994,20),r=c(r,n,i,s,t[5],3593408605,5),s=c(s,r,n,i,t[10],38016083,9),i=c(i,s,r,n,t[15],3634488961,14),n=c(n,i,s,r,t[4],3889429448,20),r=c(r,n,i,s,t[9],568446438,5),s=c(s,r,n,i,t[14],3275163606,9),i=c(i,s,r,n,t[3],4107603335,14),n=c(n,i,s,r,t[8],1163531501,20),r=c(r,n,i,s,t[13],2850285829,5),s=c(s,r,n,i,t[2],4243563512,9),i=c(i,s,r,n,t[7],1735328473,14),r=d(r,n=c(n,i,s,r,t[12],2368359562,20),i,s,t[5],4294588738,4),s=d(s,r,n,i,t[8],2272392833,11),i=d(i,s,r,n,t[11],1839030562,16),n=d(n,i,s,r,t[14],4259657740,23),r=d(r,n,i,s,t[1],2763975236,4),s=d(s,r,n,i,t[4],1272893353,11),i=d(i,s,r,n,t[7],4139469664,16),n=d(n,i,s,r,t[10],3200236656,23),r=d(r,n,i,s,t[13],681279174,4),s=d(s,r,n,i,t[0],3936430074,11),i=d(i,s,r,n,t[3],3572445317,16),n=d(n,i,s,r,t[6],76029189,23),r=d(r,n,i,s,t[9],3654602809,4),s=d(s,r,n,i,t[12],3873151461,11),i=d(i,s,r,n,t[15],530742520,16),r=l(r,n=d(n,i,s,r,t[2],3299628645,23),i,s,t[0],4096336452,6),s=l(s,r,n,i,t[7],1126891415,10),i=l(i,s,r,n,t[14],2878612391,15),n=l(n,i,s,r,t[5],4237533241,21),r=l(r,n,i,s,t[12],1700485571,6),s=l(s,r,n,i,t[3],2399980690,10),i=l(i,s,r,n,t[10],4293915773,15),n=l(n,i,s,r,t[1],2240044497,21),r=l(r,n,i,s,t[8],1873313359,6),s=l(s,r,n,i,t[15],4264355552,10),i=l(i,s,r,n,t[6],2734768916,15),n=l(n,i,s,r,t[13],1309151649,21),r=l(r,n,i,s,t[4],4149444226,6),s=l(s,r,n,i,t[11],3174756917,10),i=l(i,s,r,n,t[2],718787259,15),n=l(n,i,s,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+s|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=s.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=o},(t,e,r)=>{"use strict";var n=r(202).Buffer,i=r(209).Transform;function s(t){i.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(39)(s,i),s.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},s.prototype.update=function(t,e){if(function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var s=this._blockOffset;s0;++a)this._length[a]+=o,(o=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*o);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},(t,e,r)=>{t.exports=i;var n=r(210).EventEmitter;function i(){n.call(this)}r(39)(i,n),i.Readable=r(211),i.Writable=r(220),i.Duplex=r(219),i.Transform=r(226),i.PassThrough=r(227),i.finished=r(224),i.pipeline=r(228),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function s(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",s),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",u));var a=!1;function o(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(c(),0===n.listenerCount(this,"error"))throw t}function c(){r.removeListener("data",i),t.removeListener("drain",s),r.removeListener("end",o),r.removeListener("close",u),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",h),t.on("error",h),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},(t,e,r)=>{"use strict";var n,i=r(4),s="object"==typeof Reflect?Reflect:null,a=s&&"function"==typeof s.apply?s.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}t.exports=u,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,s),n(r)}function s(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}v(t,e,s,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&v(t,"error",e,r)}(t,i,{once:!0})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var h=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function d(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){var s,a,o,u;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if("function"==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(s=d(t))>0&&o.length>s&&!o.warned){o.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=t,h.type=e,h.count=o.length,u=h,i&&i.warn&&i.warn(u)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function p(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(s=e[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)a(u,this,e);else{var h=u.length,c=y(u,h);for(r=0;r=0;s--)if(r[s]===e||r[s].listener===e){a=r[s].listener,i=s;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},u.prototype.listeners=function(t){return p(this,t,!0)},u.prototype.rawListeners=function(t){return p(this,t,!1)},u.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):_.call(t,e)},u.prototype.listenerCount=_,u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},(t,e,r)=>{"use strict";var n,i=r(6);t.exports=S,S.ReadableState=L;r(210).EventEmitter;var s=function(t,e){return t.listeners(e).length},a=r(212),o=r(203).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var h,c=r(213);h=c&&c.debuglog?c.debuglog("stream"):function(){};var d,l,f,m=r(214),p=r(216),_=r(217).getHighWaterMark,y=r(218).codes,v=y.ERR_INVALID_ARG_TYPE,g=y.ERR_STREAM_PUSH_AFTER_EOF,b=y.ERR_METHOD_NOT_IMPLEMENTED,M=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(39)(S,a);var w=p.errorOrDestroy,k=["error","close","destroy","pause","resume"];function L(t,e,i){n=n||r(219),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=_(this,t,"readableHighWaterMark",i),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=r(222).StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function S(t){if(n=n||r(219),!(this instanceof S))return new S(t);var e=this instanceof n;this._readableState=new L(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function x(t,e,r,n,i){h("readableAddChunk",e);var s,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(h("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?E(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,j(t)))}(t,a);else if(i||(s=function(t,e){var r;n=e,o.isBuffer(n)||n instanceof u||"string"==typeof e||void 0===e||t.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(a,e)),s)w(t,s);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===o.prototype||(e=function(t){return o.from(t)}(e)),n)a.endEmitted?w(t,new M):Y(t,a,e,!0);else if(a.ended)w(t,new g);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?Y(t,a,e,!1):A(t,a)):Y(t,a,e,!1)}else n||(a.reading=!1,A(t,a));return!a.ended&&(a.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=T?t=T:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function E(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(j,t))}function j(t){var e=t._readableState;h("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,I(t)}function A(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(O,t,e))}function O(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function R(t){h("readable nexttick read 0"),t.read(0)}function H(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),I(t),e.flowing&&!e.reading&&t.read(0)}function I(t){var e=t._readableState;for(h("flow",e.flowing);e.flowing&&null!==t.read(););}function C(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function N(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(B,e,t))}function B(t,e){if(h("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function q(t,e){for(var r=0,n=t.length;r=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):E(this),null;if(0===(t=D(t,e))&&e.ended)return 0===e.length&&N(this),null;var n,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t0?C(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&N(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(t){w(this,new b("_read()"))},S.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,h("pipe count=%d opts=%j",n.pipesCount,e);var a=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?u:_;function o(e,i){h("onunpipe"),e===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,h("cleanup"),t.removeListener("close",m),t.removeListener("finish",p),t.removeListener("drain",c),t.removeListener("error",f),t.removeListener("unpipe",o),r.removeListener("end",u),r.removeListener("end",_),r.removeListener("data",l),d=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}function u(){h("onend"),t.end()}n.endEmitted?i.nextTick(a):r.once("end",a),t.on("unpipe",o);var c=function(t){return function(){var e=t._readableState;h("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,I(t))}}(r);t.on("drain",c);var d=!1;function l(e){h("ondata");var i=t.write(e);h("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==q(n.pipes,t))&&!d&&(h("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(e){h("onerror",e),_(),t.removeListener("error",f),0===s(t,"error")&&w(t,e)}function m(){t.removeListener("finish",p),_()}function p(){h("onfinish"),t.removeListener("close",m),_()}function _(){h("unpipe"),r.unpipe(t)}return r.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",f),t.once("close",m),t.once("finish",p),t.emit("pipe",r),n.flowing||(h("pipe resume"),r.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,h("on readable",n.length,n.reading),n.length?E(this):n.reading||i.nextTick(R,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(P,this),r},S.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(P,this),e},S.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(H,t,e))}(this,t)),t.paused=!1,this},S.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(h("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var s=0;s{t.exports=r(210).EventEmitter},()=>{},(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return u.alloc(0);for(var e,r,n,i=u.allocUnsafe(t>>>0),s=this.head,a=0;s;)e=s.data,r=i,n=a,u.prototype.copy.call(e,r,n),a+=s.data.length,s=s.next;return i}},{key:"consume",value:function(t,e){var r;return ti.length?i.length:t;if(s===i.length?n+=i:n+=i.slice(0,t),0==(t-=s)){s===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(s));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=u.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,s=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,s),0==(t-=s)){s===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(s));break}++n}return this.length-=n,e}},{key:c,value:function(t,e){return h(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},()=>{},(t,e,r)=>{"use strict";var n=r(6);function i(t,e){a(t,e),s(t)}function s(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function a(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,o=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return o||u?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,t)):n.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(s,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e?(n.nextTick(s,r),e(t)):n.nextTick(s,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},(t,e,r)=>{"use strict";var n=r(218).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var s=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new n(i?r:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}},t=>{"use strict";var e={};function r(t,r,n){n||(n=Error);var i=function(t){var e,n;function i(e,n,i){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,i))||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var i,s,a,o;if("string"==typeof e&&(s="not ",e.substr(!a||a<0?0:+a,s.length)===s)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))o="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var u=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";o='The "'.concat(t,'" ').concat(u," ").concat(i," ").concat(n(e,"type"))}return o+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=e},(t,e,r)=>{"use strict";var n=r(6),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var s=r(211),a=r(220);r(39)(c,s);for(var o=i(a.prototype),u=0;u{"use strict";var n,i=r(6);function s(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=S,S.WritableState=L;var a={deprecate:r(221)},o=r(212),u=r(203).Buffer,h=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,d=r(216),l=r(217).getHighWaterMark,f=r(218).codes,m=f.ERR_INVALID_ARG_TYPE,p=f.ERR_METHOD_NOT_IMPLEMENTED,_=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,g=f.ERR_STREAM_NULL_VALUES,b=f.ERR_STREAM_WRITE_AFTER_END,M=f.ERR_UNKNOWN_ENCODING,w=d.errorOrDestroy;function k(){}function L(t,e,a){n=n||r(219),t=t||{},"boolean"!=typeof a&&(a=e instanceof n),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=l(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===t.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,s=r.writecb;if("function"!=typeof s)throw new _;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,s){--e.pendingcb,r?(i.nextTick(s,n),i.nextTick(j,t,e),t._writableState.errorEmitted=!0,w(t,n)):(s(n),t._writableState.errorEmitted=!0,w(t,n),j(t,e))}(t,r,n,e,s);else{var a=D(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||T(t,r),n?i.nextTick(Y,t,r,a,s):Y(t,r,a,s)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function S(t){var e=this instanceof(n=n||r(219));if(!e&&!c.call(S,this))return new S(t);this._writableState=new L(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),o.call(this)}function x(t,e,r,n,i,s,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new v("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function Y(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),j(t,e)}function T(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var o=0,u=!0;r;)i[o]=r,r.isBuf||(u=!1),r=r.next,o+=1;i.allBuffers=u,x(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;r;){var h=r.chunk,c=r.encoding,d=r.callback;if(x(t,e,!1,e.objectMode?1:h.length,h,c,d),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function D(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final((function(r){e.pendingcb--,r&&w(t,r),e.prefinished=!0,t.emit("prefinish"),j(t,e)}))}function j(t,e){var r=D(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,i.nextTick(E,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(39)(S,o),L.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(L.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===S&&(t&&t._writableState instanceof L)}})):c=function(t){return t instanceof this},S.prototype.pipe=function(){w(this,new y)},S.prototype.write=function(t,e,r){var n,s=this._writableState,a=!1,o=!s.objectMode&&(n=t,u.isBuffer(n)||n instanceof h);return o&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(r=e,e=null),o?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof r&&(r=k),s.ending?function(t,e){var r=new b;w(t,r),i.nextTick(e,r)}(this,r):(o||function(t,e,r,n){var s;return null===r?s=new g:"string"==typeof r||e.objectMode||(s=new m("chunk",["string","Buffer"],r)),!s||(w(t,s),i.nextTick(n,s),!1)}(this,s,t,r))&&(s.pendingcb++,a=function(t,e,r,n,i,s){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var o=e.objectMode?1:n.length;e.length+=o;var h=e.length-1))throw new M(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,j(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(t,e){e(t)}},(t,e,r)=>{var n=r(4);function i(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(i("noDeprecation"))return t;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(e);i("traceDeprecation")?n.trace(e):n.warn(e),r=!0}return t.apply(this,arguments)}}},(t,e,r)=>{"use strict";var n=r(202).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=h,e=4;break;case"utf8":this.fillLast=o,e=4;break;case"base64":this.text=c,this.end=d,e=3;break;default:return this.write=l,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function o(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(t.lastNeed=i-1),i;if(--n=0)return i>0&&(t.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},(t,e,r)=>{"use strict";var n,i=r(6);function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(224),o=Symbol("lastResolve"),u=Symbol("lastReject"),h=Symbol("error"),c=Symbol("ended"),d=Symbol("lastPromise"),l=Symbol("handlePromise"),f=Symbol("stream");function m(t,e){return{value:t,done:e}}function p(t){var e=t[o];if(null!==e){var r=t[f].read();null!==r&&(t[d]=null,t[o]=null,t[u]=null,e(m(r,!1)))}}function _(t){i.nextTick(p,t)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((s(n={get stream(){return this[f]},next:function(){var t=this,e=this[h];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(m(void 0,!0));if(this[f].destroyed)return new Promise((function(e,r){i.nextTick((function(){t[h]?r(t[h]):e(m(void 0,!0))}))}));var r,n=this[d];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(m(void 0,!0)):e[l](r,n)}),n)}}(n,this));else{var s=this[f].read();if(null!==s)return Promise.resolve(m(s,!1));r=new Promise(this[l])}return this[d]=r,r}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var t=this;return new Promise((function(e,r){t[f].destroy(null,(function(t){t?r(t):e(m(void 0,!0))}))}))})),n),y);t.exports=function(t){var e,r=Object.create(v,(s(e={},f,{value:t,writable:!0}),s(e,o,{value:null,writable:!0}),s(e,u,{value:null,writable:!0}),s(e,h,{value:null,writable:!0}),s(e,c,{value:t._readableState.endEmitted,writable:!0}),s(e,l,{value:function(t,e){var n=r[f].read();n?(r[d]=null,r[o]=null,r[u]=null,t(m(n,!1))):(r[o]=t,r[u]=e)},writable:!0}),e));return r[d]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[u];return null!==e&&(r[d]=null,r[o]=null,r[u]=null,e(t)),void(r[h]=t)}var n=r[o];null!==n&&(r[d]=null,r[o]=null,r[u]=null,n(m(void 0,!0))),r[c]=!0})),t.on("readable",_.bind(null,r)),r}},(t,e,r)=>{"use strict";var n=r(218).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,s){if("function"==typeof r)return t(e,null,r);r||(r={}),s=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},(t,e,r)=>{"use strict";t.exports=c;var n=r(218).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(219);function h(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";t.exports=i;var n=r(226);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(39)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},(t,e,r)=>{"use strict";var n;var i=r(218).codes,s=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function o(t){if(t)throw t}function u(t){t()}function h(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i0,(function(t){c||(c=t),t&&l.forEach(u),s||(l.forEach(u),d(c))}))}));return e.reduce(h)}},(t,e,r)=>{"use strict";var n=r(203).Buffer,i=r(39),s=r(208),a=new Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],l=[1352829926,1548603684,1836072691,2053994217,0];function f(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function m(t,e){return t<>>32-e}function p(t,e,r,n,i,s,a,o){return m(t+(e^r^n)+s+a|0,o)+i|0}function _(t,e,r,n,i,s,a,o){return m(t+(e&r|~e&n)+s+a|0,o)+i|0}function y(t,e,r,n,i,s,a,o){return m(t+((e|~r)^n)+s+a|0,o)+i|0}function v(t,e,r,n,i,s,a,o){return m(t+(e&n|r&~n)+s+a|0,o)+i|0}function g(t,e,r,n,i,s,a,o){return m(t+(e^(r|~n))+s+a|0,o)+i|0}i(f,s),f.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var r=0|this._a,n=0|this._b,i=0|this._c,s=0|this._d,f=0|this._e,b=0|this._a,M=0|this._b,w=0|this._c,k=0|this._d,L=0|this._e,S=0;S<80;S+=1){var x,Y;S<16?(x=p(r,n,i,s,f,t[o[S]],d[0],h[S]),Y=g(b,M,w,k,L,t[u[S]],l[0],c[S])):S<32?(x=_(r,n,i,s,f,t[o[S]],d[1],h[S]),Y=v(b,M,w,k,L,t[u[S]],l[1],c[S])):S<48?(x=y(r,n,i,s,f,t[o[S]],d[2],h[S]),Y=y(b,M,w,k,L,t[u[S]],l[2],c[S])):S<64?(x=v(r,n,i,s,f,t[o[S]],d[3],h[S]),Y=_(b,M,w,k,L,t[u[S]],l[3],c[S])):(x=g(r,n,i,s,f,t[o[S]],d[4],h[S]),Y=p(b,M,w,k,L,t[u[S]],l[4],c[S])),r=f,f=s,s=m(i,10),i=n,n=x,b=L,L=k,k=m(w,10),w=M,M=Y}var T=this._b+i+k|0;this._b=this._c+s+L|0,this._c=this._d+f+b|0,this._d=this._e+r+M|0,this._e=this._a+n+w|0,this._a=T},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=f},(t,e,r)=>{var n=t.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e};n.sha=r(231),n.sha1=r(233),n.sha224=r(234),n.sha256=r(235),n.sha384=r(236),n.sha512=r(237)},(t,e,r)=>{var n=r(39),i=r(232),s=r(202).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function u(){this.init(),this._w=o,i.call(this,64,56)}function h(t){return t<<30|t>>>2}function c(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=t.readInt32BE(4*d);for(;d<80;++d)r[d]=r[d-3]^r[d-8]^r[d-14]^r[d-16];for(var l=0;l<80;++l){var f=~~(l/20),m=0|((e=n)<<5|e>>>27)+c(f,i,s,o)+u+r[l]+a[f];u=o,o=s,s=h(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},(t,e,r)=>{var n=r(202).Buffer;function i(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=n.from(t,e));for(var r=this._block,i=this._blockSize,s=t.length,a=this._len,o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var s=this._hash();return t?s.toString(t):s},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},(t,e,r)=>{var n=r(39),i=r(232),s=r(202).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function u(){this.init(),this._w=o,i.call(this,64,56)}function h(t){return t<<5|t>>>27}function c(t){return t<<30|t>>>2}function d(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,u=0|this._e,l=0;l<16;++l)r[l]=t.readInt32BE(4*l);for(;l<80;++l)r[l]=(e=r[l-3]^r[l-8]^r[l-14]^r[l-16])<<1|e>>>31;for(var f=0;f<80;++f){var m=~~(f/20),p=h(n)+d(m,i,s,o)+u+r[f]+a[m]|0;u=o,o=s,s=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},(t,e,r)=>{var n=r(39),i=r(235),s=r(232),a=r(202).Buffer,o=new Array(64);function u(){this.init(),this._w=o,s.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=u},(t,e,r)=>{var n=r(39),i=r(232),s=r(202).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function u(){this.init(),this._w=o,i.call(this,64,56)}function h(t,e,r){return r^t&(e^r)}function c(t,e,r){return t&e|r&(t|e)}function d(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function l(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,u=0|this._e,m=0|this._f,p=0|this._g,_=0|this._h,y=0;y<16;++y)r[y]=t.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((e=r[y-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+r[y-7]+f(r[y-15])+r[y-16];for(var v=0;v<64;++v){var g=_+l(u)+h(u,m,p)+a[v]+r[v]|0,b=d(n)+c(n,i,s)|0;_=p,p=m,m=u,u=o+g|0,o=s,s=i,i=n,n=g+b|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0,this._f=m+this._f|0,this._g=p+this._g|0,this._h=_+this._h|0},u.prototype._hash=function(){var t=s.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},(t,e,r)=>{var n=r(39),i=r(237),s=r(232),a=r(202).Buffer,o=new Array(160);function u(){this.init(),this._w=o,s.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=u},(t,e,r)=>{var n=r(39),i=r(232),s=r(202).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function u(){this.init(),this._w=o,i.call(this,128,112)}function h(t,e,r){return r^t&(e^r)}function c(t,e,r){return t&e|r&(t|e)}function d(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function l(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function m(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function p(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function _(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function y(t,e){return t>>>0>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,s=0|this._dh,o=0|this._eh,u=0|this._fh,v=0|this._gh,g=0|this._hh,b=0|this._al,M=0|this._bl,w=0|this._cl,k=0|this._dl,L=0|this._el,S=0|this._fl,x=0|this._gl,Y=0|this._hl,T=0;T<32;T+=2)e[T]=t.readInt32BE(4*T),e[T+1]=t.readInt32BE(4*T+4);for(;T<160;T+=2){var D=e[T-30],E=e[T-30+1],j=f(D,E),A=m(E,D),O=p(D=e[T-4],E=e[T-4+1]),P=_(E,D),R=e[T-14],H=e[T-14+1],I=e[T-32],C=e[T-32+1],N=A+H|0,B=j+R+y(N,A)|0;B=(B=B+O+y(N=N+P|0,P)|0)+I+y(N=N+C|0,C)|0,e[T]=B,e[T+1]=N}for(var q=0;q<160;q+=2){B=e[q],N=e[q+1];var F=c(r,n,i),U=c(b,M,w),z=d(r,b),W=d(b,r),J=l(o,L),G=l(L,o),K=a[q],V=a[q+1],Z=h(o,u,v),$=h(L,S,x),X=Y+G|0,Q=g+J+y(X,Y)|0;Q=(Q=(Q=Q+Z+y(X=X+$|0,$)|0)+K+y(X=X+V|0,V)|0)+B+y(X=X+N|0,N)|0;var tt=W+U|0,et=z+F+y(tt,W)|0;g=v,Y=x,v=u,x=S,u=o,S=L,o=s+Q+y(L=k+X|0,k)|0,s=i,k=w,i=n,w=M,n=r,M=b,r=Q+et+y(b=X+tt|0,X)|0}this._al=this._al+b|0,this._bl=this._bl+M|0,this._cl=this._cl+w|0,this._dl=this._dl+k|0,this._el=this._el+L|0,this._fl=this._fl+S|0,this._gl=this._gl+x|0,this._hl=this._hl+Y|0,this._ah=this._ah+r+y(this._al,b)|0,this._bh=this._bh+n+y(this._bl,M)|0,this._ch=this._ch+i+y(this._cl,w)|0,this._dh=this._dh+s+y(this._dl,k)|0,this._eh=this._eh+o+y(this._el,L)|0,this._fh=this._fh+u+y(this._fl,S)|0,this._gh=this._gh+v+y(this._gl,x)|0,this._hh=this._hh+g+y(this._hl,Y)|0},u.prototype._hash=function(){var t=s.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},(t,e,r)=>{var n=r(202).Buffer,i=r(209).Transform,s=r(222).StringDecoder;function a(t){i.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(39)(a,i),a.prototype.update=function(t,e,r){"string"==typeof t&&(t=n.from(t,e));var i=this._update(t);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){n=t}finally{r(n)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new s(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=a},(t,e,r)=>{"use strict";var n=r(39),i=r(240),s=r(238),a=r(202).Buffer,o=r(241),u=r(229),h=r(230),c=a.alloc(128);function d(t,e){s.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var r="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>r)?e=("rmd160"===t?new u:h(t)).update(e).digest():e.length{"use strict";var n=r(39),i=r(202).Buffer,s=r(238),a=i.alloc(128),o=64;function u(t,e){s.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>o?e=t(e):e.length{var n=r(207);t.exports=function(t){return(new n).update(t).digest()}},(t,e,r)=>{"use strict";t.exports=r(243)},t=>{"use strict";t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},(t,e,r)=>{e.pbkdf2=r(245),e.pbkdf2Sync=r(248)},(t,e,r)=>{var n,i,s=r(202).Buffer,a=r(246),o=r(247),u=r(248),h=r(249),c=r.g.crypto&&r.g.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},l=[];function f(){return i||(i=r.g.process&&r.g.process.nextTick?r.g.process.nextTick:r.g.queueMicrotask?r.g.queueMicrotask:r.g.setImmediate?r.g.setImmediate:r.g.setTimeout)}function m(t,e,r,n,i){return c.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return c.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)})).then((function(t){return s.from(t)}))}t.exports=function(t,e,i,p,_,y){"function"==typeof _&&(y=_,_=void 0);var v=d[(_=_||"sha1").toLowerCase()];if(v&&"function"==typeof r.g.Promise){if(a(i,p),t=h(t,o,"Password"),e=h(e,o,"Salt"),"function"!=typeof y)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){f()((function(){e(null,t)}))}),(function(t){f()((function(){e(t)}))}))}(function(t){if(r.g.process&&!r.g.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==l[t])return l[t];var e=m(n=n||s.alloc(8),n,10,128,t).then((function(){return!0})).catch((function(){return!1}));return l[t]=e,e}(v).then((function(r){return r?m(t,e,i,p,v):u(t,e,i,p,_)})),y)}else f()((function(){var r;try{r=u(t,e,i,p,_)}catch(t){return y(t)}y(null,r)}))}},t=>{var e=Math.pow(2,30)-1;t.exports=function(t,r){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof r)throw new TypeError("Key length not a number");if(r<0||r>e||r!=r)throw new TypeError("Bad key length")}},(t,e,r)=>{var n,i=r(6);if(r.g.process&&r.g.process.browser)n="utf-8";else if(r.g.process&&r.g.process.version){n=parseInt(i.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";t.exports=n},(t,e,r)=>{var n=r(241),i=r(229),s=r(230),a=r(202).Buffer,o=r(246),u=r(247),h=r(249),c=a.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(t,e,r){var o=function(t){function e(e){return s(t).update(e).digest()}function r(t){return(new i).update(t).digest()}return"rmd160"===t||"ripemd160"===t?r:"md5"===t?n:e}(t),u="sha512"===t||"sha384"===t?128:64;e.length>u?e=o(e):e.length{var n=r(202).Buffer;t.exports=function(t,e,r){if(n.isBuffer(t))return t;if("string"==typeof t)return n.from(t,e);if(ArrayBuffer.isView(t))return n.from(t.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},(t,e,r)=>{var n=r(251),i=r(259),s=r(261),a=r(278),o=r(276);function u(t,e,r){if(t=t.toLowerCase(),s[t])return i.createCipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function h(t,e,r){if(t=t.toLowerCase(),s[t])return i.createDecipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var r,n;if(t=t.toLowerCase(),s[t])r=s[t].key,n=s[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=o(e,!1,r,n);return u(t,i.key,i.iv)},e.createCipheriv=e.Cipheriv=u,e.createDecipher=e.Decipher=function(t,e){var r,n;if(t=t.toLowerCase(),s[t])r=s[t].key,n=s[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=o(e,!1,r,n);return h(t,i.key,i.iv)},e.createDecipheriv=e.Decipheriv=h,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},(t,e,r)=>{var n=r(238),i=r(252),s=r(39),a=r(202).Buffer,o={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(t){n.call(this);var e,r=t.mode.toLowerCase(),i=o[r];e=t.decrypt?"decrypt":"encrypt";var s=t.key;a.isBuffer(s)||(s=a.from(s)),"des-ede"!==r&&"des-ede-cbc"!==r||(s=a.concat([s,s.slice(0,8)]));var u=t.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:s,iv:u,type:e})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],t.exports=u,s(u,n),u.prototype._update=function(t){return a.from(this._des.update(t))},u.prototype._final=function(){return a.from(this._des.final())}},(t,e,r)=>{"use strict";e.utils=r(253),e.Cipher=r(254),e.DES=r(256),e.CBC=r(257),e.EDE=r(258)},(t,e)=>{"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},e.ip=function(t,e,r,n){for(var i=0,s=0,a=6;a>=0;a-=2){for(var o=0;o<=24;o+=8)i<<=1,i|=e>>>o+a&1;for(o=0;o<=24;o+=8)i<<=1,i|=t>>>o+a&1}for(a=6;a>=0;a-=2){for(o=1;o<=25;o+=8)s<<=1,s|=e>>>o+a&1;for(o=1;o<=25;o+=8)s<<=1,s|=t>>>o+a&1}r[n+0]=i>>>0,r[n+1]=s>>>0},e.rip=function(t,e,r,n){for(var i=0,s=0,a=0;a<4;a++)for(var o=24;o>=0;o-=8)i<<=1,i|=e>>>o+a&1,i<<=1,i|=t>>>o+a&1;for(a=4;a<8;a++)for(o=24;o>=0;o-=8)s<<=1,s|=e>>>o+a&1,s<<=1,s|=t>>>o+a&1;r[n+0]=i>>>0,r[n+1]=s>>>0},e.pc1=function(t,e,r,n){for(var i=0,s=0,a=7;a>=5;a--){for(var o=0;o<=24;o+=8)i<<=1,i|=e>>o+a&1;for(o=0;o<=24;o+=8)i<<=1,i|=t>>o+a&1}for(o=0;o<=24;o+=8)i<<=1,i|=e>>o+a&1;for(a=1;a<=3;a++){for(o=0;o<=24;o+=8)s<<=1,s|=e>>o+a&1;for(o=0;o<=24;o+=8)s<<=1,s|=t>>o+a&1}for(o=0;o<=24;o+=8)s<<=1,s|=t>>o+a&1;r[n+0]=i>>>0,r[n+1]=s>>>0},e.r28shl=function(t,e){return t<>>28-e};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,n,i){for(var s=0,a=0,o=r.length>>>1,u=0;u>>r[u]&1;for(u=o;u>>r[u]&1;n[i+0]=s>>>0,n[i+1]=a>>>0},e.expand=function(t,e,r){var n=0,i=0;n=(1&t)<<5|t>>>27;for(var s=23;s>=15;s-=4)n<<=6,n|=t>>>s&63;for(s=11;s>=3;s-=4)i|=t>>>s&63,i<<=6;i|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[r+1]=i>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var r=0,i=0;i<4;i++){r<<=4,r|=n[64*i+(t>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=n[256+64*i+(e>>>18-6*i&63)]}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,r=0;r>>i[r]&1;return e>>>0},e.padSplit=function(t,e,r){for(var n=t.toString(2);n.length{"use strict";var n=r(255);function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==t.padding}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var r=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n0;n--)e+=this._buffer(t,e),r+=this._flushBuffer(i,r);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,r;return t&&(e=this.update(t)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e{function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},(t,e,r)=>{"use strict";var n=r(255),i=r(39),s=r(253),a=r(254);function o(){this.tmp=new Array(2),this.keys=null}function u(t){a.call(this,t);var e=new o;this._desState=e,this.deriveKeys(e,t.key)}i(u,a),t.exports=u,u.create=function(t){return new u(t)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var r=s.readUInt32BE(e,0),i=s.readUInt32BE(e,4);s.pc1(r,i,t.tmp,0),r=t.tmp[0],i=t.tmp[1];for(var a=0;a>>1];r=s.r28shl(r,o),i=s.r28shl(i,o),s.pc2(r,i,t.keys,a)}},u.prototype._update=function(t,e,r,n){var i=this._desState,a=s.readUInt32BE(t,e),o=s.readUInt32BE(t,e+4);s.ip(a,o,i.tmp,0),a=i.tmp[0],o=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,o,i.tmp,0):this._decrypt(i,a,o,i.tmp,0),a=i.tmp[0],o=i.tmp[1],s.writeUInt32BE(r,a,n),s.writeUInt32BE(r,o,n+4)},u.prototype._pad=function(t,e){if(!1===this.padding)return!1;for(var r=t.length-e,n=e;n>>0,a=l}s.rip(o,a,n,i)},u.prototype._decrypt=function(t,e,r,n,i){for(var a=r,o=e,u=t.keys.length-2;u>=0;u-=2){var h=t.keys[u],c=t.keys[u+1];s.expand(a,t.tmp,0),h^=t.tmp[0],c^=t.tmp[1];var d=s.substitute(h,c),l=a;a=(o^s.permute(d))>>>0,o=l}s.rip(a,o,n,i)}},(t,e,r)=>{"use strict";var n=r(255),i=r(39),s={};function a(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e{"use strict";var n=r(255),i=r(39),s=r(254),a=r(256);function o(t,e){n.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),i=e.slice(8,16),s=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:s})]:[a.create({type:"decrypt",key:s}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function u(t){s.call(this,t);var e=new o(this.type,this.options.key);this._edeState=e}i(u,s),t.exports=u,u.create=function(t){return new u(t)},u.prototype._update=function(t,e,r,n){var i=this._edeState;i.ciphers[0]._update(t,e,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},(t,e,r)=>{var n=r(260),i=r(277),s=r(271);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(s)}},(t,e,r)=>{var n=r(261),i=r(272),s=r(202).Buffer,a=r(275),o=r(238),u=r(273),h=r(276);function c(t,e,r){o.call(this),this._cache=new l,this._cipher=new u.AES(e),this._prev=s.from(r),this._mode=t,this._autopadding=!0}r(39)(c,o),c.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get();)r=this._mode.encrypt(this,e),n.push(r);return s.concat(n)};var d=s.alloc(16,16);function l(){this.cache=s.allocUnsafe(0)}function f(t,e,r){var o=n[t.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=s.from(e)),e.length!==o.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof r&&(r=s.from(r)),"GCM"!==o.mode&&r.length!==o.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===o.type?new a(o.module,e,r):"auth"===o.type?new i(o.module,e,r):new c(o.module,e,r)}c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(t){this.cache=s.concat([this.cache,t])},l.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},l.prototype.flush=function(){for(var t=16-this.cache.length,e=s.allocUnsafe(t),r=-1;++r{var n={ECB:r(262),CBC:r(263),CFB:r(265),CFB8:r(266),CFB1:r(267),OFB:r(268),CTR:r(269),GCM:r(269)},i=r(271);for(var s in i)i[s].module=n[i[s].mode];t.exports=i},(t,e)=>{e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},(t,e,r)=>{var n=r(264);e.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return n(i,r)}},(t,e,r)=>{var n=r(203).Buffer;t.exports=function(t,e){for(var r=Math.min(t.length,e.length),i=new n(r),s=0;s{var n=r(202).Buffer,i=r(264);function s(t,e,r){var s=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(s),t._prev=n.concat([t._prev,r?e:a]),a}e.encrypt=function(t,e,r){for(var i,a=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){a=n.concat([a,s(t,e,r)]);break}i=t._cache.length,a=n.concat([a,s(t,e.slice(0,i),r)]),e=e.slice(i)}return a}},(t,e,r)=>{var n=r(202).Buffer;function i(t,e,r){var i=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([r?e:i])]),i}e.encrypt=function(t,e,r){for(var s=e.length,a=n.allocUnsafe(s),o=-1;++o{var n=r(202).Buffer;function i(t,e,r){for(var n,i,a=-1,o=0;++a<8;)n=e&1<<7-a?128:0,o+=(128&(i=t._cipher.encryptBlock(t._prev)[0]^n))>>a%8,t._prev=s(t._prev,r?n:i);return o}function s(t,e){var r=t.length,i=-1,s=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++i>7;return s}e.encrypt=function(t,e,r){for(var s=e.length,a=n.allocUnsafe(s),o=-1;++o{var n=r(203).Buffer,i=r(264);function s(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(t,e){for(;t._cache.length{var n=r(264),i=r(202).Buffer,s=r(270);function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return s(t._prev),e}e.encrypt=function(t,e){var r=Math.ceil(e.length/16),s=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(16*r)]);for(var o=0;o{t.exports=function(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}},t=>{"use strict";t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},(t,e,r)=>{var n=r(273),i=r(202).Buffer,s=r(238),a=r(39),o=r(274),u=r(264),h=r(270);function c(t,e,r,a){s.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(e);var c=this._cipher.encryptBlock(u);this._ghash=new o(c),r=function(t,e,r){if(12===e.length)return t._finID=i.concat([e,i.from([0,0,0,1])]),i.concat([e,i.from([0,0,0,2])]);var n=new o(r),s=e.length,a=s%16;n.update(e),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var u=8*s,c=i.alloc(8);c.writeUIntBE(u,0,8),n.update(c),t._finID=n.state;var d=i.from(t._finID);return h(d),d}(this,r,c),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(c,s),c.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=i.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var r=0;t.length!==e.length&&r++;for(var n=Math.min(t.length,e.length),i=0;i{var n=r(202).Buffer;function i(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i>>24]^c[m>>>16&255]^d[p>>>8&255]^l[255&_]^e[y++],a=h[m>>>24]^c[p>>>16&255]^d[_>>>8&255]^l[255&f]^e[y++],o=h[p>>>24]^c[_>>>16&255]^d[f>>>8&255]^l[255&m]^e[y++],u=h[_>>>24]^c[f>>>16&255]^d[m>>>8&255]^l[255&p]^e[y++],f=s,m=a,p=o,_=u;return s=(n[f>>>24]<<24|n[m>>>16&255]<<16|n[p>>>8&255]<<8|n[255&_])^e[y++],a=(n[m>>>24]<<24|n[p>>>16&255]<<16|n[_>>>8&255]<<8|n[255&f])^e[y++],o=(n[p>>>24]<<24|n[_>>>16&255]<<16|n[f>>>8&255]<<8|n[255&m])^e[y++],u=(n[_>>>24]<<24|n[f>>>16&255]<<16|n[m>>>8&255]<<8|n[255&p])^e[y++],[s>>>=0,a>>>=0,o>>>=0,u>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],s=[[],[],[],[]],a=0,o=0,u=0;u<256;++u){var h=o^o<<1^o<<2^o<<3^o<<4;h=h>>>8^255&h^99,r[a]=h,n[h]=a;var c=t[a],d=t[c],l=t[d],f=257*t[h]^16843008*h;i[0][a]=f<<24|f>>>8,i[1][a]=f<<16|f>>>16,i[2][a]=f<<8|f>>>24,i[3][a]=f,f=16843009*l^65537*d^257*c^16843008*a,s[0][h]=f<<24|f>>>8,s[1][h]=f<<16|f>>>16,s[2][h]=f<<8|f>>>24,s[3][h]=f,0===a?a=o=1:(a=c^t[t[t[l^c]]],o^=t[t[o]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:s}}();function h(t){this._key=i(t),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],s=0;s>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=o[s/e|0]<<24):e>6&&s%e==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[s]=i[s-e]^a}for(var h=[],c=0;c>>24]]^u.INV_SUB_MIX[1][u.SBOX[l>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[l>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&l]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=h},h.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},h.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},h.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var r=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),s=n.allocUnsafe(16);return s.writeUInt32BE(r[0],0),s.writeUInt32BE(r[3],4),s.writeUInt32BE(r[2],8),s.writeUInt32BE(r[1],12),s},h.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},t.exports.AES=h},(t,e,r)=>{var n=r(202).Buffer,i=n.alloc(16,0);function s(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=s(i)},a.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=a},(t,e,r)=>{var n=r(273),i=r(202).Buffer,s=r(238);function a(t,e,r,a){s.call(this),this._cipher=new n.AES(e),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=t}r(39)(a,s),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},(t,e,r)=>{var n=r(202).Buffer,i=r(207);t.exports=function(t,e,r,s){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,o=n.alloc(a),u=n.alloc(s||0),h=n.alloc(0);a>0||s>0;){var c=new i;c.update(h),c.update(t),e&&c.update(e),h=c.digest();var d=0;if(a>0){var l=o.length-a;d=Math.min(a,h.length),h.copy(o,l,0,d),a-=d}if(d0){var f=u.length-s,m=Math.min(s,h.length-d);h.copy(u,f,d,d+m),s-=m}}return h.fill(0),{key:o,iv:u}}},(t,e,r)=>{var n=r(272),i=r(202).Buffer,s=r(261),a=r(275),o=r(238),u=r(273),h=r(276);function c(t,e,r){o.call(this),this._cache=new d,this._last=void 0,this._cipher=new u.AES(e),this._prev=i.from(r),this._mode=t,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function l(t,e,r){var o=s[t.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==o.mode&&r.length!==o.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof e&&(e=i.from(e)),e.length!==o.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===o.type?new a(o.module,e,r,!0):"auth"===o.type?new n(o.module,e,r,!0):new c(o.module,e,r)}r(39)(c,o),c.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),n.push(r);return i.concat(n)},c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var r=s[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=h(e,!1,r.key,r.iv);return l(t,n.key,n.iv)},e.createDecipheriv=l},(t,e)=>{e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},(t,e,r)=>{var n=r(203).Buffer,i=r(280),s=r(287),a=r(288);var o={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(t){var e=new n(s[t].prime,"hex"),r=new n(s[t].gen,"hex");return new a(e,r)},e.createDiffieHellman=e.DiffieHellman=function t(e,r,s,u){return n.isBuffer(r)||void 0===o[r]?t(e,"binary",r,s):(r=r||"binary",u=u||"binary",s=s||new n([2]),n.isBuffer(s)||(s=new n(s,u)),"number"==typeof e?new a(i(e,s),s,!0):(n.isBuffer(e)||(e=new n(e,r)),new a(e,s,!0)))}},(t,e,r)=>{var n=r(201);t.exports=v,v.simpleSieve=_,v.fermatTest=y;var i=r(281),s=new i(24),a=new(r(283)),o=new i(1),u=new i(2),h=new i(5),c=(new i(16),new i(8),new i(10)),d=new i(3),l=(new i(7),new i(11)),f=new i(4),m=(new i(12),null);function p(){if(null!==m)return m;var t=[];t[0]=2;for(var e=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;it;)r.ishrn(1);if(r.isEven()&&r.iadd(o),r.testn(1)||r.iadd(u),e.cmp(u)){if(!e.cmp(h))for(;r.mod(c).cmp(d);)r.iadd(f)}else for(;r.mod(s).cmp(l);)r.iadd(f);if(_(m=r.shrn(1))&&_(r)&&y(m)&&y(r)&&a.test(m)&&a.test(r))return r}}},function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(282).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,s=Math.min(t.length,r),a=e;a=49?o-49+10:o>=17?o-17+10:o}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=u(t,e,n)<=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=l[t];r="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modn(f).toString(t);r=(m=m.idivn(f)).isZero()?p+r:c[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var a,o,u="le"===e,h=new t(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[o]=a;for(;o=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==s&&a>26,this.words[a]=67108863&e;if(0===s&&a>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=f),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?f(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,r,n,i,s){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<a)for(this.length-=a,h=0;h=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new k(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(g,v),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new L(t)},i(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e,r)=>{var n=r(284),i=r(286);function s(t){this.rand=t||new i.Rand}t.exports=s,s.create=function(t){return new s(t)},s.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(t)>=0);return i},s.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},s.prototype.test=function(t,e,r){var i=t.bitLength(),s=n.mont(t),a=new n(1).toRed(s);e||(e=Math.max(1,i/48|0));for(var o=t.subn(1),u=0;!o.testn(u);u++);for(var h=t.shrn(u),c=o.toRed(s);e>0;e--){var d=this._randrange(new n(2),o);r&&r(d);var l=d.toRed(s).redPow(h);if(0!==l.cmp(a)&&0!==l.cmp(c)){for(var f=1;f0;e--){var c=this._randrange(new n(2),a),d=t.gcd(c);if(0!==d.cmpn(1))return d;var l=c.toRed(i).redPow(u);if(0!==l.cmp(s)&&0!==l.cmp(h)){for(var f=1;f=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,s=Math.min(t.length,r),a=e;a=49?o-49+10:o>=17?o-17+10:o}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=u(t,e,n)<=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=l[t];r="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modn(f).toString(t);r=(m=m.idivn(f)).isZero()?p+r:c[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var a,o,u="le"===e,h=new t(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[o]=a;for(;o=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==s&&a>26,this.words[a]=67108863&e;if(0===s&&a>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=f),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?f(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,r,n,i,s){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<a)for(this.length-=a,h=0;h=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new k(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(g,v),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new L(t)},i(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e,r)=>{var n;function i(t){this.rand=t}if(t.exports=function(t){return n||(n=new i(null)),n.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r{"use strict";t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},(t,e,r)=>{var n=r(203).Buffer,i=r(281),s=new(r(283)),a=new i(24),o=new i(11),u=new i(10),h=new i(3),c=new i(7),d=r(280),l=r(201);function f(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this._pub=new i(t),this}function m(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this._priv=new i(t),this}t.exports=_;var p={};function _(t,e,r){this.setGenerator(e),this.__prime=new i(t),this._prime=i.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=f,this.setPrivateKey=m):this._primeCode=8}function y(t,e){var r=new n(t.toArray());return e?r.toString(e):r}Object.defineProperty(_.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in p)return p[n];var i,l=0;if(t.isEven()||!d.simpleSieve||!d.fermatTest(t)||!s.test(t))return l+=1,l+="02"===r||"05"===r?8:4,p[n]=l,l;switch(s.test(t.shrn(1))||(l+=2),r){case"02":t.mod(a).cmp(o)&&(l+=8);break;case"05":(i=t.mod(u)).cmp(h)&&i.cmp(c)&&(l+=8);break;default:l+=4}return p[n]=l,l}(this.__prime,this.__gen)),this._primeCode}}),_.prototype.generateKeys=function(){return this._priv||(this._priv=new i(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},_.prototype.computeSecret=function(t){var e=(t=(t=new i(t)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new n(e.toArray()),s=this.getPrime();if(r.length{"use strict";var n=r(202).Buffer,i=r(206),s=r(290),a=r(39),o=r(306),u=r(365),h=r(243);function c(t){s.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){s.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function l(t){return new c(t)}function f(t){return new d(t)}Object.keys(h).forEach((function(t){h[t].id=n.from(h[t].id,"hex"),h[t.toLowerCase()]=h[t]})),a(c,s.Writable),c.prototype._write=function(t,e,r){this._hash.update(t),r()},c.prototype.update=function(t,e){return this._hash.update("string"==typeof t?n.from(t,e):t),this},c.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=o(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},a(d,s.Writable),d.prototype._write=function(t,e,r){this._hash.update(t),r()},d.prototype.update=function(t,e){return this._hash.update("string"==typeof t?n.from(t,e):t),this},d.prototype.verify=function(t,e,r){var i="string"==typeof e?n.from(e,r):e;this.end();var s=this._hash.digest();return u(i,s,t,this._signType,this._tag)},t.exports={Sign:l,Verify:f,createSign:l,createVerify:f}},(t,e,r)=>{(e=t.exports=r(291)).Stream=e,e.Readable=e,e.Writable=r(302),e.Duplex=r(301),e.Transform=r(304),e.PassThrough=r(305)},(t,e,r)=>{"use strict";var n=r(6),i=r(292);t.exports=g;var s,a=r(293);g.ReadableState=v;r(210).EventEmitter;var o=function(t,e){return t.listeners(e).length},u=r(294),h=r(295).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var d=Object.create(r(296));d.inherits=r(39);var l=r(297),f=void 0;f=l&&l.debuglog?l.debuglog("stream"):function(){};var m,p=r(298),_=r(300);d.inherits(g,u);var y=["error","close","destroy","pause","resume"];function v(t,e){t=t||{};var n=e instanceof(s=s||r(301));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(m||(m=r(303).StringDecoder),this.decoder=new m(t.encoding),this.encoding=t.encoding)}function g(t){if(s=s||r(301),!(this instanceof g))return new g(t);this._readableState=new v(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function b(t,e,r,n,i){var s,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,L(t)}(t,a)):(i||(s=function(t,e){var r;n=e,h.isBuffer(n)||n instanceof c||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,e)),s?t.emit("error",s):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===h.prototype||(e=function(t){return h.from(t)}(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):M(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?M(t,a,e,!1):x(t,a)):M(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=w?t=w:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function L(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(S,t):S(t))}function S(t){f("emit readable"),t.emit("readable"),E(t)}function x(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(Y,t,e))}function Y(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;ts.length?s.length:t;if(a===s.length?i+=s:i+=s.slice(0,t),0===(t-=a)){a===s.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=h.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var s=n.data,a=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,a),0===(t-=a)){a===s.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=s.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function A(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(O,e,t))}function O(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(t,e){for(var r=0,n=t.length;r=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?A(this):L(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&A(this),null;var n,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t0?j(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&A(this)),null!==n&&this.emit("data",n),n},g.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(t,e){var r=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t)}s.pipesCount+=1,f("pipe count=%d opts=%j",s.pipesCount,e);var u=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?c:g;function h(e,n){f("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),t.removeListener("close",y),t.removeListener("finish",v),t.removeListener("drain",d),t.removeListener("error",_),t.removeListener("unpipe",h),r.removeListener("end",c),r.removeListener("end",g),r.removeListener("data",p),l=!0,!s.awaitDrain||t._writableState&&!t._writableState.needDrain||d())}function c(){f("onend"),t.end()}s.endEmitted?i.nextTick(u):r.once("end",u),t.on("unpipe",h);var d=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,E(t))}}(r);t.on("drain",d);var l=!1;var m=!1;function p(e){f("ondata"),m=!1,!1!==t.write(e)||m||((1===s.pipesCount&&s.pipes===t||s.pipesCount>1&&-1!==P(s.pipes,t))&&!l&&(f("false write response, pause",s.awaitDrain),s.awaitDrain++,m=!0),r.pause())}function _(e){f("onerror",e),g(),t.removeListener("error",_),0===o(t,"error")&&t.emit("error",e)}function y(){t.removeListener("finish",v),g()}function v(){f("onfinish"),t.removeListener("close",y),g()}function g(){f("unpipe"),r.unpipe(t)}return r.on("data",p),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",_),t.once("close",y),t.once("finish",v),t.emit("pipe",r),s.flowing||(f("pipe resume"),r.resume()),t},g.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s{"use strict";var n=r(6);void 0===n||!n.version||0===n.version.indexOf("v0.")||0===n.version.indexOf("v1.")&&0!==n.version.indexOf("v1.8.")?t.exports={nextTick:function(t,e,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var s,a,o=arguments.length;switch(o){case 0:case 1:return n.nextTick(t);case 2:return n.nextTick((function(){t.call(null,e)}));case 3:return n.nextTick((function(){t.call(null,e,r)}));case 4:return n.nextTick((function(){t.call(null,e,r,i)}));default:for(s=new Array(o-1),a=0;a{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},(t,e,r)=>{t.exports=r(210).EventEmitter},(t,e,r)=>{var n=r(203),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=a),s(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},(t,e,r)=>{function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(203).Buffer.isBuffer},()=>{},(t,e,r)=>{"use strict";var n=r(295).Buffer,i=r(299);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);for(var e,r,i,s=n.allocUnsafe(t>>>0),a=this.head,o=0;a;)e=a.data,r=s,i=o,e.copy(r,i),o+=a.data.length,a=a.next;return s},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},()=>{},(t,e,r)=>{"use strict";var n=r(292);function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,t)):n.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},(t,e,r)=>{"use strict";var n=r(292),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=d;var s=Object.create(r(296));s.inherits=r(39);var a=r(291),o=r(302);s.inherits(d,a);for(var u=i(o.prototype),h=0;h{"use strict";var n=r(6),i=r(292);function s(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=y;var a,o=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:i.nextTick;y.WritableState=_;var u=Object.create(r(296));u.inherits=r(39);var h={deprecate:r(221)},c=r(294),d=r(295).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f,m=r(300);function p(){}function _(t,e){a=a||r(301),t=t||{};var n=e instanceof a;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var u=t.highWaterMark,h=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:n&&(h||0===h)?h:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===t.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,s=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,s){--e.pendingcb,r?(i.nextTick(s,n),i.nextTick(k,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(s(n),t._writableState.errorEmitted=!0,t.emit("error",n),k(t,e))}(t,r,n,e,s);else{var a=M(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||b(t,r),n?o(g,t,r,a,s):g(t,r,a,s)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function y(t){if(a=a||r(301),!(f.call(y,this)||this instanceof a))return new y(t);this._writableState=new _(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function v(t,e,r,n,i,s,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function g(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),k(t,e)}function b(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var o=0,u=!0;r;)i[o]=r,r.isBuf||(u=!1),r=r.next,o+=1;i.allBuffers=u,v(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;r;){var h=r.chunk,c=r.encoding,d=r.callback;if(v(t,e,!1,e.objectMode?1:h.length,h,c,d),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function M(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),k(t,e)}))}function k(t,e){var r=M(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(w,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}u.inherits(y,c),_.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(_.prototype,"buffer",{get:h.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===y&&(t&&t._writableState instanceof _)}})):f=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,r){var n,s=this._writableState,a=!1,o=!s.objectMode&&(n=t,d.isBuffer(n)||n instanceof l);return o&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(r=e,e=null),o?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof r&&(r=p),s.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),i.nextTick(e,r)}(this,r):(o||function(t,e,r,n){var s=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),i.nextTick(n,a),s=!1),s}(this,s,t,r))&&(s.pendingcb++,a=function(t,e,r,n,i,s){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var o=e.objectMode?1:n.length;e.length+=o;var u=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,k(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}},(t,e,r)=>{"use strict";var n=r(295).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=h,e=4;break;case"utf8":this.fillLast=o,e=4;break;case"base64":this.text=c,this.end=d,e=3;break;default:return this.write=l,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function o(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(t.lastNeed=i-1),i;if(--n=0)return i>0&&(t.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},(t,e,r)=>{"use strict";t.exports=a;var n=r(301),i=Object.create(r(296));function s(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";t.exports=s;var n=r(304),i=Object.create(r(296));function s(t){if(!(this instanceof s))return new s(t);n.call(this,t)}i.inherits=r(39),i.inherits(s,n),s.prototype._transform=function(t,e,r){r(null,t)}},(t,e,r)=>{"use strict";var n=r(202).Buffer,i=r(239),s=r(307),a=r(310).ec,o=r(308),u=r(342),h=r(364);function c(t,e,r,s){if((t=n.from(t.toArray())).length0&&r.ishrn(n),r}function l(t,e,r){var s,a;do{for(s=n.alloc(0);8*s.length{var n=r(203).Buffer,i=r(308),s=r(201);function a(t){var e,r=t.modulus.byteLength();do{e=new i(s(r))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function o(t,e){var r=function(t){var e=a(t);return{blinder:e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(e),s=e.modulus.byteLength(),o=new i(t).mul(r.blinder).umod(e.modulus),u=o.toRed(i.mont(e.prime1)),h=o.toRed(i.mont(e.prime2)),c=e.coefficient,d=e.prime1,l=e.prime2,f=u.redPow(e.exponent1).fromRed(),m=h.redPow(e.exponent2).fromRed(),p=f.isub(m).imul(c).umod(d).imul(l);return m.iadd(p).imul(r.unblinder).umod(e.modulus).toArrayLike(n,"be",s)}o.getr=a,t.exports=o},function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(309).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,i){for(var s=0,a=0,o=Math.min(t.length,r),u=e;u=49?h-49+10:h>=17?h-17+10:h,n(h>=0&&a0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=u(t,e,n)<=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this._strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(t){s.prototype.inspect=d}else s.prototype.inspect=d;function d(){return(this.red?""}var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==s||a!==this.length-1?l[6-u.length]+u+r:u+r}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=f[t],c=m[t];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var p=d.modrn(c).toString(t);r=(d=d.idivn(c)).isZero()?p+r:l[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16,2)},a&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r._strip()}s.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},s.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,s=0;i>8&255),r>16&255),6===s?(r>24&255),n=0,s=0):(n=a>>>24,s+=2)}if(r=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===s?(r>=0&&(t[r--]=a>>24&255),n=0,s=0):(n=a>>>24,s+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==s&&a>26,this.words[a]=67108863&e;if(0===s&&a>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function v(t,e,r){return y(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(_=p),s.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?_(this,t,e):r<63?p(this,t,e):r<1024?y(this,t,e):v(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,r,n,i,s){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a>=26,r+=s/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<a)for(this.length-=a,h=0;h=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===o)return this._strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%t;return e?-i:i},s.prototype.modn=function(t){return this.modrn(t)},s.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/t|0,r=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new x(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function M(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function L(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function Y(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}M.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},M.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},M.prototype.split=function(t,e){t.iushrn(this.n,0,e)},M.prototype.imulK=function(t){return t.imul(this.k)},i(w,M),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new k;else if("p192"===t)e=new L;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new Y(t)},i(Y,x),Y.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Y.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},Y.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},Y.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},Y.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e,r)=>{"use strict";var n=e;n.version=r(311).version,n.utils=r(312),n.rand=r(286),n.curve=r(316),n.curves=r(321),n.ec=r(335),n.eddsa=r(339)},t=>{"use strict";t.exports=JSON.parse('{"name":"elliptic","version":"6.5.7","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},(t,e,r)=>{"use strict";var n=e,i=r(313),s=r(255),a=r(315);n.assert=s,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(t,e,r){var n,i=new Array(Math.max(t.bitLength(),r)+1);for(n=0;n(s>>1)-1?(s>>1)-u:u,a.isubn(o)):o=0,i[n]=o,a.iushrn(1)}return i},n.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,s=0;t.cmpn(-i)>0||e.cmpn(-s)>0;){var a,o,u=t.andln(3)+i&3,h=e.andln(3)+s&3;3===u&&(u=-1),3===h&&(h=-1),a=1&u?3!==(n=t.andln(7)+i&7)&&5!==n||2!==h?u:-u:0,r[0].push(a),o=1&h?3!==(n=e.andln(7)+s&7)&&5!==n||2!==u?h:-h:0,r[1].push(o),2*i===a+1&&(i=1-i),2*s===o+1&&(s=1-s),t.iushrn(1),e.iushrn(1)}return r},n.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new i(t,"hex","le")}},function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(314).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,s=Math.min(t.length,r),a=e;a=49?o-49+10:o>=17?o-17+10:o}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=u(t,e,n)<=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=l[t];r="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modn(f).toString(t);r=(m=m.idivn(f)).isZero()?p+r:c[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var a,o,u="le"===e,h=new t(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[o]=a;for(;o=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==s&&a>26,this.words[a]=67108863&e;if(0===s&&a>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=f),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?f(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,r,n,i,s){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<a)for(this.length-=a,h=0;h=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new k(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(g,v),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new L(t)},i(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e)=>{"use strict";var r=e;function n(t){return 1===t.length?"0"+t:t}function i(t){for(var e="",r=0;r>8,a=255&i;s?r.push(s,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}},(t,e,r)=>{"use strict";var n=e;n.base=r(317),n.short=r(318),n.mont=r(319),n.edwards=r(320)},(t,e,r)=>{"use strict";var n=r(313),i=r(312),s=i.getNAF,a=i.getJSF,o=i.assert;function u(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){o(t.precomputed);var r=t._getDoubles(),n=s(e,1,this._bitLength),i=(1<=a;c--)u=(u<<1)+n[c];h.push(u)}for(var d=this.jpoint(null,null,null),l=this.jpoint(null,null,null),f=i;f>0;f--){for(a=0;a=0;h--){for(var c=0;h>=0&&0===a[h];h--)c++;if(h>=0&&c++,u=u.dblp(c),h<0)break;var d=a[h];o(0!==d),u="affine"===t.type?d>0?u.mixedAdd(i[d-1>>1]):u.mixedAdd(i[-d-1>>1].neg()):d>0?u.add(i[d-1>>1]):u.add(i[-d-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,r,n,i){var o,u,h,c=this._wnafT1,d=this._wnafT2,l=this._wnafT3,f=0;for(o=0;o=1;o-=2){var p=o-1,_=o;if(1===c[p]&&1===c[_]){var y=[e[p],null,null,e[_]];0===e[p].y.cmp(e[_].y)?(y[1]=e[p].add(e[_]),y[2]=e[p].toJ().mixedAdd(e[_].neg())):0===e[p].y.cmp(e[_].y.redNeg())?(y[1]=e[p].toJ().mixedAdd(e[_]),y[2]=e[p].add(e[_].neg())):(y[1]=e[p].toJ().mixedAdd(e[_]),y[2]=e[p].toJ().mixedAdd(e[_].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[p],r[_]);for(f=Math.max(g[0].length,f),l[p]=new Array(f),l[_]=new Array(f),u=0;u=0;o--){for(var L=0;o>=0;){var S=!0;for(u=0;u=0&&L++,w=w.dblp(L),o<0)break;for(u=0;u0?h=d[u][x-1>>1]:x<0&&(h=d[u][-x-1>>1].neg()),w="affine"===h.type?w.mixedAdd(h):w.add(h))}}for(o=0;o=Math.ceil((t.bitLength()+1)/e.step)},h.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i{"use strict";var n=r(312),i=r(313),s=r(39),a=r(317),o=n.assert;function u(t){a.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(t,e,r,n){a.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(t,e,r,n){a.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}s(u,a),t.exports=u,u.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new i(t.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(e))?r=s[0]:(r=s[1],o(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),r=new i(2).toRed(e).redInvm(),n=r.redNeg(),s=new i(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(s).fromRed(),n.redSub(s).fromRed()]},u.prototype._getEndoBasis=function(t){for(var e,r,n,s,a,o,u,h,c,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,f=this.n.clone(),m=new i(1),p=new i(0),_=new i(0),y=new i(1),v=0;0!==l.cmpn(0);){var g=f.div(l);h=f.sub(g.mul(l)),c=_.sub(g.mul(m));var b=y.sub(g.mul(p));if(!n&&h.cmp(d)<0)e=u.neg(),r=m,n=h.neg(),s=c;else if(n&&2==++v)break;u=h,f=l,l=h,_=m,m=c,y=p,p=b}a=h.neg(),o=c;var M=n.sqr().add(s.sqr());return a.sqr().add(o.sqr()).cmp(M)>=0&&(a=e,o=r),n.negative&&(n=n.neg(),s=s.neg()),a.negative&&(a=a.neg(),o=o.neg()),[{a:n,b:s},{a,b:o}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),s=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),o=s.mul(n.a),u=i.mul(r.b),h=s.mul(n.b);return{k1:t.sub(a).sub(o),k2:u.add(h).neg()}},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var s=n.fromRed().isOdd();return(e&&!s||!e&&s)&&(n=n.redNeg()),this.point(t,n)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},h.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),s=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,a)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},h.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},h.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},h.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},h.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(c,a.BasePoint),u.prototype.jpoint=function(t,e,r){return new c(this,t,e,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),s=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),o=n.redSub(i),u=s.redSub(a);if(0===o.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=o.redSqr(),c=h.redMul(o),d=n.redMul(h),l=u.redSqr().redIAdd(c).redISub(d).redISub(d),f=u.redMul(d.redISub(l)).redISub(s.redMul(c)),m=this.z.redMul(t.z).redMul(o);return this.curve.jpoint(l,f,m)},c.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,s=t.y.redMul(e).redMul(this.z),a=r.redSub(n),o=i.redSub(s);if(0===a.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),h=u.redMul(a),c=r.redMul(u),d=o.redSqr().redIAdd(h).redISub(c).redISub(c),l=o.redMul(c.redISub(d)).redISub(i.redMul(h)),f=this.z.redMul(a);return this.curve.jpoint(d,l,f)},c.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},(t,e,r)=>{"use strict";var n=r(313),i=r(39),s=r(317),a=r(312);function o(t){s.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,r){s.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(o,s),t.exports=o,o.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},i(u,s.BasePoint),o.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},o.prototype.point=function(t,e){return new u(this,t,e)},o.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),i=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),s=t.x.redSub(t.z).redMul(r),a=i.redMul(n),o=e.z.redMul(s.redAdd(a).redSqr()),u=e.x.redMul(s.redISub(a).redSqr());return this.curve.point(o,u)},u.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var s=i.length-1;s>=0;s--)0===i[s]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},(t,e,r)=>{"use strict";var n=r(312),i=r(313),s=r(39),a=r(317),o=n.assert;function u(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function h(t,e,r,n,s){a.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=s&&new i(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}s(u,a),t.exports=u,u.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),s=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(s.redInvm()),o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=o.fromRed().isOdd();return(e&&!u||!e&&u)&&(o=o.redNeg()),this.point(t,o)},u.prototype.pointFromY=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),s=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(s.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return o.fromRed().isOdd()!==e&&(o=o.redNeg()),this.point(o,t)},u.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},s(h,a.BasePoint),u.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},u.prototype.point=function(t,e,r,n){return new h(this,t,e,r,n)},h.fromJSON=function(t,e){return new h(t,e[0],e[1],e[2])},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),s=n.redAdd(e),a=s.redSub(r),o=n.redSub(e),u=i.redMul(a),h=s.redMul(o),c=i.redMul(o),d=a.redMul(s);return this.curve.point(u,h,d,c)},h.prototype._projDbl=function(){var t,e,r,n,i,s,a=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var h=(n=this.curve._mulA(o)).redAdd(u);this.zOne?(t=a.redSub(o).redSub(u).redMul(h.redSub(this.curve.two)),e=h.redMul(n.redSub(u)),r=h.redSqr().redSub(h).redSub(h)):(i=this.z.redSqr(),s=h.redSub(i).redISub(i),t=a.redSub(o).redISub(u).redMul(s),e=h.redMul(n.redSub(u)),r=h.redMul(s))}else n=o.redAdd(u),i=this.curve._mulC(this.z).redSqr(),s=n.redSub(i).redSub(i),t=this.curve._mulC(a.redISub(n)).redMul(s),e=this.curve._mulC(n).redMul(o.redISub(u)),r=n.redMul(s);return this.curve.point(t,e,r)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),s=r.redSub(e),a=i.redSub(n),o=i.redAdd(n),u=r.redAdd(e),h=s.redMul(a),c=o.redMul(u),d=s.redMul(u),l=a.redMul(o);return this.curve.point(h,c,l,d)},h.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),s=this.x.redMul(t.x),a=this.y.redMul(t.y),o=this.curve.d.redMul(s).redMul(a),u=i.redSub(o),h=i.redAdd(o),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(s).redISub(a),d=n.redMul(u).redMul(c);return this.curve.twisted?(e=n.redMul(h).redMul(a.redSub(this.curve._mulA(s))),r=u.redMul(h)):(e=n.redMul(h).redMul(a.redSub(s)),r=this.curve._mulC(u).redMul(h)),this.curve.point(d,e,r)},h.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},h.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},h.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},h.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},h.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},(t,e,r)=>{"use strict";var n,i=e,s=r(322),a=r(316),o=r(312).assert;function u(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var r=new u(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(334)}catch(t){n=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},(t,e,r)=>{var n=e;n.utils=r(323),n.common=r(324),n.sha=r(325),n.ripemd=r(332),n.hmac=r(333),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},(t,e,r)=>{"use strict";var n=r(255),i=r(39);function s(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function o(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,r[n++]=63&a|128):s(t,i)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},e.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=255&s):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=255&s)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},e.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},e.sum64=function(t,e,r,n){var i=t[e],s=n+t[e+1]>>>0,a=(s>>0,t[e+1]=s},e.sum64_hi=function(t,e,r,n){return(e+n>>>0>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,i,s,a,o){var u=0,h=e;return u+=(h=h+n>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(t,e,r,n,i,s,a,o){return e+n+s+o>>>0},e.sum64_5_hi=function(t,e,r,n,i,s,a,o,u,h){var c=0,d=e;return c+=(d=d+n>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(t,e,r,n,i,s,a,o,u,h){return e+n+s+o+h>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},(t,e,r)=>{"use strict";var n=r(323),i=r(255);function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=s,s.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,s=8;s{"use strict";e.sha1=r(326),e.sha224=r(328),e.sha256=r(329),e.sha384=r(330),e.sha512=r(331)},(t,e,r)=>{"use strict";var n=r(323),i=r(324),s=r(327),a=n.rotl32,o=n.sum32,u=n.sum32_5,h=s.ft_1,c=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(l,c),t.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n{"use strict";var n=r(323).rotr32;function i(t,e,r){return t&e^~t&r}function s(t,e,r){return t&e^t&r^e&r}function a(t,e,r){return t^e^r}e.ft_1=function(t,e,r,n){return 0===t?i(e,r,n):1===t||3===t?a(e,r,n):2===t?s(e,r,n):void 0},e.ch32=i,e.maj32=s,e.p32=a,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},(t,e,r)=>{"use strict";var n=r(323),i=r(329);function s(){if(!(this instanceof s))return new s;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(s,i),t.exports=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},(t,e,r)=>{"use strict";var n=r(323),i=r(324),s=r(327),a=r(255),o=n.sum32,u=n.sum32_4,h=n.sum32_5,c=s.ch32,d=s.maj32,l=s.s0_256,f=s.s1_256,m=s.g0_256,p=s.g1_256,_=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;_.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(v,_),t.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n{"use strict";var n=r(323),i=r(331);function s(){if(!(this instanceof s))return new s;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(s,i),t.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},(t,e,r)=>{"use strict";var n=r(323),i=r(324),s=r(255),a=n.rotr64_hi,o=n.rotr64_lo,u=n.shr64_hi,h=n.shr64_lo,c=n.sum64,d=n.sum64_hi,l=n.sum64_lo,f=n.sum64_4_hi,m=n.sum64_4_lo,p=n.sum64_5_hi,_=n.sum64_5_lo,y=i.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function g(){if(!(this instanceof g))return new g;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}function b(t,e,r,n,i){var s=t&r^~t&i;return s<0&&(s+=4294967296),s}function M(t,e,r,n,i,s){var a=e&n^~e&s;return a<0&&(a+=4294967296),a}function w(t,e,r,n,i){var s=t&r^t&i^r&i;return s<0&&(s+=4294967296),s}function k(t,e,r,n,i,s){var a=e&n^e&s^n&s;return a<0&&(a+=4294967296),a}function L(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}function S(t,e){var r=o(t,e,28)^o(e,t,2)^o(e,t,7);return r<0&&(r+=4294967296),r}function x(t,e){var r=a(t,e,14)^a(t,e,18)^a(e,t,9);return r<0&&(r+=4294967296),r}function Y(t,e){var r=o(t,e,14)^o(t,e,18)^o(e,t,9);return r<0&&(r+=4294967296),r}function T(t,e){var r=a(t,e,1)^a(t,e,8)^u(t,e,7);return r<0&&(r+=4294967296),r}function D(t,e){var r=o(t,e,1)^o(t,e,8)^h(t,e,7);return r<0&&(r+=4294967296),r}function E(t,e){var r=a(t,e,19)^a(e,t,29)^u(t,e,6);return r<0&&(r+=4294967296),r}function j(t,e){var r=o(t,e,19)^o(e,t,29)^h(t,e,6);return r<0&&(r+=4294967296),r}n.inherits(g,y),t.exports=g,g.blockSize=1024,g.outSize=512,g.hmacStrength=192,g.padLength=128,g.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n{"use strict";var n=r(323),i=r(324),s=n.rotl32,a=n.sum32,o=n.sum32_3,u=n.sum32_4,h=i.BlockHash;function c(){if(!(this instanceof c))return new c;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function l(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function f(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(c,h),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],h=this.h[3],c=this.h[4],v=r,g=n,b=i,M=h,w=c,k=0;k<80;k++){var L=a(s(u(r,d(k,n,i,h),t[m[k]+e],l(k)),_[k]),c);r=c,c=h,h=s(i,10),i=n,n=L,L=a(s(u(v,d(79-k,g,b,M),t[p[k]+e],f(k)),y[k]),w),v=w,w=M,M=s(b,10),b=g,g=L}L=o(this.h[1],i,M),this.h[1]=o(this.h[2],h,w),this.h[2]=o(this.h[3],c,v),this.h[3]=o(this.h[4],r,g),this.h[4]=o(this.h[0],n,b),this.h[0]=L},c.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var m=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],p=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],_=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},(t,e,r)=>{"use strict";var n=r(323),i=r(255);function s(t,e,r){if(!(this instanceof s))return new s(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=s,s.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e{t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},(t,e,r)=>{"use strict";var n=r(313),i=r(336),s=r(312),a=r(321),o=r(286),u=s.assert,h=r(337),c=r(338);function d(t){if(!(this instanceof d))return new d(t);"string"==typeof t&&(u(Object.prototype.hasOwnProperty.call(a,t),"Unknown curve "+t),t=a[t]),t instanceof a.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=d,d.prototype.keyPair=function(t){return new h(this,t)},d.prototype.keyFromPrivate=function(t,e){return h.fromPrivate(this,t,e)},d.prototype.keyFromPublic=function(t,e){return h.fromPublic(this,t,e)},d.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||o(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),s=this.n.sub(new n(2));;){var a=new n(e.generate(r));if(!(a.cmp(s)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},d.prototype.sign=function(t,e,r,s){"object"==typeof r&&(s=r,r=null),s||(s={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new n(t,16));for(var a=this.n.byteLength(),o=e.getPrivate().toArray("be",a),u=t.toArray("be",a),h=new i({hash:this.hash,entropy:o,nonce:u,pers:s.pers,persEnc:s.persEnc||"utf8"}),d=this.n.sub(new n(1)),l=0;;l++){var f=s.k?s.k(l):new n(h.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(d)>=0)){var m=this.g.mul(f);if(!m.isInfinity()){var p=m.getX(),_=p.umod(this.n);if(0!==_.cmpn(0)){var y=f.invm(this.n).mul(_.mul(e.getPrivate()).iadd(t));if(0!==(y=y.umod(this.n)).cmpn(0)){var v=(m.getY().isOdd()?1:0)|(0!==p.cmp(_)?2:0);return s.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),v^=1),new c({r:_,s:y,recoveryParam:v})}}}}}},d.prototype.verify=function(t,e,r,i){t=this._truncateToN(new n(t,16)),r=this.keyFromPublic(r,i);var s=(e=new c(e,"hex")).r,a=e.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var o,u=a.invm(this.n),h=u.mul(t).umod(this.n),d=u.mul(s).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(h,r.getPublic(),d)).isInfinity()&&o.eqXToP(s):!(o=this.g.mulAdd(h,r.getPublic(),d)).isInfinity()&&0===o.getX().umod(this.n).cmp(s)},d.prototype.recoverPubKey=function(t,e,r,i){u((3&r)===r,"The recovery param is more than two bits"),e=new c(e,i);var s=this.n,a=new n(t),o=e.r,h=e.s,d=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),d):this.curve.pointFromX(o,d);var f=e.r.invm(s),m=s.sub(a).mul(f).umod(s),p=h.mul(f).umod(s);return this.g.mulAdd(m,o,p)},d.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new c(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch(t){continue}if(s.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},(t,e,r)=>{"use strict";var n=r(322),i=r(315),s=r(255);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),r=i.toArray(t.nonce,t.nonceEnc||"hex"),n=i.toArray(t.pers,t.persEnc||"hex");s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=a,a.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},a.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var s=[];s.length{"use strict";var n=r(313),i=r(312).assert;function s(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=s,s.fromPublic=function(t,e,r){return e instanceof s?e:new s(t,{pub:e,pubEnc:r})},s.fromPrivate=function(t,e,r){return e instanceof s?e:new s(t,{priv:e,privEnc:r})},s.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},s.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},s.prototype.derive=function(t){return t.validate()||i(t.validate(),"public point not validated"),t.mul(this.priv).getX()},s.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},s.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},s.prototype.inspect=function(){return""}},(t,e,r)=>{"use strict";var n=r(313),i=r(312),s=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(s(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function o(){this.place=0}function u(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;if(0===t[e.place])return!1;for(var i=0,s=0,a=e.place;s>>=0;return!(i<=127)&&(e.place=a,i)}function h(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var r=new o;if(48!==t[r.place++])return!1;var s=u(t,r);if(!1===s)return!1;if(s+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var a=u(t,r);if(!1===a)return!1;if(128&t[r.place])return!1;var h=t.slice(r.place,a+r.place);if(r.place+=a,2!==t[r.place++])return!1;var c=u(t,r);if(!1===c)return!1;if(t.length!==c+r.place)return!1;if(128&t[r.place])return!1;var d=t.slice(r.place,c+r.place);if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(h),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=h(e),r=h(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,e.length),(n=n.concat(e)).push(2),c(n,r.length);var s=n.concat(r),a=[48];return c(a,s.length),a=a.concat(s),i.encode(a,t)}},(t,e,r)=>{"use strict";var n=r(322),i=r(321),s=r(312),a=s.assert,o=s.parseBytes,u=r(340),h=r(341);function c(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof c))return new c(t);t=i[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=c,c.prototype.sign=function(t,e){t=o(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),s=this.encodePoint(i),a=this.hashInt(s,r.pubBytes(),t).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:s})},c.prototype.verify=function(t,e,r){if(t=o(t),(e=this.makeSignature(e)).S().gte(e.eddsa.curve.n)||e.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),s=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(s)},c.prototype.hashInt=function(){for(var t=this.hash(),e=0;e{"use strict";var n=r(312),i=n.assert,s=n.parseBytes,a=n.cachedProperty;function o(t,e){this.eddsa=t,this._secret=s(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=s(e.pub)}o.fromPublic=function(t,e){return e instanceof o?e:new o(t,{pub:e})},o.fromSecret=function(t,e){return e instanceof o?e:new o(t,{secret:e})},o.prototype.secret=function(){return this._secret},a(o,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(o,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(o,"privBytes",(function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(o,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(o,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(o,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),o.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},o.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},o.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},o.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=o},(t,e,r)=>{"use strict";var n=r(313),i=r(312),s=i.assert,a=i.cachedProperty,o=i.parseBytes;function u(t,e){this.eddsa=t,"object"!=typeof e&&(e=o(e)),Array.isArray(e)&&(s(e.length===2*t.encodingLength,"Signature has invalid size"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),s(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=u},(t,e,r)=>{"use strict";var n=r(343),i=r(362),s=r(363),a=r(259),o=r(244),u=r(202).Buffer;function h(t){var e;"object"!=typeof t||u.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=u.from(t));var r,h,c=s(t,e),d=c.tag,l=c.data;switch(d){case"CERTIFICATE":h=n.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=n.PublicKey.decode(l,"der")),r=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=n.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":l=function(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=i[t.algorithm.decrypt.cipher.algo.join(".")],h=t.algorithm.decrypt.cipher.iv,c=t.subjectPrivateKey,d=parseInt(s.split("-")[1],10)/8,l=o.pbkdf2Sync(e,r,n,d,"sha1"),f=a.createDecipheriv(s,l,h),m=[];return m.push(f.update(c)),m.push(f.final()),u.concat(m)}(l=n.EncryptedPrivateKey.decode(l,"der"),e);case"PRIVATE KEY":switch(r=(h=n.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:n.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=n.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=n.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+d)}}h.signature=n.signature,t.exports=h},(t,e,r)=>{"use strict";var n=r(344);e.certificate=r(361);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=i;var s=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=s;var a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),o=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));e.PublicKey=o;var u=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=u;var h=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=h;var c=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=c,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var d=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),l=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=l,e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},(t,e,r)=>{var n=e;n.bignum=r(345),n.define=r(347).define,n.base=r(349),n.constants=r(353),n.decoders=r(355),n.encoders=r(358)},function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(346).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,s=Math.min(t.length,r),a=e;a=49?o-49+10:o>=17?o-17+10:o}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=u(t,e,n)<=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=l[t];r="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modn(f).toString(t);r=(m=m.idivn(f)).isZero()?p+r:c[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var a,o,u="le"===e,h=new t(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[o]=a;for(;o=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==s&&a>26,this.words[a]=67108863&e;if(0===s&&a>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=f),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?f(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,r,n,i,s){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<a)for(this.length-=a,h=0;h=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new k(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(g,v),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new L(t)},i(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e,r)=>{var n=r(344),i=r(39);function s(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new s(t,e)},s.prototype._createNamed=function(t){var e;try{e=r(348).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return i(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},s.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(n.decoders[t])),this.decoders[t]},s.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},s.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n.encoders[t])),this.encoders[t]},s.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},(__unused_webpack_module,exports)=>{var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r{var n=e;n.Reporter=r(350).Reporter,n.DecoderBuffer=r(351).DecoderBuffer,n.EncoderBuffer=r(351).EncoderBuffer,n.Node=r(352)},(t,e,r)=>{var n=r(39);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function s(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof s},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,r){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},i.prototype.error=function(t){var e,r=this._reporterState,n=t instanceof s;if(e=n?t:new s(r.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(s,Error),s.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},(t,e,r)=>{var n=r(39),i=r(349).Reporter,s=r(203).Buffer;function a(t,e){i.call(this,e),s.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function o(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return t instanceof o||(t=new o(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=s.byteLength(t);else{if(!s.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(a,i),e.DecoderBuffer=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(t){var e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=o,o.prototype.join=function(t,e){return t||(t=new s(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(t,e),e+=r.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):s.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},(t,e,r)=>{var n=r(349).Reporter,i=r(349).EncoderBuffer,s=r(349).DecoderBuffer,a=r(255),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function h(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=h;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){var t=this._baseState,e={};c.forEach((function(r){e[r]=t[r]}));var r=new this.constructor(e.parent);return r._baseState=e,r},h.prototype._wrap=function(){var t=this._baseState;u.forEach((function(e){this[e]=function(){var r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}}),this)},h.prototype._init=function(t){var e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(t){var e=this._baseState,r=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==r.length&&(a(null===e.children),e.children=r,r.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(r){r==(0|r)&&(r|=0);var n=t[r];e[n]=r})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){h.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),o.forEach((function(t){h.prototype[t]=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(r),this}})),h.prototype.use=function(t){a(t);var e=this._baseState;return a(null===e.use),e.use=t,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(t){var e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},h.prototype.explicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},h.prototype.implicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},h.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},h.prototype.key=function(t){var e=this._baseState;return a(null===e.key),e.key=t,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(t){var e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},h.prototype.contains=function(t){var e=this._baseState;return a(null===e.use),e.contains=t,this},h.prototype._decode=function(t,e){var r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));var n,i=r.default,a=!0,o=null;if(null!==r.key&&(o=t.enterKey(r.key)),r.optional){var u=null;if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(a=this._peekTag(t,u,r.any),t.isError(a))return a}else{var h=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(h)}}if(r.obj&&a&&(n=t.enterObject()),a){if(null!==r.explicit){var c=this._decodeTag(t,r.explicit);if(t.isError(c))return c;t=c}var d=t.offset;if(null===r.use&&null===r.choice){if(r.any)h=t.save();var l=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(l))return l;r.any?i=t.raw(h):t=l}if(e&&e.track&&null!==r.tag&&e.track(t.path(),d,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e)),t.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(t,e)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var f=new s(i);i=this._getUse(r.contains,t._reporterState.obj)._decode(f,e)}}return r.obj&&a&&(i=t.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==o&&t.exitKey(o):t.leaveKey(o,r.key,i),i},h.prototype._decodeGeneric=function(t,e,r){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},h.prototype._getUse=function(t,e){var r=this._baseState;return r.useDecoder=this._use(t,e),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},h.prototype._decodeChoice=function(t,e){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(s){var a=t.save(),o=r.choice[s];try{var u=o._decode(t,e);if(t.isError(u))return!1;n={type:s,value:u},i=!0}catch(e){return t.restore(a),!1}return!0}),this),i?n:t.error("Choice not matched")},h.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},h.prototype._encode=function(t,e,r){var n=this._baseState;if(null===n.default||n.default!==t){var i=this._encodeValue(t,e,r);if(void 0!==i&&!this._skipDefault(i,e,r))return i}},h.prototype._encodeValue=function(t,e,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new n);var s=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}var a=null,o=!1;if(i.any)s=this._createEncoderBuffer(t);else if(i.choice)s=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,r)._encode(t,e),o=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");var n=e.enterKey(r._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var i=r._encode(t[r._baseState.key],e,t);return e.leaveKey(n),i}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(r){var n=this._baseState;return this._getUse(n.args[0],t)._encode(r,e)}),u))}else null!==i.use?s=this._getUse(i.use,r)._encode(t,e):(a=this._encodePrimitive(i.tag,t),o=!0);if(!i.any&&null===i.choice){var h=null!==i.implicit?i.implicit:i.tag,c=null===i.implicit?"universal":"context";null===h?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(s=this._encodeComposite(h,o,c,a))}return null!==i.explicit&&(s=this._encodeComposite(i.explicit,!1,"context",s)),s},h.prototype._encodeChoice=function(t,e){var r=this._baseState,n=r.choice[t.type];return n||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},h.prototype._encodePrimitive=function(t,e){var r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},h.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},h.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},(t,e,r)=>{var n=e;n._reverse=function(t){var e={};return Object.keys(t).forEach((function(r){(0|r)==r&&(r|=0);var n=t[r];e[n]=r})),e},n.der=r(354)},(t,e,r)=>{var n=r(353);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n._reverse(e.tag)},(t,e,r)=>{var n=e;n.der=r(356),n.pem=r(357)},(t,e,r)=>{var n=r(39),i=r(344),s=i.base,a=i.bignum,o=i.constants.der;function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){s.Node.call(this,"der",t)}function c(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var n=o.tagClass[r>>6],i=!(32&r);if(31&~r)r&=31;else{var s=r;for(r=0;!(128&~s);){if(s=t.readUInt8(e),t.isError(s))return s;r<<=7,r|=127&s}}return{cls:n,primitive:i,tag:r,tagStr:o.tag[r]}}function d(t,e,r){var n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(!(128&n))return n;var i=127&n;if(i>4)return t.error("length octect is too long");n=0;for(var s=0;s{var n=r(39),i=r(203).Buffer,s=r(356);function a(t){s.call(this,t),this.enc="pem"}n(a,s),t.exports=a,a.prototype.decode=function(t,e){for(var r=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,o=-1,u=-1,h=0;h{var n=e;n.der=r(359),n.pem=r(360)},(t,e,r)=>{var n=r(39),i=r(203).Buffer,s=r(344),a=s.base,o=s.constants.der;function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){a.Node.call(this,"der",t)}function c(t){return t<10?"0"+t:t}t.exports=u,u.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(h,a.Node),h.prototype._encodeComposite=function(t,e,r,n){var s,a=function(t,e,r,n){var i;"seqof"===t?t="seq":"setof"===t&&(t="set");if(o.tagByName.hasOwnProperty(t))i=o.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);i=t}if(i>=31)return n.error("Multi-octet tag encoding unsupported");e||(i|=32);return i|=o.tagClassByName[r||"universal"]<<6,i}(t,e,r,this.reporter);if(n.length<128)return(s=new i(2))[0]=a,s[1]=n.length,this._createEncoderBuffer([s,n]);for(var u=1,h=n.length;h>=256;h>>=8)u++;(s=new i(2+u))[0]=a,s[1]=128|u;h=1+u;for(var c=n.length;c>0;h--,c>>=8)s[h]=255&c;return this._createEncoderBuffer([s,n])},h.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var r=new i(2*t.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var s=0;for(n=0;n=128;a>>=7)s++}var o=new i(s),u=o.length-1;for(n=t.length-1;n>=0;n--){a=t[n];for(o[u--]=127&a;(a>>=7)>0;)o[u--]=128|127&a}return this._createEncoderBuffer(o)},h.prototype._encodeTime=function(t,e){var r,n=new Date(t);return"gentime"===e?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(r,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!i.isBuffer(t)){var r=t.toArray();!t.sign&&128&r[0]&&r.unshift(0),t=new i(r)}if(i.isBuffer(t)){var n=t.length;0===t.length&&n++;var s=new i(n);return t.copy(s),0===t.length&&(s[0]=0),this._createEncoderBuffer(s)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);n=1;for(var a=t;a>=256;a>>=8)n++;for(a=(s=new Array(n)).length-1;a>=0;a--)s[a]=255&t,t>>=8;return 128&s[0]&&s.unshift(0),this._createEncoderBuffer(new i(s))},h.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},h.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},h.prototype._skipDefault=function(t,e,r){var n,i=this._baseState;if(null===i.default)return!1;var s=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,r).join()),s.length!==i.defaultBuffer.length)return!1;for(n=0;n{var n=r(39),i=r(359);function s(t){i.call(this,t),this.enc="pem"}n(s,i),t.exports=s,s.prototype.encode=function(t,e){for(var r=i.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"],s=0;s{"use strict";var n=r(344),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),s=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),o=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=n.define("RelativeDistinguishedName",(function(){this.setof(s)})),h=n.define("RDNSequence",(function(){this.seqof(u)})),c=n.define("Name",(function(){this.choice({rdnSequence:this.use(h)})})),d=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),l=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),f=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(c),this.key("validity").use(d),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())})),m=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=m},t=>{"use strict";t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},(t,e,r)=>{"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(276),o=r(259),u=r(202).Buffer;t.exports=function(t,e){var r,h=t.toString(),c=h.match(n);if(c){var d="aes"+c[1],l=u.from(c[2],"hex"),f=u.from(c[3].replace(/[\r\n]/g,""),"base64"),m=a(e,l.slice(0,8),parseInt(c[1],10)).key,p=[],_=o.createDecipheriv(d,m,l);p.push(_.update(f)),p.push(_.final()),r=u.concat(p)}else{var y=h.match(s);r=u.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(i)[1],data:r}}},t=>{"use strict";t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},(t,e,r)=>{"use strict";var n=r(202).Buffer,i=r(308),s=r(310).ec,a=r(342),o=r(364);function u(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=0)throw new Error("invalid sig")}t.exports=function(t,e,r,h,c){var d=a(r);if("ec"===d.type){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");return function(t,e,r){var n=o[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new s(n),a=r.data.subjectPrivateKey.data;return i.verify(e,t,a)}(t,e,d)}if("dsa"===d.type){if("dsa"!==h)throw new Error("wrong public key type");return function(t,e,r){var n=r.data.p,s=r.data.q,o=r.data.g,h=r.data.pub_key,c=a.signature.decode(t,"der"),d=c.s,l=c.r;u(d,s),u(l,s);var f=i.mont(n),m=d.invm(s),p=o.toRed(f).redPow(new i(e).mul(m).mod(s)).fromRed().mul(h.toRed(f).redPow(l.mul(m).mod(s)).fromRed()).mod(n).mod(s);return 0===p.cmp(l)}(t,e,d)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");e=n.concat([c,e]);for(var l=d.modulus.byteLength(),f=[1],m=0;e.length+f.length+2{var n=r(203).Buffer,i=r(310),s=r(367);t.exports=function(t){return new o(t)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(t){this.curveType=a[t],this.curveType||(this.curveType={name:t}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function u(t,e,r){Array.isArray(t)||(t=t.toArray());var i=new n(t);if(r&&i.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,s=Math.min(t.length,r),a=e;a=49?o-49+10:o>=17?o-17+10:o}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=u(t,e,n)<=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=l[t];r="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modn(f).toString(t);r=(m=m.idivn(f)).isZero()?p+r:c[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var a,o,u="le"===e,h=new t(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[o]=a;for(;o=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==s&&a>26,this.words[a]=67108863&e;if(0===s&&a>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=f),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?f(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,r,n,i,s){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<a)for(this.length-=a,h=0;h=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new k(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(g,v),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new L(t)},i(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e,r)=>{e.publicEncrypt=r(370),e.privateDecrypt=r(376),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},(t,e,r)=>{var n=r(342),i=r(201),s=r(206),a=r(371),o=r(372),u=r(373),h=r(375),c=r(307),d=r(202).Buffer;t.exports=function(t,e,r){var l;l=t.padding?t.padding:r?1:4;var f,m=n(t);if(4===l)f=function(t,e){var r=t.modulus.byteLength(),n=e.length,h=s("sha1").update(d.alloc(0)).digest(),c=h.length,l=2*c;if(n>r-l-2)throw new Error("message too long");var f=d.alloc(r-n-l-2),m=r-c-1,p=i(c),_=o(d.concat([h,f,d.alloc(1,1),e],m),a(p,m)),y=o(p,a(_,c));return new u(d.concat([d.alloc(1),y,_],r))}(m,e);else if(1===l)f=function(t,e,r){var n,s=e.length,a=t.modulus.byteLength();if(s>a-11)throw new Error("message too long");n=r?d.alloc(a-s-3,255):function(t){var e,r=d.allocUnsafe(t),n=0,s=i(2*t),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?c(f,m):h(f,m)}},(t,e,r)=>{var n=r(206),i=r(202).Buffer;function s(t){var e=i.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var r,a=i.alloc(0),o=0;a.length{t.exports=function(t,e){for(var r=t.length,n=-1;++n=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,s=Math.min(t.length,r),a=e;a=49?o-49+10:o>=17?o-17+10:o}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=u(t,e,n)<=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=l[t];r="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modn(f).toString(t);r=(m=m.idivn(f)).isZero()?p+r:c[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var a,o,u="le"===e,h=new t(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[o]=a;for(;o=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==s&&a>26,this.words[a]=67108863&e;if(0===s&&a>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=f),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?f(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,r,n,i,s){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<a)for(this.length-=a,h=0;h=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new k(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(g,v),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new L(t)},i(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e,r)=>{var n=r(373),i=r(202).Buffer;t.exports=function(t,e){return i.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}},(t,e,r)=>{var n=r(342),i=r(371),s=r(372),a=r(373),o=r(307),u=r(206),h=r(375),c=r(202).Buffer;t.exports=function(t,e,r){var d;d=t.padding?t.padding:r?1:4;var l,f=n(t),m=f.modulus.byteLength();if(e.length>m||new a(e).cmp(f.modulus)>=0)throw new Error("decryption error");l=r?h(new a(e),f):o(e,f);var p=c.alloc(m-l.length);if(l=c.concat([p,l],m),4===d)return function(t,e){var r=t.modulus.byteLength(),n=u("sha1").update(c.alloc(0)).digest(),a=n.length;if(0!==e[0])throw new Error("decryption error");var o=e.slice(1,a+1),h=e.slice(a+1),d=s(o,i(h,a)),l=s(h,i(d,r-a-1));if(function(t,e){t=c.from(t),e=c.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));var i=-1;for(;++i=e.length){s++;break}var a=e.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&s++;a.length<8&&s++;if(s)throw new Error("decryption error");return e.slice(i)}(0,l,r);if(3===d)return l;throw new Error("unknown padding")}},(t,e,r)=>{"use strict";var n=r(6);function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var s=r(202),a=r(201),o=s.Buffer,u=s.kMaxLength,h=r.g.crypto||r.g.msCrypto,c=Math.pow(2,32)-1;function d(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>c||t<0)throw new TypeError("offset must be a uint32");if(t>u||t>e)throw new RangeError("offset out of range")}function l(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>c||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>u)throw new RangeError("buffer too small")}function f(t,e,r,i){if(n.browser){var s=t.buffer,o=new Uint8Array(s,e,r);return h.getRandomValues(o),i?void n.nextTick((function(){i(null,t)})):t}if(!i)return a(r).copy(t,e),t;a(r,(function(r,n){if(r)return i(r);n.copy(t,e),i(null,t)}))}h&&h.getRandomValues||!n.browser?(e.randomFill=function(t,e,n,i){if(!(o.isBuffer(t)||t instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)i=e,e=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-e;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return d(e,t.length),l(n,e,t.length),f(t,e,n,i)},e.randomFillSync=function(t,e,n){void 0===e&&(e=0);if(!(o.isBuffer(t)||t instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');d(e,t.length),void 0===n&&(n=t.length-e);return l(n,e,t.length),f(t,e,n)}):(e.randomFill=i,e.randomFillSync=i)},(t,e,r)=>{"use strict";r.r(e),r.d(e,{CheckScreenDirection:()=>m,CheckVerifyCode:()=>v,ConfigChannel:()=>g,ConfigChannelRTC:()=>b,ExexuteCloseServer:()=>Y,ExexuteKeyDown:()=>h,ExexuteMouseDown:()=>c,ExexuteMouseMove:()=>d,ExexuteMouseUp:()=>l,ExexuteSendBitRate:()=>u,ExexuteSetAccountTransparent:()=>a,ExexuteSetPhoneSize:()=>o,GetEmptyFrame:()=>p,GetScreenState:()=>_,OpenFileLog:()=>M,PrintArry:()=>i,RequestIFrame:()=>x,VerifyCode:()=>y,calBcc:()=>n,checkMultiLoginInfo:()=>L,fpsSet:()=>T,makeFrame:()=>s,makeFrameExtend:()=>f,makeMultiLogin:()=>w,makeSharpness:()=>S,makeStatistics:()=>k});r(4);var n=function(t){for(var e=0,r=0;r>24,o[i++]=(16711680&s)>>16,o[i++]=(65280&s)>>8,o[i++]=255&s,o[i++]=0;for(var u=0;u>24,o[i++]=(16711680&s)>>16,o[i++]=(65280&s)>>8,o[i++]=255&s,o[i++]=0;for(var u=0;u{"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__379__}],__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CloudGameSdk:()=>c});var t=__webpack_require__(1),e=__webpack_require__(3),r=__webpack_require__.n(e),n=__webpack_require__(196),i=__webpack_require__(198),s=__webpack_require__(378),a=__webpack_require__(4),o=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function a(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,o)}u((n=n.apply(t,e||[])).next())}))},u=function(t,e){var r,n,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(o){return function(u){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,o[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?n[Math.floor(Math.random()*n.length)]:null},u.label=1;case 1:return u.trys.push([1,4,,5]),[4,fetch("https://test_zt_ip62.phone.androidscloud.com:8044/120.120.120.120",{method:"GET",headers:{"Content-Type":"application/json"}})];case 2:if(!(r=u.sent()).ok)throw new Error("网络响应不是OK");return[4,r.json()];case 3:return n=u.sent(),i={type:"networkService",val:n,description:"三网服务信息"},this.listenConnection(i),s=n["Network Name"],(o=t.find((function(t){return t.hasOwnProperty(s)})))&&(h=o[s])&&""!==h.trim()?[2,h]:[2,e()||null];case 4:return c=u.sent(),a.error("Error:",c),[2,e()||null];case 5:return[2]}}))}))},e.prototype.listenConnection=function(t){if("function"==typeof this.connection.callback&&this.connection.callback(t),"screenChange"===t.type)h=0===t.val},e.prototype.disconnect=function(){return o(this,void 0,void 0,(function(){var t,e=this;return u(this,(function(r){return this.player,this.mq,this.player&&this.player.close(),t={action:"unpublished"},this.mq&&(this.mq.pub(t),this.cacheSubscription=[],this.streamParam.name="",this.subscriptionDat.topic="",this.cacheSubscription=this.querySubjects(),this.cacheSubscription.forEach((function(t){e.mq.unsub(t.topic)})),this.mq.close()),[2]}))}))},e.prototype.task=function(){var t=JSON.stringify({type:"keyCode",value:187});this.player&&this.player.channelSenData(t)},e.prototype.home=function(){var t=JSON.stringify({type:"keyCode",value:3});this.player&&this.player.channelSenData(t)},e.prototype.onBack=function(){var t=JSON.stringify({type:"keyCode",value:4});this.player&&this.player.channelSenData(t)},e.prototype.makeBitrate=function(t){var e={type:"maxBitrate",bitrate:t},r=JSON.stringify(e);this.player&&this.player.channelSenData(r)},e.prototype.makeResolution=function(t){var e={type:"setSize",width:t.width,height:t.height,density:t.density},r=JSON.stringify(e);this.player&&this.player.channelSenData(r)},e.prototype.setEncoderSize=function(t){var e={type:"setVideoSize",width:t.width,height:t.height},r=JSON.stringify(e);this.player&&this.player.channelSenData(r)},e.prototype.setMultiterminalLogin=function(t){var e={type:"login",value:t},r=JSON.stringify(e);this.player&&this.player.channelSenData(r)},e.prototype.ExexuteKeyBoard=function(t){var e={type:"keyCode",value:t},r=JSON.stringify(e);this.player&&this.player.channelSenData(r)},e.prototype.ExexuteChannel=function(t){this.player&&this.player.channelSenData(t)},e.prototype.openCameraStream=function(t){this.player.openCamera(t)},e.prototype.closeCameraStream=function(){this.player.closeCamera()},e.prototype.getCurrentTime=function(){return r()().format("HH:mm:ss")},e.prototype.pushRecord=function(t){this.chatRecords.push(t),"sub"===t.type&&this.sub(t.data)},e.prototype.querySubjects=function(){var t=localStorage.getItem(this.connection.id);return t?JSON.parse(t):[]},e.prototype.renderChatWindow=function(e){var r={id:(0,t.nanoid)(),data:e.data,type:e.type,topic:e.topic,color:e.color,time:this.getCurrentTime()};this.pushRecord(r)},e.prototype.start=function(){this.publication.data=JSON.stringify(this.streamParam),this.mq.pub(this.publication.topic+".media."+this.subscriptionDat.topic,this.publication.data),this.renderChatWindow({topic:this.publication.topic+".media."+this.subscriptionDat.topic,type:this.publication.type,data:this.publication.data,color:this.publication.color})},e.prototype.open=function(){this.streamParam.name=(0,t.nanoid)(),this.subscriptionDat.topic=this.streamParam.name,this.addSubscribe(JSON.parse(JSON.stringify(this.subscriptionDat)))},e.prototype.subscription=function(){var t=this;this.querySubjects().forEach((function(e){t.subscribe(e)}))},e.prototype.addSubscribe=function(e){return!(this.querySubjects().filter((function(t){return t.topic===e.topic})).length>0)&&(e.id=(0,t.nanoid)(),this.cacheSubscription.push(e),this.start(),this.subscribe(e),!0)},e.prototype.subscribe=function(t){var e=this;t.isSub&&this.mq.sub(t.topic,(function(r,n){e.renderChatWindow({topic:n.subject,type:"sub",data:r,color:t.color})}))},e.prototype.publish=function(t,e){this.mq.pub(t.topic+".media."+this.subscriptionDat.topic,t.data),this.renderChatWindow({topic:t.topic+".media."+this.subscriptionDat.topic,type:t.type,data:t.data,color:t.color})},e.prototype.sub=function(t){var e=this,r=JSON.parse(t);if("coturnAuth"===r.action&&(this.coturnAuthData=r),"offer"===r.action){var n=document.getElementById("playerVideo");this.player.play(n,this.streamParam.name,r.action,r.sdp,this.coturnAuthData,(function(t){e.publication.data=JSON.stringify(t),e.publish(e.publication,e.subscriptionDat.topic)}))}else if("candidate"===r.action){var i={candidate:r.candidate,sdpMid:r.id,sdpMLineIndex:r.label};this.player.setCandidate(i)}},e.prototype.touchClick=function(t,e,r){var n,i,a,o=this,u={0:s.ExexuteMouseDown,1:s.ExexuteMouseUp,2:s.ExexuteMouseMove},c=/(Win32|Win16|WinCE|Mac68K|MacIntel|MacIntel|MacPPC|Linux mips64)/i.test(navigator.platform),d=document.getElementById("playerVideo"),l=d.clientHeight,f=d.clientWidth,m="ontouchstart"in window||navigator.maxTouchPoints>0;if(c&&!m){i=t.offsetX,a=t.offsetY;var p=u[e](i.toString(),a.toString(),"RK3923C1201900139",1,0,f,l);this.player&&this.player.channelSenData(p)}else{var _=t.changedTouches,y=[];if(0===t.touches.length&&(this.pubilcTouchArr=[]),0===e||2===e)Array.from(t.touches).forEach((function(t,e){var r=null==t?void 0:t.identifier,n=o.pubilcTouchArr.find((function(t){return t.identifier===r}));if(n)n.event=t,n.index=e;else{for(var i=0;o.pubilcTouchArr.some((function(t){return t.id===i}));)i++;var s={identifier:r,index:e,id:i,event:t};o.pubilcTouchArr.push(s)}})),this.TouchArr=this.pubilcTouchArr.sort((function(t,e){return t.id-e.id})),this.TouchArr.forEach((function(t,e){t.index=e}));if(t.changedTouches.length&&t.touches.length)for(var v=0;v1){var Y,T=[];Array.from(this.TouchArr).forEach((function(t,r){var n=t.event.clientX-t.event.target.getBoundingClientRect().x,i=t.event.clientY-t.event.target.getBoundingClientRect().y,s=t.event.target.getBoundingClientRect(),a=t.event.clientY-s.y,u=s.width-(t.event.clientX-s.x),c=h?a:n,d=h?u:i,l=0===e?o.TouchArr.length-1<<8|5:1===e?b<<8|6:2;Y={action:l,count:1,id:t.id,x:c.toString(),y:d.toString()},T.push(Y)}));var D={data:T,w:Math.floor(f),h:Math.floor(l),type:"event"},E=JSON.stringify(D);this.player&&this.player.channelSenData(E)}else{p=u[e](i.toString(),a.toString(),"RK3923C1201900139",1,x,f,l);"打印数据".concat(e),this.player&&this.player.channelSenData(p)}if(1===e)this.targetTouchesID=[],this.addTouch="",this.isMultiTouch=!1,t.touches.length&&(this.isMultiTouch=!0),Array.from(t.changedTouches).forEach((function(t){var e=t.identifier;o.pubilcTouchArr=o.pubilcTouchArr.filter((function(t){return t.identifier!==e}))})),this.pubilcTouchArr.forEach((function(t,e){t.index=e})),this.TouchArr=this.pubilcTouchArr.sort((function(t,e){return t.id-e.id})),this.TouchArr.forEach((function(t,e){t.index=e}))}},e.prototype.isMobile=function(){var t=navigator.userAgent;if(/android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(t))return!0;var e="ontouchstart"in window||navigator.maxTouchPoints>0,r=window.innerWidth<=1080;return e||r},e}()})(),__webpack_exports__})()));