r3ui-lib 1.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/login.es.js +1 -2
- package/dist/login.umd.js +1 -1
- package/dist/r3ui-lib.css +1 -1
- package/dist/r3ui-lib.es.js +5095 -5060
- package/dist/r3ui-lib.umd.js +26 -26
- package/dist/types/components/tables/Table.vue.d.ts.map +1 -1
- package/dist/types/main.d.ts +1 -0
- package/dist/types/main.d.ts.map +1 -1
- package/dist/types/utils/auth/authUser.d.ts +11 -0
- package/dist/types/utils/auth/authUser.d.ts.map +1 -0
- package/dist/types/utils/auth/signInWithSSO.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/login.es.js
CHANGED
|
@@ -3008,7 +3008,7 @@ async function Qo(e) {
|
|
|
3008
3008
|
return typeof u == "string" && u.length > 0 ? u : null;
|
|
3009
3009
|
}, a = () => {
|
|
3010
3010
|
const u = Bo();
|
|
3011
|
-
return n() ? (Ue = !0, tr(),
|
|
3011
|
+
return !n() || !u ? !1 : (Ue = !0, tr(), t(u), !0);
|
|
3012
3012
|
};
|
|
3013
3013
|
if (Ue)
|
|
3014
3014
|
return;
|
|
@@ -3050,7 +3050,6 @@ async function Qo(e) {
|
|
|
3050
3050
|
client_id: f,
|
|
3051
3051
|
redirect_uri: $r,
|
|
3052
3052
|
response_type: "code",
|
|
3053
|
-
scope: "*",
|
|
3054
3053
|
code_challenge: L,
|
|
3055
3054
|
code_challenge_method: "S256",
|
|
3056
3055
|
state: at
|
package/dist/login.umd.js
CHANGED
|
@@ -7,4 +7,4 @@ var Lt;function d(){return Lt.apply(null,arguments)}function as(e){Lt=e}function
|
|
|
7
7
|
[`+a+"] ";for(i in arguments[0])w(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[a];s.push(n)}Vt(e+`
|
|
8
8
|
Arguments: `+Array.prototype.slice.call(s).join("")+`
|
|
9
9
|
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var Ut={};function Ht(e,t){d.deprecationHandler!=null&&d.deprecationHandler(e,t),Ut[e]||(Vt(t),Ut[e]=!0)}d.suppressDeprecationWarnings=!1,d.deprecationHandler=null;function U(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function os(e){var t,r;for(r in e)w(e,r)&&(t=e[r],U(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function rt(e,t){var r=X({},e),s;for(s in t)w(t,s)&&(re(e[s])&&re(t[s])?(r[s]={},X(r[s],e[s]),X(r[s],t[s])):t[s]!=null?r[s]=t[s]:delete r[s]);for(s in e)w(e,s)&&!w(t,s)&&re(e[s])&&(r[s]=X({},r[s]));return r}function st(e){e!=null&&this.set(e)}var nt;Object.keys?nt=Object.keys:nt=function(e){var t,r=[];for(t in e)w(e,t)&&r.push(t);return r};var ls={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function us(e,t,r){var s=this._calendar[e]||this._calendar.sameElse;return U(s)?s.call(t,r):s}function H(e,t,r){var s=""+Math.abs(e),n=t-s.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+s}var at=/(\[[^\[]*\])|(\\)?([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,xe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,it={},ie={};function h(e,t,r,s){var n=s;typeof s=="string"&&(n=function(){return this[s]()}),e&&(ie[e]=n),t&&(ie[t[0]]=function(){return H(n.apply(this,arguments),t[1],t[2])}),r&&(ie[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function ds(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function cs(e){var t=e.match(at),r,s;for(r=0,s=t.length;r<s;r++)ie[t[r]]?t[r]=ie[t[r]]:t[r]=ds(t[r]);return function(n){var a="",i;for(i=0;i<s;i++)a+=U(t[i])?t[i].call(n,e):t[i];return a}}function ve(e,t){return e.isValid()?(t=Gt(t,e.localeData()),it[t]=it[t]||cs(t),it[t](e)):e.localeData().invalidDate()}function Gt(e,t){var r=5;function s(n){return t.longDateFormat(n)||n}for(xe.lastIndex=0;r>=0&&xe.test(e);)e=e.replace(xe,s),xe.lastIndex=0,r-=1;return e}var fs={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 hs(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(at).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var ms="Invalid date";function ys(){return this._invalidDate}var _s="%d",gs=/\d{1,2}/;function ws(e){return this._ordinal.replace("%d",e)}var ps={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 ks(e,t,r,s){var n=this._relativeTime[r];return U(n)?n(e,t,r,s):n.replace(/%d/i,e)}function Ss(e,t){var r=this._relativeTime[e>0?"future":"past"];return U(r)?r(t):r.replace(/%s/i,t)}var jt={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"?jt[e]||jt[e.toLowerCase()]:void 0}function ot(e){var t={},r,s;for(s in e)w(e,s)&&(r=W(s),r&&(t[r]=e[s]));return t}var Ms={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 Ds(e){var t=[],r;for(r in e)w(e,r)&&t.push({unit:r,priority:Ms[r]});return t.sort(function(s,n){return s.priority-n.priority}),t}var zt=/\d/,P=/\d\d/,Bt=/\d{3}/,lt=/\d{4}/,Ne=/[+-]?\d{6}/,S=/\d\d?/,Zt=/\d\d\d\d?/,qt=/\d\d\d\d\d\d?/,Pe=/\d{1,3}/,ut=/\d{1,4}/,Ce=/[+-]?\d{1,6}/,oe=/\d+/,We=/[+-]?\d+/,Ys=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Os=/[+-]?\d+(\.\d{1,3})?/,ge=/[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,le=/^[1-9]\d?/,dt=/^([1-9]\d|\d)/,Re;Re={};function f(e,t,r){Re[e]=U(t)?t:function(s,n){return s&&r?r:t}}function bs(e,t){return w(Re,e)?Re[e](t._strict,t._locale):new RegExp(Ts(e))}function Ts(e){return z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,s,n,a){return r||s||n||a}))}function z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=E(t)),r}var ct={};function k(e,t){var r,s=t,n;for(typeof e=="string"&&(e=[e]),j(t)&&(s=function(a,i){i[t]=_(a)}),n=e.length,r=0;r<n;r++)ct[e[r]]=s}function we(e,t){k(e,function(r,s,n,a){n._w=n._w||{},t(r,n._w,n,a)})}function xs(e,t,r){t!=null&&w(ct,e)&&ct[e](t,r._a,r,e)}function Ae(e){return e%4===0&&e%100!==0||e%400===0}var T=0,B=1,G=2,b=3,L=4,Z=5,se=6,vs=7,Ns=8;h("Y",0,0,function(){var e=this.year();return e<=9999?H(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"),f("Y",We),f("YY",S,P),f("YYYY",ut,lt),f("YYYYY",Ce,Ne),f("YYYYYY",Ce,Ne),k(["YYYYY","YYYYYY"],T),k("YYYY",function(e,t){t[T]=e.length===2?d.parseTwoDigitYear(e):_(e)}),k("YY",function(e,t){t[T]=d.parseTwoDigitYear(e)}),k("Y",function(e,t){t[T]=parseInt(e,10)});function pe(e){return Ae(e)?366:365}d.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var Qt=ue("FullYear",!0);function Ps(){return Ae(this.year())}function ue(e,t){return function(r){return r!=null?(Jt(this,e,r),d.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){if(!e.isValid())return NaN;var r=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return s?r.getUTCSeconds():r.getSeconds();case"Minutes":return s?r.getUTCMinutes():r.getMinutes();case"Hours":return s?r.getUTCHours():r.getHours();case"Date":return s?r.getUTCDate():r.getDate();case"Day":return s?r.getUTCDay():r.getDay();case"Month":return s?r.getUTCMonth():r.getMonth();case"FullYear":return s?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Jt(e,t,r){var s,n,a,i,u;if(!(!e.isValid()||isNaN(r))){switch(s=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?s.setUTCMilliseconds(r):s.setMilliseconds(r));case"Seconds":return void(n?s.setUTCSeconds(r):s.setSeconds(r));case"Minutes":return void(n?s.setUTCMinutes(r):s.setMinutes(r));case"Hours":return void(n?s.setUTCHours(r):s.setHours(r));case"Date":return void(n?s.setUTCDate(r):s.setDate(r));case"FullYear":break;default:return}a=r,i=e.month(),u=e.date(),u=u===29&&i===1&&!Ae(a)?28:u,n?s.setUTCFullYear(a,i,u):s.setFullYear(a,i,u)}}function Cs(e){return e=W(e),U(this[e])?this[e]():this}function Ws(e,t){if(typeof e=="object"){e=ot(e);var r=Ds(e),s,n=r.length;for(s=0;s<n;s++)this[r[s].unit](e[r[s].unit])}else if(e=W(e),U(this[e]))return this[e](t);return this}function Es(e,t){return(e%t+t)%t}var O;Array.prototype.indexOf?O=Array.prototype.indexOf:O=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ft(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Es(t,12);return e+=(t-r)/12,r===1?Ae(e)?29:28:31-r%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)}),f("M",S,le),f("MM",S,P),f("MMM",function(e,t){return t.monthsShortRegex(e)}),f("MMMM",function(e,t){return t.monthsRegex(e)}),k(["M","MM"],function(e,t){t[B]=_(e)-1}),k(["MMM","MMMM"],function(e,t,r,s){var n=r._locale.monthsParse(e,s,r._strict);n!=null?t[B]=n:y(r).invalidMonth=e});var Rs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Kt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),$t=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,As=ge,Ls=ge;function Is(e,t){return e?R(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||$t).test(t)?"format":"standalone"][e.month()]:R(this._months)?this._months:this._months.standalone}function Fs(e,t){return e?R(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[$t.test(t)?"format":"standalone"][e.month()]:R(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Vs(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=V([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(n=O.call(this._shortMonthsParse,i),n!==-1?n:null):(n=O.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=O.call(this._shortMonthsParse,i),n!==-1?n:(n=O.call(this._longMonthsParse,i),n!==-1?n:null)):(n=O.call(this._longMonthsParse,i),n!==-1?n:(n=O.call(this._shortMonthsParse,i),n!==-1?n:null))}function Us(e,t,r){var s,n,a;if(this._monthsParseExact)return Vs.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=V([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[s].test(e))return s;if(r&&t==="MMM"&&this._shortMonthsParse[s].test(e))return s;if(!r&&this._monthsParse[s].test(e))return s}}function Xt(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=_(t);else if(t=e.localeData().monthsParse(t),!j(t))return e}var r=t,s=e.date();return s=s<29?s:Math.min(s,ft(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,s):e._d.setMonth(r,s),e}function er(e){return e!=null?(Xt(this,e),d.updateOffset(this,!0),this):ke(this,"Month")}function Hs(){return ft(this.year(),this.month())}function Gs(e){return this._monthsParseExact?(w(this,"_monthsRegex")||tr.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=As),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function js(e){return this._monthsParseExact?(w(this,"_monthsRegex")||tr.call(this),e?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=Ls),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function tr(){function e(c,m){return m.length-c.length}var t=[],r=[],s=[],n,a,i,u;for(n=0;n<12;n++)a=V([2e3,n]),i=z(this.monthsShort(a,"")),u=z(this.months(a,"")),t.push(i),r.push(u),s.push(u),s.push(i);t.sort(e),r.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function zs(e,t,r,s,n,a,i){var u;return e<100&&e>=0?(u=new Date(e+400,t,r,s,n,a,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,r,s,n,a,i),u}function Se(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Le(e,t,r){var s=7+t-r,n=(7+Se(e,0,s).getUTCDay()-t)%7;return-n+s-1}function rr(e,t,r,s,n){var a=(7+r-s)%7,i=Le(e,s,n),u=1+7*(t-1)+a+i,c,m;return u<=0?(c=e-1,m=pe(c)+u):u>pe(e)?(c=e+1,m=u-pe(e)):(c=e,m=u),{year:c,dayOfYear:m}}function Me(e,t,r){var s=Le(e.year(),t,r),n=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return n<1?(i=e.year()-1,a=n+q(i,t,r)):n>q(e.year(),t,r)?(a=n-q(e.year(),t,r),i=e.year()+1):(i=e.year(),a=n),{week:a,year:i}}function q(e,t,r){var s=Le(e,t,r),n=Le(e+1,t,r);return(pe(e)-s+n)/7}h("w",["ww",2],"wo","week"),h("W",["WW",2],"Wo","isoWeek"),f("w",S,le),f("ww",S,P),f("W",S,le),f("WW",S,P),we(["w","ww","W","WW"],function(e,t,r,s){t[s.substr(0,1)]=_(e)});function Bs(e){return Me(e,this._week.dow,this._week.doy).week}var Zs={dow:0,doy:6};function qs(){return this._week.dow}function Qs(){return this._week.doy}function Js(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ks(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"),f("d",S),f("e",S),f("E",S),f("dd",function(e,t){return t.weekdaysMinRegex(e)}),f("ddd",function(e,t){return t.weekdaysShortRegex(e)}),f("dddd",function(e,t){return t.weekdaysRegex(e)}),we(["dd","ddd","dddd"],function(e,t,r,s){var n=r._locale.weekdaysParse(e,s,r._strict);n!=null?t.d=n:y(r).invalidWeekday=e}),we(["d","e","E"],function(e,t,r,s){t[s]=_(e)});function $s(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Xs(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}var en="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),tn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),rn=ge,sn=ge,nn=ge;function an(e,t){var r=R(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ht(r,this._week.dow):e?r[e.day()]:r}function on(e){return e===!0?ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ln(e){return e===!0?ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function un(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=V([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(n=O.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=O.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=O.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=O.call(this._weekdaysParse,i),n!==-1||(n=O.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=O.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=O.call(this._shortWeekdaysParse,i),n!==-1||(n=O.call(this._weekdaysParse,i),n!==-1)?n:(n=O.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=O.call(this._minWeekdaysParse,i),n!==-1||(n=O.call(this._weekdaysParse,i),n!==-1)?n:(n=O.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function dn(e,t,r){var s,n,a;if(this._weekdaysParseExact)return un.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=V([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[s].test(e))return s;if(r&&t==="ddd"&&this._shortWeekdaysParse[s].test(e))return s;if(r&&t==="dd"&&this._minWeekdaysParse[s].test(e))return s;if(!r&&this._weekdaysParse[s].test(e))return s}}function cn(e){if(!this.isValid())return e!=null?this:NaN;var t=ke(this,"Day");return e!=null?(e=$s(e,this.localeData()),this.add(e-t,"d")):t}function fn(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 hn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Xs(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function mn(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||mt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=rn),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function yn(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||mt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=sn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function _n(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||mt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function mt(){function e(Y,x){return x.length-Y.length}var t=[],r=[],s=[],n=[],a,i,u,c,m;for(a=0;a<7;a++)i=V([2e3,1]).day(a),u=z(this.weekdaysMin(i,"")),c=z(this.weekdaysShort(i,"")),m=z(this.weekdays(i,"")),t.push(u),r.push(c),s.push(m),n.push(u),n.push(c),n.push(m);t.sort(e),r.sort(e),s.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function yt(){return this.hours()%12||12}function gn(){return this.hours()||24}h("H",["HH",2],0,"hour"),h("h",["hh",2],0,yt),h("k",["kk",2],0,gn),h("hmm",0,0,function(){return""+yt.apply(this)+H(this.minutes(),2)}),h("hmmss",0,0,function(){return""+yt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),h("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),h("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)});function nr(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}nr("a",!0),nr("A",!1);function ar(e,t){return t._meridiemParse}f("a",ar),f("A",ar),f("H",S,dt),f("h",S,le),f("k",S,le),f("HH",S,P),f("hh",S,P),f("kk",S,P),f("hmm",Zt),f("hmmss",qt),f("Hmm",Zt),f("Hmmss",qt),k(["H","HH"],b),k(["k","kk"],function(e,t,r){var s=_(e);t[b]=s===24?0:s}),k(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),k(["h","hh"],function(e,t,r){t[b]=_(e),y(r).bigHour=!0}),k("hmm",function(e,t,r){var s=e.length-2;t[b]=_(e.substr(0,s)),t[L]=_(e.substr(s)),y(r).bigHour=!0}),k("hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[b]=_(e.substr(0,s)),t[L]=_(e.substr(s,2)),t[Z]=_(e.substr(n)),y(r).bigHour=!0}),k("Hmm",function(e,t,r){var s=e.length-2;t[b]=_(e.substr(0,s)),t[L]=_(e.substr(s))}),k("Hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[b]=_(e.substr(0,s)),t[L]=_(e.substr(s,2)),t[Z]=_(e.substr(n))});function wn(e){return(e+"").toLowerCase().charAt(0)==="p"}var pn=/[ap]\.?m?\.?/i,kn=ue("Hours",!0);function Sn(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var ir={calendar:ls,longDateFormat:fs,invalidDate:ms,ordinal:_s,dayOfMonthOrdinalParse:gs,relativeTime:ps,months:Rs,monthsShort:Kt,week:Zs,weekdays:en,weekdaysMin:tn,weekdaysShort:sr,meridiemParse:pn},D={},De={},Ye;function Mn(e,t){var r,s=Math.min(e.length,t.length);for(r=0;r<s;r+=1)if(e[r]!==t[r])return r;return s}function or(e){return e&&e.toLowerCase().replace("_","-")}function Dn(e){for(var t=0,r,s,n,a;t<e.length;){for(a=or(e[t]).split("-"),r=a.length,s=or(e[t+1]),s=s?s.split("-"):null;r>0;){if(n=Ie(a.slice(0,r).join("-")),n)return n;if(s&&s.length>=r&&Mn(a,s)>=r-1)break;r--}t++}return Ye}function Yn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ie(e){var t=null,r;if(D[e]===void 0&&typeof module<"u"&&module&&module.exports&&Yn(e))try{t=Ye._abbr,r=require,r("./locale/"+e),ee(t)}catch{D[e]=null}return D[e]}function ee(e,t){var r;return e&&(v(t)?r=Q(e):r=_t(e,t),r?Ye=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ye._abbr}function _t(e,t){if(t!==null){var r,s=ir;if(t.abbr=e,D[e]!=null)Ht("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."),s=D[e]._config;else if(t.parentLocale!=null)if(D[t.parentLocale]!=null)s=D[t.parentLocale]._config;else if(r=Ie(t.parentLocale),r!=null)s=r._config;else return De[t.parentLocale]||(De[t.parentLocale]=[]),De[t.parentLocale].push({name:e,config:t}),null;return D[e]=new st(rt(s,t)),De[e]&&De[e].forEach(function(n){_t(n.name,n.config)}),ee(e),D[e]}else return delete D[e],null}function On(e,t){if(t!=null){var r,s,n=ir;D[e]!=null&&D[e].parentLocale!=null?D[e].set(rt(D[e]._config,t)):(s=Ie(e),s!=null&&(n=s._config),t=rt(n,t),s==null&&(t.abbr=e),r=new st(t),r.parentLocale=D[e],D[e]=r),ee(e)}else D[e]!=null&&(D[e].parentLocale!=null?(D[e]=D[e].parentLocale,e===ee()&&ee(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 Ye;if(!R(e)){if(t=Ie(e),t)return t;e=[e]}return Dn(e)}function bn(){return nt(D)}function gt(e){var t,r=e._a;return r&&y(e).overflow===-2&&(t=r[B]<0||r[B]>11?B:r[G]<1||r[G]>ft(r[T],r[B])?G:r[b]<0||r[b]>24||r[b]===24&&(r[L]!==0||r[Z]!==0||r[se]!==0)?b:r[L]<0||r[L]>59?L:r[Z]<0||r[Z]>59?Z:r[se]<0||r[se]>999?se:-1,y(e)._overflowDayOfYear&&(t<T||t>G)&&(t=G),y(e)._overflowWeeks&&t===-1&&(t=vs),y(e)._overflowWeekday&&t===-1&&(t=Ns),y(e).overflow=t),e}var Tn=/^\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)?)?$/,xn=/^\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)?)?$/,vn=/Z|[+-]\d\d(?::?\d\d)?/,Fe=[["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]],wt=[["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/]],Nn=/^\/?Date\((-?\d+)/i,Pn=/^(?:(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}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function lr(e){var t,r,s=e._i,n=Tn.exec(s)||xn.exec(s),a,i,u,c,m=Fe.length,Y=wt.length;if(n){for(y(e).iso=!0,t=0,r=m;t<r;t++)if(Fe[t][1].exec(n[1])){i=Fe[t][0],a=Fe[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,r=Y;t<r;t++)if(wt[t][1].exec(n[3])){u=(n[2]||" ")+wt[t][0];break}if(u==null){e._isValid=!1;return}}if(!a&&u!=null){e._isValid=!1;return}if(n[4])if(vn.exec(n[4]))c="Z";else{e._isValid=!1;return}e._f=i+(u||"")+(c||""),kt(e)}else e._isValid=!1}function Wn(e,t,r,s,n,a){var i=[En(e),Kt.indexOf(t),parseInt(r,10),parseInt(s,10),parseInt(n,10)];return a&&i.push(parseInt(a,10)),i}function En(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Rn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function An(e,t,r){if(e){var s=sr.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(s!==n)return y(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Ln(e,t,r){if(e)return Cn[e];if(t)return 0;var s=parseInt(r,10),n=s%100,a=(s-n)/100;return a*60+n}function ur(e){var t=Pn.exec(Rn(e._i)),r;if(t){if(r=Wn(t[4],t[3],t[2],t[5],t[6],t[7]),!An(t[1],r,e))return;e._a=r,e._tzm=Ln(t[8],t[9],t[10]),e._d=Se.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function In(e){var t=Nn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(lr(e),e._isValid===!1)delete e._isValid;else return;if(ur(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:d.createFromInputFallback(e)}d.createFromInputFallback=C("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 de(e,t,r){return e??t??r}function Fn(e){var t=new Date(d.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function pt(e){var t,r,s=[],n,a,i;if(!e._d){for(n=Fn(e),e._w&&e._a[G]==null&&e._a[B]==null&&Vn(e),e._dayOfYear!=null&&(i=de(e._a[T],n[T]),(e._dayOfYear>pe(i)||e._dayOfYear===0)&&(y(e)._overflowDayOfYear=!0),r=Se(i,0,e._dayOfYear),e._a[B]=r.getUTCMonth(),e._a[G]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[b]===24&&e._a[L]===0&&e._a[Z]===0&&e._a[se]===0&&(e._nextDay=!0,e._a[b]=0),e._d=(e._useUTC?Se:zs).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[b]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(y(e).weekdayMismatch=!0)}}function Vn(e){var t,r,s,n,a,i,u,c,m;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,r=de(t.GG,e._a[T],Me(M(),1,4).year),s=de(t.W,1),n=de(t.E,1),(n<1||n>7)&&(c=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,m=Me(M(),a,i),r=de(t.gg,e._a[T],m.year),s=de(t.w,m.week),t.d!=null?(n=t.d,(n<0||n>6)&&(c=!0)):t.e!=null?(n=t.e+a,(t.e<0||t.e>6)&&(c=!0)):n=a),s<1||s>q(r,a,i)?y(e)._overflowWeeks=!0:c!=null?y(e)._overflowWeekday=!0:(u=rr(r,s,n,a,i),e._a[T]=u.year,e._dayOfYear=u.dayOfYear)}d.ISO_8601=function(){},d.RFC_2822=function(){};function kt(e){if(e._f===d.ISO_8601){lr(e);return}if(e._f===d.RFC_2822){ur(e);return}e._a=[],y(e).empty=!0;var t=""+e._i,r,s,n,a,i,u=t.length,c=0,m,Y;for(n=Gt(e._f,e._locale).match(at)||[],Y=n.length,r=0;r<Y;r++)a=n[r],s=(t.match(bs(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&y(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),c+=s.length),ie[a]?(s?y(e).empty=!1:y(e).unusedTokens.push(a),xs(a,s,e)):e._strict&&!s&&y(e).unusedTokens.push(a);y(e).charsLeftOver=u-c,t.length>0&&y(e).unusedInput.push(t),e._a[b]<=12&&y(e).bigHour===!0&&e._a[b]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[b]=Un(e._locale,e._a[b],e._meridiem),m=y(e).era,m!==null&&(e._a[T]=e._locale.erasConvertYear(m,e._a[T])),pt(e),gt(e)}function Un(e,t,r){var s;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(s=e.isPM(r),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function Hn(e){var t,r,s,n,a,i,u=!1,c=e._f.length;if(c===0){y(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<c;n++)a=0,i=!1,t=tt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],kt(t),Xe(t)&&(i=!0),a+=y(t).charsLeftOver,a+=y(t).unusedTokens.length*10,y(t).score=a,u?a<s&&(s=a,r=t):(s==null||a<s||i)&&(s=a,r=t,i&&(u=!0));X(e,r||t)}function Gn(e){if(!e._d){var t=ot(e._i),r=t.day===void 0?t.date:t.day;e._a=It([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),pt(e)}}function jn(e){var t=new _e(gt(dr(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function dr(e){var t=e._i,r=e._f;return e._locale=e._locale||Q(e._l),t===null||r===void 0&&t===""?Te({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),A(t)?new _e(gt(t)):(ye(t)?e._d=t:R(r)?Hn(e):r?kt(e):zn(e),Xe(e)||(e._d=null),e))}function zn(e){var t=e._i;v(t)?e._d=new Date(d.now()):ye(t)?e._d=new Date(t.valueOf()):typeof t=="string"?In(e):R(t)?(e._a=It(t.slice(0),function(r){return parseInt(r,10)}),pt(e)):re(t)?Gn(e):j(t)?e._d=new Date(t):d.createFromInputFallback(e)}function cr(e,t,r,s,n){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(re(e)&&Ke(e)||R(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=r,a._i=e,a._f=t,a._strict=s,jn(a)}function M(e,t,r,s){return cr(e,t,r,s,!1)}var Bn=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Te()}),Zn=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Te()});function fr(e,t){var r,s;if(t.length===1&&R(t[0])&&(t=t[0]),!t.length)return M();for(r=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](r))&&(r=t[s]);return r}function qn(){var e=[].slice.call(arguments,0);return fr("isBefore",e)}function Qn(){var e=[].slice.call(arguments,0);return fr("isAfter",e)}var Jn=function(){return Date.now?Date.now():+new Date},Oe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Kn(e){var t,r=!1,s,n=Oe.length;for(t in e)if(w(e,t)&&!(O.call(Oe,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<n;++s)if(e[Oe[s]]){if(r)return!1;parseFloat(e[Oe[s]])!==_(e[Oe[s]])&&(r=!0)}return!0}function $n(){return this._isValid}function Xn(){return I(NaN)}function Ve(e){var t=ot(e),r=t.year||0,s=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,u=t.hour||0,c=t.minute||0,m=t.second||0,Y=t.millisecond||0;this._isValid=Kn(t),this._milliseconds=+Y+m*1e3+c*6e4+u*1e3*60*60,this._days=+i+a*7,this._months=+n+s*3+r*12,this._data={},this._locale=Q(),this._bubble()}function Ue(e){return e instanceof Ve}function St(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ea(e,t,r){var s=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)_(e[i])!==_(t[i])&&a++;return a+n}function hr(e,t){h(e,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+H(~~(r/60),2)+t+H(~~r%60,2)})}hr("Z",":"),hr("ZZ",""),f("Z",Ee),f("ZZ",Ee),k(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Mt(Ee,e)});var ta=/([\+\-]|\d\d)/gi;function Mt(e,t){var r=(t||"").match(e),s,n,a;return r===null?null:(s=r[r.length-1]||[],n=(s+"").match(ta)||["-",0,0],a=+(n[1]*60)+_(n[2]),a===0?0:n[0]==="+"?a:-a)}function Dt(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(A(e)||ye(e)?e.valueOf():M(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),d.updateOffset(r,!1),r):M(e).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}d.updateOffset=function(){};function ra(e,t,r){var s=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Mt(Ee,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=Yt(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),s!==e&&(!t||this._changeInProgress?gr(this,I(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Yt(this)}function sa(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function na(e){return this.utcOffset(0,e)}function aa(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),"m")),this}function ia(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Mt(Ys,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function oa(e){return this.isValid()?(e=e?M(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function la(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ua(){if(!v(this._isDSTShifted))return this._isDSTShifted;var e={},t;return tt(e,this),e=dr(e),e._a?(t=e._isUTC?V(e._a):M(e._a),this._isDSTShifted=this.isValid()&&ea(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function da(){return this.isValid()?!this._isUTC:!1}function ca(){return this.isValid()?this._isUTC:!1}function mr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fa=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ha=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function I(e,t){var r=e,s=null,n,a,i;return Ue(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:j(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=fa.exec(e))?(n=s[1]==="-"?-1:1,r={y:0,d:_(s[G])*n,h:_(s[b])*n,m:_(s[L])*n,s:_(s[Z])*n,ms:_(St(s[se]*1e3))*n}):(s=ha.exec(e))?(n=s[1]==="-"?-1:1,r={y:ne(s[2],n),M:ne(s[3],n),w:ne(s[4],n),d:ne(s[5],n),h:ne(s[6],n),m:ne(s[7],n),s:ne(s[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=ma(M(r.from),M(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),a=new Ve(r),Ue(e)&&w(e,"_locale")&&(a._locale=e._locale),Ue(e)&&w(e,"_isValid")&&(a._isValid=e._isValid),a}I.fn=Ve.prototype,I.invalid=Xn;function ne(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function yr(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function ma(e,t){var r;return e.isValid()&&t.isValid()?(t=Dt(t,e),e.isBefore(t)?r=yr(e,t):(r=yr(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function _r(e,t){return function(r,s){var n,a;return s!==null&&!isNaN(+s)&&(Ht(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."),a=r,r=s,s=a),n=I(r,s),gr(this,n,e),this}}function gr(e,t,r,s){var n=t._milliseconds,a=St(t._days),i=St(t._months);e.isValid()&&(s=s??!0,i&&Xt(e,ke(e,"Month")+i*r),a&&Jt(e,"Date",ke(e,"Date")+a*r),n&&e._d.setTime(e._d.valueOf()+n*r),s&&d.updateOffset(e,a||i))}var ya=_r(1,"add"),_a=_r(-1,"subtract");function wr(e){return typeof e=="string"||e instanceof String}function ga(e){return A(e)||ye(e)||wr(e)||j(e)||pa(e)||wa(e)||e===null||e===void 0}function wa(e){var t=re(e)&&!Ke(e),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,a,i=s.length;for(n=0;n<i;n+=1)a=s[n],r=r||w(e,a);return t&&r}function pa(e){var t=R(e),r=!1;return t&&(r=e.filter(function(s){return!j(s)&&wr(e)}).length===0),t&&r}function ka(e){var t=re(e)&&!Ke(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,a;for(n=0;n<s.length;n+=1)a=s[n],r=r||w(e,a);return t&&r}function Sa(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Ma(e,t){arguments.length===1&&(arguments[0]?ga(arguments[0])?(e=arguments[0],t=void 0):ka(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||M(),s=Dt(r,this).startOf("day"),n=d.calendarFormat(this,s)||"sameElse",a=t&&(U(t[n])?t[n].call(this,r):t[n]);return this.format(a||this.localeData().calendar(n,this,M(r)))}function Da(){return new _e(this)}function Ya(e,t){var r=A(e)?e:M(e);return this.isValid()&&r.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Oa(e,t){var r=A(e)?e:M(e);return this.isValid()&&r.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function ba(e,t,r,s){var n=A(e)?e:M(e),a=A(t)?t:M(t);return this.isValid()&&n.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(s[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function Ta(e,t){var r=A(e)?e:M(e),s;return this.isValid()&&r.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(s=r.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function xa(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function va(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Na(e,t,r){var s,n,a;if(!this.isValid())return NaN;if(s=Dt(e,this),!s.isValid())return NaN;switch(n=(s.utcOffset()-this.utcOffset())*6e4,t=W(t),t){case"year":a=He(this,s)/12;break;case"month":a=He(this,s);break;case"quarter":a=He(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-n)/864e5;break;case"week":a=(this-s-n)/6048e5;break;default:a=this-s}return r?a:E(a)}function He(e,t){if(e.date()<t.date())return-He(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(r,"months"),n,a;return t-s<0?(n=e.clone().add(r-1,"months"),a=(t-s)/(s-n)):(n=e.clone().add(r+1,"months"),a=(t-s)/(n-s)),-(r+a)||0}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Pa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ca(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?ve(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):U(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ve(r,"Z")):ve(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Wa(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,s,n,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+s+n+a)}function Ea(e){e||(e=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var t=ve(this,e);return this.localeData().postformat(t)}function Ra(e,t){return this.isValid()&&(A(e)&&e.isValid()||M(e).isValid())?I({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Aa(e){return this.from(M(),e)}function La(e,t){return this.isValid()&&(A(e)&&e.isValid()||M(e).isValid())?I({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ia(e){return this.to(M(),e)}function pr(e){var t;return e===void 0?this._locale._abbr:(t=Q(e),t!=null&&(this._locale=t),this)}var kr=C("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 Sr(){return this._locale}var Ge=1e3,ce=60*Ge,je=60*ce,Mr=(365*400+97)*24*je;function fe(e,t){return(e%t+t)%t}function Dr(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Mr:new Date(e,t,r).valueOf()}function Yr(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Mr:Date.UTC(e,t,r)}function Fa(e){var t,r;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Yr:Dr,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fe(t+(this._isUTC?0:this.utcOffset()*ce),je);break;case"minute":t=this._d.valueOf(),t-=fe(t,ce);break;case"second":t=this._d.valueOf(),t-=fe(t,Ge);break}return this._d.setTime(t),d.updateOffset(this,!0),this}function Va(e){var t,r;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Yr:Dr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=je-fe(t+(this._isUTC?0:this.utcOffset()*ce),je)-1;break;case"minute":t=this._d.valueOf(),t+=ce-fe(t,ce)-1;break;case"second":t=this._d.valueOf(),t+=Ge-fe(t,Ge)-1;break}return this._d.setTime(t),d.updateOffset(this,!0),this}function Ua(){return this._d.valueOf()-(this._offset||0)*6e4}function Ha(){return Math.floor(this.valueOf()/1e3)}function Ga(){return new Date(this.valueOf())}function ja(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function za(){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 Ba(){return this.isValid()?this.toISOString():null}function Za(){return Xe(this)}function qa(){return X({},y(this))}function Qa(){return y(this).overflow}function Ja(){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"),f("N",Ot),f("NN",Ot),f("NNN",Ot),f("NNNN",oi),f("NNNNN",li),k(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,s){var n=r._locale.erasParse(e,s,r._strict);n?y(r).era=n:y(r).invalidEra=e}),f("y",oe),f("yy",oe),f("yyy",oe),f("yyyy",oe),f("yo",ui),k(["y","yy","yyy","yyyy"],T),k(["yo"],function(e,t,r,s){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[T]=r._locale.eraYearOrdinalParse(e,n):t[T]=parseInt(e,10)});function Ka(e,t){var r,s,n,a=this._eras||Q("en")._eras;for(r=0,s=a.length;r<s;++r){switch(typeof a[r].since){case"string":n=d(a[r].since).startOf("day"),a[r].since=n.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":n=d(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf();break}}return a}function $a(e,t,r){var s,n,a=this.eras(),i,u,c;for(e=e.toUpperCase(),s=0,n=a.length;s<n;++s)if(i=a[s].name.toUpperCase(),u=a[s].abbr.toUpperCase(),c=a[s].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(u===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(c===e)return a[s];break}else if([i,u,c].indexOf(e)>=0)return a[s]}function Xa(e,t){var r=e.since<=e.until?1:-1;return t===void 0?d(e.since).year():d(e.since).year()+(t-e.offset)*r}function ei(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].name;return""}function ti(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].narrow;return""}function ri(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].abbr;return""}function si(){var e,t,r,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return(this.year()-d(n[e].since).year())*r+n[e].offset;return this.year()}function ni(e){return w(this,"_erasNameRegex")||bt.call(this),e?this._erasNameRegex:this._erasRegex}function ai(e){return w(this,"_erasAbbrRegex")||bt.call(this),e?this._erasAbbrRegex:this._erasRegex}function ii(e){return w(this,"_erasNarrowRegex")||bt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ot(e,t){return t.erasAbbrRegex(e)}function oi(e,t){return t.erasNameRegex(e)}function li(e,t){return t.erasNarrowRegex(e)}function ui(e,t){return t._eraYearOrdinalRegex||oe}function bt(){var e=[],t=[],r=[],s=[],n,a,i,u,c,m=this.eras();for(n=0,a=m.length;n<a;++n)i=z(m[n].name),u=z(m[n].abbr),c=z(m[n].narrow),t.push(i),e.push(u),r.push(c),s.push(i),s.push(u),s.push(c);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}h(0,["gg",2],0,function(){return this.weekYear()%100}),h(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ze(e,t){h(0,[e,e.length],0,t)}ze("gggg","weekYear"),ze("ggggg","weekYear"),ze("GGGG","isoWeekYear"),ze("GGGGG","isoWeekYear"),f("G",We),f("g",We),f("GG",S,P),f("gg",S,P),f("GGGG",ut,lt),f("gggg",ut,lt),f("GGGGG",Ce,Ne),f("ggggg",Ce,Ne),we(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,s){t[s.substr(0,2)]=_(e)}),we(["gg","GG"],function(e,t,r,s){t[s]=d.parseTwoDigitYear(e)});function di(e){return Or.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function ci(e){return Or.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function fi(){return q(this.year(),1,4)}function hi(){return q(this.isoWeekYear(),1,4)}function mi(){var e=this.localeData()._week;return q(this.year(),e.dow,e.doy)}function yi(){var e=this.localeData()._week;return q(this.weekYear(),e.dow,e.doy)}function Or(e,t,r,s,n){var a;return e==null?Me(this,s,n).year:(a=q(e,s,n),t>a&&(t=a),_i.call(this,e,t,r,s,n))}function _i(e,t,r,s,n){var a=rr(e,t,r,s,n),i=Se(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter"),f("Q",zt),k("Q",function(e,t){t[B]=(_(e)-1)*3});function gi(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date"),f("D",S,le),f("DD",S,P),f("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),k(["D","DD"],G),k("Do",function(e,t){t[G]=_(e.match(S)[0])});var br=ue("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear"),f("DDD",Pe),f("DDDD",Bt),k(["DDD","DDDD"],function(e,t,r){r._dayOfYear=_(e)});function wi(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"),f("m",S,dt),f("mm",S,P),k(["m","mm"],L);var pi=ue("Minutes",!1);h("s",["ss",2],0,"second"),f("s",S,dt),f("ss",S,P),k(["s","ss"],Z);var ki=ue("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}),f("S",Pe,zt),f("SS",Pe,P),f("SSS",Pe,Bt);var te,Tr;for(te="SSSS";te.length<=9;te+="S")f(te,oe);function Si(e,t){t[se]=_(("0."+e)*1e3)}for(te="S";te.length<=9;te+="S")k(te,Si);Tr=ue("Milliseconds",!1),h("z",0,0,"zoneAbbr"),h("zz",0,0,"zoneName");function Mi(){return this._isUTC?"UTC":""}function Di(){return this._isUTC?"Coordinated Universal Time":""}var l=_e.prototype;l.add=ya,l.calendar=Ma,l.clone=Da,l.diff=Na,l.endOf=Va,l.format=Ea,l.from=Ra,l.fromNow=Aa,l.to=La,l.toNow=Ia,l.get=Cs,l.invalidAt=Qa,l.isAfter=Ya,l.isBefore=Oa,l.isBetween=ba,l.isSame=Ta,l.isSameOrAfter=xa,l.isSameOrBefore=va,l.isValid=Za,l.lang=kr,l.locale=pr,l.localeData=Sr,l.max=Zn,l.min=Bn,l.parsingFlags=qa,l.set=Ws,l.startOf=Fa,l.subtract=_a,l.toArray=ja,l.toObject=za,l.toDate=Ga,l.toISOString=Ca,l.inspect=Wa,typeof Symbol<"u"&&Symbol.for!=null&&(l[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),l.toJSON=Ba,l.toString=Pa,l.unix=Ha,l.valueOf=Ua,l.creationData=Ja,l.eraName=ei,l.eraNarrow=ti,l.eraAbbr=ri,l.eraYear=si,l.year=Qt,l.isLeapYear=Ps,l.weekYear=di,l.isoWeekYear=ci,l.quarter=l.quarters=gi,l.month=er,l.daysInMonth=Hs,l.week=l.weeks=Js,l.isoWeek=l.isoWeeks=Ks,l.weeksInYear=mi,l.weeksInWeekYear=yi,l.isoWeeksInYear=fi,l.isoWeeksInISOWeekYear=hi,l.date=br,l.day=l.days=cn,l.weekday=fn,l.isoWeekday=hn,l.dayOfYear=wi,l.hour=l.hours=kn,l.minute=l.minutes=pi,l.second=l.seconds=ki,l.millisecond=l.milliseconds=Tr,l.utcOffset=ra,l.utc=na,l.local=aa,l.parseZone=ia,l.hasAlignedHourOffset=oa,l.isDST=la,l.isLocal=da,l.isUtcOffset=ca,l.isUtc=mr,l.isUTC=mr,l.zoneAbbr=Mi,l.zoneName=Di,l.dates=C("dates accessor is deprecated. Use date instead.",br),l.months=C("months accessor is deprecated. Use month instead",er),l.years=C("years accessor is deprecated. Use year instead",Qt),l.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",sa),l.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ua);function Yi(e){return M(e*1e3)}function Oi(){return M.apply(null,arguments).parseZone()}function xr(e){return e}var p=st.prototype;p.calendar=us,p.longDateFormat=hs,p.invalidDate=ys,p.ordinal=ws,p.preparse=xr,p.postformat=xr,p.relativeTime=ks,p.pastFuture=Ss,p.set=os,p.eras=Ka,p.erasParse=$a,p.erasConvertYear=Xa,p.erasAbbrRegex=ai,p.erasNameRegex=ni,p.erasNarrowRegex=ii,p.months=Is,p.monthsShort=Fs,p.monthsParse=Us,p.monthsRegex=js,p.monthsShortRegex=Gs,p.week=Bs,p.firstDayOfYear=Qs,p.firstDayOfWeek=qs,p.weekdays=an,p.weekdaysMin=ln,p.weekdaysShort=on,p.weekdaysParse=dn,p.weekdaysRegex=mn,p.weekdaysShortRegex=yn,p.weekdaysMinRegex=_n,p.isPM=wn,p.meridiem=Sn;function Be(e,t,r,s){var n=Q(),a=V().set(s,t);return n[r](a,e)}function vr(e,t,r){if(j(e)&&(t=e,e=void 0),e=e||"",t!=null)return Be(e,t,r,"month");var s,n=[];for(s=0;s<12;s++)n[s]=Be(e,s,r,"month");return n}function Tt(e,t,r,s){typeof e=="boolean"?(j(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,j(t)&&(r=t,t=void 0),t=t||"");var n=Q(),a=e?n._week.dow:0,i,u=[];if(r!=null)return Be(t,(r+a)%7,s,"day");for(i=0;i<7;i++)u[i]=Be(t,(i+a)%7,s,"day");return u}function bi(e,t){return vr(e,t,"months")}function Ti(e,t){return vr(e,t,"monthsShort")}function xi(e,t,r){return Tt(e,t,r,"weekdays")}function vi(e,t,r){return Tt(e,t,r,"weekdaysShort")}function Ni(e,t,r){return Tt(e,t,r,"weekdaysMin")}ee("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,r=_(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),d.lang=C("moment.lang is deprecated. Use moment.locale instead.",ee),d.langData=C("moment.langData is deprecated. Use moment.localeData instead.",Q);var J=Math.abs;function Pi(){var e=this._data;return this._milliseconds=J(this._milliseconds),this._days=J(this._days),this._months=J(this._months),e.milliseconds=J(e.milliseconds),e.seconds=J(e.seconds),e.minutes=J(e.minutes),e.hours=J(e.hours),e.months=J(e.months),e.years=J(e.years),this}function Nr(e,t,r,s){var n=I(t,r);return e._milliseconds+=s*n._milliseconds,e._days+=s*n._days,e._months+=s*n._months,e._bubble()}function Ci(e,t){return Nr(this,e,t,1)}function Wi(e,t){return Nr(this,e,t,-1)}function Pr(e){return e<0?Math.floor(e):Math.ceil(e)}function Ei(){var e=this._milliseconds,t=this._days,r=this._months,s=this._data,n,a,i,u,c;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Pr(xt(r)+t)*864e5,t=0,r=0),s.milliseconds=e%1e3,n=E(e/1e3),s.seconds=n%60,a=E(n/60),s.minutes=a%60,i=E(a/60),s.hours=i%24,t+=E(i/24),c=E(Cr(t)),r+=c,t-=Pr(xt(c)),u=E(r/12),r%=12,s.days=t,s.months=r,s.years=u,this}function Cr(e){return e*4800/146097}function xt(e){return e*146097/4800}function Ri(e){if(!this.isValid())return NaN;var t,r,s=this._milliseconds;if(e=W(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,r=this._months+Cr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(xt(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function K(e){return function(){return this.as(e)}}var Wr=K("ms"),Ai=K("s"),Li=K("m"),Ii=K("h"),Fi=K("d"),Vi=K("w"),Ui=K("M"),Hi=K("Q"),Gi=K("y"),ji=Wr;function zi(){return I(this)}function Bi(e){return e=W(e),this.isValid()?this[e+"s"]():NaN}function ae(e){return function(){return this.isValid()?this._data[e]:NaN}}var Zi=ae("milliseconds"),qi=ae("seconds"),Qi=ae("minutes"),Ji=ae("hours"),Ki=ae("days"),$i=ae("months"),Xi=ae("years");function eo(){return E(this.days()/7)}var $=Math.round,he={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function to(e,t,r,s,n){return n.relativeTime(t||1,!!r,e,s)}function ro(e,t,r,s){var n=I(e).abs(),a=$(n.as("s")),i=$(n.as("m")),u=$(n.as("h")),c=$(n.as("d")),m=$(n.as("M")),Y=$(n.as("w")),x=$(n.as("y")),F=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||i<=1&&["m"]||i<r.m&&["mm",i]||u<=1&&["h"]||u<r.h&&["hh",u]||c<=1&&["d"]||c<r.d&&["dd",c];return r.w!=null&&(F=F||Y<=1&&["w"]||Y<r.w&&["ww",Y]),F=F||m<=1&&["M"]||m<r.M&&["MM",m]||x<=1&&["y"]||["yy",x],F[2]=t,F[3]=+e>0,F[4]=s,to.apply(null,F)}function so(e){return e===void 0?$:typeof e=="function"?($=e,!0):!1}function no(e,t){return he[e]===void 0?!1:t===void 0?he[e]:(he[e]=t,e==="s"&&(he.ss=t-1),!0)}function ao(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=he,n,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(s=Object.assign({},he,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),n=this.localeData(),a=ro(this,!r,s,n),r&&(a=n.pastFuture(+this,a)),n.postformat(a)}var vt=Math.abs;function me(e){return(e>0)-(e<0)||+e}function Ze(){if(!this.isValid())return this.localeData().invalidDate();var e=vt(this._milliseconds)/1e3,t=vt(this._days),r=vt(this._months),s,n,a,i,u=this.asSeconds(),c,m,Y,x;return u?(s=E(e/60),n=E(s/60),e%=60,s%=60,a=E(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=u<0?"-":"",m=me(this._months)!==me(u)?"-":"",Y=me(this._days)!==me(u)?"-":"",x=me(this._milliseconds)!==me(u)?"-":"",c+"P"+(a?m+a+"Y":"")+(r?m+r+"M":"")+(t?Y+t+"D":"")+(n||s||e?"T":"")+(n?x+n+"H":"")+(s?x+s+"M":"")+(e?x+i+"S":"")):"P0D"}var g=Ve.prototype;g.isValid=$n,g.abs=Pi,g.add=Ci,g.subtract=Wi,g.as=Ri,g.asMilliseconds=Wr,g.asSeconds=Ai,g.asMinutes=Li,g.asHours=Ii,g.asDays=Fi,g.asWeeks=Vi,g.asMonths=Ui,g.asQuarters=Hi,g.asYears=Gi,g.valueOf=ji,g._bubble=Ei,g.clone=zi,g.get=Bi,g.milliseconds=Zi,g.seconds=qi,g.minutes=Qi,g.hours=Ji,g.days=Ki,g.weeks=eo,g.months=$i,g.years=Xi,g.humanize=ao,g.toISOString=Ze,g.toString=Ze,g.toJSON=Ze,g.locale=pr,g.localeData=Sr,g.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ze),g.lang=kr,h("X",0,0,"unix"),h("x",0,0,"valueOf"),f("x",We),f("X",Os),k("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),k("x",function(e,t,r){r._d=new Date(_(e))});//! moment.js
|
|
10
|
-
d.version="2.30.1",as(M),d.fn=l,d.min=qn,d.max=Qn,d.now=Jn,d.utc=V,d.unix=Yi,d.months=bi,d.isDate=ye,d.locale=ee,d.invalid=Te,d.duration=I,d.isMoment=A,d.weekdays=xi,d.parseZone=Oi,d.localeData=Q,d.isDuration=Ue,d.monthsShort=Ti,d.weekdaysMin=Ni,d.defineLocale=_t,d.updateLocale=On,d.locales=bn,d.weekdaysShort=vi,d.normalizeUnits=W,d.relativeTimeRounding=so,d.relativeTimeThreshold=no,d.calendarFormat=Sa,d.prototype=l,d.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"};const io={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},Er=o.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(e){const t=e;return(r,s)=>(o.openBlock(),o.createElementBlock("footer",io,o.toDisplayString(t.copyrightText)+" "+o.toDisplayString(o.unref(d)().year()),1))}}),oo=o.defineComponent({__name:"LoginLayoutFrame",props:{loginText:{},brandText:{},copyrightText:{},mainClass:{default:"my-5"}},setup(e){const t=e;if(typeof t.loginText!="string")throw new Error("LoginLayoutFrame: loginText обязателен");if(!t.brandText.trim())throw new Error("LoginLayoutFrame: brandText обязателен");if(!t.copyrightText.trim())throw new Error("LoginLayoutFrame: copyrightText обязателен");return(r,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(At,{"is-authenticated":!1,"login-text":r.loginText,"raw-dropdown-links":[],"brand-text":r.brandText},{logo:o.withCtx(()=>[o.createVNode(Je)]),"language-selector":o.withCtx(()=>[o.renderSlot(r.$slots,"language-selector")]),_:3},8,["login-text","brand-text"]),o.createElementVNode("main",{class:o.normalizeClass(r.mainClass),style:{"min-height":"80vh"}},[o.renderSlot(r.$slots,"default")],2),o.createVNode(Er,{"copyright-text":r.copyrightText},null,8,["copyright-text"])],64))}}),lo={__name:"Spinner",props:{isSmall:{type:Boolean,default:!1}},setup(e){return(t,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["spinner-border",{"spinner-border-sm":e.isSmall}]),role:"status"},null,2))}},uo={class:"container","data-test":"SsoLoginPending"},co={class:"row justify-content-center"},fo={class:"col-md-8"},ho={class:"card"},mo={class:"card-header"},yo={class:"card-body"},_o={class:"login-spinner text-center",role:"status","aria-live":"polite"},go={class:"visually-hidden","data-test":"SsoLoginPending-status"},Rr=be(o.defineComponent({__name:"SsoLoginPending",props:{title:{},statusText:{}},setup(e){const t=e;if(!t.title.trim())throw new Error("SsoLoginPending: title обязателен");if(!t.statusText.trim())throw new Error("SsoLoginPending: statusText обязателен");return(r,s)=>(o.openBlock(),o.createElementBlock("div",uo,[o.createElementVNode("div",co,[o.createElementVNode("div",fo,[o.createElementVNode("div",ho,[o.createElementVNode("div",mo,o.toDisplayString(r.title),1),o.createElementVNode("div",yo,[o.createElementVNode("div",_o,[o.createVNode(lo),o.createElementVNode("span",go,o.toDisplayString(r.statusText),1)])])])])])]))}}),[["__scopeId","data-v-6eb41b83"]]),Ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";function Lr(){const e=globalThis.crypto;if(!e)throw new Error("Web Crypto API is not available.");if(!e.getRandomValues)throw new Error("Web Crypto getRandomValues is not available.");if(!e.subtle?.digest)throw new Error("Web Crypto subtle digest is not available.");return e}function Ir(e){const t=Lr(),r=new Uint8Array(e);t.getRandomValues(r);let s="";return r.forEach(n=>{s+=Ar[n%Ar.length]}),s}function wo(e){const t=new Uint8Array(e);let r="";return t.forEach(s=>{r+=String.fromCharCode(s)}),btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}function po(e=64){if(!Number.isInteger(e)||e<43||e>128)throw new Error("PKCE code_verifier length must be between 43 and 128.");return Ir(e)}async function ko(e){const t=Lr(),s=new TextEncoder().encode(e),n=await t.subtle.digest("SHA-256",s);return wo(n)}async function So(e=64){const t=po(e),r=await ko(t);return{codeVerifier:t,codeChallenge:r}}function Mo(e=32){if(!Number.isInteger(e)||e<16||e>128)throw new Error("OAuth state length must be between 16 and 128.");return Ir(e)}function qe(e){return Number.isInteger(e)&&Number(e)>=400&&Number(e)<600}function Nt(e,t=new Set){if(e==null)return;if(typeof e=="number")return qe(e)?e:void 0;if(typeof e!="object"||t.has(e))return;if(t.add(e),typeof Response<"u"&&e instanceof Response)return qe(e.status)?e.status:void 0;const r=e;if(qe(r.status))return r.status;if(qe(r.statusCode))return r.statusCode;const s=Nt(r.response,t);return s!==void 0?s:Nt(r.cause,t)}function Fr(e){return e===400?"Bad Request":e===401?"Unauthorized":e===403?"Forbidden":e===404?"Not Found":e===409?"Conflict":e===422?"Unprocessable Entity":e===429?"Too Many Requests":e===502?"Bad Gateway":e===503?"Service Unavailable":e===504?"Gateway Timeout":e>=500?"Internal Server Error":"Request failed"}function Pt(e,t=500){return Nt(e)??t}const Do="Web Crypto API недоступен. Используйте HTTPS или обновите браузер.",Yo="NUXT_PUBLIC_ORIGIN не совпадает с адресом вкладки. Откройте приложение по origin из конфига.",Ct="r3ui-sso-start-lock",Wt="r3ui-sso-auth-url";let Qe=!1;function Oo(){try{return sessionStorage.getItem(Ct)==="1"}catch{return!1}}function bo(){try{const e=sessionStorage.getItem(Wt);return typeof e=="string"&&e.length>0?e:null}catch{return null}}function Vr(){try{sessionStorage.setItem(Ct,"1")}catch{}}function To(e){try{sessionStorage.setItem(Wt,e)}catch{}}function Et(){Qe=!1;try{sessionStorage.removeItem(Ct),sessionStorage.removeItem(Wt)}catch{}}async function Ur(e){if(!e||typeof e.setLoading!="function")throw new Error("signInWithSSO: deps.setLoading обязателен");if(typeof e.getPublicConfig!="function")throw new Error("signInWithSSO: deps.getPublicConfig обязателен");if(typeof e.useCookie!="function")throw new Error("signInWithSSO: deps.useCookie обязателен");if(typeof e.showError!="function")throw new Error("signInWithSSO: deps.showError обязателен");if(typeof window>"u")return;const t=e.redirectTo??(c=>{window.location.href=c}),s={maxAge:300,sameSite:"lax",secure:(e.isSecure??(()=>window.location.protocol==="https:"))(),path:"/"},n=()=>{const c=e.useCookie("pkce_state",s).value;return typeof c=="string"&&c.length>0?c:null},a=()=>{const c=bo();return
|
|
10
|
+
d.version="2.30.1",as(M),d.fn=l,d.min=qn,d.max=Qn,d.now=Jn,d.utc=V,d.unix=Yi,d.months=bi,d.isDate=ye,d.locale=ee,d.invalid=Te,d.duration=I,d.isMoment=A,d.weekdays=xi,d.parseZone=Oi,d.localeData=Q,d.isDuration=Ue,d.monthsShort=Ti,d.weekdaysMin=Ni,d.defineLocale=_t,d.updateLocale=On,d.locales=bn,d.weekdaysShort=vi,d.normalizeUnits=W,d.relativeTimeRounding=so,d.relativeTimeThreshold=no,d.calendarFormat=Sa,d.prototype=l,d.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"};const io={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},Er=o.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(e){const t=e;return(r,s)=>(o.openBlock(),o.createElementBlock("footer",io,o.toDisplayString(t.copyrightText)+" "+o.toDisplayString(o.unref(d)().year()),1))}}),oo=o.defineComponent({__name:"LoginLayoutFrame",props:{loginText:{},brandText:{},copyrightText:{},mainClass:{default:"my-5"}},setup(e){const t=e;if(typeof t.loginText!="string")throw new Error("LoginLayoutFrame: loginText обязателен");if(!t.brandText.trim())throw new Error("LoginLayoutFrame: brandText обязателен");if(!t.copyrightText.trim())throw new Error("LoginLayoutFrame: copyrightText обязателен");return(r,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(At,{"is-authenticated":!1,"login-text":r.loginText,"raw-dropdown-links":[],"brand-text":r.brandText},{logo:o.withCtx(()=>[o.createVNode(Je)]),"language-selector":o.withCtx(()=>[o.renderSlot(r.$slots,"language-selector")]),_:3},8,["login-text","brand-text"]),o.createElementVNode("main",{class:o.normalizeClass(r.mainClass),style:{"min-height":"80vh"}},[o.renderSlot(r.$slots,"default")],2),o.createVNode(Er,{"copyright-text":r.copyrightText},null,8,["copyright-text"])],64))}}),lo={__name:"Spinner",props:{isSmall:{type:Boolean,default:!1}},setup(e){return(t,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["spinner-border",{"spinner-border-sm":e.isSmall}]),role:"status"},null,2))}},uo={class:"container","data-test":"SsoLoginPending"},co={class:"row justify-content-center"},fo={class:"col-md-8"},ho={class:"card"},mo={class:"card-header"},yo={class:"card-body"},_o={class:"login-spinner text-center",role:"status","aria-live":"polite"},go={class:"visually-hidden","data-test":"SsoLoginPending-status"},Rr=be(o.defineComponent({__name:"SsoLoginPending",props:{title:{},statusText:{}},setup(e){const t=e;if(!t.title.trim())throw new Error("SsoLoginPending: title обязателен");if(!t.statusText.trim())throw new Error("SsoLoginPending: statusText обязателен");return(r,s)=>(o.openBlock(),o.createElementBlock("div",uo,[o.createElementVNode("div",co,[o.createElementVNode("div",fo,[o.createElementVNode("div",ho,[o.createElementVNode("div",mo,o.toDisplayString(r.title),1),o.createElementVNode("div",yo,[o.createElementVNode("div",_o,[o.createVNode(lo),o.createElementVNode("span",go,o.toDisplayString(r.statusText),1)])])])])])]))}}),[["__scopeId","data-v-6eb41b83"]]),Ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";function Lr(){const e=globalThis.crypto;if(!e)throw new Error("Web Crypto API is not available.");if(!e.getRandomValues)throw new Error("Web Crypto getRandomValues is not available.");if(!e.subtle?.digest)throw new Error("Web Crypto subtle digest is not available.");return e}function Ir(e){const t=Lr(),r=new Uint8Array(e);t.getRandomValues(r);let s="";return r.forEach(n=>{s+=Ar[n%Ar.length]}),s}function wo(e){const t=new Uint8Array(e);let r="";return t.forEach(s=>{r+=String.fromCharCode(s)}),btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}function po(e=64){if(!Number.isInteger(e)||e<43||e>128)throw new Error("PKCE code_verifier length must be between 43 and 128.");return Ir(e)}async function ko(e){const t=Lr(),s=new TextEncoder().encode(e),n=await t.subtle.digest("SHA-256",s);return wo(n)}async function So(e=64){const t=po(e),r=await ko(t);return{codeVerifier:t,codeChallenge:r}}function Mo(e=32){if(!Number.isInteger(e)||e<16||e>128)throw new Error("OAuth state length must be between 16 and 128.");return Ir(e)}function qe(e){return Number.isInteger(e)&&Number(e)>=400&&Number(e)<600}function Nt(e,t=new Set){if(e==null)return;if(typeof e=="number")return qe(e)?e:void 0;if(typeof e!="object"||t.has(e))return;if(t.add(e),typeof Response<"u"&&e instanceof Response)return qe(e.status)?e.status:void 0;const r=e;if(qe(r.status))return r.status;if(qe(r.statusCode))return r.statusCode;const s=Nt(r.response,t);return s!==void 0?s:Nt(r.cause,t)}function Fr(e){return e===400?"Bad Request":e===401?"Unauthorized":e===403?"Forbidden":e===404?"Not Found":e===409?"Conflict":e===422?"Unprocessable Entity":e===429?"Too Many Requests":e===502?"Bad Gateway":e===503?"Service Unavailable":e===504?"Gateway Timeout":e>=500?"Internal Server Error":"Request failed"}function Pt(e,t=500){return Nt(e)??t}const Do="Web Crypto API недоступен. Используйте HTTPS или обновите браузер.",Yo="NUXT_PUBLIC_ORIGIN не совпадает с адресом вкладки. Откройте приложение по origin из конфига.",Ct="r3ui-sso-start-lock",Wt="r3ui-sso-auth-url";let Qe=!1;function Oo(){try{return sessionStorage.getItem(Ct)==="1"}catch{return!1}}function bo(){try{const e=sessionStorage.getItem(Wt);return typeof e=="string"&&e.length>0?e:null}catch{return null}}function Vr(){try{sessionStorage.setItem(Ct,"1")}catch{}}function To(e){try{sessionStorage.setItem(Wt,e)}catch{}}function Et(){Qe=!1;try{sessionStorage.removeItem(Ct),sessionStorage.removeItem(Wt)}catch{}}async function Ur(e){if(!e||typeof e.setLoading!="function")throw new Error("signInWithSSO: deps.setLoading обязателен");if(typeof e.getPublicConfig!="function")throw new Error("signInWithSSO: deps.getPublicConfig обязателен");if(typeof e.useCookie!="function")throw new Error("signInWithSSO: deps.useCookie обязателен");if(typeof e.showError!="function")throw new Error("signInWithSSO: deps.showError обязателен");if(typeof window>"u")return;const t=e.redirectTo??(c=>{window.location.href=c}),s={maxAge:300,sameSite:"lax",secure:(e.isSecure??(()=>window.location.protocol==="https:"))(),path:"/"},n=()=>{const c=e.useCookie("pkce_state",s).value;return typeof c=="string"&&c.length>0?c:null},a=()=>{const c=bo();return!n()||!c?!1:(Qe=!0,Vr(),t(c),!0)};if(Qe)return;if(Oo()){if(a())return;Et()}e.setLoading(!0);const i=e.generatePkcePair??So,u=e.generateState??Mo;try{const{authApiUrl:c,ssoClientId:m,origin:Y}=e.getPublicConfig();if(!c||!m)throw new Error("Не настроены CLIENT_ID или NUXT_AUTH_API_URL");if(typeof Y!="string"||Y!==window.location.origin){e.setLoading(!1),e.showError({statusCode:400,statusMessage:Yo});return}if(a()){e.setLoading(!1);return}Qe=!0,Vr();let x,F,Rt;try{({codeVerifier:x,codeChallenge:F}=await i()),Rt=u()}catch{Et(),e.setLoading(!1),e.showError({statusCode:500,statusMessage:Do});return}e.useCookie("pkce_verifier",s).value=x,e.useCookie("pkce_state",s).value=Rt;const vo=`${Y}/api/auth/callback`,Hr=`${c}/oauth/authorize?`+new URLSearchParams({client_id:m,redirect_uri:vo,response_type:"code",code_challenge:F,code_challenge_method:"S256",state:Rt});To(Hr),t(Hr)}catch(c){Et(),e.setLoading(!1);const m=Pt(c,500),Y=c instanceof Error&&c.message.trim()?c.message:Fr(m);e.showError({statusCode:m,statusMessage:Y,cause:c})}}const xo=o.defineComponent({__name:"SsoLoginScreen",props:{title:{},statusText:{},getPublicConfig:{type:Function},useCookie:{type:Function},showError:{type:Function}},setup(e){const t=e;if(!t.title.trim())throw new Error("SsoLoginScreen: title обязателен");if(!t.statusText.trim())throw new Error("SsoLoginScreen: statusText обязателен");if(typeof t.getPublicConfig!="function")throw new Error("SsoLoginScreen: getPublicConfig обязателен");if(typeof t.useCookie!="function")throw new Error("SsoLoginScreen: useCookie обязателен");if(typeof t.showError!="function")throw new Error("SsoLoginScreen: showError обязателен");return Ur({setLoading:()=>{},getPublicConfig:t.getPublicConfig,useCookie:t.useCookie,showError:t.showError}).catch(r=>{t.showError({statusCode:Pt(r,500),statusMessage:r instanceof Error&&r.message.trim()?r.message:Fr(Pt(r,500)),cause:r})}),(r,s)=>(o.openBlock(),o.createBlock(Rr,{title:r.title,"status-text":r.statusText},null,8,["title","status-text"]))}});N.Footer=Er,N.Header=At,N.LoginLayoutFrame=oo,N.Logo=Je,N.SsoLoginPending=Rr,N.SsoLoginScreen=xo,N.signInWithSSO=Ur,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
|