vendor: 24,481 bytes, lines 1-4
1import{a as Qa,b as Za,c as Xa,d as Ja}from"./chunk-BPHASBZ6.js";import{d as el}from"./chunk-FGHVNPAC.js";import{$a as Wi,Aa as La,Ba as lt,Ca as We,D as ma,Ia as Ai,Ja as Yn,Ka as Di,L as Ti,La as Ua,Ma as Ni,Na as Gr,Oa as Ft,P as Ei,Pa as Ri,Q as ga,Qa as Ii,Ra as Fi,S as _a,Sa as Li,T as ya,Ta as Ya,Ua as Ui,V as ba,Va as ct,W as va,Wa as Yi,Xa as Bi,Ya as zi,Za as Vi,_a as Ht,a as wi,ab as Hi,b as Q,bb as Ba,c as st,ca as wa,cb as za,d as ki,da as Ca,db as ji,e as Ln,ea as Pi,eb as $i,f as pa,fb as Kr,g as at,gb as Va,ha as Sa,hb as qi,i as Un,ib as Wa,jb as Ha,kb as Bn,l as fn,la as ka,lb as Lt,m as qr,ma as xa,mb as ja,n as xi,na as Ma,nb as $a,o as Mi,oa as Ta,ob as qa,pa as Ea,pb as Ga,qa as Pa,qb as Qr,rb as Zr,ta as Na,tb as Gi,ua as Ra,va as Ia,wa as ve,xb as Ka,ya as It,za as Fa}from"./chunk-BRBR4SKB.js";import{$a as I,Ab as b,Ac as sa,Ba as Ws,Bb as Pe,C as Ct,Ca as Hs,Cb as he,Cc as aa,Da as w,Db as jr,Dc as la,E as nt,Ea as se,Eb as $r,Ec as ca,Fc as ua,G as Wt,Ga as js,Gb as qs,Gc as da,Hb as Gs,Hc as Si,I as Bs,Ib as Ks,Ic as un,Jc as dn,Kc as ha,La as Ve,Lb as Qs,Lc as fa,Mb as Nn,Mc as hn,Nb as Rn,Nd as Oa,O as Ot,Od as Aa,Qd as Da,Ra as Y,Rd as Oi,S as J,Sd as Rt,Ta as $s,Tb as Zs,U as it,Va as xe,W as yi,Wa as ie,X as Te,Xa as Dt,Y as Ee,Ya as Nt,Z as rt,_ as bi,a as Pt,b as Us,bc as ot,c as Ys,cb as Ke,d as _i,da as j,db as Qe,e as Mf,ea as $,eb as g,ec as Xs,f as Tf,fb as y,g as Ae,gb as q,hc as Js,ia as vi,k as Vr,kb as be,la as An,lc as Ci,ma as an,mc as cn,nb as z,pa as zs,pb as M,pc as In,qc as ea,rc as Fn,s as Vt,sc as ta,t as Wr,ta as ln,tc as na,ua as Hr,uc as ia,wa as Vs,xc as ra,ya as At,yc as oa,za as De,zb as Dn}from"./chunk-2PNQIH3N.js";var Yl=Mf((fo,yn)=>{(function(i,t){typeof fo=="object"&&typeof yn<"u"?yn.exports=t():typeof define=="function"&&define.amd?define(t):i.moment=t()})(fo,function(){"use strict";var i;function t(){return i.apply(null,arguments)}function e(n){i=n}function r(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function s(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function c(n,o){return Object.prototype.hasOwnProperty.call(n,o)}function d(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var o;for(o in n)if(c(n,o))return!1;return!0}function h(n){return n===void 0}function f(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function m(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function C(n,o){var a=[],l,u=n.length;for(l=0;l<u;++l)a.push(o(n[l],l));return a}function S(n,o){for(var a in o)c(o,a)&&(n[a]=o[a]);return c(o,"toString")&&(n.toString=o.toString),c(o,"valueOf")&&(n.valueOf=o.valueOf),n}function O(n,o,a,l){return ms(n,o,a,l,!0).utc()}function D(){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 v(n){return n._pf==null&&(n._pf=D()),n._pf}var N;Array.prototype.some?N=Array.prototype.some:N=function(n){var o=Object(this),a=o.length>>>0,l;for(l=0;l<a;l++)if(l in o&&n.call(this,o[l],l,o))return!0;return!1};function L(n){var o=null,a=!1,l=n._d&&!isNaN(n._d.getTime());if(l&&(o=v(n),a=N.call(o.parsedDateParts,function(u){return u!=null}),l=o.overflow<0&&!o.empty&&!o.invalidEra&&!o.invalidMonth&&!o.invalidWeekday&&!o.weekdayMismatch&&!o.nullInput&&!o.invalidFormat&&!o.userInvalidated&&(!o.meridiem||o.meridiem&&a),n._strict&&(l=l&&o.charsLeftOver===0&&o.unusedTokens.length===0&&o.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(n))n._isValid=l;else return l;return n._isValid}function Z(n){var o=O(NaN);return n!=null?S(v(o),n):v(o).userInvalidated=!0,o}var V=t.momentProperties=[],G=!1;function U(n,o){var a,l,u,p=V.length;if(h(o._isAMomentObject)||(n._isAMomentObject=o._isAMomentObject),h(o._i)||(n._i=o._i),h(o._f)||(n._f=o._f),h(o._l)||(n._l=o._l),h(o._strict)||(n._strict=o._strict),h(o._tzm)||(n._tzm=o._tzm),h(o._isUTC)||(n._isUTC=o._isUTC),h(o._offset)||(n._offset=o._offset),h(o._pf)||(n._pf=v(o)),h(o._locale)||(n._locale=o._locale),p>0)for(a=0;a<p;a++)l=V[a],u=o[l],h(u)||(n[l]=u);return n}function ue(n){U(this,n),this._d=new Date(n._d!=null?n._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),G===!1&&(G=!0,t.updateOffset(this),G=!1)}function te(n){return n instanceof ue||n!=null&&n._isAMomentObject!=null}function ne(n){t.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+n)}function W(n,o){var a=!0;return S(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,n),a){var l=[],u,p,_,T=arguments.length;for(p=0;p<T;p++){if(u="",typeof arguments[p]=="object"){u+=` 2[`+p+"] ";for(_ in arguments[0])c(arguments[0],_)&&(u+=_+": "+arguments[0][_]+", ");u=u.slice(0,-2)}else u=arguments[p];l.push(u)}ne(n+` 3Arguments: `+Array.prototype.slice.call(l).join("")+` 4`+new Error().stack),a=!1}return o.apply(this,arguments)},o)}var Ne={};function Ue(n,o){t.deprecationHandler!=null&&t.deprecationHandler(n,o),Ne[n]||(ne(o),Ne[n]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function Ce(n){return typeof Function<"u"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function Ye(n){var o,a;for(a in n)c(n,a)&&(o=n[a],Ce(o)?this[a]=o:this["_"+a]=o);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function et(n,o){var a=S({},n),l;for(l in o)c(o,l)&&(s(n[l])&&s(o[l])?(a[l]={},S(a[l],n[l]),S(a[l],o[l])):o[l]!=null?a[l]=o[l]:delete a[l]);for(l in n)c(n,l)&&!c(o,l)&&s(n[l])&&(a[l]=S({},a[l]));return a}function kt(n){n!=null&&this.set(n)}var xt;Object.keys?xt=Object.keys:xt=function(n){var o,a=[];for(o in n)c(n,o)&&a.push(o);return a};var P={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function R(n,o,a){var l=this._calendar[n]||this._calendar.sameElse;return Ce(l)?l.call(o,a):l}function A(n,o,a){var l=""+Math.abs(n),u=o-l.length,p=n>=0;return(p?a?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+l}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ae=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Se={},fe={};function x(n,o,a,l){var u=l;typeof l=="string"&&(u=function(){return this[l]()}),n&&(fe[n]=u),o&&(fe[o[0]]=function(){return A(u.apply(this,arguments),o[1],o[2])}),a&&(fe[a]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function re(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function je(n){var o=n.match(B),a,l;for(a=0,l=o.length;a<l;a++)fe[o[a]]?o[a]=fe[o[a]]:o[a]=re(o[a]);return function(u){var p="",_;for(_=0;_<l;_++)p+=Ce(o[_])?o[_].call(u,n):o[_];return p}}function Re(n,o){return n.isValid()?(o=me(o,n.localeData()),Se[o]=Se[o]||je(o),Se[o](n)):n.localeData().invalidDate()}function me(n,o){var a=5;function l(u){return o.longDateFormat(u)||u}for(ae.lastIndex=0;a>=0&&ae.test(n);)n=n.replace(ae,l),ae.lastIndex=0,a-=1;return n}var $e={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 Oe(n){var o=this._longDateFormat[n],a=this._longDateFormat[n.toUpperCase()];return o||!a?o:(this._longDateFormat[n]=a.match(B).map(function(l){return l==="MMMM"||l==="MM"||l==="DD"||l==="dddd"?l.slice(1):l}).join(""),this._longDateFormat[n])}var Zt="Invalid date";function wn(){return this._invalidDate}var Fc="%d",Lc=/\d{1,2}/;function Uc(n){return this._ordinal.replace("%d",n)}var Yc={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 Bc(n,o,a,l){var u=this._relativeTime[a];return Ce(u)?u(n,o,a,l):u.replace(/%d/i,n)}function zc(n,o){var a=this._relativeTime[n>0?"future":"past"];return Ce(a)?a(o):a.replace(/%s/i,o)}var Go={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(n){return typeof n=="string"?Go[n]||Go[n.toLowerCase()]:void 0}function br(n){var o={},a,l;for(l in n)c(n,l)&&(a=Be(l),a&&(o[a]=n[l]));return o}var Vc={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 Wc(n){var o=[],a;for(a in n)c(n,a)&&o.push({unit:a,priority:Vc[a]});return o.sort(function(l,u){return l.priority-u.priority}),o}var Ko=/\d/,Ie=/\d\d/,Qo=/\d{3}/,vr=/\d{4}/,Jn=/[+-]?\d{6}/,le=/\d\d?/,Zo=/\d\d\d\d?/,Xo=/\d\d\d\d\d\d?/,ei=/\d{1,3}/,wr=/\d{1,4}/,ti=/[+-]?\d{1,6}/,Xt=/\d+/,ni=/[+-]?\d+/,Hc=/Z|[+-]\d\d:?\d\d/gi,ii=/Z|[+-]\d\d(?::?\d\d)?/gi,jc=/[+-]?\d+(\.\d{1,3})?/,Cn=/[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,Jt=/^[1-9]\d?/,Cr=/^([1-9]\d|\d)/,ri;ri={};function E(n,o,a){ri[n]=Ce(o)?o:function(l,u){return l&&a?a:o}}function $c(n,o){return c(ri,n)?ri[n](o._strict,o._locale):new RegExp(qc(n))}function qc(n){return ft(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(o,a,l,u,p){return a||l||u||p}))}function ft(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ze(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function H(n){var o=+n,a=0;return o!==0&&isFinite(o)&&(a=ze(o)),a}var Sr={};function oe(n,o){var a,l=o,u;for(typeof n=="string"&&(n=[n]),f(o)&&(l=function(p,_){_[o]=H(p)}),u=n.length,a=0;a<u;a++)Sr[n[a]]=l}function Sn(n,o){oe(n,function(a,l,u,p){u._w=u._w||{},o(a,u._w,u,p)})}function Gc(n,o,a){o!=null&&c(Sr,n)&&Sr[n](o,a._a,a,n)}function oi(n){return n%4===0&&n%100!==0||n%400===0}var ke=0,pt=1,tt=2,ye=3,qe=4,mt=5,Yt=6,Kc=7,Qc=8;x("Y",0,0,function(){var n=this.year();return n<=9999?A(n,4):"+"+n}),x(0,["YY",2],0,function(){return this.year()%100}),x(0,["YYYY",4],0,"year"),x(0,["YYYYY",5],0,"year"),x(0,["YYYYYY",6,!0],0,"year"),E("Y",ni),E("YY",le,Ie),E("YYYY",wr,vr),E("YYYYY",ti,Jn),E("YYYYYY",ti,Jn),oe(["YYYYY","YYYYYY"],ke),oe("YYYY",function(n,o){o[ke]=n.length===2?t.parseTwoDigitYear(n):H(n)}),oe("YY",function(n,o){o[ke]=t.parseTwoDigitYear(n)}),oe("Y",function(n,o){o[ke]=parseInt(n,10)});function kn(n){return oi(n)?366:365}t.parseTwoDigitYear=function(n){return H(n)+(H(n)>68?1900:2e3)};var Jo=en("FullYear",!0);function Zc(){return oi(this.year())}function en(n,o){return function(a){return a!=null?(es(this,n,a),t.updateOffset(this,o),this):xn(this,n)}}function xn(n,o){if(!n.isValid())return NaN;var a=n._d,l=n._isUTC;switch(o){case"Milliseconds":return l?a.getUTCMilliseconds():a.getMilliseconds();case"Seconds":return l?a.getUTCSeconds():a.getSeconds();case"Minutes":return l?a.getUTCMinutes():a.getMinutes();case"Hours":return l?a.getUTCHours():a.getHours();case"Date":return l?a.getUTCDate():a.getDate();case"Day":return l?a.getUTCDay():a.getDay();case"Month":return l?a.getUTCMonth():a.getMonth();case"FullYear":return l?a.getUTCFullYear():a.getFullYear();default:return NaN}}function es(n,o,a){var l,u,p,_,T;if(!(!n.isValid()||isNaN(a))){switch(l=n._d,u=n._isUTC,o){case"Milliseconds":return void(u?l.setUTCMilliseconds(a):l.setMilliseconds(a));case"Seconds":return void(u?l.setUTCSeconds(a):l.setSeconds(a));case"Minutes":return void(u?l.setUTCMinutes(a):l.setMinutes(a));case"Hours":return void(u?l.setUTCHours(a):l.setHours(a));case"Date":return void(u?l.setUTCDate(a):l.setDate(a));case"FullYear":break;default:return}p=a,_=n.month(),T=n.date(),T=T===29&&_===1&&!oi(p)?28:T,u?l.setUTCFullYear(p,_,T):l.setFullYear(p,_,T)}}function Xc(n){return n=Be(n),Ce(this[n])?this[n]():this}function Jc(n,o){if(typeof n=="object"){n=br(n);var a=Wc(n),l,u=a.length;for(l=0;l<u;l++)this[a[l].unit](n[a[l].unit])}else if(n=Be(n),Ce(this[n]))return this[n](o);return this}function eu(n,o){return(n%o+o)%o}var ge;Array.prototype.indexOf?ge=Array.prototype.indexOf:ge=function(n){var o;for(o=0;o<this.length;++o)if(this[o]===n)return o;return-1};function kr(n,o){if(isNaN(n)||isNaN(o))return NaN;var a=eu(o,12);return n+=(o-a)/12,a===1?oi(n)?29:28:31-a%7%2}x("M",["MM",2],"Mo",function(){return this.month()+1}),x("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)}),x("MMMM",0,0,function(n){return this.localeData().months(this,n)}),E("M",le,Jt),E("MM",le,Ie),E("MMM",function(n,o){return o.monthsShortRegex(n)}),E("MMMM",function(n,o){return o.monthsRegex(n)}),oe(["M","MM"],function(n,o){o[pt]=H(n)-1}),oe(["MMM","MMMM"],function(n,o,a,l){var u=a._locale.monthsParse(n,l,a._strict);u!=null?o[pt]=u:v(a).invalidMonth=n});var tu="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ts="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ns=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,nu=Cn,iu=Cn;function ru(n,o){return n?r(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||ns).test(o)?"format":"standalone"][n.month()]:r(this._months)?this._months:this._months.standalone}function ou(n,o){return n?r(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[ns.test(o)?"format":"standalone"][n.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function su(n,o,a){var l,u,p,_=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],l=0;l<12;++l)p=O([2e3,l]),this._shortMonthsParse[l]=this.monthsShort(p,"").toLocaleLowerCase(),this._longMonthsParse[l]=this.months(p,"").toLocaleLowerCase();return a?o==="MMM"?(u=ge.call(this._shortMonthsParse,_),u!==-1?u:null):(u=ge.call(this._longMonthsParse,_),u!==-1?u:null):o==="MMM"?(u=ge.call(this._shortMonthsParse,_),u!==-1?u:(u=ge.call(this._longMonthsParse,_),u!==-1?u:null)):(u=ge.call(this._longMonthsParse,_),u!==-1?u:(u=ge.call(this._shortMonthsParse,_),u!==-1?u:null))}function au(n,o,a){var l,u,p;if(this._monthsParseExact)return su.call(this,n,o,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),l=0;l<12;l++){if(u=O([2e3,l]),a&&!this._longMonthsParse[l]&&(this._longMonthsParse[l]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[l]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),!a&&!this._monthsParse[l]&&(p="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[l]=new RegExp(p.replace(".",""),"i")),a&&o==="MMMM"&&this._longMonthsParse[l].test(n))return l;if(a&&o==="MMM"&&this._shortMonthsParse[l].test(n))return l;if(!a&&this._monthsParse[l].test(n))return l}}function is(n,o){if(!n.isValid())return n;if(typeof o=="string"){if(/^\d+$/.test(o))o=H(o);else if(o=n.localeData().monthsParse(o),!f(o))return n}var a=o,l=n.date();return l=l<29?l:Math.min(l,kr(n.year(),a)),n._isUTC?n._d.setUTCMonth(a,l):n._d.setMonth(a,l),n}function rs(n){return n!=null?(is(this,n),t.updateOffset(this,!0),this):xn(this,"Month")}function lu(){return kr(this.year(),this.month())}function cu(n){return this._monthsParseExact?(c(this,"_monthsRegex")||os.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=nu),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function uu(n){return this._monthsParseExact?(c(this,"_monthsRegex")||os.call(this),n?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=iu),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function os(){function n(F,K){return K.length-F.length}var o=[],a=[],l=[],u,p,_,T;for(u=0;u<12;u++)p=O([2e3,u]),_=ft(this.monthsShort(p,"")),T=ft(this.months(p,"")),o.push(_),a.push(T),l.push(T),l.push(_);o.sort(n),a.sort(n),l.sort(n),this._monthsRegex=new RegExp("^("+l.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function du(n,o,a,l,u,p,_){var T;return n<100&&n>=0?(T=new Date(n+400,o,a,l,u,p,_),isFinite(T.getFullYear())&&T.setFullYear(n)):T=new Date(n,o,a,l,u,p,_),T}function Mn(n){var o,a;return n<100&&n>=0?(a=Array.prototype.slice.call(arguments),a[0]=n+400,o=new Date(Date.UTC.apply(null,a)),isFinite(o.getUTCFullYear())&&o.setUTCFullYear(n)):o=new Date(Date.UTC.apply(null,arguments)),o}function si(n,o,a){var l=7+o-a,u=(7+Mn(n,0,l).getUTCDay()-o)%7;return-u+l-1}function ss(n,o,a,l,u){var p=(7+a-l)%7,_=si(n,l,u),T=1+7*(o-1)+p+_,F,K;return T<=0?(F=n-1,K=kn(F)+T):T>kn(n)?(F=n+1,K=T-kn(n)):(F=n,K=T),{year:F,dayOfYear:K}}function Tn(n,o,a){var l=si(n.year(),o,a),u=Math.floor((n.dayOfYear()-l-1)/7)+1,p,_;return u<1?(_=n.year()-1,p=u+gt(_,o,a)):u>gt(n.year(),o,a)?(p=u-gt(n.year(),o,a),_=n.year()+1):(_=n.year(),p=u),{week:p,year:_}}function gt(n,o,a){var l=si(n,o,a),u=si(n+1,o,a);return(kn(n)-l+u)/7}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),E("w",le,Jt),E("ww",le,Ie),E("W",le,Jt),E("WW",le,Ie),Sn(["w","ww","W","WW"],function(n,o,a,l){o[l.substr(0,1)]=H(n)});function hu(n){return Tn(n,this._week.dow,this._week.doy).week}var fu={dow:0,doy:6};function pu(){return this._week.dow}function mu(){return this._week.doy}function gu(n){var o=this.localeData().week(this);return n==null?o:this.add((n-o)*7,"d")}function _u(n){var o=Tn(this,1,4).week;return n==null?o:this.add((n-o)*7,"d")}x("d",0,"do","day"),x("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),x("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),x("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),E("d",le),E("e",le),E("E",le),E("dd",function(n,o){return o.weekdaysMinRegex(n)}),E("ddd",function(n,o){return o.weekdaysShortRegex(n)}),E("dddd",function(n,o){return o.weekdaysRegex(n)}),Sn(["dd","ddd","dddd"],function(n,o,a,l){var u=a._locale.weekdaysParse(n,l,a._strict);u!=null?o.d=u:v(a).invalidWeekday=n}),Sn(["d","e","E"],function(n,o,a,l){o[l]=H(n)});function yu(n,o){return typeof n!="string"?n:isNaN(n)?(n=o.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function bu(n,o){return typeof n=="string"?o.weekdaysParse(n)%7||7:isNaN(n)?null:n}function xr(n,o){return n.slice(o,7).concat(n.slice(0,o))}var vu="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),as="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Cu=Cn,Su=Cn,ku=Cn;function xu(n,o){var a=r(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(o)?"format":"standalone"];return n===!0?xr(a,this._week.dow):n?a[n.day()]:a}function Mu(n){return n===!0?xr(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Tu(n){return n===!0?xr(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Eu(n,o,a){var l,u,p,_=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],l=0;l<7;++l)p=O([2e3,1]).day(l),this._minWeekdaysParse[l]=this.weekdaysMin(p,"").toLocaleLowerCase(),this._shortWeekdaysParse[l]=this.weekdaysShort(p,"").toLocaleLowerCase(),this._weekdaysParse[l]=this.weekdays(p,"").toLocaleLowerCase();return a?o==="dddd"?(u=ge.call(this._weekdaysParse,_),u!==-1?u:null):o==="ddd"?(u=ge.call(this._shortWeekdaysParse,_),u!==-1?u:null):(u=ge.call(this._minWeekdaysParse,_),u!==-1?u:null):o==="dddd"?(u=ge.call(this._weekdaysParse,_),u!==-1||(u=ge.call(this._shortWeekdaysParse,_),u!==-1)?u:(u=ge.call(this._minWeekdaysParse,_),u!==-1?u:null)):o==="ddd"?(u=ge.call(this._shortWeekdaysParse,_),u!==-1||(u=ge.call(this._weekdaysParse,_),u!==-1)?u:(u=ge.call(this._minWeekdaysParse,_),u!==-1?u:null)):(u=ge.call(this._minWeekdaysParse,_),u!==-1||(u=ge.call(this._weekdaysParse,_),u!==-1)?u:(u=ge.call(this._shortWeekdaysParse,_),u!==-1?u:null))}function Pu(n,o,a){var l,u,p;if(this._weekdaysParseExact)return Eu.call(this,n,o,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),l=0;l<7;l++){if(u=O([2e3,1]).day(l),a&&!this._fullWeekdaysParse[l]&&(this._fullWeekdaysParse[l]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[l]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[l]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[l]||(p="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[l]=new RegExp(p.replace(".",""),"i")),a&&o==="dddd"&&this._fullWeekdaysParse[l].test(n))return l;if(a&&o==="ddd"&&this._shortWeekdaysParse[l].test(n))return l;if(a&&o==="dd"&&this._minWeekdaysParse[l].test(n))return l;if(!a&&this._weekdaysParse[l].test(n))return l}}function Ou(n){if(!this.isValid())return n!=null?this:NaN;var o=xn(this,"Day");return n!=null?(n=yu(n,this.localeData()),this.add(n-o,"d")):o}function Au(n){if(!this.isValid())return n!=null?this:NaN;var o=(this.day()+7-this.localeData()._week.dow)%7;return n==null?o:this.add(n-o,"d")}function Du(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var o=bu(n,this.localeData());return this.day(this.day()%7?o:o-7)}else return this.day()||7}function Nu(n){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Mr.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Cu),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ru(n){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Mr.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Su),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Iu(n){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Mr.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ku),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Mr(){function n(Me,wt){return wt.length-Me.length}var o=[],a=[],l=[],u=[],p,_,T,F,K;for(p=0;p<7;p++)_=O([2e3,1]).day(p),T=ft(this.weekdaysMin(_,"")),F=ft(this.weekdaysShort(_,"")),K=ft(this.weekdays(_,"")),o.push(T),a.push(F),l.push(K),u.push(T),u.push(F),u.push(K);o.sort(n),a.sort(n),l.sort(n),u.sort(n),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Tr(){return this.hours()%12||12}function Fu(){return this.hours()||24}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,Tr),x("k",["kk",2],0,Fu),x("hmm",0,0,function(){return""+Tr.apply(this)+A(this.minutes(),2)}),x("hmmss",0,0,function(){return""+Tr.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),x("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),x("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)});function ls(n,o){x(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),o)})}ls("a",!0),ls("A",!1);function cs(n,o){return o._meridiemParse}
vendor: 5,789 bytes, line 4
4E("a",cs),E("A",cs),E("H",le,Cr),E("h",le,Jt),E("k",le,Jt),E("HH",le,Ie),E("hh",le,Ie),E("kk",le,Ie),E("hmm",Zo),E("hmmss",Xo),E("Hmm",Zo),E("Hmmss",Xo),oe(["H","HH"],ye),oe(["k","kk"],function(n,o,a){var l=H(n);o[ye]=l===24?0:l}),oe(["a","A"],function(n,o,a){a._isPm=a._locale.isPM(n),a._meridiem=n}),oe(["h","hh"],function(n,o,a){o[ye]=H(n),v(a).bigHour=!0}),oe("hmm",function(n,o,a){var l=n.length-2;o[ye]=H(n.substr(0,l)),o[qe]=H(n.substr(l)),v(a).bigHour=!0}),oe("hmmss",function(n,o,a){var l=n.length-4,u=n.length-2;o[ye]=H(n.substr(0,l)),o[qe]=H(n.substr(l,2)),o[mt]=H(n.substr(u)),v(a).bigHour=!0}),oe("Hmm",function(n,o,a){var l=n.length-2;o[ye]=H(n.substr(0,l)),o[qe]=H(n.substr(l))}),oe("Hmmss",function(n,o,a){var l=n.length-4,u=n.length-2;o[ye]=H(n.substr(0,l)),o[qe]=H(n.substr(l,2)),o[mt]=H(n.substr(u))});function Lu(n){return(n+"").toLowerCase().charAt(0)==="p"}var Uu=/[ap]\.?m?\.?/i,Yu=en("Hours",!0);function Bu(n,o,a){return n>11?a?"pm":"PM":a?"am":"AM"}var us={calendar:P,longDateFormat:$e,invalidDate:Zt,ordinal:Fc,dayOfMonthOrdinalParse:Lc,relativeTime:Yc,months:tu,monthsShort:ts,week:fu,weekdays:vu,weekdaysMin:wu,weekdaysShort:as,meridiemParse:Uu},de={},En={},Pn;function zu(n,o){var a,l=Math.min(n.length,o.length);for(a=0;a<l;a+=1)if(n[a]!==o[a])return a;return l}function ds(n){return n&&n.toLowerCase().replace("_","-")}function Vu(n){for(var o=0,a,l,u,p;o<n.length;){for(p=ds(n[o]).split("-"),a=p.length,l=ds(n[o+1]),l=l?l.split("-"):null;a>0;){if(u=ai(p.slice(0,a).join("-")),u)return u;if(l&&l.length>=a&&zu(p,l)>=a-1)break;a--}o++}return Pn}function Wu(n){return!!(n&&n.match("^[^/\\\\]*$"))}function ai(n){var o=null,a;if(de[n]===void 0&&typeof yn<"u"&&yn&&yn.exports&&Wu(n))try{o=Pn._abbr,a=Ys,a("./locale/"+n),Mt(o)}catch{de[n]=null}return de[n]}function Mt(n,o){var a;return n&&(h(o)?a=_t(n):a=Er(n,o),a?Pn=a:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Pn._abbr}function Er(n,o){if(o!==null){var a,l=us;if(o.abbr=n,de[n]!=null)Ue("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."),l=de[n]._config;else if(o.parentLocale!=null)if(de[o.parentLocale]!=null)l=de[o.parentLocale]._config;else if(a=ai(o.parentLocale),a!=null)l=a._config;else return En[o.parentLocale]||(En[o.parentLocale]=[]),En[o.parentLocale].push({name:n,config:o}),null;return de[n]=new kt(et(l,o)),En[n]&&En[n].forEach(function(u){Er(u.name,u.config)}),Mt(n),de[n]}else return delete de[n],null}function Hu(n,o){if(o!=null){var a,l,u=us;de[n]!=null&&de[n].parentLocale!=null?de[n].set(et(de[n]._config,o)):(l=ai(n),l!=null&&(u=l._config),o=et(u,o),l==null&&(o.abbr=n),a=new kt(o),a.parentLocale=de[n],de[n]=a),Mt(n)}else de[n]!=null&&(de[n].parentLocale!=null?(de[n]=de[n].parentLocale,n===Mt()&&Mt(n)):de[n]!=null&&delete de[n]);return de[n]}function _t(n){var o;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Pn;if(!r(n)){if(o=ai(n),o)return o;n=[n]}return Vu(n)}function ju(){return xt(de)}function Pr(n){var o,a=n._a;return a&&v(n).overflow===-2&&(o=a[pt]<0||a[pt]>11?pt:a[tt]<1||a[tt]>kr(a[ke],a[pt])?tt:a[ye]<0||a[ye]>24||a[ye]===24&&(a[qe]!==0||a[mt]!==0||a[Yt]!==0)?ye:a[qe]<0||a[qe]>59?qe:a[mt]<0||a[mt]>59?mt:a[Yt]<0||a[Yt]>999?Yt:-1,v(n)._overflowDayOfYear&&(o<ke||o>tt)&&(o=tt),v(n)._overflowWeeks&&o===-1&&(o=Kc),v(n)._overflowWeekday&&o===-1&&(o=Qc),v(n).overflow=o),n}var $u=/^\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)?)?$/,qu=/^\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)?)?$/,Gu=/Z|[+-]\d\d(?::?\d\d)?/,li=[["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]],Or=[["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/]],Ku=/^\/?Date\((-?\d+)/i,Qu=/^(?:(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}))$/,Zu={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function hs(n){var o,a,l=n._i,u=$u.exec(l)||qu.exec(l),p,_,T,F,K=li.length,Me=Or.length;if(u){for(v(n).iso=!0,o=0,a=K;o<a;o++)if(li[o][1].exec(u[1])){_=li[o][0],p=li[o][2]!==!1;break}if(_==null){n._isValid=!1;return}if(u[3]){for(o=0,a=Me;o<a;o++)if(Or[o][1].exec(u[3])){T=(u[2]||" ")+Or[o][0];break}if(T==null){n._isValid=!1;return}}if(!p&&T!=null){n._isValid=!1;return}if(u[4])if(Gu.exec(u[4]))F="Z";else{n._isValid=!1;return}n._f=_+(T||"")+(F||""),Dr(n)}else n._isValid=!1}function Xu(n,o,a,l,u,p){var _=[Ju(n),ts.indexOf(o),parseInt(a,10),parseInt(l,10),parseInt(u,10)];return p&&_.push(parseInt(p,10)),_}function Ju(n){var o=parseInt(n,10);return o<=49?2e3+o:o<=999?1900+o:o}function ed(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function td(n,o,a){if(n){var l=as.indexOf(n),u=new Date(o[0],o[1],o[2]).getDay();if(l!==u)return v(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}
vendor: 4,288 bytes, line 4
4function nd(n,o,a){if(n)return Zu[n];if(o)return 0;var l=parseInt(a,10),u=l%100,p=(l-u)/100;return p*60+u}function fs(n){var o=Qu.exec(ed(n._i)),a;if(o){if(a=Xu(o[4],o[3],o[2],o[5],o[6],o[7]),!td(o[1],a,n))return;n._a=a,n._tzm=nd(o[8],o[9],o[10]),n._d=Mn.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),v(n).rfc2822=!0}else n._isValid=!1}function id(n){var o=Ku.exec(n._i);if(o!==null){n._d=new Date(+o[1]);return}if(hs(n),n._isValid===!1)delete n._isValid;else return;if(fs(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:t.createFromInputFallback(n)}t.createFromInputFallback=W("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(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});function tn(n,o,a){return n??o??a}function rd(n){var o=new Date(t.now());return n._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()]}function Ar(n){var o,a,l=[],u,p,_;if(!n._d){for(u=rd(n),n._w&&n._a[tt]==null&&n._a[pt]==null&&od(n),n._dayOfYear!=null&&(_=tn(n._a[ke],u[ke]),(n._dayOfYear>kn(_)||n._dayOfYear===0)&&(v(n)._overflowDayOfYear=!0),a=Mn(_,0,n._dayOfYear),n._a[pt]=a.getUTCMonth(),n._a[tt]=a.getUTCDate()),o=0;o<3&&n._a[o]==null;++o)n._a[o]=l[o]=u[o];for(;o<7;o++)n._a[o]=l[o]=n._a[o]==null?o===2?1:0:n._a[o];n._a[ye]===24&&n._a[qe]===0&&n._a[mt]===0&&n._a[Yt]===0&&(n._nextDay=!0,n._a[ye]=0),n._d=(n._useUTC?Mn:du).apply(null,l),p=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[ye]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==p&&(v(n).weekdayMismatch=!0)}}function od(n){var o,a,l,u,p,_,T,F,K;o=n._w,o.GG!=null||o.W!=null||o.E!=null?(p=1,_=4,a=tn(o.GG,n._a[ke],Tn(ce(),1,4).year),l=tn(o.W,1),u=tn(o.E,1),(u<1||u>7)&&(F=!0)):(p=n._locale._week.dow,_=n._locale._week.doy,K=Tn(ce(),p,_),a=tn(o.gg,n._a[ke],K.year),l=tn(o.w,K.week),o.d!=null?(u=o.d,(u<0||u>6)&&(F=!0)):o.e!=null?(u=o.e+p,(o.e<0||o.e>6)&&(F=!0)):u=p),l<1||l>gt(a,p,_)?v(n)._overflowWeeks=!0:F!=null?v(n)._overflowWeekday=!0:(T=ss(a,l,u,p,_),n._a[ke]=T.year,n._dayOfYear=T.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function Dr(n){if(n._f===t.ISO_8601){hs(n);return}if(n._f===t.RFC_2822){fs(n);return}n._a=[],v(n).empty=!0;var o=""+n._i,a,l,u,p,_,T=o.length,F=0,K,Me;for(u=me(n._f,n._locale).match(B)||[],Me=u.length,a=0;a<Me;a++)p=u[a],l=(o.match($c(p,n))||[])[0],l&&(_=o.substr(0,o.indexOf(l)),_.length>0&&v(n).unusedInput.push(_),o=o.slice(o.indexOf(l)+l.length),F+=l.length),fe[p]?(l?v(n).empty=!1:v(n).unusedTokens.push(p),Gc(p,l,n)):n._strict&&!l&&v(n).unusedTokens.push(p);v(n).charsLeftOver=T-F,o.length>0&&v(n).unusedInput.push(o),n._a[ye]<=12&&v(n).bigHour===!0&&n._a[ye]>0&&(v(n).bigHour=void 0),v(n).parsedDateParts=n._a.slice(0),v(n).meridiem=n._meridiem,n._a[ye]=sd(n._locale,n._a[ye],n._meridiem),K=v(n).era,K!==null&&(n._a[ke]=n._locale.erasConvertYear(K,n._a[ke])),Ar(n),Pr(n)}function sd(n,o,a){var l;return a==null?o:n.meridiemHour!=null?n.meridiemHour(o,a):(n.isPM!=null&&(l=n.isPM(a),l&&o<12&&(o+=12),!l&&o===12&&(o=0)),o)}function ad(n){var o,a,l,u,p,_,T=!1,F=n._f.length;if(F===0){v(n).invalidFormat=!0,n._d=new Date(NaN);return}for(u=0;u<F;u++)p=0,_=!1,o=U({},n),n._useUTC!=null&&(o._useUTC=n._useUTC),o._f=n._f[u],Dr(o),L(o)&&(_=!0),p+=v(o).charsLeftOver,p+=v(o).unusedTokens.length*10,v(o).score=p,T?p<l&&(l=p,a=o):(l==null||p<l||_)&&(l=p,a=o,_&&(T=!0));S(n,a||o)}function ld(n){if(!n._d){var o=br(n._i),a=o.day===void 0?o.date:o.day;n._a=C([o.year,o.month,a,o.hour,o.minute,o.second,o.millisecond],function(l){return l&&parseInt(l,10)}),Ar(n)}}function cd(n){var o=new ue(Pr(ps(n)));return o._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function ps(n){var o=n._i,a=n._f;return n._locale=n._locale||_t(n._l),o===null||a===void 0&&o===""?Z({nullInput:!0}):(typeof o=="string"&&(n._i=o=n._locale.preparse(o)),te(o)?new ue(Pr(o)):(m(o)?n._d=o:r(a)?ad(n):a?Dr(n):ud(n),L(n)||(n._d=null),n))}function ud(n){var o=n._i;h(o)?n._d=new Date(t.now()):m(o)?n._d=new Date(o.valueOf()):typeof o=="str
4ing"?id(n):r(o)?(n._a=C(o.slice(0),function(a){return parseInt(a,10)}),Ar(n)):s(o)?ld(n):f(o)?n._d=new Date(o):t.createFromInputFallback(n)}function ms(n,o,a,l,u){var p={};return(o===!0||o===!1)&&(l=o,o=void 0),(a===!0||a===!1)&&(l=a,a=void 0),(s(n)&&d(n)||r(n)&&n.length===0)&&(n=void 0),p._isAMomentObject=!0,p._useUTC=p._isUTC=u,p._l=a,p._i=n,p._f=o,p._strict=l,cd(p)}function ce(n,o,a,l){return ms(n,o,a,l,!1)}var dd=W("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=ce.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:Z()}),hd=W("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=ce.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:Z()});function gs(n,o){var a,l;if(o.length===1&&r(o[0])&&(o=o[0]),!o.length)return ce();for(a=o[0],l=1;l<o.length;++l)(!o[l].isValid()||o[l][n](a))&&(a=o[l]);return a}function fd(){var n=[].slice.call(arguments,0);return gs("isBefore",n)}function pd(){var n=[].slice.call(arguments,0);return gs("isAfter",n)}var md=function(){return Date.now?Date.now():+new Date},On=["year","quarter","month","week","day","hour","minute","second","millisecond"];function gd(n){var o,a=!1,l,u=On.length;for(o in n)if(c(n,o)&&!(ge.call(On,o)!==-1&&(n[o]==null||!isNaN(n[o]))))return!1;for(l=0;l<u;++l)if(n[On[l]]){if(a)return!1;parseFloat(n[On[l]])!==H(n[On[l]])&&(a=!0)}return!0}function _d(){return this._isValid}function yd(){return Ge(NaN)}function ci(n){var o=br(n),a=o.year||0,l=o.quarter||0,u=o.month||0,p=o.week||o.isoWeek||0,_=o.day||0,T=o.hour||0,F=o.minute||0,K=o.second||0,Me=o.millisecond||0;this._isValid=gd(o),this._milliseconds=+Me+K*1e3+F*6e4+T*1e3*60*60,this._days=+_+p*7,this._months=+u+l*3+a*12,this._data={},this._locale=_t(),this._bubble()}function ui(n){return n instanceof ci}function Nr(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function bd(n,o,a){var l=Math.min(n.length,o.length),u=Math.abs(n.length-o.length),p=0,_;for(_=0;_<l;_++)(a&&n[_]!==o[_]||!a&&H(n[_])!==H(o[_]))&&p++;return p+u}function _s(n,o){x(n,0,0,function(){var a=this.utcOffset(),l="+";return a<0&&(a=-a,l="-"),l+A(~~(a/60),2)+o+A(~~a%60,2)})}_s("Z",":"),_s("ZZ",""),E("Z",ii),E("ZZ",ii),oe(["Z","ZZ"],function(n,o,a){a._useUTC=!0,a._tzm=Rr(ii,n)});var vd=/([\+\-]|\d\d)/gi;function Rr(n,o){var a=(o||"").match(n),l,u,p;return a===null?null:(l=a[a.length-1]||[],u=(l+"").match(vd)||["-",0,0],p=+(u[1]*60)+H(u[2]),p===0?0:u[0]==="+"?p:-p)}function Ir(n,o){var a,l;return o._isUTC?(a=o.clone(),l=(te(n)||m(n)?n.valueOf():ce(n).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+l),t.updateOffset(a,!1),a):ce(n).local()}function Fr(n){return-Math.round(n._d.getTimezoneOffset())}t.updateOffset=function(){};function wd(n,o,a){var l=this._offset||0,u;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=Rr(ii,n),n===null)return this}else Math.abs(n)<16&&!a&&(n=n*60);return!this._isUTC&&o&&(u=Fr(this)),this._offset=n,this._isUTC=!0,u!=null&&this.add(u,"m"),l!==n&&(!o||this._changeInProgress?ws(this,Ge(n-l,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?l:Fr(this)}function Cd(n,o){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,o),this):-this.utcOffset()}function Sd(n){return this.utcOffset(0,n)}function kd(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(Fr(this),"m")),this}function xd(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=Rr(Hc,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function Md(n){return this.isValid()?(n=n?ce(n).utcOffset():0,(this.utcOffset()-n)%60===0):!1}function Td(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ed(){if(!h(this._isDSTShifted))return this._isDSTShifted;var n={},o;return U(n,this),n=ps(n),n._a?(o=n._isUTC?O(n._a):ce(n._a),this._isDSTShifted=this.isValid()&&bd(n._a,o.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Pd(){return this.isValid()?!this._isUTC:!1}function Od(){return this.isValid()?this._isUTC:!1}function ys(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ad=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dd=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ge(n,o){var a=n,l=null,u,p,_;return ui(n)?a={ms:n._milliseconds,d:n._days,M:n._months}:f(n)||!isNaN(+n)?(a={},o?a[o]=+n:a.milliseconds=+n):(l=Ad.exec(n))?(u=l[1]==="-"?-1:1,a={y:0,d:H(l[tt])*u,h:H(l[ye])*u,m:H(l[qe])*u,s:H(l[mt])*u,ms:H(Nr(l[Yt]*1e3))*u}):(l=Dd.exec(n))?(u=l[1]==="-"?-1:1,a={y:Bt(l[2],u),M:Bt(l[3],u),w:Bt(l[4],u),d:Bt(l[5],u),h:Bt(l[6],u),m:Bt(l[7],u),s:Bt(l[8],u)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(_=Nd(ce(a.from),ce(a.to)),a={},a.ms=_.milliseconds,a.M=_.months),p=new ci(a),ui(n)&&c(n,"_locale")&&(p._locale=n._locale),ui(n)&&c(n,"_isValid")&&(p._isValid=n._isValid),p}
vendor: 22,109 bytes, line 4
4Ge.fn=ci.prototype,Ge.invalid=yd;function Bt(n,o){var a=n&&parseFloat(n.replace(",","."));return(isNaN(a)?0:a)*o}function bs(n,o){var a={};return a.months=o.month()-n.month()+(o.year()-n.year())*12,n.clone().add(a.months,"M").isAfter(o)&&--a.months,a.milliseconds=+o-+n.clone().add(a.months,"M"),a}function Nd(n,o){var a;return n.isValid()&&o.isValid()?(o=Ir(o,n),n.isBefore(o)?a=bs(n,o):(a=bs(o,n),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function vs(n,o){return function(a,l){var u,p;return l!==null&&!isNaN(+l)&&(Ue(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),p=a,a=l,l=p),u=Ge(a,l),ws(this,u,n),this}}function ws(n,o,a,l){var u=o._milliseconds,p=Nr(o._days),_=Nr(o._months);n.isValid()&&(l=l??!0,_&&is(n,xn(n,"Month")+_*a),p&&es(n,"Date",xn(n,"Date")+p*a),u&&n._d.setTime(n._d.valueOf()+u*a),l&&t.updateOffset(n,p||_))}var Rd=vs(1,"add"),Id=vs(-1,"subtract");function Cs(n){return typeof n=="string"||n instanceof String}function Fd(n){return te(n)||m(n)||Cs(n)||f(n)||Ud(n)||Ld(n)||n===null||n===void 0}function Ld(n){var o=s(n)&&!d(n),a=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u,p,_=l.length;for(u=0;u<_;u+=1)p=l[u],a=a||c(n,p);return o&&a}function Ud(n){var o=r(n),a=!1;return o&&(a=n.filter(function(l){return!f(l)&&Cs(n)}).length===0),o&&a}function Yd(n){var o=s(n)&&!d(n),a=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],u,p;for(u=0;u<l.length;u+=1)p=l[u],a=a||c(n,p);return o&&a}function Bd(n,o){var a=n.diff(o,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function zd(n,o){arguments.length===1&&(arguments[0]?Fd(arguments[0])?(n=arguments[0],o=void 0):Yd(arguments[0])&&(o=arguments[0],n=void 0):(n=void 0,o=void 0));var a=n||ce(),l=Ir(a,this).startOf("day"),u=t.calendarFormat(this,l)||"sameElse",p=o&&(Ce(o[u])?o[u].call(this,a):o[u]);return this.format(p||this.localeData().calendar(u,this,ce(a)))}function Vd(){return new ue(this)}function Wd(n,o){var a=te(n)?n:ce(n);return this.isValid()&&a.isValid()?(o=Be(o)||"millisecond",o==="millisecond"?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(o).valueOf()):!1}function Hd(n,o){var a=te(n)?n:ce(n);return this.isValid()&&a.isValid()?(o=Be(o)||"millisecond",o==="millisecond"?this.valueOf()<a.valueOf():this.clone().endOf(o).valueOf()<a.valueOf()):!1}function jd(n,o,a,l){var u=te(n)?n:ce(n),p=te(o)?o:ce(o);return this.isValid()&&u.isValid()&&p.isValid()?(l=l||"()",(l[0]==="("?this.isAfter(u,a):!this.isBefore(u,a))&&(l[1]===")"?this.isBefore(p,a):!this.isAfter(p,a))):!1}function $d(n,o){var a=te(n)?n:ce(n),l;return this.isValid()&&a.isValid()?(o=Be(o)||"millisecond",o==="millisecond"?this.valueOf()===a.valueOf():(l=a.valueOf(),this.clone().startOf(o).valueOf()<=l&&l<=this.clone().endOf(o).valueOf())):!1}function qd(n,o){return this.isSame(n,o)||this.isAfter(n,o)}function Gd(n,o){return this.isSame(n,o)||this.isBefore(n,o)}function Kd(n,o,a){var l,u,p;if(!this.isValid())return NaN;if(l=Ir(n,this),!l.isValid())return NaN;switch(u=(l.utcOffset()-this.utcOffset())*6e4,o=Be(o),o){case"year":p=di(this,l)/12;break;case"month":p=di(this,l);break;case"quarter":p=di(this,l)/3;break;case"second":p=(this-l)/1e3;break;case"minute":p=(this-l)/6e4;break;case"hour":p=(this-l)/36e5;break;case"day":p=(this-l-u)/864e5;break;case"week":p=(this-l-u)/6048e5;break;default:p=this-l}return a?p:ze(p)}function di(n,o){if(n.date()<o.date())return-di(o,n);var a=(o.year()-n.year())*12+(o.month()-n.month()),l=n.clone().add(a,"months"),u,p;return o-l<0?(u=n.clone().add(a-1,"months"),p=(o-l)/(l-u)):(u=n.clone().add(a+1,"months"),p=(o-l)/(u-l)),-(a+p)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Qd(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Zd(n){if(!this.isValid())return null;var o=n!==!0,a=o?this.clone().utc():this;return a.year()<0||a.year()>9999?Re(a,o?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ce(Date.prototype.toISOString)?o?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Re(a,"Z")):Re(a,o?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Xd(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",o="",a,l,u,p;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",o="Z"),a="["+n+'("]',l=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u="-MM-DD[T]HH:mm:ss.SSS",p=o+'[")]',this.format(a+l+u+p)}function Jd(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var o=Re(this,n);return this.localeData().postformat(o)}function eh(n,o){return this.isValid()&&(te(n)&&n.isValid()||ce(n).isValid())?Ge({to:this,from:n}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function th(n){return this.from(ce(),n)}function nh(n,o){return this.isValid()&&(te(n)&&n.isValid()||ce(n).isValid())?Ge({from:this,to:n}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function ih(n){return this.to(ce(),n)}function Ss(n){var o;return n===void 0?this._locale._abbr:(o=_t(n),o!=null&&(this._locale=o),this)}var ks=W("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function xs(){return this._locale}var hi=1e3,nn=60*hi,fi=60*nn,Ms=(365*400+97)*24*fi;function rn(n,o){return(n%o+o)%o}function Ts(n,o,a){return n<100&&n>=0?new Date(n+400,o,a)-Ms:new Date(n,o,a).valueOf()}function Es(n,o,a){return n<100&&n>=0?Date.UTC(n+400,o,a)-Ms:Date.UTC(n,o,a)}function rh(n){var o,a;if(n=Be(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?Es:Ts,n){case"year":o=a(this.year(),0,1);break;case"quarter":o=a(this.year(),this.month()-this.month()%3,1);break;case"month":o=a(this.year(),this.month(),1);break;case"week":o=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=a(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=rn(o+(this._isUTC?0:this.utcOffset()*nn),fi);break;case"minute":o=this._d.valueOf(),o-=rn(o,nn);break;case"second":o=this._d.valueOf(),o-=rn(o,hi);break}return this._d.setTime(o),t.updateOffset(this,!0),this}function oh(n){var o,a;if(n=Be(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?Es:Ts,n){case"year":o=a(this.year()+1,0,1)-1;break;case"quarter":o=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=a(this.year(),this.month()+1,1)-1;break;case"week":o=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=fi-rn(o+(this._isUTC?0:this.utcOffset()*nn),fi)-1;break;case"minute":o=this._d.valueOf(),o+=nn-rn(o,nn)-1;break;case"second":o=this._d.valueOf(),o+=hi-rn(o,hi)-1;break}return this._d.setTime(o),t.updateOffset(this,!0),this}function sh(){return this._d.valueOf()-(this._offset||0)*6e4}function ah(){return Math.floor(this.valueOf()/1e3)}function lh(){return new Date(this.valueOf())}function ch(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function uh(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function dh(){return this.isValid()?this.toISOString():null}function hh(){return L(this)}function fh(){return S({},v(this))}function ph(){return v(this).overflow}function mh(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}x("N",0,0,"eraAbbr"),x("NN",0,0,"eraAbbr"),x("NNN",0,0,"eraAbbr"),x("NNNN",0,0,"eraName"),x("NNNNN",0,0,"eraNarrow"),x("y",["y",1],"yo","eraYear"),x("y",["yy",2],0,"eraYear"),x("y",["yyy",3],0,"eraYear"),x("y",["yyyy",4],0,"eraYear"),E("N",Lr),E("NN",Lr),E("NNN",Lr),E("NNNN",Mh),E("NNNNN",Th),oe(["N","NN","NNN","NNNN","NNNNN"],function(n,o,a,l){var u=a._locale.erasParse(n,l,a._strict);u?v(a).era=u:v(a).invalidEra=n}),E("y",Xt),E("yy",Xt),E("yyy",Xt),E("yyyy",Xt),E("yo",Eh),oe(["y","yy","yyy","yyyy"],ke),oe(["yo"],function(n,o,a,l){var u;a._locale._eraYearOrdinalRegex&&(u=n.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?o[ke]=a._locale.eraYearOrdinalParse(n,u):o[ke]=parseInt(n,10)});function gh(n,o){var a,l,u,p=this._eras||_t("en")._eras;for(a=0,l=p.length;a<l;++a){switch(typeof p[a].since){case"string":u=t(p[a].since).startOf("day"),p[a].since=u.valueOf();break}switch(typeof p[a].until){case"undefined":p[a].until=1/0;break;case"string":u=t(p[a].until).startOf("day").valueOf(),p[a].until=u.valueOf();break}}return p}function _h(n,o,a){var l,u,p=this.eras(),_,T,F;for(n=n.toUpperCase(),l=0,u=p.length;l<u;++l)if(_=p[l].name.toUpperCase(),T=p[l].abbr.toUpperCase(),F=p[l].narrow.toUpperCase(),a)switch(o){case"N":case"NN":case"NNN":if(T===n)return p[l];break;case"NNNN":if(_===n)return p[l];break;case"NNNNN":if(F===n)return p[l];break}else if([_,T,F].indexOf(n)>=0)return p[l]}function yh(n,o){var a=n.since<=n.until?1:-1;return o===void 0?t(n.since).year():t(n.since).year()+(o-n.offset)*a}function bh(){var n,o,a,l=this.localeData().eras();for(n=0,o=l.length;n<o;++n)if(a=this.clone().startOf("day").valueOf(),l[n].since<=a&&a<=l[n].until||l[n].until<=a&&a<=l[n].since)return l[n].name;return""}function vh(){var n,o,a,l=this.localeData().eras();for(n=0,o=l.length;n<o;++n)if(a=this.clone().startOf("day").valueOf(),l[n].since<=a&&a<=l[n].until||l[n].until<=a&&a<=l[n].since)return l[n].narrow;return""}function wh(){var n,o,a,l=this.localeData().eras();for(n=0,o=l.length;n<o;++n)if(a=this.clone().startOf("day").valueOf(),l[n].since<=a&&a<=l[n].until||l[n].until<=a&&a<=l[n].since)return l[n].abbr;return""}function Ch(){var n,o,a,l,u=this.localeData().eras();for(n=0,o=u.length;n<o;++n)if(a=u[n].since<=u[n].until?1:-1,l=this.clone().startOf("day").valueOf(),u[n].since<=l&&l<=u[n].until||u[n].until<=l&&l<=u[n].since)return(this.year()-t(u[n].since).year())*a+u[n].offset;return this.year()}function Sh(n){return c(this,"_erasNameRegex")||Ur.call(this),n?this._erasNameRegex:this._erasRegex}function kh(n){return c(this,"_erasAbbrRegex")||Ur.call(this),n?this._erasAbbrRegex:this._erasRegex}function xh(n){return c(this,"_erasNarrowRegex")||Ur.call(this),n?this._erasNarrowRegex:this._erasRegex}function Lr(n,o){return o.erasAbbrRegex(n)}function Mh(n,o){return o.erasNameRegex(n)}function Th(n,o){return o.erasNarrowRegex(n)}function Eh(n,o){return o._eraYearOrdinalRegex||Xt}function Ur(){var n=[],o=[],a=[],l=[],u,p,_,T,F,K=this.eras();for(u=0,p=K.length;u<p;++u)_=ft(K[u].name),T=ft(K[u].abbr),F=ft(K[u].narrow),o.push(_),n.push(T),a.push(F),l.push(_),l.push(T),l.push(F);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}x(0,["gg",2],0,function(){return this.weekYear()%100}),x(0,["GG",2],0,function(){return this.isoWeekYear()%100});function pi(n,o){x(0,[n,n.length],0,o)}pi("gggg","weekYear"),pi("ggggg","weekYear"),pi("GGGG","isoWeekYear"),pi("GGGGG","isoWeekYear"),E("G",ni),E("g",ni),E("GG",le,Ie),E("gg",le,Ie),E("GGGG",wr,vr),E("gggg",wr,vr),E("GGGGG",ti,Jn),E("ggggg",ti,Jn),Sn(["gggg","ggggg","GGGG","GGGGG"],function(n,o,a,l){o[l.substr(0,2)]=H(n)}),Sn(["gg","GG"],function(n,o,a,l){o[l]=t.parseTwoDigitYear(n)});function Ph(n){return Ps.call(this,n,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Oh(n){return Ps.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function Ah(){return gt(this.year(),1,4)}function Dh(){return gt(this.isoWeekYear(),1,4)}function Nh(){var n=this.localeData()._week;return gt(this.year(),n.dow,n.doy)}function Rh(){var n=this.localeData()._week;return gt(this.weekYear(),n.dow,n.doy)}function Ps(n,o,a,l,u){var p;return n==null?Tn(this,l,u).year:(p=gt(n,l,u),o>p&&(o=p),Ih.call(this,n,o,a,l,u))}function Ih(n,o,a,l,u){var p=ss(n,o,a,l,u),_=Mn(p.year,0,p.dayOfYear);return this.year(_.getUTCFullYear()),this.month(_.getUTCMonth()),this.date(_.getUTCDate()),this}x("Q",0,"Qo","quarter"),E("Q",Ko),oe("Q",function(n,o){o[pt]=(H(n)-1)*3});function Fh(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}x("D",["DD",2],"Do","date"),E("D",le,Jt),E("DD",le,Ie),E("Do",function(n,o){return n?o._dayOfMonthOrdinalParse||o._ordinalParse:o._dayOfMonthOrdinalParseLenient}),oe(["D","DD"],tt),oe("Do",function(n,o){o[tt]=H(n.match(le)[0])});var Os=en("Date",!0);x("DDD",["DDDD",3],"DDDo","dayOfYear"),E("DDD",ei),E("DDDD",Qo),oe(["DDD","DDDD"],function(n,o,a){a._dayOfYear=H(n)});function Lh(n){var o=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?o:this.add(n-o,"d")}x("m",["mm",2],0,"minute"),E("m",le,Cr),E("mm",le,Ie),oe(["m","mm"],qe);var Uh=en("Minutes",!1);x("s",["ss",2],0,"second"),E("s",le,Cr),E("ss",le,Ie),oe(["s","ss"],mt);var Yh=en("Seconds",!1);x("S",0,0,function(){return~~(this.millisecond()/100)}),x(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),x(0,["SSS",3],0,"millisecond"),x(0,["SSSS",4],0,function(){return this.millisecond()*10}),x(0,["SSSSS",5],0,function(){return this.millisecond()*100}),x(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),x(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),x(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),x(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),E("S",ei,Ko),E("SS",ei,Ie),E("SSS",ei,Qo);var Tt,As;for(Tt="SSSS";Tt.length<=9;Tt+="S")E(Tt,Xt);function Bh(n,o){o[Yt]=H(("0."+n)*1e3)}for(Tt="S";Tt.length<=9;Tt+="S")oe(Tt,Bh);As=en("Milliseconds",!1),x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");function zh(){return this._isUTC?"UTC":""}function Vh(){return this._isUTC?"Coordinated Universal Time":""}var k=ue.prototype;k.add=Rd,k.calendar=zd,k.clone=Vd,k.diff=Kd,k.endOf=oh,k.format=Jd,k.from=eh,k.fromNow=th,k.to=nh,k.toNow=ih,k.get=Xc,k.invalidAt=ph,k.isAfter=Wd,k.isBefore=Hd,k.isBetween=jd,k.isSame=$d,k.isSameOrAfter=qd,k.isSameOrBefore=Gd,k.isValid=hh,k.lang=ks,k.locale=Ss,k.localeData=xs,k.max=hd,k.min=dd,k.parsingFlags=fh,k.set=Jc,k.startOf=rh,k.subtract=Id,k.toArray=ch,k.toObject=uh,k.toDate=lh,k.toISOString=Zd,k.inspect=Xd,typeof Symbol<"u"&&Symbol.for!=null&&(k[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),k.toJSON=dh,k.toString=Qd,k.unix=ah,k.valueOf=sh,k.creationData=mh,k.eraName=bh,k.eraNarrow=vh,k.eraAbbr=wh,k.eraYear=Ch,k.year=Jo,k.isLeapYear=Zc,k.weekYear=Ph,k.isoWeekYear=Oh,k.quarter=k.quarters=Fh,k.month=rs,k.daysInMonth=lu,k.week=k.weeks=gu,k.isoWeek=k.isoWeeks=_u,k.weeksInYear=Nh,k.weeksInWeekYear=Rh,k.isoWeeksInYear=Ah,k.isoWeeksInISOWeekYear=Dh,k.date=Os,k.day=k.days=Ou,k.weekday=Au,k.isoWeekday=Du,k.dayOfYear=Lh,k.hour=k.hours=Yu,k.minute=k.minutes=Uh,k.second=k.seconds=Yh,k.millisecond=k.milliseconds=As,k.utcOffset=wd,k.utc=Sd,k.local=kd,k.parseZone=xd,k.hasAlignedHourOffset=Md,k.isDST=Td,k.isLocal=Pd,k.isUtcOffset=Od,k.isUtc=ys,k.isUTC=ys,k.zoneAbbr=zh,k.zoneName=Vh,k.dates=W("dates accessor is deprecated. Use date instead.",Os),k.months=W("months accessor is deprecated. Use month instead",rs),k.years=W("years accessor is deprecated. Use year instead",Jo),k.zone=W("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Cd),k.isDSTShifted=W("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ed);function Wh(n){return ce(n*1e3)}function Hh(){return ce.apply(null,arguments).parseZone()}function Ds(n){return n}var ee=kt.prototype;ee.calendar=R,ee.longDateFormat=Oe,ee.invalidDate=wn,ee.ordinal=Uc,ee.preparse=Ds,ee.postformat=Ds,ee.relativeTime=Bc,ee.pastFuture=zc,ee.set=Ye,ee.eras=gh,ee.erasParse=_h,ee.erasConvertYear=yh,ee.erasAbbrRegex=kh,ee.erasNameRegex=Sh,ee.erasNarrowRegex=xh,ee.months=ru,ee.monthsShort=ou,ee.monthsParse=au,ee.monthsRegex=uu,ee.monthsShortRegex=cu,ee.week=hu,ee.firstDayOfYear=mu,ee.firstDayOfWeek=pu,ee.weekdays=xu,ee.weekdaysMin=Tu,ee.weekdaysShort=Mu,ee.weekdaysParse=Pu,ee.weekdaysRegex=Nu,ee.weekdaysShortRegex=Ru,ee.weekdaysMinRegex=Iu,ee.isPM=Lu,ee.meridiem=Bu;function mi(n,o,a,l){var u=_t(),p=O().set(l,o);return u[a](p,n)}function Ns(n,o,a){if(f(n)&&(o=n,n=void 0),n=n||"",o!=null)return mi(n,o,a,"month");var l,u=[];for(l=0;l<12;l++)u[l]=mi(n,l,a,"month");return u}function Yr(n,o,a,l){typeof n=="boolean"?(f(o)&&(a=o,o=void 0),o=o||""):(o=n,a=o,n=!1,f(o)&&(a=o,o=void 0),o=o||"");var u=_t(),p=n?u._week.dow:0,_,T=[];if(a!=null)return mi(o,(a+p)%7,l,"day");for(_=0;_<7;_++)T[_]=mi(o,(_+p)%7,l,"day");return T}function jh(n,o){return Ns(n,o,"months")}function $h(n,o){return Ns(n,o,"monthsShort")}function qh(n,o,a){return Yr(n,o,a,"weekdays")}function Gh(n,o,a){return Yr(n,o,a,"weekdaysShort")}function Kh(n,o,a){return Yr(n,o,a,"weekdaysMin")}Mt("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(n){var o=n%10,a=H(n%100/10)===1?"th":o===1?"st":o===2?"nd":o===3?"rd":"th";return n+a}}),t.lang=W("moment.lang is deprecated. Use moment.locale instead.",Mt),t.langData=W("moment.langData is deprecated. Use moment.localeData instead.",_t);var yt=Math.abs;function Qh(){var n=this._data;return this._milliseconds=yt(this._milliseconds),this._days=yt(this._days),this._months=yt(this._months),n.milliseconds=yt(n.milliseconds),n.seconds=yt(n.seconds),n.minutes=yt(n.minutes),n.hours=yt(n.hours),n.months=yt(n.months),n.years=yt(n.years),this}function Rs(n,o,a,l){var u=Ge(o,a);return n._milliseconds+=l*u._milliseconds,n._days+=l*u._days,n._months+=l*u._months,n._bubble()}function Zh(n,o){return Rs(this,n,o,1)}function Xh(n,o){return Rs(this,n,o,-1)}function Is(n){return n<0?Math.floor(n):Math.ceil(n)}function Jh(){var n=this._milliseconds,o=this._days,a=this._months,l=this._data,u,p,_,T,F;return n>=0&&o>=0&&a>=0||n<=0&&o<=0&&a<=0||(n+=Is(Br(a)+o)*864e5,o=0,a=0),l.milliseconds=n%1e3,u=ze(n/1e3),l.seconds=u%60,p=ze(u/60),l.minutes=p%60,_=ze(p/60),l.hours=_%24,o+=ze(_/24),F=ze(Fs(o)),a+=F,o-=Is(Br(F)),T=ze(a/12),a%=12,l.days=o,l.months=a,l.years=T,this}function Fs(n){return n*4800/146097}function Br(n){return n*146097/4800}function ef(n){if(!this.isValid())return NaN;var o,a,l=this._milliseconds;if(n=Be(n),n==="month"||n==="quarter"||n==="year")switch(o=this._days+l/864e5,a=this._months+Fs(o),n){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(o=this._days+Math.round(Br(this._months)),n){case"week":return o/7+l/6048e5;case"day":return o+l/864e5;case"hour":return o*24+l/36e5;case"minute":return o*1440+l/6e4;case"second":return o*86400+l/1e3;case"millisecond":return Math.floor(o*864e5)+l;default:throw new Error("Unknown unit "+n)}}function bt(n){return function(){return this.as(n)}}var Ls=bt("ms"),tf=bt("s"),nf=bt("m"),rf=bt("h"),of=bt("d"),sf=bt("w"),af=bt("M"),lf=bt("Q"),cf=bt("y"),uf=Ls;function df(){return Ge(this)}function hf(n){return n=Be(n),this.isValid()?this[n+"s"]():NaN}function zt(n){return function(){return this.isValid()?this._data[n]:NaN}}var ff=zt("milliseconds"),pf=zt("seconds"),mf=zt("minutes"),gf=zt("hours"),_f=zt("days"),yf=zt("months"),bf=zt("years");function vf(){return ze(this.days()/7)}var vt=Math.round,on={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function wf(n,o,a,l,u){return u.relativeTime(o||1,!!a,n,l)}function Cf(n,o,a,l){var u=Ge(n).abs(),p=vt(u.as("s")),_=vt(u.as("m")),T=vt(u.as("h")),F=vt(u.as("d")),K=vt(u.as("M")),Me=vt(u.as("w")),wt=vt(u.as("y")),Et=p<=a.ss&&["s",p]||p<a.s&&["ss",p]||_<=1&&["m"]||_<a.m&&["mm",_]||T<=1&&["h"]||T<a.h&&["hh",T]||F<=1&&["d"]||F<a.d&&["dd",F];return a.w!=null&&(Et=Et||Me<=1&&["w"]||Me<a.w&&["ww",Me]),Et=Et||K<=1&&["M"]||K<a.M&&["MM",K]||wt<=1&&["y"]||["yy",wt],Et[2]=o,Et[3]=+n>0,Et[4]=l,wf.apply(null,Et)}function Sf(n){return n===void 0?vt:typeof n=="function"?(vt=n,!0):!1}function kf(n,o){return on[n]===void 0?!1:o===void 0?on[n]:(on[n]=o,n==="s"&&(on.ss=o-1),!0)}function xf(n,o){if(!this.isValid())return this.localeData().invalidDate();var a=!1,l=on,u,p;return typeof n=="object"&&(o=n,n=!1),typeof n=="boolean"&&(a=n),typeof o=="object"&&(l=Object.assign({},on,o),o.s!=null&&o.ss==null&&(l.ss=o.s-1)),u=this.localeData(),p=Cf(this,!a,l,u),a&&(p=u.pastFuture(+this,p)),u.postformat(p)}var zr=Math.abs;function sn(n){return(n>0)-(n<0)||+n}function gi(){if(!this.isValid())return this.localeData().invalidDate();var n=zr(this._milliseconds)/1e3,o=zr(this._days),a=zr(this._months),l,u,p,_,T=this.asSeconds(),F,K,Me,wt;return T?(l=ze(n/60),u=ze(l/60),n%=60,l%=60,p=ze(a/12),a%=12,_=n?n.toFixed(3).replace(/\.?0+$/,""):"",F=T<0?"-":"",K=sn(this._months)!==sn(T)?"-":"",Me=sn(this._days)!==sn(T)?"-":"",wt=sn(this._milliseconds)!==sn(T)?"-":"",F+"P"+(p?K+p+"Y":"")+(a?K+a+"M":"")+(o?Me+o+"D":"")+(u||l||n?"T":"")+(u?wt+u+"H":"")+(l?wt+l+"M":"")+(n?wt+_+"S":"")):"P0D"}var X=ci.prototype;X.isValid=_d,X.abs=Qh,X.add=Zh,X.subtract=Xh,X.as=ef,X.asMilliseconds=Ls,X.asSeconds=tf,X.asMinutes=nf,X.asHours=rf,X.asDays=of,X.asWeeks=sf,X.asMonths=af,X.asQuarters=lf,X.asYears=cf,X.valueOf=uf,X._bubble=Jh,X.clone=df,X.get=hf,X.milliseconds=ff,X.seconds=pf,X.minutes=mf,X.hours=gf,X.days=_f,X.weeks=vf,X.months=yf,X.years=bf,X.humanize=
4xf,X.toISOString=gi,X.toString=gi,X.toJSON=gi,X.locale=Ss,X.localeData=xs,X.toIsoString=W("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gi),X.lang=ks,x("X",0,0,"unix"),x("x",0,0,"valueOf"),E("x",ni),E("X",jc),oe("X",function(n,o,a){a._d=new Date(parseFloat(n)*1e3)}),oe("x",function(n,o,a){a._d=new Date(H(n))});return t.version="2.30.1",e(ce),t.fn=k,t.min=fd,t.max=pd,t.now=md,t.utc=O,t.unix=Wh,t.months=jh,t.isDate=m,t.locale=Mt,t.invalid=Z,t.duration=Ge,t.isMoment=te,t.weekdays=qh,t.parseZone=Hh,t.localeData=_t,t.isDuration=ui,t.monthsShort=$h,t.weekdaysMin=Kh,t.defineLocale=Er,t.updateLocale=Hu,t.locales=ju,t.weekdaysShort=Gh,t.normalizeUnits=Be,t.relativeTimeRounding=Sf,t.relativeTimeThreshold=kf,t.calendarFormat=Bd,t.prototype=k,t.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"},t})});var Pf=(i,t)=>t.slug,Of=(i,t)=>t.route;function Af(i,t){if(i&1){let e=be();g(0,"button",9),z("click",function(){j(e);let s=M();return $(s.close("account"))}),g(1,"mat-icon",10),b(2,"account_circle"),y(),g(3,"span"),b(4),y()()}if(i&2){let e=M();w(4),he("Welcome ",e.UserName,"!")}}function Df(i,t){if(i&1){let e=be();g(0,"button",11),z("click",function(){j(e);let s=M();return $(s.close("login"))}),g(1,"mat-icon",10),b(2,"account_circle"),y(),g(3,"span"),b(4,"Login / Sign Up"),y()()}}function Nf(i,t){if(i&1){let e=be();g(0,"mat-list-item")(1,"a",12),z("click",function(){j(e);let s=M();return $(s.close("textbooks"))})("keyup.enter",function(){j(e);let s=M();return $(s.close("textbooks"))}),b(2," Textbooks "),g(3,"mat-icon",13),b(4,"chevron_right"),y()()()}}function Rf(i,t){if(i&1){let e=be();g(0,"mat-list-item")(1,"a",14),z("click",function(){let s=j(e).$implicit,c=M();return $(c.close("routeCategory",s))})("keyup.enter",function(){let s=j(e).$implicit,c=M();return $(c.close("routeCategory",s))}),b(2),g(3,"mat-icon",15),b(4,"chevron_right"),y()()()}if(i&2){let e=t.$implicit;w(),xe("aria-label","go to category "+(e==null?null:e.name)),w(),he(" ",e==null?null:e.name," ")}}function If(i,t){if(i&1){let e=be();g(0,"mat-list-item")(1,"a",14),z("click",function(){let s=j(e).$implicit,c=M();return $(c.close("route",s.route))})("keyup.enter",function(){let s=j(e).$implicit,c=M();return $(c.close("route",s))}),b(2),g(3,"mat-icon",15),b(4,"chevron_right"),y()()()}if(i&2){let e=t.$implicit;w(),xe("aria-label","go to page "+(e==null?null:e.title)),w(),he(" ",e.title||e.route," ")}}var tl=(()=>{class i{constructor(e,r){this.bottomSheet=e,this.data=r}get UserName(){return this.data.UserName}get Categories(){return this.data.Categories}get CustomPages(){return this.data.CustomPages}get ShowTextbookTab(){return this.data.ShowTextbookTab}close(e,r=null){this.bottomSheet.dismiss({name:e,value:r})}static{this.\u0275fac=function(r){return new(r||i)(se(Ra),se(Na))}}static{this.\u0275cmp=Ve({type:i,selectors:[["app-menu"]],decls:15,vars:2,consts:[["searchTerm",""],["mat-button","","id","toolbar-account"],["mat-button","","id","toolbar-login"],["id","search-box",2,"background","white","max-width","none"],["type","button","matTooltip","Search","matTooltipShowDelay","800","aria-label","search",2,"background","none","border","none","padding","4px","cursor","pointer","display","flex","align-items","center",3,"click"],[1,"search-icon"],["placeholder","Search books & merchandise","aria-label","Search books and merchandise",3,"keydown.enter"],[1,"cats"],["dense",""],["mat-button","","id","toolbar-account",3,"click"],["aria-hidden","true"],["mat-button","","id","toolbar-login",3,"click"],["mat-line","","aria-label","go to textbooks",3,"click","keyup.enter"],["mat-list-icon",""],["mat-line","",3,"click","keyup.enter"],["matSuffix","","mat-list-icon",""]],template:function(r,s){if(r&1){let c=be();Y(0,Af,5,1,"button",1)(1,Df,5,0,"button",2),g(2,"div",3)(3,"button",4),z("click",function(){j(c);let h=Dn(7);return $(s.close("search",h.value))}),g(4,"mat-icon",5),b(5,"search"),y()(),g(6,"input",6,0),z("keydown.enter",function(){j(c);let h=Dn(7);return $(s.close("search",h.value))}),y()(),g(8,"div",7)(9,"mat-nav-list",8),Y(10,Nf,5,0,"mat-list-item"),Ke(11,Rf,5,2,"mat-list-item",null,Pf),Ke(13,If,5,2,"mat-list-item",null,Of),y()()}r&2&&(I(s.UserName?0:1),w(10),I(s.ShowTextbookTab?10:-1),w(),Qe(s.Categories),w(2),Qe(s.CustomPages))},dependencies:[Qa,We,lt,Ja,Xa,Za,Ci,Rt,Oa],styles:["*[_ngcontent-%COMP%]{color:#212121}.skip-link[_ngcontent-%COMP%]{position:absolute;
4left:-9999px;top:0;z-index:100;padding:8px 16px;background:#212121;color:#fff;font-size:1rem;text-decoration:none}.skip-link[_ngcontent-%COMP%]:focus-visible{left:0}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#site-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100vw;height:calc(100vh - 64px);overflow:auto;overflow-x:hidden;margin-top:64px}#site-container.checkout-active[_ngcontent-%COMP%]{height:auto;min-height:calc(100vh - 64px);overflow:visible}.is-banner[_ngcontent-%COMP%]{height:calc(100vh - 94px)!important;min-height:0;margin-top:94px!important}.is-banner.checkout-active[_ngcontent-%COMP%]{height:auto!important;min-height:calc(100vh - 94px)}#banner[_ngcontent-%COMP%]{width:100%;min-height:30px;text-align:center;display:flex;align-items:center;justify-content:center;font-size:.875rem}#banner[_ngcontent-%COMP%] span[_ngcontent-%COMP%], #banner[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;padding:4px}#banner[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}#banner[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}#lower-toolbar[_ngcontent-%COMP%]{margin:0;padding:0 12px;width:100%;max-width:1400px;box-sizing:border-box;min-height:75px;display:flex;justify-content:flex-start;overflow-x:auto}#lower-toolbar[_ngcontent-%COMP%] a.link-button[_ngcontent-%COMP%]{height:100%;font-size:1rem;font-weight:700;color:inherit;margin:0 8px;box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;min-width:120px;line-height:75px;padding:0 16px;border-radius:4px;overflow:visible;flex-shrink:0}#lower-toolbar[_ngcontent-%COMP%] a.link-button[_ngcontent-%COMP%]:hover{background-color:color-mix(in srgb,currentColor 10%,transparent)}.transparent[_ngcontent-%COMP%]{margin:0!important;background:#fff!important}#main-content[_ngcontent-%COMP%]{flex-grow:1;width:100%;max-width:1400px;background:#fff;position:relative}#page-content[_ngcontent-%COMP%]:focus{outline:none}#toolbar-area[_ngcontent-%COMP%]{position:fixed;width:100%;top:0;z-index:5;background-color:#fff}.shadow[_ngcontent-%COMP%]{box-shadow:0 2px 4px #9e9e9e}#toolbar[_ngcontent-%COMP%]{background:#fff;padding:12px;display:flex;align-items:center}#toolbar[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{opacity:.54;margin-right:12px}#toolbar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:.8125rem}#search-box[_ngcontent-%COMP%]{height:42px;display:flex;align-items:center;position:relative;overflow:hidden;flex:1;width:calc(100% - 24px);border-radius:21px;background:#f5f5f5;margin:12px;max-width:75vw;min-width:250px}#search-box[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{padding:4px;color:inherit;opacity:.54;margin-right:8px;margin-left:8px}#search-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:none;border:none;font-size:.875rem;color:inherit;flex-grow:1;height:36px;padding-right:16px;width:100%;margin-bottom:2px}#search-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:inherit;opacity:.75}.cats[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(80vh - 145px);overflow:scroll}.cats[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.cats[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:24px}.cats[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] .mat-list-text[_ngcontent-%COMP%]{padding:0!important}.mobile[_ngcontent-%COMP%]{display:none}"]})}}return i})();function Uf(i,t){if(i&1){let e=be();g(0,"a",18),z("click",function(){j(e);let s=M();return $(s.account())})("keyup.enter",function(){j(e);let s=M();return $(s.account())}),b(1),y()}if(i&2){let e=M();w(),he("Welcome ",e.UserName,"!")}}function Yf(i,t){if(i&1){let e=be();g(0,"button",19),z("click",function(){j(e);let s=M();return $(s.account())}),g(1,"mat-icon",16),b(2,"account_circle"),y()()}}function Bf(i,t){i&1&&q(0,"div",17)}var il=(()=>{class i{constructor(e,r,s,c,d,h){this._appService=e,this._router=r,this._dialog=s,this._cartService=c,this._loginService=d,this.formBuilder=h,this.openCart=new An,this.openMenu=new An,this.searchForm=this.formBuilder.group({search:""}),this.searchPlaceholder="Search books & merchandise",this._appService.SchoolCode=="lonestar"&&(this.searchPlaceholder="Search for Merch")}account(){this.UserName?this._router.navigate(["/account/orders"]):this._dialog.open(Fa,{width:"350px"}).afterClosed().subscribe(e=>{e&&this._router.navigate(["/account/orders"])})}get StoreLogo(){return this._appService.ToolbarLogoUrl}get CartCount(){return this._cartService.ItemCount}get StoreName(){return this._appService.siteResources?this._appService.siteResources.locationName:"Store"}onSubmit(){this.search(this.searchForm.value.search)}search(e){e&&this._router.navigate(["search"],{queryParams:{q:e}})}cart(){this._router.url=="/checkout"&&this._router.navigate(["/"]),this.openCart.emit(!0)}menu(){this.openMenu.emit(!0)}get UserName(){return this._loginService.Customer?this._loginService.Customer.firstName:null}onLogoError(e){let r=e.target;r.src="https://firebasestorage.googleapis.com/v0/b/pro-ecommerce.appspot.com/o/public%2Fdefault_logo.png?alt=media&token=b67f0c5d-0511-4421-8e5f-5110a574ac9e"}
4static{this.\u0275fac=function(r){return new(r||i)(se(ve),se(un),se(ma),se(Gi),se(It),se(wa))}}static{this.\u0275cmp=Ve({type:i,selectors:[["app-toolbar"]],outputs:{openCart:"openCart",openMenu:"openMenu"},decls:22,vars:9,consts:[["searchTerm",""],["id","container"],[1,"mobile"],["mat-icon-button","","aria-label","Overflow menu",3,"click"],["aria-hidden","true",2,"color","#595959","margin-top","-3px"],["routerLink","/home","id","logo"],[3,"error","src","alt"],["id","toolbar-search-box","role","search",1,"desktop"],["for","search"],[2,"width","100%",3,"ngSubmit","formGroup"],["id","search","formControlName","search","type","text",3,"placeholder"],["matTooltip","Search","matTooltipShowDelay","800","aria-label","search button",1,"search-btn",3,"click"],["aria-hidden","true",1,"search-icon"],["id","user","aria-label","navigate to your account","tabindex","0",1,"desktop"],["mat-icon-button","","tabindex","0","aria-label","sign in to your account",1,"desktop"],["mat-icon-button","",1,"cart",3,"click"],["aria-hidden","true"],["id","count"],["id","user","aria-label","navigate to your account","tabindex","0",1,"desktop",3,"click","keyup.enter"],["mat-icon-button","","tabindex","0","aria-label","sign in to your account",1,"desktop",3,"click"]],template:function(r,s){if(r&1){let c=be();g(0,"header",1)(1,"div",2)(2,"button",3),z("click",function(){return j(c),$(s.menu())}),g(3,"mat-icon",4),b(4,"menu"),y()()(),g(5,"a",5)(6,"img",6),z("error",function(h){return j(c),$(s.onLogoError(h))}),y()(),g(7,"div",7)(8,"label",8),b(9),y(),g(10,"form",9),z("ngSubmit",function(){return j(c),$(s.onSubmit())}),q(11,"input",10,0),y(),g(13,"button",11),z("click",function(){j(c);let h=Dn(12);return $(s.search(h.value))}),g(14,"mat-icon",12),b(15,"search"),y()()(),Y(16,Uf,2,1,"a",13)(17,Yf,3,0,"button",14),g(18,"button",15),z("click",function(){return j(c),$(s.cart())}),g(19,"mat-icon",16),b(20,"shopping_cart"),y(),Y(21,Bf,1,0,"div",17),y()()}r&2&&(w(5),xe("aria-label",s.StoreName+" home"),w(),ie("src",s.StoreLogo,De)("alt",s.StoreName+" logo"),w(3),Pe(s.searchPlaceholder),w(),ie("formGroup",s.searchForm),w(),ie("placeholder",s.searchPlaceholder),w(5),I(s.UserName?16:17),w(2),xe("aria-label","open your shopping cart. cart has "+s.CartCount+" items"),w(3),I(s.CartCount>0?21:-1))},dependencies:[We,lt,Pi,ya,Ti,Ei,ga,ba,va,Rt,Oi,hn,dn],styles:["#container[_ngcontent-%COMP%]{display:flex;flex:1;height:64px;align-items:center;box-sizing:border-box;padding:0 24px}#logo[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;text-decoration:none}#logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:48px}button[_ngcontent-%COMP%]{color:#595959}#toolbar-search-box[_ngcontent-%COMP%]{min-height:42px;display:flex;align-items:center;position:relative;margin:0 36px 0 auto;
4min-width:200px;max-width:440px;flex:1;border-radius:21px;background:#f5f5f5}#toolbar-search-box[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #212121}#toolbar-search-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none!important}#toolbar-search-box[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{color:#fff;line-height:27px}#toolbar-search-box[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]:hover{opacity:.87}#toolbar-search-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:none;border:none;font-size:1rem;color:inherit;flex-grow:1;height:36px;padding-right:16px;width:100%;margin-bottom:2px}#toolbar-search-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:inherit;opacity:.75}.search-btn[_ngcontent-%COMP%]{cursor:pointer;width:64px;background:#212121;height:100%;border:none}.search-btn[_ngcontent-%COMP%]:focus-visible{outline:2px solid #ffffff!important;outline-offset:0;box-shadow:0 0 0 4px #212121}#user[_ngcontent-%COMP%]{font-size:.875rem;cursor:pointer;margin:12px}#user[_ngcontent-%COMP%]:hover{text-decoration:underline}.cart[_ngcontent-%COMP%]{margin-right:8px}#count[_ngcontent-%COMP%]{position:absolute;top:4px;right:4px;-webkit-animation:_ngcontent-%COMP%_pulse 3s infinite;-moz-animation:pulse 3s infinite;animation:_ngcontent-%COMP%_pulse 3s infinite;background-color:#e91e63;border-radius:10px;display:inline-block;height:8px;width:8px}label[_ngcontent-%COMP%]{font-size:0;padding-left:12px}@-webkit-keyframes _ngcontent-%COMP%_pulse{0%{box-shadow:0 0 #e91e63}20%{box-shadow:0 0 0 10px #0000}to{box-shadow:0 0 0 0 transparent}}@keyframes _ngcontent-%COMP%_pulse{0%{box-shadow:0 0 #e91e63}20%{box-shadow:0 0 0 10px #0000}to{box-shadow:0 0 0 0 transparent}}@media screen and (max-width: 960px){.desktop[_ngcontent-%COMP%]{display:none!important}.mobile[_ngcontent-%COMP%]{display:inline}.mobile[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px}#container[_ngcontent-%COMP%]{padding:0}#logo[_ngcontent-%COMP%]{margin-right:auto}#logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:40px}.cart[_ngcontent-%COMP%]{margin-right:8px}.cart[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.25rem}}"]})}}return i})();var rl=(i,t)=>t.route;function zf(i,t){if(i&1&&q(0,"p",24),i&2){let e=M(2);ie("innerHtml",e.LocationText,At)}}function Vf(i,t){if(i&1&&(q(0,"br"),b(1)),i&2){let e=M(3);w(),he(" ",e.ContactInfo.street2," ")}}function Wf(i,t){if(i&1&&(q(0,"br"),b(1)),i&2){let e=M(3);w(),he(" ",e.ContactInfo.phone," ")}}function Hf(i,t){if(i&1&&(g(0,"p"),b(1),q(2,"br"),b(3),Y(4,Vf,2,1),q(5,"br"),b(6),Y(7,Wf,2,1),q(8,"br"),b(9),y()),i&2){let e=M(2);w(),he(" ",e.ContactInfo.name," "),w(2),he(" ",e.ContactInfo.street1," "),w(),I(e.ContactInfo.street2?4:-1),w(2),$r(" ",e.ContactInfo.city,", ",e.ContactInfo.state," ",e.ContactInfo.postalCode," "),w(),I(e.ContactInfo.phone?7:-1),w(2),he(" ",e.ContactInfo.email," ")}}function jf(i,t){if(i&1&&(g(0,"div",2)(1,"h2"),b(2,"CONTACT"),y(),Y(3,zf,1,1,"p",24)(4,Hf,10,8,"p"),y()),i&2){let e=M();w(3),I(e.LocationText?3:4)}}function $f(i,t){if(i&1&&(g(0,"div",3)(1,"h2"),b(2,"HOURS"),y(),q(3,"p",24),y()),i&2){let e=M();w(3),ie("innerHtml",e.Hours,At)}}function qf(i,t){if(i&1&&(g(0,"a",35),q(1,"img",38),y()),i&2){let e=M(3);ie("href",e.IGLink,De)}}function Gf(i,t){if(i&1&&(g(0,"a",36),q(1,"img",39),y()),i&2){let e=M(3);ie("href",e.FBLink,De)}}function Kf(i,t){if(i&1&&(g(0,"a",37),q(1,"img",40),y()),i&2){let e=M(3);ie("href",e.TwitterLink,De)}}function Qf(i,t){if(i&1&&(g(0,"h2"),b(1,"CONNECT WITH US ONLINE"),y(),g(2,"div",34),Y(3,qf,2,1,"a",35)(4,Gf,2,1,"a",36)(5,Kf,2,1,"a",37),y()),i&2){let e=M(2);w(3),I(e.IGLink?3:-1),w(),I(e.FBLink?4:-1),w(),I(e.TwitterLink?5:-1)}}function Zf(i,t){if(i&1&&(g(0,"h2"),b(1,"Quick Links"),y()),i&2){let e=M(2);Nt("ft",e.IGLink||e.FBLink||e.TwitterLink)}}function Xf(i,t){if(i&1&&(g(0,"a",33),b(1),y()),i&2){let e=t.$implicit;ie("routerLink","/"+e.route),xe("aria-label",e.title||e.route),w(),Pe(e.title||e.route)}}function Jf(i,t){if(i&1&&(g(0,"div",9),Y(1,Qf,6,3)(2,Zf,2,2,"h2",32),Ke(3,Xf,2,3,"a",33,rl),y()),i&2){let e=M();w(),I(e.IGLink||e.FBLink||e.TwitterLink?1:-1),w(),I(e.CustomPages&&e.CustomPages.length?2:-1),w(),Qe(e.CustomPages)}}function ep(i,t){if(i&1&&q(0,"p",24),i&2){let e=M(2);ie("innerHtml",e.LocationText,At)}}function tp(i,t){if(i&1&&(q(0,"br"),b(1)),i&2){let e=M(3);w(),he(" ",e.ContactInfo==null?null:e.ContactInfo.street2," ")}}function np(i,t){if(i&1&&(q(0,"br"),b(1)),i&2){let e=M(3);w(),he(" ",e.ContactInfo.phone," ")}}function ip(i,t){if(i&1&&(g(0,"p"),b(1),q(2,"br"),b(3),Y(4,tp,2,1),q(5,"br"),b(6),q(7,"br"),Y(8,np,2,1),q(9,"br"),b(10),y()),i&2){let e=M(2);w(),he(" ",e.ContactInfo.name," "),w(2),he(" ",e.ContactInfo==null?null:e.ContactInfo.street1," "),w(),I(e.ContactInfo!=null&&e.ContactInfo.street2?4:-1),w(2),$r(" ",e.ContactInfo==null?null:e.ContactInfo.city,", ",e.ContactInfo==null?null:e.ContactInfo.state," ",e.ContactInfo==null?null:e.ContactInfo.postalCode," "),w(2),I(e.ContactInfo.phone?8:-1),w(2),he(" ",e.ContactInfo.email," ")}}function rp(i,t){if(i&1&&Y(0,ep,1,1,"p",24)(1,ip,11,8,"p"),i&2){let e=M();I(e.LocationText?0:1)}}function op(i,t){if(i&1&&q(0,"p",24),i&2){let e=M();ie("innerHtml",e.Hours,At)}}function sp(i,t){i&1&&(g(0,"div",26)(1,"a",41),b(2,"About Us"),y(),g(3,"a",42),b(4,"Contact Us"),y(),g(5,"a",43),b(6,"Return Policy"),y(),g(7,"a",44),b(8,"Shipping Policy"),y()())}function ap(i,t){if(i&1&&(g(0,"a",46),b(1),y()),i&2){let e=t.$implicit;ie("routerLink","/"+e.route),xe("aria-label",e.title||e.route),w(),Pe(e.title||e.route)}}function lp(i,t){if(i&1&&(g(0,"div",26),Ke(1,ap,2,3,"a",46,rl),y()),i&2){let e=M(2);w(),Qe(e.CustomPages)}}function cp(i,t){if(i&1){let e=be();
4g(0,"li",20),z("click",function(){j(e);let s=M();return $(s.expand("quick-links"))}),g(1,"button",45),b(2," Quick Links "),g(3,"mat-icon",22),b(4),y()(),Y(5,lp,3,0,"div",26),y()}if(i&2){let e=M();w(4),Pe(e.expanded=="quick-links"?"keyboard_arrow_up":"keyboard_arrow_down"),w(),I(e.expanded=="quick-links"?5:-1)}}function up(i,t){if(i&1&&(g(0,"a",28),q(1,"img",38),y()),i&2){let e=M();ie("href",e.IGLink,De)}}function dp(i,t){if(i&1&&(g(0,"a",29),q(1,"img",47),y()),i&2){let e=M();ie("href",e.FBLink,De)}}function hp(i,t){if(i&1&&(g(0,"a",30),q(1,"img",48),y()),i&2){let e=M();ie("href",e.TwitterLink,De)}}var ol=(()=>{class i{constructor(e){this._appService=e,this.currentYear=new Date().getFullYear(),this.openMenu=new An}get ContactInfo(){return this._appService.contactInfo}get StoreName(){return this._appService.siteResources?.locationName||this._appService.contactInfo?.name||""}get LocationText(){return this._appService.locationText?this._appService.locationText.replace(/(?:\r\n|\r|\n)/g,"<br>"):""}get Hours(){return this._appService.storeHours?this._appService.storeHours.replace(/(?:\r\n|\r|\n)/g,"<br>"):""}get FBLink(){return this._appService.fbLink}get IGLink(){return this._appService.igLink}get TwitterLink(){return this._appService.twitterLink}get CustomPages(){return this._appService.customPages}get SiteTheme(){return Mi(this._appService.siteResources?.siteTheme)}expand(e){this.expanded=this.expanded===e?"":e}openOverflowMenu(){this.openMenu.emit(!0)}static{this.\u0275fac=function(r){return new(r||i)(se(ve))}}static{this.\u0275cmp=Ve({type:i,selectors:[["app-footer"]],outputs:{openMenu:"openMenu"},decls:90,vars:25,consts:[[1,"desktop"],["id","sub-container"],["id","locations",1,"column"],["id","hours",1,"column"],["id","information",1,"column"],["routerLink","/about","tabindex","0","aria-label","About Us"],["routerLink","/contact","tabindex","0","aria-label","Contact Us"],["routerLink","/return-policy","tabindex","0","aria-label","Return Policy"],["routerLink","/shipping-policy","tabindex","0","aria-label","Shipping Policy"],["id","connect",1,"column"],["id","site-info","aria-label","Copyright and legal",1,"copyright-legal-row"],[1,"copyright-text"],["aria-hidden","true",1,"legal-sep"],["routerLink","/privacy-policy","tabindex","0","aria-label","Privacy Policy"],["routerLink","/terms-of-use","tabindex","0","aria-label","Terms of Use"],["routerLink","/end-user-agreement","tabindex","0","aria-label","End User Agreement"],["href","https://www.iubenda.com/privacy-policy/72869576/cookie-policy?an=no&s_ck=false&newmarkup=yes","target","_blank","rel","noopener","tabindex","0","aria-label","Notice at Collection",1,"iubenda-cs-uspr-link"],["type","button","tabindex","0","aria-label","Your Privacy Choices",1,"iubenda-cs-preferences-link","privacy-choices-btn","privacy-choices-btn--legal-row"],[1,"mobile"],["type","button","tabindex","0","aria-label","shop by category",3,"click","keyup.enter"],[3,"click"],["type","button","aria-label","contact info"],["aria-hidden","true"],["type","button","aria-label","school hours"],[3,"innerHtml"],["type","button","aria-label","expand resources menu"],[1,"resources"],[1,"flexrow","sm-links"],["rel","noreferrer","target","_blank","aria-label","Navigate to the store's Instagram page.","tabindex","0",3,"href"],["rel","noreferrer","target","_blank","aria-label","Navigate to the store's Facebook page.","tabindex","0",3,"href"],["rel","noreferrer","target","_blank","aria-label","Navigate to the store's Twitter page.","tabindex","0",3,"href"],["id","site-info-mobile","aria-label","Copyright and legal",1,"copyright-legal-row"],[3,"ft"],["tabindex","0",3,"routerLink"],[1,"flexrow"],["rel","noreferrer","target","_blank","aria-label","Navigate to the store's Instagram page.",3,"href"],["rel","noreferrer","target","_blank","aria-label","Navigate to the store's Facebook page.",3,"href"],["rel","noreferrer","target","_blank","aria-label","Navigate to the store's Twitter page.",3,"href"],["src","/assets/ig.png","alt","Instagram logo","width","24","height","24"],["src","/assets/fb.png","alt","Facebook logo","width","24","height","24",2,"margin-left","12px"],["src","/assets/twitter.png","alt","Twitter logo","width","24","height","24",2,"margin-left","12px"],["routerLink","/about","aria-label","About Us"],["routerLink","/contact","aria-label","Contact Us"],["routerLink","/return-policy","aria-label","Return Policy"],["routerLink","/shipping-policy","aria-label","Shipping Policy"],["type","button","aria-label","Expand quick links menu"],[3,"routerLink"],["alt","Facebook logo","src","/assets/fb.png","width","24","height","24",2,"margin-left","12px"],["alt","Twitter logo","src","/assets/twitter.png","width","24","height","24",2,"margin-left","12px"]],template:function(r,s){r&1&&(g(0,"footer",0)(1,"div",1),Y(2,jf,5,1,"div",2)(3,$f,4,1,"div",3),g(4,"div",4)(5,"h2"),b(6,"RESOURCES"),y(),g(7,"a",5),b(8,"About Us"),y(),g(9,"a",6),b(10,"Contact Us"),y(),g(11,"a",7),b(12,"Return Policy"),y(),g(13,"a",8),b(14,"Shipping Policy"),y()(),Y(15,Jf,5,2,"div",9),y(),g(16,"nav",10)(17,"span",11),b(18),y(),g(19,"span",12),b(20," | "),y(),g(21,"a",13),b(22,"Privacy Policy"),y(),g(23,"span",12),b(24," | "),y(),g(25,"a",14),b(26,"Terms of Use"),y(),g(27,"span",12),b(28," | "),y(),g(29,"a",15),b(30,"End User Agreement"),y(),g(31,"span",12),b(32," | "),y(),g(33,"a",16),b(34,"Notice at Collection"),y(),g(35,"span",12),b(36," | "),y(),g(37,"button",17),b(38,"Your Privacy Choices"),y()()(),g(39,"footer",18)(40,"ul")(41,"li")(42,"button",19),z("click",function(){return s.openOverflowMenu()})("keyup.enter",function(){return s.openOverflowMenu()}
4),b(43," Shop by Category "),y()(),g(44,"li",20),z("click",function(){return s.expand("locations")}),g(45,"button",21),b(46,"Contact "),g(47,"mat-icon",22),b(48),y()(),Y(49,rp,2,1),y(),g(50,"li",20),z("click",function(){return s.expand("hours")}),g(51,"button",23),b(52,"Hours "),g(53,"mat-icon",22),b(54),y()(),Y(55,op,1,1,"p",24),y(),g(56,"li",20),z("click",function(){return s.expand("resources")}),g(57,"button",25),b(58,"Resources "),g(59,"mat-icon",22),b(60),y()(),Y(61,sp,9,0,"div",26),y(),Y(62,cp,6,2,"li"),y(),g(63,"div",27),Y(64,up,2,1,"a",28)(65,dp,2,1,"a",29)(66,hp,2,1,"a",30),y(),g(67,"nav",31)(68,"span",11),b(69),y(),g(70,"span",12),b(71," | "),y(),g(72,"a",13),b(73,"Privacy Policy"),y(),g(74,"span",12),b(75," | "),y(),g(76,"a",14),b(77,"Terms of Use"),y(),g(78,"span",12),b(79," | "),y(),g(80,"a",15),b(81,"End User Agreement"),y(),g(82,"span",12),b(83," | "),y(),g(84,"a",16),b(85,"Notice at Collection"),y(),g(86,"span",12),b(87," | "),y(),g(88,"button",17),b(89,"Your Privacy Choices"),y()()()),r&2&&(Dt("background-color",s.SiteTheme.background)("color",s.SiteTheme.color),w(2),I(s.ContactInfo?2:-1),w(),I(s.Hours?3:-1),w(12),I(s.IGLink||s.FBLink||s.TwitterLink||s.CustomPages?15:-1),w(3),jr("",s.currentYear," \xA9 ",s.StoreName,". All Rights Reserved."),w(21),Dt("background-color",s.SiteTheme.background)("color",s.SiteTheme.color),w(9),Pe(s.expanded=="locations"?"keyboard_arrow_up":"keyboard_arrow_down"),w(),I(s.expanded=="locations"?49:-1),w(5),Pe(s.expanded=="hours"?"keyboard_arrow_up":"keyboard_arrow_down"),w(),I(s.expanded=="hours"?55:-1),w(5),Pe(s.expanded=="resources"?"keyboard_arrow_up":"keyboard_arrow_down"),w(),I(s.expanded=="resources"?61:-1),w(),I(s.CustomPages!=null&&s.CustomPages.length?62:-1),w(2),I(s.IGLink?64:-1),w(),I(s.FBLink?65:-1),w(),I(s.TwitterLink?66:-1),w(3),jr("",s.currentYear," \xA9 ",s.StoreName,". All Rights Reserved."))},dependencies:[hn,dn,We,lt,Pi],styles:[".desktop[_ngcontent-%COMP%]{width:100vw;font-size:11px}#sub-container[_ngcontent-%COMP%]{margin:0 24px 48px;border-top:1px solid color-mix(in srgb,currentColor 25%,transparent);display:flex;justify-content:space-around;flex-wrap:wrap}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:13px;text-align:center;text-align:left;max-width:22%}p[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{line-height:28px;margin:0}a[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:inherit}h2[_ngcontent-%COMP%]{margin-top:48px}.copyright-legal-row[_ngcontent-%COMP%]{margin-top:16px;padding:0 12px 16px;text-align:center;font-size:11px;line-height:1.75;color:inherit}.copyright-legal-row[_ngcontent-%COMP%] .copyright-text[_ngcontent-%COMP%]{white-space:normal}.copyright-legal-row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{line-height:inherit}.copyright-legal-row[_ngcontent-%COMP%] .legal-sep[_ngcontent-%COMP%]{color:inherit;opacity:.85}#connect[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;object-fit:cover}.flexrow[_ngcontent-%COMP%]{display:flex;align-items:center}.mobile[_ngcontent-%COMP%]{display:none;font-size:14px}.mobile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:24px 0 0;padding:0 12px;border-top:1px solid color-mix(in srgb,currentColor 25%,transparent)}.mobile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{text-decoration:none;padding:18px;border-bottom:1px solid color-mix(in srgb,currentColor 25%,transparent);display:flex;flex-direction:column;align-items:center}.mobile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .mobile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background:none;border:none;padding:0;margin:0;font-family:inherit;font-size:inherit;color:inherit;cursor:pointer}.mobile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .mobile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;height:16px;width:16px;margin:0 4px;font-weight:bolder}.mobile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mobile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .resources[_ngcontent-%COMP%]{margin-top:24px}.mobile[_ngcontent-%COMP%] .flexrow[_ngcontent-%COMP%]{padding:24px 0;justify-content:center}.mobile[_ngcontent-%COMP%] .sm-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;object-fit:cover}.mobile[_ngcontent-%COMP%] .copyright-legal-row[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;padding-bottom:20px}@media screen and (max-width: 960px){.desktop[_ngcontent-%COMP%]{display:none!important}.mobile[_ngcontent-%COMP%]{display:inline}.column[_ngcontent-%COMP%]{max-width:unset!important}}.ft[_ngcontent-%COMP%]{margin-top:0!important}.privacy-choices-btn[_ngcontent-%COMP%]{background:none;border:none;padding:0;margin:0;font-family:inherit;font-size:inherit;color:inherit;cursor:pointer;text-align:left;line-height:28px;text-decoration:none}.privacy-choices-btn[_ngcontent-%COMP%]:hover{text-decoration:underline}.mobile[_ngcontent-%COMP%] .privacy-choices-btn[_ngcontent-%COMP%]:not(.privacy-choices-btn--legal-row){width:100%;text-align:center}.privacy-choices-btn--legal-row[_ngcontent-%COMP%]{display:inline;width:auto!important;text-align:inherit;vertical-align:baseline;line-height:inherit;font-size:inherit}"]})}}return i})();
vendor: 18,626 bytes, lines 4-13
4var hl="firebasestorage.googleapis.com",fl="storageBucket",fp=2*60*1e3,pp=10*60*1e3;var pe=class i extends Gr{constructor(t,e,r=0){super(eo(t),`Firebase Storage: ${e} (${eo(t)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,i.prototype)}get status(){return this.status_}set status(t){this.status_=t}_codeEquals(t){return eo(t)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(t){this.customData.serverResponse=t,this.customData.serverResponse?this.message=`${this._baseMessage} 5${this.customData.serverResponse}`:this.message=this._baseMessage}},_e=function(i){return i.UNKNOWN="unknown",i.OBJECT_NOT_FOUND="object-not-found",i.BUCKET_NOT_FOUND="bucket-not-found",i.PROJECT_NOT_FOUND="project-not-found",i.QUOTA_EXCEEDED="quota-exceeded",i.UNAUTHENTICATED="unauthenticated",i.UNAUTHORIZED="unauthorized",i.UNAUTHORIZED_APP="unauthorized-app",i.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",i.INVALID_CHECKSUM="invalid-checksum",i.CANCELED="canceled",i.INVALID_EVENT_NAME="invalid-event-name",i.INVALID_URL="invalid-url",i.INVALID_DEFAULT_BUCKET="invalid-default-bucket",i.NO_DEFAULT_BUCKET="no-default-bucket",i.CANNOT_SLICE_BLOB="cannot-slice-blob",i.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",i.NO_DOWNLOAD_URL="no-download-url",i.INVALID_ARGUMENT="invalid-argument",i.INVALID_ARGUMENT_COUNT="invalid-argument-count",i.APP_DELETED="app-deleted",i.INVALID_ROOT_OPERATION="invalid-root-operation",i.INVALID_FORMAT="invalid-format",i.INTERNAL_ERROR="internal-error",i.UNSUPPORTED_ENVIRONMENT="unsupported-environment",i}(_e||{});function eo(i){return"storage/"+i}function so(){let i="An unknown error occurred, please check the error payload for server response.";return new pe(_e.UNKNOWN,i)}function mp(i){return new pe(_e.OBJECT_NOT_FOUND,"Object '"+i+"' does not exist.")}function gp(i){return new pe(_e.QUOTA_EXCEEDED,"Quota for bucket '"+i+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function _p(){let i="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new pe(_e.UNAUTHENTICATED,i)}function yp(){return new pe(_e.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}function bp(i){return new pe(_e.UNAUTHORIZED,"User does not have permission to access '"+i+"'.")}function vp(){return new pe(_e.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function wp(){return new pe(_e.CANCELED,"User canceled the upload/download.")}function Cp(i){return new pe(_e.INVALID_URL,"Invalid URL '"+i+"'.")}function Sp(i){return new pe(_e.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+i+"'.")}function kp(){return new pe(_e.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+fl+"' property when initializing the app?")}function xp(){return new pe(_e.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function Mp(){return new pe(_e.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function Tp(i){return new pe(_e.UNSUPPORTED_ENVIRONMENT,`${i} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}function to(i){return new pe(_e.INVALID_ARGUMENT,i)}function pl(){return new pe(_e.APP_DELETED,"The Firebase app was deleted.")}function Ep(i){return new pe(_e.INVALID_ROOT_OPERATION,"The operation '"+i+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function Vn(i,t){return new pe(_e.INVALID_FORMAT,"String does not match format '"+i+"': "+t)}function zn(i){throw new pe(_e.INTERNAL_ERROR,"Internal error: "+i)}var Ze=class i{constructor(t,e){this.bucket=t,this.path_=e}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){let t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(t,e){let r;try{r=i.makeFromUrl(t,e)}catch{return new i(t,"")}if(r.path==="")return r;throw Sp(t)}static makeFromUrl(t,e){let r=null,s="([A-Za-z0-9.\\-_]+)";function c(U){U.path.charAt(U.path.length-1)==="/"&&(U.path_=U.path_.slice(0,-1))}let d="(/(.*))?$",h=new RegExp("^gs://"+s+d,"i"),f={bucket:1,path:3};function m(U){U.path_=decodeURIComponent(U.path)}let C="v[A-Za-z0-9_]+",S=e.replace(/[.]/g,"\\."),O="(/([^?#]*).*)?$",D=new RegExp(`^https?://${S}/${C}/b/${s}/o${O}`,"i"),v={bucket:1,path:3},N=e===hl?"(?:storage.googleapis.com|storage.cloud.google.com)":e,L="([^?#]*)",Z=new RegExp(`^https?://${N}/${s}/${L}`,"i"),G=[{regex:h,indices:f,postModify:c},{regex:D,indices:v,postModify:m},{regex:Z,indices:{bucket:1,path:2},postModify:m}];for(let U=0;U<G.length;U++){let ue=G[U],te=ue.regex.exec(t);if(te){let ne=te[ue.indices.bucket],W=te[ue.indices.path];W||(W=""),r=new i(ne,W),ue.postModify(r);break}}if(r==null)throw Cp(t);return r}},no=class{constructor(t){this.promise_=Promise.reject(t)}getPromise(){return this.promise_}cancel(t=!1){}};function Pp(i,t,e){let r=1,s=null,c=null,d=!1,h=0;function f(){return h===2}let m=!1;function C(...L){m||(m=!0,t.apply(null,L))}function S(L){s=setTimeout(()=>{s=null,i(D,f())},L)}function O(){c&&clearTimeout(c)}function D(L,...Z){if(m){O();return}if(L){O(),C.call(null,L,...Z);return}if(f()||d){O(),C.call(null,L,...Z);return}r<64&&(r*=2);let G;h===1?(h=2,G=0):G=(r+Math.random())*1e3,S(G)}let v=!1;function N(L){v||(v=!0,O(),!m&&(s!==null?(L||(h=2),clearTimeout(s),S(0)):L||(h=1)))}return S(0),c=setTimeout(()=>{d=!0,N(!0)},e),N}function Op(i){i(!1)}function Ap(i){return i!==void 0}function Dp(i){return typeof i=="object"&&!Array.isArray(i)}function ao(i){return typeof i=="string"||i instanceof String}function sl(i){return lo()&&i instanceof Blob}function lo(){return typeof Blob<"u"}function al(i,t,e,r){if(r<t)throw to(`Invalid value for '${i}'. Expected ${t} or greater.`);if(r>e)throw to(`Invalid value for '${i}'. Expected ${e} or less.`)}function co(i,t,e){let r=t;return e==null&&(r=`https://${t}`),`${e}://${r}/v0${i}`}function ml(i){let t=encodeURIComponent,e="?";for(let r in i)if(i.hasOwnProperty(r)){let s=t(r)+"="+t(i[r]);e=e+s+"&"}return e=e.slice(0,-1),e}var mn=function(i){return i[i.NO_ERROR=0]="NO_ERROR",i[i.NETWORK_ERROR=1]="NETWORK_ERROR",i[i.ABORT=2]="ABORT",i}(mn||{});function Np(i,t){let e=i>=500&&i<600,s=[408,429].indexOf(i)!==-1,c=t.indexOf(i)!==-1;return e||s||c}var io=class{constructor(t,e,r,s,c,d,h,f,m,C,S,O=!0,D=!1){this.url_=t,this.method_=e,this.headers_=r,this.body_=s,this.successCodes_=c,this.additionalRetryCodes_=d,this.callback_=h,this.errorCallback_=f,this.timeout_=m,this.progressCallback_=C,this.connectionFactory_=S,this.retry=O,this.isUsingEmulator=D,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((v,N)=>{this.resolve_=v,this.reject_=N,this.start_()})}start_(){let t=(r,s)=>{if(s){r(!1,new pn(!1,null,!0));return}let c=this.connectionFactory_();this.pendingConnection_=c;let d=h=>{let f=h.loaded,m=h.lengthComputable?h.total:-1;this.progressCallback_!==null&&this.progressCallback_(f,m)};this.progressCallback_!==null&&c.addUploadProgressListener(d),c.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&c.removeUploadProgressListener(d),this.pendingConnection_=null;let h=c.getErrorCode()===mn.NO_ERROR,f=c.getStatus();if(!h||Np(f,this.additionalRetryCodes_)&&this.retry){let C=c.getErrorCode()===mn.ABORT;r(!1,new pn(!1,null,C));return}let m=this.successCodes_.indexOf(f)!==-1;r(!0,new pn(m,c))})},e=(r,s)=>{let c=this.resolve_,d=this.reject_,h=s.connection;if(s.wasSuccessCode)try{let f=this.callback_(h,h.getResponse());Ap(f)?c(f):c()}catch(f){d(f)}else if(h!==null){let f=so();f.serverResponse=h.getErrorText(),this.errorCallback_?d(this.errorCallback_(h,f)):d(f)}else if(s.canceled){let f=this.appDelete_?pl():wp();d(f)}else{let f=vp();d(f)}};this.canceled_?e(!1,new pn(!1,null,!0)):this.backoffId_=Pp(t,e,this.timeout_)}getPromise(){return this.promise_}cancel(t){this.canceled_=!0,this.appDelete_=t||!1,this.backoffId_!==null&&Op(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}},pn=class{constructor(t,e,r){this.wasSuccessCode=t,this.connection=e,this.canceled=!!r}};function Rp(i,t){t!==null&&t.length>0&&(i.Authorization="Firebase "+t)}function Ip(i,t){i["X-Firebase-Storage-Version"]="webjs/"+(t??"AppManager")}function Fp(i,t){t&&(i["X-Firebase-GMPID"]=t)}function Lp(i,t){t!==null&&(i["X-Firebase-AppCheck"]=t)}function Up(i,t,e,r,s,c,d=!0,h=!1){let f=ml(i.urlParams),m=i.url+f,C=Object.assign({},i.headers);return Fp(C,t),Rp(C,e),Ip(C,c),Lp(C,r),new io(m,i.method,C,i.body,i.successCodes,i.additionalRetryCodes,i.handler,i.errorHandler,i.timeout,i.progressCallback,s,d,h)}function Yp(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}function Bp(...i){let t=Yp();if(t!==void 0){let e=new t;for(let r=0;r<i.length;r++)e.append(i[r]);return e.getBlob()}else{if(lo())return new Blob(i);throw new pe(_e.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}}function zp(i,t,e){return i.webkitSlice?i.webkitSlice(t,e):i.mozSlice?i.mozSlice(t,e):i.slice?i.slice(t,e):null}function Vp(i){if(typeof atob>"u")throw Tp("base-64");return atob(i)}var dt={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},Wn=class{constructor(t,e){this.data=t,this.contentType=e||null}};function Wp(i,t){switch(i){case dt.RAW:return new Wn(gl(t));case dt.BASE64:case dt.BASE64URL:return new Wn(_l(i,t));case dt.DATA_URL:return new Wn(jp(t),$p(t))}throw so()}function gl(i){let t=[];for(let e=0;e<i.length;e++){let r=i.charCodeAt(e);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|r&63);else if((r&64512)===55296)if(!(e<i.length-1&&(i.charCodeAt(e+1)&64512)===56320))t.push(239,191,189);else{let c=r,d=i.charCodeAt(++e);r=65536|(c&1023)<<10|d&1023,t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63)}else(r&64512)===56320?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|r&63)}return new Uint8Array(t)}function Hp(i){let t;try{t=decodeURIComponent(i)}catch{throw Vn(dt.DATA_URL,"Malformed data URL.")}return gl(t)}function _l(i,t){switch(i){case dt.BASE64:{let s=t.indexOf("-")!==-1,c=t.indexOf("_")!==-1;if(s||c)throw Vn(i,"Invalid character '"+(s?"-":"_")+"' found: is it base64url encoded?");break}case dt.BASE64URL:{let s=t.indexOf("+")!==-1,c=t.indexOf("/")!==-1;if(s||c)throw Vn(i,"Invalid character '"+(s?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/");break}}let e;try{e=Vp(t)}catch(s){throw s.message.includes("polyfill")?s:Vn(i,"Invalid character found")}let r=new Uint8Array(e.length);for(let s=0;s<e.length;s++)r[s]=e.charCodeAt(s);return r}var Xi=class{constructor(t){this.base64=!1,this.contentType=null;let e=t.match(/^data:([^,]+)?,/);if(e===null)throw Vn(dt.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");let r=e[1]||null;r!=null&&(this.base64=qp(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-7):r),this.rest=t.substring(t.indexOf(",")+1)}};function jp(i){let t=new Xi(i);return t.base64?_l(dt.BASE64,t.rest):Hp(t.rest)}function $p(i){return new Xi(i).contentType}function qp(i,t){return i.length>=t.length?i.substring(i.length-t.length)===t:!1}var Ji=class i{constructor(t,e){let r=0,s="";sl(t)?(this.data_=t,r=t.size,s=t.type):t instanceof ArrayBuffer?(e?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),r=this.data_.length):t instanceof Uint8Array&&(e?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),r=t.length),this.size_=r,this.type_=s}size(){return this.size_}type(){return this.type_}slice(t,e){if(sl(this.data_)){let r=this.data_,s=zp(r,t,e);return s===null?null:new i(s)}else{let r=new Uint8Array(this.data_.buffer,t,e-t);return new i(r,!0)}}static getBlob(...t){if(lo()){let e=t.map(r=>r instanceof i?r.data_:r);return new i(Bp.apply(null,e))}else{let e=t.map(d=>ao(d)?Wp(dt.RAW,d).data:d.data_),r=0;e.forEach(d=>{r+=d.byteLength});let s=new Uint8Array(r),c=0;return e.forEach(d=>{for(let h=0;h<d.length;h++)s[c++]=d[h]}),new i(s,!0)}}uploadData(){return this.data_}};function yl(i){let t;try{t=JSON.parse(i)}catch{return null}return Dp(t)?t:null}function Gp(i){if(i.length===0)return null;let t=i.lastIndexOf("/");return t===-1?"":i.slice(0,t)}function Kp(i,t){let e=t.split("/").filter(r=>r.length>0).join("/");return i.length===0?e:i+"/"+e}function bl(i){let t=i.lastIndexOf("/",i.length-2);return t===-1?i:i.slice(t+1)}function Qp(i,t){return t}var we=class{constructor(t,e,r,s){this.server=t,this.local=e||t,this.writable=!!r,this.xform=s||Qp}},Zi=null;function Zp(i){return!ao(i)||i.length<2?i:bl(i)}function vl(){if(Zi)return Zi;let i=[];i.push(new we("bucket")),i.push(new we("generation")),i.push(new we("metageneration")),i.push(new we("name","fullPath",!0));function t(c,d){return Zp(d)}let e=new we("name");e.xform=t,i.push(e);function r(c,d){return d!==void 0?Number(d):d}let s=new we("size");return s.xform=r,i.push(s),i.push(new we("timeCreated")),i.push(new we("updated")),i.push(new we("md5Hash",null,!0)),i.push(new we("cacheControl",null,!0)),i.push(new we("contentDisposition",null,!0)),i.push(new we("contentEncoding",null,!0)),i.push(new we("contentLanguage",null,!0)),i.push(new we("contentType",null,!0)),i.push(new we("metadata","customMetadata",!0)),Zi=i,Zi}function Xp(i,t){function e(){let r=i.bucket,s=i.fullPath,c=new Ze(r,s);return t._makeStorageReference(c)}Object.defineProperty(i,"ref",{get:e})}function Jp(i,t,e){let r={};r.type="file";let s=e.length;for(let c=0;c<s;c++){let d=e[c];r[d.local]=d.xform(r,t[d.server])}return Xp(r,i),r}function wl(i,t,e){let r=yl(t);return r===null?null:Jp(i,r,e)}function em(i,t,e,r){let s=yl(t);if(s===null||!ao(s.downloadTokens))return null;let c=s.downloadTokens;if(c.length===0)return null;let d=encodeURIComponent;return c.split(",").map(m=>{let C=i.bucket,S=i.fullPath,O="/b/"+d(C)+"/o/"+d(S),D=co(O,e,r),v=ml({alt:"media",token:m});return D+v})[0]}function tm(i,t){let e={},r=t.length;for(let s=0;s<r;s++){let c=t[s];c.writable&&(e[c.server]=i[c.local])}return JSON.stringify(e)}var er=class{constructor(t,e,r,s){this.url=t,this.method=e,this.handler=r,this.timeout=s,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}};function Cl(i){if(!i)throw so()}function nm(i,t){function e(r,s){let c=wl(i,s,t);return Cl(c!==null),c}return e}function im(i,t){function e(r,s){let c=wl(i,s,t);return Cl(c!==null),em(c,s,i.host,i._protocol)}return e}function Sl(i){function t(e,r){let s;return e.getStatus()===401?e.getErrorText().includes("Firebase App Check token is invalid")?s=yp():s=_p():e.getStatus()===402?s=gp(i.bucket):e.getStatus()===403?s=bp(i.path):s=r,s.status=e.getStatus(),s.serverResponse=r.serverResponse,s}return t}function rm(i){let t=Sl(i);function e(r,s){let c=t(r,s);return r.getStatus()===404&&(c=mp(i.path)),c.serverResponse=s.serverResponse,c}return e}function om(i,t,e){let r=t.fullServerUrl(),s=co(r,i.host,i._protocol),c="GET",d=i.maxOperationRetryTime,h=new er(s,c,im(i,e),d);return h.errorHandler=rm(t),h}function sm(i,t){return i&&i.contentType||t&&t.type()||"application/octet-stream"}function am(i,t,e){let r=Object.assign({},e);return r.fullPath=i.path,r.size=t.size(),r.contentType||(r.contentType=sm(null,t)),r}function lm(i,t,e,r,s){let c=t.bucketOnlyServerUrl(),d={"X-Goog-Upload-Protocol":"multipart"};function h(){let G="";for(let U=0;U<2;U++)G=G+Math.random().toString().slice(2);return G}let f=h();d["Content-Type"]="multipart/related; boundary="+f;let m=am(t,r,s),C=tm(m,e),S="--"+f+`\r 6Content-Type: application/json; charset=utf-8\r 7\r 8`+C+`\r 9--`+f+`\r 10Content-Type: `+m.contentType+`\r 11\r 12`,O=`\r 13--`+f+"--",D=Ji.getBlob(S,r,O);if(D===null)throw xp();let v={name:m.fullPath},N=co(c,i.host,i._protocol),L="POST",Z=i.maxUploadRetryTime,V=new er(N,L,nm(i,e),Z);return V.urlParams=v,V.headers=d,V.body=D.uploadData(),V.errorHandler=Sl(t),V}var b0=256*1024;var ll=null,ro=class{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=mn.NO_ERROR,this.sendPromise_=new Promise(t=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=mn.ABORT,t()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=mn.NETWORK_ERROR,t()}),this.xhr_.addEventListener("load",()=>{t()})})}send(t,e,r,s,c){if(this.sent_)throw zn("cannot .send() more than once");if(Yn(t)&&r&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(e,t,!0),c!==void 0)for(let d in c)c.hasOwnProperty(d)&&this.xhr_.setRequestHeader(d,c[d].toString());return s!==void 0?this.xhr_.send(s):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw zn("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw zn("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw zn("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw zn("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(t){return this.xhr_.getResponseHeader(t)}addUploadProgressListener(t){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",t)}removeUploadProgressListener(t){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",t)}},oo=class extends ro{initXhr(){this.xhr_.responseType="text"}};function kl(){return ll?ll():new oo}var gn=class i{constructor(t,e){this._service=t,e instanceof Ze?this._location=e:this._location=Ze.makeFromUrl(e,t.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(t,e){return new i(t,e)}get root(){let t=new Ze(this._location.bucket,"");return this._newRef(this._service,t)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return bl(this._location.path)}get storage(){return this._service}get parent(){let t=Gp(this._location.path);if(t===null)return null;let e=new Ze(this._location.bucket,t);return new i(this._service,e)}_throwIfRoot(t){if(this._location.path==="")throw Ep(t)}};function cm(i,t,e){i._throwIfRoot("uploadBytes");let r=lm(i.storage,i._location,vl(),new Ji(t,!0),e);return i.storage.makeRequestWithTokens(r,kl).then(s=>({metadata:s,ref:i}
13))}function um(i){i._throwIfRoot("getDownloadURL");let t=om(i.storage,i._location,vl());return i.storage.makeRequestWithTokens(t,kl).then(e=>{if(e===null)throw Mp();return e})}function dm(i,t){let e=Kp(i._location.path,t),r=new Ze(i._location.bucket,e);return new gn(i.storage,r)}function hm(i){return/^[A-Za-z]+:\/\//.test(i)}function fm(i,t){return new gn(i,t)}function xl(i,t){if(i instanceof Hn){let e=i;if(e._bucket==null)throw kp();let r=new gn(e,e._bucket);return t!=null?xl(r,t):r}else return t!==void 0?dm(i,t):i}function pm(i,t){if(t&&hm(t)){if(i instanceof Hn)return fm(i,t);throw to("To use ref(service, url), the first argument must be a Storage instance.")}else return xl(i,t)}function cl(i,t){let e=t?.[fl];return e==null?null:Ze.makeFromBucketSpec(e,i)}function mm(i,t,e,r={}){i.host=`${t}:${e}`;let s=Yn(t);s&&(Di(`https://${i.host}/b`),Ni("Storage",!0)),i._isUsingEmulator=!0,i._protocol=s?"https":"http";let{mockUserToken:c}=r;c&&(i._overrideAuthToken=typeof c=="string"?c:Ua(c,i.app.options.projectId))}var Hn=class{constructor(t,e,r,s,c,d=!1){this.app=t,this._authProvider=e,this._appCheckProvider=r,this._url=s,this._firebaseVersion=c,this._isUsingEmulator=d,this._bucket=null,this._host=hl,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=fp,this._maxUploadRetryTime=pp,this._requests=new Set,s!=null?this._bucket=Ze.makeFromBucketSpec(s,this._host):this._bucket=cl(this._host,this.app.options)}get host(){return this._host}set host(t){this._host=t,this._url!=null?this._bucket=Ze.makeFromBucketSpec(this._url,t):this._bucket=cl(t,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(t){al("time",0,Number.POSITIVE_INFINITY,t),this._maxUploadRetryTime=t}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(t){al("time",0,Number.POSITIVE_INFINITY,t),this._maxOperationRetryTime=t}_getAuthToken(){return Ae(this,null,function*(){if(this._overrideAuthToken)return this._overrideAuthToken;let t=this._authProvider.getImmediate({optional:!0});if(t){let e=yield t.getToken();if(e!==null)return e.accessToken}return null})}_getAppCheckToken(){return Ae(this,null,function*(){if(Li(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let t=this._appCheckProvider.getImmediate({optional:!0});return t?(yield t.getToken()).token:null})}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(t=>t.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(t){return new gn(this,t)}_makeRequest(t,e,r,s,c=!0){if(this._deleted)return new no(pl());{let d=Up(t,this._appId,r,s,e,this._firebaseVersion,c,this._isUsingEmulator);return this._requests.add(d),d.getPromise().then(()=>this._requests.delete(d),()=>this._requests.delete(d)),d}}makeRequestWithTokens(t,e){return Ae(this,null,function*(){let[r,s]=yield Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(t,e,r,s).getPromise()})}},ul="@firebase/storage",dl="0.13.14";var Ml="storage";function Tl(i,t,e){return i=Ft(i),cm(i,t,e)}function El(i){return i=Ft(i),um(i)}function Pl(i,t){return i=Ft(i),pm(i,t)}function Ol(i=Ui(),t){i=Ft(i);let r=Fi(i,Ml).getImmediate({identifier:t}),s=Ai("storage");return s&&Al(r,...s),r}function Al(i,t,e,r={}){mm(i,t,e,r)}function gm(i,{instanceIdentifier:t}){let e=i.getProvider("app").getImmediate(),r=i.getProvider("auth-internal"),s=i.getProvider("app-check-internal");return new Hn(e,r,s,t,Ya)}function _m(){Ii(new Ri(Ml,gm,"PUBLIC").setMultipleInstances(!0)),ct(ul,dl,""),ct(ul,dl,"esm2017")}_m();var jt=class{constructor(t){return t}},Dl="storage",uo=class{constructor(){return zi(Dl)}};var ho=new yi("angularfire2.storage-instances");function ym(i,t){let e=Bi(Dl,i,t);return e&&new jt(e)}function bm(i){return(t,e)=>{let r=t.runOutsideAngular(()=>i(e));return new jt(r)}}var vm={provide:uo,deps:[[new rt,ho]]},wm={provide:jt,useFactory:ym,deps:[[new rt,ho],Wi]};function Nl(i,...t){return ct("angularfire",Yi.full,"gcs"),bi([wm,vm,{provide:ho,useFactory:bm(i),multi:!0,deps:[an,vi,Vi,Hi,[new rt,$i],[new rt,ji],...t]}])}var Rl=Ht(El,!0);var Il=Ht(Ol,!0);var Fl=Ht(Pl,!0,2);var Ll=Ht(Tl,!0);var Ul=(()=>{class i{constructor(e,r,s,c){this._db=e,this.storage=r,this.document=s,this.platformId=c}getChat(e){return Kr(Lt(this._db,`chat/${e}`),{idField:"id"})}getChatContact(e,r){return Kr(Lt(this._db,`chat/${e}/contacts/${r}`),{idField:"id"})}getMessages(e,r){let s=qa(Bn(this._db,"chat-messages"),Zr("locationId","==",e.toString()),Zr("contactId","==",r),$a("createdAt","asc"));return Va(s,{idField:"id"})}updateMessage(e,r,s){let h=s,{id:c}=h,d=_i(h,["id"]);return Qr(Lt(this._db,`chat-messages/${c}`),Pt({},d))}updateContact(e,r,s){return Ga(Lt(this._db,`chat/${e}/contacts/${r}`),Pt({},s),{merge:!0})}sendMessage(e,r,s){return Ae(this,null,function*(){let c=Us(Pt({},s),{contactId:r,chatId:e.toString(),locationId:e.toString()}),d=yield Ha(Bn(this._db,"chat-messages"),c);return yield Qr(Lt(this._db,`chat/${e}/contacts/${r}`),{lastMessageAt:s.createdAt||new Date,lastMessageBody:(s.body||"").substring(0,100),lastMessageSender:s.sender||"customer",read:!1}),d})}resampleImage(e,r,s){let c=e.width,d=e.height,h=e.width,f=e.height,m=document.createElement("canvas"),C=m.getContext("2d");m.width=h,m.height=f,C.drawImage(e,0,0);let S;f>s?(S=s/f,f=s,h=h*S):h>s&&(S=s/h,h=s,f=f*S),h=Math.round(h),f=Math.round(f);for(var O=c/h,D=d/f,v=Math.ceil(O/2),N=Math.ceil(D/2),L=C.getImageData(0,0,c,d),Z=C.createImageData(h,f),V=L.data,G=Z.data,U=0;U<f;U++)for(var ue=0;ue<h;ue++){for(var te=(ue+U*h)*4,ne=0,W=0,Ne=0,Ue=0,Ce=0,Ye=0,et=0,kt=(U+.5)*D,xt=Math.floor(U*D),P=Math.ceil((U+1)*D),R=xt;R<P;R++)for(var A=Math.abs(kt-(R+.5))/N,B=(ue+.5)*O,ae=A*A,Se=Math.floor(ue*O),fe=Math.ceil((ue+1)*O),x=Se;x<fe;x++){var re=Math.abs(B-(x+.5))/v,je=Math.sqrt(ae+re*re);if(!(je>=1)){ne=2*je*je*je-3*je*je+1;var Re=4*(x+R*c);et+=ne*V[Re+3],Ne+=ne,V[Re+3]<255&&(ne=ne*V[Re+3]/250),Ue+=ne*V[Re],Ce+=ne*V[Re+1],Ye+=ne*V[Re+2],W+=ne}}G[te]=Ue/W,G[te+1]=Ce/W,G[te+2]=Ye/W,G[te+3]=et/Ne}return m.width=h,m.height=f,C.putImageData(Z,0,0),new Promise(me=>C.canvas.toBlob($e=>{me({blob:$e,height:f,width:h})},r))}uploadImage(e,r){return Ae(this,null,function*(){let s=Fl(this.storage,r),c=yield Ll(s,e);return yield Rl(c.ref)})}static{this.\u0275fac=function(r){return new(r||i)(Te(qi),Te(jt),Te(ot),Te(ln))}}static{this.\u0275prov=it({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var tr=class{},_n=class{constructor(){this.status="sent",this.body="",this.sender="customer"}};var jn=Tf(Yl());
13var xm=(i,t)=>t.id,Mm=(i,t)=>({received:i,sent:t});function Tm(i,t){if(i&1&&(g(0,"div",4),b(1),y()),i&2){let e=M(2);w(),Pe(e.UnreadMessages)}}function Em(i,t){if(i&1){let e=be();g(0,"button",1),z("click",function(){j(e);let s=M();return $(s.openChat())}),q(1,"div",2),g(2,"mat-icon",3),b(3,"chat"),y(),Y(4,Tm,2,1,"div",4),y()}if(i&2){let e=M();xe("aria-label",e.UnreadMessages>0?"Open chat, "+e.UnreadMessages+" unread":"Open chat"),w(4),I(e.UnreadMessages>0?4:-1)}}function Pm(i,t){i&1&&b(0," We're online ")}function Om(i,t){i&1&&b(0," Leave us a message ")}function Am(i,t){if(i&1&&(g(0,"div",18)(1,"div",19),b(2),y()()),i&2){let e=M(2);w(2),he(" Welcome back, ",e.contact.name,"! \u{1F44B} ")}}function Dm(i,t){if(i&1&&(g(0,"div",18)(1,"div",19),b(2),y()()),i&2){let e=M(2);w(2),Pe(e.GreetingMessage)}}function Nm(i,t){i&1&&(g(0,"div",18)(1,"div",19),b(2," To get started, please tell us your name "),y()())}function Rm(i,t){if(i&1&&q(0,"img",29),i&2){let e=M().$implicit;ie("src",e.fileUrl,De)}}function Im(i,t){if(i&1&&(g(0,"div",20)(1,"div",19),b(2),Y(3,Rm,1,1,"img",29),y()()),i&2){let e=t.$implicit;ie("ngClass",Qs(3,Mm,e.sender=="store",e.sender=="customer")),w(2),he(" ",e.body," "),w(),I(e.fileUrl?3:-1)}}function Fm(i,t){i&1&&(g(0,"mat-icon",27),b(1,"sync"),y())}function Lm(i,t){i&1&&(g(0,"mat-icon"),b(1,"attach_file"),y())}function Um(i,t){i&1&&(g(0,"mat-icon"),b(1,"send"),y())}function Ym(i,t){if(i&1){let e=be();g(0,"div",5),z("click",function(){j(e);let s=M();return $(s.closeChat())}),y(),g(1,"div",6)(2,"header",7)(3,"div",8),q(4,"div",9),g(5,"div",10)(6,"span",11),b(7,"Live Chat"),y(),g(8,"span",12),Y(9,Pm,1,0)(10,Om,1,0),y()()(),g(11,"button",13),z("click",function(){j(e);let s=M();return $(s.closeChat())}),g(12,"mat-icon",3),b(13,"close"),y()()(),g(14,"div",14)(15,"div",15)(16,"div",16)(17,"div",17)(18,"mat-icon"),b(19,"bookmark"),y(),g(20,"span"),b(21,"Chat ID: "),g(22,"strong"),b(23),y()()(),g(24,"div",18)(25,"div",19),b(26," Save your chat ID above to reference this conversation later. "),y()(),Y(27,Am,3,1,"div",18)(28,Dm,3,1,"div",18)(29,Nm,3,0,"div",18),Ke(30,Im,4,6,"div",20,xm),y()()(),g(32,"footer",21)(33,"div",22)(34,"mat-form-field",23)(35,"mat-label",24),b(36,"Message"),y(),g(37,"textarea",25),Ks("ngModelChange",function(s){j(e);let c=M();return Gs(c.newMessage.body,s)||(c.newMessage.body=s),$(s)}),z("keydown.enter",function(){return j(e),M().send(),$(!1)}),y()(),g(38,"button",26),z("click",function(){j(e);let s=M();return $(s.send())}),Y(39,Fm,2,0,"mat-icon",27)(40,Lm,2,0,"mat-icon")(41,Um,2,0,"mat-icon"),y()(),g(42,"input",28),z("change",function(s){j(e);let c=M();return $(c.setImage(s))}),y()()()}if(i&2){let e=M();w(),ie("@chatSlide",void 0),w(3),Nt("online",e.ChatStatus==="green")("away",e.ChatStatus==="orange"),w(5),I(e.ChatStatus==="green"?9:10),w(14),Pe(e.contact==null?null:e.contact.id),w(4),I(e.contact!=null&&e.contact.name?27:-1),w(),I(e.ChatStatus!=="green"||e.ChatStatus=="green"&&(e.contact!=null&&e.contact.name)?28:-1),w(),I(e.contact!=null&&e.contact.name?-1:29),w(),Qe(e.messages),w(7),qs("ngModel",e.newMessage.body),w(),Nt("has-content",e.newMessage.body!==""),ie("disabled",e.loading),xe("aria-label",e.newMessage.body===""?"Attach file":"Send message"),w(),I(e.loading?39:e.newMessage.body===""?40:41)}}var Bl=(()=>{class i{constructor(e,r,s,c){this._chatService=e,this._appService=r,this._db=s,this.platformId=c,this.showChat=!1,this.newMessage=new _n,this.loading=!1}ngOnInit(){if(cn(this.platformId)){this.chatByte=new Audio("/assets/chat.mp3");let e=document.createElement("track");e.kind="descriptions",e.label="Notification sound",e.srclang="en",e.src="/assets/chat.vtt",e.default=!0,this.chatByte.appendChild(e),document.body.appendChild(this.chatByte),this._appService.siteInfoLoaded.subscribe(r=>{if(r){this._chatService.getChat(this._appService.siteResources.locationId).subscribe(c=>{this.chat=c});let s=localStorage.getItem("hello-chat-id")||Lt(Bn(this._db,`chat/${this._appService.siteResources.locationId}/contacts/`)).id;this._chatService.getChatContact(this._appService.siteResources.locationId,s).subscribe(c=>
13{c?this.contact=c:(this.contact=new tr,this.contact.id=s),this._chatService.getMessages(this._appService.siteResources.locationId,s).subscribe(d=>{let h=JSON.parse(JSON.stringify(this.UnreadMessages));this.messages=d,this.showChat?this.updateToRead():h<this.UnreadMessages&&this.chatByte.play()})})}})}}onEscape(e){this.showChat&&(e.preventDefault(),this.closeChat())}toggleChat(){this.showChat?this.closeChat():this.openChat()}openChat(){this.showChat=!0,cn(this.platformId)&&(setTimeout(()=>{document.getElementById("tinput")?.focus()},200),setTimeout(()=>{this.updateToRead()},3e3))}closeChat(){this.showChat&&(this.showChat=!1,cn(this.platformId)&&setTimeout(()=>{document.querySelector(".chat-fab")?.focus()},0))}updateToRead(){this.messages.forEach(e=>{e.sender=="store"&&e.status=="sent"&&(e.status="read",this._chatService.updateMessage(this.chat.id,this.contact.id,e))})}get ChatStatus(){if(this.chat&&this.chat.enabled){let e="HH:mm:ss",r=this.chat.days.includes((0,jn.default)().weekday()),s=(0,jn.default)(new Date,e).isBetween((0,jn.default)(this.chat.openTime,e),(0,jn.default)(this.chat.closedTime,e));return r&&s?"green":"orange"}else return"red"}get GreetingMessage(){return this.chat?this.ChatStatus=="green"?this.chat.openGreeting:this.chat.closedGreeting:"loading..."}get UnreadMessages(){return this.messages?this.messages.filter(e=>e.sender=="store"&&e.status=="sent").length:0}send(){if(this.newMessage.body==""&&!this.newMessage.fileUrl)document.getElementById("image-input").click();else{let e=this.newMessage.body.split(" ").length<4;this.contact.archivedAt&&(this.contact.archivedAt=null,this._chatService.updateContact(this.chat.id,this.contact.id,this.contact)),!this.contact.name&&e?(this.contact.name=this.newMessage.body.trim(),localStorage.setItem("hello-chat-id",this.contact.id),this._chatService.updateContact(this.chat.id,this.contact.id,this.contact),this.newMessage=new _n,document.getElementById("tinput").focus()):(this.contact.name||(this.contact.name=this.contact.id,this._chatService.updateContact(this.chat.id,this.contact.id,this.contact)),this.newMessage.createdAt=new Date,this.loading=!0,this._chatService.sendMessage(this.chat.id,this.contact.id,this.newMessage).then(()=>{this.newMessage=new _n,this.loading=!1,document.getElementById("tinput").focus()}))}}setImage(e){this.loading=!0;let r=e.target.files;for(let s of r)if(s.type.match("image"))if(s.size<2e5)this.saveImage(s);else{let c=new FileReader;c.onload=()=>{let d=new Image;d.src=c.result,d.onload=()=>this._chatService.resampleImage(d,s.type,1228).then(h=>{h.blob.size>=s.size?this.saveImage(s):this.saveImage(h.blob)},h=>{alert("Error saving image. Please try again."),console.error(h),this.loading=!1})},c.readAsDataURL(s)}}saveImage(e){let r=new Date().getTime();this._chatService.uploadImage(e,`chat-images/${this.chat.id}/images/${r}`).then(s=>{this.loading=!1,this.newMessage.fileUrl=s,this.send()},s=>{console.log(`${s} = "Images failed to upload.. Please try again`)})}static{this.\u0275fac=function(r){return new(r||i)(se(Ul),se(ve),se(qi),se(ln))}}static{this.\u0275cmp=Ve({type:i,selectors:[["app-chat"]],hostBindings:function(r,s){r&1&&z("keydown.escape",function(d){return s.onEscape(d)},!1,Hs)},decls:2,vars:1,consts:[[1,"chat-fab"],[1,"chat-fab",3,"click"],["aria-hidden","true",1,"fab-pulse"],["aria-hidden","true"],["aria-hidden","true",1,"badge"],["aria-hidden","true",1,"chat-overlay",3,"click"],["role","dialog","aria-modal","true","aria-labelledby","chat-dialog-title",1,"chat-window"],[1,"chat-header"],[1,"header-content"],["aria-hidden","true",1,"status-indicator"],[1,"header-info"],["id","chat-dialog-title",1,"header-title"],[1,"header-subtitle"],["mat-icon-button","","aria-label","Close chat",1,"close-btn",3,"click"],[1,"messages-container"],[1,"messages-scroll"],[1,"messages-list"],[1,"system-message"],[1,"message","received"],[1,"message-bubble"],[1,"message",3,"ngClass"],[1,"compose-area"],[1,"compose-input-wrapper"],["appearance","outline",1,"compose-field"],[1,"sr-only"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","4","id","tinput","aria-label","Message","placeholder","Type a message...",3,"ngModelChange","keydown.enter","ngModel"],["mat-mini-fab","",1,"send-btn",3,"click","disabled"],[1,"spin"],["type","file","id","image-input","hidden","","multiple","","accept",".png, .jpg, .jpeg, .gif, .webp","aria-label","Upload image",3,"change"],["alt","Shared image",1,"message-image",3,"src"]],template:function(r,s){r&1&&Y(0,Em,5,2,"button",0)(1,Ym,43,16),r&2&&I(s.
13chat&&s.chat.enabled&&!s.showChat?0:s.showChat?1:-1)},dependencies:[xa,ka,Sa,Ta,Ma,Pa,Ea,We,lt,Rt,Oi,Da,Ca,Ti,Ei,_a,Xs],styles:[".chat-fab[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;width:60px;height:60px;border-radius:50%;border:none;background:linear-gradient(135deg,#1a1a1a,#2d2d2d);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 32px #0000001f,0 2px 8px #00000014;transition:transform .2s ease,box-shadow .2s ease;z-index:1000}.chat-fab[_ngcontent-%COMP%]:hover{transform:scale(1.08);box-shadow:0 12px 40px #0000002e}.chat-fab[_ngcontent-%COMP%]:active{transform:scale(.96)}.chat-fab[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:26px;width:26px;height:26px}.chat-fab[_ngcontent-%COMP%] .fab-pulse[_ngcontent-%COMP%]{position:absolute;inset:0;border-radius:50%;background:#1a1a1a;animation:_ngcontent-%COMP%_pulse 2.5s infinite;z-index:-1}.chat-fab[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 6px;background:#06f;color:#fff;border-radius:12px;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #06f6;animation:_ngcontent-%COMP%_badgeBounce .4s ease}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1);opacity:.6}50%{transform:scale(1.15);opacity:0}to{transform:scale(1);opacity:0}}@keyframes _ngcontent-%COMP%_badgeBounce{0%{transform:scale(0)}60%{transform:scale(1.2)}to{transform:scale(1)}}.chat-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#0000004d;backdrop-filter:blur(4px);z-index:999;animation:_ngcontent-%COMP%_fadeIn .2s ease}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}.chat-window[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;width:400px;max-width:calc(100vw - 32px);height:580px;max-height:calc(100vh - 48px);background:#fff;border-radius:20px;box-shadow:0 8px 32px #0000001f,0 2px 8px #00000014;display:flex;flex-direction:column;overflow:hidden;z-index:1001}.chat-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 12px 16px 20px;background:linear-gradient(135deg,#1a1a1a,#2d2d2d);color:#fff;flex-shrink:0}.chat-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.chat-header[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;background:#6b7280;flex-shrink:0}.chat-header[_ngcontent-%COMP%] .status-indicator.online[_ngcontent-%COMP%]{background:#22c55e;box-shadow:0 0 8px #22c55e99}.chat-header[_ngcontent-%COMP%] .status-indicator.away[_ngcontent-%COMP%]{background:#f59e0b;box-shadow:0 0 8px #f59e0b80}.chat-header[_ngcontent-%COMP%] .header-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.chat-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;letter-spacing:-.01em}.chat-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:12px;opacity:.8}.chat-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{color:#fff;opacity:.8;transition:opacity .15s}.chat-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:hover{opacity:1}.messages-container[_ngcontent-%COMP%]{flex:1;overflow:hidden;background:#f8f9fa}.messages-scroll[_ngcontent-%COMP%]{height:100%;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column-reverse;padding:16px 16px 8px}.messages-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.messages-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.messages-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#00000026;border-radius:3px}.messages-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#00000040}.messages-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding-bottom:24px}.system-message[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 14px;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:20px;font-size:11px;color:#6b7280;margin:0 auto 8px;max-width:90%;text-align:center}.system-message[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;
13height:14px;opacity:.6}.system-message[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600;color:#1a1a1a;word-break:break-all}.message[_ngcontent-%COMP%]{display:flex;max-width:85%;animation:_ngcontent-%COMP%_messageSlide .25s ease}.message.sent[_ngcontent-%COMP%]{align-self:flex-end}.message.sent[_ngcontent-%COMP%] .message-bubble[_ngcontent-%COMP%]{background:#1a1a1a;color:#fff;border-radius:18px 18px 4px}.message.received[_ngcontent-%COMP%]{align-self:flex-start}.message.received[_ngcontent-%COMP%] .message-bubble[_ngcontent-%COMP%]{background:#fff;color:#1a1a1a;border-radius:18px 18px 18px 4px;box-shadow:0 1px 2px #0000000f}.message-bubble[_ngcontent-%COMP%]{padding:12px 16px;font-size:14px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.message-image[_ngcontent-%COMP%]{display:block;max-width:100%;max-height:200px;border-radius:12px;margin-top:8px;object-fit:contain}@keyframes _ngcontent-%COMP%_messageSlide{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.compose-area[_ngcontent-%COMP%]{padding:8px 12px 10px;background:#fff;border-top:1px solid rgba(0,0,0,.08);flex-shrink:0}.compose-input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:10px}.compose-field[_ngcontent-%COMP%]{flex:1}.compose-field[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper[_ngcontent-%COMP%]{display:none}.compose-field[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper[_ngcontent-%COMP%]{padding:0 12px}.compose-field[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper[_ngcontent-%COMP%] .mat-mdc-form-field-flex[_ngcontent-%COMP%]{height:auto}.compose-field[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{min-height:44px;padding:10px 0;display:flex;align-items:center}.compose-field[_ngcontent-%COMP%] .mdc-notched-outline__leading[_ngcontent-%COMP%], .compose-field[_ngcontent-%COMP%] .mdc-notched-outline__notch[_ngcontent-%COMP%], .compose-field[_ngcontent-%COMP%] .mdc-notched-outline__trailing[_ngcontent-%COMP%]{border-radius:12px}.compose-field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{font-size:14px;line-height:1.5;resize:none}.send-btn[_ngcontent-%COMP%]{flex-shrink:0;width:44px;height:44px;background:#f8f9fa!important;color:#6b7280!important;box-shadow:none!important;transition:all .2s ease}.send-btn.has-content[_ngcontent-%COMP%]{background:#06f!important;color:#fff!important;box-shadow:0 2px 12px #06f6!important}.send-btn[_ngcontent-%COMP%]:hover:not([disabled]){transform:scale(1.05)}.send-btn[_ngcontent-%COMP%]:disabled{opacity:.6}.send-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}.send-btn[_ngcontent-%COMP%] .spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin 1s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media screen and (max-width: 600px){.chat-fab[_ngcontent-%COMP%]{bottom:16px;right:16px;width:56px;height:56px}.chat-fab[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px;width:24px;height:24px}.chat-window[_ngcontent-%COMP%]{bottom:0;right:0;left:0;width:100%;max-width:100%;height:100%;max-height:100%;border-radius:0}.chat-header[_ngcontent-%COMP%]{padding:20px 12px 20px 20px;padding-top:max(20px,env(safe-area-inset-top,20px))}.messages-scroll[_ngcontent-%COMP%]{padding:12px}.compose-area[_ngcontent-%COMP%]{padding:12px 12px 16px;padding-bottom:max(16px,env(safe-area-inset-bottom,16px))}.message[_ngcontent-%COMP%]{max-width:90%}}@media screen and (min-width: 601px) and (max-width: 960px){.chat-window[_ngcontent-%COMP%]{width:380px;height:540px}}"],data:{animation:[ki("chatSlide",[Un(":enter",[at({opacity:0,transform:"translateY(24px) scale(0.95)"}),Ln("280ms cubic-bezier(0.4, 0, 0.2, 1)",at({opacity:1,transform:"translateY(0) scale(1)"}))]),Un(":leave",[Ln("200ms cubic-bezier(0.4, 0, 0.2, 1)",at({opacity:0,transform:"translateY(24px) scale(0.95)"}))])])]}})}}return i})();var zl=(()=>{class i{constructor(e){this.document=e,this.attemptedUrl=this.document.location?.hostname||"this store"}static{this.\u0275fac=function(r){return new(r||i)(se(ot))}}static{this.\u0275cmp=Ve({type:i,selectors:[["app-store-not-found"]],decls:18,vars:1,consts:[["role","main","aria-label","Store not found",1,"store-not-found"],[1,"content"],[1,"icon-circle"],["aria-hidden","true",1,"hero-icon"],[1,"subtitle"],[1,"suggestion"],[1,"fun-fact"],["aria-hidden","true"]],template:function(r,s){r&1&&(g(0,"main",0)(1,"div",1)(2,"div",2)(3,"mat-icon",3),b(4,"search_off"),y()(),g(5,"h1"),b(6,"Hmm, this store seems to be playing hide and seek..."),y(),g(7,"p",4),b(8," We searched high and low through our bookshelves, but we couldn't find a store at "),g(9,"strong"),b(10),y()(),g(11,"p",5),b(12," Double-check the URL or contact your campus bookstore for the correct link. "),y(),g(13,"div",6)(14,"mat-icon",7),b(15,"auto_stories"),y(),g(16,"span"),b(17,"Fun fact: The average college student visits the bookstore 4.2 times per semester. You just visited one that doesn't exist \u2014 that's pretty unique!"),y()()()()),r&2&&(w(10),Pe(s.attemptedUrl))},dependencies:[Ci,We,lt],styles:["[_nghost-%COMP%]{display:block}.store-not-found[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:var(--mat-app-background-color, #fff);padding:24px;overflow-y:auto}.content[_ngcontent-%COMP%]{max-width:600px;text-align:center;animation:_ngcontent-%COMP%_fadeIn .4s ease-out}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
13.icon-circle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:120px;height:120px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);margin-bottom:24px;animation:_ngcontent-%COMP%_wobble 8s ease-in-out infinite}@keyframes _ngcontent-%COMP%_wobble{0%{transform:rotate(0)}5%{transform:rotate(-5deg)}15%{transform:rotate(5deg)}25%{transform:rotate(0)}to{transform:rotate(0)}}.hero-icon[_ngcontent-%COMP%]{font-size:56px;width:56px;height:56px;color:#fff}h1[_ngcontent-%COMP%]{font-size:1.75rem;font-weight:700;margin-bottom:16px;color:var(--mat-app-text-color, #333)}.subtitle[_ngcontent-%COMP%]{font-size:1.1rem;margin-bottom:24px;line-height:1.6;color:var(--mat-app-text-color, #555)}.subtitle[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{background:#80808026;padding:2px 8px;border-radius:4px;font-family:monospace}.suggestion[_ngcontent-%COMP%]{font-size:1rem;color:var(--mat-app-text-color, #666);margin-bottom:32px}.fun-fact[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;background:#8080801a;border-radius:12px;padding:16px;font-size:.9rem;color:var(--mat-app-text-color, #666);text-align:left}.fun-fact[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex-shrink:0;margin-top:2px;opacity:.7}@media screen and (max-width: 768px){.store-not-found[_ngcontent-%COMP%]{padding:16px}h1[_ngcontent-%COMP%]{font-size:1.4rem}.subtitle[_ngcontent-%COMP%]{font-size:1rem}.suggestion[_ngcontent-%COMP%]{font-size:.95rem}.fun-fact[_ngcontent-%COMP%]{padding:12px;font-size:.85rem}}"]})}}return i})();var Vl=[{key:"classic",background:"#000000",color:"#FFFFFF"},{key:"sunshine",background:"#FFD600",color:"#000000"},{key:"alert",background:"#B00020",color:"#FFFFFF"},{key:"forest",background:"#1B5E20",color:"#FFFFFF"},{key:"ocean",background:"#0D47A1",color:"#FFFFFF"},{key:"frost",background:"#FFFFFF",color:"#0D47A1"}],Bm="classic";function Wl(i){return Vl.find(t=>t.key===i)||Vl.find(t=>t.key===Bm)}var zm=(i,t)=>t.slug,Vm=(i,t)=>t.route;function Wm(i,t){i&1&&q(0,"app-store-not-found")}function Hm(i,t){i&1&&(g(0,"span",17),b(1," (opens in a new tab)"),y())}function jm(i,t){if(i&1){let e=be();g(0,"a",15),z("click",function(s){j(e);let c=M(4);return $(c.onBannerLinkClick(s,c.BannerLink))}),q(1,"span",16),Y(2,Hm,2,0,"span",17),y()}if(i&2){let e=M(4);Dt("color",e.BannerTheme.color),ie("href",e.normalizeHref(e.BannerLink),De),xe("target",e.linkTarget(e.BannerLink))("rel",e.linkRel(e.BannerLink)),w(),ie("innerHTML",e.BannerTextHtml,At),w(),I(e.opensInNewTab(e.BannerLink)?2:-1)}}function $m(i,t){if(i&1&&q(0,"span",16),i&2){let e=M(4);Dt("color",e.BannerTheme.color),ie("innerHTML",e.BannerTextHtml,At)}}function qm(i,t){if(i&1&&(g(0,"div",12),Y(1,jm,3,7,"a",13)(2,$m,1,3,"span",14),y()),i&2){let e=M(3);Dt("background-color",e.BannerTheme.background)("color",e.BannerTheme.color),w(),I(e.BannerLink?1:2)}}function Gm(i,t){i&1&&(g(0,"span",17),b(1," (opens in a new tab)"),y())}function Km(i,t){if(i&1&&(g(0,"a",21),b(1," Textbooks "),Y(2,Gm,2,0,"span",17),y()),i&2){let e=M(5);ie("href",e.normalizeHref(e.TextbookTabRedirect),De),xe("target",e.linkTarget(e.TextbookTabRedirect))("rel",e.linkRel(e.TextbookTabRedirect)),w(2),I(e.opensInNewTab(e.TextbookTabRedirect)?2:-1)}}function Qm(i,t){i&1&&(g(0,"a",22),b(1,"Textbooks"),y())}function Zm(i,t){if(i&1&&Y(0,Km,3,4,"a",21)(1,Qm,2,0,"a",22),i&2){let e=M(4);I(e.TextbookTabRedirect?0:1)}}function Xm(i,t){if(i&1&&(g(0,"a",20),b(1),y()),i&2){let e=t.$implicit;ie("routerLink","/merchandise/"+e.slug),xe("aria-label",e==null?null:e.name),w(),he(" ",e==null?null:e.name," ")}}function Jm(i,t){if(i&1&&(g(0,"a",20),b(1),y()),i&2){let e=t.$implicit;ie("routerLink","/"+e.route),w(),he(" ",e.title||e.route," ")}}function eg(i,t){if(i&1&&(g(0,"nav",18)(1,"a",19),b(2,"Home"),y(),Y(3,Zm,2,1),Ke(4,Xm,2,3,"a",20,zm),Ke(6,Jm,2,2,"a",20,Vm),y()),i&2){let e=M(3);Dt("background-color",e.SiteTheme.background)("color",e.SiteTheme.color),w(3),I(e.ShowTextbookTab?3:-1),w(),Qe(e.Categories),w(2),Qe(e.CustomPages)}}function tg(i,t){if(i&1){let e=be();g(0,"div",2)(1,"div",3),Y(2,qm,3,5,"div",4),g(3,"app-toolbar",5),z("openCart",function(){j(e);let s=M(2);return $(s.openCart(0))})("openMenu",function(){j(e);let s=M(2);return $(s.openOverflowMenu())}),y()(),g(4,"div",6),z("scroll",function(){j(e);let s=M(2);return $(s.checkScrollHeight())}
13),Y(5,eg,8,5,"nav",7),g(6,"main",8)(7,"div",9),q(8,"router-outlet"),y()(),g(9,"app-footer",10),z("openMenu",function(){j(e);let s=M(2);return $(s.openOverflowMenu())}),y()()(),g(10,"aside",11),q(11,"app-chat"),y()}if(i&2){let e=M(2);ie("@fadeIn",void 0),w(),Nt("shadow",e.ToolbarShadow),w(),I(e.BannerText?2:-1),w(2),Nt("is-banner",e.BannerText)("checkout-active",e.isCheckoutRoute),w(),I(e.ActiveRoute!="/checkout"?5:-1)}}function ng(i,t){if(i&1&&(Y(0,tg,12,9),Nn(1,"async")),i&2){let e=M();I(Rn(1,1,e.SiteNotFound)?-1:0)}}function ig(i,t){i&1&&(g(0,"main",23),q(1,"img",24),y())}function rg(i,t){if(i&1&&(Y(0,ig,2,0,"main",23),Nn(1,"async")),i&2){let e=M();I(Rn(1,1,e.SiteNotFound)?-1:0)}}var Hl=(()=>{class i{constructor(e,r,s,c,d,h,f){this.appService=e,this.document=r,this.router=s,this._loginService=c,this._cartService=d,this.bottomSheet=h,this.route=f,this.subscriptions=[],this.createdScripts=[],this.setCheckoutScrollMode(this.router.url),Vs(()=>{this.subscriptions.push(this.route.queryParams.subscribe(m=>{m["referral-id"]&&!this.appService.referralId&&(this.appService.referralId=m["referral-id"]),m["col-id"]&&!this.appService.colId&&(this.appService.colId=m["col-id"]),this.appService.retagSession(m);let C=this.document.location.hostname;this.appService.setSiteMetadata(C),this.subscriptions.push(this._cartService.wishListItemsObservable.pipe(Ct(S=>S&&S.length>0)).subscribe(()=>{this.openCart(1)}))})),this.subscriptions.push(this.router.events.subscribe(m=>{if(!(!(m instanceof ca)||m.url.includes("textbooks")))if(this.setCheckoutScrollMode(m.urlAfterRedirects||m.url),this.isCheckoutRoute)window.scrollTo(0,0);else{let C=r.getElementById("site-container");C&&(C.scrollTop=0)}})),this.setCheckoutScrollMode(this.router.url),this.subscriptions.push(this.appService.siteInfoLoaded.subscribe(m=>{m&&this._insertGTag(this.appService.siteResources.tagId)}))})}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.createdScripts.forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),this.createdScripts=[],this.document.documentElement?.classList?.remove("checkout-active")}_insertGTag(e="GTM-WPH8DBP"){let r=!1,s=()=>{if(!r){if(r=!0,e&&e!=="G-VYMESK4SP5"){let f=this.document.createElement("script");f.setAttribute("async","true"),f.setAttribute("src",`https://www.googletagmanager.com/gtag/js?id=${e}`);let m=this.document.createElement("script");m.innerText=`window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('config', '${e}');`,this.document.documentElement.firstChild.appendChild(f),this.document.documentElement.firstChild.appendChild(m),this.createdScripts.push(f,m)}
13this.appService.schoolCode==="calstudentstore.berkeley.edu"&&this._insertBerkeleySiteImprove()}},c=window,d=c._iub?.cs,h=()=>{let f=c._iub;return f?.cs?!!(f.cs.consent&&typeof f.cs.consent.isConsentGiven=="function"&&f.cs.consent.isConsentGiven()||f.cs.gdprApplies===!1||f.cs.options?.consentOnContinuedBrowsing===!0):!1};if(h()){s();return}this.document.addEventListener("iubenda:consent:given",()=>{s()}),this.document.addEventListener("iubenda:cs:ready",()=>{h()&&s()}),setTimeout(()=>{!this.document.querySelector(".iubenda-cs-container")&&!r&&s()},5e3)}_insertBerkeleySiteImprove(){let e=this.document.createElement("script");e.setAttribute("async","true"),e.setAttribute("src","https://siteimproveanalytics.com/js/siteanalyze_6294756.js"),this.document.documentElement.firstChild.appendChild(e),this.createdScripts.push(e)}openCart(e){this.bottomSheet._openedBottomSheetRef||this.bottomSheet.open(Ka,{data:e,ariaLabel:"Shopping cart"})}checkScrollHeight(){if(this.isCheckoutRoute){this.appService.toolbarShadow=(window.scrollY||0)>0;return}let e=this.document.getElementById("site-container");this.appService.toolbarShadow=!!e&&e.scrollTop>0}onWindowScroll(){this.isCheckoutRoute&&this.checkScrollHeight()}get isCheckoutRoute(){return(this.router.url||"").split("?")[0].startsWith("/checkout")}setCheckoutScrollMode(e){let r=(e||"").split("?")[0].startsWith("/checkout");this.document.documentElement?.classList?.toggle("checkout-active",r)}get BannerText(){return this.appService.siteResources.bannerText}get BannerTextHtml(){let e=this.appService.siteResources?.bannerText;return e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\*\*([^*]+?)\*\*/g,"<strong>$1</strong>"):""}get BannerLink(){return this.appService.siteResources.bannerLink}get BannerTheme(){return Wl(this.appService.siteResources?.bannerTheme)}get Categories(){return this.appService.categories}get CustomPages(){return this.appService.customPages?this.appService.customPages.filter(e=>e.showInToolbar):[]}get ToolbarShadow(){return this.appService.toolbarShadow}search(e){e&&this.router.navigate(["search"],{queryParams:{q:e}}),this.appService.overflowMenu=!1}routeTo(e){this.router.navigate([e]),this.appService.overflowMenu=!1}routeToCategory(e){this.router.navigate([`/merchandise/${e.slug}`]),this.appService.overflowMenu=!1}get SiteCode(){return this.appService.siteInfoLoaded}get SiteNotFound(){return this.appService.siteNotFound}get UserName(){return this._loginService.Customer?this._loginService.Customer.firstName:null}account(){this.router.navigate(["/account"])}login(){this.router.navigate(["/"],{queryParams:{redirect:"account"}})}get ActiveRoute(){return this.router.url}get ShowTextbookTab(){return this.appService.ShowTextbookTab}get TextbookTabRedirect(){return this.appService.TextbookTabRedirect}linkTarget(e){return this.appService.linkTarget(e)}linkRel(e){return this.appService.linkRel(e)}opensInNewTab(e){return this.appService.opensInNewTab(e)}normalizeHref(e){return this.appService.normalizeHref(e)}skipToMainContent(e){e.preventDefault();let r=this.document.getElementById("page-content");if(!r)return;if(r.focus({preventScroll:!0}),this.isCheckoutRoute){let c=r.getBoundingClientRect().top+(window.scrollY||0);window.scrollTo(0,Math.max(0,c));return}let s=this.document.getElementById("site-container");if(s){let c=s.getBoundingClientRect().top,d=r.getBoundingClientRect().top;s.scrollTop+=d-c}}onBannerLinkClick(e,r){if(!r)return;let s=e;if(s.ctrlKey||s.metaKey||s.shiftKey||s.altKey||s.button===1)return;let c=this.appService.toInternalPath(r);c&&(e.preventDefault(),this.router.navigateByUrl(c))}get SiteTheme(){return Mi(this.appService.siteResources?.siteTheme)}openOverflowMenu(){this.bottomSheet.open(tl,{data:{UserName:this.UserName,Categories:this.Categories,ShowTextbookTab:this.ShowTextbookTab,CustomPages:this.CustomPages}}).afterDismissed().subscribe(e=>{if(e)switch(e.name){case"account":this.account();break;case"login":this.login();break;case"search":this.search(e.value);break;case"route":this.routeTo(e.value);break;case"textbooks":{let r=this.appService.TextbookTabRedirect;if(r){let s=this.appService.toInternalPath(r);s?this.router.navigateByUrl(s):window.open(r,"_blank","noopener,noreferrer")}else this.router.navigate(["/textbooks"]);break}case"routeCategory":this.routeToCategory(e.value);return}})}static{this.\u0275fac=function(r){return new(r||i)(se(ve),se(ot),se(un
13),se(It),se(Gi),se(Ia),se(ua))}}static{this.\u0275cmp=Ve({type:i,selectors:[["app-root"]],hostBindings:function(r,s){r&1&&z("scroll",function(){return s.onWindowScroll()},!1,Ws)},decls:8,vars:6,consts:[["aria-label","Skip navigation"],["href","#page-content",1,"skip-link",3,"click"],["id","loaded"],["id","toolbar-area"],["id","banner","role","region","aria-label","Announcements",3,"background-color","color"],[3,"openCart","openMenu"],["id","site-container",3,"scroll"],["id","lower-toolbar","aria-label","Main categories",1,"desktop",3,"background-color","color"],["id","main-content"],["id","page-content","tabindex","-1"],[3,"openMenu"],["aria-label","Chat support"],["id","banner","role","region","aria-label","Announcements"],[3,"href","color"],[3,"color","innerHTML"],[3,"click","href"],[3,"innerHTML"],[1,"sr-only"],["id","lower-toolbar","aria-label","Main categories",1,"desktop"],["routerLink","/","mat-button","",1,"link-button"],["mat-button","",1,"link-button",3,"routerLink"],["id","custom-textbook-button","mat-button","",1,"link-button",3,"href"],["routerLink","/textbooks","mat-button","",1,"link-button"],["aria-label","Loading store",2,"display","flex","justify-content","center","align-items","center","height","100vh","width","100vw"],["width","120px","src","/assets/booksEmpty.png","alt","Loading store content"]],template:function(r,s){r&1&&(g(0,"nav",0)(1,"a",1),z("click",function(d){return s.skipToMainContent(d)}),b(2,"Skip to main content"),y()(),Y(3,Wm,1,0,"app-store-not-found"),Nn(4,"async"),Y(5,ng,2,3),Nn(6,"async"),Y(7,rg,2,3)),r&2&&(w(3),I(Rn(4,2,s.SiteNotFound)?3:-1),w(2),I(Rn(6,4,s.SiteCode)?5:7))},dependencies:[hn,da,dn,el,We,Js,il,ol,Bl,Rt,Aa,zl],styles:["*[_ngcontent-%COMP%]{color:#212121}.skip-link[_ngcontent-%COMP%]{position:absolute;left:-9999px;top:0;z-index:100;padding:8px 16px;background:#212121;color:#fff;font-size:1rem;text-decoration:none}.skip-link[_ngcontent-%COMP%]:focus-visible{left:0}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#site-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100vw;height:calc(100vh - 64px);overflow:auto;overflow-x:hidden;margin-top:64px}#site-container.checkout-active[_ngcontent-%COMP%]{height:auto;min-height:calc(100vh - 64px);overflow:visible}.is-banner[_ngcontent-%COMP%]{height:calc(100vh - 94px)!important;min-height:0;margin-top:94px!important}.is-banner.checkout-active[_ngcontent-%COMP%]{height:auto!important;min-height:calc(100vh - 94px)}#banner[_ngcontent-%COMP%]{width:100%;min-height:30px;text-align:center;display:flex;align-items:center;justify-content:center;font-size:.875rem}#banner[_ngcontent-%COMP%] span[_ngcontent-%COMP%], #banner[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;padding:4px}#banner[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}#banner[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}#lower-toolbar[_ngcontent-%COMP%]{margin:0;padding:0 12px;width:100%;max-width:1400px;box-sizing:border-box;min-height:75px;display:flex;justify-content:flex-start;overflow-x:auto}#lower-toolbar[_ngcontent-%COMP%] a.link-button[_ngcontent-%COMP%]{height:100%;font-size:1rem;font-weight:700;color:inherit;margin:0 8px;box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;min-width:120px;line-height:75px;padding:0 16px;border-radius:4px;overflow:visible;flex-shrink:0}#lower-toolbar[_ngcontent-%COMP%] a.link-button[_ngcontent-%COMP%]:hover{background-color:color-mix(in srgb,currentColor 10%,transparent)}.transparent[_ngcontent-%COMP%]{margin:0!important;background:#fff!important}#main-content[_ngcontent-%COMP%]{flex-grow:1;width:100%;max-width:1400px;background:#fff;position:relative}#page-content[_ngcontent-%COMP%]:focus{outline:none}#toolbar-area[_ngcontent-%COMP%]{position:fixed;width:100%;top:0;z-index:5;background-color:#fff}.shadow[_ngcontent-%COMP%]{box-shadow:0 2px 4px #9e9e9e}#toolbar[_ngcontent-%COMP%]{background:#fff;padding:12px;display:flex;align-items:center}#toolbar[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{opacity:.54;margin-right:12px}#toolbar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:.8125rem}#search-box[_ngcontent-%COMP%]{height:42px;display:flex;align-items:center;position:relative;overflow:hidden;flex:1;width:calc(100% - 24px);border-radius:21px;background:#f5f5f5;margin:12px;max-width:75vw;min-width:250px}#search-box[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{padding:4px;color:inherit;opacity:.54;margin-right:8px;margin-left:8px}#search-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:none;border:none;font-size:.875rem;color:inherit;flex-grow:1;height:36px;padding-right:16px;width:100%;margin-bottom:2px}#search-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:inherit;opacity:.75}.cats[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(80vh - 145px);overflow:scroll}.cats[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.cats[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:24px}.cats[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] .mat-list-text[_ngcontent-%COMP%]{padding:0!important}.mobile[_ngcontent-%COMP%]{display:none}"],data:{animation:[ki("fadeIn",[Un(":enter",[at({opacity:0}
13),Ln("250ms 800ms ease-out",at({opacity:1}))])])]}})}}return i})();var jl=(()=>{class i{constructor(e,r){this._router=e,this._loginService=r}canActivate(e,r){return this._loginService.getAuthToken()?Vt(!0):(this._router.navigate(["/"],{queryParams:{redirect:"account"}}),!1)}static{this.\u0275fac=function(r){return new(r||i)(Te(un),Te(It))}}static{this.\u0275prov=it({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var $l=[{path:"home",redirectTo:"/",pathMatch:"full"},{path:"privacy-policy",title:"Privacy Policy",loadComponent:()=>import("./chunk-DIGQRNPH.js").then(i=>i.PrivacyPolicyComponent)},{path:"terms-of-use",title:"Terms of Use",loadComponent:()=>import("./chunk-SOJIDZKV.js").then(i=>i.TermsOfUseComponent)},{path:"end-user-agreement",title:"End User Agreement",loadComponent:()=>import("./chunk-L32OV45Z.js").then(i=>i.EndUserAgreementComponent)},{path:"return-policy",title:"Return Policy",loadComponent:()=>import("./chunk-DEMI7BFP.js").then(i=>i.ReturnPolicyComponent)},{path:"shipping-policy",title:"Shipping Policy",loadComponent:()=>import("./chunk-JB6WCVLW.js").then(i=>i.ShippingPolicyComponent)},{path:"about",title:"About Us",loadComponent:()=>import("./chunk-XB646P3G.js").then(i=>i.AboutComponent)},{path:"contact",title:"Contact Us",loadComponent:()=>import("./chunk-PY5IQPJJ.js").then(i=>i.ContactComponent)},{path:"account",title:"My Account",loadChildren:()=>import("./chunk-P5737UAQ.js").then(i=>i.AccountRoutes),canActivate:[jl]},{path:"textbooks",title:"Find Your Textbooks",loadComponent:()=>import("./chunk-X4ZH5R2N.js").then(i=>i.AdoptionsComponent)},{path:"textbook",title:"Find Your Textbooks",loadComponent:()=>import("./chunk-X4ZH5R2N.js").then(i=>i.AdoptionsComponent)},{path:"merchandise/:category",title:"Shop Merchandise",resolve:{searchResult:i=>{let t=Ee(Fn),e=Ee(ve);return e.siteInfoLoaded.pipe(Ct(r=>r),Wt(1),Ot(()=>{let r=e.siteResources.searchUrl,s=i.paramMap.get("category"),c=i.queryParamMap.get("page")||"1",d=i.queryParamMap.get("sort")||"nameAsc",h=i.queryParamMap.get("featured")||"",f=new In().set("page",c).set("limit","30");return s&&(f=f.set("category-slug",encodeURIComponent(s))),d&&(f=f.set("sort",d)),h&&(f=f.set("featuredOnly","true")),t.get(r,{params:f})}),nt(()=>Vt(null)))}},loadComponent:()=>import("./chunk-GPDPMTDJ.js").then(i=>i.MerchandiseComponent)},{path:"search",title:"Search Results",loadComponent:()=>import("./chunk-DVUBMXUT.js").then(i=>i.SearchComponent)},{path:"build",title:"Review Your Order",loadComponent:()=>import("./chunk-EWI73LTN.js").then(i=>i.CartBuilderComponent)},{path:"facebook-checkout",title:"Facebook Checkout",loadComponent:()=>import("./chunk-JFJI6FSL.js").then(i=>i.FacebookCheckoutComponent)},{path:"products/:id",title:"Product Details",resolve:{product:i=>{let t=Ee(Fn),e=Ee(ve);return e.siteInfoLoaded.pipe(Ct(r=>r),Wt(1),Ot(()=>{let r=e.siteResources.variantProductUrl,s=new In().set("slug",i.paramMap.get("id"));return t.get(r,{params:s})}),nt(()=>Vt(null)))}},loadComponent:()=>import("./chunk-G42J5OV2.js").then(i=>i.ProductsComponent)},{path:"title/:id",title:"Book Details",resolve:{book:i=>{let t=Ee(Fn),e=Ee(ve);return e.siteInfoLoaded.pipe(Ct(r=>r),Wt(1),Ot(()=>{let r=e.siteResources.networkTitleUrl,s=new In().set("isbn",i.paramMap.get("id"));return t.get(r,{params:s})}),nt(()=>Vt(null)))}},loadComponent:()=>import("./chunk-ULRH6DRX.js").then(i=>i.TitleComponent)},{path:"ebook/:id",title:"eBook Details",resolve:{eBook:i=>{let t=Ee(Fn),e=Ee(ve);return e.siteInfoLoaded.pipe(Ct(r=>r),Wt(1),Ot(()=>{let r=e.siteResources.eBookUrl,s=new In().set("vital-book-id",i.paramMap.get("id"));return t.get(r,{params:s})}),nt(()=>Vt(null)))}},loadComponent:()=>import("./chunk-YQWMFSU7.js").then(i=>i.EBookComponent)},{path:"checkout",title:"Checkout",loadComponent:()=>import("./chunk-AAWF5EKB.js").then(i=>i.CheckoutComponent)},{path:"collect",title:"Customer Information",loadComponent:()=>import("./chunk-3ZZXURFK.js").then(i=>i.CustomerCollateralComponent)},{path:"developers/api/docs",title:"API Documentation",loadComponent:()=>import("./chunk-CUPPFJ6R.js").then(i=>i.DocsComponent)},{path:"reset-password/:token",title:"Reset Password",loadComponent:()=>import("./chunk-P7NHCUXX.js").then(i=>i.ResetPasswordComponent)},{path:"verify-account/:token",title:"Verify Account",loadComponent:()=>import("./chunk-JXUTKMTB.js").then(i=>i.VerifyAccountComponent)},{path:"order-confirmation",title:"Order Confirmation",loadComponent:()=>import("./chunk-FDIRJH2Y.js").then(i=>i.OrderSuccessComponent)},{path:"page-not-found",title:"Page Not Found",loadComponent:()=>import("./chunk-YZVOV7CT.js").then(i=>i.PageNotFoundComponent)},{path:"",title:"Home",loadComponent:()=>import("./chunk-Q7WXYEAQ.js").then(i=>i.HomeComponent),pathMatch:"full"},{path:"**",loadComponent:()=>import("./chunk-64NWPDG5.js").then(i=>i.CustomPagesComponent)}];var ql=(()=>{class i extends Si{constructor(e,r){super(),this.title=e,this.appService=r}updateTitle(e){let r=this.buildTitle(e),s=this.appService.siteResources?.locationName||"Campus Bookstore";r?this.title.setTitle(`${r} | ${s}`):this.title.setTitle(s)}static{this.\u0275fac=function(r){return new(r||i)(Te(sa),Te(ve))}}static{this.\u0275prov=it({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ql="functions";var po=class{constructor(t,e,r,s){this.app=t,this.auth=null,this.messaging=null,this.appCheck=null,this.serverAppAppCheckToken=null,Li(t)&&t.settings.appCheckToken&&(this.serverAppAppCheckToken=t.settings.appCheckToken),this.auth=e.getImmediate({optional:!0}),this.messaging=r.getImmediate({optional:!0}),this.auth||e.get().then(c=>this.auth=c,()=>{}),this.messaging||r.get().then(c=>this.messaging=c,()=>{}),this.appCheck||s?.get().then(c=>this.appCheck=c,()=>{})}getAuthToken(){return Ae(this,null,function*(){if(this.auth)try{let t=yield this.auth.getToken();return t?.accessToken}catch{return}})}getMessagingToken(){return Ae(this,null,function*(){if(!(!this.messaging||!("Notification"in self)||Notification.permission!=="granted"))try{return yield this.messaging.getToken()}catch{return}})}getAppCheckToken(t){return Ae(this,null,function*(){if(this.serverAppAppCheckToken)return this.serverAppAppCheckToken;if(this.appCheck){let e=t?yield this.appCheck.getLimitedUseToken():yield this.appCheck.getToken();return e.error?null:e.token}return null})}getContext(t){return Ae(this,null,function*(){let e=yield this.getAuthToken(),r=yield this.getMessagingToken(),s=yield this.getAppCheckToken(t);
13return{authToken:e,messagingToken:r,appCheckToken:s}})}};var mo="us-central1";var go=class{constructor(t,e,r,s,c=mo,d=(...h)=>fetch(...h)){this.app=t,this.fetchImpl=d,this.emulatorOrigin=null,this.contextProvider=new po(t,e,r,s),this.cancelAllRequests=new Promise(h=>{this.deleteService=()=>Promise.resolve(h())});try{let h=new URL(c);this.customDomain=h.origin+(h.pathname==="/"?"":h.pathname),this.region=mo}catch{this.customDomain=null,this.region=c}}_delete(){return this.deleteService()}_url(t){let e=this.app.options.projectId;return this.emulatorOrigin!==null?`${this.emulatorOrigin}/${e}/${this.region}/${t}`:this.customDomain!==null?`${this.customDomain}/${t}`:`https://${this.region}-${e}.cloudfunctions.net/${t}`}};function og(i,t,e){let r=Yn(t);i.emulatorOrigin=`http${r?"s":""}://${t}:${e}`,r&&(Di(i.emulatorOrigin),Ni("Functions",!0))}var Gl="@firebase/functions",Kl="0.12.9";var sg="auth-internal",ag="app-check-internal",lg="messaging-internal";function cg(i){let t=(e,{instanceIdentifier:r})=>{let s=e.getProvider("app").getImmediate(),c=e.getProvider(sg),d=e.getProvider(lg),h=e.getProvider(ag);return new go(s,c,d,h,r)};Ii(new Ri(Ql,t,"PUBLIC").setMultipleInstances(!0)),ct(Gl,Kl,i),ct(Gl,Kl,"esm2017")}function Zl(i=Ui(),t=mo){let r=Fi(Ft(i),Ql).getImmediate({identifier:t}),s=Ai("functions");return s&&Xl(r,...s),r}function Xl(i,t,e){og(Ft(i),t,e)}cg();var $n=class{constructor(t){return t}},Jl="functions",_o=class{constructor(){return zi(Jl)}};var yo=new yi("angularfire2.functions-instances");function ug(i,t){let e=Bi(Jl,i,t);return e&&new $n(e)}function dg(i){return(t,e)=>{let r=t.runOutsideAngular(()=>i(e));return new $n(r)}}var hg={provide:_o,deps:[[new rt,yo]]},fg={provide:$n,useFactory:ug,deps:[[new rt,yo],Wi]};function ec(i,...t){return ct("angularfire",Yi.full,"fn"),bi([fg,hg,{provide:yo,useFactory:dg(i),multi:!0,deps:[an,vi,Vi,Hi,[new rt,$i],[new rt,ji],...t]}])}var tc=Ht(Zl,!0);function nc(i){return new J(3e3,!1)}function pg(){return new J(3100,!1)}function mg(){return new J(3101,!1)}function gg(i){return new J(3001,!1)}function _g(i){return new J(3003,!1)}function yg(i){return new J(3004,!1)}function bg(i,t){return new J(3005,!1)}function vg(){return new J(3006,!1)}function wg(){return new J(3007,!1)}function Cg(i,t){return new J(3008,!1)}function Sg(i){return new J(3002,!1)}function kg(i,t,e,r,s){return new J(3010,!1)}function xg(){return new J(3011,!1)}function Mg(){return new J(3012,!1)}function Tg(){return new J(3200,!1)}function Eg(){return new J(3202,!1)}function Pg(){return new J(3013,!1)}function Og(i){return new J(3014,!1)}function Ag(i){return new J(3015,!1)}function Dg(i){return new J(3016,!1)}function Ng(i,t){return new J(3404,!1)}function Rg(i){return new J(3502,!1)}function Ig(i){return new J(3503,!1)}function Fg(){return new J(3300,!1)}function Lg(i){return new J(3504,!1)}function Ug(i){return new J(3301,!1)}function Yg(i,t){return new J(3302,!1)}function Bg(i){return new J(3303,!1)}function zg(i,t){return new J(3400,!1)}function Vg(i){return new J(3401,!1)}function Wg(i){return new J(3402,!1)}function Hg(i,t){return new J(3505,!1)}function Ut(i){switch(i.length){case 0:return new fn;case 1:return i[0];default:return new qr(i)}}function gc(i,t,e=new Map,r=new Map){let s=[],c=[],d=-1,h=null;if(t.forEach(f=>{let m=f.get("offset"),C=m==d,S=C&&h||new Map;f.forEach((O,D)=>{let v=D,N=O;if(D!=="offset")switch(v=i.normalizePropertyName(v,s),N){case xi:N=e.get(D);break;case st:N=r.get(D);break;default:N=i.normalizeStyleValue(D,v,N,s);break}S.set(v,N)}),C||c.push(S),h=S,d=m}),s.length)throw Rg(s);return c}function Bo(i,t,e,r){switch(t){case"start":i.onStart(()=>r(e&&bo(e,"start",i)));break;case"done":i.onDone(()=>r(e&&bo(e,"done",i)));break;case"destroy":i.onDestroy(()=>r(e&&bo(e,"destroy",i)));break}}function bo(i,t,e){let r=e.totalTime,s=!!e.disabled,c=zo(i.element,i.triggerName,i.fromState,i.toState,t||i.phaseName,r??i.totalTime,s),d=i._data;return d!=null&&(c._data=d),c}function zo(i,t,e,r,s="",c=0,d){return{element:i,triggerName:t,fromState:e,toState:r,phaseName:s,totalTime:c,disabled:!!d}}function Le(i,t,e){let r=i.get(t);return r||i.set(t,r=e),r}function ic(i){let t=i.indexOf(":"),e=i.substring(1,t),r=i.slice(t+1);return[e,r]}var jg=typeof document>"u"?null:document.documentElement;function Vo(i){let t=i.parentNode||i.host||null;return t===jg?null:t}function $g(i){return i.substring(1,6)=="ebkit"}var $t=null,rc=!1;function qg(i){$t||($t=Gg()||{},rc=$t.style?"WebkitAppearance"in $t.style:!1);let t=!0;return $t.style&&!$g(i)&&(t=i in $t.style,!t&&rc&&(t="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in $t.style)),t}function Gg(){return typeof document<"u"?document.body:null}function _c(i,t){for(;t;){if(t===i)return!0;t=Vo(t)}return!1}function yc(i,t,e){if(e)return Array.from(i.querySelectorAll(t));let r=i.querySelector(t);return r?[r]:[]}var Wo=(()=>{class i{validateStyleProperty(e){return qg(e)}containsElement(e,r){return _c(e,r)}getParentElement(e){return Vo(e)}query(e,r,s){return yc(e,r,s)}computeStyle(e,r,s){return s||""}animate(e,r,s,c,d,h=[],f){return new fn(s,c)}static \u0275fac=function(r){return new(r||i)};static \u0275prov=it({token:i,factory:i.\u0275fac})}return i})(),Kt=class{static NOOP=new Wo},Qt=class{};var Kg=1e3,bc="{{",Qg="}}",vc="ng-enter",xo="ng-leave",nr="ng-trigger",ar=".ng-trigger",oc="ng-animating",Mo=".ng-animating";function St(i){if(typeof i=="number")return i;let t=i.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:To(parseFloat(t[1]),t[2])}function To(i,t){switch(t){case"s":return i*Kg;default:return i}}function lr(i,t,e){return i.hasOwnProperty("duration")?i:Zg(i,t,e)}function Zg(i,t,e){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,c=0,d="";if(typeof i=="string"){let h=i.match(r);if(h===null)return t.push(nc(i)),{duration:0,delay:0,easing:""};s=To(parseFloat(h[1]),h[2]);let f=h[3];f!=null&&(c=To(parseFloat(f),h[4]));let m=h[5];m&&(d=m)}else s=i;if(!e){let h=!1,f=t.length;s<0&&(t.push(pg()),h=!0),c<0&&(t.push(mg()),h=!0),h&&t.splice(f,0,nc(i))}return{duration:s,delay:c,easing:d}}function Xg(i){return i.length?i[0]instanceof Map?i:i.map(t=>new Map(Object.entries(t))):[]}function ht(i,t,e){t.forEach((r,s)=>{let c=Ho(s);e&&!e.has(s)&&e.set(s,i.style[c]),i.style[c]=r})}function Gt(i,t){t.forEach((e,r)=>{let s=Ho(r);i.style[s]=""})}function qn(i){return Array.isArray(i)?i.length==1?i[0]:pa(i):i}function Jg(i,t,e){let r=t.params||{},s=wc(i);
vendor: 47,439 bytes, line 13
13s.length&&s.forEach(c=>{r.hasOwnProperty(c)||e.push(gg(c))})}var Eo=new RegExp(`${bc}\\s*(.+?)\\s*${Qg}`,"g");function wc(i){let t=[];if(typeof i=="string"){let e;for(;e=Eo.exec(i);)t.push(e[1]);Eo.lastIndex=0}return t}function Kn(i,t,e){let r=`${i}`,s=r.replace(Eo,(c,d)=>{let h=t[d];return h==null&&(e.push(_g(d)),h=""),h.toString()});return s==r?i:s}var e_=/-+([a-z0-9])/g;function Ho(i){return i.replace(e_,(...t)=>t[1].toUpperCase())}function t_(i,t){return i===0||t===0}function n_(i,t,e){if(e.size&&t.length){let r=t[0],s=[];if(e.forEach((c,d)=>{r.has(d)||s.push(d),r.set(d,c)}),s.length)for(let c=1;c<t.length;c++){let d=t[c];s.forEach(h=>d.set(h,jo(i,h)))}}return t}function Fe(i,t,e){switch(t.type){case Q.Trigger:return i.visitTrigger(t,e);case Q.State:return i.visitState(t,e);case Q.Transition:return i.visitTransition(t,e);case Q.Sequence:return i.visitSequence(t,e);case Q.Group:return i.visitGroup(t,e);case Q.Animate:return i.visitAnimate(t,e);case Q.Keyframes:return i.visitKeyframes(t,e);case Q.Style:return i.visitStyle(t,e);case Q.Reference:return i.visitReference(t,e);case Q.AnimateChild:return i.visitAnimateChild(t,e);case Q.AnimateRef:return i.visitAnimateRef(t,e);case Q.Query:return i.visitQuery(t,e);case Q.Stagger:return i.visitStagger(t,e);default:throw yg(t.type)}}function jo(i,t){return window.getComputedStyle(i)[t]}var i_=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),cr=class extends Qt{normalizePropertyName(t,e){return Ho(t)}normalizeStyleValue(t,e,r,s){let c="",d=r.toString().trim();if(i_.has(e)&&r!==0&&r!=="0")if(typeof r=="number")c="px";else{let h=r.match(/^[+-]?[\d\.]+([a-z]*)$/);h&&h[1].length==0&&s.push(bg(t,r))}return d+c}};var ur="*";function r_(i,t){let e=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(r=>o_(r,e,t)):e.push(i),e}function o_(i,t,e){if(i[0]==":"){let f=s_(i,e);if(typeof f=="function"){t.push(f);return}i=f}let r=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return e.push(Ag(i)),t;let s=r[1],c=r[2],d=r[3];t.push(sc(s,d));let h=s==ur&&d==ur;c[0]=="<"&&!h&&t.push(sc(d,s))}function s_(i,t){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,r)=>parseFloat(r)>parseFloat(e);case":decrement":return(e,r)=>parseFloat(r)<parseFloat(e);default:return t.push(Dg(i)),"* => *"}}var ir=new Set(["true","1"]),rr=new Set(["false","0"]);function sc(i,t){let e=ir.has(i)||rr.has(i),r=ir.has(t)||rr.has(t);return(s,c)=>{let d=i==ur||i==s,h=t==ur||t==c;return!d&&e&&typeof s=="boolean"&&(d=s?ir.has(i):rr.has(i)),!h&&r&&typeof c=="boolean"&&(h=c?ir.has(t):rr.has(t)),d&&h}}var Cc=":self",a_=new RegExp(`s*${Cc}s*,?`,"g");function Sc(i,t,e,r){return new Po(i).build(t,e,r)}var ac="",Po=class{_driver;constructor(t){this._driver=t}build(t,e,r){let s=new Oo(e);return this._resetContextStyleTimingState(s),Fe(this,qn(t),s)}_resetContextStyleTimingState(t){t.currentQuerySelector=ac,t.collectedStyles=new Map,t.collectedStyles.set(ac,new Map),t.currentTime=0}visitTrigger(t,e){let r=e.queryCount=0,s=e.depCount=0,c=[],d=[];return t.name.charAt(0)=="@"&&e.errors.push(vg()),t.definitions.forEach(h=>{if(this._resetContextStyleTimingState(e),h.type==Q.State){let f=h,m=f.name;m.toString().split(/\s*,\s*/).forEach(C=>{f.name=C,c.push(this.visitState(f,e))}),f.name=m}else if(h.type==Q.Transition){let f=this.visitTransition(h,e);r+=f.queryCount,s+=f.depCount,d.push(f)}else e.errors.push(wg())}),{type:Q.Trigger,name:t.name,states:c,transitions:d,queryCount:r,depCount:s,options:null}}visitState(t,e){let r=this.visitStyle(t.styles,e),s=t.options&&t.options.params||null;if(r.containsDynamicStyles){let c=new Set,d=s||{};r.styles.forEach(h=>{h instanceof Map&&h.forEach(f=>{wc(f).forEach(m=>{d.hasOwnProperty(m)||c.add(m)})})}),c.size&&e.errors.push(Cg(t.name,[...c.values()]))}return{type:Q.State,name:t.name,style:r,options:s?{params:s}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let r=Fe(this,qn(t.animation),e),s=r_(t.expr,e.errors);return{type:Q.Transition,matchers:s,animation:r,queryCount:e.queryCount,depCount:e.depCount,options:qt(t.options)}}visitSequence(t,e){return{type:Q.Sequence,steps:t.steps.map(r=>Fe(this,r,e)),options:qt(t.options)}}visitGroup(t,e){let r=e.currentTime,s=0,c=t.steps.map(d=>{e.currentTime=r;let h=Fe(this,d,e);return s=Math.max(s,e.currentTime),h});return e.currentTime=s,{type:Q.Group,steps:c,options:qt(t.options)}}visitAnimate(t,e){let r=d_(t.timings,e.errors);e.currentAnimateTimings=r;let s,c=t.styles?t.styles:at({});if(c.type==Q.Keyframes)s=this.visitKeyframes(c,e);else{let d=t.styles,h=!1;if(!d){h=!0;let m={};r.easing&&(m.easing=r.easing),d=at(m)}e.currentTime+=r.duration+r.delay;let f=this.visitStyle(d,e);f.isEmptyStep=h,s=f}return e.currentAnimateTimings=null,{type:Q.Animate,timings:r,style:s,options:null}}visitStyle(t,e){let r=this._makeStyleAst(t,e);return this._validateStyleAst(r,e),r}_makeStyleAst(t,e){let r=[],s=Array.isArray(t.styles)?t.styles:[t.styles];for(let h of s)typeof h=="string"?h===st?r.push(h):e.errors.push(Sg(h)):r.push(new Map(Object.entries(h)));let c=!1,d=null;return r.forEach(h=>{if(h instanceof Map&&(h.has("easing")&&(d=h.get("easing"),h.delete("easing")),!c)){for(let f of h.values())if(f.toString().indexOf(bc)>=0){c=!0;break}}}),{type:Q.Style,styles:r,easing:d,offset:t.offset,containsDynamicStyles:c,options:null}}_validateStyleAst(t,e){let r=e.currentAnimateTimings,s=e.currentTime,c=e.currentTime;r&&c>0&&(c-=r.duration+r.delay),t.styles.forEach(d=>{typeof d!="string"&&d.forEach((h,f)=>{let m=e.collectedStyles.get(e.currentQuerySelector),C=m.get(f),S=!0;C&&(c!=s&&c>=C.startTime&&s<=C.endTime&&(e.errors.push(kg(f,C.startTime,C.endTime,c,s)),S=!1),c=C.startTime),S&&m.set(f,{startTime:c,endTime:s}),e.options&&Jg(h,e.options,e.errors)})})}visitKeyframes(t,e){let r={type:Q.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(xg()),r;let s=1,c=0,d=[],h=!1,f=!1,m=0,C=t.steps.map(Z=>{let V=this._makeStyleAst(Z,e),G=V.offset!=null?V.offset:u_(V.styles),U=0;return G!=null&&(c++,U=V.offset=G),f=f||U<0||U>1,h=h||U<m,m=U,d.push(U),V});f&&e.errors.push(Mg()),h&&e.errors.push(Tg());let S=t.steps.length,O=0;c>0&&c<S?e.errors.push(Eg()):c==0&&(O=s/(S-1));let D=S-1,v=e.currentTime,N=e.currentAnimateTimings,L=N.duration;return C.forEach((Z,V)=>{let G=O>0?V==D?1:O*V:d[V],U=G*L;e.currentTime=v+N.delay+U,N.duration=U,this._validateStyleAst(Z,e),Z.offset=G,r.styles.push(Z)}),r}visitReference(t,e){return{type:Q.Reference,animation:Fe(this,qn(t.animation),e),options:qt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:Q.AnimateChild,options:qt(t.options)}}visitAnimateRef(t,e){return{type:Q.AnimateRef,animation:this.visitReference(t.animation,e),options:qt(t.options)}}visitQuery(t,e){let r=e.currentQuerySelector,s=t.options||{};e.queryCount++,e.currentQuery=t;let[c,d]=l_(t.selector);e.currentQuerySelector=r.length?r+" "+c:c,Le(e.collectedStyles,e.currentQuerySelector,new Map);let h=Fe(this,qn(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:Q.Query,selector:c,limit:s.limit||0,optional:!!s.optional,includeSelf:d,animation:h,originalSelector:t.selector,options:qt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(Pg());let r=t.timings==="full"?{duration:0,delay:0,easing:"full"}:lr(t.timings,e.errors,!0);return{type:Q.Stagger,animation:Fe(this,qn(t.animation),e),timings:r,options:null}}};function l_(i){let t=!!i.split(/\s*,\s*/).find(e=>e==Cc);return t&&(i=i.replace(a_,"")),i=i.replace(/@\*/g,ar).replace(/@\w+/g,e=>ar+"-"+e.slice(1)).replace(/:animating/g,Mo),[i,t]}function c_(i){return i?Pt({},i):null}var Oo=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(t){this.errors=t}};function u_(i){if(typeof i=="string")return null;let t=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){let r=e;t=parseFloat(r.get("offset")),r.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let e=i;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function d_(i,t){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let c=lr(i,t).duration;return vo(c,0,"")}let e=i;if(e.split(/\s+/).some(c=>c.charAt(0)=="{"&&c.charAt(1)=="{")){let c=vo(0,0,"");return c.dynamic=!0,c.strValue=e,c}let s=lr(e,t);return vo(s.duration,s.delay,s.easing)}function qt(i){return i?(i=Pt({},i),i.params&&(i.params=c_(i.params))):i={},i}function vo(i,t,e){return{duration:i,delay:t,easing:e}}function $o(i,t,e,r,s,c,d=null,h=!1){return{type:1,element:i,keyframes:t,preStyleProps:e,postStyleProps:r,duration:s,delay:c,totalTime:s+c,easing:d,subTimeline:h}}var Qn=class{_map=new Map;get(t){return this._map.get(t)||[]}append(t,e){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}},h_=1,f_=":enter",p_=new RegExp(f_,"g"),m_=":leave",g_=new RegExp(m_,"g");function kc(i,t,e,r,s,c=new Map,d=new Map,h,f,m=[]){return new Ao().buildKeyframes(i,t,e,r,s,c,d,h,f,m)}var Ao=class{buildKeyframes(t,e,r,s,c,d,h,f,m,C=[]){m=m||new Qn;let S=new Do(t,e,m,s,c,C,[]);S.options=f;let O=f.delay?St(f.delay):0;S.currentTimeline.delayNextStep(O),S.currentTimeline.setStyles([d],null,S.errors,f),Fe(this,r,S);let D=S.timelines.filter(v=>v.containsAnimation());if(D.length&&h.size){let v;for(let N=D.length-1;N>=0;N--){let L=D[N];if(L.element===e){v=L;break}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([h],null,S.errors,f)}return D.length?D.map(v=>v.buildKeyframes()):[$o(e,[],[],[],0,O,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let r=e.subInstructions.get(e.element);if(r){let s=e.createSubContext(t.options),c=e.currentTimeline.currentTime,d=this._visitSubInstructions(r,s,s.options);c!=d&&e.transformIntoNewTimeline(d)}e.previousNode=t}visitAnimateRef(t,e){let r=e.createSubContext(t.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,r),this.visitReference(t.animation,r),e.transformIntoNewTimeline(r.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,r){for(let s of t){let c=s?.delay;if(c){let d=typeof c=="number"?c:St(Kn(c,s?.params??{},e.errors));r.delayNextStep(d)}}}_visitSubInstructions(t,e,r){let c=e.currentTimeline.currentTime,d=r.duration!=null?St(r.duration):null,h=r.delay!=null?St(r.delay):null;return d!==0&&t.forEach(f=>{let m=e.appendInstructionToTimeline(f,d,h);c=Math.max(c,m.duration+m.delay)}),c}visitReference(t,e){e.updateOptions(t.options,!0),Fe(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let r=e.subContextCount,s=e,c=t.options;if(c&&(c.params||c.delay)&&(s=e.createSubContext(c),s.transformIntoNewTimeline(),c.delay!=null)){s.previousNode.type==Q.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=dr);let d=St(c.delay);s.delayNextStep(d)}t.steps.length&&(t.steps.forEach(d=>Fe(this,d,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>r&&s.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let r=[],s=e.currentTimeline.currentTime,c=t.options&&t.options.delay?St(t.options.delay):0;t.steps.forEach(d=>{let h=e.createSubContext(t.options);c&&h.delayNextStep(c),Fe(this,d,h),s=Math.max(s,h.currentTimeline.currentTime),r.push(h.currentTimeline)}),r.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(s),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let r=t.strValue,s=e.params?Kn(r,e.params,e.errors):r;return lr(s,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let r=e.currentAnimateTimings=this._visitTiming(t.timings,e),s=e.currentTimeline;r.delay&&(e.incrementTime(r.delay),s.snapshotCurrentStyles());let c=t.style;c.type==Q.Keyframes?this.visitKeyframes(c,e):(e.incrementTime(r.duration),this.visitStyle(c,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let r=e.currentTimeline,s=e.currentAnimateTimings;!s&&r.hasCurrentStyleProperties()&&r.forwardFrame();let c=s&&s.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(c):r.setStyles(t.styles,c,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let r=e.currentAnimateTimings,s=e.currentTimeline.duration,c=r.duration,h=e.createSubContext().currentTimeline;h.easing=r.easing,t.styles.forEach(f=>{let m=f.offset||0;h.forwardTime(m*c),h.setStyles(f.styles,f.easing,e.errors,e.options),h.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(h),e.transformIntoNewTimeline(s+c),e.previousNode=t}visitQuery(t,e){let r=e.currentTimeline.currentTime,s=t.options||{},c=s.delay?St(s.delay):0;c&&(e.previousNode.type===Q.Style||r==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=dr);let d=r,h=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=h.length;let f=null;h.forEach((m,C)=>{e.currentQueryIndex=C;let S=e.createSubContext(t.options,m);c&&S.delayNextStep(c),m===e.element&&(f=S.currentTimeline),Fe(this,t.animation,S),S.currentTimeline.applyStylesToKeyframe();let O=S.currentTimeline.currentTime;d=Math.max(d,O)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),f&&(e.currentTimeline.mergeTimelineCollectedStyles(f),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let r=e.parentContext,s=e.currentTimeline,c=t.timings,d=Math.abs(c.duration),h=d*(e.currentQueryTotal-1),f=d*e.currentQueryIndex;switch(c.duration<0?"reverse":c.easing){case"reverse":f=h-f;break;case"full":f=r.currentStaggerTime;break}let C=e.currentTimeline;f&&C.delayNextStep(f);let S=C.currentTime;Fe(this,t.animation,e),e.previousNode=t,r.currentStaggerTime=s.currentTime-S+(s.startTime-r.currentTimeline.startTime)}},dr={},Do=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=dr;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(t,e,r,s,c,d,h,f){this._driver=t,this.element=e,this.subInstructions=r,this._enterClassName=s,this._leaveClassName=c,this.errors=d,this.timelines=h,this.currentTimeline=f||new hr(this._driver,e,0),h.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let r=t,s=this.options;r.duration!=null&&(s.duration=St(r.duration)),r.delay!=null&&(s.delay=St(r.delay));let c=r.params;if(c){let d=s.params;d||(d=this.options.params={}),Object.keys(c).forEach(h=>{(!e||!d.hasOwnProperty(h))&&(d[h]=Kn(c[h],d,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let r=t.params={};Object.keys(e).forEach(s=>{r[s]=e[s]})}}return t}createSubContext(t=null,e,r){let s=e||this.element,c=new i(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,r||0));return c.previousNode=this.previousNode,c.currentAnimateTimings=this.currentAnimateTimings,c.options=this._copyOptions(),c.updateOptions(t),c.currentQueryIndex=this.currentQueryIndex,c.currentQueryTotal=this.currentQueryTotal,c.parentContext=this,this.subContextCount++,c}transformIntoNewTimeline(t){return this.previousNode=dr,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,r){let s={duration:e??t.duration,delay:this.currentTimeline.currentTime+(r??0)+t.delay,easing:""},c=new No(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(c),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,r,s,c,d){let h=[];if(s&&h.push(this.element),t.length>0){t=t.replace(p_,"."+this._enterClassName),t=t.replace(g_,"."+this._leaveClassName);let f=r!=1,m=this._driver.query(this.element,t,f);r!==0&&(m=r<0?m.slice(m.length+r,m.length):m.slice(0,r)),h.push(...m)}return!c&&h.length==0&&d.push(Og(e)),h}},hr=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(t,e,r,s){this._driver=t,this.element=e,this.startTime=r,this._elementTimelineStylesLookup=s,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new i(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=h_,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,r]of this._globalTimelineStyles)this._backFill.set(e,r||st),this._currentKeyframe.set(e,st);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,r,s){e&&this._previousKeyframe.set("easing",e);let c=s&&s.params||{},d=__(t,this._globalTimelineStyles);for(let[h,f]of d){let m=Kn(f,c,r);this._pendingStyles.set(h,m),this._localTimelineStyles.has(h)||this._backFill.set(h,this._globalTimelineStyles.get(h)??st),this._updateStyle(h,m)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,r)=>{let s=this._styleSummary.get(r);(!s||e.time>s.time)&&this._updateStyle(r,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,r=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((h,f)=>{let m=new Map([...this._backFill,...h]);m.forEach((C,S)=>{C===xi?t.add(S):C===st&&e.add(S)}),r||m.set("offset",f/this.duration),s.push(m)});let c=[...t.values()],d=[...e.values()];if(r){let h=s[0],f=new Map(h);h.set("offset",0),f.set("offset",1),s=[h,f]}return $o(this.element,s,c,d,this.duration,this.startTime,this.easing,!1)}},No=class extends hr{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(t,e,r,s,c,d,h=!1){super(t,e,d.delay),this.keyframes=r,this.preStyleProps=s,this.postStyleProps=c,this._stretchStartingKeyframe=h,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:r,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){let c=[],d=r+e,h=e/d,f=new Map(t[0]);f.set("offset",0),c.push(f);let m=new Map(t[0]);m.set("offset",lc(h)),c.push(m);let C=t.length-1;for(let S=1;S<=C;S++){let O=new Map(t[S]),D=O.get("offset"),v=e+D*r;O.set("offset",lc(v/d)),c.push(O)}r=d,e=0,s="",t=c}return $o(this.element,t,this.preStyleProps,this.postStyleProps,r,e,s,!0)}};function lc(i,t=3){let e=Math.pow(10,t-1);return Math.round(i*e)/e}function __(i,t){let e=new Map,r;return i.forEach(s=>{if(s==="*"){r??=t.keys();for(let c of r)e.set(c,st)}else for(let[c,d]of s)e.set(c,d)}),e}function cc(i,t,e,r,s,c,d,h,f,m,C,S,O){return{type:0,element:i,triggerName:t,isRemovalTransition:s,fromState:e,fromStyles:c,toState:r,toStyles:d,timelines:h,queriedElements:f,preStyleProps:m,postStyleProps:C,totalTime:S,errors:O}}var wo={},fr=class{_triggerName;ast;_stateStyles;constructor(t,e,r){this._triggerName=t,this.ast=e,this._stateStyles=r}match(t,e,r,s){return y_(this.ast.matchers,t,e,r,s)}buildStyles(t,e,r){let s=this._stateStyles.get("*");return t!==void 0&&(s=this._stateStyles.get(t?.toString())||s),s?s.buildStyles(e,r):new Map}build(t,e,r,s,c,d,h,f,m,C){let S=[],O=this.ast.options&&this.ast.options.params||wo,D=h&&h.params||wo,v=this.buildStyles(r,D,S),N=f&&f.params||wo,L=this.buildStyles(s,N,S),Z=new Set,V=new Map,G=new Map,U=s==="void",ue={params:xc(N,O),delay:this.ast.options?.delay},te=C?[]:kc(t,e,this.ast.animation,c,d,v,L,ue,m,S),ne=0;return te.forEach(W=>{ne=Math.max(W.duration+W.delay,ne)}),S.length?cc(e,this._triggerName,r,s,U,v,L,[],[],V,G,ne,S):(te.forEach(W=>{let Ne=W.element,Ue=Le(V,Ne,new Set);W.preStyleProps.forEach(Ye=>Ue.add(Ye));let Ce=Le(G,Ne,new Set);W.postStyleProps.forEach(Ye=>Ce.add(Ye)),Ne!==e&&Z.add(Ne)}),cc(e,this._triggerName,r,s,U,v,L,te,[...Z.values()],V,G,ne))}};function y_(i,t,e,r,s){return i.some(c=>c(t,e,r,s))}function xc(i,t){let e=Pt({},t);return Object.entries(i).forEach(([r,s])=>{s!=null&&(e[r]=s)}),e}var Ro=class{styles;defaultParams;normalizer;constructor(t,e,r){this.styles=t,this.defaultParams=e,this.normalizer=r}buildStyles(t,e){let r=new Map,s=xc(t,this.defaultParams);return this.styles.styles.forEach(c=>{typeof c!="string"&&c.forEach((d,h)=>{d&&(d=Kn(d,s,e));let f=this.normalizer.normalizePropertyName(h,e);d=this.normalizer.normalizeStyleValue(h,f,d,e),r.set(h,d)})}),r}};function b_(i,t,e){return new Io(i,t,e)}var Io=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(t,e,r){this.name=t,this.ast=e,this._normalizer=r,e.states.forEach(s=>{let c=s.options&&s.options.params||{};this.states.set(s.name,new Ro(s.style,c,r))}),uc(this.states,"true","1"),uc(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new fr(t,s,this.states))}),this.fallbackTransition=v_(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,r,s){return this.transitionFactories.find(d=>d.match(t,e,r,s))||null}matchStyles(t,e,r){return this.fallbackTransition.buildStyles(t,e,r)}};function v_(i,t,e){let r=[(d,h)=>!0],s={type:Q.Sequence,steps:[],options:null},c={type:Q.Transition,animation:s,matchers:r,options:null,queryCount:0,depCount:0};return new fr(i,c,t)}function uc(i,t,e){i.has(t)?i.has(e)||i.set(e,i.get(t)):i.has(e)&&i.set(t,i.get(e))}var w_=new Qn,Fo=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r}register(t,e){let r=[],s=[],c=Sc(this._driver,e,r,s);if(r.length)throw Ig(r);this._animations.set(t,c)}_buildPlayer(t,e,r){let s=t.element,c=gc(this._normalizer,t.keyframes,e,r);return this._driver.animate(s,c,t.duration,t.delay,t.easing,[],!0)}create(t,e,r={}){let s=[],c=this._animations.get(t),d,h=new Map;if(c?(d=kc(this._driver,e,c,vc,xo,new Map,new Map,r,w_,s),d.forEach(C=>{let S=Le(h,C.element,new Map);C.postStyleProps.forEach(O=>S.set(O,null))})):(s.push(Fg()),d=[]),s.length)throw Lg(s);h.forEach((C,S)=>{C.forEach((O,D)=>{C.set(D,this._driver.computeStyle(S,D,st))})});let f=d.map(C=>{let S=h.get(C.element);return this._buildPlayer(C,new Map,S)}),m=Ut(f);return this._playersById.set(t,m),m.onDestroy(()=>this.destroy(t)),this.players.push(m),m}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let r=this.players.indexOf(e);r>=0&&this.players.splice(r,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw Ug(t);return e}listen(t,e,r,s){let c=zo(e,"","","");return Bo(this._getPlayer(t),r,c,s),()=>{}}command(t,e,r,s){if(r=="register"){this.register(t,s[0]);return}if(r=="create"){let d=s[0]||{};this.create(t,e,d);return}let c=this._getPlayer(t);switch(r){case"play":c.play();break;case"pause":c.pause();break;case"reset":c.reset();break;case"restart":c.restart();break;case"finish":c.finish();break;case"init":c.init();break;case"setPosition":c.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t);break}}},dc="ng-animate-queued",C_=".ng-animate-queued",Co="ng-animate-disabled",S_=".ng-animate-disabled",k_="ng-star-inserted",x_=".ng-star-inserted",M_=[],Mc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},T_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xe="__ng_removed",Zn=class{namespaceId;value;options;get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let r=t&&t.hasOwnProperty("value"),s=r?t.value:t;if(this.value=P_(s),r){let c=t,{value:d}=c,h=_i(c,["value"]);this.options=h}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let r=this.options.params;Object.keys(e).forEach(s=>{r[s]==null&&(r[s]=e[s])})}}},Gn="void",So=new Zn(Gn),Lo=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(t,e,r){this.id=t,this.hostElement=e,this._engine=r,this._hostClassName="ng-tns-"+t,He(e,this._hostClassName)}listen(t,e,r,s){if(!this._triggers.has(e))throw Yg(r,e);if(r==null||r.length==0)throw Bg(e);if(!O_(r))throw zg(r,e);let c=Le(this._elementListeners,t,[]),d={name:e,phase:r,callback:s};c.push(d);let h=Le(this._engine.statesByElement,t,new Map);return h.has(e)||(He(t,nr),He(t,nr+"-"+e),h.set(e,So)),()=>{this._engine.afterFlush(()=>{let f=c.indexOf(d);f>=0&&c.splice(f,1),this._triggers.has(e)||h.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw Vg(t);return e}trigger(t,e,r,s=!0){let c=this._getTrigger(e),d=new Xn(this.id,e,t),h=this._engine.statesByElement.get(t);h||(He(t,nr),He(t,nr+"-"+e),this._engine.statesByElement.set(t,h=new Map));let f=h.get(e),m=new Zn(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&f&&m.absorbOptions(f.options),h.set(e,m),f||(f=So),!(m.value===Gn)&&f.value===m.value){if(!N_(f.params,m.params)){let N=[],L=c.matchStyles(f.value,f.params,N),Z=c.matchStyles(m.value,m.params,N);N.length?this._engine.reportError(N):this._engine.afterFlush(()=>{Gt(t,L),ht(t,Z)})}return}let O=Le(this._engine.playersByElement,t,[]);O.forEach(N=>{N.namespaceId==this.id&&N.triggerName==e&&N.queued&&N.destroy()});let D=c.matchTransition(f.value,m.value,t,m.params),v=!1;if(!D){if(!s)return;D=c.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:D,fromState:f,toState:m,player:d,isFallbackTransition:v}),v||(He(t,dc),d.onStart(()=>{bn(t,dc)})),d.onDone(()=>{let N=this.players.indexOf(d);N>=0&&this.players.splice(N,1);let L=this._engine.playersByElement.get(t);if(L){let Z=L.indexOf(d);Z>=0&&L.splice(Z,1)}}),this.players.push(d),O.push(d),d}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,r)=>{this._elementListeners.set(r,e.filter(s=>s.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let r=this._engine.driver.query(t,ar,!0);r.forEach(s=>{if(s[Xe])return;let c=this._engine.fetchNamespacesByElement(s);c.size?c.forEach(d=>d.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(t,e,r,s){let c=this._engine.statesByElement.get(t),d=new Map;if(c){let h=[];if(c.forEach((f,m)=>{if(d.set(m,f.value),this._triggers.has(m)){let C=this.trigger(t,m,Gn,s);C&&h.push(C)}}),h.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,d),r&&Ut(h).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(e&&r){let s=new Set;e.forEach(c=>{let d=c.name;if(s.has(d))return;s.add(d);let f=this._triggers.get(d).fallbackTransition,m=r.get(d)||So,C=new Zn(Gn),S=new Xn(this.id,d,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:d,transition:f,fromState:m,toState:C,player:S,isFallbackTransition:!0})})}}removeNode(t,e){let r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let s=!1;if(r.totalAnimations){let c=r.players.length?r.playersByQueriedElement.get(t):[];if(c&&c.length)s=!0;else{let d=t;for(;d=d.parentNode;)if(r.statesByElement.get(d)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)r.markElementAsRemoved(this.id,t,!1,e);else{let c=t[Xe];(!c||c===Mc)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}}insertNode(t,e){He(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(r=>{let s=r.player;if(s.destroyed)return;let c=r.element,d=this._elementListeners.get(c);d&&d.forEach(h=>{if(h.name==r.triggerName){let f=zo(c,r.triggerName,r.fromState.value,r.toState.value);f._data=t,Bo(r.player,h.phase,f,h.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(r)}),this._queue=[],e.sort((r,s)=>{let c=r.transition.ast.depCount,d=s.transition.ast.depCount;return c==0||d==0?c-d:this._engine.driver.containsElement(r.element,s.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},Uo=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(t,e)=>{};_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,r){this.bodyNode=t,this.driver=e,this._normalizer=r}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,e){let r=new Lo(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(r,e):(this.newHostElements.set(e,r),this.collectEnterElement(e)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,e){let r=this._namespaceList,s=this.namespacesByHostElement;if(r.length-1>=0){let d=!1,h=this.driver.getParentElement(e);for(;h;){let f=s.get(h);if(f){let m=r.indexOf(f);r.splice(m+1,0,t),d=!0;break}h=this.driver.getParentElement(h)}d||r.unshift(t)}else r.push(t);return s.set(e,t),t}register(t,e){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,e)),r}registerTrigger(t,e,r){let s=this._namespaceLookup[t];s&&s.register(e,r)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(t);this.namespacesByHostElement.delete(r.hostElement);let s=this._namespaceList.indexOf(r);s>=0&&this._namespaceList.splice(s,1),r.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,r=this.statesByElement.get(t);if(r){for(let s of r.values())if(s.namespaceId){let c=this._fetchNamespace(s.namespaceId);c&&e.add(c)}}return e}trigger(t,e,r,s){if(or(e)){let c=this._fetchNamespace(t);if(c)return c.trigger(e,r,s),!0}return!1}insertNode(t,e,r,s){if(!or(e))return;let c=e[Xe];if(c&&c.setForRemoval){c.setForRemoval=!1,c.setForMove=!0;let d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(t){let d=this._fetchNamespace(t);d&&d.insertNode(e,r)}s&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),He(t,Co)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),bn(t,Co))}removeNode(t,e,r){if(or(e)){let s=t?this._fetchNamespace(t):null;s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r);let c=this.namespacesByHostElement.get(e);c&&c.id!==t&&c.removeNode(e,r)}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,r,s,c){this.collectedLeaveElements.push(e),e[Xe]={namespaceId:t,setForRemoval:s,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:c}}listen(t,e,r,s,c){return or(e)?this._fetchNamespace(t).listen(e,r,s,c):()=>{}}_buildInstruction(t,e,r,s,c){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,s,t.fromState.options,t.toState.options,e,c)}destroyInnerAnimations(t){let e=this.driver.query(t,ar,!0);e.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,Mo,!0),e.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Ut(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[Xe];if(e&&e.setForRemoval){if(t[Xe]=Mc,e.namespaceId){this.destroyInnerAnimations(t);let r=this._fetchNamespace(e.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Co)&&this.markElementAsDisabled(t,!1),this.driver.query(t,S_,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,s)=>this._balanceNamespaceList(r,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++){let s=this.collectedEnterElements[r];He(s,k_)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let r=[];try{e=this._flushAnimations(r,t)}finally{for(let s=0;s<r.length;s++)r[s]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++){let s=this.collectedLeaveElements[r];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],e.length?Ut(e).onDone(()=>{r.forEach(s=>s())}):r.forEach(s=>s())}}reportError(t){throw Wg(t)}_flushAnimations(t,e){let r=new Qn,s=[],c=new Map,d=[],h=new Map,f=new Map,m=new Map,C=new Set;this.disabledNodes.forEach(P=>{C.add(P);let R=this.driver.query(P,C_,!0);for(let A=0;A<R.length;A++)C.add(R[A])});let S=this.bodyNode,O=Array.from(this.statesByElement.keys()),D=pc(O,this.collectedEnterElements),v=new Map,N=0;D.forEach((P,R)=>{let A=vc+N++;v.set(R,A),P.forEach(B=>He(B,A))});let L=[],Z=new Set,V=new Set;for(let P=0;P<this.collectedLeaveElements.length;P++){let R=this.collectedLeaveElements[P],A=R[Xe];A&&A.setForRemoval&&(L.push(R),Z.add(R),A.hasAnimation?this.driver.query(R,x_,!0).forEach(B=>Z.add(B)):V.add(R))}let G=new Map,U=pc(O,Array.from(Z));U.forEach((P,R)=>{let A=xo+N++;G.set(R,A),P.forEach(B=>He(B,A))}),t.push(()=>{D.forEach((P,R)=>{let A=v.get(R);P.forEach(B=>bn(B,A))}),U.forEach((P,R)=>{let A=G.get(R);P.forEach(B=>bn(B,A))}),L.forEach(P=>{this.processLeaveNode(P)})});let ue=[],te=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach(A=>{let B=A.player,ae=A.element;if(ue.push(B),this.collectedEnterElements.length){let me=ae[Xe];if(me&&me.setForMove){if(me.previousTriggersValues&&me.previousTriggersValues.has(A.triggerName)){let $e=me.previousTriggersValues.get(A.triggerName),Oe=this.statesByElement.get(A.element);if(Oe&&Oe.has(A.triggerName)){let Zt=Oe.get(A.triggerName);Zt.value=$e,Oe.set(A.triggerName,Zt)}}B.destroy();return}}let Se=!S||!this.driver.containsElement(S,ae),fe=G.get(ae),x=v.get(ae),re=this._buildInstruction(A,r,x,fe,Se);if(re.errors&&re.errors.length){te.push(re);return}if(Se){B.onStart(()=>Gt(ae,re.fromStyles)),B.onDestroy(()=>ht(ae,re.toStyles)),s.push(B);return}if(A.isFallbackTransition){B.onStart(()=>Gt(ae,re.fromStyles)),B.onDestroy(()=>ht(ae,re.toStyles)),s.push(B);return}let je=[];re.timelines.forEach(me=>{me.stretchStartingKeyframe=!0,this.disabledNodes.has(me.element)||je.push(me)}),re.timelines=je,r.append(ae,re.timelines);let Re={instruction:re,player:B,element:ae};d.push(Re),re.queriedElements.forEach(me=>Le(h,me,[]).push(B)),re.preStyleProps.forEach((me,$e)=>{if(me.size){let Oe=f.get($e);Oe||f.set($e,Oe=new Set),me.forEach((Zt,wn)=>Oe.add(wn))}}),re.postStyleProps.forEach((me,$e)=>{let Oe=m.get($e);Oe||m.set($e,Oe=new Set),me.forEach((Zt,wn)=>Oe.add(wn))})});if(te.length){let P=[];te.forEach(R=>{P.push(Hg(R.triggerName,R.errors))}),ue.forEach(R=>R.destroy()),this.reportError(P)}let ne=new Map,W=new Map;d.forEach(P=>{let R=P.element;r.has(R)&&(W.set(R,R),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,ne))}),s.forEach(P=>{let R=P.element;this._getPreviousPlayers(R,!1,P.namespaceId,P.triggerName,null).forEach(B=>{Le(ne,R,[]).push(B),B.destroy()})});let Ne=L.filter(P=>mc(P,f,m)),Ue=new Map;fc(Ue,this.driver,V,m,st).forEach(P=>{mc(P,f,m)&&Ne.push(P)});let Ye=new Map;D.forEach((P,R)=>{fc(Ye,this.driver,new Set(P),f,xi)}),Ne.forEach(P=>{let R=Ue.get(P),A=Ye.get(P);Ue.set(P,new Map([...R?.entries()??[],...A?.entries()??[]]))});let et=[],kt=[],xt={};d.forEach(P=>{let{element:R,player:A,instruction:B}=P;if(r.has(R)){if(C.has(R)){A.onDestroy(()=>ht(R,B.toStyles)),A.disabled=!0,A.overrideTotalTime(B.totalTime),s.push(A);return}let ae=xt;if(W.size>1){let fe=R,x=[];for(;fe=fe.parentNode;){let re=W.get(fe);if(re){ae=re;break}x.push(fe)}x.forEach(re=>W.set(re,ae))}let Se=this._buildAnimation(A.namespaceId,B,ne,c,Ye,Ue);if(A.setRealPlayer(Se),ae===xt)et.push(A);else{let fe=this.playersByElement.get(ae);fe&&fe.length&&(A.parentPlayer=Ut(fe)),s.push(A)}}else Gt(R,B.fromStyles),A.onDestroy(()=>ht(R,B.toStyles)),kt.push(A),C.has(R)&&s.push(A)}),kt.forEach(P=>{let R=c.get(P.element);if(R&&R.length){let A=Ut(R);P.setRealPlayer(A)}}),s.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P<L.length;P++){let R=L[P],A=R[Xe];if(bn(R,xo),A&&A.hasAnimation)continue;let B=[];if(h.size){let Se=h.get(R);Se&&Se.length&&B.push(...Se);let fe=this.driver.query(R,Mo,!0);for(let x=0;x<fe.length;x++){let re=h.get(fe[x]);re&&re.length&&B.push(...re)}}let ae=B.filter(Se=>!Se.destroyed);ae.length?A_(this,R,ae):this.processLeaveNode(R)}return L.length=0,et.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();let R=this.players.indexOf(P);this.players.splice(R,1)}),P.play()}),et}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,r,s,c){let d=[];if(e){let h=this.playersByQueriedElement.get(t);h&&(d=h)}else{let h=this.playersByElement.get(t);if(h){let f=!c||c==Gn;h.forEach(m=>{m.queued||!f&&m.triggerName!=s||d.push(m)})}}return(r||s)&&(d=d.filter(h=>!(r&&r!=h.namespaceId||s&&s!=h.triggerName))),d}_beforeAnimationBuild(t,e,r){let s=e.triggerName,c=e.element,d=e.isRemovalTransition?void 0:t,h=e.isRemovalTransition?void 0:s;for(let f of e.timelines){let m=f.element,C=m!==c,S=Le(r,m,[]);this._getPreviousPlayers(m,C,d,h,e.toState).forEach(D=>{let v=D.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),D.destroy(),S.push(D)})}Gt(c,e.fromStyles)}_buildAnimation(t,e,r,s,c,d){let h=e.triggerName,f=e.element,m=[],C=new Set,S=new Set,O=e.timelines.map(v=>{let N=v.element;C.add(N);let L=N[Xe];if(L&&L.removedBeforeQueried)return new fn(v.duration,v.delay);let Z=N!==f,V=D_((r.get(N)||M_).map(ne=>ne.getRealPlayer())).filter(ne=>{let W=ne;return W.element?W.element===N:!1}),G=c.get(N),U=d.get(N),ue=gc(this._normalizer,v.keyframes,G,U),te=this._buildPlayer(v,ue,V);if(v.subTimeline&&s&&S.add(N),Z){let ne=new Xn(t,h,N);ne.setRealPlayer(te),m.push(ne)}return te});m.forEach(v=>{Le(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>E_(this.playersByQueriedElement,v.element,v))}),C.forEach(v=>He(v,oc));let D=Ut(O);return D.onDestroy(()=>{C.forEach(v=>bn(v,oc)),ht(f,e.toStyles)}),S.forEach(v=>{Le(s,v,[]).push(D)}),D}_buildPlayer(t,e,r){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,r):new fn(t.duration,t.delay)}},Xn=class{namespaceId;triggerName;element;_player=new fn;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(t,e,r){this.namespaceId=t,this.triggerName=e,this.element=r}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,r)=>{e.forEach(s=>Bo(t,r,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Le(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function E_(i,t,e){let r=i.get(t);if(r){if(r.length){let s=r.indexOf(e);r.splice(s,1)}r.length==0&&i.delete(t)}return r}function P_(i){return i??null}function or(i){return i&&i.nodeType===1}function O_(i){return i=="start"||i=="done"}function hc(i,t){let e=i.style.display;return i.style.display=t??"none",e}function fc(i,t,e,r,s){let c=[];e.forEach(f=>c.push(hc(f)));let d=[];r.forEach((f,m)=>{let C=new Map;f.forEach(S=>{let O=t.computeStyle(m,S,s);C.set(S,O),(!O||O.length==0)&&(m[Xe]=T_,d.push(m))}),i.set(m,C)});let h=0;return e.forEach(f=>hc(f,c[h++])),d}function pc(i,t){let e=new Map;if(i.forEach(h=>e.set(h,[])),t.length==0)return e;let r=1,s=new Set(t),c=new Map;function d(h){if(!h)return r;let f=c.get(h);if(f)return f;let m=h.parentNode;return e.has(m)?f=m:s.has(m)?f=r:f=d(m),c.set(h,f),f}return t.forEach(h=>{let f=d(h);f!==r&&e.get(f).push(h)}),e}function He(i,t){i.classList?.add(t)}function bn(i,t){i.classList?.remove(t)}function A_(i,t,e){Ut(e).onDone(()=>i.processLeaveNode(t))}function D_(i){let t=[];return Tc(i,t),t}function Tc(i,t){for(let e=0;e<i.length;e++){let r=i[e];r instanceof qr?Tc(r.players,t):t.push(r)}}function N_(i,t){let e=Object.keys(i),r=Object.keys(t);if(e.length!=r.length)return!1;for(let s=0;s<e.length;s++){let c=e[s];if(!t.hasOwnProperty(c)||i[c]!==t[c])return!1}return!0}function mc(i,t,e){let r=e.get(i);if(!r)return!1;let s=t.get(i);return s?r.forEach(c=>s.add(c)):t.set(i,r),e.delete(i),!0}var vn=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(t,e)=>{};constructor(t,e,r){this._driver=e,this._normalizer=r,this._transitionEngine=new Uo(t.body,e,r),this._timelineEngine=new Fo(t.body,e,r),this._transitionEngine.onRemovalComplete=(s,c)=>this.onRemovalComplete(s,c)}registerTrigger(t,e,r,s,c){let d=t+"-"+s,h=this._triggerCache[d];if(!h){let f=[],m=[],C=Sc(this._driver,c,f,m);if(f.length)throw Ng(s,f);h=b_(s,C,this._normalizer),this._triggerCache[d]=h}this._transitionEngine.registerTrigger(e,s,h)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,r,s){this._transitionEngine.insertNode(t,e,r,s)}onRemove(t,e,r){this._transitionEngine.removeNode(t,e,r)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,r,s){if(r.charAt(0)=="@"){let[c,d]=ic(r),h=s;this._timelineEngine.command(c,e,d,h)}else this._transitionEngine.trigger(t,e,r,s)}listen(t,e,r,s,c){if(r.charAt(0)=="@"){let[d,h]=ic(r);return this._timelineEngine.listen(d,e,h,c)}return this._transitionEngine.listen(t,e,r,s,c)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function R_(i,t){let e=null,r=null;return Array.isArray(t)&&t.length?(e=ko(t[0]),t.length>1&&(r=ko(t[t.length-1]))):t instanceof Map&&(e=ko(t)),e||r?new I_(i,e,r):null}var I_=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,r,s){this._element=e,this._startStyles=r,this._endStyles=s;let c=i.initialStylesByElement.get(e);c||i.initialStylesByElement.set(e,c=new Map),this._initialStyles=c}start(){this._state<1&&(this._startStyles&&ht(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ht(this._element,this._initialStyles),this._endStyles&&(ht(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(Gt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gt(this._element,this._endStyles),this._endStyles=null),ht(this._element,this._initialStyles),this._state=3)}}return i})();function ko(i){let t=null;
13return i.forEach((e,r)=>{F_(r)&&(t=t||new Map,t.set(r,e))}),t}function F_(i){return i==="display"||i==="position"}var pr=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(t,e,r,s){this.element=t,this.keyframes=e,this.options=r,this._specialStyles=s,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(r=>{e.push(Object.fromEntries(r))}),e}_triggerWebAnimation(t,e,r){return t.animate(this._convertKeyframesToObject(e),r)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,s)=>{s!=="offset"&&t.set(s,this._finished?r:jo(this.element,s))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}},mr=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,e){return _c(t,e)}getParentElement(t){return Vo(t)}query(t,e,r){return yc(t,e,r)}computeStyle(t,e,r){return jo(t,e)}animate(t,e,r,s,c,d=[]){let h=s==0?"both":"forwards",f={duration:r,delay:s,fill:h};c&&(f.easing=c);let m=new Map,C=d.filter(D=>D instanceof pr);t_(r,s)&&C.forEach(D=>{D.currentSnapshot.forEach((v,N)=>m.set(N,v))});let S=Xg(e).map(D=>new Map(D));S=n_(t,S,m);let O=R_(t,S);return new pr(t,S,f,O)}};var sr="@",Ec="@.disabled",gr=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(t,e,r,s){this.namespaceId=t,this.delegate=e,this.engine=r,this._onDestroy=s}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,r,s=!0){this.delegate.insertBefore(t,e,r),this.engine.onInsert(this.namespaceId,e,t,s)}removeChild(t,e,r){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,r,s){this.delegate.setAttribute(t,e,r,s)}removeAttribute(t,e,r){this.delegate.removeAttribute(t,e,r)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,r,s){this.delegate.setStyle(t,e,r,s)}removeStyle(t,e,r){this.delegate.removeStyle(t,e,r)}setProperty(t,e,r){e.charAt(0)==sr&&e==Ec?this.disableAnimations(t,!!r):this.delegate.setProperty(t,e,r)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,r,s){return this.delegate.listen(t,e,r,s)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},Yo=class extends gr{factory;constructor(t,e,r,s,c){super(e,r,s,c),this.factory=t,this.namespaceId=e}setProperty(t,e,r){e.charAt(0)==sr?e.charAt(1)=="."&&e==Ec?(r=r===void 0?!0:!!r,this.disableAnimations(t,r)):this.engine.process(this.namespaceId,t,e.slice(1),r):this.delegate.setProperty(t,e,r)}listen(t,e,r,s){if(e.charAt(0)==sr){let c=L_(t),d=e.slice(1),h="";return d.charAt(0)!=sr&&([d,h]=U_(d)),this.engine.listen(this.namespaceId,c,d,h,f=>{let m=f._data||-1;this.factory.scheduleListenerCallback(m,r,f)})}return this.delegate.listen(t,e,r,s)}};function L_(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function U_(i){let t=i.indexOf("."),e=i.substring(0,t),r=i.slice(t+1);return[e,r]}var _r=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(t,e,r){this.delegate=t,this.engine=e,this._zone=r,e.onRemovalComplete=(s,c)=>{c?.removeChild(null,s)}}createRenderer(t,e){let r="",s=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let m=this._rendererCache,C=m.get(s);if(!C){let S=()=>m.delete(s);C=new gr(r,s,this.engine,S),m.set(s,C)}return C}let c=e.id,d=e.id+"-"+this._currentId;this._currentId++,this.engine.register(d,t);let h=m=>{Array.isArray(m)?m.forEach(h):this.engine.registerTrigger(c,d,t,m.name,m)};return e.data.animation.forEach(h),new Yo(this,d,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,r){if(t>=0&&t<this._microtaskId){this._zone.run(()=>e(r));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>
13{s.forEach(c=>{let[d,h]=c;d(h)}),this._animationCallbacksBuffer=[]})}),s.push([e,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(t){this.engine.flush(),this.delegate.componentReplaced?.(t)}};var B_=(()=>{class i extends vn{constructor(e,r,s){super(e,r,s)}ngOnDestroy(){this.flush()}static \u0275fac=function(r){return new(r||i)(Te(ot),Te(Kt),Te(Qt))};static \u0275prov=it({token:i,factory:i.\u0275fac})}return i})();function z_(){return new cr}function V_(i,t,e){return new _r(i,t,e)}var Pc=[{provide:Qt,useFactory:z_},{provide:vn,useClass:B_},{provide:js,useFactory:V_,deps:[ra,vn,an]}],W_=[{provide:Kt,useFactory:()=>new mr},{provide:Hr,useValue:"BrowserAnimations"},...Pc],Ob=[{provide:Kt,useClass:Wo},{provide:Hr,useValue:"NoopAnimations"},...Pc];function Oc(){return zs("NgEagerAnimations"),[...W_]}function Nc(i,t){let e=i.headers.get("Authorization")||"";if(e.includes("Basic"))return t(i);if(e.includes("Bearer")){let r=Ee(It),s=r.getAuthToken();return s?t(qo(i,s)).pipe(nt(c=>{if(c instanceof ea)switch(c.status){case 401:return Je(i,t,r);default:return yr(c)}else return yr(c)})):(console.warn("No auth token available, proceeding without authentication"),t(i).pipe(nt(c=>yr(c))))}else return t(i).pipe(nt(r=>yr(r)))}function qo(i,t){return i.headers.get("Content-Type")?i.clone({setHeaders:{Authorization:`Bearer ${t}`}}):i.clone({setHeaders:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}})}Je.isRefreshingToken=!1;Je.tokenSubject=new Vr(null);function Je(i,t,e){return Je.isRefreshingToken?Je.tokenSubject.pipe(Ct(r=>r!=null),Wt(1),Ot(r=>t(qo(i,r)))):(Je.isRefreshingToken=!0,Je.tokenSubject.next(null),e.refreshTokens().pipe(Ot(r=>r?(Je.tokenSubject.next(r),t(qo(i,r))):(Ac(new Error("Token refresh returned no token")),Dc(e))),nt(r=>(Ac(r),console.error("Token refresh failed:",r),Dc(e))),Bs(()=>{Je.isRefreshingToken=!1})))}function yr(i){let t=i.message?i.message:i.toString();return console.error(t),Wr(i.error)}function Ac(i){Je.tokenSubject.error(i),Je.tokenSubject=new Vr(null)}function Dc(i){return i.logout(),Wr("")}function Rc(){let i=Ee(ve),t=Ee(ot),e=Ee(ln);return()=>Ae(this,null,function*(){let r=t.location?.hostname||"localhost";if(cn(e)){let s=new URLSearchParams(t.location?.search||""),c=s.get("col-id"),d=s.get("referral-id");c&&(i.colId=c),d&&(i.referralId=d)}yield i.initializeSiteData(r)})}var Ic={providers:[Zs({eventCoalescing:!0,ignoreChangesOutsideZone:!0}),ha($l,fa()),la(aa()),ta(ia(),na([Nc])),Oc(),{provide:La,useValue:{fontSet:"material-symbols-outlined"}},{provide:Si,useClass:ql},{provide:$s,useFactory:Rc,multi:!0},Ba(()=>za(wi.firebase)),Wa(()=>ja()),ec(()=>tc()),Nl(()=>Il())]};wi.production&&void 0;oa(Hl,Ic).catch(i=>console.error(i));
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.