1"use strict";(self.webpackChunkng_up=self.webpackChunkng_up||[]).push([["src_app_core_constants_BIGQUERY-CONSTANTS_NufStepConstants_ts-src_app_core_constants_BIGQUERY-d722a7","src_app_shared_epic-dot-loader_epic-dot-loader_component_ts","src_app_core_services_webp_service_ts","src_app_core_services_reading-level_service_ts","src_app_core_constants_BIGQUERY-CONSTANTS_SubscribePurchaseConstants_ts-src_app_core_services-59b22a","src_app_core_services_celebration_service_ts-src_app_core_services_helperFunctions_service_ts-2f43c60","src_app_core_constants_ContentTypeString_enum_ts-src_app_core_services_bts_service_ts-src_app-33badb","src_app_core_services_celebration_service_ts-src_app_core_services_helperFunctions_service_ts-2f43c61","src_app_core_services_captcha_service_ts","src_app_core_services_celebration_service_ts"],{72426:(P,p,e)=>{e.d(p,{CS:()=>g,GJ:()=>v,JQ:()=>c,Ko:()=>r,Ku:()=>d,No:()=>t,Sq:()=>n,Zi:()=>s,f:()=>h,gE:()=>_,jf:()=>E,oM:()=>o,ol:()=>i});const o="fd_kid_modal_view",t="fd_kid_modal_adult_select",c="fd_kid_modal_child_select",s="fd_kids_experience_age_gate_view",g="fd_school_freetime_view",i="fd_school_select",d="fd_free_time_select",_="fd_school_grownup_select",h="fd_help_kid_login_view",E="fd_help_kid_login_class_select",v="fd_help_kid_login_family_select",r="fd_help_kid_login_signup_select",n="fd_help_kid_login_homepage_select"},16872:(P,p,e)=>{e.d(p,{Ac:()=>c,Bc:()=>u,Hq:()=>a,Kj:()=>v,OC:()=>n,Tg:()=>r,aD:()=>T,aw:()=>o,gV:()=>h,l4:()=>E,oe:()=>A,uy:()=>l});const o="nuf_complete",c="nuf_step_account_create",h="NUF_STEP_PROFILE_CREATE",E="nuf_step_profile_create_complete",v="nuf_step_edu_personal_info",r="nuf_step_account_create_google_sso_click",n="nuf_step_age_start",l="nuf_step_age_complete",a="nuf_step_welcome_start",u="nuf_step_find_school_address",A="nuf_step_edu_create_account_email_mismatch",T="nuf_step_edu_change_school"},84646:(P,p,e)=>{e.d(p,{$E:()=>s,Vf:()=>g,WA:()=>i,iH:()=>o,iL:()=>c,tz:()=>t});const o="subscribe_purchase_start_e2c",t="subscribe_purchase_fail_e2c",c="subscribe_purchase_succeed_e2c",s="subscribe_purchase_start",g="subscribe_purchase_succeed",i="subscribe_purchase_fail"},76799:(P,p,e)=>{e.d(p,{AL:()=>i,FD:()=>o,UZ:()=>d,W2:()=>s,cI:()=>h,ex:()=>E,m7:()=>_,mV:()=>t,w7:()=>c,yu:()=>g});const o="trial_epic_info_popup_viewed",t="trial_epic_info_clicked",c="trial_details_popup_viewed",s="trial_details_clicked",g="new_trial_epic_info_popup_viewed",i="new_trial_epic_info_clicked",d="new_trial_details_popup_viewed",_="new_trial_details_clicked",h="trial_duration_dialog_viewed",E="trial_duration_cta_clicked"},98444:(P,p,e)=>{e.d(p,{_:()=>t,p:()=>o});var o=(()=>{return(c=o||(o={})).NONE="none",c.COLLECTION="collection",c.BOOK="book",c.READ_TO_ME="read-to-me",c.VIDEO="video",c.AUDIOBOOK="audiobook",c.QUIZ="quiz",c.ARTICLE="article",c.CONTENT="content",c.SERIES="series",c.INTERACTIVE="interactive",o;var c})();const t={0:o.COLLECTION,1:o.BOOK,2:o.AUDIOBOOK,3:o.ARTICLE,4:o.VIDEO,5:o.QUIZ}},50736:(P,p,e)=>{e.d(p,{a:()=>t,j:()=>o});var o=(()=>{return(c=o||(o={})).ar="ar",c.lexile="lexile",c.dra="dra",c.fandp="fandp",c.gr="gr",c.undecided="undecided",o;var c})(),t=(()=>{return(c=t||(t={})).accelerated_level="accelerated_level",c.dra_level="dra_level",c.fandp_level="fandp_level",c.guided_reading_level="guided_reading_level",c.lexile_level="lexile_level",c.undecided="undecided",t;var c})()},57478:(P,p,e)=>{e.d(p,{f:()=>c});var o=e(25769),t=e(50736);let c=(()=>{class s extends o.c{constructor(i){super(i),this.bookUrlId=1111*this.id+2,this.seoTitle=i.seoTitle,this.age=i.age,this.aspectRatio=i.aspectRatio,this.author=i.author,this.avgTime=i.avgTime,this.avgTimeInt=i.avgTimeInt,this.bookDescription=i.bookDescription,this.contentTitleId=i.contentTitleId,this.copyright=i.copyright,this.coverColorB=i.coverColorB,this.coverColorG=i.coverColorG,this.coverColorR=i.coverColorR,this.date_modified=i.date_modified,this.highlightingEnabled=i.highlightingEnabled,this.highlightingStatus=i.highlightingStatus,this.illustrator=i.illustrator,this.isbn13=i.isbn13,this.language=i.language,this.languageName=i.languageName,this.longBookDescription=i.longBookDescription,this.numPages=parseInt(i.numPages),this.pageNumOffset=i.pageNumOffset,this.pagesRemaining=i.pagesRemaining,this.panelStatus=i.panelStatus,this.payPerView=i.payPerView,this.previewPercent=i.previewPercent,this.progress=i.progress,this.publisher=i.publisher,this.publisherId=i.publisherId,this.rating=i.rating,this.readingAgeMax=i.readingAgeMax,this.readingAgeMin=i.readingAgeMin,this.readingLevelData={levels:{[t.j.ar]:i.ar,[t.j.dra]:i.dra,[t.j.fandp]:i.fandp,[t.j.gr]:i.gr,[t.j.lexile]:i.lexile},isConverted:i.isConverted||[]},this.seoTitle=i.seoTitle,this.seriesTitle=i.seriesTitle,this.subject=i.subject,this.subjectColor=i.subjectColor,this.subjectDesc=i.subjectDesc,this.textOnButton=i.textOnButton,this.topics=i.topics,this.version=i.version,this.duration=i.duration,this.regionRestricted=i.regionRestricted,this.isBookHidden=!!i.isBookHidden,this.bookImageUrl=i.bookImageUrl,this.headingTag=i.headingTag,this.isSeriesBook=i.isSeriesBook,this.upNextBook=i.upNextBook,this.assignmentType="number"==typeof(null==i?void 0:i.assignmentType)?i.assignmentType:0,this.labData=i.labData,this.extensionUrl=i.extensionUrl,this.extensionConfig=i.extensionConfig}getGradeRangeFromAge(){if(!this.age)return"";const i={3:"Pre-K",4:"Pre-K",5:"K",6:"1st",7:"2nd",8:"3rd",9:"4th",10:"5th",11:"6th",12:"7th+",13:"7th+"};return this.age<4?"Pre-K":this.age>12?"7th+":`${i[this.age-1]} - ${i[this.age+1]}`}getAgeRange(){if(!this.age)return null;const i=[[4,"0-4"],[7,"5-7"],[10,"8-10"],[12,"11-12"],[1/0,"12+"]
1];for(let d=0;d<i.length;d++)if(this.age<=i[d][0])return i[d][1];return null}getAgeMinToMax(){return this.readingAgeMin!==this.readingAgeMax?`${this.readingAgeMin}-${this.readingAgeMax}`:`${this.readingAgeMin}`}getLengthWithLabel(){var i;let d={label:"",value:""};return this.type==o._.AUDIOBOOK||this.type==o._.VIDEO?(d.label="Length",d.value=this.getFormattedDuration()):(d.label="Pages",d.value=(null===(i=this.numPages)||void 0===i?void 0:i.toString())||""),d}getBookCoverColors(){return{coverColorR:this.coverColorR,coverColorG:this.coverColorG,coverColorB:this.coverColorB}}getRGBString(){return`rgb(${this.coverColorR}, ${this.coverColorG}, ${this.coverColorB})`}getBookRl(i){var d;return this.readingLevelData?this.readingLevelData.levels[i]?(null===(d=this.readingLevelData.levels[i])||void 0===d?void 0:d.toUpperCase())||"":"-":""}getFormattedDuration(){if(!this.duration)return"";let i=Math.ceil(this.duration/60),d=Math.floor(i/60),_=i%60,h="";return d&&(h+=`${d}h`),_&&(h+=`${h?" ":""}${_}m`),h}setIsConverted(i){this.readingLevelData&&(this.readingLevelData.isConverted=i)}getSearchLength(){return this.type==o._.AUDIOBOOK||this.type==o._.VIDEO?this.duration||0:this.numPages||0}getPreviewPageLimit(i){const _=Math.floor((this.numPages||0)*((this.previewPercent||s.DEFAULT_PREVIEW_PERCENT)/100));return Math.min(_,i)}setBookToUpNext(){this.upNextBook=!0}}return s.BOOK_TYPES=o._,s.DEFAULT_PREVIEW_PERCENT=20,s.DEFAULT_PREVIEW_PAGE_LIMIT=10,s.E2C_DEFAULT_PREVIEW_PAGE_LIMIT=6,s})()},25769:(P,p,e)=>{e.d(p,{_:()=>c,c:()=>s});var o=e(98444),t=e(36102),c=(()=>{return(g=c||(c={}))[g.NONE=-1]="NONE",g[g.STANDARD=1]="STANDARD",g[g.AUDIOBOOK=2]="AUDIOBOOK",g[g.ARTICLE=3]="ARTICLE",g[g.VIDEO=4]="VIDEO",g[g.QUIZ=5]="QUIZ",g[g.INTERACTIVE=6]="INTERACTIVE",c;var g})();class s{constructor(i){this.active=i.active,this.audio=i.audio,this.id=parseInt(i.modelId)||parseInt(i.id),this.title=i.title,this.timesCompleted=i.timesCompleted||0,this.type=i.type,this.progress="progress"in i?(null==i?void 0:i.progress)?i.progress:0:void 0,this.recommendation_uuid4=i.recommendation_uuid4||(0,t.Z)(),this.contentHash=i.contentHash,this.nextInSeries=i.nextInSeries,this.content_type=i.content_type,this.freemiumBookUnlockStatus=i.freemiumBookUnlockStatus,this.modelId=i.modelId,this.seriesCoverUrl=i.seriesCoverUrl,this.seriesId=i.seriesId,this.crrSeriesId=i.crrSeriesId,this.preview=i.preview,this.previewDaysRemaining=i.previewDaysRemaining,this.schoolAccessDaysRemaining=i.schoolAccessDaysRemaining,this.headingTag=i.headingTag,this.upNextBook=i.upNextBook,void 0!==i.isAllowedForSchool&&(this.isAllowedForSchool=i.isAllowedForSchool)}set freemiumBookUnlockStatus(i){this._freemiumBookUnlockStatus="boolean"==typeof i?i?s.BOOK_LOCK_STATUS.UNLOCKED:s.BOOK_LOCK_STATUS.PREMIUM:i}get freemiumBookUnlockStatus(){return this._freemiumBookUnlockStatus}isBook(){return this.type===c.STANDARD}isVideo(){return this.type===c.VIDEO}isAudiobook(){return this.type===c.AUDIOBOOK}isReadToMe(){return this.audio}isQuiz(){return this.type===c.QUIZ}static getContentTypeString(i){return this.contentTypeDict[i]}getContentTypeString(i){return this.type===c.STANDARD&&i&&this.audio?o.p.READ_TO_ME:s.getContentTypeString(this.type)}getThumbUrl(i){let _="cover";return i&&["small","large"].includes(i)&&(_=_+"_"+i),`${this.id.toString().slice(-1)}/${this.id}/${_}.jpg`}isContentPremium(){return this.freemiumBookUnlockStatus===s.BOOK_LOCK_STATUS.PREMIUM}isContentFreemium(){return this.freemiumBookUnlockStatus===s.BOOK_LOCK_STATUS.UNLOCKED}getContentRowItemDimensions(){return this.type===c.VIDEO?{width:286,height:170}:{width:165,height:203}}setBookProgress(i){this.progress=i}}s.BOOK_LOCK_STATUS={UNLOCKED:0,PREMIUM:1},s.contentTypeDict={[c.NONE]:o.p.NONE,[c.STANDARD]:o.p.BOOK,[c.AUDIOBOOK]:o.p.AUDIOBOOK,[c.ARTICLE]:o.p.ARTICLE,[c.VIDEO]:o.p.VIDEO,[c.QUIZ]:o.p.QUIZ,[c.INTERACTIVE]:o.p.INTERACTIVE},s.bookTypesWithReadingLevel=[c.STANDARD,c.AUDIOBOOK],s.bookTypesWithPages=[c.STANDARD]},41131:(P,p,e)=>{e.d(p,{H:()=>t});var o=e(96760);class t{constructor(s){this.email="",this.promoCode="",this.firstName="",this.lastName="",this.zipCode="",this.accountSource={},this.productId="",this.stripeToken=null,this.captchaToken=null,this.subPaymentType=null,this.initialProduct=s,this.product=s,this.productId=s instanceof o.r?s.modelId:s.productId}initValsFromSubscriptionModelData(s){s?(this.email=s.email,this.promoCode=s.promoCode,this.firstName=s.firstName,this.lastName=s.lastName,this.zipCode=s.zipCode,this.accountSource=s.accountSource,this.productId=s.productId,this.stripeToken=s.stripeToken,this.captchaToken=s.captchaToken,this.subPaymentType=s.subPaymentType,this.initialProduct=s.initialProduct||this.initialProduct,this.product=s.product||this.product,s.profileData&&(this.profileData=s.profileData)):console.log("Could not initialize data.")}clearData(){this.email="",this.promoCode="",this.firstName="",this.lastName="",this.zipCode="",this.accountSource={},this.productId="",this.stripeToken=null,this.captchaToken=null,this.subPaymentType=null}setPromoCode(s){this.promoCode=s||""}clearPromoCode(){this.promoCode=""}setProduct(s){this.product=s||this.initialProduct,this.productId=this.product.productId}setAccountSource(s){this.accountSource=s}getSubscribeAPIParams(){const s={promoCode:this.promoCode,productId:this.productId,str
1ipeToken:this.stripeToken,captchaToken:this.captchaToken,firstName:this.firstName,lastName:this.lastName,zipCode:this.zipCode,accountSource:this.accountSource,subPaymentType:this.subPaymentType};return this.email&&(s.email=this.email),s}getJSONFormattedData(){return JSON.stringify(this.getSubscribeAPIParams())}firstNameError(){return""===this.firstName&&"Please enter your first name"}lastNameError(){return""===this.lastName&&"Please enter your last name"}firstNameWebPayError(){return""===this.firstName&&"Please enter your first name"}lastNameWebPayError(){return""===this.lastName&&"Please enter your last name"}setEmail(s){this.email=s}subValid(){return!this.firstNameError()&&!this.lastNameError()&&this.product}updateValid(){return this.product}}},5485:(P,p,e)=>{e.d(p,{d:()=>h});var o=e(57478),t=e(3184),c=e(65925),s=e(41752),g=e(76750),i=e(69343);const d=["home","books","book-page","educators","topic-page"];let h=(()=>{class E{constructor(r,n,l,a){this.data=r,this.env=n,this._serverCheck=l,this._webpService=a,this.timestamp=0,this.sessionLength=0,this.isTimerRunning=!1,this.ttlConstant=600,this._serverCheck.isBrowser()&&this.startTimer()}startTimer(){const r=Math.floor(Date.now()),n=r/1e3,l=this;setInterval(function(){const a=Math.floor(100*(Date.now()/1e3-n))/100;l.timestamp=Math.floor(r+a),l.sessionLength=a},1e3),this.isTimerRunning=!0}resizeThumb(r,n={url:""},l,a){if(!r)return"";n.quality=n.quality||100,n.url=`${this.env.secureCdnBase}${r.toString().slice(-1)}/${r}/`;const u=n.width||0;return Number(u)>396?n.url+="[email protected]":Number(u)>198||l?n.url+="[email protected]":n.url+="cover.jpg",l?this._composeFlagUrl(n):this.resizeUrl(n,a)}getContentThumbnailVersions(r,n={url:""},l,a=["jpg","webp"]){const u={};return a.forEach(A=>{n.ext=A,u[A]=this.resizeThumb(r,n,l)}),u}getImageVersions(r,n=["jpg","webp"]){const l={};return n.forEach(a=>{r.ext=a,l[a]=this.resizeUrl(r)}),l}resizeUrl(r,n=""){const l={url:r.url||""},a=this._webpService.isBrowserWebpSupported&&d.includes(n)?"webp":r.ext||"jpg",u=this.env.resizeBase.replace(/.php/,`.${a}`);let A=r.quality?Number(r.quality):100;return"png"===a&&(A=Math.min(A,99),A=10*Math.floor(A/100),A=9-A),l.quality=A,r.width&&(l.width=r.width),r.height&&(l.height=r.height),`${u}?${this.data.urlEncode(l)}`}_composeFlagUrl(r){const n={url:r.url||""},a=this.env.composeBase.replace(/.php/,".png"),u=r.width||200,T=r.flagType===o.f.BOOK_LOCK_STATUS.PREMIUM||r.flagType===o.f.BOOK_TYPES.VIDEO||r.flagType===o.f.BOOK_TYPES.AUDIOBOOK?"":"PreviewCreator_add,";return`${a}?${this.data.urlEncode(n)}&style_type=process&command=ImageResize_resizeImage_width_400_quality_90,${T}ImageResize_resizeImage_width_${u}_quality_90_ext_jpg`}getAvatarPath(r,n){return`${this.env.composeBase.replace(/.php/,".png")}?avatar_id=${r}&frame_id=${n}&size=2x&style_type=avatar`}getCollectionImagePath(r,n=1){const l=this.data.urlEncode({playlist_id:r,book_count:n,dev:"web",style_type:"collection_image"});return`${this.env.composeBase}?${l}`}}return E.\u0275fac=function(r){return new(r||E)(t.LFG(c.D),t.LFG(s.DJ),t.LFG(g.T),t.LFG(i.O))},E.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},42898:(P,p,e)=>{e.d(p,{Q:()=>v});var o=e(76317),t=e(10745),c=e(60116),s=e(68951),g=e(50635),i=e(53158),d=e(15741),_=e(24364),h=e(3184),E=e(14045);let v=(()=>{class r{constructor(l){this._store=l,this.bts2025NotAllowedCountries=["KR"],this._isBTSAllowed=void 0,this.btsProductData=new o.X(null),this.btsProductData$=this.btsProductData.asObservable(),this.countryCode=""}get isBTSAllowed(){return this._isBTSAllowed}set isBTSAllowed(l){this._isBTSAllowed=l}init(l){return this._store.select(d.GP).pipe((0,c.h)(u=>Boolean(u)),(0,s.R)(l),(0,g.U)(u=>{let A=u||null;const T=this.isBTSAllowedForCountry(A);return this.isBTSAllowed=T,this.countryCode=this.getNormalizedCountryCode(A),{countryCode:this.countryCode,isBTSAllowed:T}}),(0,i.K)(u=>(this.isBTSAllowed=!1,console.error("BTS Service - Geolocation error:",u),(0,t.of)({countryCode:null,isBTSAllowed:!1}))))}getNormalizedCountryCode(l){return l&&!this.bts2025NotAllowedCountries.includes(l)?"US":null!=l?l:""}isBTSAllowedForCountry(l){return Boolean(l&&!this.bts2025NotAllowedCountries.includes(l))}getBts2025NotAllowedCountries(){return[...this.bts2025NotAllowedCountries]}checkIfCurrentCountryIsAllowedForBTS(){const l=(0,_.Ui)();return this.isBTSAllowedForCountry(l)}setBtsProductData(l){const a=Object.assign(Object.assign({},l),{isBTSAllowed:this.isBTSAllowed});this.btsProductData.next(a)}}return r.\u0275fac=function(l){return new(l||r)(h.LFG(E.yh))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},67139:(P,p,e)=>{e.d(p,{S:()=>c,n:()=>s});var o=e(3184),t=e(65925),c=(()=>{return(g=c||(c={}))[g.PAYMENT=1]="PAYMENT",g[g.PAYMENT_GIFT=2]="PAYMENT_GIFT",g[g.PAYMENT_UPDATE=3]="PAYMENT_UPDATE",g[g.ACCOUNT_CREATE=4]="ACCOUNT_CREATE",g[g.PAYMENT_UPGRADE=5]="PAYMENT_UPGRADE",g[g.CAPTCHA_SCHOOLPLUS_PRICING_REQUEST=5]="CAPTCHA_SCHOOLPLUS_PRICING_REQUEST",c;var g})();let s=(()=>{class g{constructor(d){this.data=d,this.siteKey="6LfgU4YUAAAAAOBzEV1NQw2mO77CAVBnrGB98ufs",this.CAPTCHA_PAYMENT=1,this.CAPTCHA_PAYMENT_GIFT=2,this.CAPTCHA_PAYMENT_UPDATE=3,this.CAPTCHA_ACCOUNT_CREATE=4,this.CAPTCHA_SCHOOLPLUS_PRICING_REQUEST=6,this.elements=[]}checkRequiresCaptcha(d){return d===c.PAYMENT_UPGRADE&&(d=c.PAYMENT_UPDATE),d===this.CAPTCHA_SCHOOLPLUS_PRICING_REQUEST&&(d=c.CAPTCHA_SCHOOLPLUS_PRICING_REQUEST),this.data.get("WebAccount","noAuthCheckRequiresCaptcha",{type:d}).then(_=>_&&_.result&&!0===_.result.required).catch(()=>null)}getToken(){return this.recaptcha&&this.recaptcha.getResponse()?this.recaptcha.getResponse():null}addOrResetCaptcha(d,_){this.elements.push({element:d,callback:_}),this.canRender(d)?(this.addCaptcha(),this.registerReCaptchaCallback()):this.resetCaptcha()}addCaptcha(){const d=document.createElement("script");d.src="https://www.google.com/recaptcha/api.js?onload=reCaptchaLoad&render=explicit",d.async=!0,d.defer=!0,document.body.appendChild(d)}registerReCaptchaCallback(){window.reCaptchaLoad=()=>{this.recaptcha=grecaptcha;const d=this.elements.pop(),_={sitekey:this.siteKey,"expired-callback":()=>{grecaptcha.reset()},callback:d.callback};grecaptcha.render(d.element,_)}}resetCaptcha(){!this.recaptcha||this.recaptcha.reset()}canRender(d){return d&&!d.children[0]}}return g.\u0275fac=function(d){return new(d||g)(o.LFG(t.D))},g.\u0275prov=o.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},1734:(P,p,e)=>{e.r(p),e.d(p,{CelebrationService:()=>u});var o=e(34929),t=e(40619),c=e(17714),s=e(78947),g=e(36362),i=e(15741),d=e(60116),_=e(94660),h=e(3184),E=e(1146),v=e(68893),r=e(41752),n=e(44687),l=e(98341),a=e(14045);let u=(()=>{class A{constructor(O,M,L,F,S,D,f){this._accountService=O,this._coreDialogService=M,this._env
1Service=L,this._profileService=F,this._referralsFlowsService=S,this._store=D,this.document=f,this.ACCOUNT_CELEBRATION_DIALOG_FEATURE_SET_VERSIONS=t.P,this._subs=new c.w0,this._geolocationCountryCode$=this._store.select(i.GP),this._subs.add(this._geolocationCountryCode$.pipe((0,d.h)(I=>Boolean(I))).subscribe(I=>{this._isUSA="US"===I})),this._envService.prodMode||(window.openAccountCelebrationFlow=()=>(0,o.mG)(this,void 0,void 0,function*(){yield this.openAccountCelebrationFlow({})}),window.openAccountCelebrationFlowWithReferral=()=>(0,o.mG)(this,void 0,void 0,function*(){yield this.openAccountCelebrationFlow({showReferral:!0})}))}openAccountCelebrationFlow(O){var M;return(0,o.mG)(this,void 0,void 0,function*(){this._dialogRef=yield this._openAccountCelebrationDialog(O.featureSetVersion);const L=null===(M=this._dialogRef)||void 0===M?void 0:M.afterClosed().subscribe(()=>(0,o.mG)(this,void 0,void 0,function*(){var F;null==L||L.unsubscribe(),null===(F=O.onCloseFunction)||void 0===F||F.call(O)}))})}openConfettiDialog(){return(0,o.mG)(this,void 0,void 0,function*(){return yield this._coreDialogService.loadComponentWithLazyLoadImports(_.E.ConfettiDialogComponent,{backdropClass:["epic-mat-backdrop--none"],panelClass:["epic-mat-dialog","fullscreen-transparent-dialog-v2","full-max-width","full-max-height","click-through"],disableClose:!0})})}_openAccountCelebrationDialog(O=t.P.NOTHING_TO_BASIC){return(0,o.mG)(this,void 0,void 0,function*(){const L=yield this._coreDialogService.loadComponentWithLazyLoadImports(_.E.AccountCelebrationDialogComponent,{backdropClass:["epic-mat-backdrop--dark"],panelClass:["epic-mat-dialog","fullscreen-transparent-dialog-v2","full-max-width","full-max-height","click-through"],disableClose:!0,data:{featureSetVersion:O}});if(!L)return;const F=(0,s.H)(15e3).subscribe(()=>{null==L||L.close()});this._subs.add(F);const S=null==L?void 0:L.componentInstance,D=S.accountCelebrationAssetsReady.subscribe(()=>(0,o.mG)(this,void 0,void 0,function*(){D.unsubscribe(),F.unsubscribe();const f=yield this.openConfettiDialog();(()=>{const R=document.querySelectorAll(".cdk-global-overlay-wrapper"),y=R.length;if(y>=2){const B=R[y-2];R[y-1].style.zIndex="1001",B.style.zIndex="1002"}})();const m=(0,s.H)(15e3).subscribe(()=>{f.close(),null==L||L.close()});this._subs.add(m);const C=S.featuresAnimationComplete$.subscribe(R=>{R&&(f.close(),null==L||L.close())});this._subs.add(C)}));return L})}ngOnDestroy(){this._subs.unsubscribe()}}return A.\u0275fac=function(O){return new(O||A)(h.LFG(E.B),h.LFG(v.CoreDialogService),h.LFG(r.DJ),h.LFG(n.ProfileService),h.LFG(l.ur),h.LFG(a.yh),h.LFG(g.K0))},A.\u0275prov=h.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})()},25187:(P,p,e)=>{e.d(p,{FX:()=>t,F_:()=>d,Jc:()=>g,Qc:()=>_,Sy:()=>i,U2:()=>o,lh:()=>c,pt:()=>E});const o=(r,n,l)=>{const a=String.prototype.split.call(n,/[,[\].]+?/).filter(Boolean).reduce((u,A)=>null!=u?u[A]:u,r);return void 0===a||a===r?l:a},t=(r,n=[])=>{const l={};return Object.keys(r).forEach(a=>{"object"!=typeof r[a]||null===r[a]||n.includes(a)?l[a]=r[a]:Object.assign(l,t(r[a]))}),l},c=r=>r?1111*Number(r)+2:null,g=r=>r?Object.keys(r).map(n=>`${n}=${r[n]}`).join("&"):"",i=r=>{let n,l;for(let a=r.length-1;a>0;a--)n=Math.floor(Math.random()*(a+1)),l=r[a],r[a]=r[n],r[n]=l},d=r=>r[Math.floor(Math.random()*r.length)],_=r=>r.getTime()/1e3,E=r=>{if(r)return new Promise((n,l)=>{const a=new Image;a.onload=n,a.onerror=l,a.src=r})}},65758:(P,p,e)=>{e.d(p,{C:()=>c,L:()=>t});var o=e(3184),t=(()=>{return(s=t||(t={})).DOT="dot",s.ARROW="icon-arrow",s.CHEVRON="icon-chevron",s.CHEVRON_WHITE="icon-chevron-white",s.ARROW_DROP="icon-arrow-drop",s.ARROW_ROUND="icon-arrow-round",s.FAVORITE_ON="favorite-on",s.FAVORITE_OFF="favorite-off",s.FAVORITE_COLLECTION="favorite-collection",s.PLUS_CIRCLE="plus-circle",s.PLUS_CIRCLE_FILLED="plus-circle-filled",s.MINUS_CIRCLE="minus-circle",s.NAVIGATION_SEARCH="navigation-search",s.NAVIGATION_BUDDY="navigation-buddy",s.NAVIGATION_HOME="navigation-home",s.NAVIGATION_EXPLORE="navigation-explore",s.NAVIGATION_LIBRARY="navigation-library",s.NAVIGATION_MAILBOX="navigation-mailbox",s.NAVIGATION_STUDENTS="navigation-students",s.NAVIGATION_QUESTS="navigation-quests",s.NAVIGATION_ADVENTURES="navigation-adventures",s.MORE="more",s.ASSIGN="assign",s.BLOCK="block",s.CAR="car",s.COPYRIGHT="copyright",s.VOLUME_ON="volume-on",s.VOLUME_OF
1F="volume-off",s.FULLSCREEN_ON="fullscreen-on",s.FULLSCREEN_OFF="fullscreen-off",s.PLAY="play",s.PAUSE="pause",s.PLAY_BUTTON="play-button",s.PLAY_BUTTON_TRANSPARENT="play-button-transparent",s.PAUSE_BUTTON="pause-button",s.CAPTIONS_ON="captions-on",s.CAPTIONS_OFF="captions-off",s.FAST_FORWARD_BUTTON="fast-forward-button",s.REWIND_BUTTON="rewind-button",s.NEXT_CHAPTER="next-chapter",s.PREVIOUS_CHAPTER="previous-chapter",s.SKATE="skate",s.SPEED="speed",s.SNAIL="snail",s.ROCKET="rocket",s.RABBIT="rabbit",s.PLANE="plane",s.QUIZ="quiz",s.QUIZ_XLARGE="quiz-xlarge",s.QUIZ_COMMUNITY="quiz-community",s.QUIZ_EDIT="quiz-edit",s.QUIZ_PREVIEW="quiz-preview",s.QUIZ_PUBLISH="quiz-publish",s.QUIZ_RESULTS="quiz-results",s.SPOTLIGHT_WORD="spotlight-word",s.SOCIAL_COPY_LINK="social-icon-copy-link",s.SOCIAL_SHARE_TEACHER="social-icon-share-teacher",s.SOCIAL_EMAIL="social-icon-email",s.SOCIAL_FACEBOOK="social-icon-facebook",s.SOCIAL_INSTAGRAM="social-icon-instagram",s.SOCIAL_PINTEREST="social-icon-pinterest",s.SOCIAL_TWITTER="social-icon-twitter",s.SOCIAL_EMAIL_COLOR="social-icon-email-color",s.SOCIAL_FACEBOOK_COLOR="social-icon-facebook-color",s.SOCIAL_PINTEREST_COLOR="social-icon-pinterest-color",s.SOCIAL_TWITTER_COLOR="social-icon-twitter-color",s.HAMBURGER="hamburger",s.CLOSE="close",s.CLOSE_ORGANIC="close-organic",s.REPLAY="replay",s.REPLAY_THIN="replay-thin",s.PRINTER="printer",s.SHARE="share",s.SHARE_SMALL="share-small",s.CHECKMARK_CIRCLE="checkmark-circle",s.CHECKMARK_CIRCLE_THIN="checkmark-circle-thin",s.GREEN_CHECKMARK_CIRCLE="green-checkmark-circle",s.SAVE="save",s.TRASH="trash-v2",s.VIEWS="views",s.PENCIL_LARGE="pencil-large",s.PENCIL_SMALL="pencil-small",s.DOWNLOAD="download",s.DOWNLOAD_COMPLETE="download-complete",s.INCORRECT="incorrect",s.EDIT="edit",s.INFO="info",s.TIP="tip",s.CALENDAR="calendar",s.WEBSITE_QUOTE="website-quote",s.DELETE="delete",s.LIST_VIEW="list-view",s.GRID_VIEW="grid-view",s.STAR_FULL="star-full",s.STAR_ALT="star-alt",s.SHUFFLE="shuffle",s.SWITCH_PROFILE="switch-profile",s.SETTINGS="settings",s.UNLOCK="unlock",s.LOCKED="locked",s.EXCLAIMATION="exclaimation",s.EXCLAIMATION_SMALL="exclaimation-small",t;var s})();let c=(()=>{class s{constructor(){this.EPIC_ICON=t,this.iconPathsMap={[t.DOT]:"/badge",[t.ARROW]:"/arrows",[t.CHEVRON]:"/arrows",[t.CHEVRON_WHITE]:"/arrows",[t.ARROW_DROP]:"/arrows",[t.ARROW_ROUND]:"/arrows",[t.FAVORITE_ON]:"/favorite",[t.FAVORITE_OFF]:"/favorite",[t.FAVORITE_COLLECTION]:"/favorite",[t.PLUS_CIRCLE]:"/plus",[t.PLUS_CIRCLE_FILLED]:"/plus",[t.MINUS_CIRCLE]:"/minus",[t.NAVIGATION_SEARCH]:"/navigation",[t.NAVIGATION_BUDDY]:"/navigation",[t.NAVIGATION_HOME]:"/navigation",[t.NAVIGATION_EXPLORE]:"/navigation",[t.NAVIGATION_MAILBOX]:"/navigation",[t.NAVIGATION_QUESTS]:"/navigation",[t.NAVIGATION_ADVENTURES]:"/navigation",[t.NAVIGATION_STUDENTS]:"/navigation",[t.NAVIGATION_LIBRARY]:"/navigation",[t.QUIZ]:"/quiz",[t.QUIZ_XLARGE]:"/quiz",[t.QUIZ_COMMUNITY]:"/quiz",[t.QUIZ_EDIT]:"/quiz",[t.QUIZ_PREVIEW]:"/quiz",[t.QUIZ_PUBLISH]:"/quiz",[t.QUIZ_RESULTS]:"/quiz",[t.MORE]:"/read-controls",[t.ASSIGN]:"/read-controls",[t.BLOCK]:"/read-controls",[t.COPYRIGHT]:"/read-controls",[t.SOCIAL_COPY_LINK]:"/social",[t.SOCIAL_SHARE_TEACHER]:"/social",[t.SOCIAL_EMAIL]:"/social",[t.SOCIAL_FACEBOOK]:"/social",[t.SOCIAL_INSTAGRAM]:"/social",[t.SOCIAL_PINTEREST]:"/social",[t.SOCIAL_TWITTER]:"/social",[t.SOCIAL_EMAIL_COLOR]:"/social",[t.SOCIAL_FACEBOOK_COLOR]:"/social",[t.SOCIAL_PINTEREST_COLOR]:"/social",[t.SOCIAL_TWITTER_COLOR]:"/social",[t.HAMBURGER]:"/system",[t.CLOSE]:"/close",[t.CLOSE_ORGANIC]:"/close",[t.REPLAY]:"/system",[t.REPLAY_THIN]:"/system",[t.PRINTER]:"/system",[t.SHARE]:"/system",[t.SHARE_SMALL]:"/system",[t.CHECKMARK_CIRCLE]:"/system",[t.CHECKMARK_CIRCLE_THIN]:"/system",[t.GREEN_CHECKMARK_CIRCLE]:"/system",[t.SAVE]:"/system",[t.TRASH]:"/system",[t.VIEWS]:"/system",[t.PENCIL_LARGE]:"/system",[t.PENCIL_SMALL]:"/system",[t.DOWNLOAD]:"/system",[t.DOWNLOAD_COMPLETE]:"/system",[t.INCORRECT]:"/system",[t.EDIT]:"/system",[t.INFO]:"/system",[t.TIP]:"/system",[t.CALENDAR]:"/system",[t.WEBSITE_QUOTE]:"/quotes",[t.VOLUME_OF
1F]:"/system",[t.VOLUME_ON]:"/system",[t.FULLSCREEN_OFF]:"/system",[t.FULLSCREEN_ON]:"/system",[t.PLAY]:"/system",[t.PAUSE]:"/system",[t.PLAY_BUTTON]:"/system",[t.PLAY_BUTTON_TRANSPARENT]:"/system",[t.PAUSE_BUTTON]:"/system",[t.CAPTIONS_ON]:"/system",[t.CAPTIONS_OFF]:"/system",[t.DELETE]:"/system",[t.REWIND_BUTTON]:"/read-controls",[t.FAST_FORWARD_BUTTON]:"/read-controls",[t.NEXT_CHAPTER]:"/read-controls",[t.PREVIOUS_CHAPTER]:"/read-controls",[t.SPEED]:"/read-controls",[t.RABBIT]:"/read-controls",[t.SNAIL]:"/read-controls",[t.ROCKET]:"/read-controls",[t.CAR]:"/read-controls",[t.SKATE]:"/read-controls",[t.PLANE]:"/read-controls",[t.LIST_VIEW]:"/system",[t.GRID_VIEW]:"/system",[t.STAR_FULL]:"/system",[t.STAR_ALT]:"/system",[t.SHUFFLE]:"/system",[t.SPOTLIGHT_WORD]:"/system",[t.SWITCH_PROFILE]:"/system",[t.SETTINGS]:"/system",[t.UNLOCK]:"/system",[t.LOCKED]:"/system",[t.EXCLAIMATION]:"/system",[t.EXCLAIMATION_SMALL]:"/system"}}getIconPath(i){return`/assets/icons-svg${this.iconPathsMap[i]}/${i}.svg#${i}`}}return s.\u0275fac=function(i){return new(i||s)},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})()},25431:(P,p,e)=>{e.d(p,{O:()=>g,l:()=>s});var o=e(34929),t=e(3184),c=e(41752),s=(()=>{return(i=s||(s={}))[i.BTS_2022=0]="BTS_2022",i[i.BTS_2023=1]="BTS_2023",i[i.E2CTRIAL=2]="E2CTRIAL",s;var i})();let g=(()=>{class i{constructor(_){this._env=_,this._promos=new Map,this._env.isServer()||this._initPromoConfiguration()}isPromoActive(_){return(0,o.mG)(this,void 0,void 0,function*(){const h=this._promos.get(_);return Boolean(null==h?void 0:h.isPromoActiveHandler)})}_initPromoConfiguration(){this._initBts2023PromoConfig()}_initBts2023PromoConfig(){this._promos.set(s.E2CTRIAL,{promoId:s.E2CTRIAL,isPromoActiveHandler:!0})}}return i.\u0275fac=function(_){return new(_||i)(t.LFG(c.DJ))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})()},88582:(P,p,e)=>{e.d(p,{S:()=>E});var o=e(50253),t=e(76317),c=e(25769),s=e(50736),g=e(3184),i=e(65925),d=e(1146),_=e(64617),h=e(44687);let E=(()=>{class v{constructor(n,l,a,u){this.dataService=n,this.accountService=l,this.localStorageService=a,this.profileService=u,this.readingLevelSystemsData={[s.a.accelerated_level]:{label:"AR",fullLabel:"AR Level",key:s.j.ar,keyFull:s.a.accelerated_level},[s.a.dra_level]:{label:"DRA",fullLabel:"DRA Level",key:s.j.dra,keyFull:s.a.dra_level},[s.a.fandp_level]:{label:"F&P",fullLabel:"F&P Level",key:s.j.fandp,keyFull:s.a.fandp_level},[s.a.guided_reading_level]:{label:"GRL",fullLabel:"GR Level",key:s.j.gr,keyFull:s.a.guided_reading_level},[s.a.lexile_level]:{label:"Lexile",fullLabel:"Lexile \xae Measure",key:s.j.lexile,keyFull:s.a.lexile_level},[s.a.undecided]:{label:"None/Other",fullLabel:"",key:s.j.undecided,keyFull:s.a.undecided}},this.readingLevelSystemsList=[this.readingLevelSystemsData[s.a.accelerated_level],this.readingLevelSystemsData[s.a.dra_level],this.readingLevelSystemsData[s.a.fandp_level],this.readingLevelSystemsData[s.a.guided_reading_level],this.readingLevelSystemsData[s.a.lexile_level],this.readingLevelSystemsData[s.a.undecided]],this.readingLevelSystemKeyMap={[s.j.ar]:s.a.accelerated_level,[s.j.dra]:s.a.dra_level,[s.j.fandp]:s.a.fandp_level,[s.j.gr]:s.a.guided_reading_level,[s.j.lexile]:s.a.lexile_level,[s.j.undecided]:s.a.undecided},this.readingLevelSystemKeysFull=s.a,this.readingLevelKeys=s.j,this.readingLevel$=new o.x,this.accountReadingLevelSystem$=new t.X({actual:null,defaulted:null}),this.accountRlSystemLoaded=!1}setReadingLevelSystem(n){return n?this.dataService.get("WebReadingLevels","setReadingLevelPreferences",{args:JSON.stringify({accountId:this.accountService.id,type:n})}).then(l=>(l&&(l.error?console.error("ReadingLevelService: Did not set reading level"):(this.readingLevel$.next(),this.onSystemUpdated(n),this.localStorageService.remove(`ebf-rl-${this.profileService.currentProfile.id}`))),l)):Promise.resolve(null)}getReadingLevelSystem(n){return this.dataService.get("WebReadingLevels","getReadingLevelPreferences",{args:JSON.stringify({accountId:this.accountService.id})}).then(l=>{var a;return(null===(a=null==l?void 0:l.result)||void 0===a?void 0:a.type)?n&&"undecided"===l.result.type?s.a.accelerated_level:l.result.type:n?s.a.accelerated_level:null}).catch(()=>(console.log("Failed to get reading level system"),null))}getReadingLevelSystemObject(){return this.dataService.getWithErrorHandling("WebReadingLevels","getReadingLevelPreferences",{args:JSON.stringify({accountId:this.accountService.id})}).catch(n=>(console.log("Failed to get reading level system",n),null))}getReadingLevelKeyFromFullKey(n){return this.readingLevelSystemsData[n].key}getReadingLevelSystemLabel(n,l){return l?this.readingLevelSystemsData[n].fullLabel:this.readingLevelSystemsData[n].label}getReadingLevelSentences(){return this.dataService.get("WebReadingLevels","readingLevelSentences").then(n=>{if(console.log(n),n&&n.result)return n.result.forEach(l=>{l.readingAge=Number(l.readingAge)}),n.result})}getBookRlWithLabel(n,l,a){const u={label:"",getValue:()=>"",isConverted:!1,value:"",valueWithAsterisk:""},A=n.readingLevelData.isConverted||[];return(l=l||(a?this.getReadingLevelKeyFromFullKey(a):void 0))&&(u.isConverted=A&&A.includes(this.readingLevelSystemKeyMap[l])||!1,u.label=u.isConverted?"Level":this.getReadingLevelSystemLabel(this.readingLevelSystemKeyMap[l],!0),u.value=n.getBookRl(l),u.valueWithAsterisk=u.value+(u.isConverted?"*":""),u.getValue=()=>n.getBookRl(l)),u}getBookRlWithLabelByAccountReadingLevelSystem(n){return this.getReadingLevelSystem(!0).then(l=>{const a=this.getReadingLevelKeyFromFullKey(l);return this.getBookRlWithLabel(n,a)})}getAccountReadingLevelSystem(){return this.accountRlSystemLoaded||(this.accountRlSystemLoaded=!0,this.getReadingLevelSystemObject().then(n=>{var l;this.onSystemUpdated((null===(l=null==n?void 0:n.result)||void 0===l?void 0:l.type)||null)})),this.accountReadingLevelSystem$}getReadingLevelOrGradeForBook(n,l){return l&&n.type!==c._.VIDEO?"grade"!==l?{label:"Level",value:this.getBookRlWithLabel(n,void 0,l).valueWithAsterisk}:{label:"Grade",value:n.getGradeRangeFromAge()}:null}onSystemUpdated(n){this.accountReadingLevelSystem$.next({actual:n,defaulted:n&&n!==s.a.undecided?n:s.a.accelerated_level})}}
1return v.\u0275fac=function(n){return new(n||v)(g.LFG(i.D),g.LFG(d.B),g.LFG(_.n),g.LFG(h.ProfileService))},v.\u0275prov=g.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},98341:(P,p,e)=>{e.d(p,{ur:()=>_});var o=e(50253),t=e(2279),c=e(3184),s=(()=>{return(h=s||(s={})).ONBOARDING="onboarding",h.END_OF_BOOK="eob",h.BROWSE="browse",h.SEARCH="search",h.ACCOUNT_MANAGE="account_manage",h.PROFILE_SELECT="profile_select",h.FREE_TO_BASIC_TRANSITION="free_to_basic_transition",s;var h})(),i=(()=>{return(h=i||(i={})).ONBOARDING="onboarding",h.BOOK_IN_ONBOARDING="book_in_onboarding",h.PREMIUM_CONTENT="premium_content",h.BOOK_OF_THE_DAY="book_of_the_day",h.PERSISTENT_BANNER="persistent_banner",h.PROFILE_SELECT="profile_select",h.ACCOUNT_MANAGE="account_manage",h.FREE_TO_BASIC_TRANSITION="free_to_basic_transition",i;var h})(),d=(()=>{return(h=d||(d={}))[h.DEFAULT=20]="DEFAULT",d;var h})();let _=(()=>{class h{constructor(){this.showReferralsOfferOnSubscribe=!1,this.referralDialogSourceSourceMap={[t.E4.FIRST_BOOK_EOB]:s.END_OF_BOOK,[t.E4.FFA_UPSELL_EPIC_UNLIMITED_CLICK]:s.ONBOARDING,[t.E4.ACCOUNT_MANAGE]:s.ACCOUNT_MANAGE,[t.E4.PROFILE_SELECT]:s.PROFILE_SELECT,[t.E4.FREE_TO_BASIC_TRANSITION]:s.FREE_TO_BASIC_TRANSITION},this.upsellTriggerSourceSourceMap={[t.E4.FIRST_BOOK_EOB]:i.BOOK_IN_ONBOARDING,[t.E4.FFA_UPSELL_EPIC_UNLIMITED_CLICK]:i.ONBOARDING,[t.E4.BOOK_A_DAY]:i.BOOK_OF_THE_DAY,[t.E4.PREVIEW_BOOK]:i.PREMIUM_CONTENT,[t.E4.PERSISTENT_BANNER]:i.PERSISTENT_BANNER,[t.E4.ACCOUNT_MANAGE]:i.ACCOUNT_MANAGE,[t.E4.PROFILE_SELECT]:i.PROFILE_SELECT,[t.E4.FREE_TO_BASIC_TRANSITION]:i.FREE_TO_BASIC_TRANSITION},this.stateClickReferenceObserver$=new o.x,this.referralRewardValue=d.DEFAULT}getReferralGiftCardRewardValueByProgram(v){return d.DEFAULT}}return h.\u0275fac=function(v){return new(v||h)},h.\u0275prov=c.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},32202:(P,p,e)=>{e.r(p),e.d(p,{FL_EVENT_KEYS:()=>_,SchoolConnectLoggingService:()=>h});var o=e(81339),t=e(83472),c=e(3184),s=e(98476),g=e(31503),i=e(64617),d=e(1146);const _={FL_LANDING_PAGE_VIEWED:"fl_landing_page_viewed",FL_LANDING_PAGE_CONTINUE_CLICKED:"fl_landing_page_continue_clicked",FL_PLANS_PAGE_VIEWED:"fl_plans_page_viewed",FL_PLANS_PAGE_CONTINUE_CLICKED:"fl_plans_page_continue_clicked",FL_START_READING_MODAL_VIEWED:"fl_start_reading_modal_viewed",FL_START_READING_MODAL_CLOSED:"fl_start_reading_modal_closed",FL_EMAIL_SSO_CLICK:"fl_email_sso_click",FL_LOGIN_PASSWORD_VIEWED:"fl_login_password_viewed",FL_LOGIN_FORGOT_PASSWORD_CLICKED:"fl_login_forgot_password_clicked",FL_LOGIN_PASSWORD_ENTERED:"fl_login_password_entered",FL_ACCOUNT_ALREADY_SUBSCRIBED:"fl_account_already_subscribed",FL_PASSWORD_VIEWED:"fl_password_viewed",FL_PASSWORD_SET:"fl_password_set",FL_SIGNUP_AGE_GATE_VIEWED:"fl_signup_age_gate_viewed",FL_SIGNUP_AGE_GATE_SUCCESS:"fl_signup_age_gate_success",FL_SIGNUP_AGE_GATE_FAILURE:"fl_signup_age_gate_failure",FL_DATA_PROTECTION_VIEWED:"fl_data_protection_viewed",FL_DATA_PROTECTION_AGREE_CLICKED:"fl_data_protection_agree_clicked",FL_PAYMENT_SUBSCRIBE_CLICKED:"fl_payment_subscribe_clicked",FL_PAYMENT_FAILED:"fl_payment_failed",FL_PAYMENT_SUCCESS:"fl_payment_success",FL_SUCCESS_SCREEN_VIEWED:"fl_success_screen_viewed"};let h=(()=>{class E{constructor(r,n,l,a,u){this.bigQueryService=r,this._routingService=n,this._schoolConnectService=l,this._localStorageService=a,this._accountService=u,this.grades=["Pre-K","K","1st Grade","2nd Grade","3rd Grade","4th Grade","5th Grade","6th Grade","7th Grade +"]}getSchoolId(){var r,n;return(null===(n=null===(r=this._schoolConnectService.flyerResponse)||void 0===r?void 0:r.result)||void 0===n?void 0:n.schoolId)||this._localStorageService.get(o.FLORIDA_CAMPAIGN_LS_KEYS.SCHOOL_ID)}logFlPaymentSuccessScreenView(r){this.logPaymentEvents(_.FL_SUCCESS_SCREEN_VIEWED,r)}logFlPaymentSubscribe(r){this.logPaymentEvents(_.FL_PAYMENT_SUBSCRIBE_CLICKED,r)}logFlPaymentSuccess(r){this.logPaymentEvents(_.FL_PAYMENT_SUCCESS,r)}logFlPaymentFail(r){this.logPaymentEvents(_.FL_PAYMENT_FAILED,r)}logPaymentEvents(r,{plan_selected:n,interim_selected:l,total_amount_in_cents:a}){var u,A,T,O;const M=this._schoolConnectService.getMappedFlyerDataProfiles();this.bigQueryService.log(r,{plan_selected:n,interim_selected:l,total_amount_in_cents:a,school_id:this.getSchoolId(),profiles_added:null===(u=null==M?void 0:M.map(L=>L.name))||void 0===u?void 0:u.length,city:null===(A=this.addressDetail
1s)||void 0===A?void 0:A.city,state:null===(T=this.addressDetails)||void 0===T?void 0:T.state,zip_code:null===(O=this.addressDetails)||void 0===O?void 0:O.zipcode})}logPlansEvent(r,{plan_selected:n,interim_selected:l,total_amount_in_cents:a}){var u;const A=this._schoolConnectService.getMappedFlyerDataProfiles();this.bigQueryService.log(r,{plan_selected:n,interim_selected:l,total_amount_in_cents:a,school_id:this.getSchoolId(),profiles_added:null===(u=null==A?void 0:A.map(T=>T.name))||void 0===u?void 0:u.length})}logPlansContinueClick({plan_selected:r,interim_selected:n,total_amount_in_cents:l}){var a,u,A;const T=this._schoolConnectService.getMappedFlyerDataProfiles();this.bigQueryService.log(_.FL_PLANS_PAGE_CONTINUE_CLICKED,{plan_selected:r,interim_selected:n,total_amount_in_cents:l,school_id:this.getSchoolId(),profile_name:null===(a=null==T?void 0:T.map(O=>O.name))||void 0===a?void 0:a.toString(),profiles_added:null===(u=null==T?void 0:T.map(O=>O.name))||void 0===u?void 0:u.length,grade:null===(A=null==T?void 0:T.map(O=>this.grades[O.grade+1]))||void 0===A?void 0:A.toString()})}logPlansPageView(){var r;const n=this._schoolConnectService.getMappedFlyerDataProfiles();this.bigQueryService.log(_.FL_PLANS_PAGE_VIEWED,{profiles_added:null===(r=null==n?void 0:n.map(l=>l.name))||void 0===r?void 0:r.length,school_id:this.getSchoolId(),email:this._accountService.email,account_id:this._accountService.id})}logLandingPageContinueCta(){var r,n,l;const a=this._schoolConnectService.getMappedFlyerDataProfiles();this.bigQueryService.log(_.FL_LANDING_PAGE_CONTINUE_CLICKED,{profile_name:null===(r=null==a?void 0:a.map(u=>u.name))||void 0===r?void 0:r.toString(),profiles_added:null===(n=null==a?void 0:a.map(u=>u.name))||void 0===n?void 0:n.length,grade:null===(l=null==a?void 0:a.map(u=>this.grades[u.grade+1]))||void 0===l?void 0:l.toString(),school_id:this.getSchoolId()})}logLandingPageView(){this.bigQueryService.log(_.FL_LANDING_PAGE_VIEWED,{url:"/"+this._routingService.getCurRoute()[1],school_id:this.getSchoolId()})}logEmailSsoClick(r){this.logSignupEvents(_.FL_EMAIL_SSO_CLICK,{mode:r})}logStartReadingModalClose(){this.logSignupEvents(_.FL_START_READING_MODAL_CLOSED)}logStartReadingModalView(){this.logSignupEvents(_.FL_START_READING_MODAL_VIEWED)}logLoginPwdView(){this.logSignupEvents(_.FL_LOGIN_PASSWORD_VIEWED)}logLoginPwdEntered(){this.logSignupEvents(_.FL_LOGIN_PASSWORD_ENTERED)}logPwdSet(){this.logSignupEvents(_.FL_PASSWORD_SET)}logPwdView(){this.logSignupEvents(_.FL_PASSWORD_VIEWED)}logAccAlreadySubscribed(r){this.logSignupEvents(_.FL_ACCOUNT_ALREADY_SUBSCRIBED,{account_id:r})}logLoginForgotPwdClicked(){this.logSignupEvents(_.FL_LOGIN_FORGOT_PASSWORD_CLICKED)}logDataProtectionView(){this._schoolConnectService.isFloridaExperimentFlow&&this.logSignupEvents(_.FL_DATA_PROTECTION_VIEWED)}logDataProtectionClick(){this._schoolConnectService.isFloridaExperimentFlow&&this.logSignupEvents(_.FL_DATA_PROTECTION_AGREE_CLICKED)}logFlAgeGateEvents(r){if(this._schoolConnectService.isFloridaExperimentFlow&&r!==t.L.CLOSE&&r!==t.A.BACK){let n=_.FL_SIGNUP_AGE_GATE_VIEWED;switch(r){case t.L.SUCCESS:n=_.FL_SIGNUP_AGE_GATE_SUCCESS;break;case t.L.FAIL:n=_.FL_SIGNUP_AGE_GATE_FAILURE;break;default:n=_.FL_SIGNUP_AGE_GATE_VIEWED}this.logSignupEvents(n)}}logSignupEvents(r,n){var l;const a=this._schoolConnectService.getMappedFlyerDataProfiles();this.bigQueryService.log(r,Object.assign({profiles_added:null===(l=null==a?void 0:a.map(u=>u.name))||void 0===l?void 0:l.length,school_id:this.getSchoolId()},n))}}return E.\u0275fac=function(r){return new(r||E)(c.LFG(s.p),c.LFG(g.Zn),c.LFG(o.SchoolConnectService),c.LFG(i.n),c.LFG(d.B))},E.\u0275prov=c.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},81339:(P,p,e)=>{e.r(p),e.d(p,{FLORIDA_CAMPAIGN_LS_KEYS:()=>v,SchoolConnectService:()=>r});var o=e(34929),t=e(76317),c=e(50253),s=e(59346),g=e(78947),i=e(59295),d=e(3184),_=e(64617),h=e(65925);const v={IDENTITY:"florida_exp_id",SCHOOL_CONNECT_DATA:"school-connect-data",SCHOOL_ID:"school-id"};let r=(()=>{class n{constructor(a,u,A){this._localStorage=a,this._dataService=u,this._zone=A,this._flyerId="",this._flyerData={},this.schoolName$=new t.X(""),this.schoolAddress$=new t.X(""),this._studentProfiles$=ne
1w t.X([]),this.floridaCampaignPaymentScreenLoaded=new c.x,this.floridaCampaignPaymentScreenLoaded$=this.floridaCampaignPaymentScreenLoaded,this.isFloridaExperimentFlow=!1,this.invalidFlyer=!1}get flyerId(){return this._flyerId}set flyerId(a){this._flyerId=a}set flyerDataProfiles(a){if(this.flyerId)if(a&&a.length)try{this._flyerData[this.flyerId].profiles=a}catch(u){console.log("some issue in setting statefull flyerdataprofiles")}else this._flyerData[this.flyerId]={profiles:[]}}get flyerDataProfiles(){return this.flyerId?this._flyerData[this.flyerId].profiles:null}get flyerDataProfilesLength(){if(this._flyerData&&this._flyerId&&this.flyerDataProfiles)return this.flyerDataProfiles.length}getSchoolAddress(){return this.schoolAddress$.asObservable()}getSchoolName(){return this.schoolName$.asObservable()}getStudentProfiles(){return this._studentProfiles$.asObservable()}fetchFlyerIdDetails(){return(0,s.D)(this._dataService.getApiV2(`getFlyerDetails/${this.flyerId}`))}intializeFlyerDataProfiles(){this.flyerDataProfiles=[]}initFlyerData(){var a;return(0,o.mG)(this,void 0,void 0,function*(){const u=this.flyerResponse;if(null==u?void 0:u.result)try{u.result=Object.assign(Object.assign({},u.result),{grade:null===(a=u.result)||void 0===a?void 0:a.studentGrade}),this._initProcessForFlyerData(u.result)}catch(A){}})}setSchoolName(){var a,u,A;const T=null===(A=null===(u=null===(a=this.flyerResponse)||void 0===a?void 0:a.result)||void 0===u?void 0:u.schoolName)||void 0===A?void 0:A.toLowerCase();this.schoolName$.next(T)}setSchoolAddress(){var a,u;this.schoolAddress$.next(null===(u=null===(a=this.flyerResponse)||void 0===a?void 0:a.result)||void 0===u?void 0:u.schoolAddress)}_initProcessForFlyerData(a){this.flyerDataProfiles=[];const{studentName:u,grade:A,schoolId:T}=a;let M,O=[];u&&null!=A&&(M={studentName:u,grade:A,id:T,source:"server"},O.push(M));const L=this.getProfilesFromLocalStorage();L?(L.find(S=>"server"===S.source)&&(O=O.filter(S=>"server"!==S.source)),O=[...L],this.assignAndSetProfilesInfoInLocalStorage(O)):this.assignAndSetProfilesInfoInLocalStorage(O),this.emitStudentProfile(O)}emitStudentProfile(a){this._studentProfiles$.next(a)}assignAndSetProfilesInfoInLocalStorage(a){this.flyerDataProfiles=a,this.setProfilesInfoInLocalStorage()}getMappedFlyerDataProfiles(){if(this.flyerDataProfiles)return this.flyerDataProfiles.map(({studentName:a,grade:u})=>({name:a,grade:u}))}setProfilesInfoInLocalStorage(){this._zone.runOutsideAngular(()=>{(0,g.H)(100).pipe((0,i.q)(1)).subscribe(()=>{try{let a=this._localStorage.get(v.SCHOOL_CONNECT_DATA);a||(a={}),a[this._flyerId]={profiles:this.flyerDataProfiles},this._localStorage.set(v.SCHOOL_CONNECT_DATA,a)}catch(a){console.warn("error in setting localstorage")}})})}getProfilesFromLocalStorage(){try{const a=this._localStorage.get(v.SCHOOL_CONNECT_DATA);return(null==a?void 0:a[this.flyerId])?a[this.flyerId].profiles:null}catch(a){return console.warn("error in getting localstorage"),null}}floridaCampaignPaymentPageLoaded(){this.floridaCampaignPaymentScreenLoaded.next(!0)}getFlyerIDFromLocalStorage(){return this._localStorage.get(v.IDENTITY)}mapFlyerWithAccount(){const a={flyerId:this.getFlyerIDFromLocalStorage()};this._dataService.postApiV2("redeemSchoolFlyer",a)}removeLocalStorageValues(){let a=this._localStorage.get(v.SCHOOL_CONNECT_DATA);delete a[this._localStorage.get(v.IDENTITY)],this._localStorage.set(v.SCHOOL_CONNECT_DATA,a),this._localStorage.remove(v.IDENTITY),this._localStorage.remove(v.SCHOOL_ID)}geoLocationV2(){this._dataService.getApiV2("geoLocation")}}return n.\u0275fac=function(a){return new(a||n)(d.LFG(_.n),d.LFG(h.D),d.LFG(d.R0b))},n.\u0275prov=d.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},69343:(P,p,e)=>{e.d(p,{O:()=>d});var o=e(50318),t=e(21599),c=e(3184),s=e(76750);let d=(()=>{class _{constructor(E,v,r){this._transferState=E,this._serverCheckService=v,this.BrowserWebpSupported=r,this.kTestImages={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"},this._isBrowserWebpSupported=!1,this.isBrowserWebpSupported=r;const n=(0,o.Cb)("WebPSupported");this._serverCheckService.isBrowser()?this.isBrowserWebpSupported=this._transferState.get(n,!1):this._transferState.set(n,this.isBrowserWebpSupported)}set isBrowserWebpSupported(E){this._isBrowserWebpSupported=E}get isBrowserWebpSupported(){return this._isBrowserWebpSupported}check_webp_feature(E,v){const r=new Image;r.onload=()=>{v(E,r.width>0&&r.height>0)},r.onerror=()=>{v(E,!1)},r.src="data:image/webp;base64,"+this.kTestImages[E]}}return _.\u0275fac=function(E){return new(E||_)(c.LFG(o.ki),c.LFG(s.T),c.LFG(t.Uf,8))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})()},17303:(P,p,e)=>{e.d(p,{S:()=>D});var o=e(34929),t=e(3184),c=e(95758),s=e(3560),g=e(97646),i=e(76799),d=e(17714),_=e(50253),h=e(98476),E=e(44687),v=e(30877),r=e(42898),n=e(87421),l=e(20377),a=e(36362),u=e(55617);function A(f,I){1&f&&t._UZ(0,"epic-dot-loader",2)}function T(f,I){if(1&f&&(t.ynx(0),t.TgZ(1,"p",10),t._uU(2),t.TgZ(3,"span",11),t._uU(4),t.qZA()(),t.BQk()),2&f){const m=t.oxw(2);t.xp6(1),t.Q6J("hidden",m.isChurnedSubscriber),t.xp6(1),t.hij(" Try ",m.productName,"\u2014it\u2019s "),t.xp6(2),t.hij("free for the first ",m.freeTrialDays," days.")}}function O(f,I){if(1&f&&(t.TgZ(0,"div",12),t._UZ(1,"img",13),t.TgZ(2,"p"),t._uU(3),t.qZA()()),2&f){const m=I.$implicit;
1t.xp6(1),t.s9C("src",m.imageSrc,t.LSH),t.MGl("alt","",m.label," | Epic")("title","",m.label," | Epic"),t.xp6(2),t.hij(" ",m.label," ")}}function M(f,I){if(1&f&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&f){const m=t.oxw(2);t.xp6(1),t.Oqu(m.buttonText)}}function L(f,I){1&f&&(t.TgZ(0,"span"),t._UZ(1,"epic-dot-loader",14),t.qZA())}function F(f,I){if(1&f){const m=t.EpF();t.TgZ(0,"div",3)(1,"h2",4),t.SDv(2,5),t.qZA(),t.YNc(3,T,5,3,"ng-container",6),t.TgZ(4,"div",7),t.YNc(5,O,4,4,"div",8),t.qZA(),t.TgZ(6,"button",9),t.NdJ("click",function(){return t.CHM(m),t.oxw().onTryButtonClicked()}),t.YNc(7,M,2,1,"span",6),t.YNc(8,L,2,0,"span",6),t.qZA()()}if(2&f){const m=t.oxw();t.xp6(3),t.Q6J("ngIf",m.freeTrialDays),t.xp6(2),t.Q6J("ngForOf",m.valuePropositionList),t.xp6(2),t.Q6J("ngIf",!m.btnLoading),t.xp6(1),t.Q6J("ngIf",m.btnLoading)}}const S="try_free_clicked_post_trial_user";let D=(()=>{class f{constructor(m,C,R,y,U,B,N,W){this._bigQuery=m,this.loggingService=C,this._profileService=R,this._productService=y,this._btsService=U,this._postTrialExperimentService=B,this._lazyInjectService=N,this._configData=W,this.tryFreeClicked=new t.vpe,this._bbdVariant="",this._paywallVariant="",this._consumerType=s.CONSUMER_TYPES.D2CTrial,this._productData={},this._subs=new d.w0,this.destroy$=new _.x,this.productName=g.nn.FAMILY,this.freeTrialDays=7,this.isChurnedSubscriber=!1,this.buttonText="Start Free Trial",this.isLoading=!1,this.btsDestroy$=new _.x,this._countryCode="",this.valuePropositionList=[{imageSrc:"/assets/modals/badge-1.svg",label:"Access to 40,000+ books, videos & audiobooks."},{imageSrc:"/assets/modals/badge-2.svg",label:"Parent tools let you track your kid\u2019s progress."},{imageSrc:"/assets/modals/badge-3.svg",label:"Reading Buddies and badges bring the fun."}],this.btnLoading=!1,this.isLoading=!0}ngOnInit(){var m;return(0,o.mG)(this,void 0,void 0,function*(){"boolean"==typeof this._btsService.isBTSAllowed?(yield this.ifTrialPostSignUpUser())?(this.setFreeTrialDaysForTrialPostUsers(),this.isLoading=!1):(this._countryCode=null!==(m=this._btsService.countryCode)&&void 0!==m?m:"",this._getProductData(this._btsService.isBTSAllowed)):this.btsSubscription=this._btsService.init(this.btsDestroy$).subscribe({next:C=>(0,o.mG)(this,void 0,void 0,function*(){var R;(yield this.ifTrialPostSignUpUser())?(this.setFreeTrialDaysForTrialPostUsers(),this.isLoading=!1):(this._countryCode=null!==(R=C.countryCode)&&void 0!==R?R:"",this._getProductData(C.isBTSAllowed)),this.btsDestroy$.next(),this.btsDestroy$.complete()}),error:C=>{this._getProductData(!1),this.btsDestroy$.next(),this.btsDestroy$.complete()}});try{this._bigQuery.log(i.FD),this.loggingService.logAnalyticsEvent(i.yu,"init")}catch(C){console.warn("Failed to log trial popup viewed event:",C)}this._profileService.checkIfUserIsChurnedSubscriber()&&(this.isChurnedSubscriber=!0,this.buttonText="Choose a Plan"),this.loadModules()})}loadModules(){return(0,o.mG)(this,void 0,void 0,function*(){Promise.all([e.e("default-node_modules_angular_flex-layout_fesm2015_angular-flex-layout-extended_mjs"),e.e("default-node_modules_angular_flex-layout_fesm2015_angular-flex-layout_mjs"),e.e("default-src_app_core_services_after-hours_service_ts"),e.e("default-src_app_website_services_account-create-logging_service_ts"),e.e("default-node_modules_angular_material_fesm2015_checkbox_mjs"),e.e("default-src_app_core_services_experience_service_ts"),e.e("default-node_modules_angular_material_fesm2015_tooltip_mjs"),e.e("default-node_modules_lodash-es__MapCache_js-node_modules_lodash-es_isArray_js-node_modules_lo-dda819"),e.e("default-node_modules_lodash-es__Stack_js-node_modules_lodash-es__Uint8Array_js-node_modules_l-48fbe3"),e.e("default-src_app_shared_payment-form_payment-form_component_ts"),e.e("default-src_app_core_services_google-api_service_ts"),e.e("default-src_app_core_services_redirect_service_ts"),e.e("default-src_app_core_services_educator-sign-up_service_ts"),e.e("default-src_app_web-app_components_after-hours-dialog_after-hours-dialog_service_ts"),e.e("default-node_modules_angular_material_fesm2015_form-field_mjs"),e.e("default-node_modules_angular_material_fesm2015_select_mjs"),e.e("default-src_app_core_services_grpc_service_ts"),e.e("default-src_app_core_services_content-gating_service_ts"),e.e("default-src_app_core_services_impressions-logger_service_ts"),e.e("default-src_app_core_services_limited-time-offer-promo_service_ts"),e.e("default-src_app_web-app_services_onboarding-dialog_service_ts"),e.e("default-src_app_web-app_services_daily-read-time_service_ts"),e.e("default-node_modules_animejs_lib_anime_es_js"),e.e("default-node_modules_lodash-es__baseIteratee_js"),e.e("default-src_app_web-app_services_epic-toast-custom_service_ts"),e.e("default-src_app_web-app_services_freemium_service_ts"),e.e("default-src_app_core_services_canvas_drawboard_service_ts-src_app_core_services_story-sketch--c22f3f"),e.e("default-src_app_shared_avatar-icon_avatar-icon_component_ts-src_app_web-app_services_achievem-7072aa"),e.e("default-src_app_web-app_services_read-content_service_ts"),e.e("default-src_app_web-app_services_collection_service_ts"),e.e("default-src_app_web-app_services_assign_service_ts"),e.e("default-src_app_core_animations_ts-src_app_core_constants_BIGQUERY-CONSTANTS_AssignmentC
1onsta-eed4b2"),e.e("default-src_app_shared_buttons_favorite-button_favorite-button_component_ts-src_app_shared_bu-1d0809"),e.e("default-src_app_web-app_services_edu-onboarding_service_ts"),e.e("default-src_app_web-app_components_content-items_book-item_new-epic-book-item_module_ts"),e.e("default-node_modules_angular_material_fesm2015_slider_mjs"),e.e("default-src_app_web-app_services_profile-access_service_ts"),e.e("default-src_app_web-app_services_profile-create_service_ts"),e.e("default-src_app_web-app_components_content-rows_content-row-recycling_content-row-recycling_c-46313d"),e.e("default-src_app_web-app_components_dialogs_first-session-dialogs_choose-age-name_choose-age-n-45e807"),e.e("default-src_app_web-app_components_dialogs_first-session-dialogs_choose-age-book_choose-age-b-4ae5a1"),e.e("default-src_app_web-app_routes_onboarding-profile-page_onboarding-profile-page_module_ts"),e.e("src_app_core_constants_BIGQUERY-CONSTANTS_NufStepConstants_ts-src_app_core_constants_BIGQUERY-48a36a")]).then(e.bind(e,29206)),Promise.all([e.e("default-node_modules_angular_flex-layout_fesm2015_angular-flex-layout-extended_mjs"),e.e("default-node_modules_angular_flex-layout_fesm2015_angular-flex-layout_mjs"),e.e("default-src_app_core_services_after-hours_service_ts"),e.e("default-src_app_website_services_account-create-logging_service_ts"),e.e("default-node_modules_angular_material_fesm2015_checkbox_mjs"),e.e("default-src_app_core_services_experience_service_ts"),e.e("default-node_modules_angular_material_fesm2015_tooltip_mjs"),e.e("default-node_modules_lodash-es__MapCache_js-node_modules_lodash-es_isArray_js-node_modules_lo-dda819"),e.e("default-node_modules_lodash-es__Stack_js-node_modules_lodash-es__Uint8Array_js-node_modules_l-48fbe3"),e.e("default-src_app_shared_payment-form_payment-form_component_ts"),e.e("default-src_app_core_services_google-api_service_ts"),e.e("default-src_app_core_services_redirect_service_ts"),e.e("default-src_app_core_services_educator-sign-up_service_ts"),e.e("default-src_app_web-app_components_after-hours-dialog_after-hours-dialog_service_ts"),e.e("default-node_modules_angular_material_fesm2015_form-field_mjs"),e.e("default-node_modules_angular_material_fesm2015_select_mjs"),e.e("default-src_app_core_services_grpc_service_ts"),e.e("default-src_app_core_services_content-gating_service_ts"),e.e("default-src_app_core_services_impressions-logger_service_ts"),e.e("default-src_app_core_services_limited-time-offer-promo_service_ts"),e.e("default-src_app_web-app_services_onboarding-dialog_service_ts"),e.e("default-src_app_web-app_services_daily-read-time_service_ts"),e.e("default-node_modules_animejs_lib_anime_es_js"),e.e("default-node_modules_lodash-es__baseIteratee_js"),e.e("default-src_app_web-app_services_epic-toast-custom_service_ts"),e.e("default-src_app_web-app_services_freemium_service_ts"),e.e("default-src_app_core_services_canvas_drawboard_service_ts-src_app_core_services_story-sketch--c22f3f"),e.e("default-src_app_shared_avatar-icon_avatar-icon_component_ts-src_app_web-app_services_achievem-7072aa"),e.e("default-src_app_web-app_services_read-content_service_ts"),e.e("default-src_app_web-app_services_collection_service_ts"),e.e("default-src_app_web-app_services_assign_service_ts"),e.e("default-src_app_core_animations_ts-src_app_core_constants_BIGQUERY-CONSTANTS_AssignmentConsta-eed4b2"),e.e("default-src_app_shared_buttons_favorite-button_favorite-button_component_ts-src_app_shared_bu-1d0809"),e.e("default-src_app_web-app_services_edu-onboarding_service_ts"),e.e("default-src_app_web-app_components_content-items_book-item_new-epic-book-item_module_ts"),e.e("default-node_modules_angular_material_fesm2015_slider_mjs"),e.e("default-src_app_web-app_services_profile-access_service_ts"),e.e("default-src_app_web-app_services_profile-create_service_ts"),e.e("default-src_app_web-app_components_content-rows_content-row-recycling_content-row-recycling_c-46313d"),e.e("default-src_app_web-app_components_dialogs_first-session-dialogs_choose-age-name_choose-age-n-45e807"),e.e("default-src_app_web-app_components_dialogs_first-session-dialogs_choose-age-book_choose-age-b-4ae5a1"),e.e("default-src_app_web-app_routes_onboarding-profile-page_onboarding-profile-page_module_ts"),e.e("src_app_core_constants_BIGQUERY-CONSTANTS_NufStepConstants_ts-src_app_core_constants_BIGQUERY-48a36a")]).then(e.bind(e,29206)),Promise.all([e.e("common"),e.e("node_modules_sentinel-one_s1-lottie___ivy_ngcc___fesm2015_sentinel-one_js-_83523")]).then(e.bind(e,98285)),Promise.resolve().then(e.bind(e,1734))})}onTryButtonClicked(){return(0,o.mG)(this,void 0,void 0,function*(){if(this._postTrialExperimentService.isPostTrialPaymentVariantUser()&&this._postTrialExperimentService.isAccountStatusFirstTimeBasicUser()){if(!this.btnLoading){this.btnLoading=!0,yield this._postTrialExperimentService.setTrialPostSignUpTraitByAPI();const m=yield this._lazyInjectService.get(()=>Promise.all([e.e("default-src_app_core_services_after-hours_service_ts"),e.e("default-src_app_website_services_account-create-logging_service_ts"),e.e("default-node_modules_angular_material_fesm2015_checkbox_mjs"),e.e("default-src_app_core_services_experience_service_ts"),e.e("default-node_modules_angular_material_fesm2015_tooltip_mjs"),e.e("default-node_modules_lodash-es__MapCache_js-node_modules_lodash-es_isArray_js-node_modules_lo-dda819"),e.e("default-node_modules_lodash-es__Stack_js-node_modules_lodash-es__Uint8Array_js-node_modules_l-48fbe3"),e.e("default-src_app_shared_payment-form_payment-form_component_ts"),e.e("default-src_app_core_services_redirect_service_ts"),e.e("default-src_app_core_services_educator-sign-up_service_ts"),e.e("default-src_app_web-app_components_after-hours-dialog_after-hours-dialog_service_ts"),e.e("default-src_app_core_services_grpc_service_ts"),e.e("default-src_app_core_services_content-gating_service_ts"),e.e("default-src_app_core_services_impressions-logger_service_ts"),e.e("default-src_app_core_services_limited-time-offer-promo_service_ts"),e.e("default-src_app_web-app_services_onboarding-dialog_service_ts"),e.e("default-src_app_web-app_services_daily-read-time_service_ts"),e.e("default-node_modules_animejs_lib_anime_es_js"),e.e("default-node_modules_lodash-es__baseIteratee_js"),e.e("default-src_app_web-app_services_epic-toast-custom_service_ts"),e.e("default-src_app_web-app_services_freemium_service_ts"),e.e("default-src_app_core_services_canvas_drawboard_service_ts-src_app_core_services_story-sketch--c22f3f"),e.e("default-src_app_shared_avatar-icon_avatar-icon_component_ts-src_app_web-app_services_achievem-7072aa"),e.e("default-src_app_web-app_services_read-content_service_ts"),e.e("default-src_app_web-app_services_edu-onboarding_service_ts"),e.e("default-src_app_web-app_services_profile-access_service_ts"),e.e("default-src_app_web-app_services_profile-create_service_ts"),e.e("src_app_core_constants_BIGQUERY-CONSTANTS_NufStepConstants_ts-src_app_core_constants_BIGQUERY-2b8cdb")]).then(e.bind(e,69130)).then(C=>C.ProfileCreateService));try{this._bigQuery.log(S),this.loggingService.logAnalyticsEvent(S,"init")}catch(C){}this._postTrialExperimentService.showCelebrationAndStartProfileCreate(()=>{m.startProfileCreate()})}}
1else{this.tryFreeClicked.emit();try{this._bigQuery.log(i.mV),this.loggingService.logAnalyticsEvent(i.AL,"init")}catch(m){console.warn("Failed to log trial info clicked event:",m)}}})}ifTrialPostSignUpUser(){return(0,o.mG)(this,void 0,void 0,function*(){return!(!this._postTrialExperimentService.checkIfAccountCreatedWithinRequiredDays(7)||!this._postTrialExperimentService.isAccountStatusFirstTimeBasicUser())&&(yield this._postTrialExperimentService.getExperimentDataForPostTrialPayment(),this._postTrialExperimentService.isPostTrialPaymentVariantUser()&&this._postTrialExperimentService.isAccountStatusFirstTimeBasicUser())})}_getProductData(m){var C,R,y;return(0,o.mG)(this,void 0,void 0,function*(){let U={consumer_types:this._consumerType?this._consumerType:"",tags:this._paywallVariant?`#${this._paywallVariant}`:""};m&&this._consumerType===s.CONSUMER_TYPES.D2CTrial&&(U.tags=U.tags?`${U.tags},${s.PRODUCT_TAGS.EVERGREEN}`:`${s.PRODUCT_TAGS.EVERGREEN}`),U.countryCode=this._countryCode,this._productData=yield this._productService.getDynamicProduct(U),this._productService.cacheProductsResponse(this._productData),this.freeTrialDays=null===(y=null===(R=null===(C=this._productData)||void 0===C?void 0:C.productIntervalData)||void 0===R?void 0:R.yearly)||void 0===y?void 0:y.config_trial_days,this._productService.setProductData(this._productData),this._productService.setTrialDays(this.freeTrialDays),this._subs.unsubscribe(),this.isLoading=!1})}setFreeTrialDaysForTrialPostUsers(){return(0,o.mG)(this,void 0,void 0,function*(){if(this._postTrialExperimentService.isPostTrialPaymentEligible())try{this.freeTrialDays=Number(this._postTrialExperimentService.postTrialPaymentExperimentValue)}catch(m){}})}ngOnDestroy(){var m;this._subs.unsubscribe(),null===(m=this.btsSubscription)||void 0===m||m.unsubscribe(),this.btsDestroy$.next(),this.btsDestroy$.complete()}}return f.\u0275fac=function(m){return new(m||f)(t.Y36(h.p),t.Y36(v.LoggingService),t.Y36(E.ProfileService),t.Y36(s.ProductService),t.Y36(r.Q),t.Y36(n.PostTrialExperimentService),t.Y36(l.m),t.Y36(c.WI))},f.\u0275cmp=t.Xpm({type:f,selectors:[["epic-value-proposition-dialog"]],outputs:{tryFreeClicked:"tryFreeClicked"},decls:2,vars:2,consts:function(){let I;return I=$localize`:get any kid excited to read and learn|headingâd468413ba6eae592dbcc8e85ffbd127263815b6câ1734365552572740931: Get any kid excited to read and learn! `,[["class","main-loader","color","#0a96e6",4,"ngIf"],["class","container",4,"ngIf"],["color","#0a96e6",1,"main-loader"],[1,"container"],[1,"marginTop-xl","marginBottom-xs"],I,[4,"ngIf"],[1,"values-wrapper"],["class","values-container",4,"ngFor","ngForOf"],[1,"epic-btn","epic-btn--l","epic-btn--cta","bottom-cta",3,"click"],[1,"margin-none",3,"hidden"],[1,"bold-subheader"],[1,"values-container"],["width","150","height","150",3,"src","alt","title"],["color","#ffffff"]]},template:function(m,C){1&m&&(t.YNc(0,A,1,0,"epic-dot-loader",0),t.YNc(1,F,9,4,"div",1)),2&m&&(t.Q6J("ngIf",C.isLoading),t.xp6(1),t.Q6J("ngIf",!C.isLoading))},directives:[a.O5,u.c,a.sg],styles:[".container[_ngcontent-%COMP%]{color:#3c4b62}.bold-subheader[_ngcontent-%COMP%]{font-weight:700}.values-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;width:100%;margin:48px 0;padding:0 60px}@media screen and (max-width: 600px){.values-wrapper[_ngcontent-%COMP%]{flex-direction:column;padding:0 16px;margin:24px 0}}.values-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:30%;justify-content:center;align-items:center}@media screen and (max-width: 600px){.values-container[_ngcontent-%COMP%]{flex-direction:row;max-width:100%;justify-content:flex-start;align-items:flex-start;text-align:left;margin-bottom:16px}}.values-container[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:150px;height:150px}@media screen and (max-width: 960px){.values-container[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:120px;height:120px}}@media screen and (max-width: 600px){.values-container[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:88px;height:88px;margin-right:16px}}@media screen and (max-width: 960px){.bottom-cta[_ngcontent-%COMP%]{margin-bottom:60px}}@media screen and (max-width: 600px){.bottom-cta[_ngcontent-%COMP%]{margin-bottom:0}}epic-dot-loader.main-loader[_ngcontent-%COMP%]{padding:100px 0;display:block;margin-top:20%}"]}),f})()},55617:(P,p,e)=>{e.d(p,{c:()=>s});var o=e(3184),t=e(36362);const c=function(g,i,d){return{"background-color":g,"width.px":i,"height.px":d}};let s=(()=>{class g{constructor(){this.dotWidth=18}ngOnInit(){this.color||(this.color="#ffffff")}}return g.\u0275fac=function(d){return new(d||g)},g.\u0275cmp=o.Xpm({type:g,selectors:[["epic-dot-loader"]],inputs:{color:"color",dotWidth:"dotWidth"},decls:4,vars:15,consts:[[1,"dot-loader"],[1,"bounce1",3,"ngStyle"],[1,"bounce2",3,"ngStyle"],[1,"bounce3",3,"ngStyle"]],template:function(d,_){1&d&&(o.TgZ(0,"div",0),o._UZ(1,"div",1)(2,"div",2)(3,"div",3),o.qZA()),2&d&&(o.xp6(1),o.Q6J("ngStyle",o.kEZ(3,c,_.color,_.dotWidth,_.dotWidth)),o.xp6(1),o.Q6J("ngStyle",o.kEZ(7,c,_.color,_.dotWidth,_.dotWidth)),o.xp6(1),o.Q6J("ngStyle",o.kEZ(11,c,_.color,_.dotWidth,_.dotWidth)))},directives:[t.PC],styles:["div.dot-loader[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}div.dot-loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-radius:50%;animation:bouncedelay 1.4s infinite ease-in-out;animation-fill-mode:both}div.dot-loader[_ngcontent-%COMP%] div.bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}div.dot-loader[_ngcontent-%COMP%] div.bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}div.dot-loader[_ngcontent-%COMP%] div.bounce3[_ngcontent-%COMP%]{animation-delay:0s}@keyframes bouncedelay{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),g})()},78096:(P,p,e)=>{e.d(p,{A:()=>c});var o=e(3184),t=e(65758);let c=(()=>{class s{constructor(i){this.iconService=i,this.iconClasses=[],this.iconPath="",this.iconClassesString=""}ngOnInit(){this.icon&&(this.iconPath=this.iconService.getIconPath(this.icon)),this.setIconClasses()}
1ngOnChanges(i){i.icon&&i.icon.currentValue!==i.icon.previousValue&&(this.iconPath=this.iconService.getIconPath(i.icon.currentValue)),i.iconClasses&&i.iconClasses.currentValue!==i.iconClasses.previousValue&&this.setIconClasses()}setIconClasses(){this.iconClasses=[...this.iconClasses],this.iconClasses.unshift("epic-icon"),this.iconClassesString=this.iconClasses.join(" ")}}return s.\u0275fac=function(i){return new(i||s)(o.Y36(t.C))},s.\u0275cmp=o.Xpm({type:s,selectors:[["epic-icon"]],inputs:{icon:"icon",iconClasses:"iconClasses"},features:[o.TTD],decls:2,vars:3,template:function(i,d){1&i&&(o.O4$(),o.TgZ(0,"svg"),o._UZ(1,"use"),o.qZA()),2&i&&(o.uIk("class",d.iconClassesString),o.xp6(1),o.uIk("href",d.iconPath)("href",d.iconPath,null,"xlink"))},styles:["[_nghost-%COMP%]{display:inline-block;line-height:0;vertical-align:middle}svg[_ngcontent-%COMP%]:not(:root){overflow:hidden}"]}),s})()},34713:(P,p,e)=>{e.d(p,{b:()=>E});var o=e(3184),t=e(15527),c=e(65758),s=e(1146),g=e(41752),i=e(20028),d=e(31503),_=e(78096);const h=function(){return["epic-icon--cursor-default"]};let E=(()=>{class v{constructor(n,l,a,u){this.accountService=n,this.assignService=l,this.envService=a,this.routingService=u,this.cdnUrl=this.envService.cdnBase,this.isEducator=!1,this.assignIcon=c.L.ASSIGN,this.assignText=this.assignService.getAssignText(),this.close=new o.vpe,this.isEducator=this.accountService.isEducator()}ngOnInit(){}goToExplore(){this.routingService.goToWebAppRoute({route:t.Pm.EXPLORE}),this.close.emit(!0)}}return v.\u0275fac=function(n){return new(n||v)(o.Y36(s.B),o.Y36(i.r),o.Y36(g.DJ),o.Y36(d.Zn))},v.\u0275cmp=o.Xpm({type:v,selectors:[["epic-assign-instructions"]],outputs:{close:"close"},decls:27,vars:9,consts:[[1,"assign-instructions-container"],[1,"assign-instructions-list-container"],[1,"assign-instructions-list-item"],[1,"assign-img",3,"icon","iconClasses"],[1,"epic-btn","marginTop-l",3,"click"]],template:function(n,l){1&n&&(o.TgZ(0,"div",0)(1,"h2"),o._uU(2),o.qZA(),o.TgZ(3,"div",1)(4,"div",2)(5,"h4"),o._uU(6,"1"),o.qZA(),o.TgZ(7,"div"),o._uU(8),o.qZA()(),o.TgZ(9,"div",2)(10,"h4"),o._uU(11,"2"),o.qZA(),o.TgZ(12,"div"),o._uU(13),o.qZA(),o._UZ(14,"epic-icon",3),o.qZA(),o.TgZ(15,"div",2)(16,"h4"),o._uU(17,"3"),o.qZA(),o.TgZ(18,"div"),o._uU(19),o.qZA()(),o.TgZ(20,"div",2)(21,"h4"),o._uU(22,"4"),o.qZA(),o.TgZ(23,"div"),o._uU(24),o.qZA()()(),o.TgZ(25,"button",4),o.NdJ("click",function(){return l.goToExplore()}),o._uU(26," Start Exploring "),o.qZA()()),2&n&&(o.xp6(2),o.hij("",l.assignText," Content or a Collection"),o.xp6(6),o.AsE(" Search for a book, video, or collection you wish to ",l.isEducator?"assign":"send"," to your ",l.isEducator?"students":"kid",". "),o.xp6(5),o.hij(" To ",l.isEducator?"assign":"send"," an item, simply click on "),o.xp6(1),o.Q6J("icon",l.assignIcon)("iconClasses",o.DdM(8,h)),o.xp6(5),o.hij(" ",l.isEducator?"You can assign to an entire class or to individual students.":"Send to your kid."," "),o.xp6(5),o.hij(" ",l.isEducator?"Students":"Your kid"," will receive your assignment in their mailbox the next time they log in to Epic. "))},directives:[_.A],styles:[".assign-instructions-container[_ngcontent-%COMP%]{text-align:center;color:#3c4b62}.assign-instructions-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0}.assign-instructions-container[_ngcontent-%COMP%] .assign-instructions-list-container[_ngcontent-%COMP%]{margin-top:30px;text-align:left}.assign-instructions-container[_ngcontent-%COMP%] .assign-instructions-list-container[_ngcontent-%COMP%] .assign-instructions-list-item[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.assign-instructions-container[_ngcontent-%COMP%] .assign-instructions-list-container[_ngcontent-%COMP%] .assign-instructions-list-item[_ngcontent-%COMP%]:not(:last-child){margin-bottom:12px}.assign-instructions-container[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#0a96e6;margin:0 12px 0 0}.assign-instructions-container[_ngcontent-%COMP%] .assign-img[_ngcontent-%COMP%]{margin-left:8px}"]}),v})()},78601:(P,p,e)=>{e.r(p),e.d(p,{AssignInstructionsModule:()=>d});var o=e(36362),t=e(3184),c=e(95758),s=e(34713);let g=(()=>{class _{constructor(E){this.dialogRef=E}ngOnInit(){}}return _.\u0275fac=function(E){return new(E||_)(t.Y36(c.so))}
1,_.\u0275cmp=t.Xpm({type:_,selectors:[["epic-assign-instructions-dialog"]],decls:4,vars:0,consts:[[1,"mat-dialog-close",3,"click"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"assign-instructions-in-dialog",3,"close"]],template:function(E,v){1&E&&(t.TgZ(0,"div",0),t.NdJ("click",function(){return v.dialogRef.close()}),t.qZA(),t._UZ(1,"h2",1),t.TgZ(2,"div",2)(3,"epic-assign-instructions",3),t.NdJ("close",function(){return v.dialogRef.close()}),t.qZA()())},directives:[c.uh,c.xY,s.b],styles:[".assign-instructions-in-dialog[_ngcontent-%COMP%]{margin:0 22px 4px}"]}),_})();var i=e(59198);let d=(()=>{class _{static getAssignInstructionsDialogComponent(){return g}}return _.\u0275fac=function(E){return new(E||_)},_.\u0275mod=t.oAB({type:_}),_.\u0275inj=t.cJS({imports:[[o.ez,c.Is,i.L]]}),_})()},67704:(P,p,e)=>{e.d(p,{Y:()=>E});var o=e(97646),t=e(72426),c=e(73398),s=e(23489),g=e(3184),i=e(98476),d=e(77902),_=e(64617),h=e(2279);let E=(()=>{class v{constructor(n,l,a,u){this._bigQuery=n,this._sessionStorage=l,this._localStorageService=a,this._siteConstantsService=u}logSplitterView(){this._bigQuery.log(t.oM)}logSplitterUserTypeSelect(n){return this._bigQuery.log(n===o.$A.CHILD?t.JQ:t.No)}logKidsExperienceAgeGateView(n){this._bigQuery.log(t.Zi,{destination:n})}originCameFromKidsClassCode(){return Boolean(this._sessionStorage.getSessionStorageWithKey(this._sessionStorage.KEYS.FROM_KIDS_CLASS_CODE))}logKidsLandingPageViewed(){this._bigQuery.log(t.CS)}logSchoolSelect(){this._bigQuery.log(t.ol)}logFreetimeSelect(){this._bigQuery.log(t.Ku)}logSchoolGrownupSelect(){this._bigQuery.log(t.gE)}logHelpKidLoginView(){this._bigQuery.log(t.f)}logHelpKidLoginClassSelect(){this._bigQuery.log(t.jf)}logHelpKidLoginFamilySelect(){this._bigQuery.log(t.GJ)}logHelpKidLoginSignupSelect(){return this._bigQuery.log(t.Ko)}logHelpKidLoginHomepageSelect(){return this._bigQuery.log(t.Sq)}isGoogleBot(n){return new RegExp(this._siteConstantsService.GOOGLEBOT_USERAGENT_IDS.map(a=>a.source).join("|"),"i").test(n)}checkAndSetKidsSsoLocalStorageValues(){const n=this._sessionStorage.getSessionStorageWithKey(c.nt.KIDS_LOGIN_SSO_QUERY_PARAM_KEY);n&&(this._sessionStorage.removeSessionStorageKey(c.nt.KIDS_LOGIN_SSO_QUERY_PARAM_KEY),this._setLocalStorageValuesForKidsSsoLogin(n))}_setLocalStorageValuesForKidsSsoLogin(n){switch(n){case s.c.GOOGLE:this._localStorageService.set(c.nt.GOOGLE_SSO_LOGGED_IN,!0);break;case s.c.APPLE:this._localStorageService.set(c.nt.APPLE_SSO_LOGGED_IN,!0);break;case s.c.FACEBOOK:this._localStorageService.set(c.nt.FACEBOOK_SSO_LOGGED_IN,!0)}}}return v.\u0275fac=function(n){return new(n||v)(g.LFG(i.p),g.LFG(d.u),g.LFG(_.n),g.LFG(h.JF))},v.\u0275prov=g.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},39910:(P,p,e)=>{e.d(p,{Yg:()=>M,u3:()=>F,xu:()=>l});var o=e(3184),t=e(76484),c=e(50253),s=e(26562),g=e(59319),i=e(83336),d=e(59295),_=e(87260),h=e(71989),E=e(50635),v=e(44874),r=e(68951),n=e(14390);let l=(()=>{class S{}return S.\u0275fac=function(f){return new(f||S)},S.\u0275mod=o.oAB({type:S}),S.\u0275inj=o.cJS({}),S})();const a=new Set;let u,A=(()=>{class S{constructor(f){this._platform=f,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):O}matchMedia(f){return(this._platform.WEBKIT||this._platform.BLINK)&&function T(S){if(!a.has(S))try{u||(u=document.createElement("style"),u.setAttribute("type","text/css"),document.head.appendChild(u)),u.sheet&&(u.sheet.insertRule(`@media ${S} {body{ }}`,0),a.add(S))}catch(D){console.error(D)}}(f),this._matchMedia(f)}}return S.\u0275fac=function(f){return new(f||S)(o.LFG(n.t4))},S.\u0275prov=o.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();function O(S){return{matches:"all"===S||""===S,media:S,addListener:()=>{},removeListener:()=>{}}}let M=(()=>{class S{constructor(f,I){this._mediaMatcher=f,this._zone=I,this._queries=new Map,this._destroySubject=new c.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(f){return L((0,t.Eq)(f)).some(m=>this._registerQuery(m).mql.matches)}observe(f){const m=L((0,t.Eq)(f)).map(R=>this._registerQuery(R).observable);let C=(0,s.a)(m);return C=(0,g.z)(C.pipe((0,d.q)(1)),C.pipe((0,_.T)(1),(0,h.b)(0))),C.pipe((0,E.U)(R=>{const y={matches:!1,breakpoints:{}};return R.forEach(({matches:U,query:B})=>{y.matches=y.matches||U,y.breakpoints[B]=U}),y}))}_registerQuery(f){if(this._queries.has(f))return this._queries.get(f);const I=this._mediaMatcher.matchMedia(f),C={observable:new i.y(R=>{const y=U=>this._zone.run(()=>R.next(U));return I.addListener(y),()=>{I.removeListener(y)}}).pipe((0,v.O)(I),(0,E.U)(({matches:R})=>({query:f,matches:R})),(0,r.R)(this._destroySubject)),mql:I};return this._queries.set(f,C),C}}return S.\u0275fac=function(f){return new(f||S)(o.LFG(A),o.LFG(o.R0b))},S.\u0275prov=o.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();function L(S){return S.map(D=>D.split(",")).reduce((D,f)=>D.concat(f)).map(D=>D.trim())}const F={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}}}]);
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.