pangea-helpers 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +0,0 @@
1
- "use strict";//! moment.js
2
- //! version : 2.30.1
3
- //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
- //! license : MIT
5
- //! momentjs.com
6
- var Wt;function o(){return Wt.apply(null,arguments)}function vs(e){Wt=e}function R(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function se(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function st(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(w(e,t))return!1;return!0}function T(e){return e===void 0}function j(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ke(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Pt(e,t){var s=[],r,a=e.length;for(r=0;r<a;++r)s.push(t(e[r],r));return s}function Q(e,t){for(var s in t)w(t,s)&&(e[s]=t[s]);return w(t,"toString")&&(e.toString=t.toString),w(t,"valueOf")&&(e.valueOf=t.valueOf),e}function I(e,t,s,r){return ts(e,t,s,r,!0).utc()}function Ys(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function c(e){return e._pf==null&&(e._pf=Ys()),e._pf}var Be;Array.prototype.some?Be=Array.prototype.some:Be=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function rt(e){var t=null,s=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=c(e),s=Be.call(t.parsedDateParts,function(a){return a!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Fe(e){var t=I(NaN);return e!=null?Q(c(t),e):c(t).userInvalidated=!0,t}var pt=o.momentProperties=[],Ze=!1;function at(e,t){var s,r,a,n=pt.length;if(T(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),T(t._i)||(e._i=t._i),T(t._f)||(e._f=t._f),T(t._l)||(e._l=t._l),T(t._strict)||(e._strict=t._strict),T(t._tzm)||(e._tzm=t._tzm),T(t._isUTC)||(e._isUTC=t._isUTC),T(t._offset)||(e._offset=t._offset),T(t._pf)||(e._pf=c(t)),T(t._locale)||(e._locale=t._locale),n>0)for(s=0;s<n;s++)r=pt[s],a=t[r],T(a)||(e[r]=a);return e}function ge(e){at(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Ze===!1&&(Ze=!0,o.updateOffset(this),Ze=!1)}function F(e){return e instanceof ge||e!=null&&e._isAMomentObject!=null}function Rt(e){o.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function N(e,t){var s=!0;return Q(function(){if(o.deprecationHandler!=null&&o.deprecationHandler(null,e),s){var r=[],a,n,i,u=arguments.length;for(n=0;n<u;n++){if(a="",typeof arguments[n]=="object"){a+=`
7
- [`+n+"] ";for(i in arguments[0])w(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[n];r.push(a)}Rt(e+`
8
- Arguments: `+Array.prototype.slice.call(r).join("")+`
9
- `+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var Ot={};function Ft(e,t){o.deprecationHandler!=null&&o.deprecationHandler(e,t),Ot[e]||(Rt(t),Ot[e]=!0)}o.suppressDeprecationWarnings=!1;o.deprecationHandler=null;function H(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ps(e){var t,s;for(s in e)w(e,s)&&(t=e[s],H(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Je(e,t){var s=Q({},e),r;for(r in t)w(t,r)&&(se(e[r])&&se(t[r])?(s[r]={},Q(s[r],e[r]),Q(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)w(e,r)&&!w(t,r)&&se(e[r])&&(s[r]=Q({},s[r]));return s}function nt(e){e!=null&&this.set(e)}var Qe;Object.keys?Qe=Object.keys:Qe=function(e){var t,s=[];for(t in e)w(e,t)&&s.push(t);return s};var Os={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ts(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return H(r)?r.call(t,s):r}function U(e,t,s){var r=""+Math.abs(e),a=t-r.length,n=e>=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var it=/(\[[^\[]*\])|(\\)?([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,Ye=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$e={},le={};function h(e,t,s,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(le[e]=a),t&&(le[t[0]]=function(){return U(a.apply(this,arguments),t[1],t[2])}),s&&(le[s]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function xs(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function bs(e){var t=e.match(it),s,r;for(s=0,r=t.length;s<r;s++)le[t[s]]?t[s]=le[t[s]]:t[s]=xs(t[s]);return function(a){var n="",i;for(i=0;i<r;i++)n+=H(t[i])?t[i].call(a,e):t[i];return n}}function Oe(e,t){return e.isValid()?(t=Ct(t,e.localeData()),$e[t]=$e[t]||bs(t),$e[t](e)):e.localeData().invalidDate()}function Ct(e,t){var s=5;function r(a){return t.longDateFormat(a)||a}for(Ye.lastIndex=0;s>=0&&Ye.test(e);)e=e.replace(Ye,r),Ye.lastIndex=0,s-=1;return e}var Ns={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 Ws(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(it).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Ps="Invalid date";function Rs(){return this._invalidDate}var Fs="%d",Cs=/\d{1,2}/;function Ls(e){return this._ordinal.replace("%d",e)}var Us={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 Is(e,t,s,r){var a=this._relativeTime[s];return H(a)?a(e,t,s,r):a.replace(/%d/i,e)}function Hs(e,t){var s=this._relativeTime[e>0?"future":"past"];return H(s)?s(t):s.replace(/%s/i,t)}var Tt={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 W(e){return typeof e=="string"?Tt[e]||Tt[e.toLowerCase()]:void 0}function lt(e){var t={},s,r;for(r in e)w(e,r)&&(s=W(r),s&&(t[s]=e[r]));return t}var Es={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 As(e){var t=[],s;for(s in e)w(e,s)&&t.push({unit:s,priority:Es[s]});return t.sort(function(r,a){return r.priority-a.priority}),t}var Lt=/\d/,x=/\d\d/,Ut=/\d{3}/,ot=/\d{4}/,Ce=/[+-]?\d{6}/,g=/\d\d?/,It=/\d\d\d\d?/,Ht=/\d\d\d\d\d\d?/,Le=/\d{1,3}/,ut=/\d{1,4}/,Ue=/[+-]?\d{1,6}/,de=/\d+/,Ie=/[+-]?\d+/,Vs=/Z|[+-]\d\d:?\d\d/gi,He=/Z|[+-]\d\d(?::?\d\d)?/gi,Gs=/[+-]?\d+(\.\d{1,3})?/,De=/[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,he=/^[1-9]\d?/,dt=/^([1-9]\d|\d)/,be;be={};function d(e,t,s){be[e]=H(t)?t:function(r,a){return r&&s?s:t}}function zs(e,t){return w(be,e)?be[e](t._strict,t._locale):new RegExp(Zs(e))}function Zs(e){return Z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,a,n){return s||r||a||n}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=b(t)),s}var Xe={};function S(e,t){var s,r=t,a;for(typeof e=="string"&&(e=[e]),j(t)&&(r=function(n,i){i[t]=m(n)}),a=e.length,s=0;s<a;s++)Xe[e[s]]=r}function ve(e,t){S(e,function(s,r,a,n){a._w=a._w||{},t(s,a._w,a,n)})}function $s(e,t,s){t!=null&&w(Xe,e)&&Xe[e](t,s._a,s,e)}function Ee(e){return e%4===0&&e%100!==0||e%400===0}var p=0,G=1,L=2,Y=3,P=4,z=5,te=6,js=7,qs=8;h("Y",0,0,function(){var e=this.year();return e<=9999?U(e,4):"+"+e});h(0,["YY",2],0,function(){return this.year()%100});h(0,["YYYY",4],0,"year");h(0,["YYYYY",5],0,"year");h(0,["YYYYYY",6,!0],0,"year");d("Y",Ie);d("YY",g,x);d("YYYY",ut,ot);d("YYYYY",Ue,Ce);d("YYYYYY",Ue,Ce);S(["YYYYY","YYYYYY"],p);S("YYYY",function(e,t){t[p]=e.length===2?o.parseTwoDigitYear(e):m(e)});S("YY",function(e,t){t[p]=o.parseTwoDigitYear(e)});S("Y",function(e,t){t[p]=parseInt(e,10)});function _e(e){return Ee(e)?366:365}o.parseTwoDigitYear=function(e){return m(e)+(m(e)>68?1900:2e3)};var Et=fe("FullYear",!0);function Bs(){return Ee(this.year())}function fe(e,t){return function(s){return s!=null?(At(this,e,s),o.updateOffset(this,t),this):ye(this,e)}}function ye(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function At(e,t,s){var r,a,n,i,u;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(a?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(a?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(a?r.setUTCHours(s):r.setHours(s));case"Date":return void(a?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,i=e.month(),u=e.date(),u=u===29&&i===1&&!Ee(n)?28:u,a?r.setUTCFullYear(n,i,u):r.setFullYear(n,i,u)}}function Js(e){return e=W(e),H(this[e])?this[e]():this}function Qs(e,t){if(typeof e=="object"){e=lt(e);var s=As(e),r,a=s.length;for(r=0;r<a;r++)this[s[r].unit](e[s[r].unit])}else if(e=W(e),H(this[e]))return this[e](t);return this}function Xs(e,t){return(e%t+t)%t}var v;Array.prototype.indexOf?v=Array.prototype.indexOf:v=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ht(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=Xs(t,12);return e+=(t-s)/12,s===1?Ee(e)?29:28:31-s%7%2}h("M",["MM",2],"Mo",function(){return this.month()+1});h("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});h("MMMM",0,0,function(e){return this.localeData().months(this,e)});d("M",g,he);d("MM",g,x);d("MMM",function(e,t){return t.monthsShortRegex(e)});d("MMMM",function(e,t){return t.monthsRegex(e)});S(["M","MM"],function(e,t){t[G]=m(e)-1});S(["MMM","MMMM"],function(e,t,s,r){var a=s._locale.monthsParse(e,r,s._strict);a!=null?t[G]=a:c(s).invalidMonth=e});var Ks="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Vt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Gt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,er=De,tr=De;function sr(e,t){return e?R(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Gt).test(t)?"format":"standalone"][e.month()]:R(this._months)?this._months:this._months.standalone}function rr(e,t){return e?R(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Gt.test(t)?"format":"standalone"][e.month()]:R(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ar(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)n=I([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(n,"").toLocaleLowerCase();return s?t==="MMM"?(a=v.call(this._shortMonthsParse,i),a!==-1?a:null):(a=v.call(this._longMonthsParse,i),a!==-1?a:null):t==="MMM"?(a=v.call(this._shortMonthsParse,i),a!==-1?a:(a=v.call(this._longMonthsParse,i),a!==-1?a:null)):(a=v.call(this._longMonthsParse,i),a!==-1?a:(a=v.call(this._shortMonthsParse,i),a!==-1?a:null))}function nr(e,t,s){var r,a,n;if(this._monthsParseExact)return ar.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=I([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(n="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function zt(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=m(t);else if(t=e.localeData().monthsParse(t),!j(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,ht(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function Zt(e){return e!=null?(zt(this,e),o.updateOffset(this,!0),this):ye(this,"Month")}function ir(){return ht(this.year(),this.month())}function lr(e){return this._monthsParseExact?(w(this,"_monthsRegex")||$t.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=er),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function or(e){return this._monthsParseExact?(w(this,"_monthsRegex")||$t.call(this),e?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=tr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function $t(){function e(f,_){return _.length-f.length}var t=[],s=[],r=[],a,n,i,u;for(a=0;a<12;a++)n=I([2e3,a]),i=Z(this.monthsShort(n,"")),u=Z(this.months(n,"")),t.push(i),s.push(u),r.push(u),r.push(i);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ur(e,t,s,r,a,n,i){var u;return e<100&&e>=0?(u=new Date(e+400,t,s,r,a,n,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,s,r,a,n,i),u}function we(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ne(e,t,s){var r=7+t-s,a=(7+we(e,0,r).getUTCDay()-t)%7;return-a+r-1}function jt(e,t,s,r,a){var n=(7+s-r)%7,i=Ne(e,r,a),u=1+7*(t-1)+n+i,f,_;return u<=0?(f=e-1,_=_e(f)+u):u>_e(e)?(f=e+1,_=u-_e(e)):(f=e,_=u),{year:f,dayOfYear:_}}function Me(e,t,s){var r=Ne(e.year(),t,s),a=Math.floor((e.dayOfYear()-r-1)/7)+1,n,i;return a<1?(i=e.year()-1,n=a+$(i,t,s)):a>$(e.year(),t,s)?(n=a-$(e.year(),t,s),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function $(e,t,s){var r=Ne(e,t,s),a=Ne(e+1,t,s);return(_e(e)-r+a)/7}h("w",["ww",2],"wo","week");h("W",["WW",2],"Wo","isoWeek");d("w",g,he);d("ww",g,x);d("W",g,he);d("WW",g,x);ve(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=m(e)});function dr(e){return Me(e,this._week.dow,this._week.doy).week}var hr={dow:0,doy:6};function fr(){return this._week.dow}function cr(){return this._week.doy}function mr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function _r(e){var t=Me(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day");h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});h("e",0,0,"weekday");h("E",0,0,"isoWeekday");d("d",g);d("e",g);d("E",g);d("dd",function(e,t){return t.weekdaysMinRegex(e)});d("ddd",function(e,t){return t.weekdaysShortRegex(e)});d("dddd",function(e,t){return t.weekdaysRegex(e)});ve(["dd","ddd","dddd"],function(e,t,s,r){var a=s._locale.weekdaysParse(e,r,s._strict);a!=null?t.d=a:c(s).invalidWeekday=e});ve(["d","e","E"],function(e,t,s,r){t[r]=m(e)});function yr(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function wr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ft(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Mr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Sr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kr=De,gr=De,Dr=De;function vr(e,t){var s=R(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ft(s,this._week.dow):e?s[e.day()]:s}function Yr(e){return e===!0?ft(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function pr(e){return e===!0?ft(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Or(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=I([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(a=v.call(this._weekdaysParse,i),a!==-1?a:null):t==="ddd"?(a=v.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null):t==="dddd"?(a=v.call(this._weekdaysParse,i),a!==-1||(a=v.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null)):t==="ddd"?(a=v.call(this._shortWeekdaysParse,i),a!==-1||(a=v.call(this._weekdaysParse,i),a!==-1)?a:(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=v.call(this._minWeekdaysParse,i),a!==-1||(a=v.call(this._weekdaysParse,i),a!==-1)?a:(a=v.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function Tr(e,t,s){var r,a,n;if(this._weekdaysParseExact)return Or.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=I([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function xr(e){if(!this.isValid())return e!=null?this:NaN;var t=ye(this,"Day");return e!=null?(e=yr(e,this.localeData()),this.add(e-t,"d")):t}function br(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Nr(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=wr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Wr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ct.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=kr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Pr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ct.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=gr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Rr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ct.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Dr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ct(){function e(O,E){return E.length-O.length}var t=[],s=[],r=[],a=[],n,i,u,f,_;for(n=0;n<7;n++)i=I([2e3,1]).day(n),u=Z(this.weekdaysMin(i,"")),f=Z(this.weekdaysShort(i,"")),_=Z(this.weekdays(i,"")),t.push(u),s.push(f),r.push(_),a.push(u),a.push(f),a.push(_);t.sort(e),s.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function mt(){return this.hours()%12||12}function Fr(){return this.hours()||24}h("H",["HH",2],0,"hour");h("h",["hh",2],0,mt);h("k",["kk",2],0,Fr);h("hmm",0,0,function(){return""+mt.apply(this)+U(this.minutes(),2)});h("hmmss",0,0,function(){return""+mt.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)});h("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)});h("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)});function Bt(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Bt("a",!0);Bt("A",!1);function Jt(e,t){return t._meridiemParse}d("a",Jt);d("A",Jt);d("H",g,dt);d("h",g,he);d("k",g,he);d("HH",g,x);d("hh",g,x);d("kk",g,x);d("hmm",It);d("hmmss",Ht);d("Hmm",It);d("Hmmss",Ht);S(["H","HH"],Y);S(["k","kk"],function(e,t,s){var r=m(e);t[Y]=r===24?0:r});S(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e});S(["h","hh"],function(e,t,s){t[Y]=m(e),c(s).bigHour=!0});S("hmm",function(e,t,s){var r=e.length-2;t[Y]=m(e.substr(0,r)),t[P]=m(e.substr(r)),c(s).bigHour=!0});S("hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[Y]=m(e.substr(0,r)),t[P]=m(e.substr(r,2)),t[z]=m(e.substr(a)),c(s).bigHour=!0});S("Hmm",function(e,t,s){var r=e.length-2;t[Y]=m(e.substr(0,r)),t[P]=m(e.substr(r))});S("Hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[Y]=m(e.substr(0,r)),t[P]=m(e.substr(r,2)),t[z]=m(e.substr(a))});function Cr(e){return(e+"").toLowerCase().charAt(0)==="p"}var Lr=/[ap]\.?m?\.?/i,Ur=fe("Hours",!0);function Ir(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var Qt={calendar:Os,longDateFormat:Ns,invalidDate:Ps,ordinal:Fs,dayOfMonthOrdinalParse:Cs,relativeTime:Us,months:Ks,monthsShort:Vt,week:hr,weekdays:Mr,weekdaysMin:Sr,weekdaysShort:qt,meridiemParse:Lr},D={},ce={},Se;function Hr(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function xt(e){return e&&e.toLowerCase().replace("_","-")}function Er(e){for(var t=0,s,r,a,n;t<e.length;){for(n=xt(e[t]).split("-"),s=n.length,r=xt(e[t+1]),r=r?r.split("-"):null;s>0;){if(a=Ae(n.slice(0,s).join("-")),a)return a;if(r&&r.length>=s&&Hr(n,r)>=s-1)break;s--}t++}return Se}function Ar(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ae(e){var t=null,s;if(D[e]===void 0&&typeof module<"u"&&module&&module.exports&&Ar(e))try{t=Se._abbr,s=require,s("./locale/"+e),K(t)}catch{D[e]=null}return D[e]}function K(e,t){var s;return e&&(T(t)?s=q(e):s=_t(e,t),s?Se=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Se._abbr}function _t(e,t){if(t!==null){var s,r=Qt;if(t.abbr=e,D[e]!=null)Ft("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."),r=D[e]._config;else if(t.parentLocale!=null)if(D[t.parentLocale]!=null)r=D[t.parentLocale]._config;else if(s=Ae(t.parentLocale),s!=null)r=s._config;else return ce[t.parentLocale]||(ce[t.parentLocale]=[]),ce[t.parentLocale].push({name:e,config:t}),null;return D[e]=new nt(Je(r,t)),ce[e]&&ce[e].forEach(function(a){_t(a.name,a.config)}),K(e),D[e]}else return delete D[e],null}function Vr(e,t){if(t!=null){var s,r,a=Qt;D[e]!=null&&D[e].parentLocale!=null?D[e].set(Je(D[e]._config,t)):(r=Ae(e),r!=null&&(a=r._config),t=Je(a,t),r==null&&(t.abbr=e),s=new nt(t),s.parentLocale=D[e],D[e]=s),K(e)}else D[e]!=null&&(D[e].parentLocale!=null?(D[e]=D[e].parentLocale,e===K()&&K(e)):D[e]!=null&&delete D[e]);return D[e]}function q(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Se;if(!R(e)){if(t=Ae(e),t)return t;e=[e]}return Er(e)}function Gr(){return Qe(D)}function yt(e){var t,s=e._a;return s&&c(e).overflow===-2&&(t=s[G]<0||s[G]>11?G:s[L]<1||s[L]>ht(s[p],s[G])?L:s[Y]<0||s[Y]>24||s[Y]===24&&(s[P]!==0||s[z]!==0||s[te]!==0)?Y:s[P]<0||s[P]>59?P:s[z]<0||s[z]>59?z:s[te]<0||s[te]>999?te:-1,c(e)._overflowDayOfYear&&(t<p||t>L)&&(t=L),c(e)._overflowWeeks&&t===-1&&(t=js),c(e)._overflowWeekday&&t===-1&&(t=qs),c(e).overflow=t),e}var zr=/^\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)?)?$/,Zr=/^\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)?)?$/,$r=/Z|[+-]\d\d(?::?\d\d)?/,pe=[["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]],je=[["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/]],jr=/^\/?Date\((-?\d+)/i,qr=/^(?:(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}))$/,Br={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Xt(e){var t,s,r=e._i,a=zr.exec(r)||Zr.exec(r),n,i,u,f,_=pe.length,O=je.length;if(a){for(c(e).iso=!0,t=0,s=_;t<s;t++)if(pe[t][1].exec(a[1])){i=pe[t][0],n=pe[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(a[3]){for(t=0,s=O;t<s;t++)if(je[t][1].exec(a[3])){u=(a[2]||" ")+je[t][0];break}if(u==null){e._isValid=!1;return}}if(!n&&u!=null){e._isValid=!1;return}if(a[4])if($r.exec(a[4]))f="Z";else{e._isValid=!1;return}e._f=i+(u||"")+(f||""),Mt(e)}else e._isValid=!1}function Jr(e,t,s,r,a,n){var i=[Qr(e),Vt.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(a,10)];return n&&i.push(parseInt(n,10)),i}function Qr(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Xr(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Kr(e,t,s){if(e){var r=qt.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return c(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function ea(e,t,s){if(e)return Br[e];if(t)return 0;var r=parseInt(s,10),a=r%100,n=(r-a)/100;return n*60+a}function Kt(e){var t=qr.exec(Xr(e._i)),s;if(t){if(s=Jr(t[4],t[3],t[2],t[5],t[6],t[7]),!Kr(t[1],s,e))return;e._a=s,e._tzm=ea(t[8],t[9],t[10]),e._d=we.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),c(e).rfc2822=!0}else e._isValid=!1}function ta(e){var t=jr.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Xt(e),e._isValid===!1)delete e._isValid;else return;if(Kt(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:o.createFromInputFallback(e)}o.createFromInputFallback=N("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ne(e,t,s){return e??t??s}function sa(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wt(e){var t,s,r=[],a,n,i;if(!e._d){for(a=sa(e),e._w&&e._a[L]==null&&e._a[G]==null&&ra(e),e._dayOfYear!=null&&(i=ne(e._a[p],a[p]),(e._dayOfYear>_e(i)||e._dayOfYear===0)&&(c(e)._overflowDayOfYear=!0),s=we(i,0,e._dayOfYear),e._a[G]=s.getUTCMonth(),e._a[L]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Y]===24&&e._a[P]===0&&e._a[z]===0&&e._a[te]===0&&(e._nextDay=!0,e._a[Y]=0),e._d=(e._useUTC?we:ur).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Y]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(c(e).weekdayMismatch=!0)}}function ra(e){var t,s,r,a,n,i,u,f,_;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=ne(t.GG,e._a[p],Me(k(),1,4).year),r=ne(t.W,1),a=ne(t.E,1),(a<1||a>7)&&(f=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,_=Me(k(),n,i),s=ne(t.gg,e._a[p],_.year),r=ne(t.w,_.week),t.d!=null?(a=t.d,(a<0||a>6)&&(f=!0)):t.e!=null?(a=t.e+n,(t.e<0||t.e>6)&&(f=!0)):a=n),r<1||r>$(s,n,i)?c(e)._overflowWeeks=!0:f!=null?c(e)._overflowWeekday=!0:(u=jt(s,r,a,n,i),e._a[p]=u.year,e._dayOfYear=u.dayOfYear)}o.ISO_8601=function(){};o.RFC_2822=function(){};function Mt(e){if(e._f===o.ISO_8601){Xt(e);return}if(e._f===o.RFC_2822){Kt(e);return}e._a=[],c(e).empty=!0;var t=""+e._i,s,r,a,n,i,u=t.length,f=0,_,O;for(a=Ct(e._f,e._locale).match(it)||[],O=a.length,s=0;s<O;s++)n=a[s],r=(t.match(zs(n,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&c(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),f+=r.length),le[n]?(r?c(e).empty=!1:c(e).unusedTokens.push(n),$s(n,r,e)):e._strict&&!r&&c(e).unusedTokens.push(n);c(e).charsLeftOver=u-f,t.length>0&&c(e).unusedInput.push(t),e._a[Y]<=12&&c(e).bigHour===!0&&e._a[Y]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[Y]=aa(e._locale,e._a[Y],e._meridiem),_=c(e).era,_!==null&&(e._a[p]=e._locale.erasConvertYear(_,e._a[p])),wt(e),yt(e)}function aa(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function na(e){var t,s,r,a,n,i,u=!1,f=e._f.length;if(f===0){c(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<f;a++)n=0,i=!1,t=at({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Mt(t),rt(t)&&(i=!0),n+=c(t).charsLeftOver,n+=c(t).unusedTokens.length*10,c(t).score=n,u?n<r&&(r=n,s=t):(r==null||n<r||i)&&(r=n,s=t,i&&(u=!0));Q(e,s||t)}function ia(e){if(!e._d){var t=lt(e._i),s=t.day===void 0?t.date:t.day;e._a=Pt([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),wt(e)}}function la(e){var t=new ge(yt(es(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function es(e){var t=e._i,s=e._f;return e._locale=e._locale||q(e._l),t===null||s===void 0&&t===""?Fe({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),F(t)?new ge(yt(t)):(ke(t)?e._d=t:R(s)?na(e):s?Mt(e):oa(e),rt(e)||(e._d=null),e))}function oa(e){var t=e._i;T(t)?e._d=new Date(o.now()):ke(t)?e._d=new Date(t.valueOf()):typeof t=="string"?ta(e):R(t)?(e._a=Pt(t.slice(0),function(s){return parseInt(s,10)}),wt(e)):se(t)?ia(e):j(t)?e._d=new Date(t):o.createFromInputFallback(e)}function ts(e,t,s,r,a){var n={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(se(e)&&st(e)||R(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=a,n._l=s,n._i=e,n._f=t,n._strict=r,la(n)}function k(e,t,s,r){return ts(e,t,s,r,!1)}var ua=N("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Fe()}),da=N("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Fe()});function ss(e,t){var s,r;if(t.length===1&&R(t[0])&&(t=t[0]),!t.length)return k();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function ha(){var e=[].slice.call(arguments,0);return ss("isBefore",e)}function fa(){var e=[].slice.call(arguments,0);return ss("isAfter",e)}var ca=function(){return Date.now?Date.now():+new Date},me=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ma(e){var t,s=!1,r,a=me.length;for(t in e)if(w(e,t)&&!(v.call(me,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[me[r]]){if(s)return!1;parseFloat(e[me[r]])!==m(e[me[r]])&&(s=!0)}return!0}function _a(){return this._isValid}function ya(){return C(NaN)}function Ve(e){var t=lt(e),s=t.year||0,r=t.quarter||0,a=t.month||0,n=t.week||t.isoWeek||0,i=t.day||0,u=t.hour||0,f=t.minute||0,_=t.second||0,O=t.millisecond||0;this._isValid=ma(t),this._milliseconds=+O+_*1e3+f*6e4+u*1e3*60*60,this._days=+i+n*7,this._months=+a+r*3+s*12,this._data={},this._locale=q(),this._bubble()}function Te(e){return e instanceof Ve}function Ke(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function wa(e,t,s){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),n=0,i;for(i=0;i<r;i++)(s&&e[i]!==t[i]||!s&&m(e[i])!==m(t[i]))&&n++;return n+a}function rs(e,t){h(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+U(~~(s/60),2)+t+U(~~s%60,2)})}rs("Z",":");rs("ZZ","");d("Z",He);d("ZZ",He);S(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=St(He,e)});var Ma=/([\+\-]|\d\d)/gi;function St(e,t){var s=(t||"").match(e),r,a,n;return s===null?null:(r=s[s.length-1]||[],a=(r+"").match(Ma)||["-",0,0],n=+(a[1]*60)+m(a[2]),n===0?0:a[0]==="+"?n:-n)}function kt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(F(e)||ke(e)?e.valueOf():k(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),o.updateOffset(s,!1),s):k(e).local()}function et(e){return-Math.round(e._d.getTimezoneOffset())}o.updateOffset=function(){};function Sa(e,t,s){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=St(He,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(a=et(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?is(this,C(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:et(this)}function ka(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ga(e){return this.utcOffset(0,e)}function Da(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(et(this),"m")),this}function va(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=St(Vs,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ya(e){return this.isValid()?(e=e?k(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function pa(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Oa(){if(!T(this._isDSTShifted))return this._isDSTShifted;var e={},t;return at(e,this),e=es(e),e._a?(t=e._isUTC?I(e._a):k(e._a),this._isDSTShifted=this.isValid()&&wa(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ta(){return this.isValid()?!this._isUTC:!1}function xa(){return this.isValid()?this._isUTC:!1}function as(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ba=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Na=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C(e,t){var s=e,r=null,a,n,i;return Te(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:j(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=ba.exec(e))?(a=r[1]==="-"?-1:1,s={y:0,d:m(r[L])*a,h:m(r[Y])*a,m:m(r[P])*a,s:m(r[z])*a,ms:m(Ke(r[te]*1e3))*a}):(r=Na.exec(e))?(a=r[1]==="-"?-1:1,s={y:ee(r[2],a),M:ee(r[3],a),w:ee(r[4],a),d:ee(r[5],a),h:ee(r[6],a),m:ee(r[7],a),s:ee(r[8],a)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=Wa(k(s.from),k(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new Ve(s),Te(e)&&w(e,"_locale")&&(n._locale=e._locale),Te(e)&&w(e,"_isValid")&&(n._isValid=e._isValid),n}C.fn=Ve.prototype;C.invalid=ya;function ee(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function bt(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Wa(e,t){var s;return e.isValid()&&t.isValid()?(t=kt(t,e),e.isBefore(t)?s=bt(e,t):(s=bt(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function ns(e,t){return function(s,r){var a,n;return r!==null&&!isNaN(+r)&&(Ft(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=r,r=n),a=C(s,r),is(this,a,e),this}}function is(e,t,s,r){var a=t._milliseconds,n=Ke(t._days),i=Ke(t._months);e.isValid()&&(r=r??!0,i&&zt(e,ye(e,"Month")+i*s),n&&At(e,"Date",ye(e,"Date")+n*s),a&&e._d.setTime(e._d.valueOf()+a*s),r&&o.updateOffset(e,n||i))}var Pa=ns(1,"add"),Ra=ns(-1,"subtract");function ls(e){return typeof e=="string"||e instanceof String}function Fa(e){return F(e)||ke(e)||ls(e)||j(e)||La(e)||Ca(e)||e===null||e===void 0}function Ca(e){var t=se(e)&&!st(e),s=!1,r=["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,n,i=r.length;for(a=0;a<i;a+=1)n=r[a],s=s||w(e,n);return t&&s}function La(e){var t=R(e),s=!1;return t&&(s=e.filter(function(r){return!j(r)&&ls(e)}).length===0),t&&s}function Ua(e){var t=se(e)&&!st(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,n;for(a=0;a<r.length;a+=1)n=r[a],s=s||w(e,n);return t&&s}function Ia(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function Ha(e,t){arguments.length===1&&(arguments[0]?Fa(arguments[0])?(e=arguments[0],t=void 0):Ua(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||k(),r=kt(s,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",n=t&&(H(t[a])?t[a].call(this,s):t[a]);return this.format(n||this.localeData().calendar(a,this,k(s)))}function Ea(){return new ge(this)}function Aa(e,t){var s=F(e)?e:k(e);return this.isValid()&&s.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function Va(e,t){var s=F(e)?e:k(e);return this.isValid()&&s.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function Ga(e,t,s,r){var a=F(e)?e:k(e),n=F(t)?t:k(t);return this.isValid()&&a.isValid()&&n.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,s):!this.isBefore(a,s))&&(r[1]===")"?this.isBefore(n,s):!this.isAfter(n,s))):!1}function za(e,t){var s=F(e)?e:k(e),r;return this.isValid()&&s.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Za(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function $a(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ja(e,t,s){var r,a,n;if(!this.isValid())return NaN;if(r=kt(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=W(t),t){case"year":n=xe(this,r)/12;break;case"month":n=xe(this,r);break;case"quarter":n=xe(this,r)/3;break;case"second":n=(this-r)/1e3;break;case"minute":n=(this-r)/6e4;break;case"hour":n=(this-r)/36e5;break;case"day":n=(this-r-a)/864e5;break;case"week":n=(this-r-a)/6048e5;break;default:n=this-r}return s?n:b(n)}function xe(e,t){if(e.date()<t.date())return-xe(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),a,n;return t-r<0?(a=e.clone().add(s-1,"months"),n=(t-r)/(r-a)):(a=e.clone().add(s+1,"months"),n=(t-r)/(a-r)),-(s+n)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function qa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ba(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Oe(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):H(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Oe(s,"Z")):Oe(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ja(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,a,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+a+n)}function Qa(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=Oe(this,e);return this.localeData().postformat(t)}function Xa(e,t){return this.isValid()&&(F(e)&&e.isValid()||k(e).isValid())?C({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ka(e){return this.from(k(),e)}function en(e,t){return this.isValid()&&(F(e)&&e.isValid()||k(e).isValid())?C({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function tn(e){return this.to(k(),e)}function os(e){var t;return e===void 0?this._locale._abbr:(t=q(e),t!=null&&(this._locale=t),this)}var us=N("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function ds(){return this._locale}var We=1e3,oe=60*We,Pe=60*oe,hs=(365*400+97)*24*Pe;function ue(e,t){return(e%t+t)%t}function fs(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-hs:new Date(e,t,s).valueOf()}function cs(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-hs:Date.UTC(e,t,s)}function sn(e){var t,s;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?cs:fs,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ue(t+(this._isUTC?0:this.utcOffset()*oe),Pe);break;case"minute":t=this._d.valueOf(),t-=ue(t,oe);break;case"second":t=this._d.valueOf(),t-=ue(t,We);break}return this._d.setTime(t),o.updateOffset(this,!0),this}function rn(e){var t,s;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?cs:fs,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Pe-ue(t+(this._isUTC?0:this.utcOffset()*oe),Pe)-1;break;case"minute":t=this._d.valueOf(),t+=oe-ue(t,oe)-1;break;case"second":t=this._d.valueOf(),t+=We-ue(t,We)-1;break}return this._d.setTime(t),o.updateOffset(this,!0),this}function an(){return this._d.valueOf()-(this._offset||0)*6e4}function nn(){return Math.floor(this.valueOf()/1e3)}function ln(){return new Date(this.valueOf())}function on(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function un(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function dn(){return this.isValid()?this.toISOString():null}function hn(){return rt(this)}function fn(){return Q({},c(this))}function cn(){return c(this).overflow}function mn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr");h("NN",0,0,"eraAbbr");h("NNN",0,0,"eraAbbr");h("NNNN",0,0,"eraName");h("NNNNN",0,0,"eraNarrow");h("y",["y",1],"yo","eraYear");h("y",["yy",2],0,"eraYear");h("y",["yyy",3],0,"eraYear");h("y",["yyyy",4],0,"eraYear");d("N",gt);d("NN",gt);d("NNN",gt);d("NNNN",pn);d("NNNNN",On);S(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var a=s._locale.erasParse(e,r,s._strict);a?c(s).era=a:c(s).invalidEra=e});d("y",de);d("yy",de);d("yyy",de);d("yyyy",de);d("yo",Tn);S(["y","yy","yyy","yyyy"],p);S(["yo"],function(e,t,s,r){var a;s._locale._eraYearOrdinalRegex&&(a=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[p]=s._locale.eraYearOrdinalParse(e,a):t[p]=parseInt(e,10)});function _n(e,t){var s,r,a,n=this._eras||q("en")._eras;for(s=0,r=n.length;s<r;++s){switch(typeof n[s].since){case"string":a=o(n[s].since).startOf("day"),n[s].since=a.valueOf();break}switch(typeof n[s].until){case"undefined":n[s].until=1/0;break;case"string":a=o(n[s].until).startOf("day").valueOf(),n[s].until=a.valueOf();break}}return n}function yn(e,t,s){var r,a,n=this.eras(),i,u,f;for(e=e.toUpperCase(),r=0,a=n.length;r<a;++r)if(i=n[r].name.toUpperCase(),u=n[r].abbr.toUpperCase(),f=n[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(u===e)return n[r];break;case"NNNN":if(i===e)return n[r];break;case"NNNNN":if(f===e)return n[r];break}else if([i,u,f].indexOf(e)>=0)return n[r]}function wn(e,t){var s=e.since<=e.until?1:-1;return t===void 0?o(e.since).year():o(e.since).year()+(t-e.offset)*s}function Mn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function Sn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function kn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function gn(){var e,t,s,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(s=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-o(a[e].since).year())*s+a[e].offset;return this.year()}function Dn(e){return w(this,"_erasNameRegex")||Dt.call(this),e?this._erasNameRegex:this._erasRegex}function vn(e){return w(this,"_erasAbbrRegex")||Dt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Yn(e){return w(this,"_erasNarrowRegex")||Dt.call(this),e?this._erasNarrowRegex:this._erasRegex}function gt(e,t){return t.erasAbbrRegex(e)}function pn(e,t){return t.erasNameRegex(e)}function On(e,t){return t.erasNarrowRegex(e)}function Tn(e,t){return t._eraYearOrdinalRegex||de}function Dt(){var e=[],t=[],s=[],r=[],a,n,i,u,f,_=this.eras();for(a=0,n=_.length;a<n;++a)i=Z(_[a].name),u=Z(_[a].abbr),f=Z(_[a].narrow),t.push(i),e.push(u),s.push(f),r.push(i),r.push(u),r.push(f);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}h(0,["gg",2],0,function(){return this.weekYear()%100});h(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ge(e,t){h(0,[e,e.length],0,t)}Ge("gggg","weekYear");Ge("ggggg","weekYear");Ge("GGGG","isoWeekYear");Ge("GGGGG","isoWeekYear");d("G",Ie);d("g",Ie);d("GG",g,x);d("gg",g,x);d("GGGG",ut,ot);d("gggg",ut,ot);d("GGGGG",Ue,Ce);d("ggggg",Ue,Ce);ve(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=m(e)});ve(["gg","GG"],function(e,t,s,r){t[r]=o.parseTwoDigitYear(e)});function xn(e){return ms.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function bn(e){return ms.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Nn(){return $(this.year(),1,4)}function Wn(){return $(this.isoWeekYear(),1,4)}function Pn(){var e=this.localeData()._week;return $(this.year(),e.dow,e.doy)}function Rn(){var e=this.localeData()._week;return $(this.weekYear(),e.dow,e.doy)}function ms(e,t,s,r,a){var n;return e==null?Me(this,r,a).year:(n=$(e,r,a),t>n&&(t=n),Fn.call(this,e,t,s,r,a))}function Fn(e,t,s,r,a){var n=jt(e,t,s,r,a),i=we(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter");d("Q",Lt);S("Q",function(e,t){t[G]=(m(e)-1)*3});function Cn(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date");d("D",g,he);d("DD",g,x);d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});S(["D","DD"],L);S("Do",function(e,t){t[L]=m(e.match(g)[0])});var _s=fe("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear");d("DDD",Le);d("DDDD",Ut);S(["DDD","DDDD"],function(e,t,s){s._dayOfYear=m(e)});function Ln(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute");d("m",g,dt);d("mm",g,x);S(["m","mm"],P);var Un=fe("Minutes",!1);h("s",["ss",2],0,"second");d("s",g,dt);d("ss",g,x);S(["s","ss"],z);var In=fe("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)});h(0,["SS",2],0,function(){return~~(this.millisecond()/10)});h(0,["SSS",3],0,"millisecond");h(0,["SSSS",4],0,function(){return this.millisecond()*10});h(0,["SSSSS",5],0,function(){return this.millisecond()*100});h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});d("S",Le,Lt);d("SS",Le,x);d("SSS",Le,Ut);var X,ys;for(X="SSSS";X.length<=9;X+="S")d(X,de);function Hn(e,t){t[te]=m(("0."+e)*1e3)}for(X="S";X.length<=9;X+="S")S(X,Hn);ys=fe("Milliseconds",!1);h("z",0,0,"zoneAbbr");h("zz",0,0,"zoneName");function En(){return this._isUTC?"UTC":""}function An(){return this._isUTC?"Coordinated Universal Time":""}var l=ge.prototype;l.add=Pa;l.calendar=Ha;l.clone=Ea;l.diff=ja;l.endOf=rn;l.format=Qa;l.from=Xa;l.fromNow=Ka;l.to=en;l.toNow=tn;l.get=Js;l.invalidAt=cn;l.isAfter=Aa;l.isBefore=Va;l.isBetween=Ga;l.isSame=za;l.isSameOrAfter=Za;l.isSameOrBefore=$a;l.isValid=hn;l.lang=us;l.locale=os;l.localeData=ds;l.max=da;l.min=ua;l.parsingFlags=fn;l.set=Qs;l.startOf=sn;l.subtract=Ra;l.toArray=on;l.toObject=un;l.toDate=ln;l.toISOString=Ba;l.inspect=Ja;typeof Symbol<"u"&&Symbol.for!=null&&(l[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});l.toJSON=dn;l.toString=qa;l.unix=nn;l.valueOf=an;l.creationData=mn;l.eraName=Mn;l.eraNarrow=Sn;l.eraAbbr=kn;l.eraYear=gn;l.year=Et;l.isLeapYear=Bs;l.weekYear=xn;l.isoWeekYear=bn;l.quarter=l.quarters=Cn;l.month=Zt;l.daysInMonth=ir;l.week=l.weeks=mr;l.isoWeek=l.isoWeeks=_r;l.weeksInYear=Pn;l.weeksInWeekYear=Rn;l.isoWeeksInYear=Nn;l.isoWeeksInISOWeekYear=Wn;l.date=_s;l.day=l.days=xr;l.weekday=br;l.isoWeekday=Nr;l.dayOfYear=Ln;l.hour=l.hours=Ur;l.minute=l.minutes=Un;l.second=l.seconds=In;l.millisecond=l.milliseconds=ys;l.utcOffset=Sa;l.utc=ga;l.local=Da;l.parseZone=va;l.hasAlignedHourOffset=Ya;l.isDST=pa;l.isLocal=Ta;l.isUtcOffset=xa;l.isUtc=as;l.isUTC=as;l.zoneAbbr=En;l.zoneName=An;l.dates=N("dates accessor is deprecated. Use date instead.",_s);l.months=N("months accessor is deprecated. Use month instead",Zt);l.years=N("years accessor is deprecated. Use year instead",Et);l.zone=N("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ka);l.isDSTShifted=N("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Oa);function Vn(e){return k(e*1e3)}function Gn(){return k.apply(null,arguments).parseZone()}function ws(e){return e}var M=nt.prototype;M.calendar=Ts;M.longDateFormat=Ws;M.invalidDate=Rs;M.ordinal=Ls;M.preparse=ws;M.postformat=ws;M.relativeTime=Is;M.pastFuture=Hs;M.set=ps;M.eras=_n;M.erasParse=yn;M.erasConvertYear=wn;M.erasAbbrRegex=vn;M.erasNameRegex=Dn;M.erasNarrowRegex=Yn;M.months=sr;M.monthsShort=rr;M.monthsParse=nr;M.monthsRegex=or;M.monthsShortRegex=lr;M.week=dr;M.firstDayOfYear=cr;M.firstDayOfWeek=fr;M.weekdays=vr;M.weekdaysMin=pr;M.weekdaysShort=Yr;M.weekdaysParse=Tr;M.weekdaysRegex=Wr;M.weekdaysShortRegex=Pr;M.weekdaysMinRegex=Rr;M.isPM=Cr;M.meridiem=Ir;function Re(e,t,s,r){var a=q(),n=I().set(r,t);return a[s](n,e)}function Ms(e,t,s){if(j(e)&&(t=e,e=void 0),e=e||"",t!=null)return Re(e,t,s,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Re(e,r,s,"month");return a}function vt(e,t,s,r){typeof e=="boolean"?(j(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,j(t)&&(s=t,t=void 0),t=t||"");var a=q(),n=e?a._week.dow:0,i,u=[];if(s!=null)return Re(t,(s+n)%7,r,"day");for(i=0;i<7;i++)u[i]=Re(t,(i+n)%7,r,"day");return u}function zn(e,t){return Ms(e,t,"months")}function Zn(e,t){return Ms(e,t,"monthsShort")}function $n(e,t,s){return vt(e,t,s,"weekdays")}function jn(e,t,s){return vt(e,t,s,"weekdaysShort")}function qn(e,t,s){return vt(e,t,s,"weekdaysMin")}K("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(e){var t=e%10,s=m(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}});o.lang=N("moment.lang is deprecated. Use moment.locale instead.",K);o.langData=N("moment.langData is deprecated. Use moment.localeData instead.",q);var A=Math.abs;function Bn(){var e=this._data;return this._milliseconds=A(this._milliseconds),this._days=A(this._days),this._months=A(this._months),e.milliseconds=A(e.milliseconds),e.seconds=A(e.seconds),e.minutes=A(e.minutes),e.hours=A(e.hours),e.months=A(e.months),e.years=A(e.years),this}function Ss(e,t,s,r){var a=C(t,s);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Jn(e,t){return Ss(this,e,t,1)}function Qn(e,t){return Ss(this,e,t,-1)}function Nt(e){return e<0?Math.floor(e):Math.ceil(e)}function Xn(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,a,n,i,u,f;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=Nt(tt(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,a=b(e/1e3),r.seconds=a%60,n=b(a/60),r.minutes=n%60,i=b(n/60),r.hours=i%24,t+=b(i/24),f=b(ks(t)),s+=f,t-=Nt(tt(f)),u=b(s/12),s%=12,r.days=t,r.months=s,r.years=u,this}function ks(e){return e*4800/146097}function tt(e){return e*146097/4800}function Kn(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=W(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+ks(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(tt(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function B(e){return function(){return this.as(e)}}var gs=B("ms"),ei=B("s"),ti=B("m"),si=B("h"),ri=B("d"),ai=B("w"),ni=B("M"),ii=B("Q"),li=B("y"),oi=gs;function ui(){return C(this)}function di(e){return e=W(e),this.isValid()?this[e+"s"]():NaN}function re(e){return function(){return this.isValid()?this._data[e]:NaN}}var hi=re("milliseconds"),fi=re("seconds"),ci=re("minutes"),mi=re("hours"),_i=re("days"),yi=re("months"),wi=re("years");function Mi(){return b(this.days()/7)}var V=Math.round,ie={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Si(e,t,s,r,a){return a.relativeTime(t||1,!!s,e,r)}function ki(e,t,s,r){var a=C(e).abs(),n=V(a.as("s")),i=V(a.as("m")),u=V(a.as("h")),f=V(a.as("d")),_=V(a.as("M")),O=V(a.as("w")),E=V(a.as("y")),J=n<=s.ss&&["s",n]||n<s.s&&["ss",n]||i<=1&&["m"]||i<s.m&&["mm",i]||u<=1&&["h"]||u<s.h&&["hh",u]||f<=1&&["d"]||f<s.d&&["dd",f];return s.w!=null&&(J=J||O<=1&&["w"]||O<s.w&&["ww",O]),J=J||_<=1&&["M"]||_<s.M&&["MM",_]||E<=1&&["y"]||["yy",E],J[2]=t,J[3]=+e>0,J[4]=r,Si.apply(null,J)}function gi(e){return e===void 0?V:typeof e=="function"?(V=e,!0):!1}function Di(e,t){return ie[e]===void 0?!1:t===void 0?ie[e]:(ie[e]=t,e==="s"&&(ie.ss=t-1),!0)}function vi(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=ie,a,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},ie,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),n=ki(this,!s,r,a),s&&(n=a.pastFuture(+this,n)),a.postformat(n)}var qe=Math.abs;function ae(e){return(e>0)-(e<0)||+e}function ze(){if(!this.isValid())return this.localeData().invalidDate();var e=qe(this._milliseconds)/1e3,t=qe(this._days),s=qe(this._months),r,a,n,i,u=this.asSeconds(),f,_,O,E;return u?(r=b(e/60),a=b(r/60),e%=60,r%=60,n=b(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=u<0?"-":"",_=ae(this._months)!==ae(u)?"-":"",O=ae(this._days)!==ae(u)?"-":"",E=ae(this._milliseconds)!==ae(u)?"-":"",f+"P"+(n?_+n+"Y":"")+(s?_+s+"M":"")+(t?O+t+"D":"")+(a||r||e?"T":"")+(a?E+a+"H":"")+(r?E+r+"M":"")+(e?E+i+"S":"")):"P0D"}var y=Ve.prototype;y.isValid=_a;y.abs=Bn;y.add=Jn;y.subtract=Qn;y.as=Kn;y.asMilliseconds=gs;y.asSeconds=ei;y.asMinutes=ti;y.asHours=si;y.asDays=ri;y.asWeeks=ai;y.asMonths=ni;y.asQuarters=ii;y.asYears=li;y.valueOf=oi;y._bubble=Xn;y.clone=ui;y.get=di;y.milliseconds=hi;y.seconds=fi;y.minutes=ci;y.hours=mi;y.days=_i;y.weeks=Mi;y.months=yi;y.years=wi;y.humanize=vi;y.toISOString=ze;y.toString=ze;y.toJSON=ze;y.locale=os;y.localeData=ds;y.toIsoString=N("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ze);y.lang=us;h("X",0,0,"unix");h("x",0,0,"valueOf");d("x",Ie);d("X",Gs);S("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)});S("x",function(e,t,s){s._d=new Date(m(e))});//! moment.js
10
- o.version="2.30.1";vs(k);o.fn=l;o.min=ha;o.max=fa;o.now=ca;o.utc=I;o.unix=Vn;o.months=zn;o.isDate=ke;o.locale=K;o.invalid=Fe;o.duration=C;o.isMoment=F;o.weekdays=$n;o.parseZone=Gn;o.localeData=q;o.isDuration=Te;o.monthsShort=Zn;o.weekdaysMin=qn;o.defineLocale=_t;o.updateLocale=Vr;o.locales=Gr;o.weekdaysShort=jn;o.normalizeUnits=W;o.relativeTimeRounding=gi;o.relativeTimeThreshold=Di;o.calendarFormat=Ia;o.prototype=l;o.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"};function Ds(e,t,s){t&&Object.keys(t).forEach(r=>{if(e.hasOwnProperty(r)){if(!t[r]||t[r]instanceof File)return e[r]=t[r];if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(t[r])&&o(t[r],o.ISO_8601,!0).isValid())return e[r]=new Date(t[r]);if(typeof t[r]=="object"&&(s!=null&&s[r]))if(Array.isArray(t[r])){e[r]=[];for(let a=0;a<t[r].length;a++)e[r].push(new s[r](t[r][a]))}else e[r]=new s[r](t[r]);else e[r]=t[r]}})}function Yt(e,t){if(!(!e||!t))for(const s in t)t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&(typeof t[s]=="object"&&t[s]!==null?Yt(e[s],t[s]):e[s]=t[s])}const Yi=Object.freeze(Object.defineProperty({__proto__:null,copyAvailableFields:Yt,copyModelFields:Ds},Symbol.toStringTag,{value:"Module"}));exports.copyAvailableFields=Yt;exports.copyModelFields=Ds;exports.object=Yi;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./object-d8cc8ea7.cjs");exports.copyAvailableFields=e.copyAvailableFields;exports.copyModelFields=e.copyModelFields;
package/dist/object.es.js DELETED
@@ -1,5 +0,0 @@
1
- import { a as l, c as o } from "./object-7a404c78.js";
2
- export {
3
- l as copyAvailableFields,
4
- o as copyModelFields
5
- };
@@ -1,3 +0,0 @@
1
- "use strict";var Kt=Object.defineProperty;var qt=(e,t,r)=>t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ne=(e,t,r)=>(qt(e,typeof t!="symbol"?t+"":t,r),r);function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var F={},Be={exports:{}};const Yt={},zt=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"})),j=Jt(zt);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=j,n=r.Buffer;function s(c,l){for(var a in c)l[a]=c[a]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(s(r,t),t.Buffer=i);function i(c,l,a){return n(c,l,a)}i.prototype=Object.create(n.prototype),s(n,i),i.from=function(c,l,a){if(typeof c=="number")throw new TypeError("Argument must not be a number");return n(c,l,a)},i.alloc=function(c,l,a){if(typeof c!="number")throw new TypeError("Argument must be a number");var o=n(c);return l!==void 0?typeof a=="string"?o.fill(l,a):o.fill(l):o.fill(0),o},i.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return n(c)},i.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(c)}})(Be,Be.exports);var re=Be.exports,ue=re.Buffer,Zt=j,Qt=j;function ye(e){if(this.buffer=null,this.writable=!0,this.readable=!0,!e)return this.buffer=ue.alloc(0),this;if(typeof e.pipe=="function")return this.buffer=ue.alloc(0),e.pipe(this),this;if(e.length||typeof e=="object")return this.buffer=e,this.writable=!1,process.nextTick((function(){this.emit("end",e),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof e+")")}Qt.inherits(ye,Zt);ye.prototype.write=function(t){this.buffer=ue.concat([this.buffer,ue.from(t)]),this.emit("data",t)};ye.prototype.end=function(t){t&&this.write(t),this.emit("end",t),this.emit("close"),this.writable=!1,this.readable=!1};var Xr=ye,ee=j.Buffer,Ue=j.SlowBuffer,en=le;function le(e,t){if(!ee.isBuffer(e)||!ee.isBuffer(t)||e.length!==t.length)return!1;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return r===0}le.install=function(){ee.prototype.equal=Ue.prototype.equal=function(t){return le(this,t)}};var rn=ee.prototype.equal,tn=Ue.prototype.equal;le.restore=function(){ee.prototype.equal=rn,Ue.prototype.equal=tn};function Le(e){var t=(e/8|0)+(e%8===0?0:1);return t}var nn={ES256:Le(256),ES384:Le(384),ES512:Le(521)};function sn(e){var t=nn[e];if(t)return t;throw new Error('Unknown algorithm "'+e+'"')}var on=sn,he=re.Buffer,Kr=on,pe=128,qr=0,an=32,cn=16,fn=2,Wr=cn|an|qr<<6,me=fn|qr<<6;function un(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Jr(e){if(he.isBuffer(e))return e;if(typeof e=="string")return he.from(e,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function ln(e,t){e=Jr(e);var r=Kr(t),n=r+1,s=e.length,i=0;if(e[i++]!==Wr)throw new Error('Could not find expected "seq"');var c=e[i++];if(c===(pe|1)&&(c=e[i++]),s-i<c)throw new Error('"seq" specified length of "'+c+'", only "'+(s-i)+'" remaining');if(e[i++]!==me)throw new Error('Could not find expected "int" for "r"');var l=e[i++];if(s-i-2<l)throw new Error('"r" specified length of "'+l+'", only "'+(s-i-2)+'" available');if(n<l)throw new Error('"r" specified length of "'+l+'", max of "'+n+'" is acceptable');var a=i;if(i+=l,e[i++]!==me)throw new Error('Could not find expected "int" for "s"');var o=e[i++];if(s-i!==o)throw new Error('"s" specified length of "'+o+'", expected "'+(s-i)+'"');if(n<o)throw new Error('"s" specified length of "'+o+'", max of "'+n+'" is acceptable');var f=i;if(i+=o,i!==s)throw new Error('Expected to consume entire buffer, but "'+(s-i)+'" bytes remain');var u=r-l,w=r-o,m=he.allocUnsafe(u+l+w+o);for(i=0;i<u;++i)m[i]=0;e.copy(m,i,a+Math.max(-u,0),a+l),i=r;for(var h=i;i<h+w;++i)m[i]=0;return e.copy(m,i,f+Math.max(-w,0),f+o),m=m.toString("base64"),m=un(m),m}function sr(e,t,r){for(var n=0;t+n<r&&e[t+n]===0;)++n;var s=e[t+n]>=pe;return s&&--n,n}function hn(e,t){e=Jr(e);var r=Kr(t),n=e.length;if(n!==r*2)throw new TypeError('"'+t+'" signatures must be "'+r*2+'" bytes, saw "'+n+'"');var s=sr(e,0,r),i=sr(e,r,e.length),c=r-s,l=r-i,a=1+1+c+1+1+l,o=a<pe,f=he.allocUnsafe((o?2:3)+a),u=0;return f[u++]=Wr,o?f[u++]=a:(f[u++]=pe|1,f[u++]=a&255),f[u++]=me,f[u++]=c,s<0?(f[u++]=0,u+=e.copy(f,u,0,r)):u+=e.copy(f,u,s,r),f[u++]=me,f[u++]=l,i<0?(f[u++]=0,e.copy(f,u,r)):e.copy(f,u,r+i),f}var pn={derToJose:ln,joseToDer:hn},mn=en,X=re.Buffer,G=j,Yr=pn,ir=j,dn=`"%s" is not a valid algorithm.
2
- Supported algorithms are:
3
- "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,Q="secret must be a string or buffer",M="key must be a string or a buffer",En="key must be a string, a buffer or an object",He=typeof G.createPublicKey=="function";He&&(M+=" or a KeyObject",Q+="or a KeyObject");function zr(e){if(!X.isBuffer(e)&&typeof e!="string"&&(!He||typeof e!="object"||typeof e.type!="string"||typeof e.asymmetricKeyType!="string"||typeof e.export!="function"))throw x(M)}function Zr(e){if(!X.isBuffer(e)&&typeof e!="string"&&typeof e!="object")throw x(En)}function $n(e){if(!X.isBuffer(e)){if(typeof e=="string")return e;if(!He||typeof e!="object"||e.type!=="secret"||typeof e.export!="function")throw x(Q)}}function Me(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Qr(e){e=e.toString();var t=4-e.length%4;if(t!==4)for(var r=0;r<t;++r)e+="=";return e.replace(/\-/g,"+").replace(/_/g,"/")}function x(e){var t=[].slice.call(arguments,1),r=ir.format.bind(ir,e).apply(null,t);return new TypeError(r)}function yn(e){return X.isBuffer(e)||typeof e=="string"}function te(e){return yn(e)||(e=JSON.stringify(e)),e}function et(e){return function(r,n){$n(n),r=te(r);var s=G.createHmac("sha"+e,n),i=(s.update(r),s.digest("base64"));return Me(i)}}function gn(e){return function(r,n,s){var i=et(e)(r,s);return mn(X.from(n),X.from(i))}}function rt(e){return function(r,n){Zr(n),r=te(r);var s=G.createSign("RSA-SHA"+e),i=(s.update(r),s.sign(n,"base64"));return Me(i)}}function tt(e){return function(r,n,s){zr(s),r=te(r),n=Qr(n);var i=G.createVerify("RSA-SHA"+e);return i.update(r),i.verify(s,n,"base64")}}function Sn(e){return function(r,n){Zr(n),r=te(r);var s=G.createSign("RSA-SHA"+e),i=(s.update(r),s.sign({key:n,padding:G.constants.RSA_PKCS1_PSS_PADDING,saltLength:G.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return Me(i)}}function vn(e){return function(r,n,s){zr(s),r=te(r),n=Qr(n);var i=G.createVerify("RSA-SHA"+e);return i.update(r),i.verify({key:s,padding:G.constants.RSA_PKCS1_PSS_PADDING,saltLength:G.constants.RSA_PSS_SALTLEN_DIGEST},n,"base64")}}function wn(e){var t=rt(e);return function(){var n=t.apply(null,arguments);return n=Yr.derToJose(n,"ES"+e),n}}function bn(e){var t=tt(e);return function(n,s,i){s=Yr.joseToDer(s,"ES"+e).toString("base64");var c=t(n,s,i);return c}}function In(){return function(){return""}}function Rn(){return function(t,r){return r===""}}var nt=function(t){var r={hs:et,rs:rt,ps:Sn,es:wn,none:In},n={hs:gn,rs:tt,ps:vn,es:bn,none:Rn},s=t.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);if(!s)throw x(dn,t);var i=(s[1]||s[3]).toLowerCase(),c=s[2];return{sign:r[i](c),verify:n[i](c)}},Tn=j.Buffer,st=function(t){return typeof t=="string"?t:typeof t=="number"||Tn.isBuffer(t)?t.toString():JSON.stringify(t)},An=re.Buffer,or=Xr,On=nt,Nn=j,ar=st,Xe=j;function cr(e,t){return An.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Ln(e,t,r){r=r||"utf8";var n=cr(ar(e),"binary"),s=cr(ar(t),r);return Xe.format("%s.%s",n,s)}function it(e){var t=e.header,r=e.payload,n=e.secret||e.privateKey,s=e.encoding,i=On(t.alg),c=Ln(t,r,s),l=i.sign(c,n);return Xe.format("%s.%s",c,l)}function ge(e){var t=e.secret||e.privateKey||e.key,r=new or(t);this.readable=!0,this.header=e.header,this.encoding=e.encoding,this.secret=this.privateKey=this.key=r,this.payload=new or(e.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}Xe.inherits(ge,Nn);ge.prototype.sign=function(){try{var t=it({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",t),this.emit("data",t),this.emit("end"),this.readable=!1,t}catch(r){this.readable=!1,this.emit("error",r),this.emit("close")}};ge.sign=it;var jn=ge,ot=re.Buffer,fr=Xr,Pn=nt,_n=j,at=st,xn=j,Dn=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function Cn(e){return Object.prototype.toString.call(e)==="[object Object]"}function Bn(e){if(Cn(e))return e;try{return JSON.parse(e)}catch{return}}function ct(e){var t=e.split(".",1)[0];return Bn(ot.from(t,"base64").toString("binary"))}function Gn(e){return e.split(".",2).join(".")}function ft(e){return e.split(".")[2]}function Fn(e,t){t=t||"utf8";var r=e.split(".")[1];return ot.from(r,"base64").toString(t)}function ut(e){return Dn.test(e)&&!!ct(e)}function lt(e,t,r){if(!t){var n=new Error("Missing algorithm parameter for jws.verify");throw n.code="MISSING_ALGORITHM",n}e=at(e);var s=ft(e),i=Gn(e),c=Pn(t);return c.verify(i,s,r)}function ht(e,t){if(t=t||{},e=at(e),!ut(e))return null;var r=ct(e);if(!r)return null;var n=Fn(e);return(r.typ==="JWT"||t.json)&&(n=JSON.parse(n,t.encoding)),{header:r,payload:n,signature:ft(e)}}function J(e){e=e||{};var t=e.secret||e.publicKey||e.key,r=new fr(t);this.readable=!0,this.algorithm=e.algorithm,this.encoding=e.encoding,this.secret=this.publicKey=this.key=r,this.signature=new fr(e.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}xn.inherits(J,_n);J.prototype.verify=function(){try{var t=lt(this.signature.buffer,this.algorithm,this.key.buffer),r=ht(this.signature.buffer,this.encoding);return this.emit("done",t,r),this.emit("data",t),this.emit("end"),this.readable=!1,t}catch(n){this.readable=!1,this.emit("error",n),this.emit("close")}};J.decode=ht;J.isValid=ut;J.verify=lt;var Vn=J,pt=jn,Se=Vn,kn=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];F.ALGORITHMS=kn;F.sign=pt.sign;F.verify=Se.verify;F.decode=Se.decode;F.isValid=Se.isValid;F.createSign=function(t){return new pt(t)};F.createVerify=function(t){return new Se(t)};var Un=F,mt=function(e,t){t=t||{};var r=Un.decode(e,t);if(!r)return null;var n=r.payload;if(typeof n=="string")try{var s=JSON.parse(n);s!==null&&typeof s=="object"&&(n=s)}catch{}return t.complete===!0?{header:r.header,payload:n,signature:r.signature}:n},de=function(e,t){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=e,t&&(this.inner=t)};de.prototype=Object.create(Error.prototype);de.prototype.constructor=de;var ve=de,dt=ve,Ee=function(e,t){dt.call(this,e),this.name="NotBeforeError",this.date=t};Ee.prototype=Object.create(dt.prototype);Ee.prototype.constructor=Ee;var Et=Ee,$t=ve,$e=function(e,t){$t.call(this,e),this.name="TokenExpiredError",this.expiredAt=t};$e.prototype=Object.create($t.prototype);$e.prototype.constructor=$e;var yt=$e,K=1e3,q=K*60,W=q*60,U=W*24,Hn=U*7,Mn=U*365.25,Xn=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Kn(e);if(r==="number"&&isFinite(e))return t.long?Wn(e):qn(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Kn(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Mn;case"weeks":case"week":case"w":return r*Hn;case"days":case"day":case"d":return r*U;case"hours":case"hour":case"hrs":case"hr":case"h":return r*W;case"minutes":case"minute":case"mins":case"min":case"m":return r*q;case"seconds":case"second":case"secs":case"sec":case"s":return r*K;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function qn(e){var t=Math.abs(e);return t>=U?Math.round(e/U)+"d":t>=W?Math.round(e/W)+"h":t>=q?Math.round(e/q)+"m":t>=K?Math.round(e/K)+"s":e+"ms"}function Wn(e){var t=Math.abs(e);return t>=U?se(e,t,U,"day"):t>=W?se(e,t,W,"hour"):t>=q?se(e,t,q,"minute"):t>=K?se(e,t,K,"second"):e+" ms"}function se(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}var Jn=Xn,gt=function(e,t){var r=t||Math.floor(Date.now()/1e3);if(typeof e=="string"){var n=Jn(e);return typeof n>"u"?void 0:Math.floor(r+n/1e3)}else return typeof e=="number"?r+e:void 0},Ge={exports:{}};const Yn="2.0.0",St=256,zn=Number.MAX_SAFE_INTEGER||9007199254740991,Zn=16,Qn=St-6,es=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var we={MAX_LENGTH:St,MAX_SAFE_COMPONENT_LENGTH:Zn,MAX_SAFE_BUILD_LENGTH:Qn,MAX_SAFE_INTEGER:zn,RELEASE_TYPES:es,SEMVER_SPEC_VERSION:Yn,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const rs=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var be=rs;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:s}=we,i=be;t=e.exports={};const c=t.re=[],l=t.safeRe=[],a=t.src=[],o=t.t={};let f=0;const u="[a-zA-Z0-9-]",w=[["\\s",1],["\\d",s],[u,n]],m=R=>{for(const[L,V]of w)R=R.split(`${L}*`).join(`${L}{0,${V}}`).split(`${L}+`).join(`${L}{1,${V}}`);return R},h=(R,L,V)=>{const A=m(L),_=f++;i(R,_,L),o[R]=_,a[_]=L,c[_]=new RegExp(L,V?"g":void 0),l[_]=new RegExp(A,V?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${u}*`),h("MAINVERSION",`(${a[o.NUMERICIDENTIFIER]})\\.(${a[o.NUMERICIDENTIFIER]})\\.(${a[o.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${a[o.NUMERICIDENTIFIERLOOSE]})\\.(${a[o.NUMERICIDENTIFIERLOOSE]})\\.(${a[o.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${a[o.NUMERICIDENTIFIER]}|${a[o.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${a[o.NUMERICIDENTIFIERLOOSE]}|${a[o.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${a[o.PRERELEASEIDENTIFIER]}(?:\\.${a[o.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${a[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[o.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${u}+`),h("BUILD",`(?:\\+(${a[o.BUILDIDENTIFIER]}(?:\\.${a[o.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${a[o.MAINVERSION]}${a[o.PRERELEASE]}?${a[o.BUILD]}?`),h("FULL",`^${a[o.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${a[o.MAINVERSIONLOOSE]}${a[o.PRERELEASELOOSE]}?${a[o.BUILD]}?`),h("LOOSE",`^${a[o.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${a[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${a[o.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${a[o.XRANGEIDENTIFIER]})(?:\\.(${a[o.XRANGEIDENTIFIER]})(?:\\.(${a[o.XRANGEIDENTIFIER]})(?:${a[o.PRERELEASE]})?${a[o.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${a[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[o.XRANGEIDENTIFIERLOOSE]})(?:${a[o.PRERELEASELOOSE]})?${a[o.BUILD]}?)?)?`),h("XRANGE",`^${a[o.GTLT]}\\s*${a[o.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${a[o.GTLT]}\\s*${a[o.XRANGEPLAINLOOSE]}$`),h("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),h("COERCE",`${a[o.COERCEPLAIN]}(?:$|[^\\d])`),h("COERCEFULL",a[o.COERCEPLAIN]+`(?:${a[o.PRERELEASE]})?(?:${a[o.BUILD]})?(?:$|[^\\d])`),h("COERCERTL",a[o.COERCE],!0),h("COERCERTLFULL",a[o.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${a[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${a[o.LONETILDE]}${a[o.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${a[o.LONETILDE]}${a[o.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${a[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${a[o.LONECARET]}${a[o.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${a[o.LONECARET]}${a[o.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${a[o.GTLT]}\\s*(${a[o.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${a[o.GTLT]}\\s*(${a[o.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${a[o.GTLT]}\\s*(${a[o.LOOSEPLAIN]}|${a[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${a[o.XRANGEPLAIN]})\\s+-\\s+(${a[o.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${a[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[o.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ge,Ge.exports);var ne=Ge.exports;const ts=Object.freeze({loose:!0}),ns=Object.freeze({}),ss=e=>e?typeof e!="object"?ts:e:ns;var Ke=ss;const ur=/^[0-9]+$/,vt=(e,t)=>{const r=ur.test(e),n=ur.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},is=(e,t)=>vt(t,e);var wt={compareIdentifiers:vt,rcompareIdentifiers:is};const ie=be,{MAX_LENGTH:lr,MAX_SAFE_INTEGER:oe}=we,{safeRe:hr,t:pr}=ne,os=Ke,{compareIdentifiers:H}=wt;let as=class B{constructor(t,r){if(r=os(r),t instanceof B){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>lr)throw new TypeError(`version is longer than ${lr} characters`);ie("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?hr[pr.LOOSE]:hr[pr.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>oe||this.major<0)throw new TypeError("Invalid major version");if(this.minor>oe||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>oe||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){const i=+s;if(i>=0&&i<oe)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(ie("SemVer.compare",this.version,this.options,t),!(t instanceof B)){if(typeof t=="string"&&t===this.version)return 0;t=new B(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof B||(t=new B(t,this.options)),H(this.major,t.major)||H(this.minor,t.minor)||H(this.patch,t.patch)}comparePre(t){if(t instanceof B||(t=new B(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],s=t.prerelease[r];if(ie("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return H(n,s)}while(++r)}compareBuild(t){t instanceof B||(t=new B(t,this.options));let r=0;do{const n=this.build[r],s=t.build[r];if(ie("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return H(n,s)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const s=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let i=[r,s];n===!1&&(i=[r]),H(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var N=as;const mr=N,cs=(e,t,r=!1)=>{if(e instanceof mr)return e;try{return new mr(e,t)}catch(n){if(!r)return null;throw n}};var Y=cs;const fs=Y,us=(e,t)=>{const r=fs(e,t);return r?r.version:null};var ls=us;const hs=Y,ps=(e,t)=>{const r=hs(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var ms=ps;const dr=N,ds=(e,t,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new dr(e instanceof dr?e.version:e,r).inc(t,n,s).version}catch{return null}};var Es=ds;const Er=Y,$s=(e,t)=>{const r=Er(e,null,!0),n=Er(t,null,!0),s=r.compare(n);if(s===0)return null;const i=s>0,c=i?r:n,l=i?n:r,a=!!c.prerelease.length;if(!!l.prerelease.length&&!a)return!l.patch&&!l.minor?"major":c.patch?"patch":c.minor?"minor":"major";const f=a?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};var ys=$s;const gs=N,Ss=(e,t)=>new gs(e,t).major;var vs=Ss;const ws=N,bs=(e,t)=>new ws(e,t).minor;var Is=bs;const Rs=N,Ts=(e,t)=>new Rs(e,t).patch;var As=Ts;const Os=Y,Ns=(e,t)=>{const r=Os(e,t);return r&&r.prerelease.length?r.prerelease:null};var Ls=Ns;const $r=N,js=(e,t,r)=>new $r(e,r).compare(new $r(t,r));var D=js;const Ps=D,_s=(e,t,r)=>Ps(t,e,r);var xs=_s;const Ds=D,Cs=(e,t)=>Ds(e,t,!0);var Bs=Cs;const yr=N,Gs=(e,t,r)=>{const n=new yr(e,r),s=new yr(t,r);return n.compare(s)||n.compareBuild(s)};var qe=Gs;const Fs=qe,Vs=(e,t)=>e.sort((r,n)=>Fs(r,n,t));var ks=Vs;const Us=qe,Hs=(e,t)=>e.sort((r,n)=>Us(n,r,t));var Ms=Hs;const Xs=D,Ks=(e,t,r)=>Xs(e,t,r)>0;var Ie=Ks;const qs=D,Ws=(e,t,r)=>qs(e,t,r)<0;var We=Ws;const Js=D,Ys=(e,t,r)=>Js(e,t,r)===0;var bt=Ys;const zs=D,Zs=(e,t,r)=>zs(e,t,r)!==0;var It=Zs;const Qs=D,ei=(e,t,r)=>Qs(e,t,r)>=0;var Je=ei;const ri=D,ti=(e,t,r)=>ri(e,t,r)<=0;var Ye=ti;const ni=bt,si=It,ii=Ie,oi=Je,ai=We,ci=Ye,fi=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return ni(e,r,n);case"!=":return si(e,r,n);case">":return ii(e,r,n);case">=":return oi(e,r,n);case"<":return ai(e,r,n);case"<=":return ci(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var Rt=fi;const ui=N,li=Y,{safeRe:ae,t:ce}=ne,hi=(e,t)=>{if(e instanceof ui)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?ae[ce.COERCEFULL]:ae[ce.COERCE]);else{const a=t.includePrerelease?ae[ce.COERCERTLFULL]:ae[ce.COERCERTL];let o;for(;(o=a.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||o.index+o[0].length!==r.index+r[0].length)&&(r=o),a.lastIndex=o.index+o[1].length+o[2].length;a.lastIndex=-1}if(r===null)return null;const n=r[2],s=r[3]||"0",i=r[4]||"0",c=t.includePrerelease&&r[5]?`-${r[5]}`:"",l=t.includePrerelease&&r[6]?`+${r[6]}`:"";return li(`${n}.${s}.${i}${c}${l}`,t)};var pi=hi;class mi{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const s=this.map.keys().next().value;this.delete(s)}this.map.set(t,r)}return this}}var di=mi,je,gr;function C(){if(gr)return je;gr=1;class e{constructor(p,g){if(g=n(g),p instanceof e)return p.loose===!!g.loose&&p.includePrerelease===!!g.includePrerelease?p:new e(p.raw,g);if(p instanceof s)return this.raw=p.value,this.set=[[p]],this.format(),this;if(this.options=g,this.loose=!!g.loose,this.includePrerelease=!!g.includePrerelease,this.raw=p.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map($=>this.parseRange($.trim())).filter($=>$.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const $=this.set[0];if(this.set=this.set.filter(y=>!h(y[0])),this.set.length===0)this.set=[$];else if(this.set.length>1){for(const y of this.set)if(y.length===1&&R(y[0])){this.set=[y];break}}}this.format()}format(){return this.range=this.set.map(p=>p.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(p){const $=((this.options.includePrerelease&&w)|(this.options.loose&&m))+":"+p,y=r.get($);if(y)return y;const E=this.options.loose,S=E?l[a.HYPHENRANGELOOSE]:l[a.HYPHENRANGE];p=p.replace(S,Mt(this.options.includePrerelease)),i("hyphen replace",p),p=p.replace(l[a.COMPARATORTRIM],o),i("comparator trim",p),p=p.replace(l[a.TILDETRIM],f),i("tilde trim",p),p=p.replace(l[a.CARETTRIM],u),i("caret trim",p);let b=p.split(" ").map(O=>V(O,this.options)).join(" ").split(/\s+/).map(O=>Ht(O,this.options));E&&(b=b.filter(O=>(i("loose invalid filter",O,this.options),!!O.match(l[a.COMPARATORLOOSE])))),i("range list",b);const v=new Map,T=b.map(O=>new s(O,this.options));for(const O of T){if(h(O))return[O];v.set(O.value,O)}v.size>1&&v.has("")&&v.delete("");const P=[...v.values()];return r.set($,P),P}intersects(p,g){if(!(p instanceof e))throw new TypeError("a Range is required");return this.set.some($=>L($,g)&&p.set.some(y=>L(y,g)&&$.every(E=>y.every(S=>E.intersects(S,g)))))}test(p){if(!p)return!1;if(typeof p=="string")try{p=new c(p,this.options)}catch{return!1}for(let g=0;g<this.set.length;g++)if(Xt(this.set[g],p,this.options))return!0;return!1}}je=e;const t=di,r=new t,n=Ke,s=Re(),i=be,c=N,{safeRe:l,t:a,comparatorTrimReplace:o,tildeTrimReplace:f,caretTrimReplace:u}=ne,{FLAG_INCLUDE_PRERELEASE:w,FLAG_LOOSE:m}=we,h=d=>d.value==="<0.0.0-0",R=d=>d.value==="",L=(d,p)=>{let g=!0;const $=d.slice();let y=$.pop();for(;g&&$.length;)g=$.every(E=>y.intersects(E,p)),y=$.pop();return g},V=(d,p)=>(i("comp",d,p),d=Gt(d,p),i("caret",d),d=_(d,p),i("tildes",d),d=Vt(d,p),i("xrange",d),d=Ut(d,p),i("stars",d),d),A=d=>!d||d.toLowerCase()==="x"||d==="*",_=(d,p)=>d.trim().split(/\s+/).map(g=>Bt(g,p)).join(" "),Bt=(d,p)=>{const g=p.loose?l[a.TILDELOOSE]:l[a.TILDE];return d.replace(g,($,y,E,S,b)=>{i("tilde",d,$,y,E,S,b);let v;return A(y)?v="":A(E)?v=`>=${y}.0.0 <${+y+1}.0.0-0`:A(S)?v=`>=${y}.${E}.0 <${y}.${+E+1}.0-0`:b?(i("replaceTilde pr",b),v=`>=${y}.${E}.${S}-${b} <${y}.${+E+1}.0-0`):v=`>=${y}.${E}.${S} <${y}.${+E+1}.0-0`,i("tilde return",v),v})},Gt=(d,p)=>d.trim().split(/\s+/).map(g=>Ft(g,p)).join(" "),Ft=(d,p)=>{i("caret",d,p);const g=p.loose?l[a.CARETLOOSE]:l[a.CARET],$=p.includePrerelease?"-0":"";return d.replace(g,(y,E,S,b,v)=>{i("caret",d,y,E,S,b,v);let T;return A(E)?T="":A(S)?T=`>=${E}.0.0${$} <${+E+1}.0.0-0`:A(b)?E==="0"?T=`>=${E}.${S}.0${$} <${E}.${+S+1}.0-0`:T=`>=${E}.${S}.0${$} <${+E+1}.0.0-0`:v?(i("replaceCaret pr",v),E==="0"?S==="0"?T=`>=${E}.${S}.${b}-${v} <${E}.${S}.${+b+1}-0`:T=`>=${E}.${S}.${b}-${v} <${E}.${+S+1}.0-0`:T=`>=${E}.${S}.${b}-${v} <${+E+1}.0.0-0`):(i("no pr"),E==="0"?S==="0"?T=`>=${E}.${S}.${b}${$} <${E}.${S}.${+b+1}-0`:T=`>=${E}.${S}.${b}${$} <${E}.${+S+1}.0-0`:T=`>=${E}.${S}.${b} <${+E+1}.0.0-0`),i("caret return",T),T})},Vt=(d,p)=>(i("replaceXRanges",d,p),d.split(/\s+/).map(g=>kt(g,p)).join(" ")),kt=(d,p)=>{d=d.trim();const g=p.loose?l[a.XRANGELOOSE]:l[a.XRANGE];return d.replace(g,($,y,E,S,b,v)=>{i("xRange",d,$,y,E,S,b,v);const T=A(E),P=T||A(S),O=P||A(b),z=O;return y==="="&&z&&(y=""),v=p.includePrerelease?"-0":"",T?y===">"||y==="<"?$="<0.0.0-0":$="*":y&&z?(P&&(S=0),b=0,y===">"?(y=">=",P?(E=+E+1,S=0,b=0):(S=+S+1,b=0)):y==="<="&&(y="<",P?E=+E+1:S=+S+1),y==="<"&&(v="-0"),$=`${y+E}.${S}.${b}${v}`):P?$=`>=${E}.0.0${v} <${+E+1}.0.0-0`:O&&($=`>=${E}.${S}.0${v} <${E}.${+S+1}.0-0`),i("xRange return",$),$})},Ut=(d,p)=>(i("replaceStars",d,p),d.trim().replace(l[a.STAR],"")),Ht=(d,p)=>(i("replaceGTE0",d,p),d.trim().replace(l[p.includePrerelease?a.GTE0PRE:a.GTE0],"")),Mt=d=>(p,g,$,y,E,S,b,v,T,P,O,z)=>(A($)?g="":A(y)?g=`>=${$}.0.0${d?"-0":""}`:A(E)?g=`>=${$}.${y}.0${d?"-0":""}`:S?g=`>=${g}`:g=`>=${g}${d?"-0":""}`,A(T)?v="":A(P)?v=`<${+T+1}.0.0-0`:A(O)?v=`<${T}.${+P+1}.0-0`:z?v=`<=${T}.${P}.${O}-${z}`:d?v=`<${T}.${P}.${+O+1}-0`:v=`<=${v}`,`${g} ${v}`.trim()),Xt=(d,p,g)=>{for(let $=0;$<d.length;$++)if(!d[$].test(p))return!1;if(p.prerelease.length&&!g.includePrerelease){for(let $=0;$<d.length;$++)if(i(d[$].semver),d[$].semver!==s.ANY&&d[$].semver.prerelease.length>0){const y=d[$].semver;if(y.major===p.major&&y.minor===p.minor&&y.patch===p.patch)return!0}return!1}return!0};return je}var Pe,Sr;function Re(){if(Sr)return Pe;Sr=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(f,u){if(u=r(u),f instanceof t){if(f.loose===!!u.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),c("comparator",f,u),this.options=u,this.loose=!!u.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(f){const u=this.options.loose?n[s.COMPARATORLOOSE]:n[s.COMPARATOR],w=f.match(u);if(!w)throw new TypeError(`Invalid comparator: ${f}`);this.operator=w[1]!==void 0?w[1]:"",this.operator==="="&&(this.operator=""),w[2]?this.semver=new l(w[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(c("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new l(f,this.options)}catch{return!1}return i(f,this.operator,this.semver,this.options)}intersects(f,u){if(!(f instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new a(f.value,u).test(this.value):f.operator===""?f.value===""?!0:new a(this.value,u).test(f.semver):(u=r(u),u.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!u.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||i(this.semver,"<",f.semver,u)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||i(this.semver,">",f.semver,u)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}Pe=t;const r=Ke,{safeRe:n,t:s}=ne,i=Rt,c=be,l=N,a=C();return Pe}const Ei=C(),$i=(e,t,r)=>{try{t=new Ei(t,r)}catch{return!1}return t.test(e)};var Te=$i;const yi=C(),gi=(e,t)=>new yi(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var Si=gi;const vi=N,wi=C(),bi=(e,t,r)=>{let n=null,s=null,i=null;try{i=new wi(t,r)}catch{return null}return e.forEach(c=>{i.test(c)&&(!n||s.compare(c)===-1)&&(n=c,s=new vi(n,r))}),n};var Ii=bi;const Ri=N,Ti=C(),Ai=(e,t,r)=>{let n=null,s=null,i=null;try{i=new Ti(t,r)}catch{return null}return e.forEach(c=>{i.test(c)&&(!n||s.compare(c)===1)&&(n=c,s=new Ri(n,r))}),n};var Oi=Ai;const _e=N,Ni=C(),vr=Ie,Li=(e,t)=>{e=new Ni(e,t);let r=new _e("0.0.0");if(e.test(r)||(r=new _e("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const s=e.set[n];let i=null;s.forEach(c=>{const l=new _e(c.semver.version);switch(c.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||vr(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),i&&(!r||vr(r,i))&&(r=i)}return r&&e.test(r)?r:null};var ji=Li;const Pi=C(),_i=(e,t)=>{try{return new Pi(e,t).range||"*"}catch{return null}};var xi=_i;const Di=N,Tt=Re(),{ANY:Ci}=Tt,Bi=C(),Gi=Te,wr=Ie,br=We,Fi=Ye,Vi=Je,ki=(e,t,r,n)=>{e=new Di(e,n),t=new Bi(t,n);let s,i,c,l,a;switch(r){case">":s=wr,i=Fi,c=br,l=">",a=">=";break;case"<":s=br,i=Vi,c=wr,l="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Gi(e,t,n))return!1;for(let o=0;o<t.set.length;++o){const f=t.set[o];let u=null,w=null;if(f.forEach(m=>{m.semver===Ci&&(m=new Tt(">=0.0.0")),u=u||m,w=w||m,s(m.semver,u.semver,n)?u=m:c(m.semver,w.semver,n)&&(w=m)}),u.operator===l||u.operator===a||(!w.operator||w.operator===l)&&i(e,w.semver))return!1;if(w.operator===a&&c(e,w.semver))return!1}return!0};var ze=ki;const Ui=ze,Hi=(e,t,r)=>Ui(e,t,">",r);var Mi=Hi;const Xi=ze,Ki=(e,t,r)=>Xi(e,t,"<",r);var qi=Ki;const Ir=C(),Wi=(e,t,r)=>(e=new Ir(e,r),t=new Ir(t,r),e.intersects(t,r));var Ji=Wi;const Yi=Te,zi=D;var Zi=(e,t,r)=>{const n=[];let s=null,i=null;const c=e.sort((f,u)=>zi(f,u,r));for(const f of c)Yi(f,t,r)?(i=f,s||(s=f)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);const l=[];for(const[f,u]of n)f===u?l.push(f):!u&&f===c[0]?l.push("*"):u?f===c[0]?l.push(`<=${u}`):l.push(`${f} - ${u}`):l.push(`>=${f}`);const a=l.join(" || "),o=typeof t.raw=="string"?t.raw:String(t);return a.length<o.length?a:t};const Rr=C(),Ze=Re(),{ANY:xe}=Ze,Z=Te,Qe=D,Qi=(e,t,r={})=>{if(e===t)return!0;e=new Rr(e,r),t=new Rr(t,r);let n=!1;e:for(const s of e.set){for(const i of t.set){const c=ro(s,i,r);if(n=n||c!==null,c)continue e}if(n)return!1}return!0},eo=[new Ze(">=0.0.0-0")],Tr=[new Ze(">=0.0.0")],ro=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===xe){if(t.length===1&&t[0].semver===xe)return!0;r.includePrerelease?e=eo:e=Tr}if(t.length===1&&t[0].semver===xe){if(r.includePrerelease)return!0;t=Tr}const n=new Set;let s,i;for(const m of e)m.operator===">"||m.operator===">="?s=Ar(s,m,r):m.operator==="<"||m.operator==="<="?i=Or(i,m,r):n.add(m.semver);if(n.size>1)return null;let c;if(s&&i){if(c=Qe(s.semver,i.semver,r),c>0)return null;if(c===0&&(s.operator!==">="||i.operator!=="<="))return null}for(const m of n){if(s&&!Z(m,String(s),r)||i&&!Z(m,String(i),r))return null;for(const h of t)if(!Z(m,String(h),r))return!1;return!0}let l,a,o,f,u=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,w=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;u&&u.prerelease.length===1&&i.operator==="<"&&u.prerelease[0]===0&&(u=!1);for(const m of t){if(f=f||m.operator===">"||m.operator===">=",o=o||m.operator==="<"||m.operator==="<=",s){if(w&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===w.major&&m.semver.minor===w.minor&&m.semver.patch===w.patch&&(w=!1),m.operator===">"||m.operator===">="){if(l=Ar(s,m,r),l===m&&l!==s)return!1}else if(s.operator===">="&&!Z(s.semver,String(m),r))return!1}if(i){if(u&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===u.major&&m.semver.minor===u.minor&&m.semver.patch===u.patch&&(u=!1),m.operator==="<"||m.operator==="<="){if(a=Or(i,m,r),a===m&&a!==i)return!1}else if(i.operator==="<="&&!Z(i.semver,String(m),r))return!1}if(!m.operator&&(i||s)&&c!==0)return!1}return!(s&&o&&!i&&c!==0||i&&f&&!s&&c!==0||w||u)},Ar=(e,t,r)=>{if(!e)return t;const n=Qe(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Or=(e,t,r)=>{if(!e)return t;const n=Qe(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var to=Qi;const De=ne,Nr=we,no=N,Lr=wt,so=Y,io=ls,oo=ms,ao=Es,co=ys,fo=vs,uo=Is,lo=As,ho=Ls,po=D,mo=xs,Eo=Bs,$o=qe,yo=ks,go=Ms,So=Ie,vo=We,wo=bt,bo=It,Io=Je,Ro=Ye,To=Rt,Ao=pi,Oo=Re(),No=C(),Lo=Te,jo=Si,Po=Ii,_o=Oi,xo=ji,Do=xi,Co=ze,Bo=Mi,Go=qi,Fo=Ji,Vo=Zi,ko=to;var er={parse:so,valid:io,clean:oo,inc:ao,diff:co,major:fo,minor:uo,patch:lo,prerelease:ho,compare:po,rcompare:mo,compareLoose:Eo,compareBuild:$o,sort:yo,rsort:go,gt:So,lt:vo,eq:wo,neq:bo,gte:Io,lte:Ro,cmp:To,coerce:Ao,Comparator:Oo,Range:No,satisfies:Lo,toComparators:jo,maxSatisfying:Po,minSatisfying:_o,minVersion:xo,validRange:Do,outside:Co,gtr:Bo,ltr:Go,intersects:Fo,simplifyRange:Vo,subset:ko,SemVer:no,re:De.re,src:De.src,tokens:De.t,SEMVER_SPEC_VERSION:Nr.SEMVER_SPEC_VERSION,RELEASE_TYPES:Nr.RELEASE_TYPES,compareIdentifiers:Lr.compareIdentifiers,rcompareIdentifiers:Lr.rcompareIdentifiers};const Uo=er;var Ho=Uo.satisfies(process.version,">=15.7.0");const Mo=er;var Xo=Mo.satisfies(process.version,">=16.9.0");const Ko=Ho,qo=Xo,Wo={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},Jo={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};var At=function(e,t){if(!e||!t)return;const r=t.asymmetricKeyType;if(!r)return;const n=Wo[r];if(!n)throw new Error(`Unknown key type "${r}".`);if(!n.includes(e))throw new Error(`"alg" parameter for "${r}" key type must be one of: ${n.join(", ")}.`);if(Ko)switch(r){case"ec":const s=t.asymmetricKeyDetails.namedCurve,i=Jo[e];if(s!==i)throw new Error(`"alg" parameter "${e}" requires curve "${i}".`);break;case"rsa-pss":if(qo){const c=parseInt(e.slice(-3),10),{hashAlgorithm:l,mgf1HashAlgorithm:a,saltLength:o}=t.asymmetricKeyDetails;if(l!==`sha${c}`||a!==l)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.`);if(o!==void 0&&o>c>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.`)}break}},Yo=er,Ot=Yo.satisfies(process.version,"^6.12.0 || >=8.0.0");const I=ve,zo=Et,jr=yt,Zo=mt,Qo=gt,ea=At,ra=Ot,ta=F,{KeyObject:na,createSecretKey:sa,createPublicKey:ia}=j,Fe=["RS256","RS384","RS512"],oa=["ES256","ES384","ES512"],Ve=["RS256","RS384","RS512"],aa=["HS256","HS384","HS512"];ra&&(Fe.splice(Fe.length,0,"PS256","PS384","PS512"),Ve.splice(Ve.length,0,"PS256","PS384","PS512"));var ca=function(e,t,r,n){typeof r=="function"&&!n&&(n=r,r={}),r||(r={}),r=Object.assign({},r);let s;if(n?s=n:s=function(f,u){if(f)throw f;return u},r.clockTimestamp&&typeof r.clockTimestamp!="number")return s(new I("clockTimestamp must be a number"));if(r.nonce!==void 0&&(typeof r.nonce!="string"||r.nonce.trim()===""))return s(new I("nonce must be a non-empty string"));if(r.allowInvalidAsymmetricKeyTypes!==void 0&&typeof r.allowInvalidAsymmetricKeyTypes!="boolean")return s(new I("allowInvalidAsymmetricKeyTypes must be a boolean"));const i=r.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return s(new I("jwt must be provided"));if(typeof e!="string")return s(new I("jwt must be a string"));const c=e.split(".");if(c.length!==3)return s(new I("jwt malformed"));let l;try{l=Zo(e,{complete:!0})}catch(f){return s(f)}if(!l)return s(new I("invalid token"));const a=l.header;let o;if(typeof t=="function"){if(!n)return s(new I("verify must be called asynchronous if secret or public key is provided as a callback"));o=t}else o=function(f,u){return u(null,t)};return o(a,function(f,u){if(f)return s(new I("error in secret or public key callback: "+f.message));const w=c[2].trim()!=="";if(!w&&u)return s(new I("jwt signature is required"));if(w&&!u)return s(new I("secret or public key must be provided"));if(!w&&!r.algorithms)return s(new I('please specify "none" in "algorithms" to verify unsigned tokens'));if(u!=null&&!(u instanceof na))try{u=ia(u)}catch{try{u=sa(typeof u=="string"?Buffer.from(u):u)}catch{return s(new I("secretOrPublicKey is not valid key material"))}}if(r.algorithms||(u.type==="secret"?r.algorithms=aa:["rsa","rsa-pss"].includes(u.asymmetricKeyType)?r.algorithms=Ve:u.asymmetricKeyType==="ec"?r.algorithms=oa:r.algorithms=Fe),r.algorithms.indexOf(l.header.alg)===-1)return s(new I("invalid algorithm"));if(a.alg.startsWith("HS")&&u.type!=="secret")return s(new I(`secretOrPublicKey must be a symmetric key when using ${a.alg}`));if(/^(?:RS|PS|ES)/.test(a.alg)&&u.type!=="public")return s(new I(`secretOrPublicKey must be an asymmetric key when using ${a.alg}`));if(!r.allowInvalidAsymmetricKeyTypes)try{ea(a.alg,u)}catch(R){return s(R)}let m;try{m=ta.verify(e,l.header.alg,u)}catch(R){return s(R)}if(!m)return s(new I("invalid signature"));const h=l.payload;if(typeof h.nbf<"u"&&!r.ignoreNotBefore){if(typeof h.nbf!="number")return s(new I("invalid nbf value"));if(h.nbf>i+(r.clockTolerance||0))return s(new zo("jwt not active",new Date(h.nbf*1e3)))}if(typeof h.exp<"u"&&!r.ignoreExpiration){if(typeof h.exp!="number")return s(new I("invalid exp value"));if(i>=h.exp+(r.clockTolerance||0))return s(new jr("jwt expired",new Date(h.exp*1e3)))}if(r.audience){const R=Array.isArray(r.audience)?r.audience:[r.audience];if(!(Array.isArray(h.aud)?h.aud:[h.aud]).some(function(A){return R.some(function(_){return _ instanceof RegExp?_.test(A):_===A})}))return s(new I("jwt audience invalid. expected: "+R.join(" or ")))}if(r.issuer&&(typeof r.issuer=="string"&&h.iss!==r.issuer||Array.isArray(r.issuer)&&r.issuer.indexOf(h.iss)===-1))return s(new I("jwt issuer invalid. expected: "+r.issuer));if(r.subject&&h.sub!==r.subject)return s(new I("jwt subject invalid. expected: "+r.subject));if(r.jwtid&&h.jti!==r.jwtid)return s(new I("jwt jwtid invalid. expected: "+r.jwtid));if(r.nonce&&h.nonce!==r.nonce)return s(new I("jwt nonce invalid. expected: "+r.nonce));if(r.maxAge){if(typeof h.iat!="number")return s(new I("iat required when maxAge is specified"));const R=Qo(r.maxAge,h.iat);if(typeof R>"u")return s(new I('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(i>=R+(r.clockTolerance||0))return s(new jr("maxAge exceeded",new Date(R*1e3)))}if(r.complete===!0){const R=l.signature;return s(null,{header:a,payload:h,signature:R})}return s(null,h)})},Pr=1/0,Nt=9007199254740991,fa=17976931348623157e292,_r=0/0,ua="[object Arguments]",la="[object Function]",ha="[object GeneratorFunction]",pa="[object String]",ma="[object Symbol]",da=/^\s+|\s+$/g,Ea=/^[-+]0x[0-9a-f]+$/i,$a=/^0b[01]+$/i,ya=/^0o[0-7]+$/i,ga=/^(?:0|[1-9]\d*)$/,Sa=parseInt;function va(e,t){for(var r=-1,n=e?e.length:0,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}function wa(e,t,r,n){for(var s=e.length,i=r+(n?1:-1);n?i--:++i<s;)if(t(e[i],i,e))return i;return-1}function ba(e,t,r){if(t!==t)return wa(e,Ia,r);for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}function Ia(e){return e!==e}function Ra(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Ta(e,t){return va(t,function(r){return e[r]})}function Aa(e,t){return function(r){return e(t(r))}}var Ae=Object.prototype,rr=Ae.hasOwnProperty,Oe=Ae.toString,Oa=Ae.propertyIsEnumerable,Na=Aa(Object.keys,Object),La=Math.max;function ja(e,t){var r=Lt(e)||Ca(e)?Ra(e.length,String):[],n=r.length,s=!!n;for(var i in e)(t||rr.call(e,i))&&!(s&&(i=="length"||_a(i,n)))&&r.push(i);return r}function Pa(e){if(!xa(e))return Na(e);var t=[];for(var r in Object(e))rr.call(e,r)&&r!="constructor"&&t.push(r);return t}function _a(e,t){return t=t??Nt,!!t&&(typeof e=="number"||ga.test(e))&&e>-1&&e%1==0&&e<t}function xa(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ae;return e===r}function Da(e,t,r,n){e=tr(e)?e:Ka(e),r=r&&!n?Ha(r):0;var s=e.length;return r<0&&(r=La(s+r,0)),Va(e)?r<=s&&e.indexOf(t,r)>-1:!!s&&ba(e,t,r)>-1}function Ca(e){return Ba(e)&&rr.call(e,"callee")&&(!Oa.call(e,"callee")||Oe.call(e)==ua)}var Lt=Array.isArray;function tr(e){return e!=null&&Fa(e.length)&&!Ga(e)}function Ba(e){return nr(e)&&tr(e)}function Ga(e){var t=ke(e)?Oe.call(e):"";return t==la||t==ha}function Fa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Nt}function ke(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function nr(e){return!!e&&typeof e=="object"}function Va(e){return typeof e=="string"||!Lt(e)&&nr(e)&&Oe.call(e)==pa}function ka(e){return typeof e=="symbol"||nr(e)&&Oe.call(e)==ma}function Ua(e){if(!e)return e===0?e:0;if(e=Ma(e),e===Pr||e===-Pr){var t=e<0?-1:1;return t*fa}return e===e?e:0}function Ha(e){var t=Ua(e),r=t%1;return t===t?r?t-r:t:0}function Ma(e){if(typeof e=="number")return e;if(ka(e))return _r;if(ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(da,"");var r=$a.test(e);return r||ya.test(e)?Sa(e.slice(2),r?2:8):Ea.test(e)?_r:+e}function Xa(e){return tr(e)?ja(e):Pa(e)}function Ka(e){return e?Ta(e,Xa(e)):[]}var qa=Da,Wa="[object Boolean]",Ja=Object.prototype,Ya=Ja.toString;function za(e){return e===!0||e===!1||Za(e)&&Ya.call(e)==Wa}function Za(e){return!!e&&typeof e=="object"}var Qa=za,xr=1/0,ec=17976931348623157e292,Dr=0/0,rc="[object Symbol]",tc=/^\s+|\s+$/g,nc=/^[-+]0x[0-9a-f]+$/i,sc=/^0b[01]+$/i,ic=/^0o[0-7]+$/i,oc=parseInt,ac=Object.prototype,cc=ac.toString;function fc(e){return typeof e=="number"&&e==pc(e)}function Cr(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function uc(e){return!!e&&typeof e=="object"}function lc(e){return typeof e=="symbol"||uc(e)&&cc.call(e)==rc}function hc(e){if(!e)return e===0?e:0;if(e=mc(e),e===xr||e===-xr){var t=e<0?-1:1;return t*ec}return e===e?e:0}function pc(e){var t=hc(e),r=t%1;return t===t?r?t-r:t:0}function mc(e){if(typeof e=="number")return e;if(lc(e))return Dr;if(Cr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Cr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(tc,"");var r=sc.test(e);return r||ic.test(e)?oc(e.slice(2),r?2:8):nc.test(e)?Dr:+e}var dc=fc,Ec="[object Number]",$c=Object.prototype,yc=$c.toString;function gc(e){return!!e&&typeof e=="object"}function Sc(e){return typeof e=="number"||gc(e)&&yc.call(e)==Ec}var vc=Sc,wc="[object Object]";function bc(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Ic(e,t){return function(r){return e(t(r))}}var Rc=Function.prototype,jt=Object.prototype,Pt=Rc.toString,Tc=jt.hasOwnProperty,Ac=Pt.call(Object),Oc=jt.toString,Nc=Ic(Object.getPrototypeOf,Object);function Lc(e){return!!e&&typeof e=="object"}function jc(e){if(!Lc(e)||Oc.call(e)!=wc||bc(e))return!1;var t=Nc(e);if(t===null)return!0;var r=Tc.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Pt.call(r)==Ac}var Pc=jc,_c="[object String]",xc=Object.prototype,Dc=xc.toString,Cc=Array.isArray;function Bc(e){return!!e&&typeof e=="object"}function Gc(e){return typeof e=="string"||!Cc(e)&&Bc(e)&&Dc.call(e)==_c}var Fc=Gc,Vc="Expected a function",Br=1/0,kc=17976931348623157e292,Gr=0/0,Uc="[object Symbol]",Hc=/^\s+|\s+$/g,Mc=/^[-+]0x[0-9a-f]+$/i,Xc=/^0b[01]+$/i,Kc=/^0o[0-7]+$/i,qc=parseInt,Wc=Object.prototype,Jc=Wc.toString;function Yc(e,t){var r;if(typeof t!="function")throw new TypeError(Vc);return e=rf(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function zc(e){return Yc(2,e)}function Fr(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Zc(e){return!!e&&typeof e=="object"}function Qc(e){return typeof e=="symbol"||Zc(e)&&Jc.call(e)==Uc}function ef(e){if(!e)return e===0?e:0;if(e=tf(e),e===Br||e===-Br){var t=e<0?-1:1;return t*kc}return e===e?e:0}function rf(e){var t=ef(e),r=t%1;return t===t?r?t-r:t:0}function tf(e){if(typeof e=="number")return e;if(Qc(e))return Gr;if(Fr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Hc,"");var r=Xc.test(e);return r||Kc.test(e)?qc(e.slice(2),r?2:8):Mc.test(e)?Gr:+e}var nf=zc;const Vr=gt,sf=Ot,of=At,kr=F,af=qa,fe=Qa,Ur=dc,Ce=vc,_t=Pc,k=Fc,cf=nf,{KeyObject:ff,createSecretKey:uf,createPrivateKey:lf}=j,xt=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];sf&&xt.splice(3,0,"PS256","PS384","PS512");const hf={expiresIn:{isValid:function(e){return Ur(e)||k(e)&&e},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(e){return Ur(e)||k(e)&&e},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(e){return k(e)||Array.isArray(e)},message:'"audience" must be a string or array'},algorithm:{isValid:af.bind(null,xt),message:'"algorithm" must be a valid string enum value'},header:{isValid:_t,message:'"header" must be an object'},encoding:{isValid:k,message:'"encoding" must be a string'},issuer:{isValid:k,message:'"issuer" must be a string'},subject:{isValid:k,message:'"subject" must be a string'},jwtid:{isValid:k,message:'"jwtid" must be a string'},noTimestamp:{isValid:fe,message:'"noTimestamp" must be a boolean'},keyid:{isValid:k,message:'"keyid" must be a string'},mutatePayload:{isValid:fe,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:fe,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:fe,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},pf={iat:{isValid:Ce,message:'"iat" should be a number of seconds'},exp:{isValid:Ce,message:'"exp" should be a number of seconds'},nbf:{isValid:Ce,message:'"nbf" should be a number of seconds'}};function Dt(e,t,r,n){if(!_t(r))throw new Error('Expected "'+n+'" to be a plain object.');Object.keys(r).forEach(function(s){const i=e[s];if(!i){if(!t)throw new Error('"'+s+'" is not allowed in "'+n+'"');return}if(!i.isValid(r[s]))throw new Error(i.message)})}function mf(e){return Dt(hf,!1,e,"options")}function df(e){return Dt(pf,!0,e,"payload")}const Hr={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},Ef=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];var $f=function(e,t,r,n){typeof r=="function"?(n=r,r={}):r=r||{};const s=typeof e=="object"&&!Buffer.isBuffer(e),i=Object.assign({alg:r.algorithm||"HS256",typ:s?"JWT":void 0,kid:r.keyid},r.header);function c(o){if(n)return n(o);throw o}if(!t&&r.algorithm!=="none")return c(new Error("secretOrPrivateKey must have a value"));if(t!=null&&!(t instanceof ff))try{t=lf(t)}catch{try{t=uf(typeof t=="string"?Buffer.from(t):t)}catch{return c(new Error("secretOrPrivateKey is not valid key material"))}}if(i.alg.startsWith("HS")&&t.type!=="secret")return c(new Error(`secretOrPrivateKey must be a symmetric key when using ${i.alg}`));if(/^(?:RS|PS|ES)/.test(i.alg)){if(t.type!=="private")return c(new Error(`secretOrPrivateKey must be an asymmetric key when using ${i.alg}`));if(!r.allowInsecureKeySizes&&!i.alg.startsWith("ES")&&t.asymmetricKeyDetails!==void 0&&t.asymmetricKeyDetails.modulusLength<2048)return c(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${i.alg}`))}if(typeof e>"u")return c(new Error("payload is required"));if(s){try{df(e)}catch(o){return c(o)}r.mutatePayload||(e=Object.assign({},e))}else{const o=Ef.filter(function(f){return typeof r[f]<"u"});if(o.length>0)return c(new Error("invalid "+o.join(",")+" option for "+typeof e+" payload"))}if(typeof e.exp<"u"&&typeof r.expiresIn<"u")return c(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof e.nbf<"u"&&typeof r.notBefore<"u")return c(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{mf(r)}catch(o){return c(o)}if(!r.allowInvalidAsymmetricKeyTypes)try{of(i.alg,t)}catch(o){return c(o)}const l=e.iat||Math.floor(Date.now()/1e3);if(r.noTimestamp?delete e.iat:s&&(e.iat=l),typeof r.notBefore<"u"){try{e.nbf=Vr(r.notBefore,l)}catch(o){return c(o)}if(typeof e.nbf>"u")return c(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof r.expiresIn<"u"&&typeof e=="object"){try{e.exp=Vr(r.expiresIn,l)}catch(o){return c(o)}if(typeof e.exp>"u")return c(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(Hr).forEach(function(o){const f=Hr[o];if(typeof r[o]<"u"){if(typeof e[f]<"u")return c(new Error('Bad "options.'+o+'" option. The payload already has an "'+f+'" property.'));e[f]=r[o]}});const a=r.encoding||"utf8";if(typeof n=="function")n=n&&cf(n),kr.createSign({header:i,privateKey:t,payload:e,encoding:a}).once("error",n).once("done",function(o){if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(i.alg)&&o.length<256)return n(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${i.alg}`));n(null,o)});else{let o=kr.sign({header:i,payload:e,secret:t,encoding:a});if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(i.alg)&&o.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${i.alg}`);return o}},yf={decode:mt,verify:ca,sign:$f,JsonWebTokenError:ve,NotBeforeError:Et,TokenExpiredError:yt};const Mr=Wt(yf);class Ct{constructor(t,r){Ne(this,"secretPrivateKey","secretPrivateKey");Ne(this,"daysToExpire",30);this.secretPrivateKey=t,this.daysToExpire=r}createAccessToken(t,r){return Mr.sign({[t]:r},this.secretPrivateKey,{expiresIn:60*60*24*this.daysToExpire})}verifyAccessToken(t){return Mr.verify(t,this.secretPrivateKey)}}const gf=Object.freeze(Object.defineProperty({__proto__:null,Token:Ct},Symbol.toStringTag,{value:"Module"}));exports.Token=Ct;exports.token=gf;