PageSourceSearch

https://static.alloprof.qc.ca/webapp/builds/8061618/chunk-5LB7FMYN.js

js alloprof.qc.ca collected 2026-10-01 10:37:32 UTC 148,024 bytes, 20 lines download raw bytes

1import{a as Ho,b as _d}from"./chunk-5XGNJBFC.js";import{$b as Ue,Dc as yt,Ec as si,Fc as Xo,Gc as bd,Sc as er,Tc as Md,Zb as vt,_b as ai,a as Bo,ac as Ut,b as hd,fc as fn,gc as Qo,hc as hn,ic as $o,id as Xe,jc as Jo,jd as _n,kc as Cd,lc as Ko,m as qo,mc as wd,md as tr,n as vd,nd as Pd,s as Zo,t as yd}from"./chunk-UJKMVF2Z.js";import{$ as $e,Aa as xo,Ab as S,Bb as D,Cc as Io,Cf as Ao,Ha as v,Hc as Eo,Hf as Wo,I as bo,Ia as f,Ja as u,Jc as Lo,Jf as ge,Ka as y,Kc as ri,Ke as No,Kf as un,Lc as Yo,Le as fd,Mc as G,Nc as K,Nd as at,O as B,Oa as Ee,Oc as Fo,Oe as ce,Of as Vo,P as H,Pa as Le,Pc as he,Pe as Ft,Q as Ie,R as Mo,Ra as ee,Rf as ae,S as Po,Sb as J,Se as mn,Sf as pn,Ta as F,Ue as me,Va as I,Vb as dn,Vf as jo,Wb as de,Wf as Ye,Ya as ie,Yf as Ke,Za as oe,_a as re,bc as To,bf as Ro,cg as zo,da as Yt,dc as Je,dd as cn,eb as Oo,eh as Ge,fd as Uo,gb as So,gc as _e,hb as P,ia as p,ib as N,ja as rt,jb as q,jd as E,ka as ln,kg as Fe,md as gt,ng as Go,oa as C,og as gd,pd as R,qa as W,ra as ko,ub as Do,va as V}from"./chunk-3KXTMGPY.js";import{a as ye,b as sn,c as Co,f as se,g as pd,i as wo,k as _t}from"./chunk-WHAQOLYP.js";var Ct,Nt=se(()=>{"use strict";at();J();Ge();he();_n();Ct=(()=>{let s=class s{constructor(a,d,r,g,x,j){this.injector=a,this.profileService=d,this.events=r,this.translate=g,this.as=x,this.uds=j,this.typeControl=new R(null,[E.required]),this.monthControl=new R(null,[E.required]),this.yearControl=new R(null,[E.required]),this.genderControl=new R(null,[E.required]),this.langControl=new R(null,[E.required]),this.subscriptions=[],this.selectTypes=[],this.selectLanguages=[],this.currentUser={},this.isLoaded=!1,this.updateUser=()=>{this.as.getCurrentUser().subscribe(O=>{this.currentUser=O})},this.initializeOptions(),this.subscriptions.push(this.as.getCurrentUser().subscribe(O=>{this.currentUser=O,this.currentUser&&(this.setFields(),this.isLoaded=!0)})),this.events.on("user:updated",this.updateUser),this.typeControl.valueChanges.subscribe(O=>{this.currentUser&&this.isLoaded&&O!=null&&this.currentUser.type!=O&&this.uds.setData({type:O})}),this.langControl.valueChanges.subscribe(O=>{this.currentUser&&this.isLoaded&&O!=null&&this.currentUser.lang!=O&&this.uds.setData({lang:O})})}ngOnInit(){}ngOnDestroy(){this.isLoaded=!1,this.subscriptions.forEach(a=>a.unsubscribe())}showBirthday(){return this.currentUser&&this.currentUser.type=="student"}initializeOptions(){this.selectTypes=this.profileService.getSelectTypes(),this.selectLanguages=this.profileService.getLanguages()}setFields(){this.typeControl.setValue(this.currentUser.type||null),this.typeControl.disable(),this.langControl.setValue(this.currentUser.lang||null)}
1getLabel(a){return this.translate.instant(a)}};s.\u0275fac=function(d){return new(d||s)(C(Po),C(Ke),C(me),C(G),C(ae),C(Ye))},s.\u0275cmp=W({type:s,selectors:[["app-profile-general-information"]],standalone:!1,decls:11,vars:12,consts:[[1,"profile-general-information"],[1,"profile__body--title"],[1,"appa-d-flex","appa-align-items-center"],[1,"profile__body--content"],[1,"appa_form__grid"],[3,"list","disabled","dotShowed","label","control"],[3,"list","label","dotShowed","control"]],template:function(d,r){d&1&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"span"),P(4),S(5,"translate"),u()()(),f(6,"div",3)(7,"div",4),y(8,"app-select",5),u(),f(9,"div",4),y(10,"app-select",6),u()()()),d&2&&(p(4),N(D(5,10,"Profile.Default.GeneralForm.title")),p(4),v("list",r.selectTypes)("disabled",!0)("dotShowed",!r.typeControl.value)("label",r.getLabel("Profile.Default.GeneralForm.profile_type_label"))("control",r.typeControl),p(2),v("list",r.selectLanguages)("label",r.getLabel(r.currentUser&&r.currentUser.type=="parent"?"Auth.Register.profile_language":"Profile.Default.GeneralForm.main_lang"))("dotShowed",!r.langControl.value)("control",r.langControl))},dependencies:[Xe,K],styles:[`.appa_form__grid[_ngcontent-%COMP%]{margin-bottom:40px}.appa_form__grid[_ngcontent-%COMP%]   .profile-general-information[_ngcontent-%COMP%]   .profile__body--title[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{font-weight:var(--fw-bold)}.appa_form__grid[_ngcontent-%COMP%]:last-child{margin-bottom:0}
2/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/profile-general-information.component-M5J3T3XK.css.map */`]});let c=s;return c})()});var mi=pd((ci,wt)=>{"use strict";(function(c,s){typeof ci=="object"&&typeof wt<"u"?wt.exports=s():typeof define=="function"&&define.amd?define(s):c.moment=s()})(ci,function(){"use strict";var c;function s(){return c.apply(null,arguments)}function h(e){c=e}function a(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function d(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function g(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(r(e,t))return!1;return!0}function x(e){return e===void 0}function j(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function O(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Oe(e,t){var n=[],i,o=e.length;for(i=0;i<o;++i)n.push(t(e[i],i));return n}function te(e,t){for(var n in t)r(t,n)&&(e[n]=t[n]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function pe(e,t,n,i){return $i(e,t,n,i,!0).utc()}function fr(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function T(e){return e._pf==null&&(e._pf=fr()),e._pf}var On;Array.prototype.some?On=Array.prototype.some:On=function(e){var t=Object(this),n=t.length>>>0,i;for(i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};function Sn(e){var t=null,n=!1,i=e._d&&!isNaN(e._d.getTime());if(i&&(t=T(e),n=On.call(t.parsedDateParts,function(o){return o!=null}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i;return e._isValid}function At(e){var t=pe(NaN);return e!=null?te(T(t),e):T(t).userInvalidated=!0,t}var Pi=s.momentProperties=[],Dn=!1;function Tn(e,t){var n,i,o,l=Pi.length;if(x(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),x(t._i)||(e._i=t._i),x(t._f)||(e._f=t._f),x(t._l)||(e._l=t._l),x(t._strict)||(e._strict=t._strict),x(t._tzm)||(e._tzm=t._tzm),x(t._isUTC)||(e._isUTC=t._isUTC),x(t._offset)||(e._offset=t._offset),x(t._pf)||(e._pf=T(t)),x(t._locale)||(e._locale=t._locale),l>0)for(n=0;n<l;n++)i=Pi[n],o=t[i],x(o)||(e[i]=o);return e}function Pt(e){Tn(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Dn===!1&&(Dn=!0,s.updateOffset(this),Dn=!1)}function Pe(e){return e instanceof Pt||e!=null&&e._isAMomentObject!=null}function ki(e){s.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function we(e,t){var n=!0;return te(function(){if(s.deprecationHandler!=null&&s.deprecationHandler(null,e),n){var i=[],o,l,m,w=arguments.length;for(l=0;l<w;l++){if(o="",typeof arguments[l]=="object"){o+=`
3[`+l+"] ";for(m in arguments[0])r(arguments[0],m)&&(o+=m+": "+arguments[0][m]+", ");o=o.slice(0,-2)}else o=arguments[l];i.push(o)}ki(e+`
4Arguments: `+Array.prototype.slice.call(i).join("")+`
5`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var xi={};function Oi(e,t){s.deprecationHandler!=null&&s.deprecationHandler(e,t),xi[e]||(ki(t),xi[e]=!0)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null;function Se(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function hr(e){var t,n;for(n in e)r(e,n)&&(t=e[n],Se(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function In(e,t){var n=te({},e),i;for(i in t)r(t,i)&&(d(e[i])&&d(t[i])?(n[i]={},te(n[i],e[i]),te(n[i],t[i])):t[i]!=null?n[i]=t[i]:delete n[i]);for(i in e)r(e,i)&&!r(t,i)&&d(e[i])&&(n[i]=te({},n[i]));return n}function En(e){e!=null&&this.set(e)}var Ln;Object.keys?Ln=Object.keys:Ln=function(e){var t,n=[];for(t in e)r(e,t)&&n.push(t);return n};var _r={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function gr(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return Se(i)?i.call(t,n):i}function De(e,t,n){var i=""+Math.abs(e),o=t-i.length,l=e>=0;return(l?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var Yn=/(\[[^\[]*\])|(\\)?([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}
vendor: 53,594 bytes, line 5
5|x|X|zz?|ZZ?|.)/g,Wt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Fn={},st={};function M(e,t,n,i){var o=i;typeof i=="string"&&(o=function(){return this[i]()}),e&&(st[e]=o),t&&(st[t[0]]=function(){return De(o.apply(this,arguments),t[1],t[2])}),n&&(st[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function vr(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function yr(e){var t=e.match(Yn),n,i;for(n=0,i=t.length;n<i;n++)st[t[n]]?t[n]=st[t[n]]:t[n]=vr(t[n]);return function(o){var l="",m;for(m=0;m<i;m++)l+=Se(t[m])?t[m].call(o,e):t[m];return l}}function Vt(e,t){return e.isValid()?(t=Si(t,e.localeData()),Fn[t]=Fn[t]||yr(t),Fn[t](e)):e.localeData().invalidDate()}function Si(e,t){var n=5;function i(o){return t.longDateFormat(o)||o}for(Wt.lastIndex=0;n>=0&&Wt.test(e);)e=e.replace(Wt,i),Wt.lastIndex=0,n-=1;return e}var Cr={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 wr(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Yn).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var br="Invalid date";function Mr(){return this._invalidDate}var Pr="%d",kr=/\d{1,2}/;function xr(e){return this._ordinal.replace("%d",e)}var Or={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 Sr(e,t,n,i){var o=this._relativeTime[n];return Se(o)?o(e,t,n,i):o.replace(/%d/i,e)}function Dr(e,t){var n=this._relativeTime[e>0?"future":"past"];return Se(n)?n(t):n.replace(/%s/i,t)}var Di={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 be(e){return typeof e=="string"?Di[e]||Di[e.toLowerCase()]:void 0}function Un(e){var t={},n,i;for(i in e)r(e,i)&&(n=be(i),n&&(t[n]=e[i]));return t}var Tr={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 Ir(e){var t=[],n;for(n in e)r(e,n)&&t.push({unit:n,priority:Tr[n]});return t.sort(function(i,o){return i.priority-o.priority}),t}var Ti=/\d/,ve=/\d\d/,Ii=/\d{3}/,Nn=/\d{4}/,jt=/[+-]?\d{6}/,Z=/\d\d?/,Ei=/\d\d\d\d?/,Li=/\d\d\d\d\d\d?/,zt=/\d{1,3}/,Rn=/\d{1,4}/,Bt=/[+-]?\d{1,6}/,lt=/\d+/,Ht=/[+-]?\d+/,Er=/Z|[+-]\d\d:?\d\d/gi,Gt=/Z|[+-]\d\d(?::?\d\d)?/gi,Lr=/[+-]?\d+(\.\d{1,3})?/,kt=/[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,dt=/^[1-9]\d?/,An=/^([1-9]\d|\d)/,qt;qt={};function b(e,t,n){qt[e]=Se(t)?t:function(i,o){return i&&n?n:t}}function Yr(e,t){return r(qt,e)?qt[e](t._strict,t._locale):new RegExp(Fr(e))}function Fr(e){return Ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,i,o,l){return n||i||o||l}))}function Ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Me(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function L(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Me(t)),n}var Wn={};function z(e,t){var n,i=t,o;for(typeof e=="string"&&(e=[e]),j(t)&&(i=function(l,m){m[t]=L(l)}),o=e.length,n=0;n<o;n++)Wn[e[n]]=i}function xt(e,t){z(e,function(n,i,o,l){o._w=o._w||{},t(n,o._w,o,l)})}function Ur(e,t,n){t!=null&&r(Wn,e)&&Wn[e](t,n._a,n,e)}function Zt(e){return e%4===0&&e%100!==0||e%400===0}var le=0,Re=1,Te=2,ne=3,ke=4,Ae=5,nt=6,Nr=7,Rr=8;M("Y",0,0,function(){var e=this.year();return e<=9999?De(e,4):"+"+e}),M(0,["YY",2],0,function(){return this.year()%100}),M(0,["YYYY",4],0,"year"),M(0,["YYYYY",5],0,"year"),M(0,["YYYYYY",6,!0],0,"year"),b("Y",Ht),b("YY",Z,ve),b("YYYY",Rn,Nn),b("YYYYY",Bt,jt),b("YYYYYY",Bt,jt),z(["YYYYY","YYYYYY"],le),z("YYYY",function(e,t){t[le]=e.length===2?s.parseTwoDigitYear(e):L(e)}),z("YY",function(e,t){t[le]=s.parseTwoDigitYear(e)}),z("Y",function(e,t){t[le]=parseInt(e,10)});function Ot(e){return Zt(e)?366:365}s.parseTwoDigitYear=function(e){return L(e)+(L(e)>68?1900:2e3)};var Yi=ct("FullYear",!0);function Ar(){return Zt(this.year())}function ct(e,t){return function(n){return n!=null?(Fi(this,e,n),s.updateOffset(this,t),this):St(this,e)}}function St(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Fi(e,t,n){var i,o,l,m,w;if(!(!e.isValid()||isNaN(n))){switch(i=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(o?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(o?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(o?i.setUTCHours(n):i.setHours(n));case"Date":return void(o?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}l=n,m=e.month(),w=e.date(),w=w===29&&m===1&&!Zt(l)?28:w,o?i.setUTCFullYear(l,m,w):i.setFullYear(l,m,w)}}function Wr(e){return e=be(e),Se(this[e])?this[e]():this}function Vr(e,t){if(typeof e=="object"){e=Un(e);var n=Ir(e),i,o=n.length;for(i=0;i<o;i++)this[n[i].unit](e[n[i].unit])}else if(e=be(e),Se(this[e]))return this[e](t);return this}function jr(e,t){return(e%t+t)%t}var X;Array.prototype.indexOf?X=Array.prototype.indexOf:X=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Vn(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=jr(t,12);return e+=(t-n)/12,n===1?Zt(e)?29:28:31-n%7%2}M("M",["MM",2],"Mo",function(){return this.month()+1}),M("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),M("MMMM",0,0,function(e){return this.localeData().months(this,e)}),b("M",Z,dt),b("MM",Z,ve),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),z(["M","MM"],function(e,t){t[Re]=L(e)-1}),z(["MMM","MMMM"],function(e,t,n,i){var o=n._locale.monthsParse(e,i,n._strict);o!=null?t[Re]=o:T(n).invalidMonth=e});var zr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ui="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ni=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Br=kt,Hr=kt;function Gr(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ni).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function qr(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ni.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Zr(e,t,n){var i,o,l,m=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)l=pe([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(l,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(l,"").toLocaleLowerCase();return n?t==="MMM"?(o=X.call(this._shortMonthsParse,m),o!==-1?o:null):(o=X.call(this._longMonthsParse,m),o!==-1?o:null):t==="MMM"?(o=X.call(this._shortMonthsParse,m),o!==-1?o:(o=X.call(this._longMonthsParse,m),o!==-1?o:null)):(o=X.call(this._longMonthsParse,m),o!==-1?o:(o=X.call(this._shortMonthsParse,m),o!==-1?o:null))}function Qr(e,t,n){var i,o,l;if(this._monthsParseExact)return Zr.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=pe([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!n&&!this._monthsParse[i]&&(l="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(l.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(n&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function Ri(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=L(t);else if(t=e.localeData().monthsParse(t),!j(t))return e}var n=t,i=e.date();return i=i<29?i:Math.min(i,Vn(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,i):e._d.setMonth(n,i),e}function Ai(e){return e!=null?(Ri(this,e),s.updateOffset(this,!0),this):St(this,"Month")}function $r(){return Vn(this.year(),this.month())}function Jr(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Wi.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=Br),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Kr(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Wi.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=Hr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Wi(){function e(k,Y){return Y.length-k.length}var t=[],n=[],i=[],o,l,m,w;for(o=0;o<12;o++)l=pe([2e3,o]),m=Ne(this.monthsShort(l,"")),w=Ne(this.months(l,"")),t.push(m),n.push(w),i.push(w),i.push(m);t.sort(e),n.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Xr(e,t,n,i,o,l,m){var w;return e<100&&e>=0?(w=new Date(e+400,t,n,i,o,l,m),isFinite(w.getFullYear())&&w.setFullYear(e)):w=new Date(e,t,n,i,o,l,m),w}function Dt(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Qt(e,t,n){var i=7+t-n,o=(7+Dt(e,0,i).getUTCDay()-t)%7;return-o+i-1}function Vi(e,t,n,i,o){var l=(7+n-i)%7,m=Qt(e,i,o),w=1+7*(t-1)+l+m,k,Y;return w<=0?(k=e-1,Y=Ot(k)+w):w>Ot(e)?(k=e+1,Y=w-Ot(e)):(k=e,Y=w),{year:k,dayOfYear:Y}}function Tt(e,t,n){var i=Qt(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1,l,m;return o<1?(m=e.year()-1,l=o+We(m,t,n)):o>We(e.year(),t,n)?(l=o-We(e.year(),t,n),m=e.year()+1):(m=e.year(),l=o),{week:l,year:m}}function We(e,t,n){var i=Qt(e,t,n),o=Qt(e+1,t,n);return(Ot(e)-i+o)/7}M("w",["ww",2],"wo","week"),M("W",["WW",2],"Wo","isoWeek"),b("w",Z,dt),b("ww",Z,ve),b("W",Z,dt),b("WW",Z,ve),xt(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=L(e)});function ea(e){return Tt(e,this._week.dow,this._week.doy).week}var ta={dow:0,doy:6};function na(){return this._week.dow}function ia(){return this._week.doy}function oa(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function ra(e){var t=Tt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}M("d",0,"do","day"),M("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),M("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),M("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),M("e",0,0,"weekday"),M("E",0,0,"isoWeekday"),b("d",Z),b("e",Z),b("E",Z),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),xt(["dd","ddd","dddd"],function(e,t,n,i){var o=n._locale.weekdaysParse(e,i,n._strict);o!=null?t.d=o:T(n).invalidWeekday=e}),xt(["d","e","E"],function(e,t,n,i){t[i]=L(e)});function aa(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function sa(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function jn(e,t){return e.slice(t,7).concat(e.slice(0,t))}var la="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ji="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),da="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ca=kt,ma=kt,ua=kt;function pa(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?jn(n,this._week.dow):e?n[e.day()]:n}function fa(e){return e===!0?jn(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ha(e){return e===!0?jn(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function _a(e,t,n){var i,o,l,m=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)l=pe([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(l,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(l,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(l,"").toLocaleLowerCase();return n?t==="dddd"?(o=X.call(this._weekdaysParse,m),o!==-1?o:null):t==="ddd"?(o=X.call(this._shortWeekdaysParse,m),o!==-1?o:null):(o=X.call(this._minWeekdaysParse,m),o!==-1?o:null):t==="dddd"?(o=X.call(this._weekdaysParse,m),o!==-1||(o=X.call(this._shortWeekdaysParse,m),o!==-1)?o:(o=X.call(this._minWeekdaysParse,m),o!==-1?o:null)):t==="ddd"?(o=X.call(this._shortWeekdaysParse,m),o!==-1||(o=X.call(this._weekdaysParse,m),o!==-1)?o:(o=X.call(this._minWeekdaysParse,m),o!==-1?o:null)):(o=X.call(this._minWeekdaysParse,m),o!==-1||(o=X.call(this._weekdaysParse,m),o!==-1)?o:(o=X.call(this._shortWeekdaysParse,m),o!==-1?o:null))}function ga(e,t,n){var i,o,l;if(this._weekdaysParseExact)return _a.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=pe([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(l="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(l.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(n&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(n&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function va(e){if(!this.isValid())return e!=null?this:NaN;var t=St(this,"Day");return e!=null?(e=aa(e,this.localeData()),this.add(e-t,"d")):t}function ya(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Ca(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=sa(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function wa(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||zn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=ca),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ba(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||zn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ma),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ma(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||zn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ua),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zn(){function e(fe,He){return He.length-fe.length}var t=[],n=[],i=[],o=[],l,m,w,k,Y;for(l=0;l<7;l++)m=pe([2e3,1]).day(l),w=Ne(this.weekdaysMin(m,"")),k=Ne(this.weekdaysShort(m,"")),Y=Ne(this.weekdays(m,"")),t.push(w),n.push(k),i.push(Y),o.push(w),o.push(k),o.push(Y);t.sort(e),n.sort(e),i.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Bn(){return this.hours()%12||12}function Pa(){return this.hours()||24}M("H",["HH",2],0,"hour"),M("h",["hh",2],0,Bn),M("k",["kk",2],0,Pa),M("hmm",0,0,function(){return""+Bn.apply(this)+De(this.minutes(),2)}),M("hmmss",0,0,function(){return""+Bn.apply(this)+De(this.minutes(),2)+De(this.seconds(),2)}),M("Hmm",0,0,function(){return""+this.hours()+De(this.minutes(),2)}),M("Hmmss",0,0,function(){return""+this.hours()+De(this.minutes(),2)+De(this.seconds(),2)});function zi(e,t){M(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}zi("a",!0),zi("A",!1);function Bi(e,t){return t._meridiemParse}b("a",Bi),b("A",Bi),b("H",Z,An),b("h",Z,dt),b("k",Z,dt),b("HH",Z,ve),b("hh",Z,ve),b("kk",Z,ve),b("hmm",Ei),b("hmmss",Li),b("Hmm",Ei),b("Hmmss",Li),z(["H","HH"],ne),z(["k","kk"],function(e,t,n){var i=L(e);t[ne]=i===24?0:i}),z(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),z(["h","hh"],function(e,t,n){t[ne]=L(e),T(n).bigHour=!0}),z("hmm",function(e,t,n){var i=e.length-2;t[ne]=L(e.substr(0,i)),t[ke]=L(e.substr(i)),T(n).bigHour=!0}),z("hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[ne]=L(e.substr(0,i)),t[ke]=L(e.substr(i,2)),t[Ae]=L(e.substr(o)),T(n).bigHour=!0}),z("Hmm",function(e,t,n){var i=e.length-2;t[ne]=L(e.substr(0,i)),t[ke]=L(e.substr(i))}),z("Hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[ne]=L(e.substr(0,i)),t[ke]=L(e.substr(i,2)),t[Ae]=L(e.substr(o))});function ka(e){return(e+"").toLowerCase().charAt(0)==="p"}var xa=/[ap]\.?m?\.?/i,Oa=ct("Hours",!0);function Sa(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Hi={calendar:_r,longDateFormat:Cr,invalidDate:br,ordinal:Pr,dayOfMonthOrdinalParse:kr,relativeTime:Or,months:zr,monthsShort:Ui,week:ta,weekdays:la,weekdaysMin:da,weekdaysShort:ji,meridiemParse:xa},$={},It={},Et;function Da(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function Gi(e){return e&&e.toLowerCase().replace("_","-")}function Ta(e){for(var t=0,n,i,o,l;t<e.length;){for(l=Gi(e[t]).split("-"),n=l.length,i=Gi(e[t+1]),i=i?i.split("-"):null;n>0;){if(o=$t(l.slice(0,n).join("-")),o)return o;if(i&&i.length>=n&&Da(l,i)>=n-1)break;n--}t++}return Et}function Ia(e){return!!(e&&e.match("^[^/\\\\]*$"))}function $t(e){var t=null,n;if($[e]===void 0&&typeof wt<"u"&&wt&&wt.exports&&Ia(e))try{t=Et._abbr,n=Co,n("./locale/"+e),qe(t)}catch{$[e]=null}return $[e]}function qe(e,t){var n;return e&&(x(t)?n=Ve(e):n=Hn(e,t),n?Et=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Et._abbr}function Hn(e,t){if(t!==null){var n,i=Hi;if(t.abbr=e,$[e]!=null)Oi("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."),i=$[e]._config;else if(t.parentLocale!=null)if($[t.parentLocale]!=null)i=$[t.parentLocale]._config;else if(n=$t(t.parentLocale),n!=null)i=n._config;else return It[t.parentLocale]||(It[t.parentLocale]=[]),It[t.parentLocale].push({name:e,config:t}),null;return $[e]=new En(In(i,t)),It[e]&&It[e].forEach(function(o){Hn(o.name,o.config)}),qe(e),$[e]}else return delete $[e],null}function Ea(e,t){if(t!=null){var n,i,o=Hi;$[e]!=null&&$[e].parentLocale!=null?$[e].set(In($[e]._config,t)):(i=$t(e),i!=null&&(o=i._config),t=In(o,t),i==null&&(t.abbr=e),n=new En(t),n.parentLocale=$[e],$[e]=n),qe(e)}else $[e]!=null&&($[e].parentLocale!=null?($[e]=$[e].parentLocale,e===qe()&&qe(e)):$[e]!=null&&delete $[e]);return $[e]}function Ve(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Et;if(!a(e)){if(t=$t(e),t)return t;e=[e]}return Ta(e)}function La(){return Ln($)}function Gn(e){var t,n=e._a;return n&&T(e).overflow===-2&&(t=n[Re]<0||n[Re]>11?Re:n[Te]<1||n[Te]>Vn(n[le],n[Re])?Te:n[ne]<0||n[ne]>24||n[ne]===24&&(n[ke]!==0||n[Ae]!==0||n[nt]!==0)?ne:n[ke]<0||n[ke]>59?ke:n[Ae]<0||n[Ae]>59?Ae:n[nt]<0||n[nt]>999?nt:-1,T(e)._overflowDayOfYear&&(t<le||t>Te)&&(t=Te),T(e)._overflowWeeks&&t===-1&&(t=Nr),T(e)._overflowWeekday&&t===-1&&(t=Rr),T(e).overflow=t),e}var Ya=/^\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)?)?$/,Fa=/^\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)?)?$/,Ua=/Z|[+-]\d\d(?::?\d\d)?/,Jt=[["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]],qn=[["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/]],Na=/^\/?Date\((-?\d+)/i,Ra=/^(?:(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}))$/,Aa={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qi(e){var t,n,i=e._i,o=Ya.exec(i)||Fa.exec(i),l,m,w,k,Y=Jt.length,fe=qn.length;if(o){for(T(e).iso=!0,t=0,n=Y;t<n;t++)if(Jt[t][1].exec(o[1])){m=Jt[t][0],l=Jt[t][2]!==!1;break}if(m==null){e._isValid=!1;return}if(o[3]){for(t=0,n=fe;t<n;t++)if(qn[t][1].exec(o[3])){w=(o[2]||" ")+qn[t][0];break}if(w==null){e._isValid=!1;return}}if(!l&&w!=null){e._isValid=!1;return}if(o[4])if(Ua.exec(o[4]))k="Z";else{e._isValid=!1;return}e._f=m+(w||"")+(k||""),Qn(e)}else e._isValid=!1}function Wa(e,t,n,i,o,l){var m=[Va(e),Ui.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return l&&m.push(parseInt(l,10)),m}function Va(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ja(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function za(e,t,n){if(e){var i=ji.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(i!==o)return T(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Ba(e,t,n){if(e)return Aa[e];if(t)return 0;var i=parseInt(n,10),o=i%100,l=(i-o)/100;return l*60+o}function Zi(e){var t=Ra.exec(ja(e._i)),n;if(t){if(n=Wa(t[4],t[3],t[2],t[5],t[6],t[7]),!za(t[1],n,e))return;e._a=n,e._tzm=Ba(t[8],t[9],t[10]),e._d=Dt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),T(e).rfc2822=!0}else e._isValid=!1}function Ha(e){var t=Na.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(qi(e),e._isValid===!1)delete e._isValid;else return;if(Zi(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:s.createFromInputFallback(e)}s.createFromInputFallback=we("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function mt(e,t,n){return e??t??n}function Ga(e){var t=new Date(s.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Zn(e){var t,n,i=[],o,l,m;if(!e._d){for(o=Ga(e),e._w&&e._a[Te]==null&&e._a[Re]==null&&qa(e),e._dayOfYear!=null&&(m=mt(e._a[le],o[le]),(e._dayOfYear>Ot(m)||e._dayOfYear===0)&&(T(e)._overflowDayOfYear=!0),n=Dt(m,0,e._dayOfYear),e._a[Re]=n.getUTCMonth(),e._a[Te]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=o[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ne]===24&&e._a[ke]===0&&e._a[Ae]===0&&e._a[nt]===0&&(e._nextDay=!0,e._a[ne]=0),e._d=(e._useUTC?Dt:Xr).apply(null,i),l=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ne]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==l&&(T(e).weekdayMismatch=!0)}}function qa(e){var t,n,i,o,l,m,w,k,Y;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(l=1,m=4,n=mt(t.GG,e._a[le],Tt(Q(),1,4).year),i=mt(t.W,1),o=mt(t.E,1),(o<1||o>7)&&(k=!0)):(l=e._locale._week.dow,m=e._locale._week.doy,Y=Tt(Q(),l,m),n=mt(t.gg,e._a[le],Y.year),i=mt(t.w,Y.week),t.d!=null?(o=t.d,(o<0||o>6)&&(k=!0)):t.e!=null?(o=t.e+l,(t.e<0||t.e>6)&&(k=!0)):o=l),i<1||i>We(n,l,m)?T(e)._overflowWeeks=!0:k!=null?T(e)._overflowWeekday=!0:(w=Vi(n,i,o,l,m),e._a[le]=w.year,e._dayOfYear=w.dayOfYear)}s.ISO_8601=function(){},s.RFC_2822=function(){};function Qn(e){if(e._f===s.ISO_8601){qi(e);return}if(e._f===s.RFC_2822){Zi(e);return}e._a=[],T(e).empty=!0;var t=""+e._i,n,i,o,l,m,w=t.length,k=0,Y,fe;for(o=Si(e._f,e._locale).match(Yn)||[],fe=o.length,n=0;n<fe;n++)l=o[n],i=(t.match(Yr(l,e))||[])[0],i&&(m=t.substr(0,t.indexOf(i)),m.length>0&&T(e).unusedInput.push(m),t=t.slice(t.indexOf(i)+i.length),k+=i.length),st[l]?(i?T(e).empty=!1:T(e).unusedTokens.push(l),Ur(l,i,e)):e._strict&&!i&&T(e).unusedTokens.push(l);T(e).charsLeftOver=w-k,t.length>0&&T(e).unusedInput.push(t),e._a[ne]<=12&&T(e).bigHour===!0&&e._a[ne]>0&&(T(e).bigHour=void 0),T(e).parsedDateParts=e._a.slice(0),T(e).meridiem=e._meridiem,e._a[ne]=Za(e._locale,e._a[ne],e._meridiem),Y=T(e).era,Y!==null&&(e._a[le]=e._locale.erasConvertYear(Y,e._a[le])),Zn(e),Gn(e)}function Za(e,t,n){var i;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(i=e.isPM(n),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function Qa(e){var t,n,i,o,l,m,w=!1,k=e._f.length;if(k===0){T(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<k;o++)l=0,m=!1,t=Tn({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],Qn(t),Sn(t)&&(m=!0),l+=T(t).charsLeftOver,l+=T(t).unusedTokens.length*10,T(t).score=l,w?l<i&&(i=l,n=t):(i==null||l<i||m)&&(i=l,n=t,m&&(w=!0));te(e,n||t)}function $a(e){if(!e._d){var t=Un(e._i),n=t.day===void 0?t.date:t.day;e._a=Oe([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),Zn(e)}}function Ja(e){var t=new Pt(Gn(Qi(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Qi(e){var t=e._i,n=e._f;return e._locale=e._locale||Ve(e._l),t===null||n===void 0&&t===""?At({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Pe(t)?new Pt(Gn(t)):(O(t)?e._d=t:a(n)?Qa(e):n?Qn(e):Ka(e),Sn(e)||(e._d=null),e))}function Ka(e){var t=e._i;x(t)?e._d=new Date(s.now()):O(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Ha(e):a(t)?(e._a=Oe(t.slice(0),function(n){return parseInt(n,10)}),Zn(e)):d(t)?$a(e):j(t)?e._d=new Date(t):s.createFromInputFallback(e)}function $i(e,t,n,i,o){var l={};return(t===!0||t===!1)&&(i=t,t=void 0),(n===!0||n===!1)&&(i=n,n=void 0),(d(e)&&g(e)||a(e)&&e.length===0)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=e,l._f=t,l._strict=i,Ja(l)}function Q(e,t,n,i){return $i(e,t,n,i,!1)}var Xa=we("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Q.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:At()}),es=we("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Q.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:At()});function Ji(e,t){var n,i;if(t.length===1&&a(t[0])&&(t=t[0]),!t.length)return Q();for(n=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](n))&&(n=t[i]);return n}function ts(){var e=[].slice.call(arguments,0);return Ji("isBefore",e)}function ns(){var e=[].slice.call(arguments,0);return Ji("isAfter",e)}var is=function(){return Date.now?Date.now():+new Date},Lt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function os(e){var t,n=!1,i,o=Lt.length;for(t in e)if(r(e,t)&&!(X.call(Lt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<o;++i)if(e[Lt[i]]){if(n)return!1;parseFloat(e[Lt[i]])!==L(e[Lt[i]])&&(n=!0)}return!0}function rs(){return this._isValid}function as(){return xe(NaN)}function Kt(e){var t=Un(e),n=t.year||0,i=t.quarter||0,o=t.month||0,l=t.week||t.isoWeek||0,m=t.day||0,w=t.hour||0,k=t.minute||0,Y=t.second||0,fe=t.millisecond||0;this._isValid=os(t),this._milliseconds=+fe+Y*1e3+k*6e4+w*1e3*60*60,this._days=+m+l*7,this._months=+o+i*3+n*12,this._data={},this._locale=Ve(),this._bubble()}function Xt(e){return e instanceof Kt}function $n(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ss(e,t,n){var i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),l=0,m;for(m=0;m<i;m++)(n&&e[m]!==t[m]||!n&&L(e[m])!==L(t[m]))&&l++;return l+o}function Ki(e,t){M(e,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+De(~~(n/60),2)+t+De(~~n%60,2)})}Ki("Z",":"),Ki("ZZ",""),b("Z",Gt),b("ZZ",Gt),z(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Jn(Gt,e)});var ls=/([\+\-]|\d\d)/gi;function Jn(e,t){var n=(t||"").match(e),i,o,l;return n===null?null:(i=n[n.length-1]||[],o=(i+"").match(ls)||["-",0,0],l=+(o[1]*60)+L(o[2]),l===0?0:o[0]==="+"?l:-l)}function Kn(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(Pe(e)||O(e)?e.valueOf():Q(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),s.updateOffset(n,!1),n):Q(e).local()}function Xn(e){return-Math.round(e._d.getTimezoneOffset())}s.updateOffset=function(){};function ds(e,t,n){var i=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Jn(Gt,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(o=Xn(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?no(this,xe(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:Xn(this)}function cs(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ms(e){return this.utcOffset(0,e)}function us(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Xn(this),"m")),this}function ps(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Jn(Er,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function fs(e){return this.isValid()?(e=e?Q(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function hs(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _s(){if(!x(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Tn(e,this),e=Qi(e),e._a?(t=e._isUTC?pe(e._a):Q(e._a),this._isDSTShifted=this.isValid()&&ss(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function gs(){return this.isValid()?!this._isUTC:!1}function vs(){return this.isValid()?this._isUTC:!1}function Xi(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ys=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Cs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function xe(e,t){var n=e,i=null,o,l,m;return Xt(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:j(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(i=ys.exec(e))?(o=i[1]==="-"?-1:1,n={y:0,d:L(i[Te])*o,h:L(i[ne])*o,m:L(i[ke])*o,s:L(i[Ae])*o,ms:L($n(i[nt]*1e3))*o}):(i=Cs.exec(e))?(o=i[1]==="-"?-1:1,n={y:it(i[2],o),M:it(i[3],o),w:it(i[4],o),d:it(i[5],o),h:it(i[6],o),m:it(i[7],o),s:it(i[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(m=ws(Q(n.from),Q(n.to)),n={},n.ms=m.milliseconds,n.M=m.months),l=new Kt(n),Xt(e)&&r(e,"_locale")&&(l._locale=e._locale),Xt(e)&&r(e,"_isValid")&&(l._isValid=e._isValid),l}xe.fn=Kt.prototype,xe.invalid=as;function it(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function eo(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function ws(e,t){var n;return e.isValid()&&t.isValid()?(t=Kn(t,e),e.isBefore(t)?n=eo(e,t):(n=eo(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function to(e,t){return function(n,i){var o,l;return i!==null&&!isNaN(+i)&&(Oi(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),l=n,n=i,i=l),o=xe(n,i),no(this,o,e),this}}function no(e,t,n,i){var o=t._milliseconds,l=$n(t._days),m=$n(t._months);e.isValid()&&(i=i??!0,m&&Ri(e,St(e,"Month")+m*n),l&&Fi(e,"Date",St(e,"Date")+l*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&s.updateOffset(e,l||m))}var bs=to(1,"add"),Ms=to(-1,"subtract");function io(e){return typeof e=="string"||e instanceof String}function Ps(e){return Pe(e)||O(e)||io(e)||j(e)||xs(e)||ks(e)||e===null||e===void 0}function ks(e){var t=d(e)&&!g(e),n=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,l,m=i.length;for(o=0;o<m;o+=1)l=i[o],n=n||r(e,l);return t&&n}function xs(e){var t=a(e),n=!1;return t&&(n=e.filter(function(i){return!j(i)&&io(e)}).length===0),t&&n}function Os(e){var t=d(e)&&!g(e),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,l;for(o=0;o<i.length;o+=1)l=i[o],n=n||r(e,l);return t&&n}function Ss(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ds(e,t){arguments.length===1&&(arguments[0]?Ps(arguments[0])?(e=arguments[0],t=void 0):Os(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Q(),i=Kn(n,this).startOf("day"),o=s.calendarFormat(this,i)||"sameElse",l=t&&(Se(t[o])?t[o].call(this,n):t[o]);return this.format(l||this.localeData().calendar(o,this,Q(n)))}function Ts(){return new Pt(this)}function Is(e,t){var n=Pe(e)?e:Q(e);return this.isValid()&&n.isValid()?(t=be(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Es(e,t){var n=Pe(e)?e:Q(e);return this.isValid()&&n.isValid()?(t=be(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Ls(e,t,n,i){var o=Pe(e)?e:Q(e),l=Pe(t)?t:Q(t);return this.isValid()&&o.isValid()&&l.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(i[1]===")"?this.isBefore(l,n):!this.isAfter(l,n))):!1}function Ys(e,t){var n=Pe(e)?e:Q(e),i;return this.isValid()&&n.isValid()?(t=be(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function Fs(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Us(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ns(e,t,n){var i,o,l;if(!this.isValid())return NaN;if(i=Kn(e,this),!i.isValid())return NaN;switch(o=(i.utcOffset()-this.utcOffset())*6e4,t=be(t),t){case"year":l=en(this,i)/12;break;case"month":l=en(this,i);break;case"quarter":l=en(this,i)/3;break;case"second":l=(this-i)/1e3;break;case"minute":l=(this-i)/6e4;break;case"hour":l=(this-i)/36e5;break;case"day":l=(this-i-o)/864e5;break;case"week":l=(this-i-o)/6048e5;break;default:l=this-i}return n?l:Me(l)}function en(e,t){if(e.date()<t.date())return-en(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(n,"months"),o,l;return t-i<0?(o=e.clone().add(n-1,"months"),l=(t-i)/(i-o)):(o=e.clone().add(n+1,"months"),l=(t-i)/(o-i)),-(n+l)||0}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Rs(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function As(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Vt(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Se(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Vt(n,"Z")):Vt(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ws(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,i,o,l;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",l=t+'[")]',this.format(n+i+o+l)}function Vs(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=Vt(this,e);return this.localeData().postformat(t)}function js(e,t){return this.isValid()&&(Pe(e)&&e.isValid()||Q(e).isValid())?xe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function zs(e){return this.from(Q(),e)}function Bs(e,t){return this.isValid()&&(Pe(e)&&e.isValid()||Q(e).isValid())?xe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Hs(e){return this.to(Q(),e)}function oo(e){var t;return e===void 0?this._locale._abbr:(t=Ve(e),t!=null&&(this._locale=t),this)}var ro=we("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function ao(){return this._locale}var tn=1e3,ut=60*tn,nn=60*ut,so=(365*400+97)*24*nn;function pt(e,t){return(e%t+t)%t}function lo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-so:new Date(e,t,n).valueOf()}function co(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-so:Date.UTC(e,t,n)}function Gs(e){var t,n;if(e=be(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?co:lo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pt(t+(this._isUTC?0:this.utcOffset()*ut),nn);break;case"minute":t=this._d.valueOf(),t-=pt(t,ut);break;case"second":t=this._d.valueOf(),t-=pt(t,tn);break}return this._d.setTime(t),s.updateOffset(this,!0),this}function qs(e){var t,n;if(e=be(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?co:lo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=nn-pt(t+(this._isUTC?0:this.utcOffset()*ut),nn)-1;break;case"minute":t=this._d.valueOf(),t+=ut-pt(t,ut)-1;break;case"second":t=this._d.valueOf(),t+=tn-pt(t,tn)-1;break}return this._d.setTime(t),s.updateOffset(this,!0),this}function Zs(){return this._d.valueOf()-(this._offset||0)*6e4}function Qs(){return Math.floor(this.valueOf()/1e3)}function $s(){return new Date(this.valueOf())}function Js(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ks(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Xs(){return this.isValid()?this.toISOString():null}function el(){return Sn(this)}function tl(){return te({},T(this))}function nl(){return T(this).overflow}function il(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}M("N",0,0,"eraAbbr"),M("NN",0,0,"eraAbbr"),M("NNN",0,0,"eraAbbr"),M("NNNN",0,0,"eraName"),M("NNNNN",0,0,"eraNarrow"),M("y",["y",1],"yo","eraYear"),M("y",["yy",2],0,"eraYear"),M("y",["yyy",3],0,"eraYear"),M("y",["yyyy",4],0,"eraYear"),b("N",ei),b("NN",ei),b("NNN",ei),b("NNNN",fl),b("NNNNN",hl),z(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var o=n._locale.erasParse(e,i,n._strict);o?T(n).era=o:T(n).invalidEra=e}),b("y",lt),b("yy",lt),b("yyy",lt),b("yyyy",lt),b("yo",_l),z(["y","yy","yyy","yyyy"],le),z(["yo"],function(e,t,n,i){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[le]=n._locale.eraYearOrdinalParse(e,o):t[le]=parseInt(e,10)});function ol(e,t){var n,i,o,l=this._eras||Ve("en")._eras;for(n=0,i=l.length;n<i;++n)switch(typeof l[n].since==="string"&&(o=s(l[n].since).startOf("day"),l[n].since=o.valueOf()),typeof l[n].until){case"undefined":l[n].until=1/0;break;case"string":o=s(l[n].until).startOf("day").valueOf(),l[n].until=o.valueOf();break}return l}function rl(e,t,n){var i,o,l=this.eras(),m,w,k;for(e=e.toUpperCase(),i=0,o=l.length;i<o;++i)if(m=l[i].name.toUpperCase(),w=l[i].abbr.toUpperCase(),k=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(w===e)return l[i];break;case"NNNN":if(m===e)return l[i];break;case"NNNNN":if(k===e)return l[i];break}else if([m,w,k].indexOf(e)>=0)return l[i]}function al(e,t){var n=e.since<=e.until?1:-1;return t===void 0?s(e.since).year():s(e.since).year()+(t-e.offset)*n}function sl(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].name;return""}function ll(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].narrow;return""}function dl(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].abbr;return""}function cl(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-s(o[e].since).year())*n+o[e].offset;return this.year()}function ml(e){return r(this,"_erasNameRegex")||ti.call(this),e?this._erasNameRegex:this._erasRegex}function ul(e){return r(this,"_erasAbbrRegex")||ti.call(this),e?this._erasAbbrRegex:this._erasRegex}function pl(e){return r(this,"_erasNarrowRegex")||ti.call(this),e?this._erasNarrowRegex:this._erasRegex}function ei(e,t){return t.erasAbbrRegex(e)}function fl(e,t){return t.erasNameRegex(e)}function hl(e,t){return t.erasNarrowRegex(e)}function _l(e,t){return t._eraYearOrdinalRegex||lt}function ti(){var e=[],t=[],n=[],i=[],o,l,m,w,k,Y=this.eras();for(o=0,l=Y.length;o<l;++o)m=Ne(Y[o].name),w=Ne(Y[o].abbr),k=Ne(Y[o].narrow),t.push(m),e.push(w),n.push(k),i.push(m),i.push(w),i.push(k);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}M(0,["gg",2],0,function(){return this.weekYear()%100}),M(0,["GG",2],0,function(){return this.isoWeekYear()%100});function on(e,t){M(0,[e,e.length],0,t)}on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),b("G",Ht),b("g",Ht),b("GG",Z,ve),b("gg",Z,ve),b("GGGG",Rn,Nn),b("gggg",Rn,Nn),b("GGGGG",Bt,jt),b("ggggg",Bt,jt),xt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=L(e)}),xt(["gg","GG"],function(e,t,n,i){t[i]=s.parseTwoDigitYear(e)});function gl(e){return mo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function vl(e){return mo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function yl(){return We(this.year(),1,4)}function Cl(){return We(this.isoWeekYear(),1,4)}function wl(){var e=this.localeData()._week;return We(this.year(),e.dow,e.doy)}function bl(){var e=this.localeData()._week;return We(this.weekYear(),e.dow,e.doy)}function mo(e,t,n,i,o){var l;return e==null?Tt(this,i,o).year:(l=We(e,i,o),t>l&&(t=l),Ml.call(this,e,t,n,i,o))}function Ml(e,t,n,i,o){var l=Vi(e,t,n,i,o),m=Dt(l.year,0,l.dayOfYear);return this.year(m.getUTCFullYear()),this.month(m.getUTCMonth()),this.date(m.getUTCDate()),this}M("Q",0,"Qo","quarter"),b("Q",Ti),z("Q",function(e,t){t[Re]=(L(e)-1)*3});function Pl(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}M("D",["DD",2],"Do","date"),b("D",Z,dt),b("DD",Z,ve),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),z(["D","DD"],Te),z("Do",function(e,t){t[Te]=L(e.match(Z)[0])});var uo=ct("Date",!0);M("DDD",["DDDD",3],"DDDo","dayOfYear"),b("DDD",zt),b("DDDD",Ii),z(["DDD","DDDD"],function(e,t,n){n._dayOfYear=L(e)});function kl(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}M("m",["mm",2],0,"minute"),b("m",Z,An),b("mm",Z,ve),z(["m","mm"],ke);var xl=ct("Minutes",!1);M("s",["ss",2],0,"second"),b("s",Z,An),b("ss",Z,ve),z(["s","ss"],Ae);var Ol=ct("Seconds",!1);M("S",0,0,function(){return~~(this.millisecond()/100)}),M(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),M(0,["SSS",3],0,"millisecond"),M(0,["SSSS",4],0,function(){return this.millisecond()*10}),M(0,["SSSSS",5],0,function(){return this.millisecond()*100}),M(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),M(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),M(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),M(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),b("S",zt,Ti),b("SS",zt,ve),b("SSS",zt,Ii);var Ze,po;for(Ze="SSSS";Ze.length<=9;Ze+="S")b(Ze,lt);function Sl(e,t){t[nt]=L(("0."+e)*1e3)}for(Ze="S";Ze.length<=9;Ze+="S")z(Ze,Sl);po=ct("Milliseconds",!1),M("z",0,0,"zoneAbbr"),M("zz",0,0,"zoneName");function Dl(){return this._isUTC?"UTC":""}function Tl(){return this._isUTC?"Coordinated Universal Time":""}var _=Pt.prototype;_.add=bs,_.calendar=Ds,_.clone=Ts,_.diff=Ns,_.endOf=qs,_.format=Vs,_.from=js,_.fromNow=zs,_.to=Bs,_.toNow=Hs,_.get=Wr,_.invalidAt=nl,_.isAfter=Is,_.isBefore=Es,_.isBetween=Ls,_.isSame=Ys,_.isSameOrAfter=Fs,_.isSameOrBefore=Us,_.isValid=el,_.lang=ro,_.locale=oo,_.localeData=ao,_.max=es,_.min=Xa,_.parsingFlags=tl,_.set=Vr,_.startOf=Gs,_.subtract=Ms,_.toArray=Js,_.toObject=Ks,_.toDate=$s,_.toISOString=As,_.inspect=Ws,typeof Symbol<"u"&&Symbol.for!=null&&(_[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),_.toJSON=Xs,_.toString=Rs,_.unix=Qs,_.valueOf=Zs,_.creationData=il,_.eraName=sl,_.eraNarrow=ll,_.eraAbbr=dl,_.eraYear=cl,_.year=Yi,_.isLeapYear=Ar,_.weekYear=gl,_.isoWeekYear=vl,_.quarter=_.quarters=Pl,_.month=Ai,_.daysInMonth=$r,_.week=_.weeks=oa,_.isoWeek=_.isoWeeks=ra,_.weeksInYear=wl,_.weeksInWeekYear=bl,_.isoWeeksInYear=yl,_.isoWeeksInISOWeekYear=Cl,_.date=uo,_.day=_.days=va,_.weekday=ya,_.isoWeekday=Ca,_.dayOfYear=kl,_.hour=_.hours=Oa,_.minute=_.minutes=xl,_.second=_.seconds=Ol,_.millisecond=_.milliseconds=po,_.utcOffset=ds,_.utc=ms,_.local=us,_.parseZone=ps,_.hasAlignedHourOffset=fs,_.isDST=hs,_.isLocal=gs,_.isUtcOffset=vs,_.isUtc=Xi,_.isUTC=Xi,_.zoneAbbr=Dl,_.zoneName=Tl,_.dates=we("dates accessor is deprecated. Use date instead.",uo),_.months=we("months accessor is deprecated. Use month instead",Ai),_.years=we("years accessor is deprecated. Use year instead",Yi),_.zone=we("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",cs),_.isDSTShifted=we("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_s);function Il(e){return Q(e*1e3)}function El(){return Q.apply(null,arguments).parseZone()}function fo(e){return e}var A=En.prototype;A.calendar=gr,A.longDateFormat=wr,A.invalidDate=Mr,A.ordinal=xr,A.preparse=fo,A.postformat=fo,A.relativeTime=Sr,A.pastFuture=Dr,A.set=hr,A.eras=ol,A.erasParse=rl,A.erasConvertYear=al,A.erasAbbrRegex=ul,A.erasNameRegex=ml,A.erasNarrowRegex=pl,A.months=Gr,A.monthsShort=qr,A.monthsParse=Qr,A.monthsRegex=Kr,A.monthsShortRegex=Jr,A.week=ea,A.firstDayOfYear=ia,A.firstDayOfWeek=na,A.weekdays=pa,A.weekdaysMin=ha,A.weekdaysShort=fa,A.weekdaysParse=ga,A.weekdaysRegex=wa,A.weekdaysShortRegex=ba,A.weekdaysMinRegex=Ma,A.isPM=ka,A.meridiem=Sa;function rn(e,t,n,i){var o=Ve(),l=pe().set(i,t);return o[n](l,e)}function ho(e,t,n){if(j(e)&&(t=e,e=void 0),e=e||"",t!=null)return rn(e,t,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=rn(e,i,n,"month");return o}function ni(e,t,n,i){typeof e=="boolean"?(j(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,j(t)&&(n=t,t=void 0),t=t||"");var o=Ve(),l=e?o._week.dow:0,m,w=[];if(n!=null)return rn(t,(n+l)%7,i,"day");for(m=0;m<7;m++)w[m]=rn(t,(m+l)%7,i,"day");return w}function Ll(e,t){return ho(e,t,"months")}function Yl(e,t){return ho(e,t,"monthsShort")}function Fl(e,t,n){return ni(e,t,n,"weekdays")}function Ul(e,t,n){return ni(e,t,n,"weekdaysShort")}function Nl(e,t,n){return ni(e,t,n,"weekdaysMin")}qe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=L(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),s.lang=we("moment.lang is deprecated. Use moment.locale instead.",qe),s.langData=we("moment.langData is deprecated. Use moment.localeData instead.",Ve);var je=Math.abs;function Rl(){var e=this._data;return this._milliseconds=je(this._milliseconds),this._days=je(this._days),this._months=je(this._months),e.milliseconds=je(e.milliseconds),e.seconds=je(e.seconds),e.minutes=je(e.minutes),e.hours=je(e.hours),e.months=je(e.months),e.years=je(e.years),this}function _o(e,t,n,i){var o=xe(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function Al(e,t){return _o(this,e,t,1)}function Wl(e,t){return _o(this,e,t,-1)}function go(e){return e<0?Math.floor(e):Math.ceil(e)}function Vl(){var e=this._milliseconds,t=this._days,n=this._months,i=this._data,o,l,m,w,k;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=go(ii(n)+t)*864e5,t=0,n=0),i.milliseconds=e%1e3,o=Me(e/1e3),i.seconds=o%60,l=Me(o/60),i.minutes=l%60,m=Me(l/60),i.hours=m%24,t+=Me(m/24),k=Me(vo(t)),n+=k,t-=go(ii(k)),w=Me(n/12),n%=12,i.days=t,i.months=n,i.years=w,this}function vo(e){return e*4800/146097}function ii(e){return e*146097/4800}function jl(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if(e=be(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,n=this._months+vo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(ii(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function ze(e){return function(){return this.as(e)}}var yo=ze("ms"),zl=ze("s"),Bl=ze("m"),Hl=ze("h"),Gl=ze("d"),ql=ze("w"),Zl=ze("M"),Ql=ze("Q"),$l=ze("y"),Jl=yo;function Kl(){return xe(this)}function Xl(e){return e=be(e),this.isValid()?this[e+"s"]():NaN}function ot(e){return function(){return this.isValid()?this._data[e]:NaN}}var ed=ot("milliseconds"),td=ot("seconds"),nd=ot("minutes"),id=ot("hours"),od=ot("days"),rd=ot("months"),ad=ot("years");function sd(){return Me(this.days()/7)}var Be=Math.round,ft={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ld(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}function dd(e,t,n,i){var o=xe(e).abs(),l=Be(o.as("s")),m=Be(o.as("m")),w=Be(o.as("h")),k=Be(o.as("d")),Y=Be(o.as("M")),fe=Be(o.as("w")),He=Be(o.as("y")),Qe=l<=n.ss&&["s",l]||l<n.s&&["ss",l]||m<=1&&["m"]||m<n.m&&["mm",m]||w<=1&&["h"]||w<n.h&&["hh",
5w]||k<=1&&["d"]||k<n.d&&["dd",k];return n.w!=null&&(Qe=Qe||fe<=1&&["w"]||fe<n.w&&["ww",fe]),Qe=Qe||Y<=1&&["M"]||Y<n.M&&["MM",Y]||He<=1&&["y"]||["yy",He],Qe[2]=t,Qe[3]=+e>0,Qe[4]=i,ld.apply(null,Qe)}function cd(e){return e===void 0?Be:typeof e=="function"?(Be=e,!0):!1}function md(e,t){return ft[e]===void 0?!1:t===void 0?ft[e]:(ft[e]=t,e==="s"&&(ft.ss=t-1),!0)}function ud(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,i=ft,o,l;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(i=Object.assign({},ft,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),o=this.localeData(),l=dd(this,!n,i,o),n&&(l=o.pastFuture(+this,l)),o.postformat(l)}var oi=Math.abs;function ht(e){return(e>0)-(e<0)||+e}function an(){if(!this.isValid())return this.localeData().invalidDate();var e=oi(this._milliseconds)/1e3,t=oi(this._days),n=oi(this._months),i,o,l,m,w=this.asSeconds(),k,Y,fe,He;return w?(i=Me(e/60),o=Me(i/60),e%=60,i%=60,l=Me(n/12),n%=12,m=e?e.toFixed(3).replace(/\.?0+$/,""):"",k=w<0?"-":"",Y=ht(this._months)!==ht(w)?"-":"",fe=ht(this._days)!==ht(w)?"-":"",He=ht(this._milliseconds)!==ht(w)?"-":"",k+"P"+(l?Y+l+"Y":"")+(n?Y+n+"M":"")+(t?fe+t+"D":"")+(o||i||e?"T":"")+(o?He+o+"H":"")+(i?He+i+"M":"")+(e?He+m+"S":"")):"P0D"}var U=Kt.prototype;U.isValid=rs,U.abs=Rl,U.add=Al,U.subtract=Wl,U.as=jl,U.asMilliseconds=yo,U.asSeconds=zl,U.asMinutes=Bl,U.asHours=Hl,U.asDays=Gl,U.asWeeks=ql,U.asMonths=Zl,U.asQuarters=Ql,U.asYears=$l,U.valueOf=Jl,U._bubble=Vl,U.clone=Kl,U.get=Xl,U.milliseconds=ed,U.seconds=td,U.minutes=nd,U.hours=id,U.days=od,U.weeks=sd,U.months=rd,U.years=ad,U.humanize=ud,U.toISOString=an,U.toString=an,U.toJSON=an,U.locale=oo,U.localeData=ao,U.toIsoString=we("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",an),U.lang=ro,M("X",0,0,"unix"),M("x",0,0,"valueOf"),b("x",Ht),b("X",Lr),z("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),z("x",function(e,t,n){n._d=new Date(L(e))});return s.version="2.30.1",h(Q),s.fn=_,s.min=ts,s.max=ns,s.now=is,s.utc=pe,s.unix=Il,s.months=Ll,s.isDate=O,s.locale=qe,s.invalid=At,s.duration=xe,s.isMoment=Pe,s.weekdays=Fl,s.parseZone=El,s.localeData=Ve,s.isDuration=Xt,s.monthsShort=Yl,s.weekdaysMin=Nl,s.defineLocale=Hn,s.updateLocale=Ea,s.locales=La,s.weekdaysShort=Ul,s.normalizeUnits=be,s.relativeTimeRounding=cd,s.relativeTimeThreshold=md,s.calendarFormat=Ss,s.prototype=_,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s})});var ir,xd,vn,yn=se(()=>{"use strict";at();Qo();Ft();ir=wo(mi());J();Ge();he();Fe();$o();ai();Ut();xd=["closeButton"],vn=(()=>{let s=class s{constructor(a,d,r,g,x,j){this.events=a,this.translate=d,this.backdrop=r,this.as=g,this.uds=x,this.tools=j,this.reminderTooltipShowed=!1,this.observerListeners=[],this.confirmModalOpened=!1,this.verifyStatus="none",this.emailFormControl=new R("",[E.required,E.pattern(fn)]),this.passwordFormControl=new R("",[E.required]),this.form=new gt({newEmail:this.emailFormControl,password:this.passwordFormControl}),this.emailError=null,this.passwordError=null,this.reset=!1,this.isSubmitting=!1,this.subscriptions=[],this.subscriptions.push(this.as.getCurrentUser().subscribe(O=>{this.currentUser=O}))}ngOnInit(){}openModal(){this.tools.addBodyClass("micromodal-opened"),ce.show("ModalChangeEmail",{disableScroll:!0,onClose:a=>this.onCloseModal(a),onShow:a=>this.onOpenModal(a)})}closeModal(){ce.close("ModalChangeEmail")}onOpenModal(a){this.closeButton.nativeElement.focus()}onCloseModal(a){this.tools.removeBodyClass("micromodal-opened")}submitForm(){!this.hasError()&&!this.isSubmitting&&(this.isSubmitting=!0,this.as.updateCurrentUserEmail(this.currentUser,this.passwordFormControl.value,this.emailFormControl.value).subscribe(a=>{this.newEmail=this.emailFormControl.value,this.uds.setData(sn(ye({},a),{emailVerified:!1,email_validation_available_after:(0,ir.default)().add(1,"days").format("YYYYMMDDHHmmssSSS"),email:this.emailFormControl.value,isChangedEmail:!0})),this.close(!0),this.isSubmitting=!1,ce.show("ModalSuccess")},a=>{this.isSubmitting=!1,a==="wrong-password"?this.setPasswordError():this.setEmailError()}))}hasError(){return!(this.form.controls.newEmail.valid&&this.form.controls.password.valid)||this.form.controls.password.value===""}onPasswordChange(){this.passwordError=null}onEmailChange(){this.emailError=null}getLabel(a){return this.translate.instant(a)}close(a=!1){this.tools.body.style.setProperty("overflow","inherit"),this.reset=!this.reset,this.form.controls.newEmail.reset(),this.form.controls.password.reset(),this.closeModal()}setEmailError(){this.emailError=this.translate.instant("Common.Forms.Errors.duplicated_email")}setPasswordError(){this.passwordError=this.translate.instant("Common.Forms.Errors.invalid_password")}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}};s.\u0275fac=function(d){return new(d||s)(C(me),C(G),C(un),C(ae),C(Ye),C(ge))},s.\u0275cmp=W({type:s,selectors:[["app-modal-change-email"]],viewQuery:function(d,r){if(d&1&&ie(xd,5),d&2){let g;oe(g=re())&&(r.closeButton=g.first)}},standalone:!1,decls:48,vars:32,consts:[["closeButton",""],["id","ModalChangeEmail","aria-hidden","true",1,"micromodal"],["tabindex","-1","data-micromodal-close","",1,"micromodal__overlay"],["role","dialog","aria-modal","true",1,"micromodal__container"],[1,"micromodal__header"],["aria-label","Close modal","data-micromodal-close","",1,"micromodal__close","icon","icon-close","icon--tilt"],["id","modal-1-content",1,"micromodal__content"],[1,"modal-change-email-dialog"],[1,"title"],[1,"appa_modal--signup__content--body"],[1,"appa_form__grid"],[3,"change","control","error","verifyEmailExist","label","autocomplete"],[1,"enter-password"],[1,"appa_form__grid",2,"margin-top","19px"],[1,"change-email",3,"change","error","reset","control","label","autocomplete","
5instantValidate"],[1,"footer"],["type","submit","data-test","login-submit",1,"btn","btn--md",3,"click","disabled"],[1,"appa-change-email-cancel"],[3,"click","label"],[1,"modal-change-email-dialog__back"],["id","ModalSuccess","aria-hidden","true",1,"micromodal"],[1,"micromodal__content"],[1,"description"],["data-micromodal-close","",1,"btn","btn--md"]],template:function(d,r){if(d&1){let g=ee();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"header",4),y(4,"button",5,0),u(),f(6,"main",6)(7,"div",7)(8,"div",8),P(9),S(10,"translate"),u(),f(11,"div",9)(12,"div",10)(13,"app-email-input",11),F("change",function(){return B(g),H(r.onEmailChange())}),u()(),f(14,"div")(15,"p",12),P(16),S(17,"translate"),u()(),f(18,"div",13)(19,"app-password-input",14),F("change",function(){return B(g),H(r.onPasswordChange())}),u()()(),f(20,"div",15)(21,"button",16),F("click",function(){return B(g),H(r.submitForm())}),P(22),S(23,"translate"),u(),f(24,"div",17)(25,"app-link-button",18),F("click",function(){return B(g),H(r.close(!1))}),u()()()(),y(26,"div",19),u()()()(),f(27,"div",20)(28,"div",2)(29,"div",3)(30,"header",4),y(31,"button",5),u(),f(32,"main",21)(33,"div",7)(34,"div",8),P(35),S(36,"translate"),u(),f(37,"div",22)(38,"p"),P(39),S(40,"translate"),u(),f(41,"strong"),P(42),u()(),f(43,"div",15)(44,"button",23),P(45),S(46,"translate"),u()()(),y(47,"div",19),u()()()()}d&2&&(p(9),q(" ",D(10,20,"Account.modify_email")),p(4),v("control",r.emailFormControl)("error",r.emailError)("verifyEmailExist",!0)("label",r.getLabel("Common.Forms.email_new"))("autocomplete","off"),p(3),q(" ",D(17,22,"Common.Forms.enter_password")," "),p(3),v("error",r.passwordError)("reset",r.reset)("control",r.passwordFormControl)("label",r.getLabel("Common.Forms.password"))("autocomplete","new-password")("instantValidate",!1),p(2),v("disabled",r.hasError()||r.isSubmitting),p(),q(" ",D(23,24,"Account.save")," "),p(3),v("label",r.getLabel("Profile.Default.DeleteModal.cancel")),p(10),q(" ",D(36,26,"Account.email_changed")),p(4),N(D(40,28,"Account.email_changed_description")),p(3),N(r.newEmail),p(3),q(" ",D(46,30,"Account.close")," "))},dependencies:[hn,vt,Ue,K],styles:[`.micromodal[_ngcontent-%COMP%]{display:none}.micromodal.is-open[_ngcontent-%COMP%]{display:block}.micromodal[aria-hidden=false][_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{animation:mmfadeIn .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=false][_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%]{animation:mmslideIn .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=true][_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{animation:mmfadeOut .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=true][_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%]{animation:mmslideOut .3s cubic-bezier(0,0,.2,1)}.micromodal[_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%], .micromodal[_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{will-change:transform}.micromodal__overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000059;display:flex;justify-content:center;align-items:center;z-index:110!important}.micromodal__container[_ngcontent-%COMP%]{background-color:#fff;box-sizing:border-box;max-width:760px;width:100%;position:relative}.micromodal__header[_ngcontent-%COMP%]{position:absolute;right:30px;top:25px;z-index:110!important;display:flex}.micromodal__content[_ngcontent-%COMP%]{line-height:normal;color:#000}.micromodal__close[_ngcontent-%COMP%]:hover{cursor:pointer}.modal-change-email-dialog[_ngcontent-%COMP%]{position:relative;border:solid 1px #e3dcd3;background:#fff;display:flex;flex-direction:column;padding:70px}.modal-change-email-dialog__back[_ngcontent-%COMP%]{content:"";position:absolute;inset:0;background:#e3dcd3;z-index:-1;transform:translate(10px,10px)}.micromodal-opened[_ngcontent-%COMP%]   .popup-banner-wrapper[_ngcontent-%COMP%]{z-index:89!important}.footer[_ngcontent-%COMP%]{padding-bottom:0;display:flex;align-items:center;text-align:center;justify-content:center;margin-top:2rem!important;margin-bottom:25px}.footer[_ngcontent-%COMP%]   .appa-link__span[_ngcontent-%COMP%]{font-weight:500}.title[_ngcontent-%COMP%]{margin-bottom:39px;display:block;text-align:center;color:#000;font-weight:700;font-size:30px;line-height:150%}.description[_ngcontent-%COMP%]{margin-right:auto;margin-left:auto;text-align:center}.appa-change-password-cancel[_ngcontent-%COMP%]{margin-left:20px}.enter-password[_ngcontent-%COMP%]{font-size:16px;margin-top:40px;margin-left:4px;margin-bottom:24px}.appa-change-email-cancel[_ngcontent-%COMP%]{margin-left:20px}@media(max-width:940px){.micromodal__container[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-height:100%!important;max-width:100%}.micromodal__content[_ngcontent-%COMP%]{height:100%!important}.modal-change-email-dialog[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-height:100%!important;overflow-y:auto;padding-top:70px!important;padding-bottom:50px!important}.title[_ngcontent-%COMP%]{display:block}.footer[_ngcontent-%COMP%]{flex-direction:column;padding-bottom:200px!important}.footer[_ngcontent-%COMP%]   .appa-change-email-save[_ngcontent-%COMP%]{width:calc(100% - 32px)}.footer[_ngcontent-%COMP%]   .appa-change-email-save[_ngcontent-%COMP%]     .appa-btn-wrapper{width:100%}.footer[_ngcontent-%COMP%]   .appa-change-email-save[_ngcontent-%COMP%]     .appa-btn-wrapper .appa-btn{width:100%}.btn[_ngcontent-%COMP%]{width:100%}.appa-change-email-cancel[_ngcontent-%COMP%]{margin-left:0;margin-top:18px}}
6/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/modal-change-email.component-MHUBIITR.css.map */`]});let c=s;return c})()});function Dd(c,s){c&1&&y(0,"div",28)}
6function Td(c,s){if(c&1){let h=ee();Ee(0),f(1,"div",29),F("close",function(){B(h);let d=I(2);return H(d.reminderTooltipShowed=!1)}),f(2,"div",30)(3,"a",31),F("click",function(){B(h);let d=I(2);return H(d.reminderTooltipShowed=!1)}),y(4,"span",32),u(),f(5,"div",33),P(6),S(7,"translate"),u()(),y(8,"div",34),u(),Le()}c&2&&(p(6),q(" ",D(7,1,"Auth.Register.password_reminder_tooltip")," "))}function Id(c,s){if(c&1){let h=ee();f(0,"span",21)(1,"span",22),P(2),S(3,"translate"),u(),f(4,"span",23),Ie(),f(5,"svg",24),F("click",function(){B(h);let d=I();return H(d.showTooltip())}),y(6,"use",25),u(),V(7,Dd,1,0,"div",26),u(),V(8,Td,9,3,"ng-container",27),u()}if(c&2){let h=I();p(2),q(" ",D(3,3,"Auth.Register.password_reminder")," "),p(5),v("ngIf",h.reminderTooltipShowed),p(),v("ngIf",h.reminderTooltipShowed)}}var Sd,Cn,wn=se(()=>{"use strict";at();Ft();J();he();Ge();Fe();_e();ai();Ut();Sd=["closeButton"];Cn=(()=>{let s=class s{constructor(a,d,r,g,x,j){this.translate=a,this.backdrop=d,this.events=r,this.as=g,this.tools=x,this.logger=j,this.reminderTooltipShowed=!1,this.observerListeners=[],this.controls={currentPassword:new R("",[E.required]),newPassword:new R("",[E.minLength(8),E.pattern("^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[A-Z])([a-zA-Z0-9!$%@#\xA3\u20AC*?&-_]+)$"),E.required])},this.error=null,this.form=new gt({currentPassword:this.controls.currentPassword,password:this.controls.newPassword}),this.reset=!1,this.subscriptions=[],this.onBackdropClick=()=>{this.close(!1)},this.subscriptions.push(this.as.getCurrentUser().subscribe(O=>{this.currentUser=O}))}ngOnInit(){}openModal(){this.tools.addBodyClass("micromodal-opened"),ce.show("ModalChangePwd",{disableScroll:!0,onClose:a=>this.onCloseModal(a),onShow:a=>this.onOpenModal(a)})}closeModal(){ce.close("ModalChangePwd")}onOpenModal(a){this.closeButton.nativeElement.focus()}onCloseModal(a){this.tools.removeBodyClass("micromodal-opened")}submitForm(){this.as.updateCurrentUserPassword(this.currentUser,this.controls.currentPassword.value,this.controls.newPassword.value).then(()=>{this.close(!0)}).catch(()=>{this.setError()})}hasError(){return!(this.form.controls.currentPassword.valid&&this.form.controls.password.valid)}getValidPassswordForm(){return this.currentUser&&this.currentUser.type==="student"&&this.controls.newPassword.valid}showTooltip(){this.reminderTooltipShowed=!this.reminderTooltipShowed;let a=this.tools.document.getElementsByClassName("appa_modal--signup__content--body"),d=this.tools.document.getElementsByClassName("password-reminder-wrapper"),r=this.tools.document.getElementsByClassName("appa_modal--signup__content--body");d[0].getBoundingClientRect().width<430&&r[0].getBoundingClientRect().bottom-d[0].getBoundingClientRect().bottom<255&&a[0].scrollBy(0,150)}setError(){this.logger.error("Erreur: mot de passe invalide."),this.error=this.translate.instant("Common.Forms.Errors.invalid_password")}
6getLabel(a){return this.translate.instant(a)}close(a){this.tools.body.style.setProperty("overflow","inherit"),this.reset=!this.reset,this.form.controls.currentPassword.reset(),this.form.controls.password.reset(),this.closeModal()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}};s.\u0275fac=function(d){return new(d||s)(C(G),C(un),C(me),C(ae),C(ge),C(Vo))},s.\u0275cmp=W({type:s,selectors:[["app-modal-change-password"]],viewQuery:function(d,r){if(d&1&&ie(Sd,5),d&2){let g;oe(g=re())&&(r.closeButton=g.first)}},standalone:!1,decls:25,vars:20,consts:[["closeButton",""],["id","ModalChangePwd","aria-hidden","true",1,"micromodal"],["tabindex","-1","data-micromodal-close","",1,"micromodal__overlay"],["role","dialog","aria-modal","true",1,"micromodal__container"],[1,"micromodal__header"],["aria-label","Close modal","data-micromodal-close","",1,"micromodal__close","icon","icon-close","icon--tilt"],["id","modal-1-content",1,"micromodal__content"],[1,"modal-change-password-dialog"],[1,"title"],[1,"appa_modal--signup__content--body"],[1,"appa_form__grid"],[3,"instantValidate","reset","error","avoidValidation","control","label"],[1,"appa_form__grid",2,"margin-top","19px"],[1,"change-password",3,"instantValidate","reset","control","requirementShowed","label"],[1,"password-reminder-wrapper"],["class","visible-wrapper",4,"ngIf"],[1,"footer"],["type","submit","data-test","login-submit",1,"btn","btn--md",3,"click","disabled"],[1,"appa-change-email-cancel"],[3,"click","label"],[1,"modal-change-password-dialog__back"],[1,"visible-wrapper"],[1,"content",2,"margin-right","5px"],[1,"bubble-wrapper",2,"position","relative"],[1,"icon","info-icon",3,"click"],[0,"xlink","href","#reminder-info"],["class","tooltip-top-triangle",4,"ngIf"],[4,"ngIf"],[1,"tooltip-top-triangle"],["tooltip","",1,"info-window","reminder-info",3,"close"],[1,"info-window__body"],[1,"close",2,"position","absolute",3,"click"],[1,"icon","icon-close","icon--tilt"],[1,"info-window__body--description","reminder-tooltip-description"],[1,"tooltip-bottom-triangle"]],template:function(d,r){if(d&1){let g=ee();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"header",4),y(4,"button",5,0),u(),f(6,"main",6)(7,"div",7)(8,"div",8),P(9),S(10,"translate"),u(),f(11,"div",9)(12,"div",10),y(13,"app-password-input",11),u(),f(14,"div",12),y(15,"app-password-input",13),u(),f(16,"div",14),V(17,Id,9,5,"span",15),u()(),f(18,"div",16)(19,"button",17),F("click",function(){return B(g),H(r.submitForm())}),P(20),S(21,"translate"),u(),f(22,"div",18)(23,"app-link-button",19),F("click",function(){return B(g),H(r.close(!1))}),u()()()(),y(24,"div",20),u()()()()}d&2&&(p(9),N(D(10,16,"Account.modify_password")),p(4),v("instantValidate",!0)("reset",r.reset)("error",r.error)("avoidValidation",!0)("control",r.controls.currentPassword)("label",r.getLabel("Common.Forms.password_current")),p(2),v("instantValidate",!0)("reset",r.reset)("control",r.controls.newPassword)("requirementShowed",!0)("label",r.getLabel("Common.Forms.password_new")),p(2),v("ngIf",r.getValidPassswordForm()),p(2),v("disabled",r.hasError()),p(),q(" ",D(21,18,"Account.save")," "),p(3),v("label",r.getLabel("Profile.Default.DeleteModal.cancel")))},dependencies:[de,vt,Ue,K],styles:[`.micromodal[_ngcontent-%COMP%]{display:none}.micromodal.is-open[_ngcontent-%COMP%]{display:block}.micromodal[aria-hidden=false][_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{animation:mmfadeIn .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=false][_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%]{animation:mmslideIn .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=true][_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{animation:mmfadeOut .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=true][_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%]{animation:mmslideOut .3s cubic-bezier(0,0,.2,1)}.micromodal[_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%], .micromodal[_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{will-change:transform}.micromodal__overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000059;display:flex;justify-content:center;align-items:center;z-index:110!important}.micromodal__container[_ngcontent-%COMP%]{background-color:#fff;box-sizing:border-box;max-width:760px;width:100%;position:relative}.micromodal__header[_ngcontent-%COMP%]{position:absolute;right:30px;top:25px;z-index:110!important;display:flex}.micromodal__content[_ngcontent-%COMP%]{line-height:normal;color:#000}.micromodal__close[_ngcontent-%COMP%]:hover{cursor:pointer}.modal-change-password-dialog[_ngcontent-%COMP%]{position:relative;border:solid 1px #e3dcd3;background:#fff;display:flex;flex-direction:column;padding:70px}.modal-change-password-dialog__back[_ngcontent-%COMP%]{content:"";position:absolute;inset:0;background:#e3dcd3;z-index:-1;transform:translate(10px,10px)}.micromodal-opened[_ngcontent-%COMP%]   .popup-banner-wrapper[_ngcontent-%COMP%]{z-index:89!important}.password-reminder-wrapper[_ngcontent-%COMP%]{margin-bottom:16px;line-height:1.5;min-height:30px;margin-top:17px}.password-reminder-wrapper[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;font-weight:700;position:relative}.password-reminder-wrapper[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   .info-window__body--description[_ngcontent-%COMP%]{font-size:16px!important}.password-reminder-wrapper[_ngcontent-%COMP%]   span.content[_ngcontent-%COMP%]{color:#05bf8e;margin-right:5px}.password-reminder-wrapper[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   .info-icon[_ngcontent-%COMP%]{position:relative;top:-1px;width:18px;height:18px}.password-reminder-wrapper[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{top:10px!important}@media(max-width:479px){.password-reminder-wrapper[_ngcontent-%COMP%]{margin-top:8px}.password-reminder-wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{margin-right:0}}.footer[_ngcontent-%COMP%]{padding-bottom:0;display:flex;align-items:center;text-align:center;justify-content:center;margin-top:2rem!important;margin-bottom:25px}.footer[_ngcontent-%COMP%]   .appa-link__span[_ngcontent-%COMP%]{font-weight:500}.close-btn[_ngcontent-%COMP%]{float:right}.title[_ngcontent-%COMP%]{margin-bottom:39px;display:block;text-align:center;color:#000;font-weight:700;font-size:30px;line-height:150%}.info-window[_ngcontent-%COMP%]{position:absolute;top:-28px;right:120px;padding:16px 44px 16px 16px;border:1px solid #E7E1D8;background-color:#f5f3ef;z-index:3;width:400px;transition:height 2s;color:#000}.info-window.second-info[_ngcontent-%COMP%]{top:105px;right:-7px}
6.info-window.reminder-info[_ngcontent-%COMP%]{top:-186px;right:-208px;width:400px;line-height:1.69}.info-window.reminder-info[_ngcontent-%COMP%]   .bottom-triangle[_ngcontent-%COMP%]{left:41%}.info-window.reminder-info[_ngcontent-%COMP%]   .reminder-tooltip-description[_ngcontent-%COMP%]{line-height:1.69!important;font-size:16px}@media(max-width:599px){.info-window.reminder-info[_ngcontent-%COMP%]{left:66px}.info-window.reminder-info[_ngcontent-%COMP%]   .tooltip-bottom-triangle[_ngcontent-%COMP%]{left:84.5%}}@media(max-width:479px){.info-window.reminder-info[_ngcontent-%COMP%]{top:65px;left:-20px;width:296px;line-height:1.69}}.info-window[_ngcontent-%COMP%]   .right-triangle[_ngcontent-%COMP%]{width:0;height:0;border-top:18px solid transparent;border-left:18px solid #F5F3EF;border-bottom:18px solid transparent;position:absolute;top:40%;right:-18px}.info-window[_ngcontent-%COMP%]   .bottom-triangle[_ngcontent-%COMP%]{width:0;height:0;border-right:18px solid transparent;border-top:18px solid #F5F3EF;border-left:18px solid transparent;position:absolute;left:45%;bottom:-18px}.info-window[_ngcontent-%COMP%]   .tooltip-bottom-triangle[_ngcontent-%COMP%]{width:0;height:0;border-right:18px solid transparent;border-top:18px solid #F5F3EF;border-left:18px solid transparent;position:absolute;left:41%;bottom:-15px}@media(max-width:479px){.info-window[_ngcontent-%COMP%]   .tooltip-bottom-triangle[_ngcontent-%COMP%]{display:none}}.info-window[_ngcontent-%COMP%]   .top-triangle[_ngcontent-%COMP%]{width:0;height:0;border-right:18px solid transparent;border-bottom:18px solid #F5F3EF;border-left:18px solid transparent;position:absolute;left:45%;top:-18px}@media(max-width:600px){.info-window[_ngcontent-%COMP%]{width:300px;left:0}}.info-window__title[_ngcontent-%COMP%]{font-size:16px;line-height:150%;font-weight:700}.info-window__body[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{top:-6px;right:15px}.info-window__body[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]   span.icon[_ngcontent-%COMP%]:before{font-size:15px}@media(min-width:1440px){.info-window__body[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{top:10px}}.info-window__body--title[_ngcontent-%COMP%]{font-size:16px;line-height:150%;font-weight:400;margin-bottom:16px}.info-window__body--description[_ngcontent-%COMP%]{font-size:14px;line-height:150%;font-weight:400}.info-window__body--description.middle[_ngcontent-%COMP%]{margin:24px 0}.appa-change-email-cancel[_ngcontent-%COMP%]{margin-left:20px}@media(max-width:940px){.micromodal__container[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-height:100%!important;max-width:100%}.micromodal__content[_ngcontent-%COMP%]{height:100%!important}.modal-change-password-dialog[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-height:100%!important;overflow-y:auto;padding-top:70px!important;padding-bottom:50px!important}.title[_ngcontent-%COMP%]{display:block}.footer[_ngcontent-%COMP%]{flex-direction:column;padding-bottom:200px!important}.footer[_ngcontent-%COMP%]   .appa-change-email-save[_ngcontent-%COMP%]{width:calc(100% - 32px)}.footer[_ngcontent-%COMP%]   .appa-change-email-save[_ngcontent-%COMP%]     .appa-btn-wrapper{width:100%}.footer[_ngcontent-%COMP%]   .appa-change-email-save[_ngcontent-%COMP%]     .appa-btn-wrapper .appa-btn{width:100%}.btn[_ngcontent-%COMP%]{width:100%}.appa-change-email-cancel[_ngcontent-%COMP%]{margin-left:0;margin-top:18px}}
7/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/modal-change-password.component-7EHNTHNG.css.map */`]});let c=s;return c})()});function Yd(c,s){if(c&1&&(f(0,"div",16)(1,"div",17),P(2),S(3,"translate"),y(4,"img",18),u(),f(5,"div",19)(6,"span",20),P(7),S(8,"translate"),u(),f(9,"span",21),P(10),u()()()),c&2){let h=I();p(2),q(" ",D(3,5,"Profile.Default.LinkedAccounts.provider_"+h.providerConfig.translationKey)," "),p(2),v("src",h.providerConfig.icon,Yt)("alt",h.providerConfig.name),p(3),N(D(8,7,"Profile.Default.LinkedAccounts.email_label")),p(3),N(h.provider.email)}}var Ld,bn,ui=se(()=>{"use strict";J();Ft();J();he();Fe();_e();Ut();Ld=["closeButton"];bn=(()=>{let s=class s{constructor(a,d){this.translate=a,this.tools=d,this.provider=null,this.providerConfig=null,this.onConfirm=new rt}ngOnInit(){}openModal(){this.tools.addBodyClass("micromodal-opened"),ce.show("ModalUnlinkAccount",{disableScroll:!0,onClose:()=>this.onCloseModal(),onShow:()=>this.onOpenModal()})}closeModal(){ce.close("ModalUnlinkAccount")}onOpenModal(){this.closeButton&&this.closeButton.nativeElement.focus()}onCloseModal(){this.tools.removeBodyClass("micromodal-opened")}confirm(){this.onConfirm.emit(),this.closeModal()}};s.\u0275fac=function(d){return new(d||s)(C(G),C(ge))},s.\u0275cmp=W({type:s,selectors:[["app-modal-unlink-account"]],viewQuery:function(d,r){if(d&1&&ie(Ld,5),d&2){let g;oe(g=re())&&(r.closeButton=g.first)}},inputs:{provider:"provider",providerConfig:"providerConfig"},outputs:{onConfirm:"onConfirm"},standalone:!1,decls:22,vars:11,consts:[["closeButton",""],["id","ModalUnlinkAccount","aria-hidden","true",1,"micromodal"],["tabindex","-1","data-micromodal-close","",1,"micromodal__overlay"],["role","dialog","aria-modal","true",1,"micromodal__container"],[1,"micromodal__header"],["aria-label","Close modal","data-micromodal-close","",1,"micromodal__close","icon","icon-close","icon--tilt"],["id","modal-unlink-content",1,"micromodal__content"],[1,"modal-unlink-dialog"],[1,"title"],["class","provider-card",4,"ngIf"],[1,"unlink-warning"],[1,"footer"],["type","button",1,"btn","btn--md","btn--outline",3,"click"],[1,"unlink-cancel"],[3,"click","label"],[1,"modal-unlink-dialog__back"],[1,"provider-card"],[1,"provider-card__name"],[1,"provider-icon",3,"src","alt"],[1,"provider-card__email"],[1,"provider-card__email-label"],[1,"provider-card__email-value"]],template:function(d,r){if(d&1){let g=ee();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"header",4),y(4,"button",5,0),u(),f(6,"main",6)(7,"div",7)(8,"div",8),P(9),S(10,"translate"),u(),V(11,Yd,11,9,"div",9),f(12,"p",10),P(13),S(14,"translate"),u(),f(15,"div",11)(16,"button",12),F("click",function(){return B(g),H(r.confirm())}),P(17),S(18,"translate"),u(),f(19,"div",13)(20,"app-link-button",14),F("click",function(){return B(g),H(r.closeModal())}),u()()()(),y(21,"div",15),u()()()()}
7d&2&&(p(9),N(D(10,5,"Profile.Default.LinkedAccounts.unlink_title")),p(2),v("ngIf",r.provider&&r.providerConfig),p(2),N(D(14,7,"Profile.Default.LinkedAccounts.unlink_description")),p(4),q(" ",D(18,9,"Profile.Default.LinkedAccounts.unlink_confirm")," "),p(3),v("label",r.translate.instant("Profile.Default.LinkedAccounts.unlink_cancel")))},dependencies:[de,Ue,K],styles:[`.micromodal[_ngcontent-%COMP%]{display:none}.micromodal.is-open[_ngcontent-%COMP%]{display:block}.micromodal[aria-hidden=false][_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{animation:mmfadeIn .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=false][_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%]{animation:mmslideIn .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=true][_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{animation:mmfadeOut .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=true][_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%]{animation:mmslideOut .3s cubic-bezier(0,0,.2,1)}.micromodal[_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%], .micromodal[_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{will-change:transform}.micromodal__overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000059;display:flex;justify-content:center;align-items:center;z-index:110!important}.micromodal__container[_ngcontent-%COMP%]{background-color:#fff;box-sizing:border-box;max-width:760px;width:100%;position:relative}.micromodal__header[_ngcontent-%COMP%]{position:absolute;right:30px;top:25px;z-index:110!important;display:flex}.micromodal__content[_ngcontent-%COMP%]{line-height:normal;color:#000}.micromodal__close[_ngcontent-%COMP%]:hover{cursor:pointer}.modal-unlink-dialog[_ngcontent-%COMP%]{position:relative;border:solid 1px #e3dcd3;background:#fff;display:flex;flex-direction:column;padding:70px}.modal-unlink-dialog__back[_ngcontent-%COMP%]{content:"";position:absolute;inset:0;background:#e3dcd3;z-index:-1;transform:translate(10px,10px)}.micromodal-opened[_ngcontent-%COMP%]   .popup-banner-wrapper[_ngcontent-%COMP%]{z-index:89!important}.title[_ngcontent-%COMP%]{margin-bottom:30px;display:block;font-size:30px;text-align:center;color:#000;font-weight:700;line-height:150%}.provider-card[_ngcontent-%COMP%]{border:1px solid #e3dcd3;border-radius:4px;padding:20px 24px;margin-bottom:24px}.provider-card__name[_ngcontent-%COMP%]{font-size:16px;font-weight:600;margin-bottom:12px;display:flex;align-items:center;gap:8px}.provider-card__name[_ngcontent-%COMP%]   .provider-icon[_ngcontent-%COMP%]{width:24px;height:24px;flex-shrink:0}.provider-card__email[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.provider-card__email-label[_ngcontent-%COMP%]{font-size:12px;color:#999}.provider-card__email-value[_ngcontent-%COMP%]{font-size:14px;color:#000}.unlink-warning[_ngcontent-%COMP%]{font-size:14px;color:#666;text-align:center;margin-bottom:30px;line-height:1.5}.footer[_ngcontent-%COMP%]{padding-bottom:0;display:flex;align-items:center;text-align:center;justify-content:center;gap:20px}.footer[_ngcontent-%COMP%]   .appa-link__span[_ngcontent-%COMP%]{font-weight:500}.btn--outline[_ngcontent-%COMP%]{background:#fff;border:1px solid #000;color:#000}.btn--outline[_ngcontent-%COMP%]:hover{background:#f5f3ef}.unlink-cancel[_ngcontent-%COMP%]{margin-left:0}@media(max-width:940px){.micromodal__container[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-height:100%!important;max-width:100%}.micromodal__content[_ngcontent-%COMP%]{height:100%!important}.modal-unlink-dialog[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-height:100%!important;overflow-y:auto;padding-top:70px!important;padding-bottom:50px!important}.title[_ngcontent-%COMP%]{display:block}.footer[_ngcontent-%COMP%]{flex-direction:column;padding-bottom:200px!important}.footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{width:100%}.unlink-cancel[_ngcontent-%COMP%]{margin-top:18px}}
8/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/modal-unlink-account.component-LIXN2RJQ.css.map */`]});let c=s;return c})()});var Fd,Mn,pi=se(()=>{"use strict";Ft();J();he();Fe();Fd=["closeButton"],Mn=(()=>{let s=class s{constructor(a,d){this.translate=a,this.tools=d,this.providerName=""}ngOnInit(){}openModal(){this.tools.addBodyClass("micromodal-opened"),ce.show("ModalLinkSuccess",{disableScroll:!0,onClose:()=>this.onCloseModal(),onShow:()=>this.onOpenModal()})}closeModal(){ce.close("ModalLinkSuccess")}onOpenModal(){this.closeButton&&this.closeButton.nativeElement.focus()}onCloseModal(){this.tools.removeBodyClass("micromodal-opened")}getTitle(){return this.translate.instant("Profile.Default.LinkedAccounts.link_success",{provider:this.providerName})}getDescription(){return this.translate.instant("Profile.Default.LinkedAccounts.link_success_description",{provider:this.providerName})}};s.\u0275fac=function(d){return new(d||s)(C(G),C(ge))},s.\u0275cmp=W({type:s,selectors:[["app-modal-link-success"]],viewQuery:function(d,r){if(d&1&&ie(Fd,5),d&2){let g;oe(g=re())&&(r.closeButton=g.first)}},inputs:{providerName:"providerName"},standalone:!1,decls:17,vars:5,consts:[["closeButton",""],["id","ModalLinkSuccess","aria-hidden","true",1,"micromodal"],["tabindex","-1","data-micromodal-close","",1,"micromodal__overlay"],["role","dialog","aria-modal","true",1,"micromodal__container"],[1,"micromodal__header"],["aria-label","Close modal","data-micromodal-close","",1,"micromodal__close","icon","icon-close","icon--tilt"],["id","modal-link-success-content",1,"micromodal__content"],[1,"modal-link-success-dialog"],[1,"title"],[1,"description"],[1,"footer"],["type","button",1,"btn","btn--md",3,"click"],[1,"modal-link-success-dialog__back"]],template:function(d,r){if(d&1){let g=ee();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"header",4),y(4,"button",5,0),u(),f(6,"main",6)(7,"div",7)(8,"div",8),P(9),u(),f(10,"p",9),P(11),u(),f(12,"div",10)(13,"button",11),F("click",function(){return B(g),H(r.closeModal())}),P(14),S(15,"translate"),u()()(),y(16,"div",12),u()()()()}d&2&&(p(9),N(r.getTitle()),p(2),N(r.getDescription()),p(3),q(" ",D(15,3,"Profile.Default.LinkedAccounts.link_success_confirm")," "))},dependencies:[K],styles:[`.micromodal[_ngcontent-%COMP%]{display:none}.micromodal.is-open[_ngcontent-%COMP%]{display:block}.micromodal[aria-hidden=false][_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{animation:mmfadeIn .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=false][_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%]{animation:mmslideIn .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=true][_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{animation:mmfadeOut .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=true][_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%]{animation:mmslideOut .3s cubic-bezier(0,0,.2,1)}.micromodal[_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%], .micromodal[_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{will-change:transform}.micromodal__overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000059;display:flex;justify-content:center;align-items:center;z-index:110!important}.micromodal__container[_ngcontent-%COMP%]{background-color:#fff;box-sizing:border-box;max-width:760px;width:100%;position:relative}.micromodal__header[_ngcontent-%COMP%]{position:absolute;right:30px;top:25px;z-index:110!important;display:flex}.micromodal__content[_ngcontent-%COMP%]{line-height:normal;color:#000}.micromodal__close[_ngcontent-%COMP%]:hover{cursor:pointer}.modal-link-success-dialog[_ngcontent-%COMP%]{position:relative;border:solid 1px #e3dcd3;background:#fff;display:flex;flex-direction:column;padding:70px;align-items:center}.modal-link-success-dialog__back[_ngcontent-%COMP%]{content:"";position:absolute;inset:0;background:#e3dcd3;z-index:-1;transform:translate(10px,10px)}.micromodal-opened[_ngcontent-%COMP%]   .popup-banner-wrapper[_ngcontent-%COMP%]{z-index:89!important}.title[_ngcontent-%COMP%]{margin-bottom:16px;display:block;font-size:30px;text-align:center;color:#000;font-weight:700;line-height:150%}.description[_ngcontent-%COMP%]{font-size:14px;color:#666;text-align:center;margin-bottom:30px;line-height:1.5;max-width:450px}.footer[_ngcontent-%COMP%]{padding-bottom:0;display:flex;align-items:center;text-align:center;justify-content:center}@media(max-width:940px){.micromodal__container[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-height:100%!important;max-width:100%}.micromodal__content[_ngcontent-%COMP%]{height:100%!important}.modal-link-success-dialog[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-height:100%!important;overflow-y:auto;padding-top:70px!important;padding-bottom:50px!important}.footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{width:100%}}
9/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/modal-link-success.component-XUYXGMXF.css.map */`]});let c=s;return c})()});
9function Nd(c,s){if(c&1){let h=ee();f(0,"div",10)(1,"div",11)(2,"span",12),P(3),S(4,"translate"),y(5,"img",13),u(),f(6,"button",14),F("click",function(){B(h);let d=I().$implicit,r=I(2);return H(r.openUnlinkModal(r.getProvider(d.providerId)))}),Ie(),f(7,"svg",15),y(8,"use",16),u()()(),Mo(),f(9,"div",17)(10,"span",18),P(11),S(12,"translate"),u(),f(13,"span",19),P(14),u()()()}if(c&2){let h,a=I().$implicit,d=I(2);p(3),q(" ",D(4,6,"Profile.Default.LinkedAccounts.provider_"+a.translationKey)," "),p(2),v("src",a.icon,Yt)("alt",a.name),p(),xo("aria-label","Unlink "+a.name),p(5),N(D(12,8,"Profile.Default.LinkedAccounts.email_label")),p(3),N((h=d.getProvider(a.providerId))==null?null:h.email)}}function Rd(c,s){if(c&1&&(Ee(0),V(1,Nd,15,10,"div",9),Le()),c&2){let h=s.$implicit,a=I(2);p(),v("ngIf",a.isProviderLinked(h.providerId))}}function Ad(c,s){c&1&&(f(0,"p",20),P(1),S(2,"translate"),u()),c&2&&(p(),N(D(2,1,"Profile.Default.LinkedAccounts.no_linked_accounts")))}function Wd(c,s){if(c&1){let h=ee();f(0,"button",23),F("click",function(){B(h);let d=I().$implicit,r=I(3);return H(r.linkProvider(d))}),y(1,"img",13),P(2),S(3,"translate"),u()}if(c&2){let h=I().$implicit;So("add-provider-btn add-provider-btn--"+h.translationKey),p(),v("src",h.icon,Yt)("alt",h.name),p(),q(" ",D(3,5,"Profile.Default.LinkedAccounts.add_"+h.translationKey)," ")}}function Vd(c,s){if(c&1&&(Ee(0),V(1,Wd,4,7,"button",22),Le()),c&2){let h=s.$implicit,a=I(3);p(),v("ngIf",!a.isProviderLinked(h.providerId))}}function jd(c,s){if(c&1&&(f(0,"div",21),V(1,Vd,2,1,"ng-container",6),u()),c&2){let h=I(2);p(),v("ngForOf",h.allowedProviders)}}function zd(c,s){if(c&1&&(Ee(0),V(1,Rd,2,1,"ng-container",6)(2,Ad,3,3,"p",7)(3,jd,2,1,"div",8),Le()),c&2){let h=I();p(),v("ngForOf",h.allowedProviders),p(),v("ngIf",h.linkedProviders.length===0),p(),v("ngIf",h.linkedProviders.length<h.allowedProviders.length)}}var Bd,Pn,fi=se(()=>{"use strict";J();_e();ui();pi();J();Fe();he();Uo();Bd=[{providerId:"google.com",translationKey:"google",icon:"assets/icons/google.svg",name:"Google"},{providerId:"microsoft.com",translationKey:"microsoft",icon:"assets/icons/microsoft.svg",name:"Microsoft"}],Pn=(()=>{let s=class s{constructor(a,d,r,g,x,j){this.as=a,this.translate=d,this.toastr=r,this.ngZone=g,this.events=x,this.allowedProviders=Bd,this.linkedProviders=[],this.loading=!0,this.providerToUnlink=null,this.lastLinkedProviderName="",this.isBrowser=Je(j)}
9ngOnInit(){this.isBrowser&&this.refreshProviders()}refreshProviders(){return _t(this,null,function*(){this.loading=!0;try{this.linkedProviders=yield this.as.getLinkedProviders()}catch(a){console.error("Failed to fetch linked providers:",a),this.linkedProviders=[]}finally{this.loading=!1}})}isProviderLinked(a){return this.linkedProviders.some(d=>d.providerId===a)}getProvider(a){return this.linkedProviders.find(d=>d.providerId===a)}getProviderConfig(a){return this.allowedProviders.find(d=>d.providerId===a)}linkProvider(a){return _t(this,null,function*(){try{yield this.as.linkWithAnotherProvider(a.providerId),this.lastLinkedProviderName=a.name,yield this.refreshProviders(),this.modalLinkSuccess.openModal(),yield this.as.addEmailAliases(a.providerId)}catch(d){let r=this.getLinkErrorMessage(d?.code,a.name);if(!r)return;this.ngZone.run(()=>{this.toastr.error(r,"",{closeButton:!0,timeOut:4500})})}})}getLinkErrorMessage(a,d){switch(a){case"auth/credential-already-in-use":return this.translate.instant("Profile.Default.LinkedAccounts.link_error_credential_in_use",{provider:d});case"auth/email-already-in-use":return this.translate.instant("Profile.Default.LinkedAccounts.link_error_email_in_use",{provider:d});case"auth/popup-closed-by-user":case"auth/cancelled-popup-request":case"auth/user-cancelled":return null;default:return this.translate.instant("Profile.Default.LinkedAccounts.link_error")}}openUnlinkModal(a){this.providerToUnlink=a,this.modalUnlinkAccount.openModal()}confirmUnlink(){return _t(this,null,function*(){if(!this.providerToUnlink)return;let a=this.providerToUnlink.providerId;try{yield this.as.removeEmailAliases(a),yield this.as.unlinkFromProvider(a),yield this.refreshProvi
9ders(),this.ngZone.run(()=>{this.toastr.success("",this.translate.instant("Profile.Default.LinkedAccounts.unlink_success"),{closeButton:!0,timeOut:2500})}),this.events.broadcast("user:updated")}catch{this.ngZone.run(()=>{this.toastr.error(this.translate.instant("Profile.Default.LinkedAccounts.unlink_error"),"",{closeButton:!0,timeOut:4500})})}finally{this.providerToUnlink=null}})}};s.\u0275fac=function(d){return new(d||s)(C(ae),C(G),C(cn),C(ln),C(me),C($e))},s.\u0275cmp=W({type:s,selectors:[["app-profile-linked-accounts"]],viewQuery:function(d,r){if(d&1&&(ie(bn,5),ie(Mn,5)),d&2){let g;oe(g=re())&&(r.modalUnlinkAccount=g.first),oe(g=re())&&(r.modalLinkSuccess=g.first)}},standalone:!1,decls:10,vars:10,consts:[[1,"profile-linked-accounts"],[1,"linked-accounts-title"],[1,"linked-accounts-description"],[4,"ngIf"],[3,"onConfirm","provider","providerConfig"],[3,"providerName"],[4,"ngFor","ngForOf"],["class","no-linked-accounts",4,"ngIf"],["class","add-provider-buttons",4,"ngIf"],["class","linked-account-card",4,"ngIf"],[1,"linked-account-card"],[1,"linked-account-card__header"],[1,"linked-account-card__provider-name"],[1,"provider-icon",3,"src","alt"],[1,"linked-account-card__unlink-btn",3,"click"],["width","24","height","24",1,"icon"],[0,"xlink","href","#trash"],[1,"linked-account-card__email"],[1,"linked-account-card__email-label"],[1,"linked-account-card__email-value"],[1,"no-linked-accounts"],[1,"add-provider-buttons"],[3,"class","click",4,"ngIf"],[3,"click"]],template:function(d,r){d&1&&(f(0,"div",0)(1,"div",1),P(2),S(3,"translate"),u(),f(4,"p",2),P(5),S(6,"translate"),u(),V(7,zd,4,3,"ng-container",3),u(),f(8,"app-modal-unlink-account",4),F("onConfirm",function(){return r.confirmUnlink()}),u(),y(9,"app-modal-link-success",5)),d&2&&(p(2),N(D(3,6,"Profile.Default.LinkedAccounts.title")),p(3),N(D(6,8,"Profile.Default.LinkedAccounts.description")),p(2),v("ngIf",!r.loading),p(),v("provider",r.providerToUnlink)("providerConfig",r.providerToUnlink?r.getProviderConfig(r.providerToUnlink.providerId):null),p(),v("providerName",r.lastLinkedProviderName))},styles:[`.profile-linked-accounts[_ngcontent-%COMP%]{margin-top:48px;display:flex;flex-direction:column;gap:24px}.profile-linked-accounts[_ngcontent-%COMP%]   .linked-accounts-title[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin-bottom:0}.profile-linked-accounts[_ngcontent-%COMP%]   .linked-accounts-description[_ngcontent-%COMP%]{font-size:14px;color:#666;margin-bottom:0;line-height:1.5}.profile-linked-accounts[_ngcontent-%COMP%]   .no-linked-accounts[_ngcontent-%COMP%]{font-size:14px;color:#999;font-style:italic;padding-top:24px;padding-bottom:24px;margin-bottom:0}.linked-account-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #E7E1D8;box-shadow:6px 6px #e7e1d8;padding:24px;margin-bottom:0}.linked-account-card__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.linked-account-card__provider-name[_ngcontent-%COMP%]{font-size:16px;font-weight:500;display:flex;align-items:center;gap:8px}.linked-account-card__unlink-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;opacity:.6;transition:opacity .2s}.linked-account-card__unlink-btn[_ngcontent-%COMP%]:hover{opacity:1}.linked-account-card__email[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding-top:24px}.linked-account-card__email-label[_ngcontent-%COMP%]{font-size:12px;color:#999}.linked-account-card__email-value[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#999}.add-provider-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;margin-top:0}.add-provider-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;border:1px solid #dadce0;border-radius:24px;background:#fff;cursor:pointer;font-size:14px;font-weight:500;color:#3c4043;transition:background-color .2s,border-color .2s;width:fit-content}.add-provider-btn[_ngcontent-%COMP%]:hover{background-color:#f5f3ef;border-color:#c4bdb3}.provider-icon[_ngcontent-%COMP%]{width:24px;height:24px;flex-shrink:0}@media(max-width:940px){.linked-account-card[_ngcontent-%COMP%]{padding:16px;box-shadow:none}.add-provider-btn[_ngcontent-%COMP%]{width:100%;justify-content:center}}
10/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/
10profile-linked-accounts.component-VE7KULRV.css.map */`]});let c=s;return c})()});function qd(c,s){c&1&&(Ie(),f(0,"svg",13),y(1,"use",14),u())}function Zd(c,s){if(c&1){let h=ee();f(0,"a",9),F("click",function(){B(h);let d=I(2);return H(d.sendConfirmEmail())}),P(1),u()}if(c&2){let h=I(2);p(),N(h.getLabel(h.isChangeEmail?"Profile.Default.confirm_new_email":"Profile.Default.confirm_email"))}}function Qd(c,s){if(c&1&&(f(0,"span"),P(1),u()),c&2){let h=I(2);p(),N(h.getLabel("Profile.Default.confirm_request_sent"))}}function $d(c,s){if(c&1){let h=ee();f(0,"span"),P(1),y(2,"br"),f(3,"a",9),F("click",function(){B(h);let d=I(2);return H(d.sendConfirmEmail())}),P(4),u()()}if(c&2){let h=I(2);p(),q(" ",h.getLabel("Profile.Default.confirm_request_error")," "),p(3),N(h.getLabel("Profile.Default.try_again"))}}function Jd(c,s){if(c&1&&(f(0,"div",15),V(1,Zd,2,1,"a",16)(2,Qd,2,1,"span",12)(3,$d,5,2,"span",12),u()),c&2){let h=I();Oo("verifiable",h.verifyStatus=="none")("request-sent",h.verifyStatus=="sent")("request-error",h.verifyStatus=="error"),p(),v("ngIf",h.verifyStatus=="none"),p(),v("ngIf",h.verifyStatus=="sent"),p(),v("ngIf",h.verifyStatus=="error")}}function Kd(c,s){c&1&&y(0,"app-profile-linked-accounts")}var hi,Mt,Rt=se(()=>{"use strict";_e();J();at();Qo();gd();hi=wo(mi());yn();wn();J();Ge();Uo();he();Fe();ri();_e();$o();ai();wn();yn();fi();Mt=(()=>{let s=class s{constructor(a,d,r,g,x,j,O,Oe){this.events=a,this.ngZone=d,this.toastr=r,this.translate=g,this.as=x,this.featureFlagService=j,this.route=Oe,this.emailControl=new R("",[E.required,E.pattern(fn)]),this.passwordControl=new R("11111",[E.minLength(8),E.pattern("^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[A-Z])([a-zA-Z0-9!$%@#\xA3\u20AC*?&-_]+)$"),E.required]),this.form=new gt({email:this.emailControl,password:this.passwordControl}),this.passwordChangeModalOpened=!1,this.emailChangeModalOpened=!1,this.confirmModalOpened=!1,this.verifyStatus="none",this.isChangeEmail=!1,this.subscriptions=[],this.isSsoEnabled=!1,this.updateUser=()=>{this.as.getCurrentUser().subscribe(te=>{this.currentUser=te,this.emailControl.setValue(te.email)})},this.isBrowser=Je(O),this.subscriptions.push(this.as.getCurrentUser().subscribe(te=>{this.currentUser=te,!te.email_validation_available_after||(0,hi.default)(`${te.email_validation_available_after}`,"YYYYMMDDHHmmssSSS")<(0,hi.default)()?this.verifyStatus="none":this.verifyStatus="sent",te.email&&(this.emailControl.setValue(te.email),this.emailControl.disable()),this.passwordControl.disable()})),this.events.on("user:updated",this.updateUser)}openPasswordChangeModal(){this.ModalChangePasswordComponent.openModal()}openEmailChangeModal(){this.ModalChangeEmailComponent.openModal()}closeModal(){this.passwordChangeModalOpened=!1}closeEmailModal(){this.emailChangeModalOpened=!1}openConfirmModal(){this.confirmModalOpened=!0}closeConfirmModal(){this.confirmModalOpened=!1}ngOnInit(){return _t(this,null,function*(){this.isBrowser&&(yield this.featureFlagService.initAsync(),this.isSsoEnabled=yield this.featureFlagService.getFlagAsync(Go.LoginSsoToggle.key,!1));let d=(this.isBrowser?new URL(window.location.href).searchParams:this.route.snapshot.queryParamMap).get("z");d==="true"?this.ngZone.run(()=>{this.toastr.success(this.translate.instant("Account.email_verify_success.description"),this.translate.instant("Account.email_verify_success.title"),{closeButton:!0,timeOut:4500})}):d==="false"&&this.ngZone.run(()=>{this.toastr.error(this.translate.instant("Account.email_verify_fail.description"),this.translate.instant("Account.email_verify_fail.title"),{closeButton:!0,timeOut:4500})})})}sendConfirmEmail(){this.as.generateEmailVerification().then(()=>{this.verifyStatus="sent"}).catch(()=>{this.verifyStatus="error"})}getLabel(a){return this.translate.instant(a)}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}};s.\u0275fac=function(d){return new(d||s)(C(me),C(ln),C(cn),C(G),C(ae),C(zo),C($e),C(Io))},s.\u0275cmp=W({type:s,selectors:[["app-profile-connection-information"]],viewQuery:function(d,r){if(d&1&&(ie(vn,5),ie(Cn,5)),d&2){let g;oe(g=re())&&(r.ModalChangeEmailComponent=g.first),oe(g=re())&&(r.ModalChangePasswordComponent=g.first)}},standalone:!1,decls:25,vars:19,consts:[[1,"profile-connection-information"],["id","connection-title",1,"profile__body--title"],["class","icon",4,"ngIf"],[1,"profile__body--content","change-auth-info"],[1,"connection-subtitle"],["class","email-verified-banner",3,"verifiable","request-sent","request-error",4,"ngIf"],[1,"appa_form__grid","auth-disabled-form-wrapper"],[3,"control","validated","label","value"],[1,"modal-link-wrapper",2,"text-align","right","margin-bottom","43px"],[3,"click"],[1,"underlined"],[1,"modal-link-wrapper",2,"text-align","right"],[4,"ngIf"],[1,"icon"],[0,"xlink","href","#orange_dot"],[1,"email-verified-banner"],[3,"click",4,"ngIf"]],template:function(d,r){d&1&&(f(0,"div",0)(1,"div",1),P(2),S(3,"translate"),V(4,qd,2,0,"svg",2),u(),f(5,"div",3)(6,"div",4),P(7),S(8,"translate"),u(),V(9,Jd,4,9,"div",5),f(10,"div",6),y(11,"app-email-input",7),u(),f(12,"div",8)(13,"a",9),F("click",function(){return r.openEmailChangeModal()}),f(14,"span",10),P(15),u()()(),f(16,"div",6),y(17,"app-password-input",7),u(),f(18,"div",11)(19,"a",9),F("click",function(){return r.openPasswordChangeModal()}),f(20,"span",10),P(21),u()()(),V(22,Kd,1,0,"app-profile-linked-accounts",12),u()(),y(23,"app-modal-change-email")(24,"app-modal-change-password")),d&2&&(p(2),q("",D(3,15,"Profile.Default.ConnectionForm.title")," "),p(2),v("ngIf",!(r.currentUser!=null&&r.currentUser.email_verified)),p(3),N(D(8,17,"Profile.Default.ConnectionForm.alloprof_credentials_title")),p(2),v("ngIf",!(r.currentUser!=null&&r.currentUser.email_verified)),p(2),v("control",r.emailControl)("val
10idated",r.currentUser==null?null:r.currentUser.email_verified)("label",r.getLabel("Profile.Default.ConnectionForm.email_label"))("value","[email protected]"),p(4),N(r.getLabel("Account.modify_email")),p(2),v("control",r.passwordControl)("validated",!1)("label",r.getLabel("Profile.Default.ConnectionForm.password_label"))("value","aaa"),p(4),N(r.getLabel("Account.modify_password")),p(),v("ngIf",r.isSsoEnabled))},dependencies:[de,hn,vt,Cn,vn,Pn,K],styles:[`.appa_form__grid[_ngcontent-%COMP%]{margin-bottom:40px}.appa_form__grid[_ngcontent-%COMP%]:last-child{margin-bottom:0}.connection-subtitle[_ngcontent-%COMP%]{font-size:16px;font-weight:600;margin-bottom:24px}.modal-link-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:14px}.auth-disabled-form-wrapper[_ngcontent-%COMP%]{margin-bottom:9px}.email-verified-banner[_ngcontent-%COMP%]{padding:16px 0;text-align:center;font-size:14px;margin-bottom:40px}.email-verified-banner.verifiable[_ngcontent-%COMP%]{background-color:#ffcd35}.email-verified-banner.request-sent[_ngcontent-%COMP%]{background-color:#05bf8e}.email-verified-banner.request-error[_ngcontent-%COMP%]{background-color:#f95928}.email-verified-banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{border-bottom:1px solid black;font-weight:600}.email-verified-banner[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:600}.underlined[_ngcontent-%COMP%]{font-weight:400}
11/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/profile-connection.component-RMQREMUW.css.map */`]});let c=s;return c})()});function Xd(c,s){c&1&&(Ie(),f(0,"svg",10),y(1,"use",11),u())}function ec(c,s){if(c&1&&(f(0,"div",5),y(1,"app-select",12),u()),c&2){let h=I();p(),v("list",h.selectCountries)("dotShowed",!h.countryControl.value)("label",h.getLabel("Profile.Default.SchoolForm.residence_country"))("control",h.countryControl)}}function tc(c,s){if(c&1&&(f(0,"div",5),y(1,"app-radio-checkbox",13),u()),c&2){let h=I();p(),v("control",h.workWithCommunityControl)("dotShowed",h.workWithCommunityControl.value==null)("label",h.getLabel("Profile.Default.ProfessionalForm.Label.work_with_community"))("trueLabel",h.getLabel("Profile.Default.ProfessionalForm.Label.yes"))("falseLabel",h.getLabel("Profile.Default.ProfessionalForm.Label.no"))}}function nc(c,s){if(c&1&&(f(0,"div",5),y(1,"app-select",6),u()),c&2){let h=I();p(),v("list",h.selectFirstNations)("control",h.communityControl)("dotShowed",(h.communityControl.value==null?null:h.communityControl.value.length)==0)("multiple",!0)("label",h.getLabel("Profile.Default.ProfessionalForm.Label.community"))}}var or,gi=se(()=>{"use strict";at();J();Ge();he();_e();_n();Md();or=(()=>{let s=class s{constructor(a,d,r,g,x,j){this.profileService=a,this.state=d,this.translate=r,this.events=g,this.as=x,this.uds=j,this.teachLevelControl=new R(null,[E.required]),this.occupationControl=new R(null,[E.required]),this.topicControl=new R(null,[E.required]),this.provinceControl=new R(null,[E.required]),this.countryControl=new R(null,[E.required]),this.workInSchoolControl=new R(null,[E.required]),this.workWithCommunityControl=new R(null,[E.required]),this.communityControl=new R(null,[E.required]),this.data=[],this.activeIndex=1,this.selectTeachLevels=[],this.selectOccupations=[],this.selectTeachTopics=[],this.selectProvinces=[],this.selectCountries=[],this.selectFirstNations=[],this.isLoaded=!1,this.subscriptions=[],this.initializeOptions(),this.subscriptions.push(this.as.getCurrentUser().subscribe(O=>{this.isLoaded=!1,this.currentUser=ye(ye({},this.currentUser),O),this.currentUser&&(this.setFields(),this.isLoaded=!0)}))}ngOnInit(){this.teachLevelControl.valueChanges.subscribe(a=>{this.isLoaded&&a!=null&&this.currentUser.teach_levels!=a&&this.uds.setData({teach_levels:a})}),this.topicControl.valueChanges.subscribe(a=>{this.isLoaded&&a!=null&&this.currentUser.teach_topics!=a&&this.uds.setData({teach_topics:a})}),this.occupationControl.valueChanges.subscribe(a=>{this.isLoaded&&a!=null&&this.currentUser.occupation!=a&&this.uds.setData({occupation:a})}),this.provinceControl.valueChanges.subscribe(a=>{if(this.isLoaded&&a!=null&&this.currentUser.province!=a){let d={province:a,country:this.currentUser.country};a!="Outside_Canada"?(d.country="CAN",this.countryControl.setValue("CAN",{emitEvent:!1,emitModelToViewChange:!1,onlySelf:!0,emitViewToModelChange:!1})):a=="Outside_Canada"&&(d.country="null",this.countryControl.setValue(null,{emitEvent:!1,emitModelToViewChange:!1,onlySelf:!0,emitViewToModelChange:!1})),this.uds.setData(ye({},d))}}),this.countryControl.valueChanges.subscribe(a=>{this.isLoaded&&a!=null&&this.currentUser.country!=a&&this.uds.setData({country:a})}),this.workInSchoolControl.valueChanges.subscribe(a=>{this.isLoaded&&a!=null&&this.currentUser.isSchoolWorker!=a&&this.uds.setData({isSchoolWorker:a})}),this.workWithCommunityControl.valueChanges.subscribe(a=>{this.isLoaded&&a!=null&&this.currentUser.isFirstNationsWorker!=a&&(this.uds.setData({isFirstNationsWorker:a,firstNationList:[]}),this.communityControl.setValue([]))}),this.communityControl.valueChanges.subscribe(a=>{if(this.isLoaded&&a!=null&&this.currentUser.firstNationList!=a){let d=a?this.convertNations(a):[];this.uds.setData({firstNationList:d})}})}ngOnDestroy(){this.isLoaded=!1,this.subscriptions.forEach(a=>a.unsubscribe())}onAnchorClick(){}initializeOptions(){this.selectTeachLevels=this.profileService.getTeachLevels(),this.selectProvinces=this.profileService.getProvinces(),this.selectOccupations=this.profileService.getOccupations(),this.selectTeachTopics=this.profileService.getTeachTopics(),this.selectCountries=this.profileService.getCountries(),this.selectFirstNations=this.profileService.getFirstNations()}findNumberCount(a){let d=a.match(/\d+/g);return d?d.join("").length:0}convertNations(a){return a.map(d=>{if(this.findNumberCount(d)>6){let r=this.selectFirstNations.filter(g=>g.value==d);return r.length>0?r[0].value:""}return d})}setFields(){this.teachLevelControl.setValue(this.currentUser.teach_levels||null),this.topicControl.setValue(this.currentUser.teach_topics||null),this.occupationControl.setValue(this.currentUser.occupation||null),this.provinceControl.setValue(this.currentUser.province||null),this.countryControl.setValue(this.currentUser.country=="null"?null:this.currentUser.country||null),this.workInSchoolControl.setValue(this.currentUser.isSchoolWorker!=null?this.currentUser.isSchoolWorker:null),this.workWithCommunityControl.setValue(this.currentUser.isFirstNationsWorker!=null?this.currentUser.isFirstNationsWorker:null);let a=this.currentUser.firstNationList||[];a=a.map(d=>{if(this.findNumberCount(d)<6){let r=this.selectFirstNations.filter(g=>g.value==d);return r.length>0?r[0].value:""}return d}),this.communityControl.setValue(a)}getLabel(a){return this.translate.instant(a)}};s.\u0275fac=function(d){return new(d||s)(C(Ke),C(pn),C(G),C(me),C(ae),C(Ye))},s.\u0275cmp=W({type:s,selectors:[["app-profile-professional"]],standalone:!1,decls:21,vars:32,consts:[[1,"profile-general-information"],[1,"profile__body--title"],[1,"appa-d-flex","appa-align-items-center"],["class","icon",4,"ngIf"],[1,"profile__body--content","appa-m-b-2"],[1,"appa_form__grid"],[3,"list","control","dotShowed","multiple","label"],[3,"list","control","dotShowed","label"],["class","appa_form__grid",4,"ngIf"],[3,"control","dotShowed","label","value","trueLabel","falseLabel"],[1,"icon"],[0,"xlink","href","#orange_dot"],[3,"list","dotShowed","label","control"],[3,"control","dotShowed","label","trueLabel","falseLabel"]],template:function(d,r){d&1&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"span"),P(4),S(5,"translate"),u(),V(6,Xd,2,0,"svg",3),u()(),f(7,"div",4)(8,"div",5),y(9,"app-select",6),u(),f(10,"div",5),y(11,"app-select",6),u(),f(12,"div",5),y(13,"app-select",6),u(),f(14,"div",5),y(15,"app-select",7),u(),V(16,ec,2,4,"div",8),f(17,"div",5),y(18,"app-radio-checkbox",9),u(),V(19,tc,2,5,"div",8)(20,nc,2,5,"div",8),u()()),d&2&&(p(4),N(D(5,30,"Profile.Default.ProfessionalForm.title")),p(2),v("ngIf",r.teachLevelControl.errors&&r.occupationControl.errors&&r.topicControl.errors&&r.provinceControl.errors&&r.workInSchoolControl.errors&&r.workWithCommunityControl.errors&&r.communityControl.errors),p(3),v("list",r.selectTeachLevels)("control",r.teachLevelControl)("dotShowed",!r.teachLevelControl.value||(r.teachLevelControl.value==null?null:r.teachLevelControl.value.length)==0)("multiple",!0)("label",r.getLabel("Profile.Default.ProfessionalForm.Label.school_level")),p(2),v("list",r.selectOccupations)("control",r.occupationControl)("dotShowed",!r.occupationControl.value||(r.occupationControl.value==null?null:r.occupationControl.value.length)==0)("multiple",!0)("label",r.getLabel("Profile.Default.ProfessionalForm.Label.practiced")),p(2),v("list",r.selectTeachTopics)("control",r.topicControl)("dotShowed",!r.topicControl.value||r.topicControl.value.length==0)("multiple",!0)("label",r.getLabel("Profile.Default.ProfessionalForm.Label.matter")),p(2),v("list",r.selectProvinces)("control",r.provinceControl)("dotShowed",!r.provinceControl.value)("label",r.getLabel("Profile.Default.ProfessionalForm.Label.main_province")),p(),v("ngIf",r.provinceControl.value=="Outside_Canada"),p(2),v("control",r.workInSchoolControl)("dotShowed",r.workInSchoolControl.value==null)("label",r.getLabel("Profile.Default.ProfessionalForm.Label.do_you_work_in_school"))("value",r.workInSchoolControl.value)("trueLabel",r.getLabel("Profile.Default.ProfessionalForm.Label.yes"))("falseLabel",r.getLabel("Profile.Default.ProfessionalForm.Label.no")),p(),v("ngIf",r.provinceControl.value=="Quebec"),p(),v("ngIf",r.provinceControl.value=="Quebec"&&r.workWithCommunityControl.value==!0))},dependencies:[de,Xe,er,K],styles:[`.appa_form__grid[_ngcontent-%COMP%]{margin-bottom:40px;--row-gap: 2rem}.appa_form__grid[_ngcontent-%COMP%]:last-child{margin-bottom:0}.appa_form__grid[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:12px;height:12px;margin-left:4px}
12/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/
12profile-professional.component-XXHWPN6W.css.map */`]});let c=s;return c})()});var ar,vi=se(()=>{"use strict";J();si();Nt();Rt();gi();ar=(()=>{let s=class s{constructor(){}ngOnInit(){}};s.\u0275fac=function(d){return new(d||s)},s.\u0275cmp=W({type:s,selectors:[["app-profile-teacher"]],standalone:!1,decls:10,vars:1,consts:[[1,"profile-body"],[1,"profile-body__content"],[1,"profile-body__content--status"],[3,"format"],[1,"profile-body__content--section"]],template:function(d,r){d&1&&(f(0,"div",0)(1,"div",1)(2,"div",2),y(3,"app-profile-status",3),u(),f(4,"div",4),y(5,"app-profile-general-information"),u(),f(6,"div",4),y(7,"app-profile-connection-information"),u(),f(8,"div",4),y(9,"app-profile-professional"),u()()()),d&2&&(p(3),v("format","large"))},dependencies:[yt,Ct,Mt,or],styles:[`[_nghost-%COMP%]{width:100%}.profile-body[_ngcontent-%COMP%]{width:100%;overflow-y:hidden;justify-content:center;display:flex;flex-direction:column;align-items:center}@media(max-width:479px){.profile-body[_ngcontent-%COMP%]{padding:0 4px}}.profile-body__content[_ngcontent-%COMP%]{padding:20px 20px 110px;width:640px;max-width:640px;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}.profile-body__content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.profile-body__content--section[_ngcontent-%COMP%]{margin:40px 0}@media(max-width:479px){.profile-body__content[_ngcontent-%COMP%]{width:100%}}
13/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/profile-teacher.component-THR7NSDQ.css.map */`]});let c=s;return c})()});function rc(c,s){c&1&&(Ie(),f(0,"svg",8),y(1,"use",9),u())}function ac(c,s){if(c&1&&(f(0,"div",5),y(1,"app-select",6),u()),c&2){let h=I();p(),v("list",h.selectCountries)("dotShowed",!h.countryControl.value)("label",h.getLabel("Profile.Default.SchoolForm.residence_country"))("control",h.countryControl)}}var sr,yi=se(()=>{"use strict";at();Fe();J();Ge();he();_e();_n();sr=(()=>{let s=class s{constructor(a,d,r,g,x,j){this.profileService=a,this.state=d,this.translate=r,this.events=g,this.as=x,this.uds=j,this.levelControl=new R(null,[E.required]),this.countryControl=new R(null,[E.required]),this.provinceControl=new R(null,[E.required]),this.selectLevels=[],this.selectProvinces=[],this.selectCountries=[],this.isLoaded=!1,this.subscriptions=[],this.initializeOptions(),this.subscriptions.push(this.as.getCurrentUser().subscribe(O=>{this.loadData(O)})),this.events.on(Ao.APP_LANGUAGE_SET,()=>{this.initializeOptions()}),this.levelControl.valueChanges.subscribe(O=>{this.isLoaded&&O!=null&&this.currentUser.level!=O&&this.uds.setData({level:O})}),this.countryControl.valueChanges.subscribe(O=>{this.isLoaded&&O!=null&&this.currentUser.country!=O&&this.uds.setData({country:O})}),this.provinceControl.valueChanges.subscribe(O=>{if(this.isLoaded&&O!=null&&this.currentUser.province!==O){let Oe={province:O,country:this.currentUser.country};O!=="Outside_Canada"?(Oe.country="CAN",this.countryControl.setValue("CAN",{emitEvent:!1,emitModelToViewChange:!1,onlySelf:!0,emitViewToModelChange:!1})):O==="Outside_Canada"&&(Oe.country="null",this.countryControl.setValue(null,{emitEvent:!1,emitModelToViewChange:!1,onlySelf:!0,emitViewToModelChange:!1})),this.uds.setData(ye({},Oe))}})}ngOnInit(){}ngOnDestroy(){this.isLoaded=!1,this.subscriptions.forEach(a=>a.unsubscribe())}initializeOptions(){this.selectLevels=this.profileService.getStudentstLevels(),this.selectProvinces=this.profileService.getProvinces(),this.selectCountries=this.profileService.getCountries()}loadData(a){this.isLoaded=!1,this.currentUser=a,this.setFields(),this.isLoaded=!0}setFields(){this.levelControl.setValue(this.currentUser.level??null),this.countryControl.setValue(this.currentUser.country=="null"?null:this.currentUser.country||null),this.provinceControl.setValue(this.currentUser.province||null)}
13getLabel(a){return this.translate.instant(a)}};s.\u0275fac=function(d){return new(d||s)(C(Ke),C(pn),C(G),C(me),C(ae),C(Ye))},s.\u0275cmp=W({type:s,selectors:[["app-profile-school-information"]],standalone:!1,decls:13,vars:13,consts:[[1,"profile-school-information"],[1,"profile__body--title"],[1,"appa-d-flex","appa-align-items-center"],["class","icon",4,"ngIf"],[1,"profile__body--content"],[1,"appa_form__grid"],[3,"list","dotShowed","label","control"],["class","appa_form__grid",4,"ngIf"],[1,"icon"],[0,"xlink","href","#orange_dot"]],template:function(d,r){d&1&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"span"),P(4),S(5,"translate"),u(),V(6,rc,2,0,"svg",3),u()(),f(7,"div",4)(8,"div",5),y(9,"app-select",6),u(),f(10,"div",5),y(11,"app-select",6),u(),V(12,ac,2,4,"div",7),u()()),d&2&&(p(4),N(D(5,11,"Profile.Default.SchoolForm.title")),p(2),v("ngIf",r.provinceControl.errors&&r.levelControl.errors),p(3),v("list",r.selectLevels)("dotShowed",r.levelControl.value==null)("label",r.getLabel("Profile.Default.SchoolForm.level_label"))("control",r.levelControl),p(2),v("list",r.selectProvinces)("dotShowed",!r.provinceControl.value)("label",r.getLabel("Profile.Default.SchoolForm.province_label"))("control",r.provinceControl),p(),v("ngIf",r.provinceControl.value=="Outside_Canada"))},dependencies:[de,Xe,K],styles:[`.appa_form__grid[_ngcontent-%COMP%]{margin-bottom:40px}.appa_form__grid[_ngcontent-%COMP%]:last-child{margin-bottom:0}
14/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/profile-school-information.component-N25AKUKV.css.map */`]});let c=s;return c})()});var lr,Ci=se(()=>{"use strict";J();si();Nt();Rt();yi();lr=(()=>{let s=class s{constructor(){}ngOnInit(){}};s.\u0275fac=function(d){return new(d||s)},s.\u0275cmp=W({type:s,selectors:[["app-profile-student"]],standalone:!1,decls:10,vars:1,consts:[[1,"profile-body"],[1,"profile-body__content"],[1,"profile-body__content--status"],[3,"format"],[1,"profile-body__content--section"]],template:function(d,r){d&1&&(f(0,"div",0)(1,"div",1)(2,"div",2),y(3,"app-profile-status",3),u(),f(4,"div",4),y(5,"app-profile-general-information"),u(),f(6,"div",4),y(7,"app-profile-connection-information"),u(),f(8,"div",4),y(9,"app-profile-school-information"),u()()()),d&2&&(p(3),v("format","large"))},dependencies:[yt,Ct,Mt,sr],styles:[`[_nghost-%COMP%]{width:100%}.profile-body[_ngcontent-%COMP%]{width:100%;overflow-y:hidden;justify-content:center;display:flex;flex-direction:column;align-items:center}@media(max-width:479px){.profile-body[_ngcontent-%COMP%]{padding:0 4px}}.profile-body__content[_ngcontent-%COMP%]{padding:20px 20px 110px;width:640px;max-width:640px;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}.profile-body__content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.profile-body__content--section[_ngcontent-%COMP%]{margin:40px 0}@media(max-width:479px){.profile-body__content[_ngcontent-%COMP%]{width:100%}}
15/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/profile-student.component-VKPXREPZ.css.map */`]});let c=s;return c})()});var dc,kn,xn=se(()=>{"use strict";J();Ft();J();he();Fe();Ut();dc=["closeButton"],kn=(()=>{let s=class s{constructor(a,d){this.translate=a,this.tools=d,this.remove=new rt}ngOnInit(){}openModal(){this.tools.addBodyClass("micromodal-opened"),ce.show("ModalDeleteChild",{disableScroll:!0,onClose:a=>this.onCloseModal(a),onShow:a=>this.onOpenModal(a)})}closeModal(){ce.close("ModalDeleteChild")}onOpenModal(a){this.closeButton.nativeElement.focus()}onCloseModal(a){this.tools.removeBodyClass("micromodal-opened")}getLabel(a){return this.translate.instant(a)}removeChild(){this.remove.emit(),this.closeModal()}};s.\u0275fac=function(d){return new(d||s)(C(G),C(ge))},s.\u0275cmp=W({type:s,selectors:[["app-modal-delete-child"]],viewQuery:function(d,r){if(d&1&&ie(dc,5),d&2){let g;oe(g=re())&&(r.closeButton=g.first)}},outputs:{remove:"remove"},standalone:!1,decls:18,vars:7,consts:[["closeButton",""],["id","ModalDeleteChild","aria-hidden","true",1,"micromodal"],["tabindex","-1","data-micromodal-close","",1,"micromodal__overlay"],["role","dialog","aria-modal","true",1,"micromodal__container"],[1,"micromodal__header"],["aria-label","Close modal","data-micromodal-close","",1,"micromodal__close","icon","icon-close","icon--tilt"],["id","modal-1-content",1,"micromodal__content"],[1,"modal-delete-child-dialog"],[1,"appa_modal-title"],[1,"footer"],["type","submit","data-test","login-submit",1,"btn","btn--md",3,"click"],[1,"appa-change-email-cancel"],[3,"click","label"],[1,"modal-delete-child-dialog__back"]],template:function(d,r){if(d&1){let g=ee();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"header",4),y(4,"button",5,0),u(),f(6,"main",6)(7,"div",7)(8,"div",8),P(9),S(10,"translate"),u(),f(11,"div",9)(12,"button",10),F("click",function(){return B(g),H(r.removeChild())}),P(13),S(14,"translate"),u(),f(15,"div",11)(16,"app-link-button",12),F("click",function(){return B(g),H(r.closeModal())}),u()()()(),y(17,"div",13),u()()()()}d&2&&(p(9),q(" ",D(10,3,"Profile.Default.MyChildrenForm.DeleteModal.description")," "),p(4),q(" ",D(14,5,"Profile.Default.MyChildrenForm.DeleteModal.yes")," "),p(3),v("label",r.getLabel("Profile.Default.MyChildrenForm.DeleteModal.cancel")))},dependencies:[Ue,K],styles:[`.micromodal[_ngcontent-%COMP%]{display:none}.micromodal.is-open[_ngcontent-%COMP%]{display:block}.micromodal[aria-hidden=false][_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{animation:mmfadeIn .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=false][_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%]{animation:mmslideIn .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=true][_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{animation:mmfadeOut .3s cubic-bezier(0,0,.2,1)}.micromodal[aria-hidden=true][_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%]{animation:mmslideOut .3s cubic-bezier(0,0,.2,1)}.micromodal[_ngcontent-%COMP%]   .micromodal__container[_ngcontent-%COMP%], .micromodal[_ngcontent-%COMP%]   .micromodal__overlay[_ngcontent-%COMP%]{will-change:transform}.micromodal__overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000059;display:flex;justify-content:center;align-items:center;z-index:110!important}.micromodal__container[_ngcontent-%COMP%]{background-color:#fff;box-sizing:border-box;max-width:760px;width:100%;position:relative}.micromodal__header[_ngcontent-%COMP%]{position:absolute;right:30px;top:25px;z-index:110!important;display:flex}.micromodal__content[_ngcontent-%COMP%]{line-height:normal;color:#000}.micromodal__close[_ngcontent-%COMP%]:hover{cursor:pointer}.modal-delete-child-dialog[_ngcontent-%COMP%]{position:relative;border:solid 1px #e3dcd3;background:#fff;display:flex;flex-direction:column;padding:70px}.modal-delete-child-dialog__back[_ngcontent-%COMP%]{content:"";position:absolute;inset:0;background:#e3dcd3;z-index:-1;transform:translate(10px,10px)}.micromodal-opened[_ngcontent-%COMP%]   .popup-banner-wrapper[_ngcontent-%COMP%]{z-index:89!important}.footer[_ngcontent-%COMP%]{padding-bottom:0;display:flex;align-items:center;text-align:center;justify-content:center;margin-top:2rem!important;margin-bottom:25px}.footer[_ngcontent-%COMP%]   .appa-link__span[_ngcontent-%COMP%]{font-weight:500}.appa_modal-title[_ngcontent-%COMP%]{font-size:30px;line-height:150%;font-weight:700;text-align:center}.appa-change-email-cancel[_ngcontent-%COMP%]{margin-left:20px}@media(max-width:940px){.micromodal__container[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-height:100%!important;max-width:100%}.micromodal__content[_ngcontent-%COMP%]{height:100%!important}.modal-delete-child-dialog[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-height:100%!important;overflow-y:auto;display:flex;justify-content:center}.appa_modal-title[_ngcontent-%COMP%]{margin-left:5%;margin-right:5%}}
16/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/modal-delete-child.component-FQYAXQY5.css.map */`]});let c=s;return c})()});
16function mc(c,s){if(c&1&&(f(0,"div",1),y(1,"app-select",3),u()),c&2){let h=I();p(),v("list",h.selectCountries)("dotShowed",!h.countryControl.value)("control",h.countryControl)("label",h.getLabel("Profile.Default.SchoolForm.residence_country"))}}var dr,wi=se(()=>{"use strict";J();at();xn();J();Ge();he();_e();_n();Ut();Cd();xn();dr=(()=>{let s=class s{constructor(a,d,r){this.profileService=a,this.tools=d,this.translate=r,this.update=new rt,this.remove=new rt,this.title="",this.levelControl=new R(null,[E.required]),this.provinceControl=new R(null,[E.required]),this.langControl=new R(null,[E.required]),this.countryControl=new R(null,[E.required]),this.activeIndex=1,this.showComponent=!0,this.selectLevels=[],this.selectProvinces=[],this.selectLanguages=[],this.selectCountries=[],this.isOpenModal=!1,this.initializeOptions(),this.provinceControl.valueChanges.subscribe(g=>{g!=="Outside_Canada"?this.countryControl.setValue("CAN"):g==="Outside_Canada"&&this.countryControl.setValue(null),this.item.province=g}),this.langControl.valueChanges.subscribe(g=>{this.item.lang=g}),this.levelControl.valueChanges.subscribe(g=>{this.item.level=g}),this.countryControl.valueChanges.subscribe(g=>{this.item.country=g})}ngOnInit(){this.provinceControl.setValue(this.item.province||null,{emitEvent:!1,emitModelToViewChange:!1,onlySelf:!0,emitViewToModelChange:!1}),this.langControl.setValue(this.item.lang||null),this.countryControl.setValue(this.item.country||null,{emitEvent:!1,emitModelToViewChange:!1,onlySelf:!0,emitViewToModelChange:!1}),this.levelControl.setValue(this.item.level??null),this.title=this.item.username?`${this.getLabel("Auth.RegisterInfo.Parent.my_child")} ( ${this.index+1} )`:this.getLabel("Auth.RegisterInfo.Parent.add_child"),this.showComponent=this.hasError()}onAnchorClick(){}openModal(){this.ModalDeleteChildComponent.openModal()}closeModal(){this.tools.removeBodyClass("open--modal"),this.isOpenModal=!1}removeChild(){this.remove.emit(),this.closeModal()}initializeOptions(){this.selectLevels=this.profileService.getStudentstLevels(),this.selectProvinces=this.profileService.getProvinces(),this.selectLanguages=this.profileService.getLanguages(),this.selectCountries=this.profileService.getCountries()}hasError(){return this.isButtonDisable()}isButtonDisable(){return!!this.levelControl.errors||!!this.langControl.errors||!!this.provinceControl.errors||this.provinceControl.value==="Outside_Canada"&&!!this.countryControl.errors}addChild(){if(!this.isButtonDisable()){this.item.username=this.title;let a=Object.assign({},this.item);delete a.name,a.province!=="Outside_Canada"&&(a.country="CAN"),this.update.emit({item:a}),this.showComponent=!1,this.tools.document.getElementById("connection-title").scrollIntoView()}}getLabel(a){return this.translate.instant(a)}};s.\u0275fac=function(d){return new(d||s)(C(Ke),C(ge),C(G))},s.\u0275cmp=W({type:s,selectors:[["profile-my-child"]],viewQuery:function(d,r){if(d&1&&ie(kn,5),d&2){let g;oe(g=re())&&(r.ModalDeleteChildComponent=g.first)}},inputs:{item:"item",index:"index"},outputs:{update:"update",remove:"remove"},standalone:!1,decls:17,vars:21,consts:[[3,"title","dotShowed","showItem"],[1,"appa_form__grid","appa-m-b-2"],[3,"list","control","dotShowed","label"],[3,"list","dotShowed","control","label"],["class","appa_form__grid appa-m-b-2",4,"ngIf"],[1,"appa-d-flex","appa-justify-content-center","appa-align-items-center"],[1,"appa-m-r-2"],[1,"btn","btn--md",3,"click","disabled"],[3,"click","label"],[3,"remove"]],template:function(d,r){d&1&&(f(0,"div")(1,"expand-collapse-item",0)(2,"div",1),y(3,"app-select",2),u(),f(4,"div",1),y(5,"app-select",3),u(),f(6,"div",1),y(7,"app-select",3),u(),V(8,mc,2,4,"div",4),f(9,"div",5)(10,"div",6)(11,"button",7),F("click",function(){return r.addChild()}),P(12),S(13,"translate"),u()(),f(14,"div")(15,"app-link-button",8),F("click",function(){return r.openModal()}),u()()()()(),f(16,"app-modal-delete-child",9),F("remove",function(){return r.removeChild()}),u()),d&2&&(p(),v("title",r.title)("dotShowed",r.hasError())("showItem",r.showComponent),p(2),v("list",r.selectLanguages)("control",r.langControl)("dotShowed",!r.langControl.value)("label",r.getLabel("Profile.Default.MyChildrenForm.Label.main_lang")),p(2),v("list",r.selectLevels)("dotShowed",!r.levelControl.value)("control",r.levelControl)("label",r.getLabel("Profile.Default.MyChildrenForm.Label.school_level")),p(2),v("list",r.selectProvinces)("dotShowed",!r.provinceControl.value)("control",r.provinceControl)("label",r.getLabel("Profile.Default.MyChildrenForm.Label.school_province")),p(),v("ngIf",r.provinceControl.value=="Outside_Canada"),p(3),v("disabled",r.isButtonDisable()),p(),q(" ",D(13,19,"Profile.Default.MyChildrenForm.safeguard_btn")," "),p(3),v("label",r.getLabel("Profile.Default.MyChildrenForm.remove_bt
16n")))},dependencies:[de,Xe,Ue,Jo,kn,K],styles:[`.appa_form__grid[_ngcontent-%COMP%]{margin-bottom:40px}.appa_form__grid[_ngcontent-%COMP%]:last-child{margin-bottom:0}.profile__body--content[_ngcontent-%COMP%]{padding:0 24px}.appa_modal--login[_ngcontent-%COMP%]{width:640px;height:354px;max-height:354px;min-height:354px;display:flex;padding:0;visibility:hidden}.appa_modal--login.appa_modal--open[_ngcontent-%COMP%]{visibility:visible}@media(max-width:768px){.appa_modal--login--login__content[_ngcontent-%COMP%]{padding:0}}.appa_modal--login__content[_ngcontent-%COMP%]{padding-right:35px;padding-left:35px}.appa_modal--login__content[_ngcontent-%COMP%]   .appa_modal-title[_ngcontent-%COMP%]{font-size:30px;line-height:150%;font-weight:700;text-align:center}.appa_modal--login__content[_ngcontent-%COMP%]   .appa_modal-description[_ngcontent-%COMP%]{font-size:16px;line-height:150%;text-align:center}.appa_modal--login__content[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{margin-top:40px;font-size:18px;line-height:21px;display:flex;justify-content:center;align-items:center}.appa_modal--login__content[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   appa-button[_ngcontent-%COMP%]{margin-right:24px}
17/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/my-child.component-JMNZ5HG4.css.map */`]});let c=s;return c})()});function pc(c,s){if(c&1){let h=ee();f(0,"div",6)(1,"profile-my-child",7),F("update",function(d){let r=B(h).index,g=I();return H(g.updateChild(d,r))})("remove",function(){let d=B(h).index,r=I();return H(r.removeChild(d))}),u()()}if(c&2){let h=s.$implicit,a=s.index;p(),v("item",h)("index",a)}}var cr,bi=se(()=>{"use strict";J();_e();Fe();fd();J();Ge();he();_e();yd();wd();wi();cr=(()=>{let s=class s{constructor(a,d,r,g,x,j,O){this.content=a,this.tools=d,this.events=r,this.translate=g,this.as=x,this.uds=j,this.platformId=O,this.data=[],this.linkTypes=Ro,this.subscriptions=[],this.onUserDataUpdate=Oe=>{this.currentUser=Oe;let te=this.currentUser.childs?this.currentUser.childs:[];this.data=te.map(pe=>sn(ye({},pe),{username:pe.name?pe.name:pe.username}))},this.isBrowser=Je(this.platformId),this.subscriptions.push(this.as.getCurrentUser().subscribe(this.onUserDataUpdate.bind(this))),this.userDataLID=this.uds.subscribe(this.onUserDataUpdate.bind(this))}ngOnInit(){}onAnchorClick(){}addChild(){this.data.push({id:No(),username:null,country:"CAN"})}updateChild(a,d){this.data[d]=a.item,this.currentUser.childs=this.data,this.uds.setData({childs:this.data})}removeChild(a){this.data.splice(a,1),this.currentUser.childs=this.data,this.uds.setData({childs:this.data}),this.isBrowser&&window.scroll(0,0)}hasError(){return this.data.filter(d=>!d.username||!d.level||!d.province||!d.lang||d.province==="Outside_Canada"&&!d.country).length===this.data.length}getLabel(a){return this.translate.instant(a)}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe()),this.uds.unsubscribe(this.userDataLID)}};s.\u0275fac=function(d){return new(d||s)(C(jo),C(ge),C(me),C(G),C(ae),C(Ye),C($e))},s.\u0275cmp=W({type:s,selectors:[["profile-my-children"]],standalone:!1,decls:9,vars:6,consts:[[1,"profile-general-information"],[1,"profile__body--title"],["id","children-title"],["class","profile__body--content appa-m-b-2",4,"ngFor","ngForOf"],[1,"appa_form__grid","appa-m-b-2","appa-text-center"],[3,"click","noLink","label"],[1,"profile__body--content","appa-m-b-2"],[3,"update","remove","item","index"]],template:function(d,r){d&1&&(f(0,"div",0)(1,"div",1)(2,"span",2),P(3),S(4,"translate"),u()(),f(5,"expand-collapse"),V(6,pc,2,2,"div",3),u(),f(7,"div",4)(8,"app-button",5),F("click",function(){return r.addChild()}),u()()()),d&2&&(p(3),N(D(4,4,"Profile.Default.MyChildrenForm.title")),p(3),v("ngForOf",r.data),p(2),v("noLink",!0)("label",r.getLabel("Profile.Default.MyChildrenForm.add_child_btn")))},dependencies:[dn,Zo,Ko,dr,K],styles:[`.appa_form__grid[_ngcontent-%COMP%]{margin-bottom:40px}.profile__body--content[_ngcontent-%COMP%]{padding:0 24px}
18/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/my-children.component-2JOOMFGE.css.map */`]});let c=s;return c})()});var mr,Mi=se(()=>{"use strict";J();si();Nt();Rt();bi();mr=(()=>{let s=class s{constructor(){}ngOnInit(){}};s.\u0275fac=function(d){return new(d||s)},s.\u0275cmp=W({type:s,selectors:[["app-profile-parent"]],standalone:!1,decls:10,vars:1,consts:[[1,"profile-body"],[1,"profile-body__content"],[1,"profile-body__content--status"],[3,"format"],[1,"profile-body__content--section"]],template:function(d,r){d&1&&(f(0,"div",0)(1,"div",1)(2,"div",2),y(3,"app-profile-status",3),u(),f(4,"div",4),y(5,"app-profile-general-information"),u(),f(6,"div",4),y(7,"app-profile-connection-information"),u(),f(8,"div",4),y(9,"profile-my-children"),u()()()),d&2&&(p(3),v("format","large"))},dependencies:[yt,Ct,Mt,cr],styles:[`[_nghost-%COMP%]{width:100%}.profile-body[_ngcontent-%COMP%]{width:100%;overflow-y:hidden;justify-content:center;display:flex;flex-direction:column;align-items:center}@media(max-width:479px){.profile-body[_ngcontent-%COMP%]{padding:0 4px}}.profile-body__content[_ngcontent-%COMP%]{padding:20px 20px 110px;width:640px;max-width:640px;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}.profile-body__content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.profile-body__content--section[_ngcontent-%COMP%]{margin:40px 0}@media(max-width:479px){.profile-body__content[_ngcontent-%COMP%]{width:100%}}
19/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/
19profile-parent.component-I64KTRYD.css.map */`]});let c=s;return c})()});function _c(c,s){c&1&&(Ee(0),y(1,"app-profile-student"),Le())}function gc(c,s){c&1&&(Ee(0),y(1,"app-profile-parent"),Le())}function vc(c,s){c&1&&(Ee(0),y(1,"app-profile-teacher"),Le())}function yc(c,s){if(c&1&&(f(0,"app-layout")(1,"div",1),y(2,"app-header-profil-myspace-preferences"),V(3,_c,2,0,"ng-container",0)(4,gc,2,0,"ng-container",0)(5,vc,2,0,"ng-container",0),u()()),c&2){let h=I();p(3),v("ngIf",h.checkIfProfileStudent()),p(),v("ngIf",h.checkIfProfileParent()),p(),v("ngIf",h.checkIfProfileTeacher())}}var ur,pr=se(()=>{"use strict";J();Fe();_e();J();ri();Ge();he();_e();vd();bd();vi();Ci();Mi();ur=(()=>{let s=class s{constructor(a,d,r,g,x){this.router=a,this.localeRoute=d,this.as=r,this.translate=g,this.platformId=x,this.currentUser={},this.subscriptions=[],this.isBrowser=Je(x),this.isBrowser&&this.subscriptions.push(this.as.getCurrentUser().subscribe(j=>{this.currentUser=ye(ye({},this.currentUser),j),j||this.onDisconnect()}))}onDisconnect(){this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.students.root"),!0)])}checkIfProfileStudent(){return this.currentUser.type===mn.student}checkIfProfileParent(){return this.currentUser.type===mn.parent}checkIfProfileTeacher(){return this.currentUser.type===mn.teacher}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}};s.\u0275fac=function(d){return new(d||s)(C(Eo),C(Wo),C(ae),C(G),C($e))},s.\u0275cmp=W({type:s,selectors:[["app-profile"]],standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[1,"profile-content"]],template:function(d,r){d&1&&V(0,yc,6,3,"app-layout",0),d&2&&v("ngIf",r.isBrowser)},dependencies:[de,qo,Xo,ar,lr,mr],encapsulation:2});let c=s;return c})()});var Cc,wu,wc=se(()=>{_e();pr();_d();ri();Pd();vi();Ci();Mi();he();hd();Nt();Rt();gi();yi();bi();wi();wn();yn();xn();fi();ui();pi();J();_e();he();Cc=Ho.generateRoutes([{route:{component:ur},paths:["",""]}]),wu=(()=>{let s=class s{};s.\u0275fac=function(d){return new(d||s)},s.\u0275mod=ko({type:s}),s.\u0275inj=bo({providers:[G],imports:[To,Lo.forChild(Cc),tr,Fo.forChild({missingTranslationHandler:{provide:Yo,useClass:Bo},useDefaultLang:!1})]});let c=s;return c})();Do(Pn,function(){return[dn,de,bn,Mn]},function(){return[K]})});wc();export{wu as ProfileModule};
20//# sourceMappingURL=chunk-5LB7FMYN.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.