@vergelijkdirect/comparison-forms 1.2.18-rc.0 → 1.2.18-rc.2
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.
|
@@ -9998,8 +9998,11 @@ pe($o, "instance", new $o());
|
|
|
9998
9998
|
let ga = $o;
|
|
9999
9999
|
class wo {
|
|
10000
10000
|
static configure(e) {
|
|
10001
|
-
|
|
10002
|
-
|
|
10001
|
+
if (e) {
|
|
10002
|
+
const r = ga.instance;
|
|
10003
|
+
e.api && e.api.url && r.constant("vd-api-url", e.api.url), e.qa && e.qa.url && r.constant("qa-api-url", e.qa.url);
|
|
10004
|
+
} else
|
|
10005
|
+
console.warn("No environment were passed into comparison forms");
|
|
10003
10006
|
}
|
|
10004
10007
|
static getApiUrl() {
|
|
10005
10008
|
return ga.instance.get("vd-api-url") || va.api.url;
|
|
@@ -8,7 +8,7 @@ var nf;function P(){return nf.apply(null,arguments)}function P0(t){nf=t}function
|
|
|
8
8
|
[`+i+"] ";for(o in arguments[0])Q(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}sf(t+`
|
|
9
9
|
Arguments: `+Array.prototype.slice.call(n).join("")+`
|
|
10
10
|
`+new Error().stack),r=!1}return e.apply(this,arguments)},e)}var uf={};function lf(t,e){P.deprecationHandler!=null&&P.deprecationHandler(t,e),uf[t]||(sf(e),uf[t]=!0)}P.suppressDeprecationWarnings=!1,P.deprecationHandler=null;function Bt(t){return typeof Function!="undefined"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function R0(t){var e,r;for(r in t)Q(t,r)&&(e=t[r],Bt(e)?this[r]=e:this["_"+r]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function yu(t,e){var r=gr({},t),n;for(n in e)Q(e,n)&&(Lr(t[n])&&Lr(e[n])?(r[n]={},gr(r[n],t[n]),gr(r[n],e[n])):e[n]!=null?r[n]=e[n]:delete r[n]);for(n in t)Q(t,n)&&!Q(e,n)&&Lr(t[n])&&(r[n]=gr({},r[n]));return r}function _u(t){t!=null&&this.set(t)}var bu;Object.keys?bu=Object.keys:bu=function(t){var e,r=[];for(e in t)Q(t,e)&&r.push(e);return r};var T0={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function E0(t,e,r){var n=this._calendar[t]||this._calendar.sameElse;return Bt(n)?n.call(e,r):n}function qt(t,e,r){var n=""+Math.abs(t),a=e-n.length,i=t>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var wu=/(\[[^\[]*\])|(\\)?([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,Bi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Su={},sn={};function N(t,e,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),t&&(sn[t]=a),e&&(sn[e[0]]=function(){return qt(a.apply(this,arguments),e[1],e[2])}),r&&(sn[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function A0(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function M0(t){var e=t.match(wu),r,n;for(r=0,n=e.length;r<n;r++)sn[e[r]]?e[r]=sn[e[r]]:e[r]=A0(e[r]);return function(a){var i="",o;for(o=0;o<n;o++)i+=Bt(e[o])?e[o].call(a,t):e[o];return i}}function qi(t,e){return t.isValid()?(e=cf(e,t.localeData()),Su[e]=Su[e]||M0(e),Su[e](t)):t.localeData().invalidDate()}function cf(t,e){var r=5;function n(a){return e.longDateFormat(a)||a}for(Bi.lastIndex=0;r>=0&&Bi.test(t);)t=t.replace(Bi,n),Bi.lastIndex=0,r-=1;return t}var N0={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 I0(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()];return e||!r?e:(this._longDateFormat[t]=r.match(wu).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[t])}var F0="Invalid date";function j0(){return this._invalidDate}var $0="%d",L0=/\d{1,2}/;function B0(t){return this._ordinal.replace("%d",t)}var q0={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 H0(t,e,r,n){var a=this._relativeTime[r];return Bt(a)?a(t,e,r,n):a.replace(/%d/i,t)}function z0(t,e){var r=this._relativeTime[t>0?"future":"past"];return Bt(r)?r(e):r.replace(/%s/i,e)}var df={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 pt(t){return typeof t=="string"?df[t]||df[t.toLowerCase()]:void 0}function Cu(t){var e={},r,n;for(n in t)Q(t,n)&&(r=pt(n),r&&(e[r]=t[n]));return e}var V0={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 U0(t){var e=[],r;for(r in t)Q(t,r)&&e.push({unit:r,priority:V0[r]});return e.sort(function(n,a){return n.priority-a.priority}),e}var ff=/\d/,rt=/\d\d/,pf=/\d{3}/,Ou=/\d{4}/,Hi=/[+-]?\d{6}/,de=/\d\d?/,hf=/\d\d\d\d?/,mf=/\d\d\d\d\d\d?/,zi=/\d{1,3}/,ku=/\d{1,4}/,Vi=/[+-]?\d{1,6}/,un=/\d+/,Ui=/[+-]?\d+/,Y0=/Z|[+-]\d\d:?\d\d/gi,Yi=/Z|[+-]\d\d(?::?\d\d)?/gi,W0=/[+-]?\d+(\.\d{1,3})?/,Kn=/[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,ln=/^[1-9]\d?/,xu=/^([1-9]\d|\d)/,Wi;Wi={};function R(t,e,r){Wi[t]=Bt(e)?e:function(n,a){return n&&r?r:e}}function G0(t,e){return Q(Wi,t)?Wi[t](e._strict,e._locale):new RegExp(Z0(t))}function Z0(t){return rr(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,r,n,a,i){return r||n||a||i}))}function rr(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ht(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function U(t){var e=+t,r=0;return e!==0&&isFinite(e)&&(r=ht(e)),r}var Pu={};function ie(t,e){var r,n=e,a;for(typeof t=="string"&&(t=[t]),tr(e)&&(n=function(i,o){o[e]=U(i)}),a=t.length,r=0;r<a;r++)Pu[t[r]]=n}function Xn(t,e){ie(t,function(r,n,a,i){a._w=a._w||{},e(r,a._w,a,i)})}function K0(t,e,r){e!=null&&Q(Pu,t)&&Pu[t](e,r._a,r,t)}function Gi(t){return t%4===0&&t%100!==0||t%400===0}var Ye=0,nr=1,Ht=2,Me=3,Pt=4,ar=5,Br=6,X0=7,J0=8;N("Y",0,0,function(){var t=this.year();return t<=9999?qt(t,4):"+"+t}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),R("Y",Ui),R("YY",de,rt),R("YYYY",ku,Ou),R("YYYYY",Vi,Hi),R("YYYYYY",Vi,Hi),ie(["YYYYY","YYYYYY"],Ye),ie("YYYY",function(t,e){e[Ye]=t.length===2?P.parseTwoDigitYear(t):U(t)}),ie("YY",function(t,e){e[Ye]=P.parseTwoDigitYear(t)}),ie("Y",function(t,e){e[Ye]=parseInt(t,10)});function Jn(t){return Gi(t)?366:365}P.parseTwoDigitYear=function(t){return U(t)+(U(t)>68?1900:2e3)};var vf=cn("FullYear",!0);function Q0(){return Gi(this.year())}function cn(t,e){return function(r){return r!=null?(gf(this,t,r),P.updateOffset(this,e),this):Qn(this,t)}}function Qn(t,e){if(!t.isValid())return NaN;var r=t._d,n=t._isUTC;switch(e){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function gf(t,e,r){var n,a,i,o,u;if(!(!t.isValid()||isNaN(r))){switch(n=t._d,a=t._isUTC,e){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,o=t.month(),u=t.date(),u=u===29&&o===1&&!Gi(i)?28:u,a?n.setUTCFullYear(i,o,u):n.setFullYear(i,o,u)}}function eS(t){return t=pt(t),Bt(this[t])?this[t]():this}function tS(t,e){if(typeof t=="object"){t=Cu(t);var r=U0(t),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](t[r[n].unit])}else if(t=pt(t),Bt(this[t]))return this[t](e);return this}function rS(t,e){return(t%e+e)%e}var Pe;Array.prototype.indexOf?Pe=Array.prototype.indexOf:Pe=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function Du(t,e){if(isNaN(t)||isNaN(e))return NaN;var r=rS(e,12);return t+=(e-r)/12,r===1?Gi(t)?29:28:31-r%7%2}N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),N("MMMM",0,0,function(t){return this.localeData().months(this,t)}),R("M",de,ln),R("MM",de,rt),R("MMM",function(t,e){return e.monthsShortRegex(t)}),R("MMMM",function(t,e){return e.monthsRegex(t)}),ie(["M","MM"],function(t,e){e[nr]=U(t)-1}),ie(["MMM","MMMM"],function(t,e,r,n){var a=r._locale.monthsParse(t,n,r._strict);a!=null?e[nr]=a:B(r).invalidMonth=t});var nS="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),yf="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_f=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,aS=Kn,iS=Kn;function oS(t,e){return t?kt(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||_f).test(e)?"format":"standalone"][t.month()]:kt(this._months)?this._months:this._months.standalone}function sS(t,e){return t?kt(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[_f.test(e)?"format":"standalone"][t.month()]:kt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function uS(t,e,r){var n,a,i,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=Lt([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?e==="MMM"?(a=Pe.call(this._shortMonthsParse,o),a!==-1?a:null):(a=Pe.call(this._longMonthsParse,o),a!==-1?a:null):e==="MMM"?(a=Pe.call(this._shortMonthsParse,o),a!==-1?a:(a=Pe.call(this._longMonthsParse,o),a!==-1?a:null)):(a=Pe.call(this._longMonthsParse,o),a!==-1?a:(a=Pe.call(this._shortMonthsParse,o),a!==-1?a:null))}function lS(t,e,r){var n,a,i;if(this._monthsParseExact)return uS.call(this,t,e,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=Lt([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&e==="MMMM"&&this._longMonthsParse[n].test(t))return n;if(r&&e==="MMM"&&this._shortMonthsParse[n].test(t))return n;if(!r&&this._monthsParse[n].test(t))return n}}function bf(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=U(e);else if(e=t.localeData().monthsParse(e),!tr(e))return t}var r=e,n=t.date();return n=n<29?n:Math.min(n,Du(t.year(),r)),t._isUTC?t._d.setUTCMonth(r,n):t._d.setMonth(r,n),t}function wf(t){return t!=null?(bf(this,t),P.updateOffset(this,!0),this):Qn(this,"Month")}function cS(){return Du(this.year(),this.month())}function dS(t){return this._monthsParseExact?(Q(this,"_monthsRegex")||Sf.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(Q(this,"_monthsShortRegex")||(this._monthsShortRegex=aS),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function fS(t){return this._monthsParseExact?(Q(this,"_monthsRegex")||Sf.call(this),t?this._monthsStrictRegex:this._monthsRegex):(Q(this,"_monthsRegex")||(this._monthsRegex=iS),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function Sf(){function t(c,l){return l.length-c.length}var e=[],r=[],n=[],a,i,o,u;for(a=0;a<12;a++)i=Lt([2e3,a]),o=rr(this.monthsShort(i,"")),u=rr(this.months(i,"")),e.push(o),r.push(u),n.push(u),n.push(o);e.sort(t),r.sort(t),n.sort(t),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function pS(t,e,r,n,a,i,o){var u;return t<100&&t>=0?(u=new Date(t+400,e,r,n,a,i,o),isFinite(u.getFullYear())&&u.setFullYear(t)):u=new Date(t,e,r,n,a,i,o),u}function ea(t){var e,r;return t<100&&t>=0?(r=Array.prototype.slice.call(arguments),r[0]=t+400,e=new Date(Date.UTC.apply(null,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Zi(t,e,r){var n=7+e-r,a=(7+ea(t,0,n).getUTCDay()-e)%7;return-a+n-1}function Cf(t,e,r,n,a){var i=(7+r-n)%7,o=Zi(t,n,a),u=1+7*(e-1)+i+o,c,l;return u<=0?(c=t-1,l=Jn(c)+u):u>Jn(t)?(c=t+1,l=u-Jn(t)):(c=t,l=u),{year:c,dayOfYear:l}}function ta(t,e,r){var n=Zi(t.year(),e,r),a=Math.floor((t.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=t.year()-1,i=a+ir(o,e,r)):a>ir(t.year(),e,r)?(i=a-ir(t.year(),e,r),o=t.year()+1):(o=t.year(),i=a),{week:i,year:o}}function ir(t,e,r){var n=Zi(t,e,r),a=Zi(t+1,e,r);return(Jn(t)-n+a)/7}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),R("w",de,ln),R("ww",de,rt),R("W",de,ln),R("WW",de,rt),Xn(["w","ww","W","WW"],function(t,e,r,n){e[n.substr(0,1)]=U(t)});function hS(t){return ta(t,this._week.dow,this._week.doy).week}var mS={dow:0,doy:6};function vS(){return this._week.dow}function gS(){return this._week.doy}function yS(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function _S(t){var e=ta(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}N("d",0,"do","day"),N("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),N("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),N("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),R("d",de),R("e",de),R("E",de),R("dd",function(t,e){return e.weekdaysMinRegex(t)}),R("ddd",function(t,e){return e.weekdaysShortRegex(t)}),R("dddd",function(t,e){return e.weekdaysRegex(t)}),Xn(["dd","ddd","dddd"],function(t,e,r,n){var a=r._locale.weekdaysParse(t,n,r._strict);a!=null?e.d=a:B(r).invalidWeekday=t}),Xn(["d","e","E"],function(t,e,r,n){e[n]=U(t)});function bS(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function wS(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ru(t,e){return t.slice(e,7).concat(t.slice(0,e))}var SS="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Of="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),CS="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),OS=Kn,kS=Kn,xS=Kn;function PS(t,e){var r=kt(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?Ru(r,this._week.dow):t?r[t.day()]:r}function DS(t){return t===!0?Ru(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function RS(t){return t===!0?Ru(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function TS(t,e,r){var n,a,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=Lt([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?e==="dddd"?(a=Pe.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=Pe.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=Pe.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=Pe.call(this._weekdaysParse,o),a!==-1||(a=Pe.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=Pe.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=Pe.call(this._shortWeekdaysParse,o),a!==-1||(a=Pe.call(this._weekdaysParse,o),a!==-1)?a:(a=Pe.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=Pe.call(this._minWeekdaysParse,o),a!==-1||(a=Pe.call(this._weekdaysParse,o),a!==-1)?a:(a=Pe.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function ES(t,e,r){var n,a,i;if(this._weekdaysParseExact)return TS.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=Lt([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&e==="dddd"&&this._fullWeekdaysParse[n].test(t))return n;if(r&&e==="ddd"&&this._shortWeekdaysParse[n].test(t))return n;if(r&&e==="dd"&&this._minWeekdaysParse[n].test(t))return n;if(!r&&this._weekdaysParse[n].test(t))return n}}function AS(t){if(!this.isValid())return t!=null?this:NaN;var e=Qn(this,"Day");return t!=null?(t=bS(t,this.localeData()),this.add(t-e,"d")):e}function MS(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function NS(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=wS(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function IS(t){return this._weekdaysParseExact?(Q(this,"_weekdaysRegex")||Tu.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(Q(this,"_weekdaysRegex")||(this._weekdaysRegex=OS),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function FS(t){return this._weekdaysParseExact?(Q(this,"_weekdaysRegex")||Tu.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Q(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kS),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function jS(t){return this._weekdaysParseExact?(Q(this,"_weekdaysRegex")||Tu.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Q(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xS),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Tu(){function t(s,d){return d.length-s.length}var e=[],r=[],n=[],a=[],i,o,u,c,l;for(i=0;i<7;i++)o=Lt([2e3,1]).day(i),u=rr(this.weekdaysMin(o,"")),c=rr(this.weekdaysShort(o,"")),l=rr(this.weekdays(o,"")),e.push(u),r.push(c),n.push(l),a.push(u),a.push(c),a.push(l);e.sort(t),r.sort(t),n.sort(t),a.sort(t),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Eu(){return this.hours()%12||12}function $S(){return this.hours()||24}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Eu),N("k",["kk",2],0,$S),N("hmm",0,0,function(){return""+Eu.apply(this)+qt(this.minutes(),2)}),N("hmmss",0,0,function(){return""+Eu.apply(this)+qt(this.minutes(),2)+qt(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+qt(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+qt(this.minutes(),2)+qt(this.seconds(),2)});function kf(t,e){N(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}kf("a",!0),kf("A",!1);function xf(t,e){return e._meridiemParse}R("a",xf),R("A",xf),R("H",de,xu),R("h",de,ln),R("k",de,ln),R("HH",de,rt),R("hh",de,rt),R("kk",de,rt),R("hmm",hf),R("hmmss",mf),R("Hmm",hf),R("Hmmss",mf),ie(["H","HH"],Me),ie(["k","kk"],function(t,e,r){var n=U(t);e[Me]=n===24?0:n}),ie(["a","A"],function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t}),ie(["h","hh"],function(t,e,r){e[Me]=U(t),B(r).bigHour=!0}),ie("hmm",function(t,e,r){var n=t.length-2;e[Me]=U(t.substr(0,n)),e[Pt]=U(t.substr(n)),B(r).bigHour=!0}),ie("hmmss",function(t,e,r){var n=t.length-4,a=t.length-2;e[Me]=U(t.substr(0,n)),e[Pt]=U(t.substr(n,2)),e[ar]=U(t.substr(a)),B(r).bigHour=!0}),ie("Hmm",function(t,e,r){var n=t.length-2;e[Me]=U(t.substr(0,n)),e[Pt]=U(t.substr(n))}),ie("Hmmss",function(t,e,r){var n=t.length-4,a=t.length-2;e[Me]=U(t.substr(0,n)),e[Pt]=U(t.substr(n,2)),e[ar]=U(t.substr(a))});function LS(t){return(t+"").toLowerCase().charAt(0)==="p"}var BS=/[ap]\.?m?\.?/i,qS=cn("Hours",!0);function HS(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"}var Pf={calendar:T0,longDateFormat:N0,invalidDate:F0,ordinal:$0,dayOfMonthOrdinalParse:L0,relativeTime:q0,months:nS,monthsShort:yf,week:mS,weekdays:SS,weekdaysMin:CS,weekdaysShort:Of,meridiemParse:BS},ye={},ra={},na;function zS(t,e){var r,n=Math.min(t.length,e.length);for(r=0;r<n;r+=1)if(t[r]!==e[r])return r;return n}function Df(t){return t&&t.toLowerCase().replace("_","-")}function VS(t){for(var e=0,r,n,a,i;e<t.length;){for(i=Df(t[e]).split("-"),r=i.length,n=Df(t[e+1]),n=n?n.split("-"):null;r>0;){if(a=Ki(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&zS(i,n)>=r-1)break;r--}e++}return na}function US(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Ki(t){var e=null,r;if(ye[t]===void 0&&typeof module!="undefined"&&module&&module.exports&&US(t))try{e=na._abbr,r=require,r("./locale/"+t),yr(e)}catch(n){ye[t]=null}return ye[t]}function yr(t,e){var r;return t&&(Je(e)?r=or(t):r=Au(t,e),r?na=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),na._abbr}function Au(t,e){if(e!==null){var r,n=Pf;if(e.abbr=t,ye[t]!=null)lf("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ye[t]._config;else if(e.parentLocale!=null)if(ye[e.parentLocale]!=null)n=ye[e.parentLocale]._config;else if(r=Ki(e.parentLocale),r!=null)n=r._config;else return ra[e.parentLocale]||(ra[e.parentLocale]=[]),ra[e.parentLocale].push({name:t,config:e}),null;return ye[t]=new _u(yu(n,e)),ra[t]&&ra[t].forEach(function(a){Au(a.name,a.config)}),yr(t),ye[t]}else return delete ye[t],null}function YS(t,e){if(e!=null){var r,n,a=Pf;ye[t]!=null&&ye[t].parentLocale!=null?ye[t].set(yu(ye[t]._config,e)):(n=Ki(t),n!=null&&(a=n._config),e=yu(a,e),n==null&&(e.abbr=t),r=new _u(e),r.parentLocale=ye[t],ye[t]=r),yr(t)}else ye[t]!=null&&(ye[t].parentLocale!=null?(ye[t]=ye[t].parentLocale,t===yr()&&yr(t)):ye[t]!=null&&delete ye[t]);return ye[t]}function or(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return na;if(!kt(t)){if(e=Ki(t),e)return e;t=[t]}return VS(t)}function WS(){return bu(ye)}function Mu(t){var e,r=t._a;return r&&B(t).overflow===-2&&(e=r[nr]<0||r[nr]>11?nr:r[Ht]<1||r[Ht]>Du(r[Ye],r[nr])?Ht:r[Me]<0||r[Me]>24||r[Me]===24&&(r[Pt]!==0||r[ar]!==0||r[Br]!==0)?Me:r[Pt]<0||r[Pt]>59?Pt:r[ar]<0||r[ar]>59?ar:r[Br]<0||r[Br]>999?Br:-1,B(t)._overflowDayOfYear&&(e<Ye||e>Ht)&&(e=Ht),B(t)._overflowWeeks&&e===-1&&(e=X0),B(t)._overflowWeekday&&e===-1&&(e=J0),B(t).overflow=e),t}var GS=/^\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)?)?$/,ZS=/^\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)?)?$/,KS=/Z|[+-]\d\d(?::?\d\d)?/,Xi=[["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]],Nu=[["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/]],XS=/^\/?Date\((-?\d+)/i,JS=/^(?:(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}))$/,QS={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 Rf(t){var e,r,n=t._i,a=GS.exec(n)||ZS.exec(n),i,o,u,c,l=Xi.length,s=Nu.length;if(a){for(B(t).iso=!0,e=0,r=l;e<r;e++)if(Xi[e][1].exec(a[1])){o=Xi[e][0],i=Xi[e][2]!==!1;break}if(o==null){t._isValid=!1;return}if(a[3]){for(e=0,r=s;e<r;e++)if(Nu[e][1].exec(a[3])){u=(a[2]||" ")+Nu[e][0];break}if(u==null){t._isValid=!1;return}}if(!i&&u!=null){t._isValid=!1;return}if(a[4])if(KS.exec(a[4]))c="Z";else{t._isValid=!1;return}t._f=o+(u||"")+(c||""),Fu(t)}else t._isValid=!1}function eC(t,e,r,n,a,i){var o=[tC(t),yf.indexOf(e),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function tC(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function rC(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function nC(t,e,r){if(t){var n=Of.indexOf(t),a=new Date(e[0],e[1],e[2]).getDay();if(n!==a)return B(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function aC(t,e,r){if(t)return QS[t];if(e)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function Tf(t){var e=JS.exec(rC(t._i)),r;if(e){if(r=eC(e[4],e[3],e[2],e[5],e[6],e[7]),!nC(e[1],r,t))return;t._a=r,t._tzm=aC(e[8],e[9],e[10]),t._d=ea.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),B(t).rfc2822=!0}else t._isValid=!1}function iC(t){var e=XS.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(Rf(t),t._isValid===!1)delete t._isValid;else return;if(Tf(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:P.createFromInputFallback(t)}P.createFromInputFallback=ft("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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function dn(t,e,r){return t!=null?t:e!=null?e:r}function oC(t){var e=new Date(P.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Iu(t){var e,r,n=[],a,i,o;if(!t._d){for(a=oC(t),t._w&&t._a[Ht]==null&&t._a[nr]==null&&sC(t),t._dayOfYear!=null&&(o=dn(t._a[Ye],a[Ye]),(t._dayOfYear>Jn(o)||t._dayOfYear===0)&&(B(t)._overflowDayOfYear=!0),r=ea(o,0,t._dayOfYear),t._a[nr]=r.getUTCMonth(),t._a[Ht]=r.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=n[e]=a[e];for(;e<7;e++)t._a[e]=n[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[Me]===24&&t._a[Pt]===0&&t._a[ar]===0&&t._a[Br]===0&&(t._nextDay=!0,t._a[Me]=0),t._d=(t._useUTC?ea:pS).apply(null,n),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Me]=24),t._w&&typeof t._w.d!="undefined"&&t._w.d!==i&&(B(t).weekdayMismatch=!0)}}function sC(t){var e,r,n,a,i,o,u,c,l;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,r=dn(e.GG,t._a[Ye],ta(fe(),1,4).year),n=dn(e.W,1),a=dn(e.E,1),(a<1||a>7)&&(c=!0)):(i=t._locale._week.dow,o=t._locale._week.doy,l=ta(fe(),i,o),r=dn(e.gg,t._a[Ye],l.year),n=dn(e.w,l.week),e.d!=null?(a=e.d,(a<0||a>6)&&(c=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(c=!0)):a=i),n<1||n>ir(r,i,o)?B(t)._overflowWeeks=!0:c!=null?B(t)._overflowWeekday=!0:(u=Cf(r,n,a,i,o),t._a[Ye]=u.year,t._dayOfYear=u.dayOfYear)}P.ISO_8601=function(){},P.RFC_2822=function(){};function Fu(t){if(t._f===P.ISO_8601){Rf(t);return}if(t._f===P.RFC_2822){Tf(t);return}t._a=[],B(t).empty=!0;var e=""+t._i,r,n,a,i,o,u=e.length,c=0,l,s;for(a=cf(t._f,t._locale).match(wu)||[],s=a.length,r=0;r<s;r++)i=a[r],n=(e.match(G0(i,t))||[])[0],n&&(o=e.substr(0,e.indexOf(n)),o.length>0&&B(t).unusedInput.push(o),e=e.slice(e.indexOf(n)+n.length),c+=n.length),sn[i]?(n?B(t).empty=!1:B(t).unusedTokens.push(i),K0(i,n,t)):t._strict&&!n&&B(t).unusedTokens.push(i);B(t).charsLeftOver=u-c,e.length>0&&B(t).unusedInput.push(e),t._a[Me]<=12&&B(t).bigHour===!0&&t._a[Me]>0&&(B(t).bigHour=void 0),B(t).parsedDateParts=t._a.slice(0),B(t).meridiem=t._meridiem,t._a[Me]=uC(t._locale,t._a[Me],t._meridiem),l=B(t).era,l!==null&&(t._a[Ye]=t._locale.erasConvertYear(l,t._a[Ye])),Iu(t),Mu(t)}function uC(t,e,r){var n;return r==null?e:t.meridiemHour!=null?t.meridiemHour(e,r):(t.isPM!=null&&(n=t.isPM(r),n&&e<12&&(e+=12),!n&&e===12&&(e=0)),e)}function lC(t){var e,r,n,a,i,o,u=!1,c=t._f.length;if(c===0){B(t).invalidFormat=!0,t._d=new Date(NaN);return}for(a=0;a<c;a++)i=0,o=!1,e=gu({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[a],Fu(e),mu(e)&&(o=!0),i+=B(e).charsLeftOver,i+=B(e).unusedTokens.length*10,B(e).score=i,u?i<n&&(n=i,r=e):(n==null||i<n||o)&&(n=i,r=e,o&&(u=!0));gr(t,r||e)}function cC(t){if(!t._d){var e=Cu(t._i),r=e.day===void 0?e.date:e.day;t._a=af([e.year,e.month,r,e.hour,e.minute,e.second,e.millisecond],function(n){return n&&parseInt(n,10)}),Iu(t)}}function dC(t){var e=new Zn(Mu(Ef(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Ef(t){var e=t._i,r=t._f;return t._locale=t._locale||or(t._l),e===null||r===void 0&&e===""?Li({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),xt(e)?new Zn(Mu(e)):(Gn(e)?t._d=e:kt(r)?lC(t):r?Fu(t):fC(t),mu(t)||(t._d=null),t))}function fC(t){var e=t._i;Je(e)?t._d=new Date(P.now()):Gn(e)?t._d=new Date(e.valueOf()):typeof e=="string"?iC(t):kt(e)?(t._a=af(e.slice(0),function(r){return parseInt(r,10)}),Iu(t)):Lr(e)?cC(t):tr(e)?t._d=new Date(e):P.createFromInputFallback(t)}function Af(t,e,r,n,a){var i={};return(e===!0||e===!1)&&(n=e,e=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Lr(t)&&pu(t)||kt(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=t,i._f=e,i._strict=n,dC(i)}function fe(t,e,r,n){return Af(t,e,r,n,!1)}var pC=ft("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=fe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Li()}),hC=ft("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=fe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Li()});function Mf(t,e){var r,n;if(e.length===1&&kt(e[0])&&(e=e[0]),!e.length)return fe();for(r=e[0],n=1;n<e.length;++n)(!e[n].isValid()||e[n][t](r))&&(r=e[n]);return r}function mC(){var t=[].slice.call(arguments,0);return Mf("isBefore",t)}function vC(){var t=[].slice.call(arguments,0);return Mf("isAfter",t)}var gC=function(){return Date.now?Date.now():+new Date},aa=["year","quarter","month","week","day","hour","minute","second","millisecond"];function yC(t){var e,r=!1,n,a=aa.length;for(e in t)if(Q(t,e)&&!(Pe.call(aa,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(n=0;n<a;++n)if(t[aa[n]]){if(r)return!1;parseFloat(t[aa[n]])!==U(t[aa[n]])&&(r=!0)}return!0}function _C(){return this._isValid}function bC(){return Dt(NaN)}function Ji(t){var e=Cu(t),r=e.year||0,n=e.quarter||0,a=e.month||0,i=e.week||e.isoWeek||0,o=e.day||0,u=e.hour||0,c=e.minute||0,l=e.second||0,s=e.millisecond||0;this._isValid=yC(e),this._milliseconds=+s+l*1e3+c*6e4+u*1e3*60*60,this._days=+o+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=or(),this._bubble()}function Qi(t){return t instanceof Ji}function ju(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function wC(t,e,r){var n=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),i=0,o;for(o=0;o<n;o++)(r&&t[o]!==e[o]||!r&&U(t[o])!==U(e[o]))&&i++;return i+a}function Nf(t,e){N(t,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+qt(~~(r/60),2)+e+qt(~~r%60,2)})}Nf("Z",":"),Nf("ZZ",""),R("Z",Yi),R("ZZ",Yi),ie(["Z","ZZ"],function(t,e,r){r._useUTC=!0,r._tzm=$u(Yi,t)});var SC=/([\+\-]|\d\d)/gi;function $u(t,e){var r=(e||"").match(t),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(SC)||["-",0,0],i=+(a[1]*60)+U(a[2]),i===0?0:a[0]==="+"?i:-i)}function Lu(t,e){var r,n;return e._isUTC?(r=e.clone(),n=(xt(t)||Gn(t)?t.valueOf():fe(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),P.updateOffset(r,!1),r):fe(t).local()}function Bu(t){return-Math.round(t._d.getTimezoneOffset())}P.updateOffset=function(){};function CC(t,e,r){var n=this._offset||0,a;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=$u(Yi,t),t===null)return this}else Math.abs(t)<16&&!r&&(t=t*60);return!this._isUTC&&e&&(a=Bu(this)),this._offset=t,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==t&&(!e||this._changeInProgress?$f(this,Dt(t-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,P.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:Bu(this)}function OC(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function kC(t){return this.utcOffset(0,t)}function xC(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Bu(this),"m")),this}function PC(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=$u(Y0,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function DC(t){return this.isValid()?(t=t?fe(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function RC(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function TC(){if(!Je(this._isDSTShifted))return this._isDSTShifted;var t={},e;return gu(t,this),t=Ef(t),t._a?(e=t._isUTC?Lt(t._a):fe(t._a),this._isDSTShifted=this.isValid()&&wC(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function EC(){return this.isValid()?!this._isUTC:!1}function AC(){return this.isValid()?this._isUTC:!1}function If(){return this.isValid()?this._isUTC&&this._offset===0:!1}var MC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,NC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dt(t,e){var r=t,n=null,a,i,o;return Qi(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:tr(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(n=MC.exec(t))?(a=n[1]==="-"?-1:1,r={y:0,d:U(n[Ht])*a,h:U(n[Me])*a,m:U(n[Pt])*a,s:U(n[ar])*a,ms:U(ju(n[Br]*1e3))*a}):(n=NC.exec(t))?(a=n[1]==="-"?-1:1,r={y:qr(n[2],a),M:qr(n[3],a),w:qr(n[4],a),d:qr(n[5],a),h:qr(n[6],a),m:qr(n[7],a),s:qr(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=IC(fe(r.from),fe(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new Ji(r),Qi(t)&&Q(t,"_locale")&&(i._locale=t._locale),Qi(t)&&Q(t,"_isValid")&&(i._isValid=t._isValid),i}Dt.fn=Ji.prototype,Dt.invalid=bC;function qr(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function Ff(t,e){var r={};return r.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function IC(t,e){var r;return t.isValid()&&e.isValid()?(e=Lu(e,t),t.isBefore(e)?r=Ff(t,e):(r=Ff(e,t),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function jf(t,e){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(lf(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=Dt(r,n),$f(this,a,t),this}}function $f(t,e,r,n){var a=e._milliseconds,i=ju(e._days),o=ju(e._months);t.isValid()&&(n=n==null?!0:n,o&&bf(t,Qn(t,"Month")+o*r),i&&gf(t,"Date",Qn(t,"Date")+i*r),a&&t._d.setTime(t._d.valueOf()+a*r),n&&P.updateOffset(t,i||o))}var FC=jf(1,"add"),jC=jf(-1,"subtract");function Lf(t){return typeof t=="string"||t instanceof String}function $C(t){return xt(t)||Gn(t)||Lf(t)||tr(t)||BC(t)||LC(t)||t===null||t===void 0}function LC(t){var e=Lr(t)&&!pu(t),r=!1,n=["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,i,o=n.length;for(a=0;a<o;a+=1)i=n[a],r=r||Q(t,i);return e&&r}function BC(t){var e=kt(t),r=!1;return e&&(r=t.filter(function(n){return!tr(n)&&Lf(t)}).length===0),e&&r}function qC(t){var e=Lr(t)&&!pu(t),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||Q(t,i);return e&&r}function HC(t,e){var r=t.diff(e,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function zC(t,e){arguments.length===1&&(arguments[0]?$C(arguments[0])?(t=arguments[0],e=void 0):qC(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var r=t||fe(),n=Lu(r,this).startOf("day"),a=P.calendarFormat(this,n)||"sameElse",i=e&&(Bt(e[a])?e[a].call(this,r):e[a]);return this.format(i||this.localeData().calendar(a,this,fe(r)))}function VC(){return new Zn(this)}function UC(t,e){var r=xt(t)?t:fe(t);return this.isValid()&&r.isValid()?(e=pt(e)||"millisecond",e==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(e).valueOf()):!1}function YC(t,e){var r=xt(t)?t:fe(t);return this.isValid()&&r.isValid()?(e=pt(e)||"millisecond",e==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(e).valueOf()<r.valueOf()):!1}function WC(t,e,r,n){var a=xt(t)?t:fe(t),i=xt(e)?e:fe(e);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function GC(t,e){var r=xt(t)?t:fe(t),n;return this.isValid()&&r.isValid()?(e=pt(e)||"millisecond",e==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf())):!1}function ZC(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function KC(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function XC(t,e,r){var n,a,i;if(!this.isValid())return NaN;if(n=Lu(t,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,e=pt(e),e){case"year":i=eo(this,n)/12;break;case"month":i=eo(this,n);break;case"quarter":i=eo(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:ht(i)}function eo(t,e){if(t.date()<e.date())return-eo(e,t);var r=(e.year()-t.year())*12+(e.month()-t.month()),n=t.clone().add(r,"months"),a,i;return e-n<0?(a=t.clone().add(r-1,"months"),i=(e-n)/(n-a)):(a=t.clone().add(r+1,"months"),i=(e-n)/(a-n)),-(r+i)||0}P.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",P.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function JC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function QC(t){if(!this.isValid())return null;var e=t!==!0,r=e?this.clone().utc():this;return r.year()<0||r.year()>9999?qi(r,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Bt(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",qi(r,"Z")):qi(r,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eO(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",r,n,a,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),r="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(r+n+a+i)}function tO(t){t||(t=this.isUtc()?P.defaultFormatUtc:P.defaultFormat);var e=qi(this,t);return this.localeData().postformat(e)}function rO(t,e){return this.isValid()&&(xt(t)&&t.isValid()||fe(t).isValid())?Dt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function nO(t){return this.from(fe(),t)}function aO(t,e){return this.isValid()&&(xt(t)&&t.isValid()||fe(t).isValid())?Dt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function iO(t){return this.to(fe(),t)}function Bf(t){var e;return t===void 0?this._locale._abbr:(e=or(t),e!=null&&(this._locale=e),this)}var qf=ft("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function Hf(){return this._locale}var to=1e3,fn=60*to,ro=60*fn,zf=(365*400+97)*24*ro;function pn(t,e){return(t%e+e)%e}function Vf(t,e,r){return t<100&&t>=0?new Date(t+400,e,r)-zf:new Date(t,e,r).valueOf()}function Uf(t,e,r){return t<100&&t>=0?Date.UTC(t+400,e,r)-zf:Date.UTC(t,e,r)}function oO(t){var e,r;if(t=pt(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Uf:Vf,t){case"year":e=r(this.year(),0,1);break;case"quarter":e=r(this.year(),this.month()-this.month()%3,1);break;case"month":e=r(this.year(),this.month(),1);break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=r(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=pn(e+(this._isUTC?0:this.utcOffset()*fn),ro);break;case"minute":e=this._d.valueOf(),e-=pn(e,fn);break;case"second":e=this._d.valueOf(),e-=pn(e,to);break}return this._d.setTime(e),P.updateOffset(this,!0),this}function sO(t){var e,r;if(t=pt(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Uf:Vf,t){case"year":e=r(this.year()+1,0,1)-1;break;case"quarter":e=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=r(this.year(),this.month()+1,1)-1;break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=ro-pn(e+(this._isUTC?0:this.utcOffset()*fn),ro)-1;break;case"minute":e=this._d.valueOf(),e+=fn-pn(e,fn)-1;break;case"second":e=this._d.valueOf(),e+=to-pn(e,to)-1;break}return this._d.setTime(e),P.updateOffset(this,!0),this}function uO(){return this._d.valueOf()-(this._offset||0)*6e4}function lO(){return Math.floor(this.valueOf()/1e3)}function cO(){return new Date(this.valueOf())}function dO(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function fO(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function pO(){return this.isValid()?this.toISOString():null}function hO(){return mu(this)}function mO(){return gr({},B(this))}function vO(){return B(this).overflow}function gO(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),R("N",qu),R("NN",qu),R("NNN",qu),R("NNNN",DO),R("NNNNN",RO),ie(["N","NN","NNN","NNNN","NNNNN"],function(t,e,r,n){var a=r._locale.erasParse(t,n,r._strict);a?B(r).era=a:B(r).invalidEra=t}),R("y",un),R("yy",un),R("yyy",un),R("yyyy",un),R("yo",TO),ie(["y","yy","yyy","yyyy"],Ye),ie(["yo"],function(t,e,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=t.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?e[Ye]=r._locale.eraYearOrdinalParse(t,a):e[Ye]=parseInt(t,10)});function yO(t,e){var r,n,a,i=this._eras||or("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=P(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=P(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function _O(t,e,r){var n,a,i=this.eras(),o,u,c;for(t=t.toUpperCase(),n=0,a=i.length;n<a;++n)if(o=i[n].name.toUpperCase(),u=i[n].abbr.toUpperCase(),c=i[n].narrow.toUpperCase(),r)switch(e){case"N":case"NN":case"NNN":if(u===t)return i[n];break;case"NNNN":if(o===t)return i[n];break;case"NNNNN":if(c===t)return i[n];break}else if([o,u,c].indexOf(t)>=0)return i[n]}function bO(t,e){var r=t.since<=t.until?1:-1;return e===void 0?P(t.since).year():P(t.since).year()+(e-t.offset)*r}function wO(){var t,e,r,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until||n[t].until<=r&&r<=n[t].since)return n[t].name;return""}function SO(){var t,e,r,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until||n[t].until<=r&&r<=n[t].since)return n[t].narrow;return""}function CO(){var t,e,r,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until||n[t].until<=r&&r<=n[t].since)return n[t].abbr;return""}function OO(){var t,e,r,n,a=this.localeData().eras();for(t=0,e=a.length;t<e;++t)if(r=a[t].since<=a[t].until?1:-1,n=this.clone().startOf("day").valueOf(),a[t].since<=n&&n<=a[t].until||a[t].until<=n&&n<=a[t].since)return(this.year()-P(a[t].since).year())*r+a[t].offset;return this.year()}function kO(t){return Q(this,"_erasNameRegex")||Hu.call(this),t?this._erasNameRegex:this._erasRegex}function xO(t){return Q(this,"_erasAbbrRegex")||Hu.call(this),t?this._erasAbbrRegex:this._erasRegex}function PO(t){return Q(this,"_erasNarrowRegex")||Hu.call(this),t?this._erasNarrowRegex:this._erasRegex}function qu(t,e){return e.erasAbbrRegex(t)}function DO(t,e){return e.erasNameRegex(t)}function RO(t,e){return e.erasNarrowRegex(t)}function TO(t,e){return e._eraYearOrdinalRegex||un}function Hu(){var t=[],e=[],r=[],n=[],a,i,o,u,c,l=this.eras();for(a=0,i=l.length;a<i;++a)o=rr(l[a].name),u=rr(l[a].abbr),c=rr(l[a].narrow),e.push(o),t.push(u),r.push(c),n.push(o),n.push(u),n.push(c);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100});function no(t,e){N(0,[t,t.length],0,e)}no("gggg","weekYear"),no("ggggg","weekYear"),no("GGGG","isoWeekYear"),no("GGGGG","isoWeekYear"),R("G",Ui),R("g",Ui),R("GG",de,rt),R("gg",de,rt),R("GGGG",ku,Ou),R("gggg",ku,Ou),R("GGGGG",Vi,Hi),R("ggggg",Vi,Hi),Xn(["gggg","ggggg","GGGG","GGGGG"],function(t,e,r,n){e[n.substr(0,2)]=U(t)}),Xn(["gg","GG"],function(t,e,r,n){e[n]=P.parseTwoDigitYear(t)});function EO(t){return Yf.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function AO(t){return Yf.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function MO(){return ir(this.year(),1,4)}function NO(){return ir(this.isoWeekYear(),1,4)}function IO(){var t=this.localeData()._week;return ir(this.year(),t.dow,t.doy)}function FO(){var t=this.localeData()._week;return ir(this.weekYear(),t.dow,t.doy)}function Yf(t,e,r,n,a){var i;return t==null?ta(this,n,a).year:(i=ir(t,n,a),e>i&&(e=i),jO.call(this,t,e,r,n,a))}function jO(t,e,r,n,a){var i=Cf(t,e,r,n,a),o=ea(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}N("Q",0,"Qo","quarter"),R("Q",ff),ie("Q",function(t,e){e[nr]=(U(t)-1)*3});function $O(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}N("D",["DD",2],"Do","date"),R("D",de,ln),R("DD",de,rt),R("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ie(["D","DD"],Ht),ie("Do",function(t,e){e[Ht]=U(t.match(de)[0])});var Wf=cn("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),R("DDD",zi),R("DDDD",pf),ie(["DDD","DDDD"],function(t,e,r){r._dayOfYear=U(t)});function LO(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}N("m",["mm",2],0,"minute"),R("m",de,xu),R("mm",de,rt),ie(["m","mm"],Pt);var BO=cn("Minutes",!1);N("s",["ss",2],0,"second"),R("s",de,xu),R("ss",de,rt),ie(["s","ss"],ar);var qO=cn("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return this.millisecond()*10}),N(0,["SSSSS",5],0,function(){return this.millisecond()*100}),N(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),N(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),N(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),N(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),R("S",zi,ff),R("SS",zi,rt),R("SSS",zi,pf);var _r,Gf;for(_r="SSSS";_r.length<=9;_r+="S")R(_r,un);function HO(t,e){e[Br]=U(("0."+t)*1e3)}for(_r="S";_r.length<=9;_r+="S")ie(_r,HO);Gf=cn("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");function zO(){return this._isUTC?"UTC":""}function VO(){return this._isUTC?"Coordinated Universal Time":""}var x=Zn.prototype;x.add=FC,x.calendar=zC,x.clone=VC,x.diff=XC,x.endOf=sO,x.format=tO,x.from=rO,x.fromNow=nO,x.to=aO,x.toNow=iO,x.get=eS,x.invalidAt=vO,x.isAfter=UC,x.isBefore=YC,x.isBetween=WC,x.isSame=GC,x.isSameOrAfter=ZC,x.isSameOrBefore=KC,x.isValid=hO,x.lang=qf,x.locale=Bf,x.localeData=Hf,x.max=hC,x.min=pC,x.parsingFlags=mO,x.set=tS,x.startOf=oO,x.subtract=jC,x.toArray=dO,x.toObject=fO,x.toDate=cO,x.toISOString=QC,x.inspect=eO,typeof Symbol!="undefined"&&Symbol.for!=null&&(x[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),x.toJSON=pO,x.toString=JC,x.unix=lO,x.valueOf=uO,x.creationData=gO,x.eraName=wO,x.eraNarrow=SO,x.eraAbbr=CO,x.eraYear=OO,x.year=vf,x.isLeapYear=Q0,x.weekYear=EO,x.isoWeekYear=AO,x.quarter=x.quarters=$O,x.month=wf,x.daysInMonth=cS,x.week=x.weeks=yS,x.isoWeek=x.isoWeeks=_S,x.weeksInYear=IO,x.weeksInWeekYear=FO,x.isoWeeksInYear=MO,x.isoWeeksInISOWeekYear=NO,x.date=Wf,x.day=x.days=AS,x.weekday=MS,x.isoWeekday=NS,x.dayOfYear=LO,x.hour=x.hours=qS,x.minute=x.minutes=BO,x.second=x.seconds=qO,x.millisecond=x.milliseconds=Gf,x.utcOffset=CC,x.utc=kC,x.local=xC,x.parseZone=PC,x.hasAlignedHourOffset=DC,x.isDST=RC,x.isLocal=EC,x.isUtcOffset=AC,x.isUtc=If,x.isUTC=If,x.zoneAbbr=zO,x.zoneName=VO,x.dates=ft("dates accessor is deprecated. Use date instead.",Wf),x.months=ft("months accessor is deprecated. Use month instead",wf),x.years=ft("years accessor is deprecated. Use year instead",vf),x.zone=ft("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",OC),x.isDSTShifted=ft("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",TC);function UO(t){return fe(t*1e3)}function YO(){return fe.apply(null,arguments).parseZone()}function Zf(t){return t}var ee=_u.prototype;ee.calendar=E0,ee.longDateFormat=I0,ee.invalidDate=j0,ee.ordinal=B0,ee.preparse=Zf,ee.postformat=Zf,ee.relativeTime=H0,ee.pastFuture=z0,ee.set=R0,ee.eras=yO,ee.erasParse=_O,ee.erasConvertYear=bO,ee.erasAbbrRegex=xO,ee.erasNameRegex=kO,ee.erasNarrowRegex=PO,ee.months=oS,ee.monthsShort=sS,ee.monthsParse=lS,ee.monthsRegex=fS,ee.monthsShortRegex=dS,ee.week=hS,ee.firstDayOfYear=gS,ee.firstDayOfWeek=vS,ee.weekdays=PS,ee.weekdaysMin=RS,ee.weekdaysShort=DS,ee.weekdaysParse=ES,ee.weekdaysRegex=IS,ee.weekdaysShortRegex=FS,ee.weekdaysMinRegex=jS,ee.isPM=LS,ee.meridiem=HS;function ao(t,e,r,n){var a=or(),i=Lt().set(n,e);return a[r](i,t)}function Kf(t,e,r){if(tr(t)&&(e=t,t=void 0),t=t||"",e!=null)return ao(t,e,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=ao(t,n,r,"month");return a}function zu(t,e,r,n){typeof t=="boolean"?(tr(e)&&(r=e,e=void 0),e=e||""):(e=t,r=e,t=!1,tr(e)&&(r=e,e=void 0),e=e||"");var a=or(),i=t?a._week.dow:0,o,u=[];if(r!=null)return ao(e,(r+i)%7,n,"day");for(o=0;o<7;o++)u[o]=ao(e,(o+i)%7,n,"day");return u}function WO(t,e){return Kf(t,e,"months")}function GO(t,e){return Kf(t,e,"monthsShort")}function ZO(t,e,r){return zu(t,e,r,"weekdays")}function KO(t,e,r){return zu(t,e,r,"weekdaysShort")}function XO(t,e,r){return zu(t,e,r,"weekdaysMin")}yr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,r=U(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+r}}),P.lang=ft("moment.lang is deprecated. Use moment.locale instead.",yr),P.langData=ft("moment.langData is deprecated. Use moment.localeData instead.",or);var sr=Math.abs;function JO(){var t=this._data;return this._milliseconds=sr(this._milliseconds),this._days=sr(this._days),this._months=sr(this._months),t.milliseconds=sr(t.milliseconds),t.seconds=sr(t.seconds),t.minutes=sr(t.minutes),t.hours=sr(t.hours),t.months=sr(t.months),t.years=sr(t.years),this}function Xf(t,e,r,n){var a=Dt(e,r);return t._milliseconds+=n*a._milliseconds,t._days+=n*a._days,t._months+=n*a._months,t._bubble()}function QO(t,e){return Xf(this,t,e,1)}function ek(t,e){return Xf(this,t,e,-1)}function Jf(t){return t<0?Math.floor(t):Math.ceil(t)}function tk(){var t=this._milliseconds,e=this._days,r=this._months,n=this._data,a,i,o,u,c;return t>=0&&e>=0&&r>=0||t<=0&&e<=0&&r<=0||(t+=Jf(Vu(r)+e)*864e5,e=0,r=0),n.milliseconds=t%1e3,a=ht(t/1e3),n.seconds=a%60,i=ht(a/60),n.minutes=i%60,o=ht(i/60),n.hours=o%24,e+=ht(o/24),c=ht(Qf(e)),r+=c,e-=Jf(Vu(c)),u=ht(r/12),r%=12,n.days=e,n.months=r,n.years=u,this}function Qf(t){return t*4800/146097}function Vu(t){return t*146097/4800}function rk(t){if(!this.isValid())return NaN;var e,r,n=this._milliseconds;if(t=pt(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+n/864e5,r=this._months+Qf(e),t){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(e=this._days+Math.round(Vu(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return e*24+n/36e5;case"minute":return e*1440+n/6e4;case"second":return e*86400+n/1e3;case"millisecond":return Math.floor(e*864e5)+n;default:throw new Error("Unknown unit "+t)}}function ur(t){return function(){return this.as(t)}}var ep=ur("ms"),nk=ur("s"),ak=ur("m"),ik=ur("h"),ok=ur("d"),sk=ur("w"),uk=ur("M"),lk=ur("Q"),ck=ur("y"),dk=ep;function fk(){return Dt(this)}function pk(t){return t=pt(t),this.isValid()?this[t+"s"]():NaN}function Hr(t){return function(){return this.isValid()?this._data[t]:NaN}}var hk=Hr("milliseconds"),mk=Hr("seconds"),vk=Hr("minutes"),gk=Hr("hours"),yk=Hr("days"),_k=Hr("months"),bk=Hr("years");function wk(){return ht(this.days()/7)}var lr=Math.round,hn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Sk(t,e,r,n,a){return a.relativeTime(e||1,!!r,t,n)}function Ck(t,e,r,n){var a=Dt(t).abs(),i=lr(a.as("s")),o=lr(a.as("m")),u=lr(a.as("h")),c=lr(a.as("d")),l=lr(a.as("M")),s=lr(a.as("w")),d=lr(a.as("y")),p=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||o<=1&&["m"]||o<r.m&&["mm",o]||u<=1&&["h"]||u<r.h&&["hh",u]||c<=1&&["d"]||c<r.d&&["dd",c];return r.w!=null&&(p=p||s<=1&&["w"]||s<r.w&&["ww",s]),p=p||l<=1&&["M"]||l<r.M&&["MM",l]||d<=1&&["y"]||["yy",d],p[2]=e,p[3]=+t>0,p[4]=n,Sk.apply(null,p)}function Ok(t){return t===void 0?lr:typeof t=="function"?(lr=t,!0):!1}function kk(t,e){return hn[t]===void 0?!1:e===void 0?hn[t]:(hn[t]=e,t==="s"&&(hn.ss=e-1),!0)}function xk(t,e){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=hn,a,i;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(r=t),typeof e=="object"&&(n=Object.assign({},hn,e),e.s!=null&&e.ss==null&&(n.ss=e.s-1)),a=this.localeData(),i=Ck(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var Uu=Math.abs;function mn(t){return(t>0)-(t<0)||+t}function io(){if(!this.isValid())return this.localeData().invalidDate();var t=Uu(this._milliseconds)/1e3,e=Uu(this._days),r=Uu(this._months),n,a,i,o,u=this.asSeconds(),c,l,s,d;return u?(n=ht(t/60),a=ht(n/60),t%=60,n%=60,i=ht(r/12),r%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",c=u<0?"-":"",l=mn(this._months)!==mn(u)?"-":"",s=mn(this._days)!==mn(u)?"-":"",d=mn(this._milliseconds)!==mn(u)?"-":"",c+"P"+(i?l+i+"Y":"")+(r?l+r+"M":"")+(e?s+e+"D":"")+(a||n||t?"T":"")+(a?d+a+"H":"")+(n?d+n+"M":"")+(t?d+o+"S":"")):"P0D"}var Z=Ji.prototype;Z.isValid=_C,Z.abs=JO,Z.add=QO,Z.subtract=ek,Z.as=rk,Z.asMilliseconds=ep,Z.asSeconds=nk,Z.asMinutes=ak,Z.asHours=ik,Z.asDays=ok,Z.asWeeks=sk,Z.asMonths=uk,Z.asQuarters=lk,Z.asYears=ck,Z.valueOf=dk,Z._bubble=tk,Z.clone=fk,Z.get=pk,Z.milliseconds=hk,Z.seconds=mk,Z.minutes=vk,Z.hours=gk,Z.days=yk,Z.weeks=wk,Z.months=_k,Z.years=bk,Z.humanize=xk,Z.toISOString=io,Z.toString=io,Z.toJSON=io,Z.locale=Bf,Z.localeData=Hf,Z.toIsoString=ft("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",io),Z.lang=qf,N("X",0,0,"unix"),N("x",0,0,"valueOf"),R("x",Ui),R("X",W0),ie("X",function(t,e,r){r._d=new Date(parseFloat(t)*1e3)}),ie("x",function(t,e,r){r._d=new Date(U(t))});//! moment.js
|
|
11
|
-
P.version="2.30.1",P0(fe),P.fn=x,P.min=mC,P.max=vC,P.now=gC,P.utc=Lt,P.unix=UO,P.months=WO,P.isDate=Gn,P.locale=yr,P.invalid=Li,P.duration=Dt,P.isMoment=xt,P.weekdays=ZO,P.parseZone=YO,P.localeData=or,P.isDuration=Qi,P.monthsShort=GO,P.weekdaysMin=XO,P.defineLocale=Au,P.updateLocale=YS,P.locales=WS,P.weekdaysShort=KO,P.normalizeUnits=pt,P.relativeTimeRounding=Ok,P.relativeTimeThreshold=kk,P.calendarFormat=HC,P.prototype=x,P.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 Pk=Un(Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})));var tp;function Dk(){if(tp)return $i;tp=1;var t=b&&b.__awaiter||function(i,o,u,c){function l(s){return s instanceof u?s:new u(function(d){d(s)})}return new(u||(u=Promise))(function(s,d){function p(v){try{h(c.next(v))}catch(_){d(_)}}function f(v){try{h(c.throw(v))}catch(_){d(_)}}function h(v){v.done?s(v.value):l(v.value).then(p,f)}h((c=c.apply(i,o||[])).next())})},e=b&&b.__generator||function(i,o){var u={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},c,l,s,d;return d={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function p(h){return function(v){return f([h,v])}}function f(h){if(c)throw new TypeError("Generator is already executing.");for(;d&&(d=0,h[0]&&(u=0)),u;)try{if(c=1,l&&(s=h[0]&2?l.return:h[0]?l.throw||((s=l.return)&&s.call(l),0):l.next)&&!(s=s.call(l,h[1])).done)return s;switch(l=0,s&&(h=[h[0]&2,s.value]),h[0]){case 0:case 1:s=h;break;case 4:return u.label++,{value:h[1],done:!1};case 5:u.label++,l=h[1],h=[0];continue;case 7:h=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(h[0]===6||h[0]===2)){u=0;continue}if(h[0]===3&&(!s||h[1]>s[0]&&h[1]<s[3])){u.label=h[1];break}if(h[0]===6&&u.label<s[1]){u.label=s[1],s=h;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(h);break}s[2]&&u.ops.pop(),u.trys.pop();continue}h=o.call(i,u)}catch(v){h=[6,v],l=0}finally{c=s=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};Object.defineProperty($i,"__esModule",{value:!0});var r=Pk,n=X(),a=function(){function i(o,u,c,l,s,d){this.unique_id=o,this.funnel=u,this.data=c,this.user=l,this.location=window.location,this.updated_at=s,this.created_at=d}return i.prototype.getId=function(){return this.unique_id},i.prototype.getFunnel=function(){return this.funnel},i.prototype.getData=function(){return this.data},i.prototype.recalculate=function(){return t(this,void 0,void 0,function(){var o,u=this;return e(this,function(c){switch(c.label){case 0:return o=Object.keys(this.data.all()).map(function(l){return u.data.calculate(l,null)}),[4,Promise.all(o)];case 1:return c.sent(),[2]}})})},i.prototype.getUser=function(){return this.user},i.prototype.getTimeStamps=function(){return{updated_at:r(this.updated_at),created_at:r(this.created_at)}},i.fromObject=function(o){return new this(o.unique_id,o.funnel,n.ComparisonDataCollection.fromObject(o.data),n.User.fromObject(o.user),o.updated_at,o.created_at)},i.prototype.toObject=function(){return{unique_id:this.unique_id,referrer:this.location.href,funnel:this.funnel,data:this.data.toObject(),user:this.user}},i}();return $i.default=a,$i}var oo={},rp;function Rk(){if(rp)return oo;rp=1;var t=b&&b.__awaiter||function(o,u,c,l){function s(d){return d instanceof c?d:new c(function(p){p(d)})}return new(c||(c=Promise))(function(d,p){function f(_){try{v(l.next(_))}catch(m){p(m)}}function h(_){try{v(l.throw(_))}catch(m){p(m)}}function v(_){_.done?d(_.value):s(_.value).then(f,h)}v((l=l.apply(o,u||[])).next())})},e=b&&b.__generator||function(o,u){var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},l,s,d,p;return p={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function f(v){return function(_){return h([v,_])}}function h(v){if(l)throw new TypeError("Generator is already executing.");for(;p&&(p=0,v[0]&&(c=0)),c;)try{if(l=1,s&&(d=v[0]&2?s.return:v[0]?s.throw||((d=s.return)&&d.call(s),0):s.next)&&!(d=d.call(s,v[1])).done)return d;switch(s=0,d&&(v=[v[0]&2,d.value]),v[0]){case 0:case 1:d=v;break;case 4:return c.label++,{value:v[1],done:!1};case 5:c.label++,s=v[1],v=[0];continue;case 7:v=c.ops.pop(),c.trys.pop();continue;default:if(d=c.trys,!(d=d.length>0&&d[d.length-1])&&(v[0]===6||v[0]===2)){c=0;continue}if(v[0]===3&&(!d||v[1]>d[0]&&v[1]<d[3])){c.label=v[1];break}if(v[0]===6&&c.label<d[1]){c.label=d[1],d=v;break}if(d&&c.label<d[2]){c.label=d[2],c.ops.push(v);break}d[2]&&c.ops.pop(),c.trys.pop();continue}v=u.call(o,c)}catch(_){v=[6,_],s=0}finally{l=d=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},r=b&&b.__values||function(o){var u=typeof Symbol=="function"&&Symbol.iterator,c=u&&o[u],l=0;if(c)return c.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&l>=o.length&&(o=void 0),{value:o&&o[l++],done:!o}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(oo,"__esModule",{value:!0});var n=er(),a=sp(),i=function(){function o(u){u===void 0&&(u={}),this.data=u}return o.prototype.addItem=function(u,c){return this.data[u]=c,this},o.prototype.removeItem=function(u){return delete this.data[u],this},o.prototype.getItem=function(u){if(this.data.hasOwnProperty(u))return this.data[u];throw new Error("".concat(u," collection doesn't exist."))},o.prototype.all=function(){return this.data},o.prototype.calculate=function(u,c){return c===void 0&&(c=null),t(this,void 0,void 0,function(){var l,s,d,p,f,h,v,_,m;return e(this,function(g){switch(g.label){case 0:l=n.ApiServiceFactory.get(u),c===null?s=this.data[u].getData():s=[this.data[u].getItem(c)],g.label=1;case 1:g.trys.push([1,6,7,8]),d=r(s),p=d.next(),g.label=2;case 2:return p.done?[3,5]:(f=p.value,[4,l.getRates(f.getModel())]);case 3:h=g.sent(),f.setRates(h),g.label=4;case 4:return p=d.next(),[3,2];case 5:return[3,8];case 6:return v=g.sent(),_={error:v},[3,8];case 7:try{p&&!p.done&&(m=d.return)&&m.call(d)}finally{if(_)throw _.error}return[7];case 8:return[2,this]}})})},o.fromObject=function(u){for(var c=new this,l=Object.keys(u),s=0;s<l.length;s++){var d={};d.insuranceType=l[s],d.data=u[l[s]],c.addItem(l[s],a.ComparisonInsuranceData.fromObject(d))}return c},o.prototype.toObject=function(){for(var u={},c=Object.keys(this.data),l=0;l<c.length;l++){var s=c[l];u[s]=this.data[s].toObject()}return u},o}();return oo.default=i,oo}var so={},uo={},np;function ap(){if(np)return uo;np=1,Object.defineProperty(uo,"__esModule",{value:!0});var t=X(),e=function(){function r(n,a,i){this.id=n,this.model=a,this.rates=i}return r.prototype.setModel=function(n){return this.model=n,this},r.prototype.updateModel=function(n,a){return this.model[n]=a,this},r.prototype.setRates=function(n){return this.rates=n,this},r.prototype.getId=function(){return this.id},r.prototype.getModel=function(){return this.model},r.prototype.getRates=function(){return this.rates},r.prototype.toObject=function(){return{id:this.id,model:this.model,rates:this.rates.toObject()}},r.fromObject=function(n){return new this(n.insurance.id,n.insurance.model,new t.RateCollection(n.insuranceType,n.insurance.rates))},r}();return uo.default=e,uo}var ip;function Tk(){if(ip)return so;ip=1;var t=b&&b.__values||function(n){var a=typeof Symbol=="function"&&Symbol.iterator,i=a&&n[a],o=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(so,"__esModule",{value:!0});var e=ap(),r=function(){function n(a){this.pointer=0,this.data=a}return n.prototype.getData=function(){return this.data},n.prototype.count=function(){return this.data.length},n.prototype.addItem=function(a){return this.data.push(a),this},n.prototype.getItem=function(a){for(var i=0;i<this.data.length;i++)if(a===this.data[i].getId())return this.data[i];throw new Error("Insurance data not found.")},n.prototype.next=function(){return this.pointer<this.count()?{done:!1,value:this.data[this.pointer++]}:{done:!0,value:null}},n.prototype[Symbol.iterator]=function(){return this},n.fromObject=function(a){for(var i=[],o=0;o<a.data.length;o++){var u={};u.insurance=a.data[o],u.insuranceType=a.insuranceType,i.push(e.default.fromObject(u))}return new this(i)},n.prototype.toObject=function(){var a,i,o=[];try{for(var u=t(this.data),c=u.next();!c.done;c=u.next()){var l=c.value;o.push(l.toObject())}}catch(s){a={error:s}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}return o},n}();return so.default=r,so}var op;function sp(){return op||(op=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ComparisonInsurance=t.ComparisonInsuranceData=t.ComparisonDataCollection=t.Comparison=void 0;var e=Dk();Object.defineProperty(t,"Comparison",{enumerable:!0,get:function(){return e.default}});var r=Rk();Object.defineProperty(t,"ComparisonDataCollection",{enumerable:!0,get:function(){return r.default}});var n=Tk();Object.defineProperty(t,"ComparisonInsuranceData",{enumerable:!0,get:function(){return n.default}});var a=ap();Object.defineProperty(t,"ComparisonInsurance",{enumerable:!0,get:function(){return a.default}})}(fu)),fu}var up;function X(){return up||(up=1,function(t){var e=b&&b.__createBinding||(Object.create?function(_,m,g,w){w===void 0&&(w=g);var S=Object.getOwnPropertyDescriptor(m,g);(!S||("get"in S?!m.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return m[g]}}),Object.defineProperty(_,w,S)}:function(_,m,g,w){w===void 0&&(w=g),_[w]=m[g]}),r=b&&b.__exportStar||function(_,m){for(var g in _)g!=="default"&&!Object.prototype.hasOwnProperty.call(m,g)&&e(m,_,g)};Object.defineProperty(t,"__esModule",{value:!0}),t.User=t.RateCollection=t.UndefinedRate=t.DkmRate=t.VergelijkdirectRate=t.MoneyviewRate=t.EnraRate=t.RollsRate=t.RiskRate=t.LakaRate=t.PackageRate=t.Rate=t.DocumentsModel=void 0;var n=ys;Object.defineProperty(t,"DocumentsModel",{enumerable:!0,get:function(){return n.default}});var a=zd();Object.defineProperty(t,"Rate",{enumerable:!0,get:function(){return a.default}});var i=m0();Object.defineProperty(t,"PackageRate",{enumerable:!0,get:function(){return i.default}});var o=v0();Object.defineProperty(t,"LakaRate",{enumerable:!0,get:function(){return o.default}});var u=g0();Object.defineProperty(t,"RiskRate",{enumerable:!0,get:function(){return u.default}});var c=y0();Object.defineProperty(t,"RollsRate",{enumerable:!0,get:function(){return c.default}});var l=_0();Object.defineProperty(t,"EnraRate",{enumerable:!0,get:function(){return l.default}});var s=b0();Object.defineProperty(t,"MoneyviewRate",{enumerable:!0,get:function(){return s.default}});var d=w0();Object.defineProperty(t,"VergelijkdirectRate",{enumerable:!0,get:function(){return d.default}});var p=S0();Object.defineProperty(t,"DkmRate",{enumerable:!0,get:function(){return p.default}});var f=C0();Object.defineProperty(t,"UndefinedRate",{enumerable:!0,get:function(){return f.default}});var h=Ud();Object.defineProperty(t,"RateCollection",{enumerable:!0,get:function(){return h.default}});var v=cu;Object.defineProperty(t,"User",{enumerable:!0,get:function(){return v.default}}),r(x0(),t),r(sp(),t)}(gs)),gs}var Ek=b&&b.__awaiter||function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function u(s){try{l(n.next(s))}catch(d){o(d)}}function c(s){try{l(n.throw(s))}catch(d){o(d)}}function l(s){s.done?i(s.value):a(s.value).then(u,c)}l((n=n.apply(t,e||[])).next())})},Ak=b&&b.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(l){return function(s){return c([l,s])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(s){l=[6,s],a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};Object.defineProperty(Ir,"__esModule",{value:!0});var Mk=X(),Nk=Ve(),lp=an,Ik=Wn,Fk=function(){function t(e){this.storageManager=e}return t.prototype.configure=function(e){return Ek(this,void 0,void 0,function(){var r,n;return Ak(this,function(a){switch(a.label){case 0:return r=lp.Injector.instance,r.constant("environment",e),n=new Nk.ConfigurationsService,[4,n.configure()];case 1:return a.sent(),r.constant("configuration-service",n),Ik.supplierPlacementTracker.setParams(),[2,this]}})})},t.prototype.getConfigurations=function(){return lp.Injector.instance.get("configuration-service").getConfigurations()},t.prototype.saveNew=function(e){return this.remove(e.getInsuranceCategory()),this.save(e),this},t.prototype.save=function(e){return this.storageManager.save(e.getInsuranceCategory(),e.getData()),this},t.prototype.get=function(e){var r=this.storageManager.get(e);return new Mk.RateCollection(e,r)},t.prototype.remove=function(e){return this.storageManager.remove(e),this},t}();Ir.default=Fk,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.InsuranceTransmissionClient=void 0;var e=Ir;Object.defineProperty(t,"InsuranceTransmissionClient",{enumerable:!0,get:function(){return e.default}})}(jt);var cp={},Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});var jk=function(){function t(e){return this.storage={},this.storageKey=e,this.freshStorage(),this.setStorage(),this}return t.prototype.getStorage=function(){var e=JSON.parse(localStorage.getItem(this.storageKey));return e||{}},t.prototype.setStorage=function(){return localStorage.setItem(this.storageKey,JSON.stringify(this.storage)),this},t.prototype.freshStorage=function(){return this.storage=this.getStorage(),this},t.prototype.save=function(e,r){return this.freshStorage(),this.storage[e]===void 0&&(this.storage[e]=[]),this.storage[e].push(r),this.setStorage(),this},t.prototype.put=function(e,r){return this.freshStorage(),this.storage[e]=r,this.setStorage(),this},t.prototype.get=function(e){return this.freshStorage(),this.storage[e]===void 0?[]:this.storage[e]},t.prototype.remove=function(e){return this.freshStorage(),delete this.storage[e],this.setStorage(),this},t.prototype.all=function(){return this.getStorage()},t}();Yu.default=jk,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageAdapter=void 0;var e=Yu;Object.defineProperty(t,"LocalStorageAdapter",{enumerable:!0,get:function(){return e.default}})}(cp),function(t){var e=b&&b.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var u=Object.getOwnPropertyDescriptor(a,i);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,u)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=b&&b.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(Za,t),r(jt,t),r(cp,t),r(X(),t),r(Ve(),t)}(ae);const dp=ge({__proto__:null,default:Ga(ae)},[ae]),ia={vd:{url:"http://master.dev.vergelijkdirect.com/index.php"},mijn:{url:"http://master.mijn-api.vergelijkdirect.com"},api:{url:"http://master.api.vergelijkdirect.com/"},postcode:{url:"https://api.postcodeapi.nu",key:"RL7RFSAjlA1mON4P3d4bzAOu0Fgfbwaac21WLG00"},qa:{url:"http://qa-api.dev.vergelijkdirect.com/"}},Wu={url:ia.api.url,login:ia.api.login,password:ia.api.password},$k={api:{baseUrl:Wu.url,auth:{username:Wu.login,password:Wu.password},version:"v2"}};function fp(t){let e=t.split("");return e[e.length-1]==="/"}const ms=class ms{constructor(e={},r={}){this.values=e,this.cached=r}constant(e,r){this.values[e]=()=>r}get(e){return e in this.cached?this.cached[e]:e in this.values?this.cached[e]=this.values[e](this):!1}};ve(ms,"instance",new ms);let oa=ms;class lo{static configure(e){const r=oa.instance;r.constant("vd-api-url",e.api.url),e.qa.url&&r.constant("qa-api-url",e.qa.url)}static getApiUrl(){return oa.instance.get("vd-api-url")||ia.api.url}static getQAUrl(){return oa.instance.get("qa-api-url")||ia.qa.url}}class Lk{constructor(){ve(this,"insurances",["PetService","MotorService","BikeService","MopedService","HousingService","HomeService","LiabilityService","HouseholdService","DocumentService","PackageService","CaravanService","DataValidationService","CarService","PartnerService","ComparisonService","UserService","V1Service","TravelService","DataService"]);ve(this,"activeInsurances");ve(this,"client");ve(this,"petService");ve(this,"motorService");ve(this,"bikeService");ve(this,"mopedService");ve(this,"housingService");ve(this,"homeService");ve(this,"liabilityService");ve(this,"householdService");ve(this,"documentService");ve(this,"packageService");ve(this,"caravanService");ve(this,"dataValidationService");ve(this,"carService");ve(this,"partnerService");ve(this,"validation");ve(this,"comparisonService");ve(this,"userService");ve(this,"v1Service");ve(this,"travelService");ve(this,"dataService")}getUrl(){return lo.getApiUrl()+(fp(lo.getApiUrl())?"api":"/api")}initITC(){return I(this,null,function*(){if(typeof window=="undefined")return;const e=JSON.parse(JSON.stringify($k));e.api.baseUrl=this.getUrl();const r=new ae.LocalStorageAdapter("insurances");return this.client=new ae.InsuranceTransmissionClient(r),yield this.client.configure(e),this.createConfig(),this.createInsuranceClasses(),this})}createConfig(){this.validation=new ae.DataValidationService,this.petService=new ae.PetService,this.motorService=new ae.MotorService,this.bikeService=new ae.BikeService,this.mopedService=new ae.MopedService,this.housingService=new ae.HousingService,this.homeService=new ae.HomeService,this.liabilityService=new ae.LiabilityService,this.householdService=new ae.HouseholdService,this.documentService=new ae.DocumentService,this.packageService=new ae.PackageService,this.caravanService=new ae.CaravanService,this.dataValidationService=new ae.DataValidationService,this.carService=new ae.CarService,this.partnerService=new ae.PartnerService,this.comparisonService=new ae.ComparisonService,this.userService=new ae.UserService,this.v1Service=new ae.V1Service,this.travelService=new ae.TravelService,this.dataService=new ae.DataService}createInsuranceClasses(){this.insurances.map(e=>{if(Object.prototype.hasOwnProperty.call(dp,e)){const r={};r[e]=new dp[e],this.activeInsurances=Object.assign({},this.activeInsurances,r)}else console.error(`${e} is not found in insurance transmission client`)})}get getActiveInsurances(){return this.activeInsurances}get getClient(){return this.client}getVehicleLicenseInformation(e,r){return I(this,null,function*(){const n=e.toLocaleLowerCase(),a=this.dataService.findVehicle(r,n);return a||null})}}let je=null,sa=y.ref(!1);const Bk=(t=null)=>I(this,null,function*(){try{sa.value=!1,je=t||(yield new Lk().initITC()),sa.value=!0}catch(e){console.warn(e),sa.value=!1}});/**
|
|
11
|
+
P.version="2.30.1",P0(fe),P.fn=x,P.min=mC,P.max=vC,P.now=gC,P.utc=Lt,P.unix=UO,P.months=WO,P.isDate=Gn,P.locale=yr,P.invalid=Li,P.duration=Dt,P.isMoment=xt,P.weekdays=ZO,P.parseZone=YO,P.localeData=or,P.isDuration=Qi,P.monthsShort=GO,P.weekdaysMin=XO,P.defineLocale=Au,P.updateLocale=YS,P.locales=WS,P.weekdaysShort=KO,P.normalizeUnits=pt,P.relativeTimeRounding=Ok,P.relativeTimeThreshold=kk,P.calendarFormat=HC,P.prototype=x,P.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 Pk=Un(Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})));var tp;function Dk(){if(tp)return $i;tp=1;var t=b&&b.__awaiter||function(i,o,u,c){function l(s){return s instanceof u?s:new u(function(d){d(s)})}return new(u||(u=Promise))(function(s,d){function p(v){try{h(c.next(v))}catch(_){d(_)}}function f(v){try{h(c.throw(v))}catch(_){d(_)}}function h(v){v.done?s(v.value):l(v.value).then(p,f)}h((c=c.apply(i,o||[])).next())})},e=b&&b.__generator||function(i,o){var u={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},c,l,s,d;return d={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function p(h){return function(v){return f([h,v])}}function f(h){if(c)throw new TypeError("Generator is already executing.");for(;d&&(d=0,h[0]&&(u=0)),u;)try{if(c=1,l&&(s=h[0]&2?l.return:h[0]?l.throw||((s=l.return)&&s.call(l),0):l.next)&&!(s=s.call(l,h[1])).done)return s;switch(l=0,s&&(h=[h[0]&2,s.value]),h[0]){case 0:case 1:s=h;break;case 4:return u.label++,{value:h[1],done:!1};case 5:u.label++,l=h[1],h=[0];continue;case 7:h=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(h[0]===6||h[0]===2)){u=0;continue}if(h[0]===3&&(!s||h[1]>s[0]&&h[1]<s[3])){u.label=h[1];break}if(h[0]===6&&u.label<s[1]){u.label=s[1],s=h;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(h);break}s[2]&&u.ops.pop(),u.trys.pop();continue}h=o.call(i,u)}catch(v){h=[6,v],l=0}finally{c=s=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};Object.defineProperty($i,"__esModule",{value:!0});var r=Pk,n=X(),a=function(){function i(o,u,c,l,s,d){this.unique_id=o,this.funnel=u,this.data=c,this.user=l,this.location=window.location,this.updated_at=s,this.created_at=d}return i.prototype.getId=function(){return this.unique_id},i.prototype.getFunnel=function(){return this.funnel},i.prototype.getData=function(){return this.data},i.prototype.recalculate=function(){return t(this,void 0,void 0,function(){var o,u=this;return e(this,function(c){switch(c.label){case 0:return o=Object.keys(this.data.all()).map(function(l){return u.data.calculate(l,null)}),[4,Promise.all(o)];case 1:return c.sent(),[2]}})})},i.prototype.getUser=function(){return this.user},i.prototype.getTimeStamps=function(){return{updated_at:r(this.updated_at),created_at:r(this.created_at)}},i.fromObject=function(o){return new this(o.unique_id,o.funnel,n.ComparisonDataCollection.fromObject(o.data),n.User.fromObject(o.user),o.updated_at,o.created_at)},i.prototype.toObject=function(){return{unique_id:this.unique_id,referrer:this.location.href,funnel:this.funnel,data:this.data.toObject(),user:this.user}},i}();return $i.default=a,$i}var oo={},rp;function Rk(){if(rp)return oo;rp=1;var t=b&&b.__awaiter||function(o,u,c,l){function s(d){return d instanceof c?d:new c(function(p){p(d)})}return new(c||(c=Promise))(function(d,p){function f(_){try{v(l.next(_))}catch(m){p(m)}}function h(_){try{v(l.throw(_))}catch(m){p(m)}}function v(_){_.done?d(_.value):s(_.value).then(f,h)}v((l=l.apply(o,u||[])).next())})},e=b&&b.__generator||function(o,u){var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},l,s,d,p;return p={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function f(v){return function(_){return h([v,_])}}function h(v){if(l)throw new TypeError("Generator is already executing.");for(;p&&(p=0,v[0]&&(c=0)),c;)try{if(l=1,s&&(d=v[0]&2?s.return:v[0]?s.throw||((d=s.return)&&d.call(s),0):s.next)&&!(d=d.call(s,v[1])).done)return d;switch(s=0,d&&(v=[v[0]&2,d.value]),v[0]){case 0:case 1:d=v;break;case 4:return c.label++,{value:v[1],done:!1};case 5:c.label++,s=v[1],v=[0];continue;case 7:v=c.ops.pop(),c.trys.pop();continue;default:if(d=c.trys,!(d=d.length>0&&d[d.length-1])&&(v[0]===6||v[0]===2)){c=0;continue}if(v[0]===3&&(!d||v[1]>d[0]&&v[1]<d[3])){c.label=v[1];break}if(v[0]===6&&c.label<d[1]){c.label=d[1],d=v;break}if(d&&c.label<d[2]){c.label=d[2],c.ops.push(v);break}d[2]&&c.ops.pop(),c.trys.pop();continue}v=u.call(o,c)}catch(_){v=[6,_],s=0}finally{l=d=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},r=b&&b.__values||function(o){var u=typeof Symbol=="function"&&Symbol.iterator,c=u&&o[u],l=0;if(c)return c.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&l>=o.length&&(o=void 0),{value:o&&o[l++],done:!o}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(oo,"__esModule",{value:!0});var n=er(),a=sp(),i=function(){function o(u){u===void 0&&(u={}),this.data=u}return o.prototype.addItem=function(u,c){return this.data[u]=c,this},o.prototype.removeItem=function(u){return delete this.data[u],this},o.prototype.getItem=function(u){if(this.data.hasOwnProperty(u))return this.data[u];throw new Error("".concat(u," collection doesn't exist."))},o.prototype.all=function(){return this.data},o.prototype.calculate=function(u,c){return c===void 0&&(c=null),t(this,void 0,void 0,function(){var l,s,d,p,f,h,v,_,m;return e(this,function(g){switch(g.label){case 0:l=n.ApiServiceFactory.get(u),c===null?s=this.data[u].getData():s=[this.data[u].getItem(c)],g.label=1;case 1:g.trys.push([1,6,7,8]),d=r(s),p=d.next(),g.label=2;case 2:return p.done?[3,5]:(f=p.value,[4,l.getRates(f.getModel())]);case 3:h=g.sent(),f.setRates(h),g.label=4;case 4:return p=d.next(),[3,2];case 5:return[3,8];case 6:return v=g.sent(),_={error:v},[3,8];case 7:try{p&&!p.done&&(m=d.return)&&m.call(d)}finally{if(_)throw _.error}return[7];case 8:return[2,this]}})})},o.fromObject=function(u){for(var c=new this,l=Object.keys(u),s=0;s<l.length;s++){var d={};d.insuranceType=l[s],d.data=u[l[s]],c.addItem(l[s],a.ComparisonInsuranceData.fromObject(d))}return c},o.prototype.toObject=function(){for(var u={},c=Object.keys(this.data),l=0;l<c.length;l++){var s=c[l];u[s]=this.data[s].toObject()}return u},o}();return oo.default=i,oo}var so={},uo={},np;function ap(){if(np)return uo;np=1,Object.defineProperty(uo,"__esModule",{value:!0});var t=X(),e=function(){function r(n,a,i){this.id=n,this.model=a,this.rates=i}return r.prototype.setModel=function(n){return this.model=n,this},r.prototype.updateModel=function(n,a){return this.model[n]=a,this},r.prototype.setRates=function(n){return this.rates=n,this},r.prototype.getId=function(){return this.id},r.prototype.getModel=function(){return this.model},r.prototype.getRates=function(){return this.rates},r.prototype.toObject=function(){return{id:this.id,model:this.model,rates:this.rates.toObject()}},r.fromObject=function(n){return new this(n.insurance.id,n.insurance.model,new t.RateCollection(n.insuranceType,n.insurance.rates))},r}();return uo.default=e,uo}var ip;function Tk(){if(ip)return so;ip=1;var t=b&&b.__values||function(n){var a=typeof Symbol=="function"&&Symbol.iterator,i=a&&n[a],o=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(so,"__esModule",{value:!0});var e=ap(),r=function(){function n(a){this.pointer=0,this.data=a}return n.prototype.getData=function(){return this.data},n.prototype.count=function(){return this.data.length},n.prototype.addItem=function(a){return this.data.push(a),this},n.prototype.getItem=function(a){for(var i=0;i<this.data.length;i++)if(a===this.data[i].getId())return this.data[i];throw new Error("Insurance data not found.")},n.prototype.next=function(){return this.pointer<this.count()?{done:!1,value:this.data[this.pointer++]}:{done:!0,value:null}},n.prototype[Symbol.iterator]=function(){return this},n.fromObject=function(a){for(var i=[],o=0;o<a.data.length;o++){var u={};u.insurance=a.data[o],u.insuranceType=a.insuranceType,i.push(e.default.fromObject(u))}return new this(i)},n.prototype.toObject=function(){var a,i,o=[];try{for(var u=t(this.data),c=u.next();!c.done;c=u.next()){var l=c.value;o.push(l.toObject())}}catch(s){a={error:s}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}return o},n}();return so.default=r,so}var op;function sp(){return op||(op=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ComparisonInsurance=t.ComparisonInsuranceData=t.ComparisonDataCollection=t.Comparison=void 0;var e=Dk();Object.defineProperty(t,"Comparison",{enumerable:!0,get:function(){return e.default}});var r=Rk();Object.defineProperty(t,"ComparisonDataCollection",{enumerable:!0,get:function(){return r.default}});var n=Tk();Object.defineProperty(t,"ComparisonInsuranceData",{enumerable:!0,get:function(){return n.default}});var a=ap();Object.defineProperty(t,"ComparisonInsurance",{enumerable:!0,get:function(){return a.default}})}(fu)),fu}var up;function X(){return up||(up=1,function(t){var e=b&&b.__createBinding||(Object.create?function(_,m,g,w){w===void 0&&(w=g);var S=Object.getOwnPropertyDescriptor(m,g);(!S||("get"in S?!m.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return m[g]}}),Object.defineProperty(_,w,S)}:function(_,m,g,w){w===void 0&&(w=g),_[w]=m[g]}),r=b&&b.__exportStar||function(_,m){for(var g in _)g!=="default"&&!Object.prototype.hasOwnProperty.call(m,g)&&e(m,_,g)};Object.defineProperty(t,"__esModule",{value:!0}),t.User=t.RateCollection=t.UndefinedRate=t.DkmRate=t.VergelijkdirectRate=t.MoneyviewRate=t.EnraRate=t.RollsRate=t.RiskRate=t.LakaRate=t.PackageRate=t.Rate=t.DocumentsModel=void 0;var n=ys;Object.defineProperty(t,"DocumentsModel",{enumerable:!0,get:function(){return n.default}});var a=zd();Object.defineProperty(t,"Rate",{enumerable:!0,get:function(){return a.default}});var i=m0();Object.defineProperty(t,"PackageRate",{enumerable:!0,get:function(){return i.default}});var o=v0();Object.defineProperty(t,"LakaRate",{enumerable:!0,get:function(){return o.default}});var u=g0();Object.defineProperty(t,"RiskRate",{enumerable:!0,get:function(){return u.default}});var c=y0();Object.defineProperty(t,"RollsRate",{enumerable:!0,get:function(){return c.default}});var l=_0();Object.defineProperty(t,"EnraRate",{enumerable:!0,get:function(){return l.default}});var s=b0();Object.defineProperty(t,"MoneyviewRate",{enumerable:!0,get:function(){return s.default}});var d=w0();Object.defineProperty(t,"VergelijkdirectRate",{enumerable:!0,get:function(){return d.default}});var p=S0();Object.defineProperty(t,"DkmRate",{enumerable:!0,get:function(){return p.default}});var f=C0();Object.defineProperty(t,"UndefinedRate",{enumerable:!0,get:function(){return f.default}});var h=Ud();Object.defineProperty(t,"RateCollection",{enumerable:!0,get:function(){return h.default}});var v=cu;Object.defineProperty(t,"User",{enumerable:!0,get:function(){return v.default}}),r(x0(),t),r(sp(),t)}(gs)),gs}var Ek=b&&b.__awaiter||function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function u(s){try{l(n.next(s))}catch(d){o(d)}}function c(s){try{l(n.throw(s))}catch(d){o(d)}}function l(s){s.done?i(s.value):a(s.value).then(u,c)}l((n=n.apply(t,e||[])).next())})},Ak=b&&b.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(l){return function(s){return c([l,s])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(s){l=[6,s],a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};Object.defineProperty(Ir,"__esModule",{value:!0});var Mk=X(),Nk=Ve(),lp=an,Ik=Wn,Fk=function(){function t(e){this.storageManager=e}return t.prototype.configure=function(e){return Ek(this,void 0,void 0,function(){var r,n;return Ak(this,function(a){switch(a.label){case 0:return r=lp.Injector.instance,r.constant("environment",e),n=new Nk.ConfigurationsService,[4,n.configure()];case 1:return a.sent(),r.constant("configuration-service",n),Ik.supplierPlacementTracker.setParams(),[2,this]}})})},t.prototype.getConfigurations=function(){return lp.Injector.instance.get("configuration-service").getConfigurations()},t.prototype.saveNew=function(e){return this.remove(e.getInsuranceCategory()),this.save(e),this},t.prototype.save=function(e){return this.storageManager.save(e.getInsuranceCategory(),e.getData()),this},t.prototype.get=function(e){var r=this.storageManager.get(e);return new Mk.RateCollection(e,r)},t.prototype.remove=function(e){return this.storageManager.remove(e),this},t}();Ir.default=Fk,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.InsuranceTransmissionClient=void 0;var e=Ir;Object.defineProperty(t,"InsuranceTransmissionClient",{enumerable:!0,get:function(){return e.default}})}(jt);var cp={},Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});var jk=function(){function t(e){return this.storage={},this.storageKey=e,this.freshStorage(),this.setStorage(),this}return t.prototype.getStorage=function(){var e=JSON.parse(localStorage.getItem(this.storageKey));return e||{}},t.prototype.setStorage=function(){return localStorage.setItem(this.storageKey,JSON.stringify(this.storage)),this},t.prototype.freshStorage=function(){return this.storage=this.getStorage(),this},t.prototype.save=function(e,r){return this.freshStorage(),this.storage[e]===void 0&&(this.storage[e]=[]),this.storage[e].push(r),this.setStorage(),this},t.prototype.put=function(e,r){return this.freshStorage(),this.storage[e]=r,this.setStorage(),this},t.prototype.get=function(e){return this.freshStorage(),this.storage[e]===void 0?[]:this.storage[e]},t.prototype.remove=function(e){return this.freshStorage(),delete this.storage[e],this.setStorage(),this},t.prototype.all=function(){return this.getStorage()},t}();Yu.default=jk,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageAdapter=void 0;var e=Yu;Object.defineProperty(t,"LocalStorageAdapter",{enumerable:!0,get:function(){return e.default}})}(cp),function(t){var e=b&&b.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var u=Object.getOwnPropertyDescriptor(a,i);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,u)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=b&&b.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(Za,t),r(jt,t),r(cp,t),r(X(),t),r(Ve(),t)}(ae);const dp=ge({__proto__:null,default:Ga(ae)},[ae]),ia={vd:{url:"http://master.dev.vergelijkdirect.com/index.php"},mijn:{url:"http://master.mijn-api.vergelijkdirect.com"},api:{url:"http://master.api.vergelijkdirect.com/"},postcode:{url:"https://api.postcodeapi.nu",key:"RL7RFSAjlA1mON4P3d4bzAOu0Fgfbwaac21WLG00"},qa:{url:"http://qa-api.dev.vergelijkdirect.com/"}},Wu={url:ia.api.url,login:ia.api.login,password:ia.api.password},$k={api:{baseUrl:Wu.url,auth:{username:Wu.login,password:Wu.password},version:"v2"}};function fp(t){let e=t.split("");return e[e.length-1]==="/"}const ms=class ms{constructor(e={},r={}){this.values=e,this.cached=r}constant(e,r){this.values[e]=()=>r}get(e){return e in this.cached?this.cached[e]:e in this.values?this.cached[e]=this.values[e](this):!1}};ve(ms,"instance",new ms);let oa=ms;class lo{static configure(e){if(e){const r=oa.instance;e.api&&e.api.url&&r.constant("vd-api-url",e.api.url),e.qa&&e.qa.url&&r.constant("qa-api-url",e.qa.url)}else console.warn("No environment were passed into comparison forms")}static getApiUrl(){return oa.instance.get("vd-api-url")||ia.api.url}static getQAUrl(){return oa.instance.get("qa-api-url")||ia.qa.url}}class Lk{constructor(){ve(this,"insurances",["PetService","MotorService","BikeService","MopedService","HousingService","HomeService","LiabilityService","HouseholdService","DocumentService","PackageService","CaravanService","DataValidationService","CarService","PartnerService","ComparisonService","UserService","V1Service","TravelService","DataService"]);ve(this,"activeInsurances");ve(this,"client");ve(this,"petService");ve(this,"motorService");ve(this,"bikeService");ve(this,"mopedService");ve(this,"housingService");ve(this,"homeService");ve(this,"liabilityService");ve(this,"householdService");ve(this,"documentService");ve(this,"packageService");ve(this,"caravanService");ve(this,"dataValidationService");ve(this,"carService");ve(this,"partnerService");ve(this,"validation");ve(this,"comparisonService");ve(this,"userService");ve(this,"v1Service");ve(this,"travelService");ve(this,"dataService")}getUrl(){return lo.getApiUrl()+(fp(lo.getApiUrl())?"api":"/api")}initITC(){return I(this,null,function*(){if(typeof window=="undefined")return;const e=JSON.parse(JSON.stringify($k));e.api.baseUrl=this.getUrl();const r=new ae.LocalStorageAdapter("insurances");return this.client=new ae.InsuranceTransmissionClient(r),yield this.client.configure(e),this.createConfig(),this.createInsuranceClasses(),this})}createConfig(){this.validation=new ae.DataValidationService,this.petService=new ae.PetService,this.motorService=new ae.MotorService,this.bikeService=new ae.BikeService,this.mopedService=new ae.MopedService,this.housingService=new ae.HousingService,this.homeService=new ae.HomeService,this.liabilityService=new ae.LiabilityService,this.householdService=new ae.HouseholdService,this.documentService=new ae.DocumentService,this.packageService=new ae.PackageService,this.caravanService=new ae.CaravanService,this.dataValidationService=new ae.DataValidationService,this.carService=new ae.CarService,this.partnerService=new ae.PartnerService,this.comparisonService=new ae.ComparisonService,this.userService=new ae.UserService,this.v1Service=new ae.V1Service,this.travelService=new ae.TravelService,this.dataService=new ae.DataService}createInsuranceClasses(){this.insurances.map(e=>{if(Object.prototype.hasOwnProperty.call(dp,e)){const r={};r[e]=new dp[e],this.activeInsurances=Object.assign({},this.activeInsurances,r)}else console.error(`${e} is not found in insurance transmission client`)})}get getActiveInsurances(){return this.activeInsurances}get getClient(){return this.client}getVehicleLicenseInformation(e,r){return I(this,null,function*(){const n=e.toLocaleLowerCase(),a=this.dataService.findVehicle(r,n);return a||null})}}let je=null,sa=y.ref(!1);const Bk=(t=null)=>I(this,null,function*(){try{sa.value=!1,je=t||(yield new Lk().initITC()),sa.value=!0}catch(e){console.warn(e),sa.value=!1}});/**
|
|
12
12
|
* vee-validate v2.2.15
|
|
13
13
|
* (c) 2019 Abdelrahman Awad
|
|
14
14
|
* @license MIT
|