(self.wpRiseJsonp=self.wpRiseJsonp||[]).push([["learn_main_js-node_modules_pnpm_moment_2_30_1_node_modules_moment_locale_sync_recursive_en"],{30349:Ze=>{Ze.exports=function(Ee){Ee||(Ee={});var __t,__p="";with(Ee)__p+=`<style>
  :root {
    --color-theme-contrast-complementary-rgb: `+((__t=colorThemeContrastComplementaryRGB)==null?"":__t)+`;
    --color-theme-contrast-complementary: `+((__t=colorThemeContrastComplementary)==null?"":__t)+`;
    --color-theme-contrast-rgb: `+((__t=colorThemeContrastRGB)==null?"":__t)+`;
    --color-theme-contrast: `+((__t=colorThemeContrast)==null?"":__t)+`;
    --color-theme-rgb: `+((__t=colorThemeRGB)==null?"":__t)+`;
    --color-theme-tint: `+((__t=colorThemeTint)==null?"":__t)+`;
    --color-theme-transparent: `+((__t=colorThemeTransparent)==null?"":__t)+`;
    --color-theme: `+((__t=colorTheme)==null?"":__t)+`;
    --font-family-body: `+((__t=bodyTypeface)==null?"":__t)+`;
    --font-family-head: `+((__t=headingTypeface)==null?"":__t)+`;
    --font-family-ui: `+((__t=uiTypeface)==null?"":__t)+`;

    --mon-theme-font-body: var(--font-family-body);
    --mon-theme-font-heading: var(--font-family-head);
  }

  .brand--ui, .brand--ui * {
    font-family: var(--font-family-ui) !important;
  }

  .brand--beforeHead:before {
    font-family: var(--font-family-ui) !important;
  }

  .brand--afterHead:after {
    font-family: var(--font-family-ui) !important;
  }

  .brand--background {
    background-color: var(--color-theme) !important;
  }

  .brand--background-all * {
    background-color: var(--color-theme) !important;
  }

  .brand--border {
    border-color: var(--color-theme) !important;

    @media (forced-colors: active) {
      border-color: transparent !important;
    }
  }

  .brand--color {
    color: var(--color-theme) !important;
  }

  .brand--color-all * {
    color: var(--color-theme) !important;
  }

  .brand--shadow {
    box-shadow: 0 0 0 0.2rem var(--color-theme) !important;
  }

  .brand--shadow-all * {
    box-shadow: 0 0 0 0.2rem var(--color-theme) !important;
  }

  .brand--fill {
    fill: var(--color-theme) !important;
  }

  .brand--stroke {
    stroke: var(--color-theme) !important;
  }

  .brand--beforeBackground:before {
    background-color: var(--color-theme) !important;
  }

  .brand--beforeBorder:before {
    border-color: var(--color-theme) !important;
  }

  .brand--beforeColor:before {
    color: var(--color-theme) !important;
  }

  .brand--afterBackground:after {
    background-color: var(--color-theme) !important;
  }

  .brand--afterBorder:after {
    border-color: var(--color-theme) !important;
  }

  .brand--afterColor:after {
    color: var(--color-theme) !important;
  }

  /* should be applied to containers where links
     need to appear in brand color */
  .brand--linkColor a {
    color: var(--color-theme) !important;
    fill: var(--color-theme) !important;
  }

  /* should be applied to containers where links
     need to change to brand color on hover */
  .brand--linkColorHover a:hover {
    color: var(--color-theme) !important;
    fill: var(--color-theme) !important;
  }

  /* should be applied to any single element that
     needs to change color on hover */
  .brand--hoverColor:hover {
    color: var(--color-theme) !important;
  }

  .button.brand--background:hover { opacity: .65 !important; }

  .brandHover:hover {
    fill: var(--color-theme) !important;
  }


  @media (min-width: 47.9375em) { /* 768px */
    .brand--min768--background {
      background-color: var(--color-theme) !important;
    }

    .brand--min768--border {
      border-color: var(--color-theme) !important;
    }

    .brand--min768--color {
      color: var(--color-theme) !important;
    }
  }

  @media (max-width: 47.9375em) { /* 768px */
    .brand--max768--background {
      background-color: var(--color-theme) !important;
    }

    .brand--max768--border {
      border-color: var(--color-theme) !important;
    }

    .brand--max768--color {
      color: var(--color-theme) !important;
    }
  }
</style>
`;return __p}},77335:(Ze,Ee,i)=>{"use strict";i.d(Ee,{cF:()=>Cs,LK:()=>Oe,LM:()=>Zs,TJ:()=>yr,Ay:()=>Kn,EL:()=>mo,HC:()=>br,V7:()=>Mo});var D=i(46885),U=i(82298),V=i.n(U),re=i(27905),W=i.n(re),se=i(38576),ne=i.n(se),q=i(34198),ue=i.n(q),n=i(91794),ce=i.n(n),pe=i(34379),Le=i.n(pe),le=i(56401),ge=i.n(le),Be=i(28507),Q=i.n(Be),H=i(15241),z=i.n(H),w=i(72168),G=i.n(w),$=i(4322),ae=i.n($),Te=i(53970),ee=i.n(Te),me=i(77778),ve=i.n(me),m=i(7827),ie=i.n(m),je=i(78324),ke=i.n(je),X=i(17247),Ie=i.n(X),Re=i(84136),gt=i.n(Re),ft=i(98511),bt=i.n(ft),kt=i(91301),xt=i.n(kt),Gt=i(97886),Xe=i.n(Gt),ds=i(86484),Je=i.n(ds),ut=i(36523),de=i(35965),it=i(58931),Et=i(34984),rt=i(88747);const Kt=(Bt=[],$t)=>$t?.partnerContentId?Bt.concat($t.partnerContentId):Bt,Fe=(Bt,$t)=>$t?.items?.reduce(Kt,Bt)??Bt,M=(Bt,$t)=>$t?.items?.reduce(Fe,Bt)??Bt,ze=({course:Bt,lessons:$t})=>{const js=$t?.reduce(M,[])||[],po=Bt?.partnerContentId||null,Se=po?[po]:[],rr=new Set([...js,...Se]);return Array.from(rr)};var ht=i(33897),ye=i(17862),Ss=i(94379),fs=i(95172);const Oe="rise/course/LOAD_COURSE",Ds="rise/course/UPDATE_COMPLETED_AT",Zs="rise/course/UPDATE_COURSE_PREVIEW",Cs="rise/course/APPLY_CHANGESET",Gn=Xe()(ue()(ge(),ie()(["settings","revealAnswers"])),ve()(Q()(["settings","revealAnswers"]),ye.x8)),os=Je()(fs.vm,fs.Ww),uo=ue()(Gn,os),nr=ve()(z()("lessons"),G()(uo)),_s=Bt=>ue()(ae()(Bt),ee()("lessonsOnly"),bt()(Ie()("type","section")))(Bt.lessons),$e=gt()(ge(),"theme"),Pt=ue()(rt.MJ,rt.uK),Ot=ce()($e,Pt,rt.MJ),xs=ue()(ht.Kj,Ot),ho=(Bt,$t)=>{let js=(0,D.TJ)(["course"],$t,Bt).result;return js=W()("lessons",(0,D.TJ)(["lessons"],$t,js.lessons).result,js),js},Us=(Bt,{completedAt:$t,course:js,favoritedAt:po,riseComCurrentUser:Se,riseComCourseId:rr,riseComEnrollmentType:Es,riseComLearningPathId:Wa})=>ke()(nr,_s,ae()(V(),{completedAt:$t,favoritedAt:po,riseComCourseId:rr,riseComEnrollmentType:Es,riseComCurrentUser:Se,riseComLearningPathId:Wa}),xs)(js),or=xt()(W()("favoritedAt",new Date)),vt=xt()(W()("favoritedAt",null)),Os=xt()(ne()("completedAt",()=>new Date().toISOString())),Kn=(0,ut.handle)({},{[it._q]:or,[it.ut]:vt,[Oe]:Us,[Ds]:Os,[Zs]:(Bt,{course:$t})=>$t,[Cs]:ho}),Ut=Bt=>$t=>{const{statusCode:js}=$t;js===404&&Bt((0,Ss.cX)(!0))},Mt=Bt=>$t=>$t([(0,ut.action)(Et.O,Bt),(0,Ss.$d)(!0)]),Lr=Bt=>Le()(Bt)?(0,Ss.$d)(!0):(0,de.qO)(Bt).map(Mt),Po=Bt=>$t=>{const{course:js}=$t,po=ze({course:js,lessons:js.lessons});Bt([(0,ut.action)(Oe,$t),(0,Ss.LW)(!0),Lr(po)])},mo=Bt=>$t=>(0,de.hd)(void 0,Bt).then(Po($t)).catch(Ut($t)),br=(0,ut.action)(Oe),Mo=(0,ut.action)(Zs),Va=(0,ut.action)(Ds),yr=(0,ut.action)(Cs)},76135:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Kl:()=>V,Om:()=>W,RA:()=>ge,Sw:()=>ce,V9:()=>Le,Zp:()=>q,bf:()=>re,eQ:()=>n,i$:()=>Be,re:()=>le,sq:()=>ne,ss:()=>pe,w8:()=>se,y1:()=>ue});var D=i(36523);const U=Q=>`rise/course/${Q}`,V=U("BLOCKS_LESSON_COMPLETE"),re=U("BLOCKS_LESSON_INCREMENT_RETRY_ATTEMPT"),W=U("BLOCKS_LESSON_RESET"),se=U("BLOCKS_LESSON_RETRY_SORTING_ACTIVITY"),ne=U("BLOCKS_LESSON_SET_ITEMS_PROGRESS"),q=U("BLOCKS_LESSON_SET_MEDIA_PLAY_PROGRESS"),ue=U("BLOCKS_LESSON_SET_SORTING_ITEM_RESULT"),n=(0,D.action)(V),ce=(0,D.action)(re),pe=(0,D.action)(W),Le=(0,D.action)(se),le=(0,D.action)(ne),ge=(0,D.action)(q),Be=(0,D.action)(ue)},31896:(Ze,Ee,i)=>{"use strict";i.d(Ee,{$Z:()=>q,Ew:()=>W,GL:()=>re,UZ:()=>se,_Y:()=>n,jS:()=>ue,tc:()=>ne});var D=i(96192),U=i(67644),V=i(67757);function re(w,G){const $=w.lessons[G];if(!(0,D.rV)($))return w;const ae={...pe($),id:G},Te=(0,D.b5)({courseProgress:w,lessonId:G,updatedLessonProgress:ae});return(0,D.bo)({lessonId:G,prevCourseProgress:w,nextCourseProgress:Te})}function W(w,G){const{lessonId:$,blockId:ae,itemId:Te}=G,ee=w.lessons[$];if(!(0,D.rV)(ee))return w;const me=ee.items[ae],ve=le({blockProgress:me,itemId:Te}),m=Be({lessonProgress:ee,blockId:ae,updatedBlockProgress:ve}),ie=(0,U.hh)(m),je=(0,D.b5)({courseProgress:w,lessonId:$,updatedLessonProgress:ie});return(0,D.bo)({lessonId:$,prevCourseProgress:w,nextCourseProgress:je})}function se(w,G){const $=w.lessons[G];if(!(0,D.rV)($))return w;const ae=Q($),Te=(0,D.b5)({courseProgress:w,lessonId:G,updatedLessonProgress:ae});return(0,D.bo)({lessonId:G,prevCourseProgress:w,nextCourseProgress:Te})}function ne(w,{blockId:G,lessonId:$}){const ae=w.lessons[$];if(!(0,D.rV)(ae))return w;const Te=H(ae.items[G]),ee=Be({lessonProgress:ae,blockId:G,updatedBlockProgress:Te}),me=(0,D.b5)({courseProgress:w,lessonId:$,updatedLessonProgress:ee});return(0,D.bo)({lessonId:$,prevCourseProgress:w,nextCourseProgress:me})}function q(w,G){const{lessonId:$,blockId:ae,items:Te}=G,ee=w.lessons[$];if(!(0,D.rV)(ee))return w;const me=Le({blockId:ae,lessonProgress:ee,items:Te}),ve=(0,D.b5)({courseProgress:w,lessonId:$,updatedLessonProgress:me});return(0,D.bo)({lessonId:$,prevCourseProgress:w,nextCourseProgress:ve})}function ue(w,G){const{lessonId:$,blockId:ae,itemId:Te,playheadPercentage:ee}=G,me=w.lessons[$],ve=me?.items?.[ae];if(!(0,D.rV)(me)||!ve||!("items"in ve)||!ve.items||!ve.items[Te])return w;const ie={...ve.items[Te],audioVideoPlayhead:ee},je={...ve,items:{...ve.items,[Te]:ie}},ke=Be({lessonProgress:me,blockId:ae,updatedBlockProgress:je}),X=(0,D.b5)({courseProgress:w,lessonId:$,updatedLessonProgress:ke});return(0,D.bo)({lessonId:$,prevCourseProgress:w,nextCourseProgress:X})}function n(w,G){const{lessonId:$,blockId:ae,itemId:Te,isCorrect:ee}=G,me=w.lessons[$];if(!(0,D.rV)(me))return w;const ve=z({itemId:Te,isCorrect:ee,blockProgress:me.items[ae]}),m=(0,U.hh)(Be({lessonProgress:me,blockId:ae,updatedBlockProgress:ve})),ie=(0,D.b5)({courseProgress:w,lessonId:$,updatedLessonProgress:m});return(0,D.bo)({lessonId:$,prevCourseProgress:w,nextCourseProgress:ie})}const ce=w=>Object.values(w).length>0&&Object.values(w).every(G=>G.isComplete),pe=w=>{const G=(0,V.s0)(w.items,($,ae)=>{const Te=(0,V.s0)(ae.items??{},(ee,me)=>[ee,{...me,isComplete:!0,id:me.id,index:me.index}]);return[$,{...ae,items:Te,isComplete:!0}]});return{...w,isComplete:!0,items:G,percentComplete:100}},Le=({blockId:w,items:G,lessonProgress:$})=>{const ae=$.items?.[w]??{items:{}},Te=new Set(G.map(ie=>String(ie.id))),ee=(0,V.s0)(ae.items??{},(ie,je)=>{const ke=Te.has(ie);return[ie,{...je,isComplete:je.isComplete||ke,id:je.id,index:je.index}]}),ve=Object.keys(ee).length===0||ce(ee),m={...ae,id:w,items:ee,...ve&&{isComplete:!0}};return ge(Be({lessonProgress:$,blockId:w,updatedBlockProgress:m}))},le=({blockProgress:w,itemId:G})=>{if(!w.items)return w;const $=w.items[G];return{...w,items:{...w.items,[G]:{...$,retryAttemptCount:($?.retryAttemptCount??0)+1}}}},ge=w=>{const G=(0,U.hh)(w);return G.percentComplete===100?{...G,isComplete:!0}:G},Be=({blockId:w,lessonProgress:G,updatedBlockProgress:$})=>({...G,items:{...G.items,[w]:$}}),Q=w=>{const G=(0,V.s0)(w.items,($,ae)=>{const Te=(0,V.s0)(ae.items??{},(ee,me)=>[ee,(0,V.QD)(me,["isComplete","isCorrect","isViewed"])]);return[$,{id:ae.id,index:ae.index,items:Te}]});return{...(0,V.QD)(w,["isComplete","percentComplete"]),items:G}},H=w=>({...(0,V.QD)(w,["percentViewed","correctlyAnswered"]),id:w.id,index:w.index,items:(0,V.s0)(w.items??{},(G,$)=>[G,(0,V.QD)($,["isViewed","isCorrect"])]),retryAttempts:(w.retryAttempts??0)+1}),z=({isCorrect:w,itemId:G,blockProgress:$})=>{if(!$.items)return $;const ae=$.items[G],Te={...ae,isComplete:w,isViewed:w,...ae?.isCorrect===void 0&&{isCorrect:w}},ee={...$.items,[G]:Te},me=Object.values(ee).filter(ke=>ke.isCorrect).length,ve={...$,items:ee,correctlyAnswered:me,...!w&&{lastIncorrectCardId:G}},m=(0,U.f5)(ve),ie=(0,U.QI)(m),je=ie.percentComplete===100;return{...ie,...je&&{isComplete:!0}}}},96192:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Zn:()=>U,b5:()=>re,bo:()=>W,rV:()=>V});var D=i(35965);const U=ce=>!!ce&&ce.type==="quiz",V=ce=>!!ce&&ce.type==="blocks",re=({courseProgress:ce,lessonId:pe,updatedLessonProgress:Le})=>({...ce,lessons:{...ce.lessons,[pe]:Le}});function W({lessonId:ce,nextCourseProgress:pe,prevCourseProgress:Le}){const le=pe.lessons[ce];if((0,D.C2)(le),se({lessonId:ce,courseProgress:pe}),ne({lessonId:ce,prevCourseProgress:Le,nextCourseProgress:pe})){const ge={...pe,percentComplete:ue(pe)};return n({courseProgress:ge,lessonProgress:le}),ge.percentComplete!=null&&(0,D.O9)(ge.percentComplete),ge}return pe}function se({courseProgress:ce,lessonId:pe}){const Le=ce.lessons?.[pe];if(Le?.percentComplete===100){const le=q(Le);le&&(0,D.aM)(le)}}function ne({lessonId:ce,nextCourseProgress:pe,prevCourseProgress:Le}){const le=pe.lessons?.[ce];if(!le)return!1;const ge=Le.lessons?.[ce]?.percentComplete===100,Be=le.percentComplete===100,Q=ge!==Be,H=pe.currentLesson!=null&&U(pe.lessons[pe.currentLesson])&&pe.lessons[pe.currentLesson]?.percentComplete===100;return Q||H}function q(ce){const{id:pe}=ce;if(!pe)throw new Error("Cannot create lesson payload: lesson.id is missing");if(U(ce)){const{passed:Le,score:le,passingScore:ge=0}=ce;return{id:pe,...Le!==void 0&&{passed:Le},...le!==void 0&&{score:le},passingScore:ge}}return{id:pe}}function ue(ce){const{lessons:pe={}}=ce,Le=Object.keys(pe).length;if(Le===0)return 0;const le=Object.values(pe).filter(ge=>ge.isComplete).length;return Math.round(le/Le*100)}function n({courseProgress:ce,lessonProgress:pe}){if(!ce||!pe)return;const Le=q(pe);Le&&(0,D.vb)(ce,Le)}},62013:(Ze,Ee,i)=>{"use strict";i.d(Ee,{A:()=>Le,B:()=>ce});var D=i(36523),U=i(35965),V=i(76135),re=i(31896),W=i(6408),se=i(79335),ne=i(67644);const q=$=>`rise/course/${$}`,ue=q("BOOKMARK_LESSON"),n=q("LOAD_COURSE"),ce=(0,D.action)(ue),pe={lessons:{},percentComplete:0},Le=(0,D.handle)(pe,{[V.Kl]:re.GL,[V.bf]:re.Ew,[V.Om]:re.UZ,[V.w8]:re.tc,[V.sq]:re.$Z,[V.Zp]:re.jS,[V.y1]:re._Y,[W.z_]:se.Qv,[W.Eg]:se.Ki,[W.be]:se.ZL,[W.jZ]:se.Jx,[W.Ck]:se.pl,[W.fV]:se.Ux,[W.jo]:se.NZ,[W.V8]:se.uR,[W.Z8]:se.XW,[W.Dh]:se.yi,[W.ug]:se.bu,[ue]:ge,[n]:le});function le($,ae){const Te=ae.course?.lessons??[],ee=(0,U.y4)(H(Te));return typeof ee=="object"&&ee!==null?{...$,...ee}:$}function ge($,ae){return(0,U.Fc)(ae),{...$,currentLesson:ae}}const Be=({index:$,lessonId:ae,settings:Te,type:ee})=>ee==="quiz"?{id:ae,index:$,type:ee,items:{},passingScore:Number(Te?.passingScore??0)}:{id:ae,index:$,type:"blocks",items:{}};function Q($){return $.type==="quiz"&&"settings"in $}function H($){return{lessons:$.reduce((Te,ee,me)=>Q(ee)?z({index:me,items:ee.items,lessonId:ee.id,lessonProgress:Te,settings:ee.settings,type:ee.type}):ee.type==="blocks"?z({index:me,items:ee.items,lessonId:ee.id,lessonProgress:Te,type:ee.type}):Te,{})}}function z($){const{lessonId:ae,index:Te,items:ee,lessonProgress:me={},settings:ve,type:m}=$,ie=Be({lessonId:ae,index:Te,settings:ve,type:m});if(ee.length===0)return{...me,[ae]:ie};const je=m==="quiz"?G(ee):w(ee);return{...me,[ae]:{...ie,items:je}}}function w($){return $.reduce((ae,Te,ee)=>{const me=Te.id,ve=Te.items??[],m=(0,ne.BC)(ve);return ae[me]={id:me,index:ee,items:m},ae},{})}function G($){return $.reduce((ae,Te,ee)=>(ae[Te.id]={id:Te.id,index:ee},ae),{})}},6408:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Ck:()=>ne,Dh:()=>Le,Eg:()=>ce,FU:()=>Q,NC:()=>$,Nj:()=>z,QI:()=>ge,RW:()=>Te,V8:()=>n,YC:()=>Be,Yu:()=>H,Z8:()=>pe,be:()=>W,fV:()=>q,hy:()=>G,jZ:()=>se,jo:()=>ue,kK:()=>ae,mg:()=>w,ug:()=>le,x6:()=>ee,z_:()=>V});var D=i(36523);const U=me=>`rise/course/${me}`,V=U("QUIZ_LESSON_ADVANCE_STEP"),re=U("QUIZ_LESSON_CLEAR_ANSWER_MATCH"),W=U("QUIZ_LESSON_CLEAR_ANSWER_SELECTION"),se=U("QUIZ_LESSON_INITIALIZE_DRAWN_QUESTIONS"),ne=U("QUIZ_LESSON_RESTART"),q=U("QUIZ_LESSON_SELECT_QUIZ_ANSWER"),ue=U("QUIZ_LESSON_SET_ANSWER_MATCHES"),n=U("QUIZ_LESSON_SET_ANSWER_TEXT"),ce=U("QUIZ_LESSON_ADVANCE_TO_END"),pe=U("QUIZ_LESSON_SET_TIME_REMAINING"),Le=U("QUIZ_LESSON_SUBMIT_ANSWER"),le=U("QUIZ_LESSON_TOGGLE_ANSWER_SELECTION"),ge=(0,D.action)(V),Be=(0,D.action)(ce),Q=(0,D.action)(ne),H=(0,D.action)(q),z=(0,D.action)(n),w=(0,D.action)(le),G=(0,D.action)(pe),$=(0,D.action)(ue),ae=(0,D.action)(Le),Te=(0,D.action)(W),ee=(0,D.action)(se)},79335:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Jx:()=>ne,Ki:()=>W,NZ:()=>ce,Qv:()=>re,Ux:()=>n,XW:()=>pe,ZL:()=>se,bu:()=>le,oO:()=>Be,pl:()=>ue,uR:()=>q,yi:()=>Le});var D=i(96192),U=i(67757),V=i(35965);function re(Q,H){const z=Q.lessons[H];if(!(0,D.Zn)(z))return Q;const w=z.activeIndex??0,G={...z,activeIndex:w+1},$=(0,D.b5)({courseProgress:Q,lessonId:H,updatedLessonProgress:G});return(0,D.bo)({lessonId:H,prevCourseProgress:Q,nextCourseProgress:$})}function W(Q,H){const z=Q.lessons[H];if(!(0,D.Zn)(z))return Q;const w=Object.keys(z?.items)?.length,G={...z,activeIndex:w+1},$=(0,D.b5)({courseProgress:Q,lessonId:H,updatedLessonProgress:G});return(0,D.bo)({lessonId:H,prevCourseProgress:Q,nextCourseProgress:$})}function se(Q,{lessonId:H,itemId:z}){const w=Q.lessons[H];if(!(0,D.Zn)(w))return Q;const G=w.items[z];if(!G)return Q;const $={...G,selectedIndices:[]},ae=ge({lessonProgress:w,itemId:z,updatedQuizItemProgress:$}),Te=(0,D.b5)({courseProgress:Q,lessonId:H,updatedLessonProgress:ae});return(0,D.bo)({lessonId:H,prevCourseProgress:Q,nextCourseProgress:Te})}function ne(Q,{lessonId:H,lessonProgress:z}){return{...Q,lessons:{...Q.lessons,[H]:z}}}function q(Q,{lessonId:H,itemId:z,text:w}){const G=Q.lessons[H];if(!(0,D.Zn)(G))return Q;const $=G.items[z];if(!$)return Q;const ae=typeof w=="string"&&w.trim()===""?(0,U.QD)($,["text"]):{...$,text:w},Te=ge({lessonProgress:G,itemId:z,updatedQuizItemProgress:ae}),ee=(0,D.b5)({courseProgress:Q,lessonId:H,updatedLessonProgress:Te});return(0,D.bo)({lessonId:H,prevCourseProgress:Q,nextCourseProgress:ee})}function ue(Q,H){const z=Q.lessons[H];if(!(0,D.Zn)(z))return Q;const w=(0,U.s0)(z.items,(Te,ee)=>{const me={id:ee.id,index:ee.index};return[Te,me]}),$={...(0,U.QD)(z,["activeIndex","originalItemProgress","passed","percentComplete","questionList","questionsDrawn","reportResults","score"]),...z.passed!==!1&&{passed:z.passed},...z.isComplete!==!1&&{isComplete:z.isComplete},retryAttempts:(z.retryAttempts??0)+1,items:w},ae=(0,D.b5)({courseProgress:Q,lessonId:H,updatedLessonProgress:$});return(0,D.bo)({lessonId:H,prevCourseProgress:Q,nextCourseProgress:ae})}function n(Q,{lessonId:H,itemId:z,selectedIndex:w}){const G=Q.lessons[H];if(!(0,D.Zn)(G))return Q;const $=G.items[z];if(!$)return Q;const ae={...$,selectedIndex:w},Te=ge({lessonProgress:G,itemId:z,updatedQuizItemProgress:ae}),ee=(0,D.b5)({courseProgress:Q,lessonId:H,updatedLessonProgress:Te});return(0,D.bo)({lessonId:H,prevCourseProgress:Q,nextCourseProgress:ee})}function ce(Q,{lessonId:H,itemId:z,matches:w}){const G=Q.lessons[H];if(!(0,D.Zn)(G))return Q;const $=G.items[z];if(!$)return Q;const ae={...$,matches:w},Te=ge({lessonProgress:G,itemId:z,updatedQuizItemProgress:ae}),ee=(0,D.b5)({courseProgress:Q,lessonId:H,updatedLessonProgress:Te});return(0,D.bo)({lessonId:H,prevCourseProgress:Q,nextCourseProgress:ee})}function pe(Q,{lessonId:H,timeRemaining:z}){const w=Q.lessons[H];if(!(0,D.Zn)(w))return Q;const G={...w,timeRemaining:z},$=(0,D.b5)({courseProgress:Q,lessonId:H,updatedLessonProgress:G});return(0,D.bo)({lessonId:H,prevCourseProgress:Q,nextCourseProgress:$})}function Le(Q,{lessonId:H,itemId:z,isCorrect:w,finalRetryAttempt:G,passToContinue:$}){const ae=Q.lessons[H];if(!(0,D.Zn)(ae))return Q;const Te=ae.passingScore??0,ee=ae.items[z];if(!ee)return Q;const me={...ee,isCorrect:w,isComplete:!0},ve={...ae.items,[z]:me},m=Object.keys(ve).length,ie=Object.values(ve).filter(Re=>Re.isCorrect).length,je=Math.round(ie/m*100),ke=Math.round(Object.values(ve).filter(Re=>Re.isComplete).length/m*100);let X={...ae,items:ve,score:je,percentComplete:ke};if(ke===100){const Re=je>=Te,gt=$?Re:!0;(0,V.X_)(Re,je,H,G),X={...X,passed:Re,isComplete:gt,reportResults:!0}}const Ie=(0,D.b5)({courseProgress:Q,lessonId:H,updatedLessonProgress:X});return(0,D.bo)({lessonId:H,prevCourseProgress:Q,nextCourseProgress:Ie})}function le(Q,{lessonId:H,itemId:z,selectedIndex:w}){const G=Q.lessons[H];if(!(0,D.Zn)(G))return Q;const $=G.items[z];if(!$)return Q;const ae=$.selectedIndices??[],ee=w!==void 0&&ae.includes(w)?ae.filter(ke=>ke!==w):w!==void 0?[...ae,w]:ae,{selectedIndices:me,...ve}=$,m=ee.length>0?{...ve,selectedIndices:ee}:{...ve},ie=ge({lessonProgress:G,itemId:z,updatedQuizItemProgress:m}),je=(0,D.b5)({courseProgress:Q,lessonId:H,updatedLessonProgress:ie});return(0,D.bo)({lessonId:H,prevCourseProgress:Q,nextCourseProgress:je})}function ge({itemId:Q,lessonProgress:H,updatedQuizItemProgress:z}){return{...H,items:{...H.items,[Q]:z}}}function Be(Q,H){const{id:z,passed:w,passingScore:G,score:$,retryAttempts:ae}=H,Te=[w,ae,$];if(!(Te.length===3&&Te.every(ke=>ke!=null)))return Q;const me=Q.lessons?.[z]?.items??{},ve=Object.keys(me).length+1,m=Q.lessons?.[z];if(!m)return Q;const ie={...m,isComplete:!0,activeIndex:ve,reportResults:!0,passed:w,passingScore:G,percentComplete:100,retryAttempts:ae,score:$};return{...Q,lessons:{...Q.lessons,[z]:ie}}}},86145:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Ay:()=>n,Wp:()=>q});var D=i(36523),U=i(77335),V=i(46885);const re="rise/l10n/TOGGLE_LOCALE_SELECTOR",W={},se=(ce,{l10n:pe})=>({...ce,...pe}),ne=(ce,pe)=>(0,V.TJ)(["l10n"],pe,ce).result,q=(0,D.action)(re),ue=(ce,pe)=>{const Le=pe?ce.locales?.map(({locale:le})=>le):void 0;return{...ce,localeSelectorOptions:Le}},n=(0,D.handle)(W,{[U.LK]:se,[U.LM]:se,[U.cF]:ne,[re]:ue})},2316:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Ay:()=>Q,D2:()=>$,NM:()=>Te,Se:()=>z,gA:()=>G,ts:()=>w,u:()=>ae});var D=i(27905),U=i.n(D),V=i(36523);const re="rise/search/RESET_SEARCH",W="rise/search/SET_SEARCH_ACTIVE",se="rise/search/SET_SEARCH_ACTIVE_LESSONS",ne="rise/search/SET_SEARCH_TRANSLATIONS",q="rise/search/SET_SEARCH_LESSONS",ue="rise/search/SET_SEARCH_TERM",n={active:!1,activeLessons:[],translations:{},lessons:[],term:null},ce=(ee,me)=>me?U()("active",ee.active,n):ee,pe=(ee,me)=>U()("active",me,ee),Le=(ee,me)=>U()("activeLessons",me,ee),le=(ee,me)=>U()("translations",me,ee),ge=(ee,me)=>U()("lessons",me,ee),Be=(ee,me)=>U()("term",me,ee),Q=(0,V.handle)(n,{[re]:ce,[W]:pe,[se]:Le,[ne]:le,[q]:ge,[ue]:Be}),H=ee=>(0,V.action)(ee),z=H(re),w=H(W),G=H(se),$=H(ne),ae=H(q),Te=H(ue)},18391:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Kq:()=>it,Ng:()=>Et,iE:()=>rt,JD:()=>Kt,M_:()=>Fe,wA:()=>M,d4:()=>ze});var D=i(61708),U=i(77335),V=i(4322),re=i.n(V),W=i(36523);const se=(ht,{labelSet:ye})=>re()(ht,ye),ne=(0,W.handle)({},{[U.LK]:se});var q=i(62013),ue=i(63006),n=i(94983),ce=i(13662),pe=i(86145),Le=i(16829),le=i(55328),ge=i.n(le),Be=i(45949),Q=i.n(Be),H=i(78107),z=i.n(H),w=i(17247),G=i.n(w),$=i(41558),ae=i.n($),Te=i(70405),ee=i.n(Te),me=i(34984);const ve=(ht,ye)=>{const Ss=z()(G()("id",ye.id),ht.content),fs=Ss===-1?ge()(ye):ee()(Ss,ye);return Q()({content:fs},ht)},m=(ht,ye)=>ae()(ve,ht,ye),ie={[me.O]:m},je=(0,W.handle)({content:[]},ie);var ke=i(2316),X=i(88523),Ie=i(29249),Re=i(94379),gt=i(72181);const ft={isMobileExpanded:!1,transcript:null},bt=(ht,ye)=>({...ht,transcript:ye}),kt=()=>({isMobileExpanded:!1,transcript:null}),xt=(ht,ye)=>ht.transcript?{...ht,transcript:ye}:ht,Gt={[gt.l6]:bt,[gt.ju]:kt,[gt.Y8]:xt},Xe=(0,W.handle)(ft,Gt);var ds=i(5683),Je=i(83416);const ut=Je.BI?{learningPathUpNext:Le.A}:{},de=(0,D.HY)({course:U.Ay,courseLabels:ne,courseProgress:q.A,features:ue.A,fonts:n.A,global:ce.Ay,l10n:pe.Ay,partnerContent:je,search:ke.Ay,sessionPreferences:X.Ay,slidesUI:Ie.Ay,status:Re.Ay,transcriptPanel:Xe,ui:ds.Ay,...ut}),{Provider:it,connect:Et,connectBase:rt,dispatch:Kt,store:Fe,useDispatch:M,useSelector:ze}=(0,D.Nv)(de)},35965:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Fc:()=>si,hd:()=>Or,Rc:()=>m0,qO:()=>Wl,O9:()=>tt,X_:()=>_t,jr:()=>P,_$:()=>ti,JK:()=>Ql,GJ:()=>Rr,y4:()=>Gl,As:()=>Co,Hm:()=>ko,oO:()=>Zl,Wk:()=>yc,og:()=>Dr,GS:()=>Ic,xr:()=>Mr,IV:()=>la,bb:()=>h0,o1:()=>Nc,vb:()=>De,aM:()=>ni,C2:()=>Pr,xS:()=>jc,no:()=>$l,m5:()=>u0});var D=i(49345),U=i(10789),V=i.n(U),re=i(34198),W=i.n(re),se=i(45949),ne=i.n(se),q=i(86654),ue=i.n(q),n=i(44336),ce=i.n(n),pe=i(67711),Le=i.n(pe),le=i(91794),ge=i.n(le),Be=i(72168),Q=i.n(Be),H=i(51926),z=i.n(H),w=i(33744),G=i.n(w),$=i(67331),ae=i.n($),Te=i(84929),ee=i.n(Te),me=i(17247),ve=i.n(me),m=i(77170),ie=i.n(m);const je=Y=>W()(D.QZ,Y),ke=Y=>ne()({[Y]:D.QZ}),X=({startTime:Y,stopTime:be})=>be-Y,Ie=Y=>{switch(Y.type){case"FILL_IN_THE_BLANK":return ds(Y);case"MATCHING":return ze(Y);default:return bt(Y)}},Re=Y=>{switch(Y.type){case"FILL_IN_THE_BLANK":return ds(Y);case"MATCHING":return ze(Y);case"MULTIPLE_CHOICE":return ut(Y);case"MULTIPLE_RESPONSE":return it(Y);default:return ut(Y)}},gt=({isUnfinished:Y,item:be,itemProgress:Ct})=>{switch(be.type){case"FILL_IN_THE_BLANK":return Je(Y)(Ct);case"MATCHING":return ht(be,Y)(Ct);case"MULTIPLE_CHOICE":return de(be,Y)(Ct);case"MULTIPLE_RESPONSE":return Et(be,Y)(Ct);default:return de(be,Y)(Ct)}},ft=Y=>[Y],bt=W()(Q()(ke("title")),ee()("answers")),kt=je(ee()("id")),xt=je(ee()("title")),Gt=Y=>be=>ue()(ve()("id",be),bt(Y)),Xe=Y=>Le()(G())(bt(Y)),ds=W()(ae()("title"),bt),Je=Y=>ge()(V()(Y),V()(""),je(ee()("text"))),ut=Y=>W()(Gt(Y),ee()("correct"))(Y),de=(Y,be)=>ge()(V()(be),V()([]),W()(ft,Xe(Y),ee()("selectedIndex"))),it=Y=>W()(ce(),Q()(Gt(Y)),ee()("corrects"))(Y),Et=(Y,be)=>ge()(V()(be),V()([]),W()(ce(),Q()(Xe(Y)),ee()("selectedIndices"))),rt=({sourceId:Y,sourceTitle:be,targetId:Ct,targetTitle:Xt})=>({source:{id:`source_${Y}`,title:be},target:{id:`target_${Ct}`,title:Xt}}),Kt=je(ee()("matchTitle")),Fe=Y=>{const be=kt(Y);return rt({sourceId:be,sourceTitle:xt(Y),targetId:be,targetTitle:Kt(Y)})},M=Y=>(be,Ct)=>{const Xt=bt(Y),Ys=Xt.find(wo=>wo.id===Ct),un=Xt.find(wo=>wo.id===be);return rt({sourceId:kt(Ys),sourceTitle:xt(Ys),targetId:kt(un),targetTitle:Kt(un)})},ze=W()(Q()(Fe),bt),ht=(Y,be)=>ge()(V()(be),V()([]),W()(ie(),z()(M(Y)),ee()("matches")));var ye=i(47474),Ss=i.n(ye),fs=i(88457),Oe=i(16832),Ds=i(31896),Zs=i(79335),Cs=i(83416),Gn=i(64103),os=i(86484),uo=i.n(os);const nr=Y=>Y!==void 0,$e=uo()(nr,W()(JSON.parse,Gn.Base64.decode)),Ot=(Y,be)=>window.courseData?Y(window.courseData):window.course?{course:Y(window.course),media:[]}:be;var xs=i(312),ho=i.n(xs),Us=i(7827),or=i.n(Us),vt=i(41820);const Kn=`${(0,Cs._$)("RBC_URI")}/api/partner_content`,Ut=null,Mt=ho()(`${Kn}/`),Po={transformRequest:[(Y,be)=>(be.Authorization=`Bearer ${(0,vt.gf)()}`,Y)],headers:{"Content-Type":"application/json"}},mo=()=>request({...Po,url:Ut}).toPromise().then(path(["data","types"])),br=Y=>request({...Po,url:Mt(Y)}).toPromise().then(path(["data","content"])),Mo=Y=>(0,vt.Em)({method:"POST",url:Kn,data:JSON.stringify({ids:Y}),...Po}).map(or()(["data","content"]));var Va=i(71006),yr=i.n(Va),Bt=i(78324),$t=i.n(Bt);const js=(0,Cs._$)("SERVICE_ENV")==="prod"?"com":"zone",Se=$t()(JSON.stringify,yr()(new RegExp(`https://images.riseusercontent.${js}/`,"g"),`${(0,Cs._$)("IMAGES_URI")}/`),yr()(new RegExp(`https://riseusercontent.${js}/`,"g"),`${(0,Cs._$)("CDN_USER_CONTENT_URI")}/`),yr()(new RegExp(`https://video.rise.${js}/`,"g"),`https://video.riseusercontent.${js}/`),JSON.parse);var rr=i(52988),Es=i.n(rr),Wa=i(27905),fo=i.n(Wa),cc=i(72970),Bl=i.n(cc),_l=i(8466),Qt=i.n(_l),Ul=i(55414),qe=i.n(Ul),Hl=i(34379),Ts=i.n(Hl),Fl=i(56401),As=i.n(Fl),Ks=i(58488),Zt=i.n(Ks),lc=i(64104),Yt=i.n(lc),dc=i(15241),Do=i.n(dc),uc=i(4322),us=i.n(uc),hc=i(61319),gs=i.n(hc),ar=i(37953),jt=i.n(ar),mc=i(34552),Ye=i.n(mc),pc=i(82738),Ls=i.n(pc),Ir=i(97886),Pe=i.n(Ir);const Nr=Y=>!!Y,Ue={[Oe.En]:["activeIndex",qe()],[Oe.Ay]:["audioVideoPlayhead",Number],[Oe.l7]:["isComplete",Nr],[Oe.Ko]:["correctlyAnswered",qe()],[Oe.WY]:["percentComplete",qe()],[Oe.sZ]:["retryAttempts",qe()],[Oe.jw]:["score",qe()],[Oe.eZ]:["currentTime",qe()],[Oe.Ze]:["percentViewed",qe()],[Oe.mj]:["reportResults",qe()],[Oe.p3]:["passed",qe()],[Oe.ft]:["passingScore",qe()],[Oe.pd]:["questionsDrawn",qe()],[Oe.ce]:["questionList",Q()(Q()(qe()))],[Oe.M$]:["timeRemaining",Number]},Ga=Y=>(be,Ct)=>fo()([Qt()(Ue[Ct])],Yt()(Ue[Ct])(be),Y),ea=Y=>(be,Ct)=>{let Xt=Yt()(na[Ct])(be);return Ct===Oe.fd&&(Xt=Xt(ee()("items",Y))),{[Qt()(na[Ct])]:Xt}},ta=Y=>be=>{const Ct=Y?.[be.index];return Pe()(()=>As()(Ct),()=>W()(us()(be),gs(),ie(),z()(ea(be)))(Ct))(be)},ir=Y=>Q()(ta(Y)),Ka=W()(gs(),ie(),z()(ea(null))),fc=Y=>be=>{const Ct=ee()(Oe.fd,Y),Xt=ee()("items",be);return W()(uo()(()=>Es()([Bl()(Oe.ce),ve()(Oe.pd,!0),()=>!As()(Ct)])(Y),Ys=>{const un=Q()(Ka,Ct);return fo()("originalItemProgress",un,Ys)}),us()(be),Pe()(()=>Ts()(Ct),Ls()(Do()("items"),ir(Ct)(Xt))),gs(),ie(),z()(Ga(be)))(jt()(Zt()(Ue),Y))};function sa(Y,be){const Ct=ee()("lessons",be),Xt=Ys=>{const un=ee()(Ys.index,Ct);return Pe()(()=>As()(un),fc(un))(Ys)};return Pe()(()=>Ts()(Ct),W()(fo()("percentComplete",Ye()(0,Oe.WY,be)),ne()({lessons:Q()(Xt)})))(Y)}const na={[Oe.Ay]:["audioVideoPlayhead",Number],[Oe.Ko]:["correctlyAnswered",qe()],[Oe.l7]:["isComplete",Nr],[Oe.w5]:["isCorrect",Nr],[Oe.Wj]:["isViewed",Nr],[Oe.fd]:["items",ir],[Oe.BW]:["percentViewed",qe()],[Oe.qX]:["matches",qe()],[Oe.sZ]:["retryAttemptCount",Number],[Oe.Pz]:["selectedIndex",qe()],[Oe.Ig]:["selectedIndices",qe()],[Oe.S$]:["text",qe()]};var $a=i(53625),Mn=i.n($a),gc=i(53970),At=i.n(gc),vc=i(98511),Qa=i.n(vc);const oa={activeIndex:[Oe.En,qe()],audioVideoPlayhead:[Oe.Ay,Number],correctlyAnswered:[Oe.Ko,qe()],currentTime:[Oe.eZ,qe()],isComplete:[Oe.l7,Number],passingScore:[Oe.ft,qe()],percentComplete:[Oe.WY,qe()],percentViewed:[Oe.Ze,qe()],retryAttempts:[Oe.sZ,qe()],score:[Oe.jw,qe()],questionsDrawn:[Oe.pd,qe()],questionList:[Oe.ce,Q()(Q()(qe()))],reportResults:[Oe.mj,qe()],passed:[Oe.p3,qe()],timeRemaining:[Oe.M$,Number]},Cc=(Y,be)=>({[Qt()(aa[be])]:Yt()(aa[be])(Y)}),xc=Y=>W()(Pe()(Ts(),At()(ee()("index",Y))),gs(),ie(),z()(Cc))(Qa()(Ts(),jt()(Zt()(aa),Y))),ra=W()(gs(),ie(),Q()(xc)),Ec=(Y,be)=>({[Qt()(oa[be])]:Yt()(oa[be])(Y)});function Za(Y){const be=ee()("items",Y),Ct=ee()("index",Y),Xt=Pe()(Mn()(As(),Ts()),ra)(be);return W()(At()(Ct),Pe()(()=>Mn()(As(),Ts())(Xt),fo()(Oe.fd,Xt)),gs(),ie(),z()(Ec))(jt()(Zt()(oa),Y))}const Ya=W()(At()(Oe.WY),Ye()(0,"percentComplete")),aa={audioVideoPlayhead:[Oe.Ay,Number],correctlyAnswered:[Oe.Ko,qe()],isComplete:[Oe.l7,Number],isCorrect:[Oe.w5,Number],isViewed:[Oe.Wj,Number],items:[Oe.fd,ra],matches:[Oe.qX,qe()],percentViewed:[Oe.BW,qe()],retryAttemptCount:[Oe.sZ,Number],selectedIndex:[Oe.Pz,qe()],selectedIndices:[Oe.Ig,Q()(Number)],text:[Oe.S$,qe()]},go=Y=>(window.env||{})[Y],ia=Y=>`${go("CDN_USER_CONTENT_URI")}/${Y}`,Xa=()=>!!window.shareId,jr=()=>!!window.contentId,Tc=()=>!!window.snapshotId,Sc=()=>!!window.instantLinkPublicId,Ja=()=>!!window.shareId&&!!window.hasPassword,Ar=jr()&&!Cs.BI?Se:Y=>Y,bc={fetch:()=>{if(lr.isExport||window.courseData||window.course)return Ot($e,{});{const Y=()=>window.shareId?`${go("RISE_RUNTIME_URI")}/boot/share/${window.shareId}`:jr()?`${go("RISE_RUNTIME_URI")}/boot/businessContent/${window.contentId}`:Tc()?`${go("RISE_RUNTIME_URI")}/boot/snapshot/${window.snapshotId}`:`${go("RISE_RUNTIME_URI")}/boot/${window.courseId}`;return(0,fs.Em)({method:"GET",url:Y(),json:!0,withCredentials:!0,timeout:3e4}).then(fs.lZ).then(be=>typeof be=="object"?be:$e(be)).then(Ar)}},fetchPartnerContent:Y=>lr.isExport||window.partnerContent?Ss().of(window.partnerContent.content):Mo(Y),getEnv:go,isInstantLink:Sc,isPasswordProtected:Ja,isShare:Xa,isSnapshotPreview:Tc,resolvePath:ia,verifySharePassword:Y=>(0,fs.Em)({method:"POST",url:`${go("RISE_RUNTIME_URI")}/password`,data:{shareId:window.shareId,password:Y},json:!0}).then(be=>be.body)},qa=(Y,{id:be,type:Ct,...Xt})=>Ct==="quiz"?(0,Zs.oO)(Y,{id:be,...Xt}):(0,Ds.GL)(Y,be),cr=(Y,be)=>Y+((be||{})[Oe.l7]||0),ei=(Y,be)=>(Ct,{id:Xt,type:Ys,...un})=>be.lessons[Xt]?{...Ct,...Y(qa(be,{id:Xt,type:Ys,...un}).lessons[Xt])}:Ct;function ca(Y,be,Ct){const Xt=be.reduce(ei(Y,Ct),{}),Ys=Object.keys(Ct.lessons||{}).length,un=Object.values(Xt).reduce(cr,0),wo=Math.round(un/Ys*100);return{lessons:Xt,p:wo}}window.Rise=Object.assign(window.Rise||{},{completeLessons:ca,decodeCourseProgress:sa,encodeCourseProgress:Ya,encodeLessonProgress:Za});const lr={...bc,...window.Runtime??{}},et=lr,ti=Y=>window.env?.[Y],Rr=Y=>et.getMasteryScore!=null?et.getMasteryScore(Y):Y.passingScore,la=Y=>{if(et.onCreateHistory!=null)return et.onCreateHistory(Y)},Or=(Y={},be)=>et.fetch!=null?Promise.resolve(et.fetch(be)):Promise.resolve(Y),Wl=(Y=[])=>{if(et.fetchPartnerContent!=null)return et.fetchPartnerContent(Y)},si=Y=>{if(et.bookmark!=null)return et.bookmark(Y)},Gl=Y=>et.getProgress!=null?et.getProgress(Y):Y,ni=Y=>et.setLessonComplete!=null?et.setLessonComplete(Y):Y,Pr=Y=>et.setLessonProgress!=null?et.setLessonProgress(Y):Y,De=(Y,be)=>et.setCourseProgress!=null?et.setCourseProgress(Y,be):Y,Ve=(Y,be)=>Runtime.setQuizItems!=null?Runtime.setQuizItems(Y,be):be,Tt=Y=>Runtime.getScores!=null?Runtime.getScores(Y):Y,ks=(Y,be)=>Runtime.setScore!=null?Runtime.setScore(Y,be):be,tt=Y=>{if(et.finish!=null)return et.finish(Y)},_t=(Y,be,Ct,Xt)=>{et.finishQuiz!=null&&et.finishQuiz(Y,be,Ct,Xt)},P=(Y,be,Ct,Xt)=>{et.finishStoryline!=null&&et.finishStoryline(Y,be,Ct,Xt)},da=(Y,be)=>Runtime.incQuizAttempts!=null?Runtime.incQuizAttempts(Y,be):be+1,ua=(Y,be)=>Runtime.getQuizAttempts!=null?Runtime.getQuizAttempts(Y,be):be,Kl=(Y,be)=>Runtime.getCurrentTime!=null?Runtime.getCurrentTime(Y,be):be,vo=(Y,be)=>Runtime.setCurrentTime!=null?Runtime.setCurrentTime(Y,be):be,Co=()=>et.isComplete!=null?et.isComplete():null,ko=()=>et.isExport!=null?et.isExport():!1;function yc(){if(et.isExport!=null){const Y=window.partnerContent?.content;return et.isExport()&&!!Y}return!1}const Ic=()=>et.isShare!=null?et.isShare():!1,Mr=()=>et.isSnapshotPreview!=null?et.isSnapshotPreview():!1,Dr=()=>et.isPasswordProtected!=null?et.isPasswordProtected():!1,Nc=Y=>{const be=Y||"";return et.resolvePath!=null?be.startsWith("http")||be.startsWith("data:")||be.startsWith("//")?be:et.resolvePath(be):be.startsWith("data:")||be.startsWith("http")||be.startsWith("//")?be:`/${be}`},u0=Y=>et.verifySharePassword!=null?et.verifySharePassword(Y):Promise.resolve({isValid:!0}),h0=Y=>{if(et.reportAnswer!=null){const{id:be,isCorrect:Ct,isUnfinished:Xt=!1,item:Ys,itemProgress:un,duration:wo,retryAttempts:Ac,title:p0}=Y,{id:f0,title:oi,type:Rc}=Ys;return et.reportAnswer({id:be,type:Rc,isCorrect:Ct,itemId:f0,questionTitle:(0,D.QZ)(oi),quizTitle:(0,D.QZ)(p0),retryAttempts:Ac,answers:Ie(Ys),correctResponse:Re(Ys),response:gt({isUnfinished:Xt,item:Ys,itemProgress:un}),isUnfinished:Xt,latency:X(wo)})}return!1},$l=Y=>{if(et.startLesson!=null)return et.startLesson(Y)},m0=()=>{if(et.fetchAvailableLocales!=null)return et.fetchAvailableLocales()},Ql=()=>{if(et.getLocale!=null)return et.getLocale()},jc=Y=>{if(et.setLocale!=null)return et.setLocale(Y)},Zl=()=>et.isInstantLink!=null?et.isInstantLink():!1},72181:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Y8:()=>se,ju:()=>W,l6:()=>re});var D=i(312),U=i.n(D);const V=U()("rise/transcriptPanel/"),re=V("OPEN_TRANSCRIPT_PANEL"),W=V("CLOSE_TRANSCRIPT_PANEL"),se=V("UPDATE_TRANSCRIPT_PANEL"),ne=V("TOGGLE_MOBILE_LAYOUT")},98228:(Ze,Ee,i)=>{"use strict";i.d(Ee,{W:()=>W});var D=i(59288),U=i.n(D),V=i(26058),re=i(47418);function W(){const se=(0,V.W6)();return(0,D.useMemo)(()=>({...se,push:(ne,q)=>se.push((0,re.B)(ne,se.location),q),replace:(ne,q)=>se.replace((0,re.B)(ne,se.location),q)}),[se])}},82719:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Dh:()=>re,HH:()=>ce,S:()=>n,UR:()=>W,_Y:()=>ge,cP:()=>H,fF:()=>Le,i7:()=>ne,pP:()=>Q,xp:()=>V});var D=i(46885),U=i(45274);const V=(z,w,G)=>(0,U.uW)(z)?G?.[w]?.[z.l10nId]:void 0,re=(z,w,G,$)=>{if(!(0,U.uW)(z))return z;if(!$)return;const ae=V(z,w,$);if(ae!==void 0)return ae;const Te=V(z,G,$);if(Te!==void 0)return Te;const ee=le(z,$);return ee.length>0?ee[0].value:void 0},W=(z,w,G,$)=>!w||!G||!$?z:(0,D.v9)(z).reduce((ae,{l10nId:Te,path:ee})=>{const me=re({l10nId:Te},w,G,$),ve=(0,D.re)(ee,me,ae);return ve.type==="accepted"?ve.result:ae},z),se=(z,w,G)=>W(z,w,ce(G),Le(G)),ne=(z,w,G)=>re(z,w,ce(G),Le(G)),q=(z,w,G)=>V(z,w,Le(G));function ue(z,w){return w?.find(G=>G.locale===z)}function n(z){return z?.l10n?.locales}function ce(z){return z?.l10n?.defaultLocale}function pe(z,w){return z!==ce(w)}function Le(z){return z?.l10n?.translations}function le(z,w){return(0,U.uW)(z)?Object.keys(w)?.map(G=>{const $=V(z,G,w);if($)return{locale:G,value:$}}).filter(Boolean)??[]:[]}const ge=(z,w)=>le(z,Le(w));function Be(z){return z.l10n?.translationUpdates?.updateCount??0}const Q=z=>(0,U.uW)(z)?z.l10nId:void 0;function H(z){return z?.l10n?.localeSelectorOptions}},37322:(Ze,Ee,i)=>{"use strict";i.d(Ee,{DB:()=>ee,H5:()=>Te,ME:()=>w,bX:()=>me,dE:()=>G,ny:()=>ae,xm:()=>z});var D=i(72970),U=i.n(D),V=i(35884),re=i.n(V),W=i(83416);const se=(0,W._$)("CDN_USER_CONTENT_URI"),ne=(0,W._$)("CDN_URI"),q=U()("useCrushedKey"),ue=(0,W._$)("IMAGES_URI"),n=re()(/-stock[-_]image.jpg/),ce=(0,W._$)("RBC_IMAGES_URI"),pe=(0,W._$)("ASSETS_URI"),Le=re()(new RegExp(`^${se}/review`)),le=(0,W._$)("CDN_US_URI"),ge=ve=>{const{crushedKey:m,key:ie,useCrushedKey:je,src:ke}=ve;return q(ve)?je&&m?(0,W.o1)(m):(0,W.o1)(ie):(0,W.o1)(ke)},Be=ve=>`${se}/${ve}`,Q=ve=>!ve||!ve.key?"":`${ce}/b:fff,f:jpg,s:cover,w:550,h:296/${ve.key}`,H=ve=>{if(!ve||!ve.key)return"";const{crushedKey:m,key:ie,useCrushedKey:je}=ve;return q(ve)&&je?m?`${ue}/f:jpg,b:fff,s:cover,w:340/${m}`:"":`${ue}/f:jpg,b:fff,s:cover,w:340/${ie}`},z=ve=>{if(!ve||!ve.key)return"";const{crushedKey:m,key:ie,useCrushedKey:je}=ve;return ue?q(ve)&&je&&m?`${ue}/f:png,a:retain,s:cover,t:true,w:340/${m}`:`${ue}/f:png,a:retain,s:cover,t:true,w:340/${ie}`:ge(ve)},w=ve=>{if(!ve||!ve.key)return"";const{crushedKey:m,key:ie,useCrushedKey:je}=ve;return ue?n(ie)?`${ue}/f:jpg,a:retain,b:fff,w:1680,q:65/${ie}`:q(ve)?je&&m?`${se}/${m}`:`${se}/${ie}`:Le(ve.src)?ve.src:`${ue}/f:jpg|png,a:retain,b:fff/${ie}`:ge(ve)},G=(ve,m="src")=>{const{key:ie,src:je,thumbnail:ke,thumbnailKey:X}=ve,Ie=se?`${se}/${ie}`:ge({key:ie,src:je}),Re=se?`${se}/${X}`:ge({key:X,src:ke});return m==="src"?Ie:Re},$=ve=>{if(!ve||!ve.key)return"";const{crushedKey:m,key:ie,useCrushedKey:je}=ve;return q(ve)&&je&&m?`${ue}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${m}`:`${ue}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${ie}`},ae=({height:ve,imageKey:m,width:ie})=>{if(ce){const je=encodeURIComponent(m);return`${ce}/b:fff,f:jpg,s:cover,w:${ie},h:${ve}/${je}`}return(0,W.o1)(`partnerContent/${m}`)},Te=()=>{const ve=pe||ue,m="NBIC_logo_light_bulb.png";return ve?`${ve}/f:png,a:retain,s:cover,w:276,h:160/assets/rise/assets/partner-content/${m}`:(0,W.o1)(`partnerContent/${m}`)},ee=()=>{const ve="NBIC_logo_blue.svg";return ne?`${ne}/assets/rise/assets/partner-content/${ve}`:(0,W.o1)(`partnerContent/${ve}`)},me=ve=>{const{key:m,src:ie}=ve;return le?`${le}/${m}`:ge({key:m,src:ie})}},20441:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Em:()=>n,Vu:()=>q,on:()=>ue,uI:()=>ce,wD:()=>pe,xQ:()=>ge});var D=i(44223),U=i(4322),V=i.n(U),re=i(83416),W=i(52439);const se=re.BI?window.env:V()(window.env,{ACCESS_COOKIE_NAME:(0,W.W5)(),REDIRECT_URI:window.location.origin+"/auth-callback"}),ne=(0,D.A)(se),q=ne.closeSession,ue=ne.on,n=ne.request,ce=ne.refreshSession,pe=ne.resetSession,Le=ne.resumeSession,le=ne.startSession,ge=ne.getAuthorizationUrl,Be=ne.fetch},52706:(Ze,Ee,i)=>{"use strict";i.d(Ee,{lL:()=>ae,t9:()=>Kt,XC:()=>xt,xD:()=>Et,cP:()=>ve,Wn:()=>m,W8:()=>ke,WA:()=>ft});var D=i(9988),U=i(92348),V=i.n(U),re=i(34198),W=i.n(re),se=i(92629),ne=i.n(se),q=i(40966),ue=i.n(q),n=i(62116),ce=i.n(n),pe=i(37600),Le=i.n(pe),le=i(86484),ge=i.n(le),Be=i(5181),Q=i(42770),H=i(13850),z=i(9041),w=i(76672);Q.A.register(H.A),Q.A.register(z.A);const G="#ff631e";function $(Fe){if(Fe==null)return null;try{return(0,w.to)((0,w.qg)(Fe),"srgb")}catch{return null}}const ae=V()({NEAR_BLACK:null,DARK:null,MED:null,LIGHT:null}),Te=[[32,ae.NEAR_BLACK],[64,ae.DARK],[128,ae.MED],[256,ae.LIGHT]],ee=4.5,me=Fe=>{const M=$(Fe);if(M==null)return 0;const[ze,ht,ye]=M.coords.map(fs=>fs*255);return .2126*ze+.7152*ht+.0722*ye},ve=Fe=>Fe?1-me(Fe)/255>.4:!1,m=Fe=>Fe?1-me(Fe)/255>.25:!1,ie=Fe=>{if(!Fe)return null;const M=parseInt(Fe.substr(1),16);return Number.isNaN(M)?null:M.toString(16).padStart(6,"0").padStart(7,"#")},je=(Fe,M)=>{const ze=ie(M);return!ze||ze.length!==7?Fe:ze},ke=ne()((Fe,M)=>{const ze=(0,D.A)(M).slice(0,3),ht=Fe>=0?ze.map(ye=>(1-Fe)*ye+Fe*255):ze.map(ye=>(1+Fe)*ye);return Re(ht)}),X=/[0-9.]+/gi;function Ie(Fe=""){const[M="0",ze="0",ht="0",ye="1"]=Fe.match(X)||[];return[parseInt(M,10),parseInt(ze,10),parseInt(ht,10),parseFloat(ye)]}const Re=(Fe=[])=>"#"+Fe.slice(0,3).map(M=>Math.min(255,Math.max(0,Math.round(M))).toString(16).padStart(2,"0")).join(""),gt=Fe=>Re(Ie(Fe)),ft=ke(.9),bt=ke(-.5),kt=ke(-.2),xt=Fe=>{const M=me(Fe);return Te.find(([ht])=>ht>M)?.[1]},Gt=Fe=>Fe.toString(16).padStart(6,"0").padStart(7,"#"),Xe=ge()(ce()(Number),W()(Le(),Gt)),ds=W()(Xe,ue()(G));function Je(Fe,M){if(Fe==="none"||!Fe||!M)return{};const ze=ut(Fe,M),ht=`${ze.toFixed(2)}:1`;let ye=!1,Ss=!1,fs=!1,Oe=!1,Ds=!1;return ze>=7?(ye=!0,Ss=!0,fs=!0,Oe=!0,Ds=!0):ze>=4.5?(ye=!0,fs=!0,Ds=!0):ze>=3&&(fs=!0,Ds=!0),{ratio:ht,bodyTextAA:ye,bodyTextAAA:Ss,largeTextAA:fs,largeTextAAA:Oe,graphicalUiComponentsAA:Ds}}function ut(Fe,M){return(0,w.v2)($(Fe),$(M),"WCAG21")}function de(Fe){const[M,ze,ht]=hexToRgba(Fe).slice(0,3).map(it);return .2126*M+.7152*ze+.0722*ht}function it(Fe){const M=Fe/255;return M<=.04045?M/12.92:((M+.055)/1.055)**2.4}const Et=Fe=>Je("#fff",Fe)["bodyTextAA"]?Be.Em.LIGHT:Be.Em.DARK,rt=(Fe,M)=>Fe===TEXT_COLOR.DARK||Fe===TEXT_COLOR.AUTO&&Et(M)===TEXT_COLOR.DARK,Kt={[ae.NEAR_BLACK]:ke(.1),[ae.DARK]:ke(-.4),[ae.MED]:ke(-.2),[ae.LIGHT]:ke(.3)}},63545:(Ze,Ee,i)=>{"use strict";i.d(Ee,{C_:()=>X,S6:()=>ke,by:()=>ee,o4:()=>me,xA:()=>se,y4:()=>Te,yG:()=>re});var D=i(92348),U=i.n(D),V=i(83416);const re={validEmail:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,validIframe:/^<iframe(.*)?\ssrc="(?:(?:(?:https?):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?"(.*)?><\/iframe>$/,validUrl:/^(?:(?:(?:https?):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/},W={heading:"Lato",body:"Merriweather",ui:"Lato"},se={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"},ne={ADMIN:"Admin",AUTHOR:"Author",OWNER:"Owner"},q={EDITOR:1,MANAGER:2,OWNER:3},ue={[q.EDITOR]:"Author",[q.MANAGER]:"Admin",[q.OWNER]:"Owner"},n=Object.values(q).map(Ie=>({id:Ie,title:ue[Ie]})),ce=({name:Ie,isOnePage:Re})=>{const gt={Admin:Re?"Microlearning manager":"Manager",Author:Re?"Microlearning editor":"Editor",Owner:Re?"Microlearning owner":"Owner"},ft={Admin:Re?"Microlearning manager":"Course manager",Author:Re?"Microlearning collaborator":"Course collaborator",Owner:Re?"Microlearning owner":"Course owner"};return is360?gt[Ie]:ft[Ie]},pe="content",Le="questionBanks",le="teamMedia",ge=9,Be=13,Q=27,H=32,z=38,w=40,$=864e5*3,ae=100,Te="onePage",ee=U()({COMPACT:null,COVER:null,OVERLAY:null,SIDEBAR:null}),me={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},ve=Object.values(me),m={PORTRAIT:"portrait",LANDSCAPE:"landscape"},ie={READY:"ready",UPLOADING:"uploading",PROCESSING:"processing",FAILED:"failed",ERROR:"error"},je=null,ke={DARK:"#000",LIGHT:"#fff"},X={SMALL:{label:"Small",value:1},MEDIUM:{label:"Medium",value:1.5},LARGE:{label:"Large",value:2}}},67644:(Ze,Ee,i)=>{"use strict";i.d(Ee,{BC:()=>D,QI:()=>V,f5:()=>re,hh:()=>U});const D=q=>q.reduce((ue,n,ce)=>("id"in n&&(ue[n.id]={id:n.id,index:ce}),ue),{}),U=q=>({...q,percentComplete:se({items:q.items,key:"isComplete"})}),V=q=>({...q,percentComplete:se({items:q.items,key:"isComplete"})}),re=q=>({...q,percentViewed:se({items:q.items,key:"isViewed"})});function W({itemId:q,isCorrect:ue,progress:n}){const ce={...n,items:{...n.items,[q]:{...n.items?.[q],id:q,index:n.items?.[q]?.index??0,isComplete:ue,isViewed:ue,...n.items?.[q].isCorrect===void 0?{isCorrect:ue}:{}}}};ce.items[q]?.isCorrect===!1&&(ce.lastIncorrectCardId=q);const pe=ne(ce),Le=pe.percentComplete!==100?V(pe):pe,le=re(Le);return le.percentComplete===100?{...le,isComplete:!0}:le}function se({items:q,key:ue}){const n=q??{},ce=Object.keys(n).length,pe=Object.values(n).filter(Le=>Le?.[ue]).length;return ce===0?0:Math.round(pe/ce*100)}function ne(q){const n=Object.values(q.items||{}).filter(ce=>ce.isCorrect===!0).length;return{...q,correctlyAnswered:n}}},23366:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Ve:()=>ge,lQ:()=>Q,rq:()=>Le});var D=i(34198),U=i.n(D),V=i(63036),re=i.n(V),W=i(30041),se=i.n(W),ne=i(64104),q=i.n(ne),ue=i(78324),n=i.n(ue),ce=i(77406),pe=i.n(ce);function Le(...H){return U()(...se()(1,H))(q()(H))}const le=(H,z)=>cond(z)(H);function ge(H,...z){return n()(...z)(H)}function Be(H,...z){return pipeP(...z)(H)}const Q=()=>{}},47418:(Ze,Ee,i)=>{"use strict";i.d(Ee,{B:()=>re});var D=i(72147);const U=["fromDashboard","locale"];function V(W,se){const ne=typeof W=="function"?W(se):W;return typeof ne=="string"?(0,D.Rr)(ne):ne}function re(W,se){const ne=V(W,se),q=new URLSearchParams(se.search),ue=new URLSearchParams(ne.search);for(const n of U){const ce=q.get(n);ce&&!ue.has(n)?ue.set(n,ce):ue.has(n)&&!ue.get(n)&&ue.delete(n)}return{...ne,search:ue.toString()}}},88457:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Em:()=>ee,lZ:()=>ve});var D=i(45872),U=i.n(D),V=i(883),re=i.n(V),W=i(47067),se=i.n(W),ne=i(69322),q=i.n(ne),ue=i(40966),n=i.n(ue),ce=i(25578),pe=i.n(ce),Le=i(37600),le=i.n(Le),ge=i(52439),Be=i(20441),Q=i(48004);const H=(Ie,Re)=>(...gt)=>{try{return Ie(...gt)}catch(ft){window.env?.SERVICE_ENV&&window.env?.SERVICE_ENV!=="prod"&&console.error(ft),Q.L.addError(ft),Re(ft)}};function z(Ie,Re){const gt=Re.split("=");return U()(gt[0].trim(),gt[1].trim(),Ie)}const w=re()(q()(z,{}),pe()(/; */));function G(Ie,Re){const gt=Re.indexOf(":"),ft=Re.substr(0,gt).trim().toLowerCase(),bt=Re.substr(gt+1).trim();return ft&&(Ie[ft]=Ie[ft]?Ie[ft]+", "+bt:bt),Ie}function $(Ie){return Ie?Ie.split(`
`).reduce(G,{}):{}}function ae(Ie){return Math.floor(Ie.loaded/Ie.total*100)}function Te(Ie){const Re=[];for(const gt in Ie){if(!Array.isArray(Ie[gt])){Re.push(encodeURIComponent(gt)+"="+encodeURIComponent(Ie[gt]));continue}for(const ft of Ie[gt])Re.push(Te(ft))}return Re.join("&")}function ee(Ie){let Re,gt=!1;const ft=new Promise(function bt(kt,xt){const Gt=Ie.signal;if(Gt?.aborted){xt(new DOMException("Aborted","AbortError"));return}const Xe=Oe=>{throw xt(Oe),Oe},ds=()=>{Re.abort(),xt(new DOMException("Aborted","AbortError"))},Je=Ie.data;let ut=H(Ie.deserialize??se(),Xe);const de=Ie.headers??{},it=Ie.json??!1,Et=Ie.jwt??!1,rt=Ie.token??null,Kt=Ie.method??"GET",Fe=Ie.onUploadProgress;let M=H(Ie.serialize??se(),Xe),ze=Ie.url;const ht=Ie.withCredentials??!1,ye=Ie.file,Ss=Ie.timeout??3e3;Re=new XMLHttpRequest;const fs=setTimeout(()=>{Re.abort(),xt({error:"request timed out"})},Ss);if(it&&(ut=H(JSON.parse,xt),M=H(JSON.stringify,xt),de["Content-Type"]="application/json"),Kt==="GET"&&Je&&(ze+="?"+Te(Je)),Et){const Oe=rt||(0,ge.rS)();de.Authorization="Bearer "+Oe}Gt?.addEventListener("abort",ds),Re.withCredentials=ht,Re.addEventListener("abort",xt),Re.addEventListener("error",xt),Re.addEventListener("load",function(){Re.status>=400?[401,403].includes(Re.status)?gt?xt({error:"Unable to resume session"}):(0,Be.wD)().then(()=>{bt(kt,xt),gt=!0}).catch(Oe=>{Q.L.addError(Oe),xt({error:"Unable to resume session"})}):xt(ut(Re.response)):(kt({body:Re.status===204?void 0:ut(Re.response),headers:$(Re.getAllResponseHeaders()),status:Re.status}),Gt?.removeEventListener("abort",ds)),clearTimeout(fs)}),Re.upload&&typeof Fe=="function"&&Re.upload.addEventListener("progress",Fe),Re.open(Kt,ze);for(const Oe in de)Re.setRequestHeader(Oe,de[Oe]);Kt!=="GET"&&Je?Re.send(M(Je)):ye?Re.send(ye):Re.send()});return ft.abort=(...bt)=>Re.abort(...bt),ft}const me=re()(le(),n()(""));function ve(Ie){return Ie.status===200||Ie.status===201?Ie.body:Promise.reject(Ie.body)}const m=(Ie,Re=!0)=>Re?`${Ie}s`:Ie;var ie=(Ie=>(Ie[Ie.KB=1024]="KB",Ie[Ie.MB=1048576]="MB",Ie[Ie.GB=1073741824]="GB",Ie[Ie.TB=1099511627776]="TB",Ie))(ie||{});const je={KB:(Ie=1)=>1024*Ie,MB:(Ie=1)=>1048576*Ie,GB:(Ie=1)=>1073741824*Ie,TB:(Ie=1)=>1099511627776*Ie},ke={KB:{short:"KB",long:"Kilobyte"},MB:{short:"MB",long:"Megabyte"},GB:{short:"GB",long:"Gigabyte"},TB:{short:"TB",long:"Terabyte"}},X=(Ie,Re="short")=>{const ft=Object.keys(ie).reverse().find(Gt=>Ie>=ie[Gt]);if(!ft)return`${Ie} ${m("byte",Ie>1)}`;const bt=Ie/ie[ft],kt=bt%1===0?bt.toFixed(0):bt.toFixed(2),xt=Re==="long"?m(ke[ft].long,bt>1):ke[ft].short;return`${kt} ${xt}`}},77541:(Ze,Ee,i)=>{"use strict";i.d(Ee,{I6:()=>ee,LI:()=>Xe,Ll:()=>Te,Vx:()=>me,Zd:()=>ae,dM:()=>Gt,sg:()=>ke});var D=i(10789),U=i.n(D),V=i(34198),re=i.n(V),W=i(45005),se=i.n(W),ne=i(2353),q=i.n(ne),ue=i(91794),n=i.n(ue),ce=i(64104),pe=i.n(ce),Le=i(74221),le=i.n(Le),ge=i(78324),Be=i.n(ge),Q=i(34552),H=i.n(Q),z=i(25578),w=i.n(z),G=i(45274);const $=re()(se()(".svg"),H()("","originalUrl")),ae=n()($,U()({width:"500rem"}),U()({})),Te=Je=>{if(Je){const ut=Je.trim();if(ut!==""&&ut!=='""')return Je}return""},ee=Je=>Te(Je)||void 0,me=Je=>Je?"img":void 0,ve=Je=>Be()(H()("","originalUrl"),w()("."),pe(),q()(Je)),m=ve("svg"),ie=ve("gif"),je=/\.svg$/i,ke=Je=>je.test(Je),X={process:"center",timeline:"left"},Ie=Je=>X[Je]||"left",Re=(Je,ut)=>{const de=le()(Je,ut);return de.media.image.key===ut.media.image.key&&Object.assign(de.media.image,{crushedKey:ut.media.image.key,useCrushedKey:!0}),de},gt=({src:Je,alpha:ut})=>({alpha:ut,media:{image:{key:ft(Je),src:Je}}}),ft=Je=>typeof Je!="string"?"":Je.startsWith("http")?new URL(Je).pathname.slice(1):Je,bt=({coverImageAlpha:Je,coverImage:ut})=>({alpha:Je,src:ut}),kt=({lessonHeaderImageAlpha:Je,lessonHeaderImage:ut})=>({alpha:Je,src:ut}),xt=(Je,ut)=>(de,it)=>{const Et=de[ut];if(de?.theme){const rt=it?it(Et?.media):Et?.media;if((0,G.uW)(rt))return Et;const Kt={...Et,media:{...rt}},Fe=gt(Je(de.theme));return Re(Kt,Fe)}else return Et},Gt=xt(bt,"coverImage"),Xe=xt(kt,"lessonHeaderImage"),ds=async Je=>{const ut=new Image;return ut.src=Je,await ut.decode(),ut}},67757:(Ze,Ee,i)=>{"use strict";i.d(Ee,{QD:()=>Be,UA:()=>q,s0:()=>Q});var D=i(92536),U=i.n(D);const V=H=>!!H&&Object.prototype.toString.call(H)==="[object Object]",re=Array.isArray,W=H=>z=>{for(const w in z)if(H(z[w]))return w;return null},se=(H,z)=>Object.fromEntries(Object.entries(z).map(H)),ne=(H,z)=>Object.values(z).map(w=>w[H]),q=H=>Object.keys(H).length,ue=(H,z,w)=>{const G={};for(const $ in w)G[H($)]=z(w[$]);return G},n=H=>H.map(le),ce=H=>H.map(ge),pe=H=>ue(camelCase,le,H),Le=H=>ue(snakeCase,ge,H),le=H=>V(H)?pe(H):re(H)?n(H):H,ge=H=>V(H)?Le(H):re(H)?ce(H):H,Be=(H,z)=>{const w=new Set(z),G={};for(const $ in H)w.has($)||(G[$]=H[$]);return G},Q=(H,z)=>Object.fromEntries(Object.entries(H).map(([w,G])=>z(w,G)))},61708:(Ze,Ee,i)=>{"use strict";i.d(Ee,{HY:()=>U.HY,Nv:()=>ge,Ls:()=>w,GF:()=>ae,y4:()=>G,LY:()=>$});var D=i(31976),U=i(18398),V=i(54162),re=i(33733),W=i(83416);const se=me=>me!=null&&typeof me=="object"&&"map"in me&&typeof me.map=="function",ne=me=>me!=null&&typeof me=="object"&&"run"in me&&typeof me.run=="function",q=me=>me!=null&&typeof me=="object"&&"then"in me&&typeof me.then=="function",ue=me=>me!=null&&typeof me=="object"&&"fork"in me&&typeof me.fork=="function",n=me=>me!=null&&typeof me=="function";function ce(){return({dispatch:me,getState:ve})=>m=>ie=>{if(n(ie))return ie(me,ve);if(q(ie))return ie.then(me);if(ue(ie)){ie.fork(me,me);return}return ne(ie)?me(ie.run()):se(ie)?ie.map(me):m(ie)}}function pe(){return[ce()]}var Le=i(59288);const le=U.Zz;function ge(me,ve){const m=(0,U.y$)(me,ve,le((0,U.Tw)(...pe()))),ie=Be(),je=Q(),ke=H(),X=z();return{Provider:V.Kq,connect:ie,connectBase:je,dispatch:m.dispatch,store:m,useDispatch:ke,useSelector:X}}function Be(){return function(ve,m,ie,je){return function(ke){return(0,V.Ng)(ve,m,ie,je)((0,re.BN)(ke))}}}function Q(){return function(ve,m,ie,je){return function(ke){return(0,V.Ng)(ve,m,ie,je)(ke)}}}function H(){return V.wA}function z(){return function(ve,m=V.bN){const ie=Le.useContext(re.q2),je=Le.useContext(re.R6),ke=Le.useRef(void 0),X=(0,D.S)(),Ie=(0,V.d4)(ve,m),Re=!X&&ie&&je?.startsWith?.("exit");return Re||(ke.current=Ie),Re&&ke.current!==void 0?ke.current:Ie}}const w=Be(),G=H(),$=z(),ae=z;var Te=i(36523);const ee=()=>sideEffect(()=>location.href="/")},42006:(Ze,Ee,i)=>{"use strict";i.d(Ee,{V:()=>D});const D=({locales:U,course:V,locale:re})=>!!(U?.find(ne=>ne.locale===re)?.rightToLeft||V?.features?.["rise-rtl"]&&V?.experiments?.rtl)},83416:(Ze,Ee,i)=>{"use strict";i.d(Ee,{As:()=>Q,BI:()=>ue,Hm:()=>H,NS:()=>Be,PJ:()=>ge,Wk:()=>z,_$:()=>q,ih:()=>w,mZ:()=>pe,o1:()=>le});var D=i(67711),U=i.n(D),V=i(7827),re=i.n(V),W=i(84929),se=i.n(W);const{Runtime:ne}=window,q=U()(se())(window.env||{}),ue=!1,n=null,ce=G=>ne&&ne[G],pe="Rise 360";function Le(G){return q("CDN_USER_CONTENT_URI")+"/"+G}const le=G=>{const $=G||"",ae=ce("resolvePath")?ne.resolvePath.bind(ne):Le;return $.startsWith("http")||$.startsWith("data:")||$.startsWith("//")?$:ae($)},ge=G=>ce("resolveFontPath")?ne.resolveFontPath(G):`${G.default?q("CDN_URI"):q("CDN_USER_CONTENT_URI")}/${G.key}`,Be=()=>{ce("exit")&&ne.exit()},Q=()=>ce("isComplete")?ne.isComplete():null,H=()=>ce("isExport")?ne.isExport():!1;function z(){if(ce("isExport")){const G=re()(["partnerContent","content"],window);return ne.isExport()&&G}return!1}const w=()=>{if(ce("sendTouch"))return ne.sendTouch()}},5181:(Ze,Ee,i)=>{"use strict";i.d(Ee,{xj:()=>w,rE:()=>xt,Dw:()=>ae,HC:()=>$,qu:()=>Gt,LE:()=>je,WQ:()=>H,BL:()=>X,Zs:()=>ne,S$:()=>q,Ht:()=>ce,zV:()=>pe,B4:()=>ge,HU:()=>ue,_g:()=>n,df:()=>ds,KJ:()=>Be,qH:()=>Q,OX:()=>G,AY:()=>ke,Py:()=>me,b$:()=>ve,qB:()=>m,kY:()=>ee,br:()=>Te,jq:()=>Xe,Y2:()=>ie,RE:()=>bt,Em:()=>kt,V7:()=>se});var D=i(92348),U=i.n(D),V=i(67331),re=i.n(V);function W(rt){return U()(rt)}const se={RISE_CLASSIC:"classic",APEX:"organic",HORIZON:"imaginative"},ne="#ff631e",q=30,ue=50,n=.6,ce="right",pe="rounded",Le=[{color:"#4baaf4",name:"Sky"},{color:"#285f9f",name:"Blueberry"},{color:"#7837a8",name:"Jelly"},{color:"#d84738",name:"Cherry"},{color:"#ff631e",name:"Tangerine"},{color:"#25bb64",name:"Basil"}],le="#ffffff",ge=re()("color",Le),Be="#000",Q="#fff",H=600,z="Rise",w=W({ACCENT:null,BLACK:null,COLOR:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),G=W({LARGE:null,MEDIUM:null,SMALL:null}),$=W({STEPPED:null,CONTINOUS:null}),ae=U()({NUMBERS:null,DOTS:null,NONE:null}),Te=W({COMPACT:null,OVERLAY:null,SIDEBAR:null}),ee=U()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),me=U()({DARK:null,DARK_ACCENT:null,DARK_IMAGE:null,LIGHT:null,LIGHT_ACCENT:null,LIGHT_IMAGE:null}),ve={FREE:"free",RESTRICTED:"restricted"},m=U()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),ie=U()({THEME_DEFAULT:null,CIRCULAR_FILL:null,INCOMPLETE_COMPLETE:null}),je=W({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),ke=W({FULL:null,FLOATING:null,FLOATING_FULL:null}),X=W({ACCENT:null,CENTERED:null,CENTERED_ACCENT_TINT:null,CENTERED_OVERLAY:null,CENTERED_IMAGE:null,IMAGE:null,LEFT:null,LEFT_OVERLAY:null,SPLIT_LEFT:null,SPLIT_LEFT_IMAGE:null,SPLIT_RIGHT:null,SPLIT_RIGHT_IMAGE:null,TWO_THIRDS_LEFT_IMAGE:null,TWO_THIRDS_RIGHT_IMAGE:null,WHITE:null}),Ie={default:[{text:"Centered",type:X.CENTERED},{text:"Centered overlay",type:X.CENTERED_OVERLAY},{text:"Left",type:X.LEFT},{text:"Left overlay",type:X.LEFT_OVERLAY},{text:"Split left image",type:X.SPLIT_LEFT_IMAGE},{text:"Split right image",type:X.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:X.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:X.TWO_THIRDS_RIGHT_IMAGE}],classic:[{text:"Centered",type:X.CENTERED},{text:"Centered overlay",type:X.CENTERED_OVERLAY},{text:"Left",type:X.LEFT},{text:"Left overlay",type:X.LEFT_OVERLAY},{text:"Split left image",type:X.SPLIT_LEFT_IMAGE},{text:"Split right image",type:X.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:X.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:X.TWO_THIRDS_RIGHT_IMAGE}],organic:[{text:"Centered",type:X.CENTERED},{text:"Centered overlay",type:X.CENTERED_OVERLAY},{text:"Left",type:X.LEFT},{text:"Left overlay",type:X.LEFT_OVERLAY},{text:"Split left",type:X.SPLIT_LEFT},{text:"Split right",type:X.SPLIT_RIGHT},{text:"Split left image",type:X.SPLIT_LEFT_IMAGE},{text:"Split right image",type:X.SPLIT_RIGHT_IMAGE}],imaginative:[{text:"Centered",type:X.CENTERED},{text:"Centered overlay",type:X.CENTERED_OVERLAY},{text:"Centered image",type:X.CENTERED_IMAGE},{text:"Centered accent tint",type:X.CENTERED_ACCENT_TINT},{text:"Split left image",type:X.SPLIT_LEFT_IMAGE},{text:"Split right image",type:X.SPLIT_RIGHT_IMAGE},{text:"Two-thirds left image",type:X.TWO_THIRDS_LEFT_IMAGE},{text:"Two-thirds right image",type:X.TWO_THIRDS_RIGHT_IMAGE}]},Re=null,gt=null,ft=[{text:"Image",type:X.IMAGE},{text:"Accent",type:X.ACCENT},{text:"White",type:X.WHITE}],bt={CLOSED:"closed",HIDDEN:"hidden",OPEN:"open"},kt=W({AUTO:null,BLACK:null,LIGHT:null,DARK:null}),xt=W({ROUNDED:null,SQUARED:null}),Gt=U()({ROUNDED:null,SQUARED:null}),Xe=U()({FLOATING:null,FULL:null}),ds=U()({ACCENT:null,DARK:null,LIGHT:null}),Je=U()({ACCENT:null,DARK:null,LIGHT:null}),ut=null,de=null,it=null,Et=[{value:kt.AUTO,label:"Auto"},{value:kt.DARK,label:"Dark"},{value:kt.LIGHT,label:"Light"}]},33897:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Kj:()=>ne});var D=i(83416),U=i(92348),V=i.n(U);const re=null,W=V()({ACTIVE:null,PREVIEW:null}),se=({themeId:q,themeCoverImage:ue,coverImageDefault:n})=>q==="classic"&&isNonEmptyString(n)?n:ue,ne=q=>({...q,theme:{...q?.theme,hideLessonHeaders:q?.theme?.hideLessonHeaders??!1}})},63006:(Ze,Ee,i)=>{"use strict";i.d(Ee,{A:()=>V,G:()=>re});var D=i(36523);const U="rise/features/SET_FEATURE_FLAGS",V=(0,D.handle)({},{[U]:(W,se)=>se}),re=(0,D.action)(U)},94983:(Ze,Ee,i)=>{"use strict";i.d(Ee,{A:()=>ne,r:()=>q});var D=i(77335),U=i(36523),V=i(4663),re=i(94379);const W=(ue,{fonts:n})=>[...ue,...n],se=(ue,{fonts:n})=>n,ne=(0,U.handle)([],{[D.LK]:W,[D.LM]:se}),q=ue=>n=>{(0,V.U)(ue,()=>{n((0,re.m7)(!0))})}},13662:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Ay:()=>n,zE:()=>ce});var D=i(312),U=i.n(D),V=i(4322),re=i.n(V),W=i(36523);const se={isPreview:window.viewType==="preview",externalLinksModalVisible:!1},q=U()("rise/globals/")("SHOW_EXTERNAL_LINKS_MODAL"),ue=(pe,Le)=>re()(pe,{externalLinksModalVisible:Le}),n=(0,W.handle)(se,{[q]:ue}),ce=(0,W.action)(q)},16829:(Ze,Ee,i)=>{"use strict";i.d(Ee,{A:()=>Gt,R:()=>Xe});var D=i(47474),U=i.n(D),V=i(10789),re=i.n(V),W=i(46687),se=i.n(W),ne=i(27905),q=i.n(ne),ue=i(23444),n=i.n(ue),ce=i(312),pe=i.n(ce),Le=i(67711),le=i.n(Le),ge=i(72970),Be=i.n(ge),Q=i(80721),H=i.n(Q),z=i(78324),w=i.n(z),G=i(84929),$=i.n(G),ae=i(86484),Te=i.n(ae),ee=i(36523),me=i(63064),ve=i.n(me),m=i(68971),ie=i.n(m);const ke=ve()(2,ds=>ie()((0,ee.error)(ds),(0,ee.action)(ds)));var X=i(61140);const Ie=pe()("rise/learningPathUpNext/"),Re=Ie("FETCH_LP_UP_NEXT"),gt=Ie("FETCH_LP_UP_NEXT_PENDING"),ft={nextCourse:{},learningPathComplete:!1,isPending:!1,isSuccess:!1},bt=n()(Be()("id")),kt=le()(se()({nextCourse:Te()(bt,re()({})),learningPathComplete:bt,lpHasFailedQuiz:$()("lpHasFailedQuiz"),isPending:!1,isSuccess:!0})),xt=q()("isPending",!0),Gt=(0,ee.handle)(ft,{[Re]:(0,ee.onSuccess)(kt),[gt]:xt}),Xe=H()([(0,ee.action)(gt),w()(U().fromPromise(X.RR),ke(Re))])},34984:(Ze,Ee,i)=>{"use strict";i.d(Ee,{O:()=>re});var D=i(312),U=i.n(D);const re=U()("rise/partnerContent/")("SET_ALL_PARTNER_CONTENT")},58931:(Ze,Ee,i)=>{"use strict";i.d(Ee,{_q:()=>W,nF:()=>q,pp:()=>n,ut:()=>se});var D=i(312),U=i.n(D),V=i(36523);const re=U()("rise/rise-com/"),W=re("FAVORITE_ADDED"),se=re("FAVORITE_REMOVED"),ne=()=>sideEffect(riseComAddFavorite),q=()=>(0,V.action)(W,void 0),ue=()=>sideEffect(riseComRemoveFavorite),n=()=>(0,V.action)(se,void 0)},88523:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Ay:()=>ge,pb:()=>Be,xi:()=>Q});var D=i(312),U=i.n(D),V=i(10789),re=i.n(V),W=i(4322),se=i.n(W),ne=i(36523);const q=U()("rise/sessionPreferences/"),ue=q("LOAD_SESSION_PREFERENCES"),n=q("SET_PREFERS_KEYBOARD_NAVIGATION"),ce=q("SET_STARTING_COURSE_LESSON_SELECTED"),pe={prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},Le=(z,w)=>se()(z,{prefersKeyboardNavigation:w}),le=(z,w)=>se()(z,{startedCourseWithLessonSelected:w}),ge=(0,ne.handle)(pe,{[ue]:se(),[n]:Le,[ce]:le}),Be=re()((0,ne.action)(ue,null)),Q=(0,ne.action)(n),H=(0,ne.action)(ce)},29249:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Ay:()=>n,ty:()=>pe,zP:()=>ce});var D=i(27905),U=i.n(D),V=i(67711),re=i.n(V),W=i(19509),se=i(36523);const ne="rise/slidesUI/SET_SLIDE_DIRECTION",q="rise/slidesUI/SET_EXITING_SLIDE_OFFSET",ue={slideDirection:W.f.UP,exitingSlideOffset:0},n=(0,se.handle)(ue,{[ne]:re()(U()("slideDirection")),[q]:re()(U()("exitingSlideOffset"))}),ce=(0,se.action)(ne),pe=(0,se.action)(q)},94379:(Ze,Ee,i)=>{"use strict";i.d(Ee,{$2:()=>le,$d:()=>Be,Ay:()=>n,LW:()=>pe,cX:()=>ge,m7:()=>ce,zq:()=>Le});var D=i(312),U=i.n(D),V=i(4322),re=i.n(V),W=i(36523);const ne=U()("rise/status/")("SET_LOADED"),q=(Q,H)=>re()(Q,H),ue={connection:"connected",courseLoaded:!1,fontsLoaded:!1,notFound:!1,partnerContentLoaded:!1},n=(0,W.handle)(ue,{[ne]:q}),ce=(Q=!1)=>(0,W.action)(ne,{fontsLoaded:Q}),pe=(Q=!1)=>(0,W.action)(ne,{courseLoaded:Q}),Le=(Q="connected")=>(0,W.action)(ne,{connection:Q}),le=(Q=!1)=>(0,W.action)(ne,{coverLoaded:Q}),ge=(Q=!1)=>(0,W.action)(ne,{notFound:Q}),Be=(Q=!1)=>(0,W.action)(ne,{partnerContentLoaded:Q})},5683:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Ay:()=>pe,fc:()=>Le,sf:()=>le});var D=i(36523),U=i(27905),V=i.n(U),re=i(312),W=i.n(re),se=i(67711),ne=i.n(se);const q=W()("rise/ui/"),ue=q("SET_LESSON_NAV_NEXT_BUTTON_UI"),n=q("SET_SKIP_TO_NAV_BUTTON_UI"),ce={lessonNavNextButton:null,skipToNavButton:null},pe=(0,D.handle)(ce,{[ue]:ne()(V()("lessonNavNextButton")),[n]:ne()(V()("skipToNavButton"))}),Le=(0,D.action)(ue),le=(0,D.action)(n)},23628:(Ze,Ee,i)=>{"use strict";var D={};i.r(D),i.d(D,{CoverDescription:()=>C9,CoverDetailsContentHeading:()=>P8,CoverDueDate:()=>x9,CoverHeader:()=>K9,CoverLayout:()=>Z9,LessonHeader:()=>r8,LessonNavFinish:()=>l8,LessonNavNext:()=>u8,LessonNavPrevious:()=>g8,LessonProgressGraphic:()=>L8,NavCompactHeaderCounter:()=>M8,NavCompactHeaderProgress:()=>D8,NavCompactOutline:()=>k8,OverviewListItem:()=>w8,OverviewListSectionTitle:()=>B8,Progress:()=>O8});var U={};i.r(U),i.d(U,{AlignLeft:()=>H8,ArrowDown:()=>z0,ArrowLeft:()=>_8,ArrowRight:()=>U8,ArrowUp:()=>Kp,Category:()=>KC,ChevronDown:()=>F8,ChevronUp:()=>z8,Favorite:()=>x0,LessonsComplete:()=>od,LessonsRequirement:()=>mp,QuestionBox:()=>V8,QuizFailed:()=>Yp,QuizPassed:()=>od,QuizRequirement:()=>v0,Search:()=>G8,ToggleDown:()=>K8,Touch:()=>$8,VideoCamera:()=>Q8,X:()=>Z8});var V={};i.r(V),i.d(V,{components:()=>D,icons:()=>U});var re={};i.r(re),i.d(re,{CoverCourseInfo:()=>B7,CoverDetailsSection:()=>F7,CoverHeader:()=>ex,CoverLayout:()=>sx,LessonHeader:()=>ax,LessonProgressGraphic:()=>hx,NavSidebarHeader:()=>mx,OverviewListItemLinkContent:()=>Hx,Progress:()=>Fx});var W={};i.r(W),i.d(W,{ArrowDown:()=>u2,ArrowLeft:()=>Wx,ArrowRight:()=>Vx,ArrowUp:()=>u2,ChevronDown:()=>h2,ChevronUp:()=>h2,Favorite:()=>x0,LessonsComplete:()=>m2,LessonsRequirement:()=>p2,QuizFailed:()=>Kx,QuizPassed:()=>m2,QuizRequirement:()=>p2,Search:()=>Gx,ToggleDown:()=>$x,X:()=>Qx});var se={};i.r(se),i.d(se,{components:()=>re,icons:()=>W});var ne={};i.r(ne),i.d(ne,{CoverDescription:()=>Xx,CoverDetails:()=>qx,CoverGraphic:()=>Gc,CoverHeader:()=>cE,CoverLayout:()=>dE,CoverProgress:()=>LE,CoverSVG:()=>Ca,LessonHeader:()=>NE,LessonProgressGraphic:()=>PE,NavSidebarHeaderProgress:()=>DE});var q={};i.r(q),i.d(q,{AlignLeft:()=>FE,ArrowDown:()=>wE,ArrowLeft:()=>BE,ArrowRight:()=>_E,ArrowUp:()=>HE,ChevronDown:()=>y2,ChevronUp:()=>zE,Favorite:()=>x0,LessonsComplete:()=>od,LessonsRequirement:()=>mp,QuestionBox:()=>VE,QuizFailed:()=>Yp,QuizPassed:()=>od,QuizRequirement:()=>v0,Search:()=>WE,ToggleDown:()=>y2,Touch:()=>GE,VideoCamera:()=>KE,X:()=>$E});var ue={};i.r(ue),i.d(ue,{components:()=>ne,icons:()=>q});var n=i(50635),ce=i(12243),pe=i(22651),Le=i(33657),le=i(47993),ge=i(69582),Be=i(57770),Q=i(55238),H=i(99638),z=i(51563),w=i(22302),G=i(74968),$=i(32838),ae=i(25620),Te=i(13848),ee=i(93665),me=i(15075),ve=i(54944),m=i(59288),ie=i.n(m),je=i(87459),ke=i(26058),X=i(18391),Ie=i(72147),Re=i(52439);const gt="_course_token",ft=new URLSearchParams(window.location.hash.substr(1)),bt=ft.get(gt);bt&&(ft.delete(gt),window.history.replaceState(null,null,`#${ft.toString()}`));const kt=t=>{const{data:{method:e,id:s,jsonrpc:o}}=t;if(o==="2.0"&&e==="getBearerToken"){const r=bt||(0,Re.rS)();navigator.serviceWorker.ready.then(a=>{a.active.postMessage({id:s,jsonrpc:"2.0",method:e,result:{token:r}})})}};navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",kt);const xt=(0,m.createContext)({});function Gt(t,{type:e,message:s}){switch(e){case"polite":return{...t,politeMessage1:t.alternatePolite?s:"",politeMessage2:t.alternatePolite?"":s,alternatePolite:!t.alternatePolite};case"assertive":return{...t,assertiveMessage1:t.alternatePolite?s:"",assertiveMessage2:t.alternatePolite?"":s,alternateAssertive:!t.alternateAssertive};case"clear":default:return{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}}}function Xe({ariaLive:t,message:e}){return(0,n.jsx)("div",{className:"visually-hidden-always",role:"log","aria-live":t,"aria-atomic":"true","aria-relevant":"additions text",children:e})}function ds({children:t}){const[{politeMessage1:e,politeMessage2:s,assertiveMessage1:o,assertiveMessage2:r},a]=(0,m.useReducer)(Gt,{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}),c=(0,m.useMemo)(()=>({announcePolite:d=>{a({type:"polite",message:d})},announceAssertive:d=>{a({type:"assertive",message:d})},clearAnnouncements:()=>{a({type:"clear"})}}),[a]);return(0,n.jsxs)(xt.Provider,{value:c,children:[(0,n.jsx)(Xe,{id:"polite-announcer1",ariaLive:"polite",message:e}),(0,n.jsx)(Xe,{id:"polite-announcer2",ariaLive:"polite",message:s}),(0,n.jsx)(Xe,{id:"assertive-announcer1",ariaLive:"assertive",message:o}),(0,n.jsx)(Xe,{id:"assertive-announcer2",ariaLive:"assertive",message:r}),t]})}function Je(){return(0,m.useContext)(xt)}function ut(t){const e=forwardRef((s,o)=>{const r=Je();return jsx(t,{...s,...r,ref:o})});return e.displayName=`withAriaLive(${t.displayName||t.name})`,e}var de=i(35965),it=i(86659),Et=i(42183),rt=i.n(Et),Kt=i(52107),Fe=i(96716),M=i.n(Fe),ze=i(28239),ht=i(61140),ye=i(83416);const Ss=`${(0,ye._$)("CDN_URI")}/assets/rise/assets/certificate-icon.svg`,fs=`${(0,ye._$)("CDN_URI")}/assets/rise/assets/error_x.svg`,Oe=`${(0,ye._$)("CDN_URI")}/assets/rise/assets/loading_spinner.svg`,Ds="downloading",Zs="error",Cs="ok",Gn="contained",os=({type:t})=>{const[e]=(0,m.useState)(()=>rt()("certdownload-")),[s,o]=(0,m.useState)(Cs),r=(0,Kt.A)(s),a=(0,m.useRef)(),c=(0,ze.useLabelsMap)(),d=`${e}-live`,l=M()("certificateDownload",{certificateDownloadContained:t===Gn}),u=(0,m.useCallback)(()=>{o(Ds)},[]);return(0,m.useEffect)(()=>(s===Ds&&r!==Ds&&(0,ht.gj)().then(()=>{o(Cs)}).catch(h=>{(0,it.FZ)(h)?o(Cs):o(Zs)}),()=>{(0,ht.G7)()}),[r,s]),(0,m.useEffect)(()=>{a.current&&(s===Zs&&r!==Zs||s===Cs&&(r===Zs||r===Ds))&&a.current.focus()},[r,s]),(0,n.jsxs)("div",{className:l,children:[(0,n.jsxs)("div",{"aria-live":"polite",id:d,role:"status",children:[s===Ds&&(0,n.jsxs)("span",{className:"certificateDownload__downloading",children:[(0,n.jsx)("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:Oe,width:"15"}),c?.certificateDownloadInProgress||"Downloading..."]}),s===Zs&&(0,n.jsxs)("span",{className:"certificateDownload__error",children:[(0,n.jsx)("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:fs,width:"15"}),(0,n.jsx)("span",{className:"visually-hidden",children:c?.a11yCertificateDownloadFailed||"Failed to download certificate"})]})]}),(s===Cs||s===Zs)&&(0,n.jsxs)("button",{"aria-controls":d,className:"certificateDownload__btn",onClick:u,ref:a,type:"button",children:[s===Cs&&t===Gn&&(0,n.jsx)("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:Ss,width:"15"}),s===Cs?c?.certificateDownload||"Download certificate":c?.certificateRetryDownload||"Retry download"]})]})},uo=()=>(0,n.jsx)(os,{type:Gn}),nr=(0,m.memo)(os);var _s=i(45274),$e=i(63545),Pt=i(82719),Ot=i(49501),xs=i(38286);const ho=()=>(0,Ot.Mz)(e=>e,(e,s)=>s,(e,s,o)=>(0,Pt.HH)(o),(e,s,o)=>(0,Pt.fF)(o),Pt.Dh);function Us(t){const{currentLocale:e}=(0,xs.nY)(),s=(0,m.useMemo)(ho,[]);return(0,X.d4)(o=>s(t,e,o))}const or=(0,Ot.Mz)(t=>t,(t,e)=>(0,Pt.fF)(e),(t,e)=>e?.[t]);function vt(){const{currentLocale:t}=(0,xs.nY)();return(0,X.d4)(e=>or(t,e))}const Os=(0,Ot.Mz)(t=>t.course?.title,Pt.HH,Pt.fF,(t,e,s)=>(0,Pt.xp)(t,e,s)??t);function Kn(){return(0,X.d4)(Os)}function Ut(t){return t?.course}function Mt(){return(0,X.d4)(t=>Ut(t))}function Lr(t){return Ut(t).navigationMode}function Po(t){return Ut(t).navigationStyle}function mo(t){return Ut(t).trackingQuizId}function br(t,e){const s=Ut(e);return(0,Pt.i7)(s.title,t,e)}function Mo(){const t=Mt();return Us(t.title)}function Va(t){return Ut(t)?.type}function yr(){return(0,X.d4)(t=>Va(t))}function Bt(t){return Ut(t)?.type===$e.y4}function $t(t){const e=Ut(t);return(0,_s.HX)(e)}function js(){return useSelector(t=>$t(t))}var po=i(34198),Se=i.n(po),rr=i(75800),Es=i.n(rr),Wa=i(90538),fo=i.n(Wa),cc=i(99390),Bl=i.n(cc),_l=i(86654),Qt=i.n(_l),Ul=i(83799),qe=i.n(Ul),Hl=i(78107),Ts=i.n(Hl),Fl=i(8466),As=i.n(Fl),Ks=i(1202),Zt=i.n(Ks),lc=i(34379),Yt=i.n(lc),dc=i(64104),Do=i.n(dc),uc=i(24024),us=i.n(uc),hc=i(16971),gs=i.n(hc),ar=i(7827),jt=i.n(ar),mc=i(74674),Ye=i.n(mc),pc=i(37953),Ls=i.n(pc),Ir=i(84929),Pe=i.n(Ir),Nr=i(17247),Ue=i.n(Nr),Ga=i(7699),ea=i.n(Ga),ta=i(29255),ir=i.n(ta),Ka=i(24262),fc=i.n(Ka);const sa=Pe()("lessons"),na=fc()(t=>!!t,["settings","passToContinue"]),$a=t=>Se()(gs(),e=>jt()([e,"passed"],t),Pe()("id")),Mn=({course:t,courseProgress:e})=>Se()(As(),Qt()($a(sa(e))),Qt()(na),sa)(t)||{},gc=({courseProgress:t,lesson:e,restrictingQuiz:s})=>{const o=Pe()("id",e),r=d=>jt()([d,"index"],sa(t)),a=r(o);return Se()(ir()(a),r,Pe()("id"))(s)?s:{}};var At=i(61556);const vc=Se()(gs(),Yt()),Qa=Se()(Qt()(At.GG),Pe()("lessonsOnly")),oa=({course:t,courseProgress:e})=>qe()(Cc(e))(t.lessonsOnly),Cc=t=>e=>gs()(jt()(["lessons",e.id,"isComplete"],t)),xc=({lesson:t,currentLesson:e})=>t&&Ue()("id",t.id,e),ra=({course:t,lesson:e})=>Ue()("id",e.id,As()(Pe()("lessonsOnly",t))),Ec=({course:t,lesson:e})=>Ue()("id",e.id,Do()(Pe()("lessonsOnly",t))),Za=Se()(gs(),Ue()("type","section")),Ya=({lesson:t,courseProgress:e})=>Ye()(!1,["lessons",t.id,"isComplete"],e),aa=({course:t,courseProgress:e,lesson:s,restrictingQuiz:o})=>{const r=gc({courseProgress:e,lesson:s,restrictingQuiz:o}),a=(0,At.bQ)(t),c=a||vc(r),d=oa({course:t,courseProgress:e}),l=Za(s)&&gs()(Ya({lesson:s,courseProgress:e}));return{isRestricted:c&&l&&gs()(xc({lesson:s,currentLesson:d})),restrictingQuiz:r,isRestrictedCourse:a,currentLesson:d}},go=({labels:t,restrictions:e})=>{const{lessonRestricted:s,quizRequirePassingScore:o}=t,{isRestrictedCourse:r,restrictingQuiz:a,currentLesson:c}=e,d=c&&Bl()("id",a,c);return!r||r&&d?a.title?o.replace("quiz",`"${a.title}"`):o:s},ia=Es()(t=>Ts()(ea()(Ls()(["id"],t||{})))),Xa=({course:t,lesson:e})=>Se()(Zt(),ia(e),Qa)(t),jr=({course:t,lesson:e})=>!Ec({course:t,lesson:e})&&t.lessonsOnly[Zt()(ia(e,t.lessonsOnly))],Tc=({course:t,lesson:e})=>!ra({course:t,lesson:e})&&t.lessonsOnly[dec(ia(e,t.lessonsOnly))],Sc=Se()(us(),Qa),Ja=t=>typeof t=="object"&&Object.keys(t).length>0,Ar=t=>t===void 0||t===!1,Lc=t=>Ar(t?.isComplete),zl=t=>t.find(([e,s])=>Lc(s)),Vl=t=>{const e=Object.entries(t),[s]=zl(e)||[];return s},bc=t=>Ja(t)?Vl(t):void 0,qa=(t,e,s)=>{if(!s)return{outOfAttempts:!1,quizPassed:!0};const o=jt()(["lessons",s],t),r=Ye()(-1,["settings","retryCount"],e),a=Ye()(0,["retryAttempts"],o),c=jt()(["passed"],o);return{outOfAttempts:jt()(["isComplete"],o)&&r>-1&&Number(a)===Number(r),quizPassed:c}};function cr(t){return t.courseProgress}function ei(t){return t.courseProgress?.currentLesson??""}function ca(t){return t.courseProgress?.percentComplete??0}const lr=(0,Ot.Mz)(mo,Ut,(t,{lessons:e})=>Array.isArray(e)?e.find(({id:s,type:o})=>o==="quiz"&&s===t):null),et=(0,Ot.Mz)(cr,lr,(t,e)=>e?qa(t,e,e.id):null);function ti(t){const e=cr(t);return(0,de.Wk)()?e.percentComplete===100:!!(0,de.As)()}function Rr(t){return t.courseProgress?.lessons}function la(t,e){return Rr(e)?.[t]}function Or(){return useSelector(cr)}function Wl(){return(0,X.d4)(ei)}function si(){return(0,X.d4)(ca)}function Gl(){return(0,X.d4)(lr)}function ni(){return(0,X.d4)(et)??{outOfAttempts:!1,quizPassed:!1}}function Pr(){return(0,X.d4)(ti)}function De(t){return(0,X.d4)(e=>la(t,e))}var Ve=i(67331),Tt=i.n(Ve),ks=i(34552),tt=i.n(ks),_t=i(95172),P=i(5181);const da=t=>t>9999?1:t,ua=({current:t,restart:e,restartValue:s})=>{const o=Number(s),r=da(Number.isInteger(o)&&o>0?o:1),a=e?r:t+1;return da(a)},Kl=(t,e)=>{if(e.family==="divider"&&e.variant==="numbered divider"){const s=e.settings??{},o=ua({current:t.currentNumber,restart:s.restartNumbering,restartValue:s.restartNumberingValue});return{map:{...t.map,[e.id]:o},currentNumber:o}}return t};function vo(){return(0,Ot.Mz)(t=>t,(t,e)=>Zl(e),(t,e)=>Pe()(t,e))}function Co(t){const e=(0,m.useMemo)(()=>vo(),[]);return(0,X.d4)(s=>e(t,s))}function ko(t){const e=Co(t);return Us(e?.title)}function yc(){const t=vo();return(0,Ot.Mz)(t,e=>(0,_t.Mz)(e))}function Ic(){return(0,Ot.Mz)(ei,be,(t,e)=>tt()(-1,t,e))}function Mr(){const t=Nc();return(0,Ot.Mz)(e=>e,(e,s)=>t(s),(e,s)=>Lr(s),(e,s)=>p0(s),(e,s)=>f0(s),(e,s)=>Rr(s),(e,s,o,r,a,c)=>{const d=c[e],l=c[s];if(e!==s&&!d?.isComplete&&d?.index>l?.index){const u=c[r?.id]?.index??1/0,h=o==="restricted"?l?.index??1/0:c[a?.id]?.index??1/0;if(d?.index>Math.min(u,h))return h<u?o==="restricted"?{type:_t.XQ.ORDER}:{type:_t.XQ.KNOWLEDGE_CHECK}:{type:_t.XQ.QUIZ,data:r.title}}return null})}function Dr(t){const e=(0,m.useMemo)(()=>Mr(),[]);return(0,X.d4)(s=>e(t,s))}function Nc(){return(0,Ot.Mz)(Rr,t=>bc(t))}function u0(){const t=Nc();return(0,Ot.Mz)(e=>e,(e,s)=>t(s),(e,s)=>Zl(s),(e,s)=>(0,Pt.HH)(s),(e,s)=>(0,Pt.fF)(s),(e,s,o,r,a)=>(0,Pt.UR)(o[s],e,r,a))}function h0(){const t=vo();return(0,Ot.Mz)(t,la,(e,s)=>{const o=s?.percentComplete??0,r=s?.isComplete??!1,a=s?.passed??!1;return o===100&&(!r||(0,_t.gL)(e)&&!a)})}function $l(t){const e=(0,m.useMemo)(()=>h0(),[]);return(0,X.d4)(s=>e(t,s))}function m0(){const t=vo();return(0,Ot.Mz)(t,la,(e,s)=>{const o=s?.percentComplete??0,r=s?.isComplete??!1,a=s?.passed??!1;return o===100&&r&&(!(0,_t.gL)(e)||a)})}function Ql(t){const e=(0,m.useMemo)(()=>m0(),[]);return(0,X.d4)(s=>e(t,s))}const jc=(0,Ot.Mz)(Ut,t=>tt()([],"lessons",t)),Zl=(0,Ot.Mz)(jc,t=>t.reduce((e,s)=>(s?.id&&(e[s.id]=s),e),{})),Y=(0,Ot.Mz)(Ut,t=>tt()([],"lessonsOnly",t)),be=(0,Ot.Mz)(Y,t=>t.reduce((e,s,o)=>(e[s.id]=o+1,e),{})),Ct=(0,Ot.Mz)(Y,t=>Tt()("id",t)),Xt=(0,Ot.Mz)(Y,t=>As()(t)),Ys=({type:t,settings:e})=>t!=="quiz"||e.asLesson||e.asLesson===void 0,un=(0,Ot.Mz)(Y,Qt()(Ys)),wo=(0,Ot.Mz)(un,us()),Ac=(0,Ot.Mz)(jc,t=>t.reduce((e,s)=>{const o=e[e.length-1];return(0,_t.Mz)(s)||o==null?e.push([s.id]):o.push(s.id),e},[])),p0=(0,Ot.Mz)(Y,Rr,(t,e)=>t.find(s=>(0,_t.gL)(s)&&(0,_t.dg)(s)&&!e[s.id]?.isComplete)),f0=(0,Ot.Mz)(Y,Rr,(t,e)=>t.find(s=>!(0,_t.gL)(s)&&(0,_t.Sg)(s)&&!e[s.id]?.isComplete));function oi(t){const e=(0,m.useMemo)(yc,[]);return(0,X.d4)(s=>e(t[0],s))}function Rc(t){const e=(0,m.useMemo)(()=>vo(),[]),s=(0,m.useMemo)(()=>Mr(),[]);return(0,X.d4)(o=>{const r=Ut(o),a=e(t,o),c=la(t,o),l=s(t,o)?.type!=null;return r?.navigationMode!==P.b$.RESTRICTED&&r?.markComplete&&!l&&a?.type!==_t.d9.QUIZ&&!(ye.BI&&c?.percentComplete===100)})}const g0=(t,e)=>e.findIndex(s=>s.id===t);function rp(){return(0,Ot.Mz)(t=>t,(t,e)=>Y(e),(t,e)=>{if(t==="progress-summary")return Do()(e);const s=g0(t,e),o=fo()(s);return e[o]})}function ap(){return(0,Ot.Mz)(t=>t,(t,e)=>Y(e),(t,e)=>{const s=g0(t,e),o=Zt()(s);return e[o]})}function ip(t){return(0,Ot.Mz)(t,(e,s)=>un(s),(e,s)=>g0(e?.id,s)+1)}function RC(){return ip(ap())}function OC(){return ip(rp())}function cp(){return(0,X.d4)(t=>Ac(t))}function PC(){const t=Nc();return(0,Ot.Mz)(ti,t,mo,(e,s,o)=>{const r=!!s,a=o!=null;return e||!r&&!a})}function MC(){const t=(0,m.useMemo)(()=>PC(),[]);return(0,X.d4)(e=>t(e))}const DC=t=>t?.items?.reduce(Kl,{map:{},currentNumber:0})?.map||{},kC=t=>{const e=(0,m.useMemo)(()=>vo(),[]),s=(0,X.d4)(o=>e(t,o));return(0,m.useMemo)(()=>DC(s),[s])},wC=({blockId:t,lessonId:e})=>kC(e)?.[t];function is(t){return(0,n.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...t})}const Kse=t=>{const{children:e,className:s,color:o,size:r}=t;return jsx("span",{className:`${s||""} ${r}`,style:o?{color:o}:{},children:e})},$se=t=>jsx(Icon,{...t,viewBox:"0 0 8 8",children:jsx("polygon",{points:"8,3 5,3 5,0 3,0 3,3 0,3 0,5 3,5 3,8 5,8 5,5 8,5 "})}),Qse=null,BC=t=>(0,n.jsx)(is,{viewBox:"0 0 10 10",...t,children:(0,n.jsxs)("g",{fillRule:"evenodd",children:[(0,n.jsx)("path",{d:"M0 4.107h10v2H0z"}),(0,n.jsx)("path",{d:"M4 0h2v10H4z"})]})}),Yse=({width:t="18",height:e="18",className:s})=>jsx("svg",{"aria-hidden":"true",viewBox:"0 0 18 18",width:t,height:e,className:classNames("i i-alert",s),focusable:"false",children:jsx("g",{stroke:"#DE1D1D",strokeWidth:"1.5",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M9 1a8 8 0 1 1 0 16A8 8 0 0 1 9 1zM9 5.364V9.53M9 11.91v.726"})})}),Xse=null;function _C(t){return(0,n.jsxs)(is,{viewBox:"0 0 16 12",...t,children:[(0,n.jsx)("path",{d:"M8.4148147,12 L1.05185184,12 C0.471229623,12 0,11.552 0,11 C0,10.448 0.471229623,10 1.05185184,10 L8.4148147,10 C8.99543692,10 9.46666654,10.448 9.46666654,11 C9.46666654,11.552 8.99543692,12 8.4148147,12"}),(0,n.jsx)("path",{d:"M12.2500002,2 L0.816666683,2 C0.365866674,2 0,1.552 0,1 C0,0.448 0.365866674,0 0.816666683,0 L12.2500002,0 C12.7008002,0 13.0666669,0.448 13.0666669,1 C13.0666669,1.552 12.7008002,2 12.2500002,2"}),(0,n.jsx)("path",{d:"M15,7 L1,7 C0.448,7 0,6.552 0,6 C0,5.448 0.448,5 1,5 L15,5 C15.552,5 16,5.448 16,6 C16,6.552 15.552,7 15,7"})]})}const Jse=({width:t="20",height:e="20"})=>jsxs("svg",{"aria-hidden":"true",width:t,height:e,viewBox:"0 0 20 20",fill:"none",focusable:"false",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 8.33332C1.6665 7.87309 2.0396 7.49999 2.49984 7.49999H14.1665C14.6267 7.49999 14.9998 7.87309 14.9998 8.33332C14.9998 8.79356 14.6267 9.16666 14.1665 9.16666H2.49984C2.0396 9.16666 1.6665 8.79356 1.6665 8.33332Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 4.99999C1.6665 4.53975 2.0396 4.16666 2.49984 4.16666H17.4998C17.9601 4.16666 18.3332 4.53975 18.3332 4.99999C18.3332 5.46023 17.9601 5.83332 17.4998 5.83332H2.49984C2.0396 5.83332 1.6665 5.46023 1.6665 4.99999Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 11.6667C1.6665 11.2064 2.0396 10.8333 2.49984 10.8333H17.4998C17.9601 10.8333 18.3332 11.2064 18.3332 11.6667C18.3332 12.1269 17.9601 12.5 17.4998 12.5H2.49984C2.0396 12.5 1.6665 12.1269 1.6665 11.6667Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 15C1.6665 14.5398 2.0396 14.1667 2.49984 14.1667H14.1665C14.6267 14.1667 14.9998 14.5398 14.9998 15C14.9998 15.4602 14.6267 15.8333 14.1665 15.8333H2.49984C2.0396 15.8333 1.6665 15.4602 1.6665 15Z",fill:"currentColor"})]}),qse=null,ene=({width:t="15",height:e="15",className:s})=>jsx("svg",{"aria-hidden":"true",viewBox:"0 0 15 15",width:t,height:e,className:classNames("i i-all-blocks",s),focusable:"false",children:jsx("path",{fillRule:"evenodd",d:"M.25.5h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-12 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-12 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-12 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2z"})}),tne=null,sne=t=>jsx(Icon,{...t,viewBox:"0 0 15 15",children:jsx("path",{d:"M5.444.215H1.07c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.09c0-.525-.35-.875-.875-.875M13.32.215H8.943c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.09c0-.525-.35-.875-.875-.875M5.444 8.09H1.07c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V8.965c0-.525-.35-.875-.875-.875M13.32 8.09H8.943c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V8.965c0-.525-.35-.875-.875-.875"})}),nne=null,one=({width:t="24",height:e="16",leftMovement:s="0",className:o})=>jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 16",width:t,height:e,style:{marginLeft:s},className:classNames("i i-alt",o),focusable:"false",children:[jsx("path",{d:"M10.066 11.5H8.887a.545.545 0 0 1-.326-.092.476.476 0 0 1-.178-.236l-.387-1.144H5.503l-.387 1.143a.507.507 0 0 1-.175.228.505.505 0 0 1-.32.101H3.433l2.538-6.556h1.557l2.538 6.556zM5.854 8.993h1.791l-.603-1.795-.137-.403a10.24 10.24 0 0 1-.155-.502 8.943 8.943 0 0 1-.293.914l-.603 1.786zm6.962 1.292h2.43V11.5h-3.951V4.944h1.52v5.341zM20.7 4.944v1.205h-1.845V11.5h-1.52V6.15H15.49V4.942h5.211z"}),jsx("path",{fillRule:"nonzero",d:"M1.5 1.994v12.012a.5.5 0 0 0 .505.494h19.99a.5.5 0 0 0 .505-.494V1.994a.5.5 0 0 0-.505-.494H2.005a.5.5 0 0 0-.505.494zm-1.5 0A2 2 0 0 1 2.005 0h19.99A2 2 0 0 1 24 1.994v12.012A2 2 0 0 1 21.995 16H2.005A2 2 0 0 1 0 14.006V1.994z"})]}),rne=null,UC=({className:t,width:e="20",height:s="20",focusable:o="false"})=>(0,n.jsxs)("svg",{className:t,width:e,height:s,viewBox:"0 0 20 20",fill:"none",focusable:o,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0002 3.33334C10.4604 3.33334 10.8335 3.70644 10.8335 4.16668V15.8333C10.8335 16.2936 10.4604 16.6667 10.0002 16.6667C9.53992 16.6667 9.16683 16.2936 9.16683 15.8333V4.16668C9.16683 3.70644 9.53992 3.33334 10.0002 3.33334Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.57757 9.41075C3.90301 9.08532 4.43065 9.08532 4.75609 9.41075L10.0002 14.6548L15.2442 9.41075C15.5697 9.08532 16.0973 9.08532 16.4228 9.41075C16.7482 9.73619 16.7482 10.2638 16.4228 10.5893L10.5894 16.4226C10.264 16.748 9.73634 16.748 9.41091 16.4226L3.57757 10.5893C3.25214 10.2638 3.25214 9.73619 3.57757 9.41075Z",fill:"currentColor"})]}),ine=({title:t="Export",desc:e="An arrow bending itself to the right",width:s="16",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 13",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M15.8,6L8.9,0.2C8.4-0.2,7.8,0.1,7.8,0.6v2.7C2.6,3.6,0,6.2,0,12.4c0,0.6,0.8,0.9,1.2,0.4 c1.7-2.2,3.2-3,6.6-3.1v2.7c0,0.5,0.7,0.8,1.1,0.5L15.8,7C16.1,6.7,16.1,6.3,15.8,6z M1.4,10.6c0.4-4.4,2.7-6,7-6 c0.4,0,0.6-0.3,0.6-0.6V2l5.3,4.5L9.1,11V9c0-0.3-0.3-0.6-0.6-0.6C5,8.4,3.1,9,1.4,10.6z"})]}),cne=null;function HC(t){return(0,n.jsx)(is,{viewBox:"0 0 384 512",...t,children:(0,n.jsx)("path",{fill:"currentColor",d:"M377.4 296.6l-168 176C204.8 477.3 198.6 480 192 480s-12.84-2.688-17.38-7.438l-168-176C-2.5 286.1-2.156 271.8 7.438 262.6c9.5-9.156 24.75-8.812 33.94 .8125L168 396.1V56.02c0-13.25 10.75-24.01 23.1-24.01S216 42.77 216 56.02v340.1l126.6-132.7c9.156-9.625 24.41-9.969 33.94-.8125C386.2 271.8 386.5 286.1 377.4 296.6z"})})}function FC(t){return(0,n.jsxs)(is,{viewBox:"0 0 22 22",...t,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0002 0.332031C11.7365 0.332031 12.3335 0.928985 12.3335 1.66536L12.3335 20.332C12.3335 21.0684 11.7365 21.6654 11.0002 21.6654C10.2638 21.6654 9.66683 21.0684 9.66683 20.332L9.66683 1.66536C9.66683 0.928985 10.2638 0.332031 11.0002 0.332031Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.72402 10.0559C1.24472 9.53519 2.08894 9.53519 2.60964 10.0559L11.0002 18.4464L19.3907 10.0559C19.9114 9.53519 20.7556 9.53519 21.2763 10.0559C21.797 10.5766 21.797 11.4208 21.2763 11.9415L11.943 21.2748C11.4223 21.7955 10.5781 21.7955 10.0574 21.2748L0.72402 11.9415C0.203321 11.4208 0.203321 10.5766 0.72402 10.0559Z",fill:"currentColor"})]})}const zC=({title:t="Export",desc:e="An arrow pointing right",width:s="16",height:o="8",className:r,focusable:a="false",decorative:c})=>(0,n.jsxs)("svg",{viewBox:"0 0 16 8",width:s,height:o,className:M()("i",r),focusable:a,"aria-hidden":c?"true":"false",children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{fill:"#444",fillRule:"evenodd",d:"M1 5h11.6l-1.3 1.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4l-3-3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4L12.6 3H1c-.6 0-1 .4-1 1s.4 1 1 1"})]});function VC(t){return(0,n.jsx)(is,{viewBox:"0 0 384 512",...t,children:(0,n.jsx)("path",{fill:"currentColor",d:"M6.625 215.5l168-176C179.2 34.7 185.4 32.02 192 32.02s12.84 2.688 17.38 7.438l168 176c9.125 9.594 8.781 24.78-.8125 33.94c-9.5 9.156-24.75 8.812-33.94-.8125L216 115.9V456c0 13.25-10.75 23.1-23.1 23.1S168 469.3 168 456V115.9l-126.6 132.7C32.22 258.2 16.97 258.5 7.438 249.4C-2.156 240.2-2.5 225 6.625 215.5z"})})}function WC(t){return(0,n.jsxs)(is,{viewBox:"0 0 22 22",...t,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0007 0.332031C11.737 0.332031 12.334 0.928985 12.334 1.66536L12.334 20.332C12.334 21.0684 11.737 21.6654 11.0007 21.6654C10.2643 21.6654 9.66732 21.0684 9.66732 20.332L9.66732 1.66536C9.66732 0.928985 10.2643 0.332031 11.0007 0.332031Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0578 0.722556C10.5785 0.201856 11.4228 0.201856 11.9435 0.722556L21.2768 10.0559C21.7975 10.5766 21.7975 11.4208 21.2768 11.9415C20.7561 12.4622 19.9119 12.4622 19.3912 11.9415L11.0007 3.55098L2.61013 11.9415C2.08943 12.4622 1.24521 12.4622 0.724509 11.9415C0.20381 11.4208 0.20381 10.5766 0.724509 10.0559L10.0578 0.722556Z",fill:"currentColor"})]})}const GC=t=>(0,n.jsx)(is,{viewBox:"0 0 10 12",...t,children:(0,n.jsx)("path",{d:"M7.09677 6.92617C8.14516 6.28188 8.79032 5.07383 8.79032 3.78523C8.79032 1.69128 7.09677 0 5 0C2.90323 0 1.20968 1.69128 1.20968 3.78523C1.20968 5.07383 1.85484 6.20134 2.90323 6.92617C1.20968 7.73154 0 9.42282 0 11.4362C0 11.7584 0.241936 12 0.564516 12C0.887097 12 1.12903 11.7584 1.12903 11.4362C1.12903 9.34228 2.90323 7.57047 5 7.57047C7.09677 7.57047 8.87097 9.34228 8.87097 11.4362C8.87097 11.7584 9.1129 12 9.43548 12C9.75806 12 10 11.7584 10 11.4362C9.91935 9.42282 8.79032 7.73154 7.09677 6.92617ZM5 1.12752C6.45161 1.12752 7.66129 2.33557 7.66129 3.78523C7.66129 5.2349 6.45161 6.44295 5 6.44295C3.54839 6.44295 2.33871 5.2349 2.33871 3.78523C2.33871 2.33557 3.46774 1.12752 5 1.12752Z"})}),une=({title:t="Background Image",desc:e="Background Image",width:s="18",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 18 18",width:s,height:o,className:classNames("i i-background-image",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{children:[" ",jsx("path",{d:"M7.5,7.5c1.2,0,2.2-1,2.2-2.2c0-1.2-1-2.2-2.2-2.2s-2.2,1-2.2,2.2C5.4,6.6,6.4,7.5,7.5,7.5z M7.5,4.6 c0.4,0,0.8,0.3,0.8,0.8c0,0.4-0.3,0.8-0.8,0.8S6.8,5.8,6.8,5.4C6.8,4.9,7.1,4.6,7.5,4.6z"})," ",jsx("path",{d:"M17,0.3H1C0.6,0.3,0.3,0.6,0.3,1v16c0,0.4,0.3,0.7,0.7,0.7h16c0.4,0,0.7-0.3,0.7-0.7V1 C17.7,0.6,17.4,0.3,17,0.3z M16.3,16.3H1.7V1.7h14.6V16.3z"})," ",jsx("path",{d:"M3.2,14.8h11.6c0.3,0,0.5-0.1,0.6-0.4c0.1-0.2,0.1-0.5,0-0.7l-3.6-5.8c-0.1-0.2-0.3-0.3-0.6-0.3 c-0.2,0-0.4,0.1-0.6,0.3l-2.4,3L6.6,9.2C6.4,9.1,6.2,9,6,9c-0.2,0-0.4,0.1-0.5,0.3l-2.9,4.4c-0.1,0.2-0.2,0.5,0,0.7 C2.7,14.6,2.9,14.8,3.2,14.8z M6.2,10.8l1.6,1.6c0.1,0.1,0.3,0.2,0.5,0.2c0.2,0,0.4-0.1,0.5-0.3l2.3-2.9l2.4,3.9H4.5L6.2,10.8z"})," "]})]}),hne=null,mne=({title:t="Bank",desc:e="A building with four columns",width:s="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 16",width:s,height:o,className:classNames("i i-bank",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.625 7.98905V13.2473H5.375V7.98905H7.125V13.2473H8.875V7.98905H10.625V13.2473H12.375V7.98905H14.125V13.2473H15V15H1V13.2473H1.875V7.98905H3.625ZM7.65 1.06573C7.9125 0.978091 8.0875 0.978091 8.35 1.06573L14.475 3.69484C14.825 3.78247 15 4.13302 15 4.48357V6.23631C15 6.76213 14.65 7.11268 14.125 7.11268H1.875C1.35 7.11268 1 6.76213 1 6.23631V4.48357C1 4.13302 1.175 3.78247 1.525 3.69484L7.65 1.06573ZM8 3.6072C7.475 3.6072 7.125 3.95775 7.125 4.48357C7.125 5.00939 7.475 5.35994 8 5.35994C8.525 5.35994 8.875 5.00939 8.875 4.48357C8.875 3.95775 8.525 3.6072 8 3.6072Z"})]}),pne=null;function fne(t){return jsxs(Icon,{viewBox:"0 0 14 14",fill:"none",...t,children:[jsx("rect",{x:"0.75",y:"0.75",width:"8.3",height:"8.3",stroke:"currentColor",strokeWidth:"1.5"}),jsx("rect",{x:"4.9502",y:"4.9502",width:"8.3",height:"8.3",rx:"1.35",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})]})}function gne(t){return jsxs(Icon,{viewBox:"0 0 14 15",...t,children:[jsx("path",{d:"M1 13.25C0.585786 13.25 0.25 13.5858 0.25 14C0.25 14.4142 0.585786 14.75 1 14.75V13.25ZM13.1333 14.75C13.5475 14.75 13.8833 14.4142 13.8833 14C13.8833 13.5858 13.5475 13.25 13.1333 13.25V14.75ZM1 14.75H13.1333V13.25H1V14.75Z"}),jsx("path",{d:"M1 0.25C0.585786 0.25 0.25 0.585786 0.25 1C0.25 1.41421 0.585786 1.75 1 1.75V0.25ZM13.1333 1.75C13.5475 1.75 13.8833 1.41421 13.8833 1C13.8833 0.585786 13.5475 0.25 13.1333 0.25V1.75ZM1 1.75H13.1333V0.25H1V1.75Z"}),jsx("path",{d:"M6.31641 11.2266C6.31641 11.6408 6.65219 11.9766 7.06641 11.9766C7.48062 11.9766 7.81641 11.6408 7.81641 11.2266L6.31641 11.2266ZM7.81641 5.3334C7.81641 4.91918 7.48062 4.5834 7.06641 4.5834C6.65219 4.5834 6.31641 4.91918 6.31641 5.3334L7.81641 5.3334ZM7.81641 11.2266L7.81641 5.3334L6.31641 5.3334L6.31641 11.2266L7.81641 11.2266Z"}),jsx("path",{d:"M5.09404 4.86491C4.83528 5.18836 4.88772 5.66033 5.21117 5.91908C5.53461 6.17784 6.00658 6.1254 6.26534 5.80195L5.09404 4.86491ZM7.06635 3.6001L7.65201 3.13158C7.50968 2.95366 7.29419 2.8501 7.06635 2.8501C6.83852 2.8501 6.62303 2.95366 6.4807 3.13158L7.06635 3.6001ZM7.86737 5.80195C8.12613 6.1254 8.5981 6.17784 8.92154 5.91908C9.24499 5.66033 9.29743 5.18836 9.03867 4.86491L7.86737 5.80195ZM6.26534 5.80195L7.65201 4.06862L6.4807 3.13158L5.09404 4.86491L6.26534 5.80195ZM6.4807 4.06862L7.86737 5.80195L9.03867 4.86491L7.65201 3.13158L6.4807 4.06862Z"}),jsx("path",{d:"M9.03878 10.6551C9.29753 10.3317 9.24509 9.85969 8.92165 9.60094C8.5982 9.34218 8.12623 9.39462 7.86747 9.71807L9.03878 10.6551ZM7.06646 11.9199L6.48081 12.3884C6.62314 12.5664 6.83862 12.6699 7.06646 12.6699C7.2943 12.6699 7.50978 12.5664 7.65211 12.3884L7.06646 11.9199ZM6.26544 9.71807C6.00669 9.39462 5.53472 9.34218 5.21127 9.60094C4.88782 9.85969 4.83538 10.3317 5.09414 10.6551L6.26544 9.71807ZM7.86747 9.71807L6.48081 11.4514L7.65211 12.3884L9.03878 10.6551L7.86747 9.71807ZM7.65211 11.4514L6.26544 9.71807L5.09414 10.6551L6.48081 12.3884L7.65211 11.4514Z"})]})}const vne=({title:t="All Authors",desc:e="A circle with the outline of the head and shoulders of two people inside",width:s="30",height:o="30",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 30 30",width:s,height:o,className:classNames("i i-blockTemplateAllAuthors",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("circle",{fill:"#E9E9E9",cx:"14.963",cy:"14.963",r:"14.963"}),jsx("path",{fill:"#8894A3",d:"M17.482 17.661a3.75 3.75 0 1 1 4.037 0 4.25 4.25 0 0 1 2.231 3.741.75.75 0 1 1-1.5 0 2.75 2.75 0 1 0-5.5 0 .75.75 0 1 1-1.5 0 4.25 4.25 0 0 1 2.232-3.741zm-8.915-3.947a3.75 3.75 0 1 1 3.866 0A4.25 4.25 0 0 1 14.75 17.5a.75.75 0 1 1-1.5 0 2.75 2.75 0 0 0-5.5 0 .75.75 0 1 1-1.5 0 4.25 4.25 0 0 1 2.317-3.786zm1.933-.964a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5zm9 4a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5z"})]}),Cne=null,xne=({title:t="Check Mark",desc:e="A circle with a check mark inside",width:s="112",height:o="112",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 112 112",width:s,height:o,className:classNames("i i-blockTemplateCheckMark",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("defs",{children:jsxs("filter",{id:"a",width:"186.1%",height:"186.1%",x:"-43.1%",y:"-40.3%",filterUnits:"objectBoundingBox",children:[jsx("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),jsx("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"10"}),jsx("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),jsxs("feMerge",{children:[jsx("feMergeNode",{in:"shadowMatrixOuter1"}),jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),jsxs("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(20 18)",children:[jsx("path",{className:"outer",fillRule:"nonzero",d:"M36 65.096c16.07 0 29.096-13.027 29.096-29.096C65.096 19.93 52.069 6.904 36 6.904 19.93 6.904 6.904 19.931 6.904 36c0 16.07 13.027 29.096 29.096 29.096zM36 72C16.118 72 0 55.882 0 36S16.118 0 36 0s36 16.118 36 36-16.118 36-36 36z"}),jsx("circle",{className:"inner",cx:"36",cy:"36",r:"30"}),jsx("path",{className:"check",fillRule:"nonzero",d:"M30.054 35.993a1.791 1.791 0 0 0-2.53 0 1.783 1.783 0 0 0 0 2.524l5.972 5.96a1.791 1.791 0 0 0 2.53 0l10.45-10.43a1.783 1.783 0 0 0 0-2.524 1.791 1.791 0 0 0-2.53 0l-9.185 9.167-4.707-4.697z"})]})]}),Ene=null,Tne=({title:t="Folder Outline",desc:e="Outline of a folder",width:s="42",height:o="42",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 42 42",width:s,height:o,className:classNames("i i-blockTemplateFolder",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fill:"#ADAEAF",fillRule:"nonzero",stroke:"#ADAEAF",strokeWidth:".3",children:[jsx("path",{d:"M34.043 6.971a.87.87 0 0 0-.87-.87h-17.53l.7.354-3.756-5.101a.87.87 0 0 0-.7-.354H1.87a.87.87 0 0 0-.87.87v34.434C1 38.894 3.067 41 5.626 41a.87.87 0 1 0 0-1.74c-1.59 0-2.887-1.32-2.887-2.956V1.87l-.87.87h10.018l-.7-.355 3.756 5.102a.87.87 0 0 0 .7.354h17.53l-.869-.87v7.652a.87.87 0 1 0 1.74 0V6.971z"}),jsx("path",{d:"M9.116 36.348a2.906 2.906 0 0 1-2.899 2.913V41h30.145A4.645 4.645 0 0 0 41 36.348V14.913a.87.87 0 0 0-.87-.87H9.986a.87.87 0 0 0-.87.87v21.435zm.87-20.565H40.13l-.87-.87v21.435a2.906 2.906 0 0 1-2.898 2.913H6.217c-1.159 0-1.159 1.739 0 1.739a4.645 4.645 0 0 0 4.638-4.652V14.913l-.87.87z"})]})]}),Sne=null,KC=({width:t="17",height:e="15",title:s="Book",desc:o="Book",focusable:r="false",className:a})=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:"0 0 17 15",focusable:r,className:a,children:[(0,n.jsx)("title",{children:s}),(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{fill:"#FFF",fillRule:"nonzero",d:"M8.407 14.529a.68.68 0 0 1-.374 0L.506 12.553A.679.679 0 0 1 0 11.897V.679C0 .234.42-.09.851.023L8.22 1.957 15.589.023a.679.679 0 0 1 .851.656v11.218a.679.679 0 0 1-.506.656L8.407 14.53zM7.541 3.182L1.357 1.56v9.814l6.184 1.623V3.182zm1.358 0v9.814l6.184-1.623V1.56L8.899 3.182z"})]}),bne=({title:t="Building",desc:e="Building with windows",width:s="18",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{width:s,height:o,viewBox:"0 0 18 18",className:classNames("icon",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M10.6666 5.66797H11.5C11.721 5.66797 11.9329 5.58017 12.0892 5.42389C12.2455 5.26761 12.3333 5.05565 12.3333 4.83464C12.3333 4.61362 12.2455 4.40166 12.0892 4.24538C11.9329 4.0891 11.721 4.0013 11.5 4.0013H10.6666C10.4456 4.0013 10.2337 4.0891 10.0774 4.24538C9.92109 4.40166 9.83329 4.61362 9.83329 4.83464C9.83329 5.05565 9.92109 5.26761 10.0774 5.42389C10.2337 5.58017 10.4456 5.66797 10.6666 5.66797ZM10.6666 9.0013H11.5C11.721 9.0013 11.9329 8.9135 12.0892 8.75723C12.2455 8.60094 12.3333 8.38898 12.3333 8.16797C12.3333 7.94696 12.2455 7.73499 12.0892 7.57871C11.9329 7.42243 11.721 7.33464 11.5 7.33464H10.6666C10.4456 7.33464 10.2337 7.42243 10.0774 7.57871C9.92109 7.73499 9.83329 7.94696 9.83329 8.16797C9.83329 8.38898 9.92109 8.60094 10.0774 8.75723C10.2337 8.9135 10.4456 9.0013 10.6666 9.0013ZM6.49996 5.66797H7.33329C7.55431 5.66797 7.76627 5.58017 7.92255 5.42389C8.07883 5.26761 8.16663 5.05565 8.16663 4.83464C8.16663 4.61362 8.07883 4.40166 7.92255 4.24538C7.76627 4.0891 7.55431 4.0013 7.33329 4.0013H6.49996C6.27895 4.0013 6.06698 4.0891 5.9107 4.24538C5.75442 4.40166 5.66663 4.61362 5.66663 4.83464C5.66663 5.05565 5.75442 5.26761 5.9107 5.42389C6.06698 5.58017 6.27895 5.66797 6.49996 5.66797ZM6.49996 9.0013H7.33329C7.55431 9.0013 7.76627 8.9135 7.92255 8.75723C8.07883 8.60094 8.16663 8.38898 8.16663 8.16797C8.16663 7.94696 8.07883 7.73499 7.92255 7.57871C7.76627 7.42243 7.55431 7.33464 7.33329 7.33464H6.49996C6.27895 7.33464 6.06698 7.42243 5.9107 7.57871C5.75442 7.73499 5.66663 7.94696 5.66663 8.16797C5.66663 8.38898 5.75442 8.60094 5.9107 8.75723C6.06698 8.9135 6.27895 9.0013 6.49996 9.0013ZM16.5 15.668H15.6666V1.5013C15.6666 1.28029 15.5788 1.06833 15.4225 0.912046C15.2663 0.755766 15.0543 0.667969 14.8333 0.667969H3.16663C2.94561 0.667969 2.73365 0.755766 2.57737 0.912046C2.42109 1.06833 2.33329 1.28029 2.33329 1.5013V15.668H1.49996C1.27895 15.668 1.06698 15.7558 0.910704 15.912C0.754423 16.0683 0.666626 16.2803 0.666626 16.5013C0.666626 16.7223 0.754423 16.9343 0.910704 17.0906C1.06698 17.2468 1.27895 17.3346 1.49996 17.3346H16.5C16.721 17.3346 16.9329 17.2468 17.0892 17.0906C17.2455 16.9343 17.3333 16.7223 17.3333 16.5013C17.3333 16.2803 17.2455 16.0683 17.0892 15.912C16.9329 15.7558 16.721 15.668 16.5 15.668ZM9.83329 15.668H8.16663V12.3346H9.83329V15.668ZM14 15.668H11.5V11.5013C11.5 11.2803 11.4122 11.0683 11.2559 10.912C11.0996 10.7558 10.8876 10.668 10.6666 10.668H7.33329C7.11228 10.668 6.90032 10.7558 6.74404 10.912C6.58776 11.0683 6.49996 11.2803 6.49996 11.5013V15.668H3.99996V2.33464H14V15.668Z"})]}),yne=null,Ine=({title:t="Captions",desc:e="Two capital letter C inside a square",width:s="24",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 24 16",width:s,height:o,className:classNames("i i-captions",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fill:"none",fillRule:"evenodd",transform:"translate(-.355)",children:[jsx("rect",{width:"18.25",height:"13.25",x:"1.447",y:"1.402",stroke:"#000",strokeWidth:"1.75",rx:"1"}),jsxs("text",{fill:"#000",fontFamily:"Lato-Black, Lato",fontSize:"9",fontWeight:"700",letterSpacing:".75",children:[jsx("tspan",{x:"4.222",y:"11.5",children:"C"})," ",jsx("tspan",{x:"10.885",y:"11.5",children:"C"})]})]})]}),Nne=null,jne=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="15",role:a="img",title:c,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 0h16v2H0V0zm0 13h16v2H0v-2zm4-9h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z"})]}),Ane=null,Rne=({title:t="Character",desc:e="Character",width:s="13",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 13 16",width:s,height:o,className:classNames("i i-character",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M9.2,8.8c1.3-0.8,2.1-2.3,2.1-3.9c0-2.6-2.1-4.7-4.7-4.7C4,0.2,1.9,2.3,1.9,4.9c0,1.6,0.8,3,2.1,3.9 c-2.1,1-3.6,3.1-3.6,5.6c0,0.4,0.3,0.7,0.7,0.7s0.7-0.3,0.7-0.7c0-2.6,2.2-4.8,4.8-4.8s4.8,2.2,4.8,4.8c0,0.4,0.3,0.7,0.7,0.7 s0.7-0.3,0.7-0.7C12.7,11.9,11.3,9.8,9.2,8.8z M6.6,1.6c1.8,0,3.3,1.5,3.3,3.3S8.4,8.2,6.6,8.2S3.3,6.7,3.3,4.9S4.7,1.6,6.6,1.6z"})]}),One=null;function lp(t){return(0,n.jsx)(is,{viewBox:"0 0 11 8",...t,children:(0,n.jsx)("path",{d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"})})}const Pne=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="21",role:a="img",title:c,width:d="21"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:cx("i i-checkMarkFilled",s),focusable:"false",height:r,role:a,viewBox:"0 0 21 21",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{d:"M10.074 20.959c-5.523 0-10-4.477-10-10s4.477-10 10-10 10 4.477 10 10-4.477 10-10 10zM7.077 10.523a.65.65 0 1 0-.919.919l2.546 2.545a.65.65 0 0 0 .919 0l4.454-4.454a.65.65 0 1 0-.919-.92L9.163 12.61l-2.086-2.086z"})]}),Mne=null;function Dne(t){return jsx(Icon,{viewBox:"0 0 7 5",...t,children:jsx("path",{d:"M3.104 3.896a.5.5 0 0 0 .707 0l2.543-2.542a.5.5 0 0 0-.708-.708L3.473 2.851 1.353.73a.5.5 0 1 0-.707.707l2.458 2.458Z"})})}const kne=({width:t="16",height:e="16",className:s,focusable:o="false"})=>jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",width:t,height:e,className:classNames("i i-chevronLeft",s),focusable:o,children:jsx("polygon",{points:"11.1,15.7 3.4,8 11.1,0.3 12.6,1.7 6.3,8 12.6,14.3 "})}),wne=null,$C=t=>(0,n.jsx)(is,{viewBox:"0 0 6 10",...t,children:(0,n.jsx)("path",{fillRule:"nonzero",d:"M5.707 1.707A1 1 0 0 0 4.293.293l-4 4a1 1 0 0 0 0 1.414l4 4a1 1 0 0 0 1.414-1.414L2.414 5l3.293-3.293z"})}),dp=({className:t})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("circle",{cx:"5",cy:"5",r:"5"})}),Une=({title:t="Clock",desc:e="Image of a clock with two hands",width:s="14",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 14 13",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{children:[jsx("path",{d:"M7 11.375C5.70829 11.371 4.47061 10.8562 3.55722 9.94277C2.64384 9.02939 2.12896 7.79171 2.125 6.5C2.12896 5.20829 2.64384 3.97061 3.55722 3.05722C4.47061 2.14384 5.70829 1.62896 7 1.625C8.29171 1.62896 9.52939 2.14384 10.4428 3.05722C11.3562 3.97061 11.871 5.20829 11.875 6.5C11.871 7.79171 11.3562 9.02939 10.4428 9.94277C9.52939 10.8562 8.29171 11.371 7 11.375ZM7 0C3.425 0 0.5 2.925 0.5 6.5C0.5 10.075 3.425 13 7 13C10.575 13 13.5 10.075 13.5 6.5C13.5 2.925 10.575 0 7 0Z"}),jsx("path",{d:"M7.81299 3.25H6.18799V7.313H10.25V5.688H7.81199L7.81299 3.25Z"})]})]}),Hne=null,QC=({className:t})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",foocusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M9.78572 9.78572C9.5 10.0714 9.07143 10.0714 8.78571 9.78572L5 6.00001L1.21429 9.78572C0.928571 10.0714 0.500001 10.0714 0.214285 9.78572C-0.0714284 9.49999 -0.0714284 9.07144 0.214285 8.78571L4 5L0.214285 1.21429C-0.0714284 0.928564 -0.0714284 0.500007 0.214285 0.214279C0.357143 0.0714143 0.500001 0 0.714286 0C0.928571 0 1.07143 0.0714143 1.21429 0.214279L5 3.99999L8.78571 0.214279C8.92857 0.0714143 9.14286 0 9.28572 0C9.42857 0 9.64286 0.0714143 9.78572 0.214279C10.0714 0.500007 10.0714 0.928564 9.78572 1.21429L6 5L9.78572 8.78571C10.0714 9.07144 10.0714 9.49999 9.78572 9.78572Z"})});function zne(t){return jsxs(Icon,{viewBox:"0 0 16 16",...t,children:[jsx("path",{d:"M5 7C4.44772 7 4 7.44772 4 8C4 8.55228 4.44772 9 5 9L12.5858 9L10.2929 11.2929C9.90237 11.6834 9.90237 12.3166 10.2929 12.7071C10.6834 13.0976 11.3166 13.0976 11.7071 12.7071L15.7071 8.70711C16.0976 8.31658 16.0976 7.68342 15.7071 7.29289L11.7071 3.29289C11.3166 2.90237 10.6834 2.90237 10.2929 3.29289C9.90237 3.68342 9.90237 4.31658 10.2929 4.70711L12.5858 7L5 7Z"}),jsx("path",{d:"M1.19249e-08 15C5.33895e-09 15.5523 0.447716 16 1 16C1.55228 16 2 15.5523 2 15L2 1C2 0.447716 1.55228 1.85108e-08 1 1.19249e-08C0.447716 5.33896e-09 1.85459e-07 0.447716 1.78873e-07 1L1.19249e-08 15Z"})]})}const Vne=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="18",role:a="img",title:c,width:d="18"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 18 18",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{d:"M9 9V1a8 8 0 015.657 2.343L9 9z",fill:"red",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9l5.657-5.656A8 8 0 0117 9H9z",fill:"#F90",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9h8a8 8 0 01-2.343 5.657L9 9z",fill:"#FFF500",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9l5.657 5.657A8 8 0 019 17V9z",fill:"#ADFF00",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9v8a8 8 0 01-5.657-2.343L9 9z",fill:"#00FF94",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9l-5.657 5.657A8 8 0 011 9h8z",fill:"#06F",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9H1a8 8 0 012.343-5.656L9 9z",fill:"#8000FF",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9L3.343 3.343A8 8 0 019 1v8z",fill:"#EB00FF",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 6a3 3 0 110 6 3 3 0 010-6z",fill:"#fff"}),jsx("path",{d:"M9 17A8 8 0 109 1a8 8 0 000 16z",stroke:"#EAEAEB"})]}),Wne=null,Gne=({title:t="Continue Block",desc:e="Continue Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 17 17",width:s,height:o,className:classNames("i i-continue-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M9.25 11.5h3l-4 5-4-5h3v-7h2v7zm6-9h-14a1 1 0 0 1 0-2h14a1 1 0 0 1 0 2zm-10 4v2h-4a1 1 0 0 1 0-2h4zm10 0a1 1 0 0 1 0 2h-4v-2h4z"})]}),Kne=null,$ne=({title:t="Convert",desc:e="Convert to block",width:s="14",height:o="12",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 14 12",width:s,height:o,className:classNames("i i-convert",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M9.625 5.143V2.57L14 6 9.625 9.429V6.857H.875A.867.867 0 0 1 0 6c0-.473.392-.857.875-.857h8.75zM7 1.714H.875A.867.867 0 0 1 0 .857C0 .384.392 0 .875 0H7c.483 0 .875.384.875.857A.867.867 0 0 1 7 1.714zM7 12H.875A.867.867 0 0 1 0 11.143c0-.473.392-.857.875-.857H7c.483 0 .875.384.875.857A.867.867 0 0 1 7 12z"})]}),Qne=null;function Zne(t){return jsxs(Icon,{...t,viewBox:"0 0 16 16",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.33341 6.6665C6.96522 6.6665 6.66675 6.96498 6.66675 7.33317V13.3332C6.66675 13.7014 6.96522 13.9998 7.33341 13.9998H13.3334C13.7016 13.9998 14.0001 13.7014 14.0001 13.3332V7.33317C14.0001 6.96498 13.7016 6.6665 13.3334 6.6665H7.33341ZM5.33341 7.33317C5.33341 6.2286 6.22884 5.33317 7.33341 5.33317H13.3334C14.438 5.33317 15.3334 6.2286 15.3334 7.33317V13.3332C15.3334 14.4377 14.438 15.3332 13.3334 15.3332H7.33341C6.22884 15.3332 5.33341 14.4377 5.33341 13.3332V7.33317Z"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.66675 1.99984C2.48994 1.99984 2.32037 2.07008 2.19534 2.1951C2.07032 2.32012 2.00008 2.48969 2.00008 2.6665V8.6665C2.00008 8.84331 2.07032 9.01288 2.19534 9.13791C2.32037 9.26293 2.48994 9.33317 2.66675 9.33317H3.33341C3.7016 9.33317 4.00008 9.63165 4.00008 9.99984C4.00008 10.368 3.7016 10.6665 3.33341 10.6665H2.66675C2.13631 10.6665 1.62761 10.4558 1.25253 10.0807C0.877462 9.70564 0.666748 9.19694 0.666748 8.6665V2.6665C0.666748 2.13607 0.877462 1.62736 1.25253 1.25229C1.62761 0.877217 2.13632 0.666504 2.66675 0.666504H8.66675C9.19718 0.666504 9.70589 0.877218 10.081 1.25229C10.456 1.62736 10.6667 2.13607 10.6667 2.6665V3.33317C10.6667 3.70136 10.3683 3.99984 10.0001 3.99984C9.63189 3.99984 9.33341 3.70136 9.33341 3.33317V2.6665C9.33341 2.48969 9.26318 2.32012 9.13815 2.1951C9.01313 2.07007 8.84356 1.99984 8.66675 1.99984H2.66675Z"})]})}const Yne=({title:t="Copy",desc:e="A document stacked on top of another one",width:s="15",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 15 18",width:s,height:o,className:classNames("i i-stack",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M14.7,4.1C14.7,4.1,14.7,4.1,14.7,4.1c0-0.1-0.1-0.2-0.1-0.2c0,0,0,0,0,0L11,0.4c0,0-0.1,0-0.1-0.1 c0,0-0.1,0-0.1-0.1c-0.1,0-0.2,0-0.2,0H3.5c-0.3,0-0.6,0.3-0.6,0.6v3h-2c-0.3,0-0.6,0.3-0.6,0.6v12.6c0,0.3,0.3,0.6,0.6,0.6h10.6 c0.3,0,0.6-0.3,0.6-0.6v-3h2c0.3,0,0.6-0.3,0.6-0.6V4.3C14.7,4.2,14.7,4.2,14.7,4.1z M11.2,2.4l1.4,1.3h-1.4V2.4z M9.9,7.3H8.6V6 L9.9,7.3z M7.9,8.6h2.9v7.9H1.5V5.1h5.8v2.8C7.3,8.3,7.6,8.6,7.9,8.6z M12.1,7.9c0-0.1,0-0.2,0-0.2c0,0,0,0,0,0 c0-0.1-0.1-0.1-0.1-0.2c0,0,0,0,0,0L8.4,4c0,0-0.1,0-0.1-0.1c0,0-0.1,0-0.1-0.1c-0.1,0-0.2,0-0.2,0H4.1V1.5H10v2.8 C10,4.7,10.2,5,10.6,5h2.9v7.9h-1.4V7.9z"})]}),Xne=null,Jne=({title:t="Copy lesson",desc:e="Copy lesson",width:s="15",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 15 15",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M14 14H7.364V7.364H14V14zM1 7.636V1h6.636v5.364h-.772c-.277 0-.5.223-.5.5v.772H1zm13.5-1.272a.5.5 0 0 1 .5.5V14.5a.5.5 0 0 1-.5.5H6.864a.5.5 0 0 1-.5-.5V8.636H.5a.5.5 0 0 1-.5-.5V.5A.5.5 0 0 1 .5 0h7.636a.5.5 0 0 1 .5.5v5.864H14.5zm0-3.819a.5.5 0 0 1 .5.5v1.91a.5.5 0 1 1-1 0v-1.41h-2.748l1.056 1.056a.5.5 0 0 1-.707.707L9.692 3.4a.505.505 0 0 1-.147-.354.505.505 0 0 1 .147-.354L11.601.782a.5.5 0 0 1 .707.707l-1.056 1.056H14.5zm-9.084 9.219a.505.505 0 0 1 .039.19.506.506 0 0 1-.147.354l-1.909 1.91a.502.502 0 0 1-.707 0 .5.5 0 0 1 0-.707l1.056-1.056H.5a.5.5 0 0 1-.5-.5v-1.91a.5.5 0 1 1 1 0v1.41h2.748l-1.056-1.056a.5.5 0 0 1 .707-.707L5.308 11.6a.493.493 0 0 1 .108.163z"})]}),qne=null,eoe=({title:t="Corner up-right",desc:e="An arrow moving up & to the right",width:s="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{width:s,height:o,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5286 2.19526C9.78895 1.93491 10.2111 1.93491 10.4714 2.19526L13.8047 5.5286C14.0651 5.78894 14.0651 6.21106 13.8047 6.4714L10.4714 9.80474C10.2111 10.0651 9.78895 10.0651 9.5286 9.80474C9.26825 9.54439 9.26825 9.12228 9.5286 8.86193L12.3905 6L9.5286 3.13807C9.26825 2.87772 9.26825 2.45561 9.5286 2.19526Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.33333 6.66667C4.8029 6.66667 4.29419 6.87738 3.91912 7.25245C3.54405 7.62753 3.33333 8.13623 3.33333 8.66667V13.3333C3.33333 13.7015 3.03486 14 2.66667 14C2.29848 14 2 13.7015 2 13.3333V8.66667C2 7.78261 2.35119 6.93477 2.97631 6.30964C3.60143 5.68452 4.44928 5.33333 5.33333 5.33333H13.3333C13.7015 5.33333 14 5.63181 14 6C14 6.36819 13.7015 6.66667 13.3333 6.66667H5.33333Z",fill:"currentColor"})]}),toe=null,soe=t=>{const{className:e,desc:s="Crop",focusable:o="false",height:r="19",title:a="Crop",width:c="19"}=t,d={className:classNames("i i-crop",e),focusable:o,height:r,viewBox:`0 0 ${c} ${r}`,width:c};return jsxs("svg",{...d,children:[jsx("title",{children:a}),jsx("desc",{children:s}),jsx("path",{fillRule:"evenodd",d:"M15 13h3.003c.55 0 .997.444.997 1 0 .552-.453 1-.997 1H15v3.003c0 .55-.444.997-1 .997-.552 0-1-.453-1-.997V15H4.996A.995.995 0 0 1 4 14.004V6H.997A.996.996 0 0 1 0 5c0-.552.453-1 .997-1H4V.997C4 .447 4.444 0 5 0c.552 0 1 .453 1 .997V4h8.004c.55 0 .996.445.996.996V13zm-9 0h7V6H6v7z"})]})},noe=null,ooe=({"aria-hidden":t,"aria-label":e="Dash mark",className:s,desc:o,height:r="3",role:a="img",title:c,width:d="7"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:classNames("i i-dashMark",s),focusable:"false",height:r,role:a,viewBox:"0 0 7 3",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("rect",{width:"7",height:"3"})]}),roe=null,aoe=({width:t="20",height:e="20",focusable:s="false"})=>jsxs("svg",{width:t,height:e,viewBox:"0 0 20 20",fill:"none",focusable:s,xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.449 2.03415C16.2057 1.24516 17.4414 1.16956 18.2886 1.86043C19.161 2.57182 19.3163 3.84495 18.6406 4.74523L11.7164 13.9708C10.7635 15.2403 8.94583 15.4621 7.71568 14.4589C6.45117 13.4278 6.3355 11.537 7.46489 10.3594L15.449 2.03415ZM17.2353 3.15207C17.0613 3.01013 16.8074 3.02566 16.6519 3.18776L8.66778 11.513C8.21204 11.9882 8.25871 12.7512 8.76899 13.1673C9.26539 13.5721 9.9989 13.4826 10.3834 12.9703L17.3077 3.74476C17.4465 3.5598 17.4146 3.29823 17.2353 3.15207Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.24929 18.535C4.49357 18.9784 2.44605 18.6701 0.604997 17.6473C0.305936 17.4811 0.138803 17.1491 0.183513 16.8099C0.228225 16.4707 0.475696 16.1933 0.807595 16.1104C1.91332 15.8339 2.71474 14.9884 3.65265 13.9988C3.73743 13.9094 3.82332 13.8188 3.91065 13.7273C4.39823 13.2165 4.95363 12.6632 5.59452 12.3031C6.27583 11.9204 7.06497 11.7491 7.96604 12.0065L7.50816 13.6091C7.10117 13.4928 6.76904 13.555 6.4108 13.7562C6.01216 13.9802 5.60974 14.3611 5.11619 14.8782C5.02687 14.9717 4.93462 15.0701 4.83919 15.1719C4.33778 15.7067 3.74851 16.3352 3.03433 16.8502C4.03071 17.1168 5.00421 17.1304 5.84113 16.919C7.10848 16.5989 8.06772 15.7708 8.42833 14.4559L10.0356 14.8967C9.49766 16.8584 8.02754 18.0858 6.24929 18.535Z",fill:"currentColor"})]}),ioe=null,ZC=({title:t="DestinationArrow",desc:e="DestinationArrow",width:s="13",height:o="10",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 13 10",width:s,height:o,className:M()("i i-destinationArrow",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{d:"M0 5c0 .345.264.625.59.625h10.393L7.855 8.933a.65.65 0 0 0 0 .884.573.573 0 0 0 .418.183.573.573 0 0 0 .418-.183l4.136-4.374a.66.66 0 0 0 0-.885L8.691.183a.568.568 0 0 0-.836 0 .65.65 0 0 0 0 .884l3.128 3.308H.591C.264 4.375 0 4.655 0 5"})]}),loe=({title:t="Dialogue Slide",desc:e="Dialogue Slide",width:s="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 16",width:s,height:o,className:classNames("i i-dialogue-slide",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M14 11h-3c-.3 0-.5.1-.7.3L8 13.6l-2.3-2.3c-.2-.2-.4-.3-.7-.3H2V2h12v9zm1-11H1C.4 0 0 .4 0 1v11c0 .6.4 1 1 1h3.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H15c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z"})]}),doe=null,uoe=({title:t="Disk",desc:e="An old floppy disk",width:s="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{width:s,height:o,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.33337 2.66659C3.15656 2.66659 2.98699 2.73682 2.86197 2.86185C2.73695 2.98687 2.66671 3.15644 2.66671 3.33325V12.6666C2.66671 12.8434 2.73695 13.013 2.86197 13.138C2.98699 13.263 3.15656 13.3333 3.33337 13.3333H12.6667C12.8435 13.3333 13.0131 13.263 13.1381 13.138C13.2631 13.013 13.3334 12.8434 13.3334 12.6666V5.6094L10.3906 2.66659H3.33337ZM1.91916 1.91904C2.29423 1.54397 2.80294 1.33325 3.33337 1.33325H10.6667C10.8435 1.33325 11.0131 1.40349 11.1381 1.52851L14.4714 4.86185C14.5965 4.98687 14.6667 5.15644 14.6667 5.33325V12.6666C14.6667 13.197 14.456 13.7057 14.0809 14.0808C13.7058 14.4559 13.1971 14.6666 12.6667 14.6666H3.33337C2.80294 14.6666 2.29423 14.4559 1.91916 14.0808C1.54409 13.7057 1.33337 13.197 1.33337 12.6666V3.33325C1.33337 2.80282 1.54409 2.29411 1.91916 1.91904Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.00004 8.66659C4.00004 8.2984 4.29852 7.99992 4.66671 7.99992H11.3334C11.7016 7.99992 12 8.2984 12 8.66659V13.9999C12 14.3681 11.7016 14.6666 11.3334 14.6666C10.9652 14.6666 10.6667 14.3681 10.6667 13.9999V9.33325H5.33337V13.9999C5.33337 14.3681 5.0349 14.6666 4.66671 14.6666C4.29852 14.6666 4.00004 14.3681 4.00004 13.9999V8.66659Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.66671 1.33325C5.0349 1.33325 5.33337 1.63173 5.33337 1.99992V4.66659H10C10.3682 4.66659 10.6667 4.96506 10.6667 5.33325C10.6667 5.70144 10.3682 5.99992 10 5.99992H4.66671C4.29852 5.99992 4.00004 5.70144 4.00004 5.33325V1.99992C4.00004 1.63173 4.29852 1.33325 4.66671 1.33325Z",fill:"currentColor"})]}),hoe=null;class moe extends null{render(){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1","aria-hidden":this.props.decorative,"aria-label":this.props.title,role:this.props.role,className:this.props.className,focusable:"false",height:this.props.height,viewBox:this.props.viewBox,width:this.props.width,children:this.props.children})}}const poe=null,foe=({width:t=20,height:e=20,...s})=>jsx(SVGIcon,{height:e,width:t,...s,viewBox:"0 0 20 20",children:jsx("path",{fillRule:"evenodd",d:"M10 0c5.523 0 10 4.477 10 10s-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0zm2.634 7.679l-3.506 3.505-2.054-2.055a.7.7 0 00-.99.99l2.55 2.55a.7.7 0 00.99 0l4-4a.7.7 0 00-.99-.99z"})}),goe=null,voe=({width:t="20",height:e="20",focusable:s="false"})=>jsxs("svg",{width:t,height:e,viewBox:"0 0 20 20",fill:"none",focusable:s,xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33333 10C8.33333 9.07954 9.07952 8.33334 10 8.33334C10.9205 8.33334 11.6667 9.07954 11.6667 10C11.6667 10.9205 10.9205 11.6667 10 11.6667C9.07952 11.6667 8.33333 10.9205 8.33333 10Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.1667 10C14.1667 9.07954 14.9129 8.33335 15.8333 8.33335C16.7538 8.33335 17.5 9.07954 17.5 10C17.5 10.9205 16.7538 11.6667 15.8333 11.6667C14.9129 11.6667 14.1667 10.9205 14.1667 10Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 10C2.5 9.07954 3.24619 8.33334 4.16667 8.33334C5.08714 8.33334 5.83333 9.07954 5.83333 10C5.83333 10.9205 5.08714 11.6667 4.16667 11.6667C3.24619 11.6667 2.5 10.9205 2.5 10Z",fill:"currentColor"})]}),Coe=null,xoe=({title:t="Vertical Dots",desc:e="Vertical Dots",width:s="4",height:o="24",className:r=null,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 4 24",width:s,height:o,className:classNames("i i-dotsVertical",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M2 24a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0-10a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM2 4a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"})]}),Eoe=null,YC=({title:t="Download",desc:e="Arrow down with horizontal line beneath it",width:s="16",height:o="19",className:r,focusable:a="false"},c)=>(0,n.jsxs)("svg",{viewBox:"0 0 16 19",width:s,height:o,className:M()("i i-download",r),focusable:a,ref:c,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("rect",{y:"17",width:"16",height:"2",rx:"1"}),(0,n.jsx)("path",{d:"M4.464 8.293A1 1 0 1 0 3.05 9.707l4.24 4.24c.4.4 1.028.392 1.42 0l4.24-4.24a1 1 0 1 0-1.414-1.414L8 4.757 4.464 8.293zm0 0L8 4.757l3.536 3.536L8 11.828 4.464 8.293z"}),(0,n.jsx)("path",{d:"M7 0h2v12H7z"})]}),XC=(0,m.forwardRef)(YC),Toe=({title:t="Download Circle",desc:e="Arrow down with horizontal line beneath it wrapped up in a circle",width:s="51",height:o="51",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 51 51",width:s,height:o,className:classNames("i i-downloadCircle",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("g",{stroke:"none",fill:"none",children:jsx("g",{transform:"translate(-695, -227)",fill:"#000",children:jsx("path",{d:"M721,255.395113 L726.834932,249.560181 C727.225456,249.169656 727.858621,249.169656 728.249146,249.560181 C728.63967,249.950705 728.63967,250.58387 728.249146,250.974394 L720.824726,258.398814 C720.796316,258.436777 720.764856,258.473181 720.730347,258.507691 C720.339822,258.898215 719.706657,258.898215 719.316133,258.507691 L711.799485,250.991042 C711.408961,250.600518 711.408961,249.967353 711.799485,249.576829 C712.190009,249.186304 712.823174,249.186304 713.213699,249.576829 L719,255.36313 L719,240.783936 C719,240.231651 719.447715,239.783936 720,239.783936 C720.552285,239.783936 721,240.231651 721,240.783936 L721,255.395113 Z M720.059082,277.569336 C706.251963,277.569336 695.059082,266.376455 695.059082,252.569336 C695.059082,238.762217 706.251963,227.569336 720.059082,227.569336 C733.866201,227.569336 745.059082,238.762217 745.059082,252.569336 C745.059082,266.376455 733.866201,277.569336 720.059082,277.569336 Z M720.059082,275.569336 C732.761631,275.569336 743.059082,265.271885 743.059082,252.569336 C743.059082,239.866787 732.761631,229.569336 720.059082,229.569336 C707.356533,229.569336 697.059082,239.866787 697.059082,252.569336 C697.059082,265.271885 707.356533,275.569336 720.059082,275.569336 Z M712,264 C711.447715,264 711,263.552285 711,263 C711,262.447715 711.447715,262 712,262 L728,262 C728.552285,262 729,262.447715 729,263 C729,263.552285 728.552285,264 728,264 L712,264 Z"})})})]}),Soe=null;function Loe(t){return jsxs(Icon,{viewBox:"0 0 13 13",...t,children:[jsx("path",{d:"M7.08297 7.92452V1.49952C7.08297 1.34476 7.02149 1.19635 6.91207 1.08692C6.80264 0.977491 6.65422 0.916016 6.49947 0.916016C6.34472 0.916016 6.1963 0.977491 6.08687 1.08692C5.97745 1.19635 5.91597 1.34476 5.91597 1.49952V7.92452L4.57997 6.58652C4.47057 6.47711 4.32219 6.41565 4.16747 6.41565C4.01275 6.41565 3.86437 6.47711 3.75497 6.58652C3.64557 6.69592 3.58411 6.8443 3.58411 6.99902C3.58411 7.15373 3.64557 7.30211 3.75497 7.41152L6.08797 9.74552C6.19771 9.85428 6.34596 9.91529 6.50047 9.91529C6.65497 9.91529 6.80323 9.85428 6.91297 9.74552L9.24597 7.41152C9.34926 7.30115 9.40564 7.15499 9.40323 7.00385C9.40082 6.85271 9.3398 6.70842 9.23304 6.60141C9.12629 6.49439 8.98215 6.43303 8.83102 6.43025C8.67989 6.42747 8.53358 6.4835 8.42297 6.58652L7.08197 7.92452H7.08297Z"}),jsx("path",{d:"M11.4 11.4824H1.60002V4.68242H3.00002C3.15915 4.68242 3.31177 4.61921 3.42429 4.50669C3.53681 4.39416 3.60002 4.24155 3.60002 4.08242C3.60002 3.92329 3.53681 3.77068 3.42429 3.65816C3.31177 3.54564 3.15915 3.48242 3.00002 3.48242H1.00002C0.840895 3.48242 0.688282 3.54564 0.57576 3.65816C0.463239 3.77068 0.400024 3.92329 0.400024 4.08242V12.0824C0.400024 12.2416 0.463239 12.3942 0.57576 12.5067C0.688282 12.6192 0.840895 12.6824 1.00002 12.6824H12C12.1592 12.6824 12.3118 12.6192 12.4243 12.5067C12.5368 12.3942 12.6 12.2416 12.6 12.0824V4.08242C12.6 3.92329 12.5368 3.77068 12.4243 3.65816C12.3118 3.54564 12.1592 3.48242 12 3.48242H10C9.92123 3.48242 9.84321 3.49794 9.77041 3.52809C9.69762 3.55825 9.63148 3.60244 9.57576 3.65816C9.52005 3.71387 9.47585 3.78002 9.4457 3.85281C9.41554 3.92561 9.40002 4.00363 9.40002 4.08242C9.40002 4.16122 9.41554 4.23924 9.4457 4.31203C9.47585 4.38483 9.52005 4.45097 9.57576 4.50669C9.63148 4.5624 9.69762 4.6066 9.77041 4.63675C9.84321 4.6669 9.92123 4.68242 10 4.68242H11.4V11.4824Z"})]})}const boe=({title:t="Draw",desc:e="Arrow down with horizontal line beneath it",width:s="15",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 15 15",width:s,height:o,className:classNames("i i-drawFromQuestionBank",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M8.15625 10.9688C7.96875 11.1562 7.78125 11.25 7.5 11.25C7.21875 11.25 7.03125 11.1562 6.84375 10.9688L1.5 5.625L2.8125 4.3125L6.5625 8.0625V0H8.4375V8.0625L12.1875 4.3125L13.5 5.625L8.15625 10.9688Z"}),jsx("path",{d:"M1.875 10.3125V13.125H13.125V10.3125H15V14.0625C15 14.625 14.625 15 14.0625 15H0.9375C0.375 15 0 14.625 0 14.0625V10.3125H1.875Z"})]}),yoe=null,Ioe=t=>jsxs(Icon,{height:"16",width:"4",viewBox:"0 0 16 4",...t,children:[jsx("path",{d:"M8,0 C9.105,0 10,0.895 10,2 C10,3.105 9.105,4 8,4 C6.895,4 6,3.105 6,2 C6,0.895 6.895,0 8,0"}),jsx("path",{d:"M2,0 C3.105,0 4,0.895 4,2 C4,3.105 3.105,4 2,4 C0.895,4 0,3.105 0,2 C0,0.895 0.895,0 2,0"}),jsx("path",{d:"M14,0 C15.105,0 16,0.895 16,2 C16,3.105 15.105,4 14,4 C12.895,4 12,3.105 12,2 C12,0.895 12.895,0 14,0"})]}),Noe=null,joe=({title:t="More",desc:e="Three dots next to one another",width:s="16",height:o="4",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 4",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M8,0 C9.105,0 10,0.895 10,2 C10,3.105 9.105,4 8,4 C6.895,4 6,3.105 6,2 C6,0.895 6.895,0 8,0"}),jsx("path",{d:"M2,0 C3.105,0 4,0.895 4,2 C4,3.105 3.105,4 2,4 C0.895,4 0,3.105 0,2 C0,0.895 0.895,0 2,0"}),jsx("path",{d:"M14,0 C15.105,0 16,0.895 16,2 C16,3.105 15.105,4 14,4 C12.895,4 12,3.105 12,2 C12,0.895 12.895,0 14,0"})]}),Aoe=null,Roe=({title:t="Draggable",desc:e="Three dots stacked on top of one another",width:s="4",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 4 14",width:s,height:o,className:classNames("i i-ellipsis--vert",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{transform:"translate(.158 .445)",children:[jsx("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),jsx("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),jsx("circle",{cx:"1.5",cy:"1.5",r:"1.5"})]})]}),Ooe=null,Poe=({title:t="Embed",desc:e="Embed icon",width:s="16",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 15",width:s,height:o,className:classNames("i i-embed",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M13.2 11.263l-1.4-1.4 2.3-2.3-2.3-2.3 1.4-1.4 3 3c.4.4.4 1 0 1.4l-3 3M3.8 11.263l-3-3c-.4-.4-.4-1 0-1.4l3-3 1.4 1.4-2.3 2.3 2.3 2.3-1.4 1.4M6.5 14.563c-.1 0-.2 0-.3-.1-.5-.2-.8-.7-.6-1.3l4-12c.2-.5.7-.8 1.3-.6.5.2.8.7.6 1.3l-4 12c-.2.4-.6.7-1 .7"})]}),Moe=null,Doe=({title:t="Empty folder",desc:e="Empty folder",width:s="46",height:o="46",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 46 46",width:s,height:o,className:classNames("i i-emptyFolder",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M38 6.867a1 1 0 0 0-1-1H16.84l.805.407-4.32-5.867A1 1 0 0 0 12.52 0H1a1 1 0 0 0-1 1v39.6C0 43.578 2.377 46 5.32 46a1 1 0 0 0 0-2C3.49 44 2 42.482 2 40.6V1L1 2h11.52l-.805-.407 4.32 5.867a1 1 0 0 0 .805.407H37l-1-1v8.8a1 1 0 0 0 2 0v-8.8z"}),jsx("path",{d:"M9.333 40.65A3.341 3.341 0 0 1 6 44v2h34.667C43.613 46 46 43.604 46 40.65V16a1 1 0 0 0-1-1H10.333a1 1 0 0 0-1 1v24.65zm1-23.65H45l-1-1v24.65A3.341 3.341 0 0 1 40.667 44H6c-1.333 0-1.333 2 0 2 2.947 0 5.333-2.396 5.333-5.35V16l-1 1z"})]}),koe=null,woe=({title:t="End Slide",desc:e="End Slide",width:s="16",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 14",width:s,height:o,className:classNames("i i-end-slide",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M6,0.6L4.6,2l4,4H0v2h8.6l-4,4L6,13.4l5.7-5.7c0.4-0.4,0.4-1,0-1.4L6,0.6"}),jsx("rect",{fillRule:"evenodd",x:"14",width:"2",height:"14"})]}),Boe=null,_oe=({title:t="Envelope",desc:e="Envelope",width:s="17",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 14",width:s,height:o,className:classNames("i i-envelope",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fillRule:"nonzero",children:[jsx("path",{d:"M8.5 7.316L1.341.634a.5.5 0 0 0-.682.732l7.5 7a.5.5 0 0 0 .682 0l7.5-7a.5.5 0 1 0-.682-.732L8.5 7.316z"}),jsx("path",{d:"M1.5 1.5v11h14v-11h-14zM1 .5h15a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H1a.5.5 0 0 1-.5-.5V1A.5.5 0 0 1 1 .5z"})]})]}),Uoe=null,Hoe=({title:t="Error",desc:e="An x with a circle",width:s="50",height:o="50",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 50 50",width:s,height:o,className:classNames("i i-error",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M25 50C11.193 50 0 38.807 0 25S11.193 0 25 0s25 11.193 25 25-11.193 25-25 25zm0-2c12.703 0 23-10.297 23-23S37.703 2 25 2 2 12.297 2 25s10.297 23 23 23z"}),jsx("path",{d:"M31.679 18.321a1.036 1.036 0 0 0-1.5 0L24.5 24l-5.679-5.679a1.036 1.036 0 0 0-1.5 0 1.036 1.036 0 0 0 0 1.5L23 25.5l-5.679 5.679a1.036 1.036 0 0 0 0 1.5c.215.214.429.321.75.321.322 0 .536-.107.75-.321L24.5 27l5.679 5.679c.214.214.535.321.75.321.214 0 .535-.107.75-.321a1.036 1.036 0 0 0 0-1.5L26 25.5l5.679-5.679a1.036 1.036 0 0 0 0-1.5"})]}),Foe=null,zoe=({title:t="Error Alert",desc:e="A red circle with a white exclamation point in the middle",width:s="18",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{width:s,height:o,viewBox:"0 0 18 18",className:classNames("i i-errorAlert",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("circle",{cx:"9",cy:"9",r:"9"}),jsx("path",{d:"M9.897 4v4.004c0 .425-.021.841-.063 1.25-.042.408-.098.84-.168 1.298H8.497c-.07-.457-.126-.89-.168-1.298a12.206 12.206 0 0 1-.063-1.25V4h1.631zM8 13.17c0-.145.027-.282.08-.413a.987.987 0 0 1 .225-.336 1.103 1.103 0 0 1 .759-.308 1.06 1.06 0 0 1 .749.308 1.06 1.06 0 0 1 .308.749 1.07 1.07 0 0 1-.308.749 1.077 1.077 0 0 1-.749.301 1.095 1.095 0 0 1-.76-.301.995.995 0 0 1-.223-.333A1.069 1.069 0 0 1 8 13.17z"})]}),Voe=null,up=({"aria-hidden":t,"aria-label":e="X mark",className:s,desc:o,height:r="10",overrideStyle:a=!1,role:c="img",title:d,width:l="10"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:M()(s,{"i i-exMark":!a}),focusable:"false",height:r,role:c,viewBox:"0 0 10 10",width:l,xmlns:"http://www.w3.org/2000/svg",children:[d&&(0,n.jsx)("title",{children:d}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{d:"M5,4.17,9.17,0,10,.83,5.83,5,10,9.17,9.17,10,5,5.83.83,10,0,9.17,4.17,5,0,.83.83,0Z"})]}),Goe=({title:t="Export",desc:e="Export",width:s="12",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 12 15",width:s,height:o,className:classNames("i i-export",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("polygon",{points:"7,6.4 7,1 5,1 5,6.4 2.3,6.4 6,10.8 9.7,6.4"}),jsx("rect",{x:"1",y:"12",width:"10",height:"2"})]}),Koe=null,hp=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fillRule:"evenodd",fill:"#DFE1E2"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fillRule:"evenodd",fill:"#C7CACC"}),(0,n.jsx)("path",{d:"M13.534 22.9863V24.4163H10.245V26.4458H12.984V27.8813H10.245V30.9998H8.375V22.9863H13.534Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M17.533 30.9998H15.663V22.9863H17.533V30.9998Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M21.8805 29.5148H24.8505V30.9998H20.0215V22.9863H21.8805V29.5148Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M31.8846 22.9863V24.4163H28.5956V26.2863H31.1146V27.6613H28.5956V29.5698H31.8846V30.9998H26.7256V22.9863H31.8846Z",fill:"#414448"})]}),JC=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fillRule:"evenodd",fill:"#C3CEED"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#96A9E0",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M14.8355 26.9904C14.8355 27.5698 14.7346 28.1051 14.533 28.5964C14.335 29.0841 14.0545 29.5076 13.6915 29.8669C13.3285 30.2226 12.8903 30.5013 12.377 30.7029C11.8673 30.9009 11.3008 30.9999 10.6775 30.9999H7.56445V22.9864H10.6775C11.3008 22.9864 11.8673 23.0873 12.377 23.2889C12.8903 23.4906 13.3285 23.7693 13.6915 24.1249C14.0545 24.4806 14.335 24.9041 14.533 25.3954C14.7346 25.8831 14.8355 26.4148 14.8355 26.9904ZM12.9325 26.9904C12.9325 26.5944 12.8811 26.2369 12.7785 25.9179C12.6758 25.5989 12.5273 25.3294 12.333 25.1094C12.1423 24.8858 11.9076 24.7153 11.629 24.5979C11.3503 24.4769 11.0331 24.4164 10.6775 24.4164H9.43445V29.5699H10.6775C11.0331 29.5699 11.3503 29.5113 11.629 29.3939C11.9076 29.2729 12.1423 29.1024 12.333 28.8824C12.5273 28.6588 12.6758 28.3874 12.7785 28.0684C12.8811 27.7494 12.9325 27.3901 12.9325 26.9904Z",fill:"#0C3092"}),(0,n.jsx)("path",{d:"M24.6375 26.9904C24.6375 27.5698 24.5367 28.1088 24.335 28.6074C24.137 29.1061 23.8565 29.5406 23.4935 29.9109C23.1305 30.2776 22.6923 30.5654 22.179 30.7744C21.6693 30.9834 21.1028 31.0879 20.4795 31.0879C19.8562 31.0879 19.2878 30.9834 18.7745 30.7744C18.2612 30.5654 17.8212 30.2776 17.4545 29.9109C17.0915 29.5406 16.8092 29.1061 16.6075 28.6074C16.4095 28.1088 16.3105 27.5698 16.3105 26.9904C16.3105 26.4111 16.4095 25.8721 16.6075 25.3734C16.8092 24.8748 17.0915 24.4421 17.4545 24.0754C17.8212 23.7088 18.2612 23.4209 18.7745 23.2119C19.2878 23.0029 19.8562 22.8984 20.4795 22.8984C21.1028 22.8984 21.6693 23.0048 22.179 23.2174C22.6923 23.4264 23.1305 23.7143 23.4935 24.0809C23.8565 24.4476 24.137 24.8803 24.335 25.3789C24.5367 25.8776 24.6375 26.4148 24.6375 26.9904ZM22.7345 26.9904C22.7345 26.5944 22.6832 26.2388 22.5805 25.9234C22.4779 25.6044 22.3293 25.3349 22.135 25.1149C21.9443 24.8949 21.7097 24.7263 21.431 24.6089C21.1523 24.4916 20.8352 24.4329 20.4795 24.4329C20.1202 24.4329 19.7993 24.4916 19.517 24.6089C19.2383 24.7263 19.0018 24.8949 18.8075 25.1149C18.6168 25.3349 18.4702 25.6044 18.3675 25.9234C18.2648 26.2388 18.2135 26.5944 18.2135 26.9904C18.2135 27.3901 18.2648 27.7494 18.3675 28.0684C18.4702 28.3838 18.6168 28.6514 18.8075 28.8714C19.0018 29.0914 19.2383 29.2601 19.517 29.3774C19.7993 29.4911 20.1202 29.5479 20.4795 29.5479C20.8352 29.5479 21.1523 29.4911 21.431 29.3774C21.7097 29.2601 21.9443 29.0914 22.135 28.8714C22.3293 28.6514 22.4779 28.3838 22.5805 28.0684C22.6832 27.7494 22.7345 27.3901 22.7345 26.9904Z",fill:"#0C3092"}),(0,n.jsx)("path",{d:"M31.9109 28.9264C31.9549 28.9264 31.9989 28.9356 32.0429 28.9539C32.0869 28.9686 32.129 28.9961 32.1694 29.0364L32.9064 29.8119C32.5837 30.2336 32.1785 30.5526 31.6909 30.7689C31.2069 30.9816 30.633 31.0879 29.9694 31.0879C29.3607 31.0879 28.8144 30.9853 28.3304 30.7799C27.85 30.5709 27.4412 30.2849 27.1039 29.9219C26.7702 29.5553 26.5135 29.1226 26.3339 28.6239C26.1542 28.1216 26.0644 27.5771 26.0644 26.9904C26.0644 26.3928 26.167 25.8446 26.3724 25.3459C26.5777 24.8436 26.8637 24.4109 27.2304 24.0479C27.6007 23.6849 28.0425 23.4026 28.5559 23.2009C29.0692 22.9993 29.6357 22.8984 30.2554 22.8984C30.556 22.8984 30.8384 22.9259 31.1024 22.9809C31.37 23.0323 31.6194 23.1056 31.8504 23.2009C32.0814 23.2926 32.294 23.4044 32.4884 23.5364C32.6827 23.6648 32.855 23.8078 33.0054 23.9654L32.3784 24.8069C32.338 24.8583 32.2904 24.9059 32.2354 24.9499C32.1804 24.9903 32.1034 25.0104 32.0044 25.0104C31.9384 25.0104 31.876 24.9958 31.8174 24.9664C31.7587 24.9371 31.6964 24.9023 31.6304 24.8619C31.5644 24.8179 31.491 24.7721 31.4104 24.7244C31.3334 24.6731 31.2399 24.6273 31.1299 24.5869C31.0235 24.5429 30.897 24.5063 30.7504 24.4769C30.6074 24.4476 30.4387 24.4329 30.2444 24.4329C29.907 24.4329 29.599 24.4934 29.3204 24.6144C29.0417 24.7318 28.8015 24.9023 28.5999 25.1259C28.4019 25.3459 28.246 25.6136 28.1324 25.9289C28.0224 26.2443 27.9674 26.5981 27.9674 26.9904C27.9674 27.4011 28.0224 27.7659 28.1324 28.0849C28.246 28.4039 28.3982 28.6734 28.5889 28.8934C28.7832 29.1098 29.0087 29.2748 29.2654 29.3884C29.522 29.5021 29.797 29.5589 30.0904 29.5589C30.259 29.5589 30.413 29.5516 30.5524 29.5369C30.6917 29.5186 30.82 29.4893 30.9374 29.4489C31.0584 29.4086 31.172 29.3573 31.2784 29.2949C31.3884 29.2289 31.4984 29.1483 31.6084 29.0529C31.6524 29.0163 31.7 28.9869 31.7514 28.9649C31.8027 28.9393 31.8559 28.9264 31.9109 28.9264Z",fill:"#0C3092"})]}),Zoe=({title:t="No File",desc:e="Paper icon with one corner bent inwards",width:s="40",height:o="50",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 40 50",width:s,height:o,className:classNames("i i-fileNone",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),jsx("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"})]}),Yoe=null,qC=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#F5D0CE",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#EDADA9",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M10.8678 28.3213V30.9998H9.00879V22.9863H11.8358C12.4005 22.9863 12.8845 23.0542 13.2878 23.1898C13.6948 23.3218 14.0285 23.5052 14.2888 23.7398C14.5528 23.9745 14.7471 24.2513 14.8718 24.5703C14.9965 24.8893 15.0588 25.234 15.0588 25.6043C15.0588 26.004 14.9946 26.3707 14.8663 26.7043C14.738 27.038 14.5418 27.324 14.2778 27.5623C14.0138 27.8007 13.6783 27.9877 13.2713 28.1233C12.868 28.2553 12.3895 28.3213 11.8358 28.3213H10.8678ZM10.8678 26.9188H11.8358C12.3198 26.9188 12.6681 26.8033 12.8808 26.5723C13.0935 26.3413 13.1998 26.0187 13.1998 25.6043C13.1998 25.421 13.1723 25.2542 13.1173 25.1038C13.0623 24.9535 12.978 24.8252 12.8643 24.7188C12.7543 24.6088 12.6131 24.5245 12.4408 24.4658C12.2721 24.4072 12.0705 24.3778 11.8358 24.3778H10.8678V26.9188Z",fill:"#771D18"}),(0,n.jsx)("path",{d:"M24.2944 26.9903C24.2944 27.5697 24.1936 28.105 23.9919 28.5963C23.7939 29.084 23.5134 29.5075 23.1504 29.8668C22.7874 30.2225 22.3493 30.5012 21.8359 30.7028C21.3263 30.9008 20.7598 30.9998 20.1364 30.9998H17.0234V22.9863H20.1364C20.7598 22.9863 21.3263 23.0872 21.8359 23.2888C22.3493 23.4905 22.7874 23.7692 23.1504 24.1248C23.5134 24.4805 23.7939 24.904 23.9919 25.3953C24.1936 25.883 24.2944 26.4147 24.2944 26.9903ZM22.3914 26.9903C22.3914 26.5943 22.3401 26.2368 22.2374 25.9178C22.1348 25.5988 21.9863 25.3293 21.7919 25.1093C21.6013 24.8857 21.3666 24.7152 21.0879 24.5978C20.8093 24.4768 20.4921 24.4163 20.1364 24.4163H18.8934V29.5698H20.1364C20.4921 29.5698 20.8093 29.5112 21.0879 29.3938C21.3666 29.2728 21.6013 29.1023 21.7919 28.8823C21.9863 28.6587 22.1348 28.3873 22.2374 28.0683C22.3401 27.7493 22.3914 27.39 22.3914 26.9903Z",fill:"#771D18"}),(0,n.jsx)("path",{d:"M31.3465 22.9863V24.4163H28.0575V26.4458H30.7965V27.8813H28.0575V30.9998H26.1875V22.9863H31.3465Z",fill:"#771D18"})]}),e4=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#FBDACC",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#F8BFA6",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M11.2115 28.3213V30.9998H9.35254V22.9863H12.1795C12.7442 22.9863 13.2282 23.0542 13.6315 23.1898C14.0385 23.3218 14.3722 23.5052 14.6325 23.7398C14.8965 23.9745 15.0909 24.2513 15.2155 24.5703C15.3402 24.8893 15.4025 25.234 15.4025 25.6043C15.4025 26.004 15.3384 26.3707 15.21 26.7043C15.0817 27.038 14.8855 27.324 14.6215 27.5623C14.3575 27.8007 14.022 27.9877 13.615 28.1233C13.2117 28.2553 12.7332 28.3213 12.1795 28.3213H11.2115ZM11.2115 26.9188H12.1795C12.6635 26.9188 13.0119 26.8033 13.2245 26.5723C13.4372 26.3413 13.5435 26.0187 13.5435 25.6043C13.5435 25.421 13.516 25.2542 13.461 25.1038C13.406 24.9535 13.3217 24.8252 13.208 24.7188C13.098 24.6088 12.9569 24.5245 12.7845 24.4658C12.6159 24.4072 12.4142 24.3778 12.1795 24.3778H11.2115V26.9188Z",fill:"#7C2B0E"}),(0,n.jsx)("path",{d:"M19.2262 28.3213V30.9998H17.3672V22.9863H20.1942C20.7589 22.9863 21.2429 23.0542 21.6462 23.1898C22.0532 23.3218 22.3869 23.5052 22.6472 23.7398C22.9112 23.9745 23.1055 24.2513 23.2302 24.5703C23.3549 24.8893 23.4172 25.234 23.4172 25.6043C23.4172 26.004 23.353 26.3707 23.2247 26.7043C23.0964 27.038 22.9002 27.324 22.6362 27.5623C22.3722 27.8007 22.0367 27.9877 21.6297 28.1233C21.2264 28.2553 20.7479 28.3213 20.1942 28.3213H19.2262ZM19.2262 26.9188H20.1942C20.6782 26.9188 21.0265 26.8033 21.2392 26.5723C21.4519 26.3413 21.5582 26.0187 21.5582 25.6043C21.5582 25.421 21.5307 25.2542 21.4757 25.1038C21.4207 24.9535 21.3364 24.8252 21.2227 24.7188C21.1127 24.6088 20.9715 24.5245 20.7992 24.4658C20.6305 24.4072 20.4289 24.3778 20.1942 24.3778H19.2262V26.9188Z",fill:"#7C2B0E"}),(0,n.jsx)("path",{d:"M31.2008 22.9863V24.4603H28.9458V30.9998H27.0868V24.4603H24.8318V22.9863H31.2008Z",fill:"#7C2B0E"})]}),t4=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#CFEAF8",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M11.6738 28.0355V31H9.81476V22.9865H12.4218C13.0011 22.9865 13.4943 23.047 13.9013 23.168C14.3119 23.2853 14.6456 23.4503 14.9023 23.663C15.1626 23.8757 15.3514 24.1268 15.4688 24.4165C15.5861 24.7062 15.6448 25.0215 15.6448 25.3625C15.6448 25.6228 15.6099 25.8685 15.5403 26.0995C15.4706 26.3305 15.3661 26.545 15.2268 26.743C15.0911 26.9373 14.9224 27.1115 14.7208 27.2655C14.5228 27.4195 14.2936 27.546 14.0333 27.645C14.1579 27.7073 14.2734 27.7843 14.3798 27.876C14.4898 27.9677 14.5851 28.0795 14.6658 28.2115L16.3708 31H14.6878C14.3761 31 14.1524 30.8827 14.0168 30.648L12.6858 28.3215C12.6271 28.2188 12.5574 28.1455 12.4768 28.1015C12.3998 28.0575 12.2898 28.0355 12.1468 28.0355H11.6738ZM11.6738 26.754H12.4218C12.6748 26.754 12.8893 26.7228 13.0653 26.6605C13.2449 26.5945 13.3916 26.5047 13.5053 26.391C13.6189 26.2773 13.7014 26.1453 13.7528 25.995C13.8041 25.841 13.8298 25.676 13.8298 25.5C13.8298 25.148 13.7143 24.873 13.4833 24.675C13.2559 24.477 12.9021 24.378 12.4218 24.378H11.6738V26.754Z",fill:"#144E6C"}),(0,n.jsx)("path",{d:"M23.6162 22.9865V24.4605H21.3612V31H19.5022V24.4605H17.2472V22.9865H23.6162Z",fill:"#144E6C"}),(0,n.jsx)("path",{d:"M30.5411 22.9865V24.4165H27.2521V26.446H29.9911V27.8815H27.2521V31H25.3821V22.9865H30.5411Z",fill:"#144E6C"})]}),s4=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#D1E5D1",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#AFD1AE",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M11.8861 26.8804L9.40564 22.9864H11.2646C11.3856 22.9864 11.4736 23.0029 11.5286 23.0359C11.5873 23.0653 11.6386 23.1166 11.6826 23.1899L13.2776 25.8904C13.296 25.8428 13.3161 25.7969 13.3381 25.7529C13.3638 25.7089 13.3913 25.6631 13.4206 25.6154L14.8176 23.2174C14.9093 23.0634 15.034 22.9864 15.1916 22.9864H16.9736L14.4601 26.7979L17.0286 30.9999H15.1696C15.0486 30.9999 14.9496 30.9706 14.8726 30.9119C14.7993 30.8533 14.7406 30.7836 14.6966 30.7029L13.0906 27.8979C13.0613 27.9786 13.0283 28.0483 12.9916 28.1069L11.4956 30.7029C11.4516 30.7799 11.393 30.8496 11.3196 30.9119C11.2463 30.9706 11.1546 30.9999 11.0446 30.9999H9.30664L11.8861 26.8804Z",fill:"#265026"}),(0,n.jsx)("path",{d:"M20.6017 29.5149H23.5717V30.9999H18.7427V22.9864H20.6017V29.5149Z",fill:"#265026"}),(0,n.jsx)("path",{d:"M29.9128 24.6144C29.8578 24.7024 29.7991 24.7684 29.7368 24.8124C29.6781 24.8564 29.6011 24.8784 29.5058 24.8784C29.4215 24.8784 29.3298 24.8528 29.2308 24.8014C29.1355 24.7464 29.0255 24.6859 28.9008 24.6199C28.7798 24.5539 28.6405 24.4953 28.4828 24.4439C28.3251 24.3889 28.1455 24.3614 27.9438 24.3614C27.5955 24.3614 27.3351 24.4366 27.1628 24.5869C26.9941 24.7336 26.9098 24.9334 26.9098 25.1864C26.9098 25.3478 26.9611 25.4816 27.0638 25.5879C27.1665 25.6943 27.3003 25.7859 27.4653 25.8629C27.634 25.9399 27.8246 26.0114 28.0373 26.0774C28.2536 26.1398 28.4736 26.2113 28.6973 26.2919C28.921 26.3689 29.1391 26.4606 29.3518 26.5669C29.5681 26.6733 29.7588 26.8089 29.9238 26.9739C30.0925 27.1389 30.2281 27.3406 30.3308 27.5789C30.4335 27.8136 30.4848 28.0978 30.4848 28.4314C30.4848 28.8018 30.4206 29.1483 30.2923 29.4709C30.164 29.7936 29.977 30.0759 29.7313 30.3179C29.4893 30.5563 29.1886 30.7451 28.8293 30.8844C28.4736 31.0201 28.0685 31.0879 27.6138 31.0879C27.3645 31.0879 27.1096 31.0623 26.8493 31.0109C26.5926 30.9596 26.3433 30.8881 26.1013 30.7964C25.8593 30.7011 25.632 30.5893 25.4193 30.4609C25.2066 30.3326 25.0215 30.1896 24.8638 30.0319L25.4138 29.1629C25.4541 29.0969 25.511 29.0438 25.5843 29.0034C25.6576 28.9631 25.7365 28.9429 25.8208 28.9429C25.9308 28.9429 26.0408 28.9778 26.1508 29.0474C26.2645 29.1171 26.391 29.1941 26.5303 29.2784C26.6733 29.3628 26.8365 29.4398 27.0198 29.5094C27.2031 29.5791 27.4195 29.6139 27.6688 29.6139C28.0061 29.6139 28.2683 29.5406 28.4553 29.3939C28.6423 29.2436 28.7358 29.0071 28.7358 28.6844C28.7358 28.4974 28.6845 28.3453 28.5818 28.2279C28.4791 28.1106 28.3435 28.0134 28.1748 27.9364C28.0098 27.8594 27.821 27.7916 27.6083 27.7329C27.3956 27.6743 27.1775 27.6101 26.9538 27.5404C26.7301 27.4671 26.512 27.3791 26.2993 27.2764C26.0866 27.1701 25.896 27.0326 25.7273 26.8639C25.5623 26.6916 25.4285 26.4789 25.3258 26.2259C25.2231 25.9693 25.1718 25.6539 25.1718 25.2799C25.1718 24.9793 25.2323 24.6859 25.3533 24.3999C25.4743 24.1139 25.6521 23.8591 25.8868 23.6354C26.1215 23.4118 26.4093 23.2339 26.7503 23.1019C27.0913 22.9663 27.4818 22.8984 27.9218 22.8984C28.1675 22.8984 28.4058 22.9186 28.6368 22.9589C28.8715 22.9956 29.0933 23.0524 29.3023 23.1294C29.5113 23.2028 29.7056 23.2926 29.8853 23.3989C30.0686 23.5016 30.2318 23.6189 30.3748 23.7509L29.9128 24.6144Z",fill:"#265026"})]}),n4=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fillRule:"evenodd",fill:"#CFEAF8"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fillRule:"evenodd",fill:"#ABDBF3"}),(0,n.jsx)("path",{d:"M16.8968 22.9863V23.6573C16.8968 23.7527 16.8802 23.8462 16.8472 23.9378C16.8179 24.0295 16.7757 24.1157 16.7207 24.1963L12.9587 29.5698H16.7758V30.9998H10.5938V30.2848C10.5938 30.2005 10.6084 30.118 10.6377 30.0373C10.6671 29.953 10.7074 29.876 10.7587 29.8063L14.5317 24.4163H10.9017V22.9863H16.8968Z",fill:"#124F6E"}),(0,n.jsx)("path",{d:"M20.7826 30.9998H18.9126V22.9863H20.7826V30.9998Z",fill:"#124F6E"}),(0,n.jsx)("path",{d:"M25.1301 28.3213V30.9998H23.2711V22.9863H26.0981C26.6627 22.9863 27.1467 23.0542 27.5501 23.1898C27.9571 23.3218 28.2907 23.5052 28.5511 23.7398C28.8151 23.9745 29.0094 24.2513 29.1341 24.5703C29.2587 24.8893 29.3211 25.234 29.3211 25.6043C29.3211 26.004 29.2569 26.3707 29.1286 26.7043C29.0002 27.038 28.8041 27.324 28.5401 27.5623C28.2761 27.8007 27.9406 27.9877 27.5336 28.1233C27.1302 28.2553 26.6517 28.3213 26.0981 28.3213H25.1301ZM25.1301 26.9188H26.0981C26.5821 26.9188 26.9304 26.8033 27.1431 26.5723C27.3557 26.3413 27.4621 26.0187 27.4621 25.6043C27.4621 25.421 27.4346 25.2542 27.3796 25.1038C27.3246 24.9535 27.2402 24.8252 27.1266 24.7188C27.0166 24.6088 26.8754 24.5245 26.7031 24.4658C26.5344 24.4072 26.3327 24.3778 26.0981 24.3778H25.1301V26.9188Z",fill:"#124F6E"})]}),sre=({title:t="More",desc:e="Filled caret pointing right",width:s="7",height:o="5",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 5 7",width:s,height:o,className:classNames("i i-filledChevronRight",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("g",{children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 3.625L1 1v5.25z"})})]}),nre=null,v0=({title:t="Fill in the Blank",desc:e="Pencil writing on a surface",width:s="15",height:o="15",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 15 15",width:s,height:o,className:M()("i i-fillInTheBlank",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{d:"M2.488 8.246l5.25-5.25 1.4 1.4-5.25 5.25h-1.4v-1.4zm-.875 3.15h2.625a.794.794 0 0 0 .613-.262l6.125-6.125a.846.846 0 0 0 0-1.225L8.35 1.159a.846.846 0 0 0-1.225 0L1 7.284a.794.794 0 0 0-.263.612v2.625c0 .525.35.875.875.875zM.739 13.146h14v1.75h-14z"})]}),rre=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="16",role:a="img",title:c,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.793 2.793L9 0h7v7l-2.793-2.793-2.5 2.5a.997.997 0 0 1-1.414 0 1 1 0 0 1 0-1.414l2.5-2.5zm-5.086 6.5a1 1 0 0 1 0 1.414l-2.5 2.5L7 16H0V9l2.793 2.793 2.5-2.5a1 1 0 0 1 1.414 0zm-2.5-6.5l2.5 2.5a1 1 0 1 1-1.414 1.414l-2.5-2.5L0 7V0h7L4.207 2.793zm5.086 6.5a1 1 0 0 1 1.414 0l2.5 2.5L16 9v7H9l2.793-2.793-2.5-2.5a1 1 0 0 1 0-1.414z"})]}),are=null,ire=({title:t="Flashcard Block",desc:e="Flashcard Block",width:s="16",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 15",width:s,height:o,className:classNames("i i-flashcard-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"nonzero",d:"M2.759 1.9v3.2h3.2V1.9h-3.2zm5-.186v3.572c0 .925-.689 1.614-1.614 1.614H2.573C1.648 6.9.96 6.211.96 5.286V1.714C.959.79 1.648.1 2.573.1h3.572c.925 0 1.614.689 1.614 1.614zm8 0v3.572c0 .925-.689 1.614-1.614 1.614h-3.572c-.925 0-1.614-.689-1.614-1.614V1.714C8.959.79 9.648.1 10.573.1h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V1.9h-3.2zm-3 7.814v3.572c0 .925-.689 1.614-1.614 1.614H2.573c-.925 0-1.614-.689-1.614-1.614V9.714c0-.925.689-1.614 1.614-1.614h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V9.9h-3.2zm13-.186v3.572c0 .925-.689 1.614-1.614 1.614h-3.572c-.925 0-1.614-.689-1.614-1.614V9.714c0-.925.689-1.614 1.614-1.614h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V9.9h-3.2z"})]}),cre=null,C0=t=>(0,n.jsx)(is,{viewBox:"0 0 15 15",...t,children:(0,n.jsx)("path",{d:"M13.32 2.84H7.543L5.182.477a.794.794 0 0 0-.613-.262h-3.5c-.525 0-.875.35-.875.875v12.25c0 .525.35.875.875.875h12.25c.525 0 .875-.35.875-.875V3.715c0-.525-.35-.875-.875-.875"})});function dre(t){return jsxs(Icon,{...t,viewBox:"0 0 16 14",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.66675 1.66683C2.48994 1.66683 2.32037 1.73707 2.19534 1.86209C2.07032 1.98712 2.00008 2.15668 2.00008 2.3335V11.6668C2.00008 11.8436 2.07032 12.0132 2.19534 12.1382C2.32037 12.2633 2.48994 12.3335 2.66675 12.3335H13.3334C13.5102 12.3335 13.6798 12.2633 13.8048 12.1382C13.9298 12.0132 14.0001 11.8436 14.0001 11.6668V4.3335C14.0001 4.15669 13.9298 3.98712 13.8048 3.86209C13.6798 3.73707 13.5102 3.66683 13.3334 3.66683H7.33341C7.11051 3.66683 6.90236 3.55543 6.77871 3.36996L5.64329 1.66683H2.66675ZM1.25253 0.919282C1.62761 0.54421 2.13632 0.333496 2.66675 0.333496H6.00008C6.22298 0.333496 6.43114 0.444897 6.55478 0.630363L7.6902 2.3335H13.3334C13.8638 2.3335 14.3726 2.54421 14.7476 2.91928C15.1227 3.29436 15.3334 3.80306 15.3334 4.3335V11.6668C15.3334 12.1973 15.1227 12.706 14.7476 13.081C14.3726 13.4561 13.8638 13.6668 13.3334 13.6668H2.66675C2.13631 13.6668 1.62761 13.4561 1.25253 13.081C0.877462 12.706 0.666748 12.1973 0.666748 11.6668V2.3335C0.666748 1.80306 0.877462 1.29436 1.25253 0.919282Z"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.52868 5.86209C7.78903 5.60174 8.21114 5.60174 8.47149 5.86209L10.4715 7.86209C10.7318 8.12244 10.7318 8.54455 10.4715 8.8049L8.47149 10.8049C8.21114 11.0653 7.78903 11.0653 7.52868 10.8049C7.26833 10.5446 7.26833 10.1224 7.52868 9.86209L8.39061 9.00016H6.00008C5.63189 9.00016 5.33341 8.70169 5.33341 8.3335C5.33341 7.96531 5.63189 7.66683 6.00008 7.66683H8.39061L7.52868 6.8049C7.26833 6.54455 7.26833 6.12244 7.52868 5.86209Z"})]})}const ure=({title:t="Folder Empty",desc:e="Folder outline empty",width:s="47",height:o="47",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 47 47",width:s,height:o,className:classNames("i i-folder--empty",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M38.254 7.148a1 1 0 0 0-1-1h-20.16l.805.407L13.58.688a1 1 0 0 0-.805-.407H1.254a1 1 0 0 0-1 1v39.6c0 2.979 2.377 5.4 5.32 5.4a1 1 0 0 0 0-2c-1.83 0-3.32-1.518-3.32-3.4v-39.6l-1 1h11.52l-.805-.407 4.32 5.867a1 1 0 0 0 .805.407h20.16l-1-1v8.8a1 1 0 0 0 2 0v-8.8z"}),jsx("path",{d:"M9.587 40.931a3.341 3.341 0 0 1-3.333 3.35v2H40.92c2.946 0 5.333-2.396 5.333-5.35v-24.65a1 1 0 0 0-1-1H10.587a1 1 0 0 0-1 1v24.65zm1-23.65h34.667l-1-1v24.65a3.341 3.341 0 0 1-3.333 3.35H6.254c-1.333 0-1.333 2 0 2 2.946 0 5.333-2.396 5.333-5.35v-24.65l-1 1z"})]}),hre=null,mre=({title:t="Folder Outline",desc:e="Outline of a folder",width:s="24",height:o="24",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 24 24",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"nonzero",d:"M1 22l1 1V1L1 2h8l-.8-.4 3 4a1 1 0 0 0 .8.4h11l-1-1v18l1-1H1zm23 1V5a1 1 0 0 0-1-1H12l.8.4-3-4A1 1 0 0 0 9 0H1a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1z"})]}),pre=null,fre=({title:t="FolderSort",desc:e="Sort by Folders",width:s="13",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 13 13",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M12.188 13H.812C.326 13 0 12.675 0 12.187V.813C0 .325.325 0 .813 0h3.25c.243 0 .406.081.568.244l2.194 2.194h5.362c.488 0 .813.325.813.812v8.938c0 .487-.325.812-.813.812zM1.624 11.375h9.75V4.062H6.5a.738.738 0 0 1-.569-.243L3.737 1.625H1.625v9.75z"})]}),gre=null,vre=({title:t="Font",desc:e="A capital letter T with a second smaller capital T to the right",width:s="35",height:o="27",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 35 27",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fill:"none",fillRule:"nonzero",stroke:"#adaeaf",strokeWidth:"2",d:"M1 1v5h8.333v20h5V6h8.334V1H1zm32.667 10.333h-15v5h5V26h5v-9.667h5v-5z"})]}),Cre=null,xre=({title:t="Globe",desc:e="Globe",width:s="19",height:o="19",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 19 19",width:s,height:o,className:classNames("i i-globe",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M4.15769524,2.53322956 C4.63932973,2.88925044 5.03751114,3.34570647 5.40823525,3.96794145 C5.97414413,4.9157758 6.2516787,6.02609669 5.85626753,6.53734418 C5.64559032,6.80976807 5.27863332,7.04870264 4.59906802,7.38563956 C4.56195429,7.40404101 4.15115876,7.60501904 4.03281374,7.66469732 C3.06174656,8.15438101 2.62134185,8.5274042 2.62134185,9.19106658 C2.62134185,9.77848965 2.8670776,10.143914 3.69349999,11.0983957 C3.85142869,11.2807965 3.93671699,11.3811115 4.02505637,11.4900973 C4.12367053,11.6117594 4.20483266,11.7193674 4.2727145,11.8194858 C4.84834436,12.6694609 4.77200745,13.5511843 4.25729859,14.4129385 C4.08170647,14.7071739 3.78410363,14.9865768 3.41763909,15.2061757 C3.18076922,15.3481168 3.10381426,15.6552038 3.24575536,15.8920737 C3.38769646,16.1289435 3.69478343,16.2058985 3.9316533,16.0639574 C4.43162122,15.7643583 4.84942841,15.3721022 5.11591553,14.9255562 C5.81181883,13.7604362 5.92325351,12.4733188 5.10055468,11.2585219 C5.01488991,11.1321754 4.91717026,11.0026148 4.80190816,10.8604139 C4.70476725,10.7405694 4.61420364,10.6340496 4.44950069,10.4438249 C3.8226144,9.71979864 3.62134185,9.42049386 3.62134185,9.19106658 C3.62134185,9.07419172 3.86073966,8.87142156 4.48307754,8.5575929 C4.59496976,8.50116859 5.00134771,8.30235182 5.0432777,8.28156242 C5.85532835,7.87893761 6.3137176,7.5804693 6.6473012,7.14911679 C7.39446447,6.18307089 7.03367102,4.7396597 6.26707989,3.45570549 C5.83153882,2.72467927 5.34597397,2.16805107 4.75211889,1.7290775 C4.53005843,1.56493195 4.21697659,1.61188125 4.05283104,1.83394171 C3.88868548,2.05600217 3.93563479,2.36908401 4.15769524,2.53322956 Z"}),jsx("path",{d:"M15.9274178,3.45664974 C14.6004878,4.09276486 12.3393613,4.73270135 11.6937611,4.77915598 C11.4666512,4.79547134 11.3771847,4.73864556 11.195027,4.45853539 C11.1462928,4.38359511 10.7504054,3.6936084 10.5821373,3.43784093 C10.425644,3.19997107 10.339693,3.09688541 9.86359475,2.55040589 C9.70948554,2.37351482 9.60949422,2.25531188 9.51628801,2.13775915 C9.23271994,1.78011986 9.09921141,1.52300849 9.09921141,1.3648231 C9.09921141,1.11278527 9.12320107,0.930636255 9.17751114,0.762560883 C9.26241817,0.499795956 9.11823586,0.217952144 8.85547094,0.13304511 C8.59270601,0.0481380761 8.3108622,0.192320386 8.22595516,0.455085313 C8.13655583,0.731752726 8.09921141,1.01530196 8.09921141,1.3648231 C8.09921141,1.81446338 8.31831307,2.23641042 8.73270833,2.75905045 C8.83776299,2.89154659 8.94612936,3.01964994 9.1096035,3.20729035 C9.54512458,3.70719422 9.62671667,3.80505198 9.74672026,3.98745744 C9.89309496,4.20994697 10.287216,4.8968552 10.3567012,5.00370495 C10.720175,5.56263107 11.1290049,5.82230465 11.7654734,5.77658134 C12.5422215,5.72068987 14.924201,5.04654998 16.3597007,4.35838776 C16.6087088,4.23901613 16.7137999,3.94038536 16.5944283,3.69137728 C16.4750566,3.4423692 16.1764259,3.3372781 15.9274178,3.45664974 Z"}),jsx("path",{d:"M1.2734375,9.19106658 C1.2734375,13.669272 4.9039277,17.2997622 9.38213315,17.2997622 C13.8603386,17.2997622 17.4908288,13.669272 17.4908288,9.19106658 C17.4908288,4.71286112 13.8603386,1.08237092 9.38213315,1.08237092 C4.9039277,1.08237092 1.2734375,4.71286112 1.2734375,9.19106658 Z M0.2734375,9.19106658 C0.2734375,4.16057638 4.35164295,0.0823709239 9.38213315,0.0823709239 C14.4126234,0.0823709239 18.4908288,4.16057638 18.4908288,9.19106658 C18.4908288,14.2215568 14.4126234,18.2997622 9.38213315,18.2997622 C4.35164295,18.2997622 0.2734375,14.2215568 0.2734375,9.19106658 Z"}),jsx("path",{d:"M14.3715535,9.90496445 C14.3581129,8.89264785 13.3796403,8.05032745 12.1323766,8.05032745 C10.8411631,8.05032745 9.78378353,8.92591333 9.88993195,9.84067954 C10.0017837,10.8072936 10.0001199,11.5480355 9.92990326,12.5726092 C9.83834235,13.9086299 9.86171907,14.0058198 10.353835,14.2067901 C11.6057772,14.7177493 14.3993835,11.94782 14.3715535,9.90496445 Z M15.371463,9.89151561 C15.4079605,12.5706026 11.9935373,15.9560871 9.97586392,15.1326075 C8.92147211,14.7020151 8.81263479,14.2495182 8.93224338,12.504237 C8.99863249,11.5355135 9.00016994,10.8510127 8.89657883,9.95578626 C8.7121825,8.36669535 10.3018615,7.05032745 12.1323766,7.05032745 C13.8988751,7.05032745 15.35033,8.2998158 15.371463,9.89151561 Z"})]}),Ere=null,Tre=t=>jsxs(Icon,{...t,viewBox:"0 0 16 16",children:[jsx("path",{d:"M6,0 L1,0 C0.4,0 0,0.4 0,1 L0,6 C0,6.6 0.4,7 1,7 L6,7 C6.6,7 7,6.6 7,6 L7,1 C7,0.4 6.6,0 6,0"}),jsx("path",{d:"M15,0 L10,0 C9.4,0 9,0.4 9,1 L9,6 C9,6.6 9.4,7 10,7 L15,7 C15.6,7 16,6.6 16,6 L16,1 C16,0.4 15.6,0 15,0"}),jsx("path",{d:"M15,9 L10,9 C9.4,9 9,9.4 9,10 L9,15 C9,15.6 9.4,16 10,16 L15,16 C15.6,16 16,15.6 16,15 L16,10 C16,9.4 15.6,9 15,9"}),jsx("path",{d:"M6,9 L1,9 C0.4,9 0,9.4 0,10 L0,15 C0,15.6 0.4,16 1,16 L6,16 C6.6,16 7,15.6 7,15 L7,10 C7,9.4 6.6,9 6,9"})]}),Sre=null,Lre=({title:t="Group",desc:e="Silhouettes of two people",width:s="18",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 18 17",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M4.5 8.25C3.50544 8.25 2.55161 7.85491 1.84835 7.15165C1.14509 6.44839 0.75 5.49456 0.75 4.5C0.75 3.50544 1.14509 2.55161 1.84835 1.84835C2.55161 1.14509 3.50544 0.75 4.5 0.75C5.49456 0.75 6.44839 1.14509 7.15165 1.84835C7.85491 2.55161 8.25 3.50544 8.25 4.5C8.25 5.49456 7.85491 6.44839 7.15165 7.15165C6.44839 7.85491 5.49456 8.25 4.5 8.25ZM4.5 6.75C5.09674 6.75 5.66903 6.51295 6.09099 6.09099C6.51295 5.66903 6.75 5.09674 6.75 4.5C6.75 3.90326 6.51295 3.33097 6.09099 2.90901C5.66903 2.48705 5.09674 2.25 4.5 2.25C3.90326 2.25 3.33097 2.48705 2.90901 2.90901C2.48705 3.33097 2.25 3.90326 2.25 4.5C2.25 5.09674 2.48705 5.66903 2.90901 6.09099C3.33097 6.51295 3.90326 6.75 4.5 6.75ZM13.5 12.25C12.5054 12.25 11.5516 11.8549 10.8483 11.1517C10.1451 10.4484 9.75 9.49456 9.75 8.5C9.75 7.50544 10.1451 6.55161 10.8483 5.84835C11.5516 5.14509 12.5054 4.75 13.5 4.75C14.4946 4.75 15.4484 5.14509 16.1517 5.84835C16.8549 6.55161 17.25 7.50544 17.25 8.5C17.25 9.49456 16.8549 10.4484 16.1517 11.1517C15.4484 11.8549 14.4946 12.25 13.5 12.25ZM13.5 10.75C14.0967 10.75 14.669 10.5129 15.091 10.091C15.5129 9.66903 15.75 9.09674 15.75 8.5C15.75 7.90326 15.5129 7.33097 15.091 6.90901C14.669 6.48705 14.0967 6.25 13.5 6.25C12.9033 6.25 12.331 6.48705 11.909 6.90901C11.4871 7.33097 11.25 7.90326 11.25 8.5C11.25 9.09674 11.4871 9.66903 11.909 10.091C12.331 10.5129 12.9033 10.75 13.5 10.75Z",fill:"black"}),jsx("path",{d:"M8.75 11.5C8.75 11.6989 8.67098 11.8897 8.53033 12.0303C8.38968 12.171 8.19891 12.25 8 12.25C7.80109 12.25 7.61032 12.171 7.46967 12.0303C7.32902 11.8897 7.25 11.6989 7.25 11.5C7.25 10.7707 6.96027 10.0712 6.44454 9.55546C5.92882 9.03973 5.22935 8.75 4.5 8.75C3.77065 8.75 3.07118 9.03973 2.55546 9.55546C2.03973 10.0712 1.75 10.7707 1.75 11.5C1.75 11.5985 1.7306 11.696 1.69291 11.787C1.65522 11.878 1.59997 11.9607 1.53033 12.0303C1.46069 12.1 1.37801 12.1552 1.28701 12.1929C1.19602 12.2306 1.09849 12.25 1 12.25C0.901509 12.25 0.803982 12.2306 0.712987 12.1929C0.621993 12.1552 0.539314 12.1 0.46967 12.0303C0.400026 11.9607 0.344781 11.878 0.30709 11.787C0.269399 11.696 0.25 11.5985 0.25 11.5C0.25 10.9419 0.359929 10.3892 0.573512 9.8736C0.787094 9.35796 1.10015 8.88944 1.4948 8.4948C1.88945 8.10015 2.35796 7.78709 2.8736 7.57351C3.38923 7.35993 3.94188 7.25 4.5 7.25C5.05812 7.25 5.61077 7.35993 6.1264 7.57351C6.64204 7.78709 7.11055 8.10015 7.5052 8.4948C7.89985 8.88944 8.21291 9.35796 8.42649 9.8736C8.64007 10.3892 8.75 10.9419 8.75 11.5ZM17.75 15.402C17.75 15.6009 17.671 15.7917 17.5303 15.9323C17.3897 16.073 17.1989 16.152 17 16.152C16.8011 16.152 16.6103 16.073 16.4697 15.9323C16.329 15.7917 16.25 15.6009 16.25 15.402C16.25 14.6727 15.9603 13.9732 15.4445 13.4575C14.9288 12.9417 14.2293 12.652 13.5 12.652C12.7707 12.652 12.0712 12.9417 11.5555 13.4575C11.0397 13.9732 10.75 14.6727 10.75 15.402C10.75 15.6009 10.671 15.7917 10.5303 15.9323C10.3897 16.073 10.1989 16.152 10 16.152C9.80109 16.152 9.61032 16.073 9.46967 15.9323C9.32902 15.7917 9.25 15.6009 9.25 15.402C9.25 14.2748 9.69777 13.1938 10.4948 12.3968C11.2918 11.5998 12.3728 11.152 13.5 11.152C14.6272 11.152 15.7082 11.5998 16.5052 12.3968C17.3022 13.1938 17.75 14.2748 17.75 15.402Z",fill:"black"})]}),bre=null;function o4(t){return(0,n.jsx)(is,{viewBox:"0 0 20 14",...t,children:(0,n.jsx)("path",{d:"M0 0H20V2H0V0Z M0 6H20V8H0V6Z M20 12H0V14H20V12Z"})})}const x0=({className:t,decorative:e=!0,desc:s="Heart",focusable:o="false",height:r="16",isFilled:a=!0,title:c="Heart",width:d="16"})=>(0,n.jsxs)("svg",{"aria-hidden":e,viewBox:"0 0 16 16",width:d,height:r,className:M()(`i i-heart${a?"Filled":"Outline"}`,t),focusable:o,children:[(0,n.jsx)("title",{children:c}),(0,n.jsx)("desc",{children:s}),(0,n.jsx)("path",{d:"M11.15 1C9.838 1 8.7 1.7 8 2.75 7.3 1.7 6.162 1 4.85 1 2.75 1 1 2.75 1 4.85c0 3.85 7 9.538 7 9.538S15 8.7 15 4.85C15 2.75 13.25 1 11.15 1"})]}),Ire=({title:t="Hidden",desc:e="Eye crossed out",width:s="16",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 14",width:s,height:o,className:classNames("i i-hidden",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M15.9,6.3c-0.1-0.1-1-1.8-2.7-3.3l1.3-1.3c0.4-0.4,0.4-1,0-1.4s-1-0.4-1.4,0l-1.6,1.6c-1-0.6-2.2-1-3.6-1 c-4.8,0-7.7,5.3-7.9,5.5C0,6.6,0,7,0.1,7.3c0.1,0.1,1,1.8,2.7,3.3l-1,1c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3S3,13.2,3.2,13 l1.2-1.2c1,0.6,2.2,1,3.6,1h0c4.7,0,7.7-5.3,7.9-5.5C16,7,16,6.6,15.9,6.3z M2.2,6.8c0.8-1.2,3-4,5.8-4c0.7,0,1.4,0.2,2.1,0.5 L8.5,4.9C8.4,4.8,8.2,4.8,8,4.8c-1.1,0-1.9,0.9-2,2c0,0.2,0,0.4,0.1,0.5L4.2,9.2C3.3,8.3,2.6,7.4,2.2,6.8z M8,10.8 c-0.7,0-1.4-0.2-2.1-0.5l1.6-1.6c0.2,0,0.3,0.1,0.5,0.1c0,0,0.1,0,0.1,0c1.1,0,2-0.9,2-2c0-0.2,0-0.3-0.1-0.5l1.8-1.8 c1,0.8,1.7,1.8,2,2.4C13,8,10.8,10.8,8,10.8z"})]}),Nre=null,jre=({title:t="Image Block",desc:e="Image Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 17 17",width:s,height:o,className:classNames("i i-image-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M15.992.5c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-13 2v12h12v-12h-12zm4.1 8.3l-2.1 2.1-1.4-1.4 3.3-3.3 3 2 3.1-3.1 1.4 1.4-4.3 4.3-3-2zm.9-6.3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})]}),Are=null,Rre=({title:t="Labeled Graphic Block",desc:e="Labeled Graphic Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 17 17",width:s,height:o,className:classNames("i i-labeled-graphic-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M13.753 16.5h-12a1 1 0 0 1-1-1v-12a1 1 0 0 1 1-1h7v2h-6v10h10v-6h2v7a1 1 0 0 1-1 1zm0-16a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"})]}),Ore=null,Pre=({title:t="Label Set",desc:e="Label Set",width:s="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 18 18",width:s,height:o,className:classNames("i i-labelSet",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M17.63,9.76,8.24.37A.59.59,0,0,0,7.83.2h-7A.59.59,0,0,0,.2.78v7a.59.59,0,0,0,.17.42l9.39,9.39a.59.59,0,0,0,.83,0l7-7A.59.59,0,0,0,17.63,9.76ZM1.37,7.58V1.37H7.58l8.8,8.8-6.21,6.21Z"}),jsx("path",{d:"M5.48,3.33A2.15,2.15,0,1,0,7.63,5.48,2.15,2.15,0,0,0,5.48,3.33Zm0,3.13a1,1,0,1,1,1-1A1,1,0,0,1,5.48,6.46Z"})]}),Mre=null;function Dre(t){return jsxs(Icon,{fill:"none",stroke:"currentColor",viewBox:"0 0 13 14",...t,children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.57031 1 L1 3.85715 L6.57031 6.71431 L12.1406 3.85715 L6.57031 1 Z",strokeWidth:"1.37143",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M1 6.71431 L6.57031 9.57147 L12.1406 6.71431",strokeWidth:"1.37143",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M1 9.57147 L6.57031 12.42863 L12.1406 9.57147",strokeWidth:"1.37143",strokeLinecap:"round",strokeLinejoin:"round"})]})}const kre=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="15",role:a="img",title:c,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 0h16v2H0V0zm0 13h16v2H0v-2zm1-9h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z"})]}),wre=null,Bre=({title:t="Lesson",desc:e="Lesson Icon",width:s="23",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 23 17",width:s,height:o,className:classNames("i i-lesson",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"nonzero",d:"M1.898 16.692a1 1 0 0 1 0-2h11.428a1 1 0 0 1 0 2H1.898zm0-7.083a1 1 0 0 1 0-2h19.286a1 1 0 0 1 0 2H1.898zm0-7.084a1 1 0 0 1 0-2h15a1 1 0 1 1 0 2h-15z"})]}),_re=null,Ure=t=>jsxs(Icon,{...t,viewBox:"0 0 16 16",children:[jsx("path",{d:"M0 1C0 0.447715 0.447715 0 1 0H15C15.5523 0 16 0.447715 16 1V2.5C16 3.05228 15.5523 3.5 15 3.5H1C0.447715 3.5 0 3.05228 0 2.5V1Z"}),jsx("path",{d:"M0 13.6667C0 13.0223 0.447715 12.5 1 12.5H15C15.5523 12.5 16 13.0223 16 13.6667V14.8333C16 15.4777 15.5523 16 15 16H1C0.447715 16 0 15.4777 0 14.8333V13.6667Z"}),jsx("path",{d:"M0 7.25C0 6.69772 0.447715 6.25 1 6.25H15C15.5523 6.25 16 6.69772 16 7.25V8.75C16 9.30228 15.5523 9.75 15 9.75H1C0.447715 9.75 0 9.30228 0 8.75V7.25Z"})]}),Hre=null,Fre=({title:t="List Block",desc:e="List Block",width:s="16",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 13",width:s,height:o,className:classNames("i i-list-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M1.495 10.252a1.25 1.25 0 1 1 0 2.502 1.25 1.25 0 0 1 0-2.502zm0-4.975a1.25 1.25 0 1 1 0 2.502 1.25 1.25 0 0 1 0-2.502zm0-5.031a1.25 1.25 0 1 1 0 2.501 1.25 1.25 0 0 1 0-2.501zm4 .257h10v2h-10v-2zm0 5h10v2h-10v-2zm0 5h10v2h-10v-2z"})]}),zre=null,Vre=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r,role:a="img",title:c,width:d})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 40",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 23C24 24.5064 23.1673 25.8183 21.9371 26.5005C21.9782 26.6602 22 26.8275 22 27V30C22 31.1046 21.1046 32 20 32C18.8954 32 18 31.1046 18 30V27C18 26.8275 18.0218 26.6602 18.0629 26.5005C16.8327 25.8183 16 24.5064 16 23C16 20.7909 17.7909 19 20 19C22.2091 19 24 20.7909 24 23ZM20 25C21.1046 25 22 24.1046 22 23C22 21.8954 21.1046 21 20 21C18.8954 21 18 21.8954 18 23C18 24.1046 18.8954 25 20 25Z",fill:"#000"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 10V13C8.68629 13 6 15.6863 6 19V32C6 35.3137 8.68629 38 12 38H28C31.3137 38 34 35.3137 34 32V19C34 15.6863 31.3137 13 28 13V10C28 5.58172 24.4183 2 20 2C15.5817 2 12 5.58172 12 10ZM20 4C16.6863 4 14 6.68629 14 10V13H26V10C26 6.68629 23.3137 4 20 4ZM8 19C8 16.7909 9.79086 15 12 15H28C30.2091 15 32 16.7909 32 19V32C32 34.2091 30.2091 36 28 36H12C9.79086 36 8 34.2091 8 32V19Z",fill:"#000"})]}),Wre=null;function r4(t){return(0,n.jsx)(is,{viewBox:"0 0 20 22",...t,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 9V6C4 4.4087 4.63214 2.88258 5.75736 1.75736C6.88258 0.632141 8.4087 0 10 0C11.5913 0 13.1174 0.632141 14.2426 1.75736C15.3679 2.88258 16 4.4087 16 6V9H17C18.6569 9 20 10.3431 20 12V19C20 20.6569 18.6569 22 17 22H3C1.34315 22 0 20.6569 0 19V12C0 10.3431 1.34315 9 3 9H4ZM7.17157 3.17157C7.92172 2.42143 8.93913 2 10 2C11.0609 2 12.0783 2.42143 12.8284 3.17157C13.5786 3.92172 14 4.93913 14 6V9H6V6C6 4.93913 6.42143 3.92172 7.17157 3.17157Z"})})}const Gre=({title:t="Mail",desc:e="Mail",width:s="14",height:o="12",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 14 12",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M1.692.958a.55.55 0 0 0-.74.814l5.74 5.217c.209.19.53.19.74 0l5.738-5.217a.55.55 0 1 0-.74-.814l-5.369 4.88L1.692.959z"}),jsx("path",{d:"M1.872 10.206H12.25V1.915H1.872v8.291zM1.322.815H12.8a.55.55 0 0 1 .55.55v9.391a.55.55 0 0 1-.55.55H1.322a.55.55 0 0 1-.55-.55V1.365a.55.55 0 0 1 .55-.55z"})]}),Kre=null,a4=({title:t="Matching",desc:e="Two rows of stacked squares",width:s="15",height:o="15",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 15 15",width:s,height:o,className:M()("i i-matching",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{d:"M4.814 4.975H2.19V2.35h2.625v2.625zM5.69.6H1.314C.79.6.44.95.44 1.475V5.85c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V1.475C6.564.95 6.214.6 5.69.6zM12.69 4.975h-2.626V2.35h2.625v2.625zM13.563.6H9.19c-.525 0-.875.35-.875.875V5.85c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.475c0-.525-.35-.875-.875-.875zM4.814 12.85H2.19v-2.625h2.625v2.625zm.875-4.375H1.314c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875zM12.69 12.85h-2.626v-2.625h2.625v2.625zm.874-4.375H9.19c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875z"})]}),Qre=()=>jsxs("svg",{width:"60",height:"60",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M30 2.5C28.0109 2.5 26.1032 3.29018 24.6967 4.6967C23.2902 6.10322 22.5 8.01088 22.5 10V30C22.5 31.9891 23.2902 33.8968 24.6967 35.3033C26.1032 36.7098 28.0109 37.5 30 37.5C31.9891 37.5 33.8968 36.7098 35.3033 35.3033C36.7098 33.8968 37.5 31.9891 37.5 30V10C37.5 8.01088 36.7098 6.10322 35.3033 4.6967C33.8968 3.29018 31.9891 2.5 30 2.5V2.5Z",stroke:"#C9C9CA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M47.5 25V30C47.5 34.6413 45.6563 39.0925 42.3744 42.3744C39.0925 45.6563 34.6413 47.5 30 47.5C25.3587 47.5 20.9075 45.6563 17.6256 42.3744C14.3437 39.0925 12.5 34.6413 12.5 30V25",stroke:"#C9C9CA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M30 47.5V57.5",stroke:"#C9C9CA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M20 57.5H40",stroke:"#C9C9CA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})]}),Zre=null,Yre=({title:t="Move to Folder",desc:e="Folder with an arrow",width:s="15",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 15 15",width:s,height:o,className:classNames("i i-move",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M1.295 13.223l.584.583V.973l-.584.583h4.667l-.467-.233 1.75 2.333c.11.147.283.234.467.234h6.417l-.584-.584v10.5l.584-.583H1.295zm13.417.583v-10.5a.583.583 0 0 0-.583-.583H7.712l.467.233L6.429.623A.583.583 0 0 0 5.962.39H1.295a.583.583 0 0 0-.583.583v12.833c0 .322.261.584.583.584H14.13a.583.583 0 0 0 .583-.584z"}),jsx("path",{d:"M4.795 7.973a.583.583 0 0 0 0 1.167h5.834a.583.583 0 1 0 0-1.167H4.795z"}),jsx("path",{d:"M10.216 8.969v-.825l-2.333 2.333a.583.583 0 0 0 .825.825L11.04 8.97a.583.583 0 0 0 0-.825L8.708 5.81a.583.583 0 0 0-.825.824l2.333 2.334z"})]}),Xre=null,i4=({title:t="Multiple Choice",desc:e="Stacked circles to the left of stacked lines",width:s="16",height:o="16",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 16 16",width:s,height:o,className:M()("i i-multipleChoice",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm0-2A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"}),(0,n.jsx)("circle",{cx:"7.904",cy:"7.904",r:"1.904"})]}),c4=({title:t="Multiple Response",desc:e="A box with a checkmark in it",width:s="16",height:o="16",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 16 16",width:s,height:o,className:M()("i i-multipleResponse",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{d:"M15.142.332c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-1 14v-12h-12v12h12zm-7.978-3.308l-2-2-.707-.708L4.87 6.902l.707.707 1.3 1.3 3.317-3.33.707-.708 1.414 1.414-.707.707-4.03 4.032-.708.707-.707-.707z"})]}),eae=({"aria-hidden":t,title:e="New Folder",desc:s="Folder with plus sign",width:o="14",height:r="14",className:a,focusable:c="false"})=>jsxs("svg",{"aria-hidden":t,viewBox:"0 0 14 14",width:o,height:r,className:classNames("i i-newFolder",a),focusable:c,children:[e&&jsx("title",{children:e}),jsx("desc",{children:s}),jsx("path",{d:"M13.125 2.625c.525 0 .875.35.875.875v9.625c0 .525-.35.875-.875.875H.875C.35 14 0 13.65 0 13.125V.875C0 .35.35 0 .875 0h3.5c.263 0 .438.087.612.262L7.35 2.625h5.775zM10 7H8V5H6v2H4v2h2v2h2V9h2V7z"})]}),tae=null,sae=({title:t="New Slide",desc:e="New Slide",width:s="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 16",width:s,height:o,className:classNames("i i-new-slide",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M7,12h2V9h3V7H9V4H7v3H4v2h3V12z"}),jsx("path",{fillRule:"evenodd",d:"M14,14H2V2h12V14z M15,0H1C0.4,0,0,0.4,0,1v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1V1C15.9,0.4,15.5,0,15,0z"})]}),nae=null,oae=({title:t="Next Slide",desc:e="Next Slide",width:s="16",height:o="13.4",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 13.4",width:s,height:o,className:classNames("i i-next-slide",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M9.3,0L7.9,1.4l4.3,4.3H0v2h12.2L7.9,12l1.4,1.4L16,6.7L9.3,0"})]}),rae=null,l4=({title:t="Not Allowed",desc:e="A circle with a slanted line through it",width:s="12",height:o="12",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 12 12",width:s,height:o,className:M()("i i-notAllowed",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{fill:"#FFF",fillRule:"evenodd",d:"M6 10.5c-.975 0-1.875-.3-2.625-.825l6.3-6.3c.525.75.825 1.65.825 2.625 0 2.475-2.025 4.5-4.5 4.5m0-9c.975 0 1.875.3 2.625.825l-6.3 6.3A4.546 4.546 0 0 1 1.5 6c0-2.475 2.025-4.5 4.5-4.5M6 0C2.7 0 0 2.7 0 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6"})]}),iae=({className:t})=>jsxs("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.26256 1.09594C1.59075 0.767748 2.03587 0.583374 2.5 0.583374H6.58333C6.73804 0.583374 6.88642 0.644832 6.99581 0.754228L11.0791 4.83756C11.1885 4.94696 11.25 5.09533 11.25 5.25004V11.6667C11.25 12.1308 11.0656 12.576 10.7374 12.9041C10.4092 13.2323 9.96413 13.4167 9.5 13.4167H2.5C2.03587 13.4167 1.59075 13.2323 1.26256 12.9041C0.934374 12.576 0.75 12.1308 0.75 11.6667V2.33337C0.75 1.86925 0.934374 1.42413 1.26256 1.09594ZM2.5 1.75004C2.34529 1.75004 2.19692 1.8115 2.08752 1.92089C1.97812 2.03029 1.91667 2.17866 1.91667 2.33337V11.6667C1.91667 11.8214 1.97812 11.9698 2.08752 12.0792C2.19692 12.1886 2.34529 12.25 2.5 12.25H9.5C9.65471 12.25 9.80308 12.1886 9.91248 12.0792C10.0219 11.9698 10.0833 11.8214 10.0833 11.6667V5.49166L6.34171 1.75004H2.5Z"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.58333 0.583374C6.9055 0.583374 7.16667 0.844541 7.16667 1.16671V4.66671H10.6667C10.9888 4.66671 11.25 4.92787 11.25 5.25004C11.25 5.57221 10.9888 5.83337 10.6667 5.83337H6.58333C6.26117 5.83337 6 5.57221 6 5.25004V1.16671C6 0.844541 6.26117 0.583374 6.58333 0.583374Z"})]}),cae=null,lae=({title:t="Hide",desc:e="Shape of an eye with a stroke through it",width:s="20",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 20 16",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M3.23,12.35 L3.94,11.64 C2.73771334,10.6447807 1.76251115,9.40361431 1.08,8 C2.47,5 5.96,2 9.99,2 C11.0161024,2.00843654 12.0323067,2.20151536 12.99,2.57 L13.76,1.8 C12.5726697,1.28490674 11.2941824,1.01288817 10,1 C5.61,1 1.52,4.28 0,8 C0.716531693,9.68559192 1.82365735,11.1766125 3.23,12.35 L3.23,12.35 Z"}),jsx("path",{d:"M16.77,3.65 L16.06,4.36 C17.2622867,5.35521926 18.2374889,6.59638569 18.92,8 C17.53,11 14.04,14 10.01,14 C8.9838976,13.9915635 7.96769327,13.7984846 7.01,13.43 L6.24,14.2 C7.43352094,14.717712 8.71907199,14.9897863 10.02,15 C14.41,15 18.5,11.72 20.02,8 C19.297748,6.3123309 18.1836278,4.82112397 16.77,3.65 L16.77,3.65 Z"}),jsx("rect",{transform:"translate(9.992148, 7.999769) rotate(-45.000000) translate(-9.992148, -7.999769) ",x:"-0.61285173",y:"7.29476926",width:"21.21",height:"1.41"})]}),dae=null,uae=t=>jsxs(Icon,{viewBox:"0 0 16 16",...t,children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.33351 13.3333C7.33351 12.9651 7.63199 12.6667 8.00018 12.6667H14.0002C14.3684 12.6667 14.6668 12.9651 14.6668 13.3333C14.6668 13.7015 14.3684 14 14.0002 14H8.00018C7.63199 14 7.33351 13.7015 7.33351 13.3333Z"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0002 2.58579C11.8019 2.58579 11.6118 2.66455 11.4716 2.80474L3.26882 11.0075L2.91642 12.4171L4.32601 12.0647L12.5288 3.86193C12.5982 3.79251 12.6533 3.7101 12.6908 3.61941C12.7284 3.52871 12.7477 3.4315 12.7477 3.33333C12.7477 3.23516 12.7284 3.13796 12.6908 3.04726C12.6533 2.95656 12.5982 2.87415 12.5288 2.80474C12.4594 2.73532 12.3769 2.68026 12.2863 2.64269C12.1956 2.60512 12.0983 2.58579 12.0002 2.58579ZM10.5288 1.86193C10.919 1.47169 11.4483 1.25245 12.0002 1.25245C12.2734 1.25245 12.544 1.30628 12.7965 1.41085C13.049 1.51542 13.2784 1.6687 13.4716 1.86193C13.6648 2.05516 13.8181 2.28455 13.9227 2.53701C14.0272 2.78948 14.0811 3.06007 14.0811 3.33333C14.0811 3.6066 14.0272 3.87719 13.9227 4.12965C13.8181 4.38212 13.6648 4.61151 13.4716 4.80474L5.13825 13.1381C5.05281 13.2235 4.94576 13.2841 4.82853 13.3134L2.16187 13.9801C1.93468 14.0369 1.69436 13.9703 1.52877 13.8047C1.36319 13.6392 1.29662 13.3988 1.35342 13.1716L2.02008 10.505C2.04939 10.3878 2.11 10.2807 2.19544 10.1953L10.5288 1.86193Z"})]}),hae=null,mae=({title:t="Edit",desc:e="Pencil",width:s="11",height:o="11",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 10 10",width:s,height:o,className:classNames("i i-pencil",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M8.19.19a.6.6,0,0,0-.87,0L0,7.5V10H2.5L9.81,2.69a.6.6,0,0,0,0-.87Z"})]}),pae=null,fae=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="16",role:a="img",title:c,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.668 2.11458C12.5079 2.11458 12.3494 2.14611 12.2015 2.20737C12.0536 2.26863 11.9192 2.35842 11.8061 2.47161L2.93124 11.3464L2.2848 13.7167L4.6551 13.0703L13.5299 4.19546C13.6431 4.08227 13.7329 3.9479 13.7941 3.80001C13.8554 3.65212 13.8869 3.49361 13.8869 3.33353C13.8869 3.17346 13.8554 3.01495 13.7941 2.86706C13.7329 2.71917 13.6431 2.5848 13.5299 2.47161C13.4167 2.35842 13.2823 2.26863 13.1345 2.20737C12.9866 2.14611 12.8281 2.11458 12.668 2.11458ZM11.6913 0.975531C12.0009 0.847267 12.3328 0.78125 12.668 0.78125C13.0032 0.78125 13.335 0.847267 13.6447 0.975531C13.9544 1.1038 14.2357 1.2918 14.4727 1.5288C14.7097 1.7658 14.8977 2.04716 15.026 2.35682C15.1543 2.66648 15.2203 2.99837 15.2203 3.33353C15.2203 3.6687 15.1543 4.00059 15.026 4.31025C14.8977 4.61991 14.7097 4.90127 14.4727 5.13827L5.47272 14.1383C5.39069 14.2203 5.28866 14.2795 5.17673 14.31L1.51006 15.31C1.27925 15.373 1.03241 15.3074 0.863246 15.1383C0.69408 14.9691 0.628527 14.7223 0.691475 14.4915L1.69148 10.8248C1.722 10.7129 1.78121 10.6108 1.86325 10.5288L10.8632 1.5288C11.1002 1.2918 11.3816 1.1038 11.6913 0.975531Z",fill:"currentColor"})]}),gae=null,vae=({title:t="Person",desc:e="Person outline",width:s="16",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{width:s,height:o,viewBox:"0 0 16 18",className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M1.72039 11.8884C2.50179 11.107 3.5616 10.668 4.66667 10.668H11.3333C12.4384 10.668 13.4982 11.107 14.2796 11.8884C15.061 12.6698 15.5 13.7296 15.5 14.8346V16.5013C15.5 16.9615 15.1269 17.3346 14.6667 17.3346C14.2064 17.3346 13.8333 16.9615 13.8333 16.5013V14.8346C13.8333 14.1716 13.5699 13.5357 13.1011 13.0669C12.6323 12.598 11.9964 12.3346 11.3333 12.3346H4.66667C4.00363 12.3346 3.36774 12.598 2.8989 13.0669C2.43006 13.5357 2.16667 14.1716 2.16667 14.8346V16.5013C2.16667 16.9615 1.79357 17.3346 1.33333 17.3346C0.873096 17.3346 0.5 16.9615 0.5 16.5013V14.8346C0.5 13.7296 0.938987 12.6698 1.72039 11.8884Z"}),jsx("path",{d:"M8 2.33464C6.61929 2.33464 5.5 3.45392 5.5 4.83464C5.5 6.21535 6.61929 7.33464 8 7.33464C9.38071 7.33464 10.5 6.21535 10.5 4.83464C10.5 3.45392 9.38071 2.33464 8 2.33464ZM3.83333 4.83464C3.83333 2.53345 5.69881 0.667969 8 0.667969C10.3012 0.667969 12.1667 2.53345 12.1667 4.83464C12.1667 7.13582 10.3012 9.0013 8 9.0013C5.69881 9.0013 3.83333 7.13582 3.83333 4.83464Z"})]}),Cae=null;class E0 extends m.Component{constructor(...e){super(...e),this.maskId=`person-unknown-mask-${rt()()}`,this.pathId=`person-unknown-path-${rt()()}`}render(){const{title:e="Person Unknown",desc:s,width:o="38",height:r="38",className:a,decorative:c,focusable:d="false"}=this.props;return(0,n.jsxs)("svg",{"aria-hidden":c,viewBox:"0 0 38 38",width:o,height:r,className:M()("i i-person-unknown",a),focusable:d,children:[e&&(0,n.jsx)("title",{children:e}),s&&(0,n.jsx)("desc",{children:s}),(0,n.jsx)("defs",{children:(0,n.jsx)("circle",{id:this.pathId,cx:"19",cy:"19",r:"19"})}),(0,n.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,n.jsx)("mask",{id:this.maskId,fill:"#fff",children:(0,n.jsx)("use",{href:`#${this.pathId}`})}),(0,n.jsx)("use",{fill:"#D8D8D8",href:`#${this.pathId}`}),(0,n.jsx)("path",{d:"M15.1239928,24 C12.6645753,22.6352711 11,20.0120267 11,17 C11,12.581722 14.581722,9 19,9 C23.418278,9 27,12.581722 27,17 C27,20.0120267 25.3354247,22.6352711 22.8760072,24 L23,24 C27.4182847,24 31,27.5817153 31,32 L31,43 C31,43.5522847 30.5522847,44 30,44 L8,44 C7.44771525,44 7,43.5522847 7,43 L7,32 C7,27.5817153 10.5817153,24 15,24 L15.1239928,24 Z",fill:"#ADAEAF",fillRule:"nonzero",mask:`url(#${this.maskId})`})]})]})}}const mp=({title:t="Pick One",desc:e="Pick One",width:s="16",height:o="14",className:r,focusable:a="false","aria-hidden":c})=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 16 14",className:M()("i i-pickOne",r),focusable:a,"aria-hidden":c,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsxs)("g",{fillRule:"evenodd",children:[(0,n.jsx)("path",{fillRule:"nonzero",d:"M5.039 10.865A1.284 1.284 0 1 1 3.754 9.58v-1.6a2.884 2.884 0 1 0-.001 5.768 2.884 2.884 0 0 0 0-5.768v1.6c.71 0 1.286.575 1.286 1.285zM5.039 3.851a1.284 1.284 0 1 1-1.285-1.285v-1.6a2.884 2.884 0 1 0-.001 5.769 2.884 2.884 0 0 0 0-5.769v1.6c.71 0 1.286.575 1.286 1.285z"}),(0,n.jsx)("path",{d:"M8.862 1.324h7v2h-7zM8.862 4.324h7v2h-7zM8.862 8.324h7v2h-7zM8.862 11.324h7v2h-7z"})]})]}),Eae=({title:t="Play",desc:e="Triangle facing right that will play the media",width:s="16",height:o="22",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 22",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("desc",{children:e}),jsx("title",{children:t}),jsx("g",{transform:"translate(-124 -107)",children:jsx("path",{d:"M139.493031,116.612695 L126.142419,107.267267 C125.207876,106.599736 124.006321,107.267267 124.006321,108.335316 L124.006321,127.026172 C124.006321,128.094221 125.207876,128.761751 126.142419,128.094221 L139.493031,118.748793 C140.160561,118.214768 140.160561,117.146719 139.493031,116.612695"})})]}),Tae=null,Sae=({title:t="Process Block",desc:e="Process Block",width:s="29",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 29 17",width:s,height:o,className:classNames("i i-process-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M21.22 16.5h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1zm-13-2h12v-12h-12v12zm2-10h7v2h-7v-2zm0 3h8v2h-8v-2zm0 3h6v2h-6v-2zm14.413-3.293a1 1 0 0 1 1.415-1.414l2.121 2.121a1 1 0 0 1 0 1.414l-2.121 2.122a1 1 0 0 1-1.415-1.414l1.415-1.415-1.415-1.414zM2.4 8.621l1.415 1.415A1 1 0 0 1 2.4 11.45L.28 9.328a1 1 0 0 1 0-1.414L2.4 5.793a1 1 0 0 1 1.415 1.414L2.4 8.621z"})]}),Lae=null;function d4(t){return(0,n.jsxs)(is,{viewBox:"0 0 16 16",...t,children:[(0,n.jsx)("path",{d:"M14,14 L2,14 L2,2 L14,2 L14,14 Z M15,0 L1,0 C0.4,0 0,0.4 0,1 L0,15 C0,15.6 0.4,16 1,16 L15,16 C15.6,16 16,15.6 16,15 L16,1 C16,0.4 15.6,0 15,0 L15,0 Z"}),(0,n.jsx)("path",{d:"M7.9997,11 C8.5517,11 8.9997,11.448 8.9997,12 C8.9997,12.552 8.5517,13 7.9997,13 C7.4477,13 6.9997,12.552 6.9997,12 C6.9997,11.448 7.4477,11 7.9997,11"}),(0,n.jsx)("path",{d:"M7.0997,5.5 C7.2997,5.2 7.5997,5 7.9997,5 C8.5997,5 8.9997,5.4 8.9997,6 C8.9997,6.3 8.8997,6.4 8.3997,6.7 C7.7997,7.1 6.9997,7.7 6.9997,9 L6.9997,10 L8.9997,10 L8.9997,9 C8.9997,8.8 8.9997,8.7 9.4997,8.4 C10.0997,8 10.9997,7.4 10.9997,6 C10.9997,4.3 9.6997,3 7.9997,3 C6.8997,3 5.8997,3.6 5.3997,4.5 L4.8997,5.4 L6.5997,6.4 L7.0997,5.5 Z"})]})}const bae=({title:t="Quiz",desc:e="Quiz Icon",width:s="25",height:o="25",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 25 25",width:s,height:o,className:classNames("i i-quiz",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"nonzero",d:"M1.078.609h22a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-22a1 1 0 0 1-1-1v-22a1 1 0 0 1 1-1zm1 2v20h20v-20h-20zm11 11.157a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1c1.048 0 2-.952 2-2 0-1.047-.952-2-2-2-.715 0-1.521.58-1.905 1.348a1 1 0 1 1-1.79-.895c.703-1.404 2.164-2.453 3.695-2.453 2.152 0 4 1.848 4 4 0 1.81-1.305 3.403-3 3.866v.134zm-2 3.843a1 1 0 1 1 2 0v1a1 1 0 1 1-2 0v-1z"})]}),yae=null,Iae=t=>jsx(Icon,{...t,viewBox:"0 0 10 13",children:jsx("path",{d:"M2.81 5.188H8.5V12a.75.75 0 1 0 1.5 0V4.437a.75.75 0 0 0-.75-.75H2.81L4.969 1.53A.75.75 0 0 0 3.908.47L.47 3.907a.75.75 0 0 0 0 1.06l3.437 3.438a.75.75 0 0 0 1.06-1.06L2.812 5.188z"})}),Nae=null;function pp(t){return(0,n.jsxs)(is,{viewBox:"0 0 15 14",...t,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.666669 1.00005C1.03486 1.00005 1.33334 1.29853 1.33334 1.66672V5.00005H4.66667C5.03486 5.00005 5.33334 5.29853 5.33334 5.66672C5.33334 6.0349 5.03486 6.33338 4.66667 6.33338H0.666669C0.298479 6.33338 2.01494e-06 6.0349 2.01494e-06 5.66672V1.66672C2.01494e-06 1.29853 0.298479 1.00005 0.666669 1.00005Z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.07024 0.404628C8.50152 0.203255 9.95947 0.472493 11.2244 1.17177C12.4894 1.87106 13.4928 2.9625 14.0835 4.28165C14.6742 5.60081 14.8202 7.07621 14.4995 8.48555C14.1788 9.89489 13.4088 11.1618 12.3054 12.0955C11.202 13.0291 9.82511 13.5789 8.38212 13.6619C6.93913 13.745 5.50824 13.3568 4.30504 12.5559C3.10184 11.755 2.19151 10.5848 1.71122 9.22158C1.58887 8.87431 1.7712 8.49361 2.11847 8.37127C2.46574 8.24892 2.84644 8.43125 2.96879 8.77852C3.35302 9.86911 4.08128 10.8053 5.04384 11.446C6.0064 12.0867 7.15112 12.3972 8.30551 12.3308C9.4599 12.2644 10.5614 11.8245 11.4441 11.0776C12.3268 10.3307 12.9429 9.31717 13.1994 8.18969C13.456 7.06222 13.3392 5.8819 12.8666 4.82658C12.3941 3.77125 11.5913 2.8981 10.5794 2.33867C9.56739 1.77925 8.40102 1.56386 7.256 1.72496C6.11098 1.88606 5.04933 2.41492 4.23101 3.23185C4.22625 3.2366 4.22142 3.24128 4.21652 3.24588L1.12319 6.15255C0.854867 6.40468 0.432961 6.39155 0.180833 6.12323C-0.0712944 5.85491 -0.0581685 5.43301 0.210151 5.18088L3.29633 2.28094C4.31823 1.26392 5.64238 0.60552 7.07024 0.404628Z"})]})}function u4(t){return(0,n.jsx)(is,{viewBox:"0 0 28 28",...t,children:(0,n.jsx)("path",{d:"M0.602462 14.9446C-0.0244077 15.1759 -0.0720487 15.7437 0.0596979 16.4712C1.24525 23.0177 7.00549 28 13.9288 28C22.0136 28 28.5288 21.1924 27.9661 13.0292C27.4922 6.10378 21.8359 0.475002 14.8765 0.0329519C10.0788 -0.291229 5.72563 1.80126 2.97148 5.21978L1.63888 4.12944C1.07616 3.68748 0.217442 4.07044 0.217442 4.8072V9.84668C0.217442 10.4067 0.720862 10.8192 1.25405 10.7012L1.49079 10.6422L2.61619 10.4064L3.09007 10.318L6.22894 9.64027C6.93974 9.49288 7.17671 8.57935 6.58425 8.10777L4.98518 6.84067C7.32461 3.95266 11.0858 2.21377 15.2022 2.65593C20.4735 3.21591 24.738 7.45959 25.3303 12.7052C26.0709 19.5717 20.681 25.4068 13.9287 25.4068C8.30488 25.4068 3.62815 21.3639 2.64243 16.0542C2.51095 15.346 2.19718 14.5886 1.49075 14.7383L0.602462 14.9446Z",fill:"currentColor"})})}const jae=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="15",role:a="img",title:c,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 0h16v2H0V0zm0 13h16v2H0v-2zm7-9h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z"})]}),Aae=null;function h4(t){return(0,n.jsx)(is,{viewBox:"0 0 23 17",...t,children:(0,n.jsx)("path",{d:"M19.347 8.275l1.88 1.714a.727.727 0 0 0 .98-1.074l-3.225-2.941a.727.727 0 0 0-1.027.047l-2.94 3.224a.727.727 0 0 0 1.075.98l1.802-1.976a6.545 6.545 0 0 1-11.56 4.288.727.727 0 1 0-1.114.935 8 8 0 0 0 14.129-5.197zm-16.039.162l-1.79-1.633a.727.727 0 1 0-.98 1.074l3.223 2.94c.297.272.757.25 1.028-.046l2.94-3.224a.727.727 0 0 0-1.075-.98L4.768 8.636a6.545 6.545 0 0 1 11.555-4.482.727.727 0 1 0 1.114-.936A8 8 0 0 0 3.308 8.437z",fillRule:"nonzero"})})}const Rae=({width:t="16",height:e="16",className:s})=>jsx("svg",{"aria-hidden":"true",viewBox:"0 0 15.6 14.7",width:t,height:e,className:classNames("i i-search",s),focusable:"false",fill:"currentColor",children:jsx("path",{d:"M15.2,12.8l-2.9-2.9c0.5-1,0.9-2,0.9-3.2c0-3.6-2.9-6.5-6.5-6.5c-3.6,0-6.5,2.9-6.5,6.5s2.9,6.5,6.5,6.5c1.7,0,3.2-0.6,4.4-1.7l2.8,2.8c0.4,0.4,1,0.4,1.4,0C15.6,13.8,15.6,13.2,15.2,12.8z M6.7,11.2c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S9.1,11.2,6.7,11.2z"})}),Oae=null,Pae=t=>jsx(Icon,{...t,viewBox:"0 0 15 15",children:jsx("path",{d:"M13.32 2.844c.524 0 .874.35.874.875v9.625c0 .525-.35.875-.875.875H1.07c-.525 0-.875-.35-.875-.875V1.094c0-.525.35-.875.875-.875h3.5c.263 0 .438.087.613.262l2.362 2.363h5.775zM7.173 5.312c-.874 0-1.589.715-1.589 1.59v.396c0 .874.715 1.589 1.589 1.589s1.589-.715 1.589-1.589v-.397c0-.874-.715-1.589-1.59-1.589zm1.589 3.734a2.218 2.218 0 0 1-1.59.635 2.218 2.218 0 0 1-1.588-.635c-.715.238-1.191.754-1.191 1.43v1.191h5.56v-1.191c0-.676-.477-1.192-1.191-1.43z"})}),Mae=null,Dae=({title:t="Share Folder",desc:e="Share folder",width:s="14",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 14 14",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M2.74509 3.33986C2.74509 1.50367 4.24876 0 6.08495 0C7.92114 0 9.42481 1.50367 9.42481 3.33986V4.25489C9.42481 6.09108 7.92114 7.59475 6.08495 7.59475C4.24876 7.59475 2.74509 6.09108 2.74509 4.25489V3.33986ZM6.08495 1.18954C4.90154 1.18954 3.93463 2.15645 3.93463 3.33986V4.25489C3.93463 5.4383 4.90154 6.40521 6.08495 6.40521C7.26836 6.40521 8.23527 5.4383 8.23527 4.25489V3.33986C8.23527 2.15645 7.26836 1.18954 6.08495 1.18954Z"}),jsx("path",{d:"M0 13.4052C0 11.02 1.86968 9.1503 4.25489 9.1503H6.67972V10.3398H4.25489C2.92848 10.3398 1.79889 11.1591 1.38898 12.3889L1.24847 12.8104H6.67972V14H0V13.4052Z"}),jsx("path",{d:"M10.9804 10.9804V9.1503H12.1699V10.9804H14V12.1699H12.1699V14H10.9804V12.1699H9.1503V10.9804H10.9804Z"})]}),kae=null,fp=t=>(0,n.jsx)(is,{viewBox:"0 0 16 16",...t,children:(0,n.jsx)("path",{d:"M14.1259 3.625C14.65 3.625 15 3.975 15 4.5V14.125C15 14.65 14.65 15 14.1249 15H1.87506C1.35003 15 1 14.65 1 14.125V1.875C1 1.35 1.35003 1 1.87506 1H5.37531C5.63833 1 5.81334 1.087 5.98836 1.262L8.35052 3.625H14.1259ZM7.9785 6.093C7.10444 6.093 6.38938 6.808 6.38938 7.683V8.079C6.38938 8.953 7.10444 9.668 7.9785 9.668C8.85256 9.668 9.56761 8.953 9.56761 8.079V7.682C9.56761 6.808 8.85256 6.093 7.9775 6.093H7.9785ZM9.56761 9.827C9.35786 10.0329 9.10928 10.1951 8.8363 10.3041C8.56332 10.4131 8.2714 10.4668 7.9775 10.462C7.68393 10.4665 7.39239 10.4127 7.11977 10.3037C6.84716 10.1947 6.5989 10.0327 6.38938 9.827C5.67433 10.065 5.1983 10.581 5.1983 11.257V12.448H10.7587V11.257C10.7587 10.581 10.2817 10.065 9.56761 9.827Z"})}),Bae=({title:t="Sortable",desc:e="Three horizontal lines stacked on top of each other",width:s="22",height:o="7",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 22 7",width:s,height:o,className:classNames("i i-sortable",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("rect",{x:"0",y:"0",width:"100%",height:"1",strokeWidth:"1"}),jsx("rect",{x:"0",y:"3",width:"100%",height:"1",strokeWidth:"1"}),jsx("rect",{x:"0",y:"6",width:"100%",height:"1",strokeWidth:"1"})]}),_ae=null,Uae=({title:t="Sorting Block",desc:e="Sorting Block",width:s="22",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 22 15",width:s,height:o,className:classNames("i i-sorting-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"nonzero",d:"M2.056 9.736v3.4h6.4v-3.4h-6.4zm-.8-1.8h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm11 0h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm.8 5.2h6.4v-3.4h-6.4v3.4zM6.772.064h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm.8 1.8v3.4h6.4v-3.4h-6.4z"})]}),Hae=null,Fae=({title:t="Spinner",desc:e="Hollow circle fading from transparent to gray",width:s="21",height:o="20",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 21 20",width:s,height:o,className:classNames("i i-spinner",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("defs",{children:jsxs("radialGradient",{id:"spinner-radial-gradient",cx:"89.364%",cy:"24.157%",r:"45.607%",fx:"89.364%",fy:"24.157%",gradientTransform:"rotate(69.991 .842 .205) scale(1 .69785)",children:[jsx("stop",{offset:"0%",stopColor:"#C8C8C8",stopOpacity:"0"}),jsx("stop",{offset:"100%",stopColor:"#979797"})]})}),jsx("path",{fill:"url(#spinner-radial-gradient)",fillRule:"nonzero",d:"M74.5 3c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10a9.957 9.957 0 0 0-1.477-5.233 1 1 0 0 0-1.703 1.048A8 8 0 1 1 74.5 5a1 1 0 0 0 0-2z",transform:"rotate(-159 42.222 17.43)"})]}),zae=null,Vae=({title:t="SquareIcon",desc:e="Outline of a square",width:s="30",height:o="30",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 30 30",width:s,height:o,className:classNames("i i-square-outline",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fill:"none",fillRule:"evenodd",children:[jsx("rect",{className:"overlay",width:"28",height:"28",x:"1",y:"2",fill:"none",fillRule:"evenodd",strokeWidth:"2",rx:"2",transform:"translate(0 -1)"}),jsx("rect",{width:"28",height:"28",x:"1",y:"2",fill:"none",fillRule:"evenodd",stroke:"#FFF",strokeOpacity:"0.63",strokeWidth:"2",rx:"2",transform:"translate(0 -1)"})]})]}),Wae=null,T0="overlay",Gae=({title:t="Stack",desc:e="Three horizontal bars stacked",width:s="30",height:o="30",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 30 30",width:s,height:o,className:classNames("i i-stack",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fill:"none",fillRule:"evenodd",children:[jsx("rect",{className:T0,width:"30",height:"8.824",rx:"1"}),jsx("rect",{className:T0,width:"30",height:"8.824",y:"10.588",rx:"1"}),jsx("rect",{className:T0,width:"30",height:"8.824",y:"21.176",rx:"1"}),jsx("rect",{width:"30",height:"8.824",fill:"#FFF",fillOpacity:"0.63",rx:"1"}),jsx("rect",{width:"30",height:"8.824",y:"10.588",fill:"#FFF",fillOpacity:"0.4",rx:"1"})]})]}),Kae=null;function $ae(t){return jsx(Icon,{viewBox:"0 0 16 16",...t,children:jsx("path",{d:"M12.586 7H1C0.734784 7 0.48043 7.10535 0.292893 7.29289C0.105357 7.48042 0 7.73478 0 8C0 8.26521 0.105357 8.51957 0.292893 8.7071C0.48043 8.89464 0.734784 9 1 9H12.586L9.293 12.293C9.11084 12.4816 9.01005 12.7342 9.01233 12.9964C9.0146 13.2586 9.11977 13.5094 9.30518 13.6948C9.49059 13.8802 9.7414 13.9854 10.0036 13.9877C10.2658 13.9899 10.5184 13.8892 10.707 13.707L15.707 8.707C15.8945 8.51947 15.9998 8.26516 15.9998 8C15.9998 7.73483 15.8945 7.48052 15.707 7.293L10.707 2.293C10.5184 2.11084 10.2658 2.01004 10.0036 2.01232C9.7414 2.0146 9.49059 2.11977 9.30518 2.30518C9.11977 2.49058 9.0146 2.7414 9.01233 3.00359C9.01005 3.26579 9.11084 3.51839 9.293 3.707L12.586 7Z"})})}var y=i(61779),A=i.n(y);const m4=({title:t="Success",desc:e="Checkmark with a circle",width:s="51",height:o="51",className:r=null,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 51 51",width:s,height:o,className:M()("i",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{d:"M25.06 50.57c-13.808 0-25-11.194-25-25 0-13.808 11.192-25 25-25 13.806 0 25 11.192 25 25 0 13.806-11.194 25-25 25zm0-2c12.702 0 23-10.298 23-23 0-12.703-10.298-23-23-23-12.703 0-23 10.297-23 23 0 12.702 10.297 23 23 23z"}),(0,n.jsx)("path",{d:"M17.659 25.622a1 1 0 0 0-1.318 1.505l6.2 5.425a1 1 0 0 0 1.367-.047l10.763-10.8a1 1 0 1 0-1.416-1.41L23.153 30.428l-5.494-4.807z"})]});m4.propTypes={title:A().string,desc:A().string,width:A().string,height:A().string,className:A().string,focusable:A().oneOf(["true","false"])};const Qae=null,Zae=({title:t="Text Block",desc:e="Text Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 17 17",width:s,height:o,className:classNames("i i-text-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M15.747.5c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-13 2v12h12v-12h-12zm2 1h8v3h-1l-1-1h-1v6l1 1v1h-4v-1l1-1v-6h-1l-1 1h-1v-3z"})]}),Yae=null,Xae=({title:t="Text Slide",desc:e="Text Slide",width:s="16",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 14",width:s,height:o,className:classNames("i i-text-slide",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fillRule:"evenodd",children:[jsx("path",{d:"M2 12h12V2H2v10zM16 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1z"}),jsx("path",{d:"M4 8h8v2H4z"})]})]}),Jae=null,qae=({title:t="TitleSort",desc:e="Letters A and Z next to a downard arrow",width:s="17",height:o="11",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 17 11",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M4.679 7.311l.755-.755a.8.8 0 0 1 1.132 1.131L4.444 9.808a.8.8 0 0 1-1.131 0L1.192 7.687a.8.8 0 1 1 1.131-1.131l.756.755V1.5a.8.8 0 1 1 1.6 0v5.811zM9.842 6C9.377 6 9 5.552 9 5s.377-1 .842-1h6.316c.465 0 .842.448.842 1s-.377 1-.842 1H9.842zM9.842 2C9.377 2 9 1.552 9 1s.377-1 .842-1h6.316c.465 0 .842.448.842 1s-.377 1-.842 1H9.842zM9.842 10C9.377 10 9 9.552 9 9s.377-1 .842-1h6.316c.465 0 .842.448.842 1s-.377 1-.842 1H9.842z"})]}),eie=null;function p4(t){return(0,n.jsxs)(is,{viewBox:"0 0 15 16",...t,children:[(0,n.jsx)("path",{d:"M8.69169169,1.65459164 C7.42998802,0.732912554 5.79691384,0.425404591 4.21164279,0.810071145 C2.01180284,1.34426767 0.429519485,3.32166778 0.449238273,5.51223961 C0.454317355,6.09008425 0.560978072,6.64511922 0.766531499,7.16185651 C0.884545458,7.45866364 1.19914976,7.66620336 1.53138146,7.66620336 C1.60756769,7.66620336 1.72289272,7.66620336 1.80027403,7.62903206 C2.21496611,7.48682371 2.41812939,7.05879065 2.26276924,6.65638325 C2.09725092,6.18836289 2.02345485,5.8315748 2.02345485,5.49928598 C2.02345485,4.55873965 2.44860388,3.66071502 3.19044858,3.03527987 C3.94334777,2.40027029 4.91763516,2.10993997 5.93524413,2.21694824 C6.90415367,2.31888769 7.79388929,2.81901053 8.37648985,3.58890684 C8.96058425,4.36077436 9.17300938,5.31962473 8.9590904,6.21962057 C8.94235931,6.29002074 8.92204298,6.35957612 8.89754388,6.42913149 C8.84436291,6.5969655 8.8709534,6.79042518 8.97074242,6.9599488 C9.07979329,7.14524206 9.26204269,7.2823816 9.47088259,7.33616734 C9.67285078,7.38770027 9.89573284,7.36517221 10.0812687,7.27308878 C10.2742738,7.17762614 10.4108115,7.01936655 10.4654863,6.83041248 C10.6062067,6.40012662 10.6773139,5.94111748 10.6773139,5.4666203 C10.6773139,3.96597018 9.95369412,2.57655233 8.69169169,1.65459164"}),(0,n.jsx)("path",{d:"M12.4033641,9.43002363 L7.46962051,8.60458861 L7.42312479,5.65704834 C7.42257778,4.87028142 6.91659487,4.17992696 6.16391111,3.93838024 C5.57177436,3.74839098 4.94490256,3.83320301 4.44493675,4.1709044 C3.94633846,4.50757465 3.64849231,5.04841246 3.64849231,5.61734909 L3.64849231,12.0692503 L3.27543248,11.4577787 C3.01177436,11.0154157 2.60233846,10.7096799 2.12288547,10.5967691 C1.65355214,10.4859205 1.14620171,10.5673813 0.72637265,10.8220752 C0.0398769231,11.2721719 -0.184396581,12.1996907 0.158577778,13.1957809 C0.165415385,13.210217 0.18237265,13.2532675 0.209176068,13.3208077 C0.319671795,13.5979291 0.578406838,14.2475532 0.952013675,15.0616455 L0.999603419,15.1523867 C1.20227009,15.608928 1.48534701,15.7290569 1.72739829,15.7290569 C1.84445812,15.7290569 1.95139829,15.7009581 2.03563761,15.6692503 C2.21204786,15.6022256 2.33922735,15.4880258 2.40322735,15.3387669 C2.47816752,15.1637293 2.46285128,14.9407433 2.36356923,14.7319356 C2.32992821,14.653826 1.5422359,12.8165757 1.50968889,12.7477465 C1.36828718,12.295072 1.41396239,11.9890784 1.49437265,11.9455124 C1.58845812,11.9011729 1.69403077,11.8869946 1.7730735,11.9009151 C1.9133812,11.9449968 1.98832137,12.0042879 2.05697094,12.1321504 L3.53963761,14.292666 C3.71905641,14.5633426 4.15146667,14.7654479 4.59946667,14.6061353 C4.93888547,14.4857487 5.12568889,14.2596692 5.12568889,13.9699162 L5.12568889,5.69416971 C5.12568889,5.5072739 5.23317607,5.33739205 5.39317607,5.27114071 C5.54469744,5.20927175 5.70797949,5.21984103 5.84117607,5.3018174 C5.97546667,5.38456713 6.05560342,5.52196778 6.05560342,5.66916434 L6.05560342,9.09129108 C6.05560342,9.4367261 6.34715897,9.7540623 6.69232137,9.78396563 L6.6942359,9.78396563 L12.1632274,10.6988528 C12.7868171,10.8042879 13.2397402,11.3141912 13.2397402,11.9112266 L13.2397402,15.0784017 C13.2397402,15.434406 13.5457915,15.72287 13.9235009,15.72287 C14.3009368,15.72287 14.6072615,15.434406 14.6072615,15.0784017 L14.6072615,11.9112266 C14.6072615,10.6893147 13.6809026,9.64579162 12.4033641,9.43002363"})]})}const tie=({title:t="Remove",desc:e="Trash can",width:s="10",height:o="13",className:r=null,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 10 13",width:s,height:o,className:classNames("i i-trash",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M9.28713712,12.0991694 C9.28713712,12.4960933 8.96564674,12.814808 8.57149855,12.814808 L1.42899128,12.814808 C1.03500637,12.814808 0.714169089,12.4960933 0.714169089,12.0991694 L0.714169089,4.9568254 L9.28713712,4.9568254 L9.28713712,12.0991694 L9.28713712,12.0991694 Z M10,3.33274903 L0,3.33274903 L0,2.62053925 C0,2.22508485 0.319367795,1.90571706 0.714169089,1.90571706 L2.85830911,1.90571706 L2.85830911,1.19220107 C2.85830911,0.798052883 3.17702381,0.4765625 3.5724782,0.4765625 L6.42948111,0.4765625 C6.82346602,0.4765625 7.1436502,0.798052883 7.1436502,1.19220107 L7.1436502,1.90571706 L9.28713712,1.90571706 C9.68046893,1.90571706 10,2.22524813 10,2.62053925 L10,3.33274903 L10,3.33274903 Z"})]}),sie=null,nie=({title:t="Trash Folder",desc:e="Solid trash can",width:s="16",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 17",width:s,height:o,className:classNames("i i-trashFolder",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M2.57 7.175v7.5a1.88 1.88 0 0 0 1.874 1.875h7.5a1.88 1.88 0 0 0 1.875-1.875v-7.5H2.57zM11.944 3.773V1.898c0-.562-.375-.937-.937-.937H5.382c-.563 0-.938.375-.938.937v1.875H.694v1.875h15V3.773h-3.75z"})]}),oie=null,rie=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="16",role:a="img",title:c,width:d="14"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 16",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.332031 4.00033C0.332031 3.63214 0.630508 3.33366 0.998698 3.33366H12.9987C13.3669 3.33366 13.6654 3.63214 13.6654 4.00033C13.6654 4.36852 13.3669 4.66699 12.9987 4.66699H0.998698C0.630508 4.66699 0.332031 4.36852 0.332031 4.00033Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.66536 2.00033C5.48855 2.00033 5.31898 2.07056 5.19396 2.19559C5.06894 2.32061 4.9987 2.49018 4.9987 2.66699V3.33366H8.9987V2.66699C8.9987 2.49018 8.92846 2.32061 8.80344 2.19559C8.67841 2.07056 8.50884 2.00033 8.33203 2.00033H5.66536ZM10.332 3.33366V2.66699C10.332 2.13656 10.1213 1.62785 9.74624 1.25278C9.37117 0.877706 8.86246 0.666992 8.33203 0.666992H5.66536C5.13493 0.666992 4.62622 0.877706 4.25115 1.25278C3.87608 1.62785 3.66536 2.13656 3.66536 2.66699V3.33366H2.33203C1.96384 3.33366 1.66536 3.63214 1.66536 4.00033V13.3337C1.66536 13.8641 1.87608 14.3728 2.25115 14.7479C2.62622 15.1229 3.13493 15.3337 3.66536 15.3337H10.332C10.8625 15.3337 11.3712 15.1229 11.7462 14.7479C12.1213 14.3728 12.332 13.8641 12.332 13.3337V4.00033C12.332 3.63214 12.0336 3.33366 11.6654 3.33366H10.332ZM2.9987 4.66699V13.3337C2.9987 13.5105 3.06894 13.68 3.19396 13.8051C3.31898 13.9301 3.48855 14.0003 3.66536 14.0003H10.332C10.5088 14.0003 10.6784 13.9301 10.8034 13.8051C10.9285 13.68 10.9987 13.5105 10.9987 13.3337V4.66699H2.9987Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.66536 6.66699C6.03355 6.66699 6.33203 6.96547 6.33203 7.33366V11.3337C6.33203 11.7018 6.03355 12.0003 5.66536 12.0003C5.29717 12.0003 4.9987 11.7018 4.9987 11.3337V7.33366C4.9987 6.96547 5.29717 6.66699 5.66536 6.66699Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33203 6.66699C8.70022 6.66699 8.9987 6.96547 8.9987 7.33366V11.3337C8.9987 11.7018 8.70022 12.0003 8.33203 12.0003C7.96384 12.0003 7.66536 11.7018 7.66536 11.3337V7.33366C7.66536 6.96547 7.96384 6.66699 8.33203 6.66699Z",fill:"currentColor"})]}),aie=null,iie=({title:t="Remove",desc:e="Trash can",width:s="13.3",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 13.3 16",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M1.2,4.9c0,0,0-1.2,0-1.2c0,0,10.9,0,10.9,0c0,0,0,1.2,0,1.2 M10.9,14.8 c0,0-8.5,0-8.5,0c0,0,0-8.6,0-8.6h8.5C10.9,6.2,10.9,14.8,10.9,14.8 M4.8,1.2c0,0,3.6,0,3.6,0c0,0,0,1.2,0,1.2h0H4.8 C4.8,2.5,4.8,1.2,4.8,1.2 M12.1,2.5H9.7V1.2C9.7,0.5,9.2,0,8.5,0H4.8C4.2,0,3.6,0.6,3.6,1.2v1.2H1.2C0.5,2.5,0,3,0,3.7v1.2 c0,0.7,0.5,1.2,1.2,1.2h0v8.6c0,0.7,0.5,1.2,1.2,1.2h8.5c0.7,0,1.2-0.6,1.2-1.2V6.2h0c0.7,0,1.2-0.6,1.2-1.2V3.7 C13.3,3,12.8,2.5,12.1,2.5"})]}),cie=null,lie=({title:t="Upload",desc:e="Upload icon",width:s="15",height:o="15",className:r="",focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 15 15",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("polygon",{points:"6.52941176 3.52941176 6.52941176 9.70588235 8.29411765 9.70588235 8.29411765 3.52941176 10.4117647 3.52941176 7.41176471 0 4.41176471 3.52941176"}),jsx("path",{d:"M14.0625,14.1176471 L0.9375,14.1176471 C0.375,14.1176471 0,13.7647059 0,13.2352941 L0,5.29411765 C0,4.76470588 0.375,4.41176471 0.9375,4.41176471 L3.75,4.41176471 L3.75,6.17647059 L1.875,6.17647059 L1.875,12.3529412 L13.125,12.3529412 L13.125,6.17647059 L11.25,6.17647059 L11.25,4.41176471 L14.0625,4.41176471 C14.625,4.41176471 15,4.76470588 15,5.29411765 L15,13.2352941 C15,13.7647059 14.625,14.1176471 14.0625,14.1176471"})]}),die=null,uie=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="14",role:a="img",title:c,width:d="14"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 14",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.00065 8.33301C1.36884 8.33301 1.66732 8.63148 1.66732 8.99967V11.6663C1.66732 11.8432 1.73756 12.0127 1.86258 12.1377C1.9876 12.2628 2.15717 12.333 2.33398 12.333H11.6673C11.8441 12.333 12.0137 12.2628 12.1387 12.1377C12.2637 12.0127 12.334 11.8432 12.334 11.6663V8.99967C12.334 8.63148 12.6325 8.33301 13.0007 8.33301C13.3688 8.33301 13.6673 8.63148 13.6673 8.99967V11.6663C13.6673 12.1968 13.4566 12.7055 13.0815 13.0806C12.7065 13.4556 12.1978 13.6663 11.6673 13.6663H2.33398C1.80355 13.6663 1.29484 13.4556 0.919771 13.0806C0.544698 12.7055 0.333984 12.1968 0.333984 11.6663V8.99967C0.333984 8.63148 0.632461 8.33301 1.00065 8.33301Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.52925 0.52827C6.7896 0.26792 7.21171 0.26792 7.47206 0.52827L10.8054 3.8616C11.0657 4.12195 11.0657 4.54406 10.8054 4.80441C10.545 5.06476 10.1229 5.06476 9.86258 4.80441L7.00065 1.94248L4.13872 4.80441C3.87837 5.06476 3.45626 5.06476 3.19591 4.80441C2.93556 4.54406 2.93556 4.12195 3.19591 3.8616L6.52925 0.52827Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.00065 0.333008C7.36884 0.333008 7.66732 0.631485 7.66732 0.999674V8.99967C7.66732 9.36786 7.36884 9.66634 7.00065 9.66634C6.63246 9.66634 6.33398 9.36786 6.33398 8.99967V0.999674C6.33398 0.631485 6.63246 0.333008 7.00065 0.333008Z",fill:"currentColor"})]}),hie=null,mie=({title:t="UploadXml",desc:e="UploadXml",width:s="18",height:o="21",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 18 21",width:s,height:o,className:classNames("i i-uploadXml",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M15.88,1.2H1.6A.59.59,0,0,0,1,1.79V19.21a.59.59,0,0,0,.59.59H15.88a.59.59,0,0,0,.59-.59V1.79A.59.59,0,0,0,15.88,1.2Zm-.59,1.19V18.61H2.19V2.39Z"}),jsx("path",{d:"M5.14,10.13a.59.59,0,0,0,.84,0L8.13,8v6.48a.59.59,0,0,0,1.19,0V8l2.15,2.15a.59.59,0,0,0,.84-.84L9.14,6.12a.6.6,0,0,0-.84,0L5.14,9.29A.59.59,0,0,0,5.14,10.13Z"})]}),pie=null,fie=({title:t="Video Block",desc:e="Video Block",width:s="17",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 17 13",width:s,height:o,className:classNames("i i-video-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M10.49 12.5h-9c-.6 0-1-.4-1-1v-10c0-.6.4-1 1-1h9c.6 0 1 .4 1 1V3l3.6-1.5c.7-.2 1.4.3 1.4 1v8c0 .7-.7 1.2-1.4.9l-3.6-1.4v1.5c0 .6-.4 1-1 1zm-8-2h7v-2c0-.7.7-1.2 1.4-.9l3.6 1.5v-5l-3.6 1.5c-.7.1-1.4-.4-1.4-1.1v-2h-7v8z"})]}),gie=null;function f4(t){return(0,n.jsx)(is,{viewBox:"0 0 16 12",...t,children:(0,n.jsx)("g",{transform:"translate(-1 -2)",children:(0,n.jsx)("path",{d:"M11,14 L2,14 C1.4,14 1,13.6 1,13 L1,3 C1,2.4 1.4,2 2,2 L11,2 C11.6,2 12,2.4 12,3 L12,4.5 L15.6,3 C16.3,2.8 17,3.3 17,4 L17,12 C17,12.7 16.3,13.2 15.6,12.9 L12,11.5 L12,13 C12,13.6 11.6,14 11,14 L11,14 L11,14 Z M3,12 L10,12 L10,10 C10,9.3 10.7,8.8 11.4,9.1 L15,10.6 L15,5.6 L11.4,7.1 C10.7,7.2 10,6.7 10,6 L10,4 L3,4 L3,12 L3,12 L3,12 Z"})})})}function vie(t){return jsxs(Icon,{...t,viewBox:"0 0 14 10",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6836 1.56433C13.8779 1.66431 14 1.8645 14 2.08301V7.91634C14 8.13485 13.8779 8.33504 13.6836 8.43502C13.4893 8.53501 13.2554 8.51802 13.0776 8.39102L8.99428 5.47435C8.84098 5.36485 8.75 5.18806 8.75 4.99967C8.75 4.81129 8.84098 4.63449 8.99428 4.525L13.0776 1.60833C13.2554 1.48132 13.4893 1.46434 13.6836 1.56433ZM10.3369 4.99967L12.8333 6.78281V3.21653L10.3369 4.99967Z"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 1.49967C1.42783 1.49967 1.16667 1.76084 1.16667 2.08301V7.91634C1.16667 8.23851 1.42783 8.49967 1.75 8.49967H8.16667C8.48883 8.49967 8.75 8.23851 8.75 7.91634V2.08301C8.75 1.76084 8.48883 1.49967 8.16667 1.49967H1.75ZM0 2.08301C0 1.11651 0.783502 0.333008 1.75 0.333008H8.16667C9.13317 0.333008 9.91667 1.11651 9.91667 2.08301V7.91634C9.91667 8.88284 9.13317 9.66634 8.16667 9.66634H1.75C0.783502 9.66634 0 8.88284 0 7.91634V2.08301Z"})]})}const Cie=({title:t="Visible",desc:e="Eye",width:s="16",height:o="12",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 12",width:s,height:o,className:classNames("i i-visible",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{children:[jsx("path",{d:"M8 2c2.84 0 5.036 2.835 5.818 4-.784 1.166-2.98 4-5.818 4-2.84 0-5.038-2.838-5.819-4.001C2.958 4.835 5.146 2 8.001 2m0 10c4.706 0 7.743-5.284 7.87-5.508a1 1 0 0 0 .001-.98C15.746 5.287 12.732 0 8 0 3.245 0 .251 5.289.126 5.514a.998.998 0 0 0 .002.975C.254 6.713 3.27 12 8 12"}),jsx("path",{d:"M8 4a2 2 0 1 1 .001 3.999A2 2 0 0 1 8 4"})]})]}),xie=null,g4=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="20",role:a="img",title:c="",style:d,width:l="20"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:M()("i i-xMarkFilled",s),focusable:"false",height:r,role:a,style:d,viewBox:"0 0 20 20",width:l,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{d:"M10 9.08L6.904 5.986a.65.65 0 1 0-.92.92L9.082 10l-3.096 3.096a.65.65 0 0 0 .92.92L10 10.918l3.096 3.096a.65.65 0 0 0 .92-.92L10.918 10l3.096-3.096a.65.65 0 1 0-.92-.92L10 9.082zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z"})]});var v4=i(40966),S0=i.n(v4),C4=i(65992),ha=i.n(C4),x4=i(78324),St=i.n(x4),E4=i(24308),T4=i.n(E4),S4=i(46832),ma=i.n(S4);const L4=St()(S0()({}),T4()(["first_name","last_name"]),ha()(" "),ma()),b4=({className:t,decorative:e,size:s,...o})=>{const r=jt()(["avatars","medium"],o),a=e?"":L4(o)||"Unknown User";return r?(0,n.jsx)("img",{alt:a,className:t||"user-avatar",src:r,style:{height:s,width:s}}):(0,n.jsx)(E0,{decorative:e,height:s,title:a,width:s})};var y4=i(8046);const J=(0,y4.setup)({el:"__",mod:"--",modValue:"-"}),I4=`${(0,de._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,Yl=J("cover");function N4(){const{certificateDownload:t,riseComCurrentUser:e}=Mt(),s=(0,ze.useLabelsMap)(),o=MC(),a=ni()?.quizPassed??!0;return!(o&&a&&!(0,de.Wk)())||window.viewType==="preview"?null:(0,n.jsxs)("div",{className:Yl("completed-info"),children:[(0,n.jsxs)("div",{className:Yl("completed-info-avatar"),children:[(0,n.jsx)(b4,{...e,decorative:!0}),(0,n.jsx)("img",{className:Yl("completed-info-trophy"),src:I4,alt:""})]}),(0,n.jsxs)("div",{className:Yl("completed-info-label"),children:[(0,n.jsx)("span",{"aria-hidden":"true",children:s?.coverCompleted||"Completed"}),(0,n.jsx)("span",{className:"visually-hidden",children:s?.a11yCoverCourseCompleted||"Course Completed"})]}),t&&(0,n.jsx)(nr,{})]})}var j4=i(19216),$n=i.n(j4);const L0=t=>{if(!t)return"";const e=$n()(t),s=$n()(),o=$n()(s).add(24,"hours");return e.isBefore(s)?"Overdue":e.isBefore(o)?`Due in ${s.to(e,!0)}`:`Due ${e.format("MMM D")}`},gp=t=>$n()(t).isSameOrBefore($n()().add(3,"d"),"days");function b0(t){return function({Default:s,className:o,...r}){const a=`brand--${t}`,c=o?`${o} ${a}`:a;return(0,n.jsx)(s,{...r,className:c})}}const Sie=b0("background"),Lie=b0("head"),ri=b0("ui"),y0=t=>t==="<p><br></p>"?"":t;var I0=i(46885);const N0="data-change-path",j0="data-l10n-id",vp=(t,e)=>{if(t)return e?["l10n","translations",e,t.getAttribute(j0)]:JSON.parse(t.getAttribute(N0))};let dr;const A4=()=>{const t=ai();t&&t.classList.add("selected")},Xl=()=>{ai()&&dr&&Oc(dr)},R4=(t,e)=>s=>{const o=document.elementsFromPoint(s.clientX,s.clientY),r=e?o.find(a=>a.getAttribute(j0)):o.find(a=>a.getAttribute(N0));r!=null&&(t&&dr!==r&&(dr=r,t(vp(r,e))),Oc(r))},O4=(t,e)=>s=>{s.stopPropagation(),s.preventDefault();const o=document.elementsFromPoint(s.clientX,s.clientY),r=e?o.find(a=>a.getAttribute(j0)):o.find(a=>a.getAttribute(N0));if(r){Oc(r),xp();const a=vp(r,e);a&&(t(a),A4())}},A0=()=>document.getElementById("target-container"),ai=()=>document.getElementById("target-highlight"),Cp=()=>{if(A0())return;const e=document.createElement("div");e.classList.add("target-container"),e.id="target-container",document.body.appendChild(e);const s=document.createElement("div");s.classList.add("target-highlight"),s.id="target-highlight",e.appendChild(s)},xp=()=>{const t=ai();t&&t.classList.add("selected")},P4=({top:t,left:e,width:s,height:o})=>{const r=document.querySelector("[data-page=true]")?.getBoundingClientRect().width??window.innerWidth-20;return s<r&&(t=t-10,o=o+2*10,e=e-20,s=s+2*20),{top:t,left:e,width:s,height:o}},Oc=t=>{const{top:e,left:s,width:o,height:r}=P4(t.getBoundingClientRect()),a=ai();a&&(t!==dr&&a.classList.contains("selected")&&a.classList.remove("selected"),a.classList.add("active"),Object.assign(a.style,{top:`${e}px`,left:`${s}px`,width:`${o}px`,height:`${r}px`}),dr=t)},M4=()=>{window.removeEventListener("scroll",Xl,{capture:!0}),Jl()},Jl=()=>{ai()?.classList?.remove("active"),ai()?.classList?.remove("selected")};let ii,ql;const D4=({locale:t})=>({isActive:e},s)=>{const o=!!A0();if(e){if(ii)return ii;Cp();const r=R4(s,t);let a;return ii=new Promise((c,d)=>{a=O4(c,t),ql=d,document.body.classList.add("target-mode"),window.addEventListener("mousemove",r,!0),window.addEventListener("click",a,!0),window.addEventListener("resize",Jl,!0),window.addEventListener("scroll",Xl,!0)}).finally(()=>{ii=null,ql=null,document.body.classList.remove("target-mode"),window.removeEventListener("mousemove",r,!0),window.removeEventListener("click",a,!0),window.removeEventListener("resize",Jl,!0),window.removeEventListener("scroll",Xl,!0)}),ii}else Jl(),A0()?.remove(),dr=null;return o&&ql!=null&&ql(new Error("cancelled")),Promise.resolve()},k4=t=>{let e=t.findIndex(s=>s==="items");return e===-1?t:t.slice(0,e+2)},Ep=t=>{const e=(0,I0.Ce)(t);return e.type==="translation"||e.type==="caption"&&e.l10nId?document.querySelector(`[data-l10n-id='${e.l10nId}']`)??document.querySelector(`[data-l10n-id*='${e.l10nId}']`):document.querySelector(`[data-change-path='${JSON.stringify(k4(t))}']`)},w4=t=>{Cp(),window.addEventListener("scroll",Xl,{capture:!0}),document.body.classList.add("target-mode");const e=Ep(t);e&&Oc(e)},B4=t=>{if(!ii)return;const e=Ep(t);e&&(dr!==e&&(dr=e),Oc(e),xp(),e.scrollIntoView({behavior:"smooth",block:"center"}))},_4=t=>["course",t],Tp=(t,e)=>["lessons",{id:t},e],U4=(t,e)=>[...Tp(t,"items"),{id:e}],ci=t=>JSON.stringify(_4(t)),Sp=(t,e)=>JSON.stringify(Tp(t,e)),H4=(t,e)=>JSON.stringify(U4(t,e)),bn={STATUS:"targetMode:status",TOGGLE:"targetMode:toggle",FOCUS:"targetMode:focus",CLEAR:"targetMode:clear",SELECTED:"targetMode:selected",HOVERED:"targetMode:hovered",TRANSLATION_HOVERED:"targetMode:translationHovered",TRANSLATION_HOVER_CLEAR:"targetMode:translationHoverClear"},Pc=(t,e)=>{const s={};for(let o=0;o<t.length;o++){const r=t[o];if(typeof r=="object"&&r.id){const a=t[o-1],c=a==="items"?e.shift():a.replace(/s$/,"");s[`${c??"item"}Id`]=r.id}}return s};var Me=i(86415),It=i(84728);function R0(t,e){const s=(0,m.useMemo)(()=>matchMedia(`(${t}: ${e*.0625}em)`),[t,e]),[o,r]=(0,m.useState)(s.matches);return(0,m.useEffect)(()=>{const a=s.addEventListener??s.addListener,c=s.removeEventListener??s.removeListener;return a.call(s,"change",d),()=>c.call(s,"change",d);function d(){r(s.matches)}},[s]),o}const F4="matches";function Lp(t,e,s,o="withPxToEmMedia"){return r=>{function a(c){const d=R0(t,e);return(0,n.jsx)(r,{...c,[s??F4]:d})}return a.displayName=`${o}(${r.displayName||r.name})`,a}}function Xs(t){return R0("max-width",t-1)}function bie(t){return R0("min-width",t)}function O0(t,e,s){return Lp("max-width",t-1,e,s)}function z4(t,e,s){return Lp("min-width",t,e,s)}const V4=Xs.bind(null,1200),yie=Xs.bind(null,992),W4=Xs.bind(null,768),P0=Xs.bind(null,480),M0=J("cover");function G4(t,e,s){return t===1?e:s}function K4(){const t=(0,Me.v1)(),e=(0,Me.vU)(),s=G4(t,e?.coverLesson||"Lesson",e?.coverLessons||"Lessons");return(0,n.jsxs)("li",{className:M0("num-lessons"),role:"listitem",children:[(0,n.jsx)("span",{className:M0("num-lessons-value"),children:t}),"\xA0",(0,n.jsx)("span",{className:M0("num-lessons-units"),children:s})]})}const $4=36e5,D0=J("cover");function Q4(t){return Math.round(10*t)/10}function bp(t,e,s){return t===1?e:s}function Z4(){const{showTimeToComplete:t,timeToComplete:e}=(0,Me.DX)(),s=(0,Me.vU)();if(!t)return null;const o=e>=$4,r=o?Q4($n().duration(e).asHours()):$n().duration(e).asMinutes(),a=o?bp(r,s?.coverHour||"Hour",s?.coverHours||"Hours"):bp(r,s?.coverMinute||"Minute",s?.coverMinutes||"Minutes");return(0,n.jsxs)("li",{className:D0("time-to-complete"),role:"listitem",children:[(0,n.jsx)("span",{className:D0("time-to-complete-value"),children:r}),"\xA0",(0,n.jsx)("span",{className:D0("time-to-complete-units"),children:a})]})}const k0=J("cover");function w0(){const t=(0,Me.vU)();return ye.BI?(0,n.jsxs)("section",{className:k0("course-length-section"),children:[(0,n.jsx)("h2",{className:k0("course-length-title"),children:t?.a11yCoverCourseLength||"Course Length"}),(0,n.jsxs)("ul",{className:k0("course-length-list"),role:"list",children:[(0,n.jsx)(K4,{}),(0,n.jsx)(Z4,{})]})]}):null}const Y4=J("cover"),X4="MMMM D, YYYY";function yp({format:t=X4}){const{publishedAt:e}=(0,Me.DX)(),s=(0,Me.vU)(),o=Y4("details-content-published-at");if(!e)return null;const r=$n()(e);return r.isValid()?(0,n.jsxs)("div",{className:o,children:[s?.coverPublished||"Published"," ",r.format(t)]}):null}var J4=i(91382),ed=i.n(J4);const Ip=ed()(async()=>(await i.e("math").then(i.bind(i,70643))).browserAdaptor(),{promise:!0}),Np=ed()(async()=>{const t=await i.e("math").then(i.t.bind(i,79901,23));return new t.SVG({fontCache:"local"})},{promise:!0}),jp=ed()(async()=>{const[t,e,{RegisterHTMLHandler:s},{TeX:o},{AllPackages:r},{mathjax:a}]=await Promise.all([Ip(),Np(),i.e("math").then(i.bind(i,20906)),i.e("math").then(i.t.bind(i,3847,23)),i.e("math").then(i.bind(i,7398)),i.e("math").then(i.bind(i,19036))]);s(t);const c=new o({packages:r});return a.document(document,{InputJax:c,OutputJax:e})},{promise:!0}),q4=ed()(async t=>{const e=new CSSStyleSheet;t.adoptedStyleSheets.push(e);const[s,o]=await Promise.all([Np(),jp()]),r=s.styleSheet(o);r instanceof HTMLStyleElement&&await e.replace(r.innerText)},{promise:!0});class e9 extends HTMLElement{static observedAttributes=["long-description","short-description","tex"];_ready;_anchor=this;_renderController;constructor(){super(),this._ready=q4(this.ownerDocument)}get longDescription(){return this.getAttribute("long-description")??null}set longDescription(e){e==null?this.removeAttribute("long-description"):this.setAttribute("long-description",e)}get shortDescription(){return this.getAttribute("short-description")??null}set shortDescription(e){e==null?this.removeAttribute("short-description"):this.setAttribute("short-description",e)}get tex(){return this.getAttribute("tex")??""}set tex(e){this.setAttribute("tex",e)}disconnectedCallback(){this._renderController?.abort()}attributeChangedCallback(e){e==="tex"?this._renderTex():this._renderAria()}async _renderTex(){this._renderController?.abort();const e=this._renderController=new AbortController,[s,o]=await Promise.all([jp(),Ip(),this._ready]);if(e.signal.aborted)return;const{tex:r}=this,a=r.includes("begin{")?r:String.raw`\begin{align*}${r}\end{align*}`,c=s.convert(a),d=o.firstChild(c),l=document.evaluate("//@data-mjx-error",d,null,XPathResult.STRING_TYPE).stringValue;if(l.length>0){let u=l;if(l===String.raw`Missing \begin{align*} or extra \end{align*}`){const h=s.convert(r),p=o.firstChild(h);u=document.evaluate("//@data-mjx-error",p,null,XPathResult.STRING_TYPE).stringValue??"An error occured"}this.dispatchEvent(new t9("matherror",{bubbles:!1,composed:!1,detail:{errorMessage:u}})),this._anchor.replaceChildren()}else this._anchor.replaceChildren(d);await this._renderAria()}async _renderAria(){if(await this._ready,this._renderController?.signal.aborted||this.firstElementChild==null)return;const e=[this.shortDescription,this.longDescription].filter(s=>s?.length>0).join(`

`);this.firstElementChild.ariaLabel=e.trim().length===0?null:e}}customElements.define("rise-math",e9);class t9 extends CustomEvent{}var Hs=i(61708),s9=i(46687),li=i.n(s9);const n9=document.implementation.createHTMLDocument();function Ap(t){if(t==null)return{value:t};let e;return typeof t=="string"?(e=n9.createElement("div"),e.innerHTML=t):e=t,e.firstElementChild instanceof HTMLElement&&e.firstElementChild.dataset.editorId!=null?{editorId:e.firstElementChild.dataset.editorId,value:typeof t=="string"?e.firstElementChild.innerHTML:e.firstElementChild}:{value:t}}var xo=i(49345);const Rp=(t="")=>t.split(".").slice(-2).join("."),Op=Se()(Rp,ye._$),di=t=>{if(!t||o9(t))return!1;t.slice(0,2)==="//"&&(t=`https:${t}`);try{const{hostname:e}=new URL(t),s=Rp(e);return s!==Op("ARTICULATE_DOMAIN")&&s!==Op("RISE_DOMAIN")}catch{return!1}},o9=t=>t?t.slice(0,7)==="mailto:":!1,r9=t=>t.includes("rise.articulate")&&t.includes("/author/details/");var ct=i(52706);const a9=({allowTabNavigation:t=!0,className:e="",externalLinksDisabled:s,id:o,ref:r,showExternalLinksModal:a,tagName:c="div",value:d})=>{const l=(0,Me.vU)(),u=(0,m.useCallback)(f=>{const g=f.target.closest(".fr-view a");g&&g.hasAttribute("data-external")&&a()},[a]),h=(0,It.QQ)(d),p=(0,m.useMemo)(()=>{const f=(0,xo.aj)(h),g=Array.prototype.concat(p9,f9,l9,c9,s?d9:[],t?h9:u9,m9(l?.a11yNoticeLinkNewTab));return i9(g,f)},[t,s,l,h]);return(0,n.jsx)("div",{"aria-hidden":t?void 0:!0,"data-l10n-id":(0,Pt.pP)(d),className:`${e} brand--linkColor`,onClickCapture:s?u:void 0,id:o,ref:r,children:(0,m.createElement)(c,{className:"fr-view rise-tiptap",dangerouslySetInnerHTML:(0,m.useMemo)(()=>({__html:p}),[p])})})};function i9(t,e){const s=document.createElement("div");s.innerHTML=e;for(const o of t)o(s);return s.innerHTML}function c9(t){for(const e of t.querySelectorAll("a")){e.setAttribute("target","_blank");const s=new Set((e.getAttribute("rel")??"").split(/\s+/));s.delete("opener"),s.add("noopener"),s.add("noreferrer"),e.setAttribute("rel",Array.from(s).join(" "))}}function l9(t){for(const e of t.querySelectorAll("table"))if(!e.parentElement.classList.contains("rise-table-wrap")){const s=document.createElement("div");s.className="rise-table-wrap",e.parentNode.replaceChild(s,e),s.appendChild(e)}}function d9(t){for(const e of t.querySelectorAll("a"))di(e.href)&&(e.removeAttribute("href"),e.removeAttribute("rel"),e.removeAttribute("target"),e.setAttribute("data-external",""),e.setAttribute("role","button"))}function u9(t){for(const e of t.querySelectorAll("a"))e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")}function h9(t){for(const e of t.querySelectorAll("a"))e.removeAttribute("aria-hidden"),e.hasAttribute("data-external")?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}function m9(t="(opens in a new tab)"){return e=>{for(const s of e.querySelectorAll('a[target="_blank"]')){const o=document.createElement("span");o.className="visually-hidden-always",o.textContent=t,s.appendChild(o)}}}function p9(t){return Ap(t).value}function f9(t){for(const e of t.querySelectorAll("rise-math")){const{shortDescription:s,longDescription:o}=e,r=e.querySelector('[slot="short-description"]'),a=e.querySelector('[slot="long-description"]');s==null&&r!=null&&(e.shortDescription=r.textContent),o==null&&a!=null&&(e.longDescription=a.textContent)}return t}const g9=li()({externalLinksDisabled:jt()(["course","externalLinksDisabled"]),courseColors:t=>{const{course:e}=t,{colorAccent:s}=e?.theme||{},o=(0,ct.WA)(s);return[...e?.theme?.colors||P.B4,s,o]}}),v9={showExternalLinksModal:()=>({type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0})},Nt=(0,Hs.Ls)(g9,v9)(a9),Pp=J("cover");function C9(){const t=(0,Me.DX)(),e=V4(),s=(0,It.QQ)(t.description);if(!s)return null;const o=ci("description"),r=(0,_s.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":o};return(0,n.jsx)("div",{...r,children:(0,n.jsxs)("section",{className:Pp("details-content-section"),children:[e?(0,n.jsx)(w0,{}):(0,n.jsx)(yp,{}),(0,n.jsx)(Nt,{className:Pp("details-content-description"),value:y0(s)},"text")]})})}function x9({Default:t,...e}){const{dueAt:s}=e,r=s&&gp(s)?"brand--background":"brand--color";return(0,n.jsx)(t,{...e,className:r})}var Mp=i(9017),Dp=i(47418);function Qn(t){const{to:e,children:s}=t,o=(0,ke.zy)(),r=(0,m.useMemo)(()=>(0,Dp.B)(e,o),[o,e]);return(0,n.jsx)(Mp.N_,{...t,to:r,children:s})}const E9=({children:t,disabled:e,onClick:s,to:o,...r},a)=>e?(0,n.jsx)("a",{"aria-disabled":"true",ref:a,role:"link",...r,children:t}):(0,n.jsx)(Qn,{onClick:s,ref:a,to:o,...r,children:t}),T9=(0,m.forwardRef)(E9),B0=(0,m.createContext)({});B0.displayName="LocalesContext";function S9({i18n:t,children:e}){const s=(0,m.useMemo)(()=>({i18n:t}),[t]);return(0,n.jsx)(B0.Provider,{value:s,children:e})}function L9(){return(0,m.useContext)(B0)}var Mc=i(77335);const b9=J("locale-switcher");function kp(){const t=(0,Hs.y4)(),{i18n:e}=L9(),{locale:s}=(0,Me.DX)(),o=(0,m.useCallback)(r=>{const a=r.target.value;t((0,Mc.EL)(a))},[t]);return e?.available==null||e.available.length<=1?null:(0,n.jsx)("select",{className:b9(),onChange:o,defaultValue:s,children:e.available.map(r=>(0,n.jsx)("option",{children:r},r))})}const wp=J("cover"),fn=Dt("CoverAction",()=>{const{trackingQuizId:t}=(0,Me.DX)(),e=window.viewType==="preview",s=(0,Me._z)(),o=(0,Me.MT)(),r=(0,Me.Sd)(),a=s?.id,c=(0,ye.Wk)()?r===100:(0,ye.As)(),d=o!=null,l=d?o:a,u=!e&&ye.BI&&(c||!d&&!t),{courseCTALabel:h}=(0,Me.cN)({isCourseComplete:c,percentCourseComplete:r}),p=M()("cover__header-content-action-link","overview__button-enrolled",{"overview__start-again":u});return h?(0,n.jsxs)("div",{className:wp("header-content-action-wrapper"),children:[(0,n.jsx)(T9,{className:p,to:(0,_t.p1)(l),children:(0,n.jsx)("span",{className:wp("header-content-action-link-text"),children:h})}),(0,n.jsx)(kp,{})]}):(0,n.jsx)(kp,{})});var y9=i(312),ot=i.n(y9),rs=i(37322);const Dc=ot()("partner-content-course-author__"),I9=({partnerContentAuthors:t,darkText:e,isImage:s,learn:o,lesson:r,isOnePage:a,selectedContentId:c})=>{const d=qe()(Ue()("id",c),t),l=jt()(["data","authors"],d),h=(r?l:t).filter(C=>C.name),p=M()(Dc("author-container"),{[Dc("author-container-padding-top")]:e}),f=M()({[Dc("gray-text")]:!o&&!a}),g=M()(Dc("author-image")),v=C=>`url(${(0,rs.ny)({width:"76",height:"76",imageKey:C.image})})`;return(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Authors"}),(0,n.jsx)("ol",{className:p,role:"list",children:h.map(C=>(0,n.jsxs)("li",{className:Dc("author"),role:"listitem",children:[(0,n.jsx)("div",{"aria-hidden":"true",className:g,disabled:s,style:{backgroundImage:v(C)}}),(0,n.jsx)("span",{className:f,children:C.name})]},C.name))})]})},ui=J("cover"),N9=()=>{const t=(0,Me.UG)();if(t==null)return null;const{avatar:e,authorName:s,title:o}=t;return(0,n.jsxs)("div",{className:ui("author-with-title"),children:[(0,n.jsx)(Bp,{avatar:e}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:ui("author-name"),children:s}),(0,n.jsx)("div",{className:ui("author-title"),children:o})]})]})},Bp=({avatar:t})=>{const e=ui("header-content-authors-avatar");return t?(0,n.jsx)("div",{className:e,style:{backgroundImage:`url(${(0,ye.o1)(t)})`}}):(0,n.jsx)("div",{className:e,children:(0,n.jsx)(E0,{decorative:!0})})},Bo=Dt("CoverAuthors",({className:t})=>{const{color:e,partnerContentId:s,selectedAuthorId:o,theme:r,themeId:a}=(0,Me.DX)(),{accentContrast:c,coverPageType:d}=r??{},{authorName:l,avatar:u}=(0,Me.UG)()??{},h=(0,Me.vU)(),p=(0,Me.hM)(),f=!!s&&!!p,v=Xs(768)&&(0,At.yL)(a,d),C=d===P.BL.LEFT_OVERLAY||d===P.BL.CENTERED_OVERLAY||v;if(o==="none")return null;const x=l||"Unknown User",S=ui("header-content-authors").mix(t),E=ui("header-content-authors-name");return f?(0,n.jsx)("div",{className:S,children:(0,n.jsx)(I9,{accentContrast:c,color:e,isImage:C,learn:!0,partnerContentAuthors:p})}):(0,n.jsxs)("div",{className:S,children:[(0,n.jsx)(Bp,{avatar:u,isImage:C}),(0,n.jsxs)("div",{className:E,children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:h?.a11yAuthorPrefix}),(0,n.jsx)("span",{children:x})]})]})}),j9=J("cover"),Zn=Dt("CoverContentNoImage",({children:t})=>{const e=j9("header-content");return(0,n.jsx)("div",{className:e,children:t})});var gn=i(77541);const pa=t=>{const e=(0,Me.DX)(),s=(0,It.gY)();return A9(e,t,s)},A9=(t,e,s)=>{const{media:o,alpha:r}=e==="coverImage"?(0,gn.dM)(t,s):(0,gn.LI)(t,s),a="image"in o?(0,gn.I6)(o?.image?.alt):void 0;return{alpha:r,ariaLabel:a,media:o,role:(0,gn.Vx)(a)}},R9=J("cover"),_0=()=>{const t=(0,Me.dT)(),{alpha:e,ariaLabel:s,media:o,role:r}=pa("coverImage"),a=R9("header-image"),c=(0,At.b9)({alpha:e,color:t,media:o});return(0,n.jsx)("div",{className:a,style:c,"aria-label":s,role:r})},O9=J("cover"),U0=({children:t})=>{const e=(0,Me.dT)(),s=`overlay-${e.toLowerCase()}`,o=O9("header-content",{[s]:!!e});return(0,n.jsxs)("div",{className:o,children:[t,(0,n.jsx)(_0,{})]})},P9=J("cover"),kc=({hasOverlay:t=!1})=>{const{alpha:e,ariaLabel:s,media:o,role:r}=pa("coverImage"),a=(0,At.b9)({alpha:e,hasOverlay:t,media:o}),c=P9("header-graphic",{"dot-com":ye.BI});return(0,n.jsx)("div",{className:c,style:a,"aria-label":s,role:r})},M9=J("cover");function vn({children:t}){const e=!!(0,Me.Bd)(),s=M9("header-content-info",{rbc:e,"rise-com":ye.BI});return(0,n.jsx)("div",{className:s,children:t})}var D9=i(59288);function k9(t,e){const s=(0,gn.sg)(t.src),o=t.width&&t.height&&!s,r=o?"async":void 0,a=o?"lazy":void 0,c=o?t.width:void 0,d=o?t.height:void 0;return(0,n.jsx)("img",{...t,decoding:r,height:d,loading:a,ref:e,width:c})}const _p=D9.forwardRef(k9),w9={ImageEagerOrLazy:_p},Up=Object.assign((0,m.createContext)(w9),{displayName:"BundleContext"});function B9({children:t,...e}){return(0,n.jsx)(Up.Provider,{value:e,children:t})}function _9(){return null}function hi(t){function e(s,o){const a=(0,m.useContext)(Up)[t]??_9;return(0,n.jsx)(a,{ref:o,...s})}return e.displayName=`BundleComponent(${t})`,(0,m.forwardRef)(e)}const tn=hi("CoverProgress"),U9=J("cover"),Cn=Dt("CoverTitle",()=>{const t=(0,Me.DX)(),e=(0,It.QQ)(t.title),s=U9("header-content-title"),o=ci("title"),r=(0,_s.uW)(t.title)?{"data-l10n-id":t.title.l10nId}:{"data-change-path":o};return(0,n.jsx)("h1",{...r,className:s,tabIndex:-1,children:e})}),H9={SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"LEFT_OVERLAY"};function Hp(){const{coverPageType:t}=(0,Me.DX)();return W4()?H9[t]??t:t}const F9=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(U0,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(tn,{}),(0,n.jsx)(fn,{})]})})}),z9=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(tn,{}),(0,n.jsx)(fn,{})]})})}),V9=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(kc,{}),(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(tn,{}),(0,n.jsx)(fn,{})]})})]}),W9=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(tn,{}),(0,n.jsx)(fn,{})]})}),(0,n.jsx)(kc,{})]});function G9(){switch(Hp()){default:case P.BL.LEFT_OVERLAY:case P.BL.CENTERED_OVERLAY:return(0,n.jsx)(F9,{});case P.BL.LEFT:case P.BL.CENTERED:return(0,n.jsx)(z9,{});case P.BL.SPLIT_LEFT_IMAGE:case P.BL.TWO_THIRDS_LEFT_IMAGE:return(0,n.jsx)(W9,{});case P.BL.SPLIT_RIGHT_IMAGE:case P.BL.TWO_THIRDS_RIGHT_IMAGE:return(0,n.jsx)(V9,{})}}function K9(){return(0,n.jsx)("header",{className:"cover__header",children:(0,n.jsx)(G9,{})})}var $9=i(1063),wc=i.n($9);const Q9=J("cover");function Z9({children:t}){const e=Hp(),s=(0,m.useMemo)(()=>wc()(e),[e]),o=Q9({layout:s});return(0,n.jsx)("div",{id:"cover",className:o,children:t})}var Y9=i(56401),wt=i.n(Y9),Yn=i(33530),X9=i(71006),td=i.n(X9);const kr=({id:t="portal",childType:e="other",attributes:s}={})=>{const o=document.querySelector('dialog[open][aria-modal="true"]');let r,a;if(o!=null&&e!=="dialog"?(t=`${t}-dialog`,r=o.querySelector(`#${t}`),a=o):(r=document.querySelector(`#${t}`),a=document.body),r==null&&(r=document.createElement("div"),r.setAttribute("id",t),a.appendChild(r)),s)for(const[c,d]of Object.entries(s))r.setAttribute(c,d);return r};var Fp=i(59288);class J9 extends Fp.Component{static propTypes={id:A().any.isRequired,lessonProgress:A().object.isRequired,type:A().string.isRequired,items:A().array};refProgressWrap=Fp.createRef(null);constructor(e){super(e),this.state={isSticky:!1},this.portal=kr()}componentDidMount(){this.timeoutScroll=setTimeout(()=>{document.getElementById("page-wrap")?.addEventListener("scroll",this.onScroll)},10)}componentWillUnmount(){clearTimeout(this.timeoutScroll),document.getElementById("page-wrap")?.removeEventListener("scroll",this.onScroll)}onScroll=()=>{const e=document.getElementsByClassName("page-wrap")[0],s=e.scrollTop,o=e.scrollTop,r=this.refProgressWrap.current;if(!r)return;const c=r.getBoundingClientRect().top+o,d=s>c;this.state.isSticky!==d&&this.setState({isSticky:d})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:s}=this.props,o=tt()(-1,"activeIndex",s),r=us()(e);return o===-1?0:Zt()(o)===r?100:td()("%","",jt()([o,"linePosition"],e))}processProgressValue(){const{items:e,lessonProgress:s}=this.props,o=tt()(0,"activeIndex",s),r=us()(e);return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:e,type:s}=this.props;switch(s){case"process":return this.processProgressValue();case"sorting":return tt()(0,"percentViewed",e);case"timeline":return this.timelineProgressValue();default:return tt()(0,"percentComplete",e)}}render(){const{type:e,items:s}=this.props,{isSticky:o}=this.state,r=M()("progress-wrap",{}),a=M()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":o}),c=M()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),d=this.progressValue(),l=e==="timeline"&&s&&s.map(h=>{const p=M()("progress__marker",{"progress__marker--active brand--background":parseInt(d)>=parseInt(h.linePosition.slice(0,-1))});return(0,n.jsx)("div",{className:p,style:{left:h.linePosition}},h.id)}),u=(0,n.jsx)("div",{className:r,children:(0,n.jsx)("div",{className:c,children:(0,n.jsxs)("div",{className:"progress__container",children:[(0,n.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${d}% * var(--dir-x)),0px,0px)`}}),l]})})});return(0,n.jsxs)("div",{ref:this.refProgressWrap,children:[u,(0,Yn.createPortal)((0,n.jsx)("div",{className:a,children:u}),this.portal)]})}}const H0=J("lesson-header"),_o=Dt("LessonHeaderAuthor",({avatar:t,authorName:e,className:s=""})=>{const o=(0,Me.vU)();return(0,n.jsxs)("div",{className:`lesson-header__author ${s}`,children:[(0,n.jsx)("img",{className:"lesson-header__author-img",src:(0,ye.o1)(t),alt:""}),(0,n.jsx)("span",{className:"visually-hidden-always",children:o?.a11yAuthorPrefix}),(0,n.jsx)("span",{className:"lesson-header__author-name",children:e})]})}),Bc=({showPartnerContent:t=!1})=>(0,n.jsx)("div",{className:H0("author",{"partner-content":t})}),Uo=()=>(0,n.jsx)("div",{className:"lesson-header__counter"}),Ho=({lessonName:t,lessonPreposition:e,totalLessons:s,lessonNumber:o,showPartnerContent:r})=>{const{lmsOptions:a}=(0,Me.DX)();return(0,n.jsx)("div",{className:H0("counter",{"partner-content":r}),children:(0,n.jsx)("div",{className:H0("count",{"exit-button-enabled":a?.enableExitCourse}),children:`${t} ${o} ${e} ${s}`})})},fa=({description:t})=>(0,n.jsx)(Nt,{className:"lesson-header__description",value:t}),q9=({children:t})=>(0,n.jsx)("div",{className:"lesson-header__grouped-row",children:t}),e8=({ariaLabel:t,imgRole:e,children:s,sectionStyles:o,topWrapClassName:r})=>(0,n.jsxs)("header",{className:"page__header",children:[(0,n.jsx)("div",{className:"page__header-limit",children:(0,n.jsx)("div",{className:"page__header-container",children:(0,n.jsx)("div",{className:"lesson-header__row",children:(0,n.jsx)("div",{className:"lesson-header__main",children:(0,n.jsx)("div",{className:"lesson-header",children:(0,n.jsx)("div",{className:r,children:s})})})})})}),(0,n.jsx)("div",{className:"page__header-bg","aria-label":t,role:e,style:o})]}),Fo=({title:t,id:e})=>{const s=Sp(e,"title");return(0,n.jsx)("h1",{className:"lesson-header__title","data-change-path":s,tabIndex:-1,children:(0,n.jsx)(Nt,{value:t})})},t8=t=>{const{authorName:e,avatar:s,color:o,description:r,labels:a,lessonHeaderStyle:c,lessonId:d,lessonNumber:l,partnerContentAuthors:u,showAuthor:h,showLessonCount:p,title:f,totalLessons:g}=t,{lessonName:v,lessonPreposition:C}=a,x=b=>`url(${(0,rs.ny)({width:"76",height:"76",imageKey:b.image})})`,S=c===P.xj.TINT?{color:o}:null,E=s&&e&&h&&!u;return(0,n.jsxs)("div",{className:"lesson-header",children:[(0,n.jsxs)("div",{className:"lesson-header__top-wrap",style:S,children:[(0,n.jsx)(Fo,{title:f,id:d}),u&&(0,n.jsx)("div",{className:"lesson-header__partner-content",children:u.map(b=>(0,n.jsxs)("div",{className:"lesson-header__partner-content-author",children:[(0,n.jsx)("div",{className:"lesson-header__partner-content-author-img",style:{backgroundImage:x(b)}}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:a?.a11yAuthorPrefix}),(0,n.jsx)("span",{children:b.name})]})]},b.name))}),(0,n.jsxs)("div",{className:"lesson-header__author-count-wrap",children:[E?(0,n.jsx)(_o,{avatar:s,authorName:e}):(0,n.jsx)(Bc,{}),p?(0,n.jsx)(Ho,{lessonName:v,lessonNumber:l,lessonPreposition:C,totalLessons:g}):(0,n.jsx)(Uo,{})]})]}),r&&(0,n.jsx)(fa,{description:r})]})};class wie extends ie().Component{static propTypes={authorName:A().string,avatar:A().string,description:A().string,showLessonCount:A().bool,steps:A().number,title:A().string.isRequired,type:A().string.isRequired};render(){const{children:e}=this.props;return(0,n.jsx)("section",{className:"page__header",children:(0,n.jsxs)("div",{className:"page__header-limit",children:[(0,n.jsx)("div",{className:"page__header-container",children:(0,n.jsx)("div",{className:"lesson-header__row",children:(0,n.jsx)("div",{className:"lesson-header__main",children:(0,n.jsx)(t8,{...this.props})})})}),ie().Children.map(e,s=>s&&s.type!==J9?null:s)]})})}}const wr=J("lesson-header"),zp=t=>`url(${(0,rs.ny)({width:"76",height:"76",imageKey:t?.image})})`,F0=({partnerContentAuthors:t})=>{const e=t.map(o=>o.name).join(", "),s=t.length===1;return(0,n.jsxs)("div",{className:wr("partner-content",{mobile:!0}),children:[(0,n.jsx)("div",{className:wr("partner-content-author",{single:s}),children:t.map(o=>(0,n.jsx)("div",{className:wr("partner-content-author-img",{single:s}),style:{backgroundImage:zp(o)}},o.name))}),(0,n.jsx)("span",{"aria-hidden":"true",className:wr("author-name"),children:e})]})},mi=({partnerContentAuthors:t})=>{const e=(0,Me.vU)();return(0,n.jsx)("div",{className:wr("partner-content"),children:t.map(s=>(0,n.jsxs)("div",{className:wr("partner-content-author"),children:[(0,n.jsx)("div",{className:wr("partner-content-author-img"),style:{backgroundImage:zp(s)}}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("span",{className:"visually-hidden",children:[e?.a11yAuthorPrefix," ",s.name]}),(0,n.jsx)("span",{"aria-hidden":"true",className:wr("author-name"),tag:"span",children:s.name})]})]},s.name))})},pi=J("lesson-header"),s8=({authorName:t,avatar:e,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:c,showAuthor:d,showLessonCount:l,title:u,totalLessons:h,lessonId:p})=>{const f=!wt()(c)&&d,g=e&&t&&d&&!f,v=g||f||l,C=l&&(g||f);return(0,n.jsxs)("div",{className:pi("content"),children:[v&&(0,n.jsxs)("div",{className:pi("info-row"),children:[g?(0,n.jsx)(_o,{avatar:e,authorName:t}):(0,n.jsx)(Bc,{}),f&&(0,n.jsx)(mi,{partnerContentAuthors:c}),C&&(0,n.jsx)("span",{"aria-hidden":"true",className:pi("info-row--divider"),children:"|"}),l?(0,n.jsx)(Ho,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(Uo,{})]}),(0,n.jsxs)("div",{className:pi("title-wrapper",{"no-info":!v}),children:[(0,n.jsx)(Fo,{title:u,id:p}),s&&(0,n.jsx)(fa,{description:s})]})]})},n8=({authorName:t,avatar:e,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:c,showAuthor:d,showLessonCount:l,title:u,totalLessons:h,lessonId:p})=>{const f=!wt()(c),g=(0,m.useMemo)(()=>e&&t&&d&&!f,[e,t,d,f]);return(0,n.jsxs)("div",{className:pi("content"),children:[l?(0,n.jsx)(Ho,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(Uo,{}),g&&(0,n.jsx)(_o,{avatar:e,authorName:t}),d&&f&&(0,n.jsx)(F0,{partnerContentAuthors:c}),(0,n.jsx)(Fo,{title:u,id:p}),s&&(0,n.jsx)(fa,{description:s})]})},o8=({authorName:t,avatar:e,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:c,showAuthor:d,showLessonCount:l,title:u,totalLessons:h,lessonId:p})=>{const f=!wt()(c),g=(0,m.useMemo)(()=>e&&t&&d&&!f,[e,t,d,f]);return(0,n.jsxs)("div",{className:pi("content"),children:[l?(0,n.jsx)(Ho,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(Uo,{}),(0,n.jsx)(Fo,{title:u,id:p}),g?(0,n.jsx)(_o,{avatar:e,authorName:t}):(0,n.jsx)(Bc,{showPartnerContent:f}),d&&f&&(0,n.jsx)(mi,{partnerContentAuthors:c}),s&&(0,n.jsx)(fa,{description:s})]})},r8=t=>{const e=P0();return t.lessonHeaderSize===P.OX.SMALL&&!e?(0,n.jsx)(s8,{...t}):e?(0,n.jsx)(n8,{...t}):(0,n.jsx)(o8,{...t})},fi=t=>t===P.AY.FLOATING||t===P.AY.FLOATING_FULL;function ga(){const t=(0,Hs.LY)(({course:{buttonNavigationStyle:s}})=>s);return Xs(480)&&t===P.AY.FLOATING?P.AY.FLOATING_FULL:t}const a8=({className:t},e)=>(0,n.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 15",height:"15",width:"16",ref:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M2.34315 7.34315L8 13L13.6569 7.34315",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,n.jsx)("rect",{x:"7",y:"1",width:"2",height:"12",rx:"0.999999",fill:"currentColor"})]}),z0=(0,m.forwardRef)(a8),i8=({className:t},e)=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",ref:e,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 8L7.65685 13.6569L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),Vp=(0,m.forwardRef)(i8),gi=hi("LessonNav"),Wp=J("lesson-nav");function c8({allowTooltip:t,courseFinishLabel:e,onFocus:s,nextLesson:o,restrictionData:r,restrictionType:a},c){const d=o?.id,l=ga(),u=fi(l),h=u?z0:Vp;return(0,n.jsxs)(gi,{allowTooltip:t,direction:"next",finish:!0,isFloating:u,navLessonId:d,onFocus:s,ref:c,restrictionData:r,restrictionType:a,children:[(0,n.jsx)("span",{className:Wp("link-text").mix("brand--ui"),children:e}),(0,n.jsx)(h,{className:Wp("link-icon")})]})}const l8=(0,m.forwardRef)(c8),Gp=J("lesson-nav");function d8({allowTooltip:t,lessonNameLabel:e,nextLesson:s,nextLessonNumber:o,onFocus:r,restrictionData:a,restrictionType:c},d){const l=s?.id,u=ga(),h=fi(u),f=(0,At.GG)(s)&&l,g=(0,It.QQ)(s?.title)||"",v=h?z0:Vp,C=f?`${e} ${o} - `:"",x=h&&f?`${e} ${o}`:`${C}${g}`;return(0,n.jsxs)(gi,{allowTooltip:t,direction:"next",isFloating:h,navLessonId:l,onFocus:r,ref:d,restrictionData:a,restrictionType:c,children:[(0,n.jsx)("span",{className:Gp("link-text").mix("brand--ui"),children:x}),(0,n.jsx)(v,{className:Gp("link-icon")})]})}const u8=(0,m.forwardRef)(d8),h8=({className:t},e)=>(0,n.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:"15",role:"img",ref:e,viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M13.6569 7.65685L8 2L2.34315 7.65686",rule:"stroke",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,n.jsx)("rect",{fill:"currentColor",x:"9",y:"14",width:"2",height:"12",rx:"0.999999",transform:"rotate(180 9 14)"})]}),Kp=(0,m.forwardRef)(h8),m8=({className:t},e)=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",ref:e,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 8L7.65685 2.34315L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),p8=(0,m.forwardRef)(m8),sd=J("lesson-nav"),f8=({allowTooltip:t,className:e,courseHomeLabel:s,lessonNameLabel:o,onFocus:r,previousLesson:a,previousLessonNumber:c},d)=>{const l=a?.id,u=ga(),h=fi(u),f=(0,At.GG)(a)&&l,g=(0,It.QQ)(a?.title)||s,v=h?Kp:p8,C=f?`${o} ${c} - ${g}`:g,x=f&&h?`${o} ${c}`:C;return(0,n.jsx)(gi,{allowTooltip:t,className:e,direction:"previous",isFloating:h,navLessonId:l,onFocus:r,ref:d,children:h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:sd("link-text").mix("brand--ui"),children:x}),(0,n.jsx)(v,{className:sd("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v,{className:sd("link-icon")}),(0,n.jsx)("span",{className:sd("link-text").mix("brand--ui"),children:x})]})})},g8=(0,m.forwardRef)(f8);var as=i(91159),bs=i(82684),$p=i(15045);function v8({className:t,cx:e,cy:s,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:c,strokeWidth:d,value:l=0}){const u=(0,m.useRef)(null),h=`mask-${(0,$p.A)()}`,p=(100-l)/100*(2*a);return(0,bs.A)("transitionend",r,u.current),(0,n.jsxs)("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,children:[(0,n.jsx)("defs",{children:(0,n.jsx)("mask",{id:h,children:(0,n.jsx)("rect",{x:"0",y:l===0?100:p,width:2.3*a,height:2.3*a,fill:"white"})})}),(0,n.jsx)("circle",{className:t,cx:e,cy:s,fill:"none",r:a,ref:u,mask:`url(#${h})`,strokeLinecap:c,strokeWidth:d})]})}const V0=v8;function C8({className:t,cx:e,cy:s,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:c,strokeWidth:d,transform:l,value:u=0}){const h=(0,m.useRef)(null),p=Math.PI*(Number(o)-Number(d)),f=p*(100-u)/100;return(0,bs.A)("transitionend",r,h.current),(0,n.jsx)("circle",{className:t,cx:e,cy:s,fill:"transparent",r:a,ref:h,strokeDasharray:p,strokeDashoffset:f,strokeLinecap:c,strokeWidth:d,transform:l})}const Qp=C8,{COMPACT:x8,COVER:E8,OVERLAY:T8,SIDEBAR:S8}=$e.by,_c=J("progress-circle");function L8({"aria-hidden":t,"aria-label":e,isCurrent:s,isFailed:o,isPassed:r,scope:a,value:c}){const[d,l]=(0,m.useState)(c===100),u=(0,as.A)(c),{theme:{progressIndicatorStyle:h=P.Y2.THEME_DEFAULT}}=(0,Me.DX)(),p=a===E8,f=a===T8,g=h===P.Y2.THEME_DEFAULT,v=h===P.Y2.CIRCULAR_FILL,C=h===P.Y2.INCOMPLETE_COMPLETE,x=_c({compact:a===x8,cover:p,current:s,sidebar:a===S8,overlay:f}),S=_c("track",{"circular-fill":!f&&v,"incomplete-complete":p&&C}),E=_c("runner",{"circular-fill":v,done:d,failed:o,passed:r,unstarted:c===0}),b=_c("pass",{done:d,visible:r}),L=_c("fail",{done:d,visible:o}),I=(0,m.useMemo)(()=>v||c===100?c:0,[v,c]);return(0,m.useEffect)(()=>{if(c!==100&&u===100)l(!1);else if(c===100&&!d&&!C){const N=setTimeout(()=>l(!0),300);return clearTimeout.bind(null,N)}else c===100&&!d&&C&&l(!0)},[d,C,u,c]),(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:x,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 16",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:S,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),g?(0,n.jsx)(Qp,{className:E,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,transform:"rotate(-89.9 8 8)",value:c}):(0,n.jsx)(V0,{className:E,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,strokeLinecap:"round",value:I}),(0,n.jsx)("path",{className:b,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,n.jsx)("path",{className:L,clipRule:"evenodd",d:"M9.46967 10.5303C9.76256 10.8232 10.2374 10.8232 10.5303 10.5303C10.8232 10.2374 10.8232 9.76256 10.5303 9.46967L9.06066 8L10.5303 6.53033C10.8232 6.23744 10.8232 5.76256 10.5303 5.46967C10.2374 5.17678 9.76256 5.17678 9.46967 5.46967L8 6.93934L6.53033 5.46967C6.23744 5.17678 5.76256 5.17678 5.46967 5.46967C5.17678 5.76256 5.17678 6.23744 5.46967 6.53033L6.93934 8L5.46967 9.46967C5.17678 9.76256 5.17678 10.2374 5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303L8 9.06066L9.46967 10.5303Z",fillRule:"evenodd"})]})}const nd=(0,m.createContext)(null);nd.displayName="CourseNavContext";function b8(t){const{children:e,isCourseNavOpen:s}=t;return(0,n.jsx)(nd.Provider,{value:{isCourseNavOpen:s},children:e})}const Uie=nd.Consumer;function y8(){return(0,m.useContext)(nd)}function I8(t){function e(s){const o=y8();return(0,n.jsx)(t,{...s,...o})}return Object.assign(e,{displayName:`withCourseNavContext(${t.displayName||t.name})`})}const W0=960;function Uc(){return Xs(W0)}const Hie=O0(W0,"isMobile","Mobile");function N8(){const t=(0,Me.DX)(),e=Uc(),s=(0,Me.SQ)();return(0,At.L3)({course:t,isMobile:e,search:s})}function j8(t){function e(s){const o=N8();return(0,n.jsx)(t,{...s,sidebarAvailable:o})}return e.displayName=`withNavSidebarAvailable(${t.displayName||t.name})`,e}function A8(){const t=(0,Me.DX)(),e=Uc();return(0,At.IO)({course:t,isMobile:e})}var Zp=i(59288);class R8 extends Zp.Component{static propTypes={id:A().any.isRequired,lessonProgress:A().object.isRequired,navigationType:A().string,type:A().string.isRequired,items:A().array};refProgressWrap=Zp.createRef(null);constructor(e){super(e),this.state={isSticky:!1},this.portal=kr()}componentDidMount(){this.timeoutScroll=setTimeout(()=>{document.getElementById("page-wrap")?.addEventListener("scroll",this.onScroll)},10)}componentWillUnmount(){clearTimeout(this.timeoutScroll),document.getElementById("page-wrap")?.removeEventListener("scroll",this.onScroll)}onScroll=()=>{const e=document.getElementsByClassName("page-wrap")[0],s=e.scrollTop,o=e.scrollTop,r=this.refProgressWrap.current;if(!r)return;const c=r.getBoundingClientRect().top+o,d=s>c&&s>0;this.state.isSticky!==d&&this.setState({isSticky:d})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:s}=this.props,o=tt()(-1,"activeIndex",s),r=us()(e);return o===-1?0:Zt()(o)===r?100:td()("%","",jt()([o,"linePosition"],e))}processProgressValue(){const{items:e,lessonProgress:s}=this.props,o=tt()(0,"activeIndex",s),r=us()(e);return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:e,type:s}=this.props;switch(s){case"process":return this.processProgressValue();case"sorting":return tt()(0,"percentViewed",e);case"timeline":return this.timelineProgressValue();default:return tt()(0,"percentComplete",e)}}render(){const{type:e,items:s,sidebarAvailable:o}=this.props,{isSticky:r}=this.state,a=M()("progress-wrap",{}),c=this.props.isCourseNavOpen,d=this.props.isCourseNavOpen&&this.props.isMobile,l=M()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":r&&!d,"lesson--open":c&&o&&!this.isLessonPreview(),"lesson--open-mobile":o&&d&&!this.isLessonPreview()}),u=M()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),h=this.progressValue(),p=e==="timeline"&&s&&s.map(g=>{const v=M()("progress__marker",{"progress__marker--active brand--background":parseInt(h)>=parseInt(g.linePosition.slice(0,-1))});return(0,n.jsx)("div",{className:v,style:{left:g.linePosition}},g.id)}),f=(0,n.jsx)("div",{className:a,children:(0,n.jsx)("div",{className:u,children:(0,n.jsxs)("div",{className:"progress__container",children:[(0,n.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${h}% * var(--dir-x)),0px,0px)`}}),p]})})});return(0,n.jsxs)("div",{ref:this.refProgressWrap,children:[f,(0,Yn.createPortal)((0,n.jsx)("div",{className:l,"aria-hidden":"true",children:f}),this.portal)]})}}const O8=Se()(j8,I8,O0(480,"isMobile"))(R8),P8=ri,M8=ri,D8=ri,k8=ri,w8=ri,B8=ri;function $s({children:t,className:e,height:s,width:o,viewBox:r}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:s,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:t})}function _8(t){return(0,n.jsxs)($s,{viewBox:"0 0 24 24",...t,children:[(0,n.jsx)("path",{d:"M1 10.9609L10 19.9609",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M1 11.9609L10 2.96094",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M2 11.5H23",stroke:"currentColor",strokeWidth:"1.5"})]})}const U8=({className:t})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 8",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"8",children:(0,n.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 5h11.6l-1.3 1.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4l-3-3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4L12.6 3H1c-.6 0-1 .4-1 1s.4 1 1 1"})});function H8(t){return(0,n.jsx)($s,{height:"12",width:"18",viewBox:"0 0 18 12",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M0.666992 1.00002C0.666992 0.539783 1.04009 0.166687 1.50033 0.166687H14.0003C14.4606 0.166687 14.8337 0.539783 14.8337 1.00002C14.8337 1.46026 14.4606 1.83335 14.0003 1.83335H1.50033C1.04009 1.83335 0.666992 1.46026 0.666992 1.00002ZM0.666992 6.00002C0.666992 5.53978 1.04009 5.16669 1.50033 5.16669H16.5003C16.9606 5.16669 17.3337 5.53978 17.3337 6.00002C17.3337 6.46026 16.9606 6.83335 16.5003 6.83335H1.50033C1.04009 6.83335 0.666992 6.46026 0.666992 6.00002ZM0.666992 11C0.666992 10.5398 1.04009 10.1667 1.50033 10.1667H10.667C11.1272 10.1667 11.5003 10.5398 11.5003 11C11.5003 11.4603 11.1272 11.8334 10.667 11.8334H1.50033C1.04009 11.8334 0.666992 11.4603 0.666992 11Z",fill:"currentColor",fillRule:"evenodd"})})}function F8(t){return(0,n.jsx)($s,{height:"6",width:"10",viewBox:"0 0 10 6",...t,children:(0,n.jsx)("path",{d:"M9 1L5 5L1 1",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function z8(t){return(0,n.jsx)($s,{height:"6",width:"10",viewBox:"0 0 10 6",...t,children:(0,n.jsx)("path",{d:"M1 5L5 1L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function V8(t){return(0,n.jsxs)($s,{height:"21",width:"20",viewBox:"0 0 20 21",...t,children:[(0,n.jsx)("path",{d:"M9.94535 6.125C9.1938 6.125 8.52385 6.6729 8.30039 7.48015C8.17194 7.9442 7.70954 8.21104 7.26759 8.07617C6.82564 7.94129 6.5715 7.45577 6.69996 6.99172C7.11282 5.50025 8.3916 4.375 9.94535 4.375C11.8499 4.375 13.3335 6.05606 13.3335 8.05C13.3335 9.7417 12.2656 11.2082 10.7787 11.6139V12.25C10.7787 12.7332 10.4056 13.125 9.94535 13.125C9.48511 13.125 9.11201 12.7332 9.11201 12.25V10.85C9.11201 10.3668 9.48511 9.975 9.94535 9.975C10.8628 9.975 11.6668 9.14886 11.6668 8.05C11.6668 6.95114 10.8628 6.125 9.94535 6.125Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M10.0002 14C9.53992 14 9.16683 14.3918 9.16683 14.875C9.16683 15.3582 9.53992 15.75 10.0002 15.75H10.0085C10.4687 15.75 10.8418 15.3582 10.8418 14.875C10.8418 14.3918 10.4687 14 10.0085 14H10.0002Z",fill:"currentColor"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M0.833496 3.55556C0.833496 2.01519 2.09493 0.875 3.51868 0.875H16.4816C17.9054 0.875 19.1668 2.01519 19.1668 3.55556V17.4444C19.1668 18.9848 17.9054 20.125 16.4816 20.125H3.51868C2.09493 20.125 0.833496 18.9848 0.833496 17.4444V3.55556ZM3.51868 2.625C2.89693 2.625 2.50016 3.10156 2.50016 3.55556V17.4444C2.50016 17.8984 2.89693 18.375 3.51868 18.375H16.4816C17.1034 18.375 17.5002 17.8984 17.5002 17.4444V3.55556C17.5002 3.10156 17.1034 2.625 16.4816 2.625H3.51868Z",fill:"currentColor",fillRule:"evenodd"})]})}var W8=i(95017),Ps=i.n(W8);function Yp(t){return(0,n.jsx)(is,{...Ps()(["Default"],t),fill:"none",viewBox:"1 1 18 18",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99998 0.833336C4.93737 0.833336 0.833313 4.93739 0.833313 10C0.833313 15.0626 4.93737 19.1667 9.99998 19.1667C15.0626 19.1667 19.1666 15.0626 19.1666 10C19.1666 4.93739 15.0626 0.833336 9.99998 0.833336ZM13.0892 6.91075C13.4147 7.23618 13.4147 7.76382 13.0892 8.08926L11.1785 10L13.0892 11.9107C13.4147 12.2362 13.4147 12.7638 13.0892 13.0893C12.7638 13.4147 12.2362 13.4147 11.9107 13.0893L9.99998 11.1785L8.08923 13.0893C7.7638 13.4147 7.23616 13.4147 6.91072 13.0893C6.58529 12.7638 6.58529 12.2362 6.91072 11.9107L8.82147 10L6.91072 8.08926C6.58529 7.76382 6.58529 7.23618 6.91072 6.91075C7.23616 6.58531 7.7638 6.58531 8.08923 6.91075L9.99998 8.82149L11.9107 6.91075C12.2362 6.58531 12.7638 6.58531 13.0892 6.91075Z",fill:"black"})})}function od(t){return(0,n.jsxs)(is,{...Ps()(["Default"],t),fill:"none",viewBox:"0 0 18 18",children:[(0,n.jsx)("circle",{cx:"9",cy:"9",r:"9",fill:"#74BF44"}),(0,n.jsx)("path",{d:"M6.43994 9.12061L8.43994 11.1206L11.9399 7.62061",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function G8(t){return(0,n.jsx)($s,{height:"12",width:"12",viewBox:"0 0 12 12",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M5.325 9.01843C3.225 9.01843 1.5 7.37868 1.5 5.29172C1.5 3.20476 3.225 1.49048 5.325 1.49048C7.425 1.49048 9.15 3.20476 9.15 5.29172C9.15 7.37868 7.425 9.01843 5.325 9.01843ZM9.525 8.42236C10.2 7.52795 10.575 6.48447 10.575 5.29193C10.575 2.38509 8.25 0 5.325 0C2.4 0 0 2.38509 0 5.29193C0 8.19876 2.4 10.5839 5.325 10.5839C6.525 10.5839 7.65 10.2112 8.475 9.54037L10.725 11.7764C10.875 11.9255 11.1 12 11.25 12C11.4 12 11.625 11.9255 11.775 11.7764C12.075 11.4783 12.075 11.0311 11.775 10.7329L9.525 8.42236Z",fill:"currentColor",fillRule:"evenodd"})})}function K8(t){return(0,n.jsx)($s,{height:"5",width:"10",viewBox:"0 0 10 5",...t,children:(0,n.jsx)("path",{d:"M5.56569 4.75592L8.76601 1.42259C9.27003 0.897618 8.91306 0 8.20027 0L1.79963 0C1.08683 0 0.729863 0.897618 1.23389 1.42259L4.43421 4.75592C4.74666 5.08136 5.25324 5.08136 5.56569 4.75592Z",fill:"currentColor"})})}function $8(t){return(0,n.jsxs)($s,{height:"18",width:"18",viewBox:"0 0 18 18",...t,children:[(0,n.jsx)("path",{d:"M3.1665 6.08335C3.1665 4.01229 4.84544 2.33335 6.9165 2.33335C8.98757 2.33335 10.6665 4.01229 10.6665 6.08335C10.6665 6.37941 10.6324 6.66643 10.5681 6.9411C10.4634 7.38925 10.7417 7.83748 11.1899 7.94225C11.6381 8.04702 12.0863 7.76865 12.1911 7.3205C12.2841 6.92235 12.3332 6.50805 12.3332 6.08335C12.3332 3.09181 9.90805 0.666687 6.9165 0.666687C3.92496 0.666687 1.49984 3.09181 1.49984 6.08335C1.49984 6.46923 1.54032 6.84657 1.61756 7.21105C1.679 7.50095 1.76362 7.78236 1.86938 8.05316C1.97511 8.32389 2.10191 8.5839 2.24772 8.83119C2.48148 9.22764 2.99237 9.35953 3.38882 9.12577C3.78527 8.89201 3.91716 8.38112 3.6834 7.98467C3.58248 7.81352 3.49485 7.63379 3.42186 7.44688C3.34886 7.25994 3.29045 7.0657 3.24802 6.86551C3.1947 6.61395 3.1665 6.3524 3.1665 6.08335Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9.18922 9.34412L14.8186 10.2697C16.2762 10.5117 17.3332 11.6819 17.3332 13.0521V16.6037C17.3332 17.0029 16.9837 17.3264 16.553 17.3264C16.122 17.3264 15.7728 17.0029 15.7728 16.6037V13.0521C15.7728 12.3826 15.2561 11.8108 14.5446 11.6926L8.30452 10.6667H8.30233C7.90851 10.6331 7.57585 10.2773 7.57585 9.8899V6.0524C7.57585 5.88733 7.48441 5.73325 7.33119 5.64046C7.17921 5.54853 6.99291 5.53668 6.82002 5.60606C6.63747 5.68035 6.51483 5.87085 6.51483 6.08044V15.3607C6.51483 15.6856 6.30169 15.9391 5.91441 16.0741C5.40325 16.2528 4.90988 16.0261 4.70516 15.7226L3.01346 13.2999C2.93513 13.1565 2.84963 13.09 2.68954 13.0406C2.59935 13.0249 2.47889 13.0408 2.37154 13.0906C2.2798 13.1394 2.22768 13.4826 2.38902 13.9902C2.41984 14.0542 3.0442 15.4844 3.27756 16.0189C3.32536 16.1284 3.35676 16.2003 3.36328 16.2152C3.47656 16.4494 3.49404 16.6994 3.40853 16.8957C3.33551 17.0631 3.1904 17.1911 2.98912 17.2663C2.893 17.3018 2.77099 17.3334 2.63742 17.3334C2.36124 17.3334 2.03826 17.1986 1.80702 16.6867L1.75272 16.5849C1.3289 15.6773 1.03464 14.952 0.90735 14.6382L0.905151 14.6328L0.896561 14.6115C0.87092 14.548 0.854463 14.5072 0.847419 14.4926C0.45609 13.3756 0.711983 12.3355 1.49527 11.8308C1.97428 11.5452 2.55316 11.4538 3.08867 11.5781C3.63572 11.7047 4.10288 12.0476 4.40371 12.5436L4.82936 13.2293V5.99429C4.82936 5.3563 5.1692 4.74981 5.7381 4.37228C6.30855 3.99359 7.0238 3.89848 7.69942 4.11153C8.55823 4.3824 9.13554 5.15654 9.13617 6.03881L9.18922 9.34412Z",fill:"currentColor"})]})}function Q8(t){return(0,n.jsxs)($s,{height:"14",width:"20",viewBox:"0 0 20 14",...t,children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"M19.548 2.09234C19.8255 2.23518 20 2.52116 20 2.83331V11.1666C20 11.4788 19.8255 11.7648 19.548 11.9076C19.2704 12.0505 18.9363 12.0262 18.6823 11.8448L12.849 7.67809C12.63 7.52166 12.5 7.2691 12.5 6.99998C12.5 6.73085 12.63 6.47829 12.849 6.32187L18.6823 2.1552C18.9363 1.97376 19.2704 1.9495 19.548 2.09234ZM14.7671 6.99998L18.3333 9.54732V4.45264L14.7671 6.99998Z",fill:"currentColor",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2.5 1.99998C2.03976 1.99998 1.66667 2.37308 1.66667 2.83331V11.1666C1.66667 11.6269 2.03976 12 2.5 12H11.6667C12.1269 12 12.5 11.6269 12.5 11.1666V2.83331C12.5 2.37308 12.1269 1.99998 11.6667 1.99998H2.5ZM0 2.83331C0 1.4526 1.11929 0.333313 2.5 0.333313H11.6667C13.0474 0.333313 14.1667 1.4526 14.1667 2.83331V11.1666C14.1667 12.5474 13.0474 13.6666 11.6667 13.6666H2.5C1.11929 13.6666 0 12.5474 0 11.1666V2.83331Z",fill:"currentColor",fillRule:"evenodd"})]})}function Z8(t){return(0,n.jsx)($s,{height:"10",width:"10",viewBox:"0 0 10 10",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M9.78572 9.78572C9.5 10.0714 9.07143 10.0714 8.78571 9.78572L5 6.00001L1.21429 9.78572C0.928571 10.0714 0.500001 10.0714 0.214285 9.78572C-0.0714284 9.49999 -0.0714284 9.07144 0.214285 8.78571L4 5L0.214285 1.21429C-0.0714284 0.928564 -0.0714284 0.500007 0.214285 0.214279C0.357143 0.0714143 0.500001 0 0.714286 0C0.928571 0 1.07143 0.0714143 1.21429 0.214279L5 3.99999L8.78571 0.214279C8.92857 0.0714143 9.14286 0 9.28572 0C9.42857 0 9.64286 0.0714143 9.78572 0.214279C10.0714 0.500007 10.0714 0.928564 9.78572 1.21429L6 5L9.78572 8.78571C10.0714 9.07144 10.0714 9.49999 9.78572 9.78572Z",fill:"currentColor",fillRule:"evenodd"})})}const Y8=J("cover"),rd=Dt("CoverDetailsSection",({children:t,type:e})=>(0,n.jsx)("section",{className:Y8("details-content-section",{type:e}),children:t}));var X8=i(72168),ws=i.n(X8),J8=i(4322),mt=i.n(J8),q8=i(10789),We=i.n(q8),e7=i(27905),st=i.n(e7),t7=i(72970),ur=i.n(t7),s7=i(97886),vi=i.n(s7),n7=i(86484),sn=i.n(n7),o7=i(47474),Ci=i.n(o7),r7=i(54996),a7=i.n(r7),i7=i(45015),c7=i.n(i7),l7=i(68971),Xp=i.n(l7),d7=i(18779),u7=i.n(d7),h7=i(67711),Eo=i.n(h7),m7=i(91794),Fs=i.n(m7),p7=i(53970),Br=i.n(p7),f7=i(63064),Hc=i.n(f7),he=i(36523),Ft=i(23366),g7=i(41820);class nn{static get isChrome(){return!window||!window.navigator?!1:/Chrome/.test(window.navigator.userAgent)&&/Google Inc/.test(window.navigator.vendor)}static get isSafari(){return!window||!window.navigator?!1:/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor)&&!/CriOS/.test(window.navigator.userAgent)}static get isIphoneSafari(){if(!window||!window.navigator)return!1;const e=/iPhone|iPod/.test(window.navigator.userAgent)&&!window.MSStream,s=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),o=/CriOS/.test(window.navigator.userAgent);return e&&s&&!o}static get isSafari9(){if(!window||!window.navigator)return!1;const e=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),s=/version\/9./i.test(window.navigator.userAgent);return e&&s}static get isIe11(){return!!(window&&Object.hasOwnProperty.call(window,"ActiveXObject")&&!window.ActiveXObject)}static get isEdge(){return!window||!window.navigator?!1:/Edge/.test(window.navigator.userAgent)}static get isMobile(){return!window||!window.navigator?!1:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}static get isLocalFilesystem(){return!window||!window.navigator?!1:/file:/.test(window.location.protocol)}static get isFirefox(){return window?.navigator?.userAgent.includes("Firefox")??!1}}const v7=Eo()(ot()),Jp=t=>e=>`${t}/${e.id}`,C7=(t,e)=>li()({data:(0,he.action)(e),method:"POST",url:(0,Ft.rq)(v7(`/${e}`),Pe()("url"),t),...Ls()(["headers","withCredentials"],t)}),x7=t=>(e,s)=>a7()(e,Jp(s),G0(t,s)),E7=t=>St()(Ye()({},["response","data"]),vi()(Pe()("type"),(0,he.error)(t))),T7=(t,e)=>s=>t.postRequest?t.postRequest(e,s):s,qp=t=>e=>s=>o=>(0,Ft.Ve)(o,C7(e,s),t,Xp()(E7(s),sn()(ur()("data"),Pe()("data"))),u7()(Fs()(Pe()("error"),Ci().Rejected,Ci().of)),T7(e,{type:s,payload:o})),S7=({url:t,method:e,data:s,headers:o})=>{if(nn.isFirefox){const r=new Blob([JSON.stringify(s)],{type:"application/json"}),a=window.navigator.sendBeacon(t,r);return Promise.resolve({type:s.type,payload:{...s.payload,queued:a}})}return fetch(t,{method:e,credentials:"include",headers:{"Content-Type":"application/json",...o},body:JSON.stringify(s),keepalive:!0}).then(r=>r.json()).then(Br()("data"))},L7=Ci().fromPromise(S7),G0=Hc()(3,qp(g7.Em)),b7=Hc()(3,qp(L7)),y7=t=>(e,s)=>c7()(e,Jp(s),G0(t,s)),I7=t=>({debounce:x7(t),send:G0(t),fetchWithKeepAlive:b7(t),throttle:y7(t)}),N7=`${(0,ye._$)("RISE_RUNTIME_URI")}/ducks`,j7=I7({headers:()=>({"x-rise-authoring-client":"b0cfec3e111b3befc9d749c774738dc41ea7eacf"}),postRequest:(t,e)=>e,url:N7,withCredentials:!0});var A7=i(41260),xi=i.n(A7);const R7=xi()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:(0,Re.Xl)(),userRole:(0,Re.O0)(),subId:(0,Re.EO)(),subPlan:(0,Re.QJ)(),subStatus:(0,Re.l6)()}}),O7=ot()("rise/track/")("TRACK"),e2=St()(vi()(ur()("userId"),st()("userId",(0,Re.kn)())),sn()(We()(ye.BI),R7),j7.send(O7)),xn=ot()("partner-content-book-info__"),P7=t=>{const{authors:e,backgroundColor:s,bookImage:o,bookTitle:r,buyLink:a,block:c,publishedAt:d,track:l,trackingInfo:u}=t,h=e.filter(R=>!Yt()(R.name)),p=ws()(R=>R.name,h),f=p.length>1?ha()(" & ",p):p[0],g=f.slice(-1)==="s"?"":"s",v=(0,ct.cP)(s),C=M()({[xn("book-image-block")]:c&&!v},{[xn("book-image-block")&&xn("dark-theme-book-image")]:c&&v},{[xn("book-image-course")]:!c}),x=xn(c?"flex-block":"flex-course"),S=xn(c?"image-container-block":"image-container-course"),E=M()(xn("small-text"),{[xn("dark-theme")]:v}),b=M()(xn("black-text"),{[xn("dark-theme")]:v}),L=M()(xn("button"),{[xn("dark-theme-button")]:v}),I=(0,rs.ny)({height:"210",width:"140",imageKey:o}),N=(0,m.useCallback)(()=>{ye.BI&&d&&l({event:"Click Tracked",payload:mt()(u,{type:"Buy Link"})})},[d,l,u]);return(0,n.jsxs)("section",{className:x,children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Book Info"}),(0,n.jsx)("div",{"aria-hidden":"true",className:S,children:o?(0,n.jsx)("img",{src:I,alt:"",className:C}):(0,n.jsx)("div",{className:C})}),(0,n.jsxs)("div",{className:xn("text-container"),children:[(0,n.jsxs)("p",{className:E,children:["From ",f,"'",g]}),(0,n.jsx)("p",{className:b,children:r}),(0,n.jsx)("a",{className:L,href:a,onClick:N,target:"_blank",rel:"noopener noreferrer",children:"Buy the book"})]})]})},M7={track:e2},t2=(0,Hs.Ls)(null,M7)(P7),Xn=ot()("partner-content-partner-info__"),D7=({backgroundColor:t,block:e,link:s,publishedAt:o,track:r,trackingInfo:a})=>{const c=e?(0,rs.H5)():(0,rs.DB)(),d=Xn(e?"nbic-logo-light-bulb":"nbic-logo"),l=Xn(e?"block-logo-container":"logo-container"),u=(0,ct.cP)(t),h=M()(Xn("small-text"),{[Xn("dark-theme")]:u}),p=M()(Xn("black-text"),{[Xn("dark-theme")]:u}),f=M()(Xn("button"),{[Xn("dark-theme-button")]:u}),g=(0,m.useCallback)(()=>{ye.BI&&o&&r({event:"Click Tracked",payload:mt()(a,{type:"Partner Link"})})},[o,r,a]);return(0,n.jsxs)("section",{className:Xn("flex"),children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Partner Info"}),(0,n.jsx)("div",{"aria-hidden":"true",className:l,children:(0,n.jsx)("img",{src:c,alt:"",className:d})}),(0,n.jsxs)("div",{className:Xn("text-container"),children:[(0,n.jsx)("p",{className:h,children:"In partnership with"}),(0,n.jsx)("p",{className:p,children:"Next Big Idea Club"}),(0,n.jsx)("a",{className:f,href:s,onClick:g,rel:"noopener noreferrer",target:"_blank",children:"Learn more"})]})]})},k7={track:e2},s2=(0,Hs.Ls)(null,k7)(D7),Ei=ot()("partner-content-author-card__"),n2=t=>{const{courseId:e,partnerContent:s,publishedAt:o,tenantId:r}=t,{data:a,type:c}=s,{authors:d,bookImage:l,bookTitle:u,buyLink:h,internalId:p,nbicLink:f}=a,g=d.filter(E=>E.name),v={courseId:e,partnerContentId:s.id,partnerContentInternalId:p,tenantId:r,contentSubtype:c},C=M()(Ei("flex"),Ei("author-container")),x=E=>(0,rs.ny)({width:"122",height:"122",imageKey:E}),S=(E,b)=>(0,n.jsx)("div",{"aria-hidden":"true",className:Ei("image-container"),children:E?(0,n.jsx)("img",{src:x(E),alt:b,className:Ei("author-image")}):(0,n.jsx)("div",{className:Ei("author-image")})});return(0,n.jsxs)("ol",{className:"partner-content-author-card",role:"list",children:[(0,n.jsx)("li",{role:"listitem",children:(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Authors"}),g.map(E=>(0,n.jsxs)("li",{className:C,children:[S(E.image,E.name),(0,n.jsx)("p",{className:Ei("author-name-text"),children:E.name})]},E.name))]})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(t2,{authors:d,bookImage:l,bookTitle:u,buyLink:h,publishedAt:o,trackingInfo:v})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(s2,{link:f,publishedAt:o,trackingInfo:v})})]})},w7=J("cover");function B7(t){const{courseId:e,coursePartnerContent:s,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:c}=t;if(!r)return null;const d=w7("details-content-aside",{logo:o});return(0,n.jsx)("div",{className:d,children:(0,n.jsx)(rd,{type:"partner-content",children:(0,n.jsx)(n2,{courseId:e,partnerContent:s,publishedAt:a,tenantId:c})})})}const _7=J("cover"),U7=Dt("CoverDetailsContentHeading",({className:t="",type:e,...s})=>{const o=Ps()(["Default"],s);return(0,n.jsx)("header",{...o,className:_7("details-content-heading",{type:e}).mix(t)})}),H7=J("cover");function F7({children:t,title:e,type:s}){const o=(0,Me.DX)(),{description:r,media:a,partnerContentId:c}=o,d=!!c,l=Ye()(void 0,["image","key"],a),u=!wt()(l),p=s==="outline"?r?!u&&!d?"outline-no-logo":d&&!u?"outline-has-partner-content":d&&u?"outline-has-pc-and-logo":"outline":"outline-no-description":s;return(0,n.jsxs)("section",{className:H7("details-content-section",{type:p}),children:[(0,n.jsx)(U7,{type:s,children:(0,n.jsx)("h2",{children:e})}),t]})}const z7=J("cover"),Fc=()=>(0,n.jsxs)("svg",{"aria-hidden":"true",className:z7("header-star"),width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",rule:"stroke",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M9 0V18",strokeWidth:"0.75",strokeMiterlimit:"10"}),(0,n.jsx)("path",{d:"M18 9H0",strokeWidth:"0.75",strokeMiterlimit:"10"}),(0,n.jsx)("path",{d:"M15.3 15.3002L2.69995 2.7002",strokeWidth:"0.75",strokeMiterlimit:"10"}),(0,n.jsx)("path",{d:"M2.69995 15.3002L15.3 2.7002",strokeWidth:"0.75",strokeMiterlimit:"10"})]}),V7=Xs.bind(null,480),W7=Xs.bind(null,768),Xie=Xs.bind(null,992),G7={SPLIT_LEFT_IMAGE:"CENTERED_OVERLAY",SPLIT_RIGHT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"CENTERED_OVERLAY"};function o2(){const{coverPageType:t}=(0,Me.DX)();return W7()?G7[t]??t:t}const K7=J("cover"),$7=()=>null,Q7=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(U0,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(Fc,{}),(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})})}),Z7=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(Fc,{}),(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})})}),Y7=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(kc,{}),(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(Fc,{}),(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})})]}),X7=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(Fc,{}),(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})}),(0,n.jsx)(kc,{})]}),J7=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(Fc,{}),(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})}),(0,n.jsx)("div",{className:"cover__header-graphic-wrap",children:(0,n.jsx)(kc,{})})]});function q7(){switch(o2()){default:case"CENTERED_IMAGE":return(0,n.jsx)(J7,{});case"CENTERED":case"CENTERED_ACCENT_TINT":return(0,n.jsx)(Z7,{});case"SPLIT_LEFT_IMAGE":case"TWO_THIRDS_LEFT_IMAGE":return(0,n.jsx)(X7,{});case"SPLIT_RIGHT_IMAGE":case"TWO_THIRDS_RIGHT_IMAGE":return(0,n.jsx)(Y7,{});case"CENTERED_OVERLAY":return(0,n.jsx)(Q7,{})}}function ex(){return(0,n.jsxs)("header",{className:K7("header",{meta:!1}),children:[(0,n.jsx)(q7,{hasMetaData:!1}),(0,n.jsx)(ie().Suspense,{children:(0,n.jsx)($7,{})})]})}const tx=J("cover");function sx({children:t}){const e=o2(),s=(0,m.useMemo)(()=>wc()(e),[e]),o=tx(null,{layout:s});return(0,n.jsx)("div",{id:"cover",className:o,children:t})}const K0=J("lesson-header"),nx=({authorName:t,avatar:e,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:c,showLessonCount:d,title:l,totalLessons:u,lessonId:h})=>{const p=!wt()(a)&&c,f=e&&t&&c&&!p,g=f||p||d,v=d&&(f||p);return(0,n.jsxs)("div",{className:K0("content"),children:[g&&(0,n.jsxs)("div",{className:K0("info-row"),children:[f?(0,n.jsx)(_o,{avatar:e,authorName:t}):(0,n.jsx)(Bc,{}),p&&(0,n.jsx)(mi,{partnerContentAuthors:a}),v&&(0,n.jsx)("span",{"aria-hidden":"true",className:K0("info-row--divider"),children:"|"}),d?(0,n.jsx)(Ho,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:u}):(0,n.jsx)(Uo,{})]}),(0,n.jsx)("div",{children:(0,n.jsx)(Fo,{title:l,id:h})})]})},ox=({authorName:t,avatar:e,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:c,showLessonCount:d,title:l,totalLessons:u,lessonId:h})=>{const p=!wt()(a),f=(0,m.useMemo)(()=>e&&t&&c&&!p,[e,t,c,p]);return(0,n.jsxs)(n.Fragment,{children:[d?(0,n.jsx)(Ho,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:u}):(0,n.jsx)(Uo,{}),f&&(0,n.jsx)(_o,{avatar:e,authorName:t}),c&&p&&(0,n.jsx)(F0,{partnerContentAuthors:a}),(0,n.jsx)(Fo,{title:l,id:h})]})},rx=({authorName:t,avatar:e,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:c,showLessonCount:d,title:l,totalLessons:u,lessonId:h})=>{const p=!wt()(a),f=(0,m.useMemo)(()=>e&&t&&c&&!p,[e,t,c,p]);return(0,n.jsxs)(n.Fragment,{children:[f?(0,n.jsx)(_o,{avatar:e,authorName:t}):(0,n.jsx)(Bc,{}),c&&p&&(0,n.jsx)(mi,{partnerContentAuthors:a}),(0,n.jsx)(Fo,{title:l,id:h}),d?(0,n.jsx)(Ho,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:u}):(0,n.jsx)(Uo,{})]})};function ax(t){const e=V7();return t.lessonHeaderSize===P.OX.SMALL&&!e?(0,n.jsx)(nx,{...t}):e?(0,n.jsx)(ox,{...t}):(0,n.jsx)(rx,{...t})}const{COMPACT:ix,COVER:lx,OVERLAY:dx,SIDEBAR:ux}=$e.by,Ti=J("progress-circle");function hx({"aria-hidden":t,"aria-label":e,isFailed:s,isPassed:o,scope:r,value:a}){const[c,d]=(0,m.useState)(a===100),l=(0,as.A)(a),{theme:{progressIndicatorStyle:u=P.Y2.THEME_DEFAULT}}=(0,Me.DX)(),h=r===lx,p=r===dx,f=u===P.Y2.THEME_DEFAULT,g=u===P.Y2.CIRCULAR_FILL,v=u===P.Y2.INCOMPLETE_COMPLETE,C=Ti("default",{failed:s,passed:o}),x=Ti({compact:r===ix,cover:h,overlay:p,sidebar:r===ux}),S=Ti("track",{"circular-fill":!p&&g,"incomplete-complete":h&&v}),E=Ti("fill",{"circular-fill":g,done:c,failed:s,passed:o,unstarted:a===0}),b=Ti("pass",{done:c,visible:o}),L=Ti("fail",{done:c,visible:s}),I=(0,m.useMemo)(()=>g||a===100?a:0,[g,a]);return(0,m.useEffect)(()=>{if(a!==100&&l===100)d(!1);else if(a===100&&!c&&!v){const N=setTimeout(()=>d(!0),300);return clearTimeout.bind(null,N)}else a===100&&!c&&v&&d(!0)},[c,v,l,a]),(0,n.jsx)(n.Fragment,{children:f?(0,n.jsx)("svg",{"aria-hidden":t,"aria-label":e,className:C,focusable:"false",viewBox:"0 0 7 7",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("circle",{cx:"3.5",cy:"3.5",r:"2.5"})}):(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:x,fill:"none",focusable:"false",role:"img",viewBox:"0 0 7 7",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:S,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),(0,n.jsx)(V0,{className:E,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,strokeLinecap:"round",value:I}),(0,n.jsx)("path",{className:b,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,n.jsx)("path",{className:L,clipRule:"evenodd",d:"M9.46967 10.5303C9.76256 10.8232 10.2374 10.8232 10.5303 10.5303C10.8232 10.2374 10.8232 9.76256 10.5303 9.46967L9.06066 8L10.5303 6.53033C10.8232 6.23744 10.8232 5.76256 10.5303 5.46967C10.2374 5.17678 9.76256 5.17678 9.46967 5.46967L8 6.93934L6.53033 5.46967C6.23744 5.17678 5.76256 5.17678 5.46967 5.46967C5.17678 5.76256 5.17678 6.23744 5.46967 6.53033L6.93934 8L5.46967 9.46967C5.17678 9.76256 5.17678 10.2374 5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303L8 9.06066L9.46967 10.5303Z",fillRule:"evenodd"})]})})}function mx({Default:t,...e}){return(0,n.jsx)(t,{...e,hasOverlay:!1})}var px=i(10894),zc=i.n(px),fx=i(50107),ad=i.n(fx);const Jie=ad()(t=>t.preventDefault()),$0=t=>e=>(t(e),e.preventDefault()),Si=t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},To=t=>e=>{t(e),e.preventDefault(),Si(e)};function id(t,e){const s=[];if(t){let o=t.parentElement;for(;o&&(e?.limit==null||s.length<e.limit);){if(o===document.body){s.push(window);break}const r=window.getComputedStyle(o);(r.overflowX==="auto"||r.overflowX==="scroll"||r.overflowY==="auto"||r.overflowY==="scroll")&&s.push(o),o=o.parentElement}}return s}function gx(t){return id(t,{limit:1})[0]}function r2(t,e){(0,m.useLayoutEffect)(()=>{let s=t.current;const o=id(s);for(const r of o)r?.addEventListener("scroll",e);return()=>{for(const r of o)r?.removeEventListener("scroll",e)}},[e,t])}var zo=i(39843),vx=i(63036),Rs=i.n(vx),Cx=i(45005),on=i.n(Cx),xx=i(92629),hr=i.n(xx),Ex=i(53625),Jn=i.n(Ex);const Tx={keys:["End"],keyCode:zo.KEY_END},Sx={keys:["Enter"],keyCode:zo.KEY_RETURN},Lx={keys:["Home"],keyCode:zo.KEY_HOME},bx={keys:["Tab"],keyCode:zo.KEY_TAB},yx={keys:[" "],keyCode:zo.KEY_SPACE},Ix={keys:["Escape","Esc"],keyCode:zo.KEY_ESCAPE},Nx={keys:["ArrowUp"],keyCode:zo.KEY_UP},jx={keys:["ArrowDown"],keyCode:zo.KEY_DOWN},Ax={keys:["ArrowLeft"],keyCode:zo.KEY_LEFT},Rx={keys:["ArrowRight"],keyCode:zo.KEY_RIGHT},Vo=({keyCode:t,keys:e})=>s=>s.keyCode?s.keyCode===t:on()(s.key,e),Ox=t=>t.altKey||t.ctrlKey||t.metaKey,Px=Vo(Tx),va=Vo(Sx),Mx=Vo(Lx),cd=Vo(bx),ld=Vo(yx),yn=Vo(Ix),Li=Vo(Nx),bi=Vo(jx),_r=Vo(Ax),Ur=Vo(Rx),qie=Jn()(bi,Ur),Hr=Jn()(ld,va),ece=Jn()(cd,va),dd=Jn()(Ur,Li),ud=Jn()(_r,bi),a2=Jn()(Li,bi),tce=Jn()(Li,_r),i2=sn()(Hr),c2=25,Dx=hr()((t,e)=>{t.scrollTop!==0&&(e.preventDefault(),t.scrollTop-=c2)}),kx=hr()((t,e,s)=>{e&&(s.preventDefault(),t.scrollTop+=c2)}),wx=(t,e)=>s=>{const o=kx(t,e),r=Dx(t);Rs()([[bi,o],[Li,r]])(s)},hd=J("lesson-progress"),{COMPACT:Q0,COVER:Vc,OVERLAY:Z0,SIDEBAR:Wc}=$e.by;function Bx({canComplete:t,color:e,hasRestriction:s,isComplete:o,isCurrentLesson:r,isDark:a,isEnabled:c,isFailed:d,isLegacy:l,isPassed:u,isTooltipVisible:h,navigationStyle:p,onHideTooltip:f,onMarkComplete:g,onMarkReset:v,onShowTooltip:C,percentComplete:x,progressGraphic:S,scope:E,labels:b}){const L=(0,m.useRef)(),I=(0,m.useRef)(),N=(0,m.useRef)(),R=(0,m.useRef)(),{theme:{progressIndicatorStyle:j=P.Y2.THEME_DEFAULT}}=(0,Me.DX)(),O=j===P.Y2.THEME_DEFAULT,B=hd({compact:E===Q0,cover:E===Vc&&!l,"legacy-cover":E===Vc&&l,inactive:s,overlay:E===Z0,sidebar:E===Wc&&!l,"legacy-sidebar":E===Wc&&l,"theme-default":O}),_=hd("graphic",{compact:E===Q0,cover:E===Vc&&!l,"legacy-cover":E===Vc&&l,overlay:E===Z0,sidebar:E===Wc&&!l,"legacy-sidebar":E===Wc&&l}),k=hd("tooltip",{legacy:l}).toString(),te=(0,m.useCallback)(()=>{o?v?.():g?.()},[o,g,v]),F=(0,m.useCallback)(oe=>{zc()(f)&&yn(oe)&&h&&f()},[f,h]),K=(0,m.useCallback)(()=>{clearTimeout(N.current),!s&&zc()(C)&&(I.current=setTimeout(C,600))},[s,C]),Z=(0,m.useCallback)(()=>{clearTimeout(I.current),zc()(f)&&(N.current=setTimeout(f,150))},[f]),xe=(0,m.useCallback)(()=>{setTimeout(()=>{if(h){const oe=L.current.getBoundingClientRect(),we=R.current.offsetParent.getBoundingClientRect(),{height:Ae,width:_e}=oe,Qe=oe.left-we.left,pt=oe.top-we.top;Object.assign(R.current.style,{transform:`translate(${Qe}px, ${pt}px)`,width:`${_e}px`,height:`${Ae}px`})}},0)},[h]);if((0,m.useLayoutEffect)(()=>xe(),[xe]),(0,bs.A)("resize",xe,window),(0,bs.A)("keydown",F,document),r2(L,Z),t){const oe=ye.BI&&x===100,we=_x({labels:b,percentComplete:x,canReset:!oe}),Ae=!c||oe,_e=hd("action",{disabled:Ae});return(0,n.jsx)("span",{className:B,children:(0,n.jsx)("button",{"aria-label":we,className:_e,disabled:Ae,onBlur:f,onClick:te,onFocus:C,type:"button",children:(0,n.jsxs)("span",{className:_,onMouseEnter:K,onMouseLeave:Z,ref:L,children:[(0,n.jsx)(S,{"aria-hidden":"true",color:e,isDark:a,isCurrent:r,isFailed:d,isPassed:u,navigationStyle:p,scope:E,value:x}),c&&!s&&(0,n.jsx)(l2,{className:k,dark:a,ref:R,scope:E,visible:h,children:we})]})})})}const fe=Ux({labels:b,isFailed:d,percentComplete:x});return(0,n.jsx)("span",{className:B,children:(0,n.jsxs)("span",{className:_,onMouseEnter:K,onMouseLeave:Z,ref:L,children:[(0,n.jsx)(S,{"aria-label":fe,color:e,isDark:a,isCurrent:r,isFailed:d,isPassed:u,navigationStyle:p,scope:E,value:x}),c&&!s&&(0,n.jsx)(l2,{className:k,dark:a,ref:R,scope:E,visible:h,children:fe})]})})}const l2=(0,m.forwardRef)((t,e)=>{const{children:s,className:o,dark:r,scope:a,visible:c}=t,d=(0,m.useMemo)(()=>J(o),[o]),l=d({compact:a===Q0,cover:a===Vc,overlay:a===Z0,sidebar:a===Wc,visible:c}),u=d("inner",{dark:r,light:!r}),h=(0,n.jsx)("div",{"aria-hidden":"true",onClick:Si,ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,n.jsx)("div",{style:{pointerEvents:"all"},children:(0,n.jsx)("div",{className:l,children:(0,n.jsx)("div",{className:u,children:s})})})});return(0,Yn.createPortal)(h,kr())});function _x({labels:t,canReset:e,percentComplete:s}){const o=s===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieClickToComplete:c,progressPieClickToReset:d}=t;return o&&e?`${r}. ${d}`:s===100&&!e?r:s===0?`${a}. ${c}`:`${s}% ${r}. ${c}`}function Ux({labels:t,isFailed:e,percentComplete:s}){const o=s===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieQuizFailed:c}=t;return e?c:o?r:s===0?a:`${s}% ${r}`}const d2=ie().memo(Bx);function Hx({color:t,hasRestriction:e,isComplete:s,isCurrentLesson:o,isFailed:r,isPassed:a,isTooltipVisible:c,lessonTitle:d,navigationStyle:l,onHideTooltip:u,onShowTooltip:h,percentComplete:p,progressGraphic:f,scope:g,labels:v}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"overview-list-item__progress",children:(0,n.jsx)(d2,{canComplete:!1,color:t,hasRestriction:e,isComplete:s,isCurrentLesson:o,isDark:!1,isEnabled:!0,isFailed:r,isPassed:a,isTooltipVisible:c,navigationStyle:l,onHideTooltip:u,onShowTooltip:h,percentComplete:p,progressGraphic:f,scope:g,labels:v})}),(0,n.jsx)("span",{className:"overview-list-item__title",children:d})]})}const Fx=()=>null,zx=({className:t},e)=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",ref:e,viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M3.33177 4.1487L6.48034 1.00013M9.6289 4.14869L6.48034 1.00013M6.48034 1.00013L6.47966 11.9601"})}),u2=(0,m.forwardRef)(zx);function Vx(t){return(0,n.jsxs)(is,{...Ps()(["Default"],t),viewBox:"0 3 16 10",fill:"none",children:[(0,n.jsx)("path",{d:"M1.51472 7.99993H14.4853",stroke:"currentColor",strokeWidth:"0.75",strokeMiterlimit:"10"}),(0,n.jsx)("path",{d:"M9.50008 12.4994L14.5004 7.99932L9.50008 3.99973",stroke:"currentColor",strokeWidth:"0.75",strokeMiterlimit:"10"})]})}function Wx(t){return(0,n.jsx)(is,{viewBox:"0 0 25 16",...Ps()(["Default"],t),children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.10699 7.7986L0.778547 7.50301L1.1236 7.22701L10.013 0.116623L10.4815 0.702312L2.42567 7.14593H24.4443V7.89593H2.3363L10.4981 15.2413L9.9964 15.7988L1.10699 7.7986Z",fill:"currentColor"})})}function h2(t){return(0,n.jsx)($s,{width:"14",height:"8",viewBox:"0 0 14 8",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M13 1L7 7L1 1",stroke:"currentColor"})})}function m2(t){return(0,n.jsxs)(is,{...Ps()(["Default"],t),fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,n.jsx)("path",{d:"M5 7.71429L7.54545 10L11.5 5.5",stroke:"white"})]})}function p2(t){return(0,n.jsxs)(is,{...Ps()(["Default"],t),fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("path",{d:"M8.00085 5.20305L5.14081 8.06339C5.14079 8.06341 5.14077 8.06343 5.14075 8.06345C5.00146 8.20273 4.92319 8.39163 4.92314 8.58861V8.5887V9.93926C4.92314 10.1851 5.12244 10.3844 5.36829 10.3844H6.71884H6.71894C6.91593 10.3844 7.10484 10.3061 7.24413 10.1668C7.24414 10.1668 7.24415 10.1667 7.24416 10.1667L10.104 7.30664C10.104 7.30657 10.1041 7.3065 10.1042 7.30643L10.1042 7.30638C10.1043 7.30631 10.1044 7.30622 10.1044 7.30615L10.9465 6.46442C11.03 6.38095 11.0769 6.26773 11.0769 6.14966C11.0769 6.0316 11.03 5.91836 10.9466 5.83487L9.47304 4.36105C9.29924 4.18722 9.01746 4.18716 8.84359 4.36091L8.00111 5.20279C8.0011 5.2028 8.0011 5.2028 8.0011 5.2028L8.00085 5.20305Z",stroke:"white",strokeWidth:"0.890284",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("circle",{cx:"8",cy:"7.5293",r:"7",stroke:"white"})]})}function Gx({className:t}){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"6",cy:"6",r:"5"}),(0,n.jsx)("path",{d:"M9.5 9.5L14 14"})]})}function Kx(t){return(0,n.jsxs)(is,{...Ps()(["Default"],t),fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,n.jsx)("path",{d:"M10 6L6 10",stroke:"white"}),(0,n.jsx)("path",{d:"M6 6L10 10",stroke:"white"})]})}function $x({className:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",viewBox:"0 0 10 7",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M1 1.40002L5 5.40002L9 1.40002",strokeWidth:"1.6"})})}function Qx(t){return(0,n.jsxs)(is,{viewBox:"0 0 12 12",...Ps()(["Default"],t),children:[(0,n.jsx)("path",{d:"M10.7425 0.742189L11.4496 1.4493L1.55012 11.3488L0.843012 10.6417L10.7425 0.742189Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M11.1571 10.6417L10.45 11.3488L0.550537 1.44929L1.25764 0.742188L11.1571 10.6417Z",fill:"currentColor"})]})}const Zx=Xs.bind(null,1200),Yx=Xs.bind(null,768),Y0=Xs.bind(null,480),f2=J("cover");function Xx(){const t=(0,Me.DX)(),e=Zx(),s=(0,It.QQ)(t.description);if(!s)return null;const o=ci("description"),r=(0,_s.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":o};return(0,n.jsx)("div",{...r,children:(0,n.jsxs)("section",{className:f2("details-content-section"),children:[e&&(0,n.jsx)(w0,{}),(0,n.jsx)(Nt,{className:f2("details-content-description"),value:y0(s)},"text")]})})}const Jx={SPLIT_LEFT:"LEFT",SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT:"LEFT",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY"};function X0(){const{coverPageType:t}=(0,Me.DX)();return Yx()?Jx[t]??t:t}function qx({Default:t,...e}){const s=X0(),o=["SPLIT_RIGHT","SPLIT_RIGHT_IMAGE"].includes(s);return(0,n.jsx)(t,{...e,reverseColumns:o})}const g2=J("cover");function Gc({accentColor:t,hasOverlay:e=!1,isShape:s=!1}){const{alpha:o,ariaLabel:r,media:a,role:c}=pa("coverImage"),d=s?{backgroundColor:t}:(0,At.b9)({alpha:o,hasOverlay:e,media:a});return(0,n.jsx)("div",{className:g2("header-graphic-container"),children:(0,n.jsx)("div",{className:g2("header-graphic"),style:d,"aria-label":r,role:c})})}const v2=t=>(0,n.jsx)(md,{...t,children:(0,n.jsx)("clipPath",{id:"cover-page-clip-path",clipPathUnits:"objectBoundingBox",children:(0,n.jsx)("path",{d:"M0.319,0.998 L1,0.899 V0 H0 V0.899 L0.192,0.98 C0.234,0.998,0.277,1,0.319,0.998"})})}),C2=t=>(0,n.jsx)(md,{...t,children:(0,n.jsx)("clipPath",{id:"cover-page-clip-path",clipPathUnits:"objectBoundingBox",children:(0,n.jsx)("path",{d:"M0.661,0.963 L1,0.804 V0 H0 V0.804 L0.339,0.963 C0.445,1,0.555,1,0.661,0.963"})})}),x2=t=>(0,n.jsx)(md,{...t,children:(0,n.jsx)("clipPath",{id:"cover-page-clip-path",clipPathUnits:"objectBoundingBox",children:(0,n.jsx)("path",{d:"M0.481,0.991 L0.908,0.825 C0.99,0.793,1,0.694,0.982,0.616 L0.68,0.075 C0.636,-0.003,0.534,-0.023,0.465,0.033 L0.055,0.364 C-0.007,0.414,-0.017,0.505,0.031,0.568 L0.316,0.944 C0.355,0.995,0.422,1,0.481,0.991"})})}),E2=t=>(0,n.jsx)(md,{...t,children:(0,n.jsx)("clipPath",{id:"cover-page-clip-path",clipPathUnits:"objectBoundingBox",children:(0,n.jsx)("path",{d:"M0.519,0.991 L0.093,0.825 C0.01,0.793,-0.025,0.694,0.019,0.616 L0.321,0.075 C0.364,-0.003,0.466,-0.023,0.536,0.033 L0.946,0.364 C1,0.414,1,0.505,0.97,0.568 L0.685,0.944 C0.646,0.995,0.579,1,0.519,0.991"})})}),eE={LEFT_OVERLAY:v2,LEFT:v2,CENTERED:C2,CENTERED_OVERLAY:C2,SPLIT_LEFT:x2,SPLIT_LEFT_IMAGE:x2,SPLIT_RIGHT:E2,SPLIT_RIGHT_IMAGE:E2},md=({children:t,className:e="svgPath",height:s,width:o,viewBox:r})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:s,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:t}),Ca=({className:t,coverPageType:e})=>tt()(We()(null),e,eE)({className:t}),T2=J("cover"),yi=()=>(0,n.jsxs)("div",{className:T2("author-published-wrap"),children:[(0,n.jsx)(Bo,{}),(0,n.jsx)(yp,{})]}),tE=({coverPageType:t})=>{const e=Y0();return(0,n.jsxs)(U0,{children:[(0,n.jsx)(Ca,{coverPageType:t}),(0,n.jsxs)(vn,{children:[!e&&(0,n.jsx)(tn,{}),(0,n.jsx)(yi,{}),(0,n.jsx)(Cn,{}),e&&(0,n.jsx)(tn,{}),(0,n.jsx)(fn,{})]})]})},sE=({coverPageType:t})=>{const e=Y0();return(0,n.jsxs)(Zn,{children:[(0,n.jsx)(Ca,{coverPageType:t}),(0,n.jsxs)(vn,{children:[!e&&(0,n.jsx)(tn,{}),(0,n.jsx)(yi,{}),(0,n.jsx)(Cn,{}),e&&(0,n.jsx)(tn,{}),(0,n.jsx)(fn,{})]})]})},nE=({coverPageType:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ca,{coverPageType:t}),(0,n.jsx)(Gc,{}),(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(yi,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})})]}),oE=({accentColor:t,coverPageType:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(yi,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})}),(0,n.jsx)(Ca,{coverPageType:e}),(0,n.jsx)(Gc,{accentColor:t,isShape:!0})]}),rE=({coverPageType:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(yi,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})}),(0,n.jsx)(Ca,{coverPageType:t}),(0,n.jsx)(Gc,{})]}),aE=({accentColor:t,coverPageType:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ca,{coverPageType:e}),(0,n.jsx)(Gc,{accentColor:t,isShape:!0}),(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(yi,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})})]});function iE(t){const e=X0(),s={...t,coverPageType:e};switch(e){default:case P.BL.LEFT_OVERLAY:case P.BL.CENTERED_OVERLAY:return(0,n.jsx)(tE,{...s});case P.BL.LEFT:case P.BL.CENTERED:return(0,n.jsx)(sE,{...s});case P.BL.SPLIT_LEFT:return(0,n.jsx)(oE,{...s});case P.BL.SPLIT_LEFT_IMAGE:return(0,n.jsx)(rE,{...s});case P.BL.SPLIT_RIGHT:return(0,n.jsx)(aE,{...s});case P.BL.SPLIT_RIGHT_IMAGE:return(0,n.jsx)(nE,{...s})}}function cE(t){const{partnerContentId:e}=(0,Me.DX)(),s=(0,Me.Bd)(),r=!!(!!e&&s||ye.BI);return(0,n.jsx)("header",{className:T2("header",{"with-info":r}),children:(0,n.jsx)(iE,{...t})})}const lE=J("cover");function dE({children:t}){const e=X0(),s=(0,m.useMemo)(()=>wc()(e),[e]),o=lE(null,{layout:s});return(0,n.jsx)("div",{id:"cover",className:o,children:t})}const uE=zs("AlignLeft"),pd=zs("ArrowDown"),sce=zs("ArrowLeft"),S2=zs("ArrowRight"),L2=zs("ArrowUp"),hE=zs("Category"),mE=zs("ChevronDown"),pE=zs("ChevronUp"),nce=zs("Favorite"),fE=zs("LessonsComplete"),gE=zs("LessonsRequirement"),vE=zs("QuestionBox"),CE=zs("QuizFailed"),xE=zs("QuizPassed"),EE=zs("QuizRequirement"),Kc=zs("Search"),b2=zs("ToggleDown"),TE=zs("Touch"),SE=zs("VideoCamera"),fd=zs("X"),mr=J("cover");function LE({nextLesson:t,percentComplete:e}){const s=Y0(),r=(0,Me.Wz)()?`%${e}`:`${e}%`;return e===0||!ye.BI?null:(0,n.jsxs)("div",{className:mr("progress"),children:[s&&(0,n.jsxs)("div",{className:mr("progress-text"),children:[e,"% Complete"]}),(0,n.jsx)("div",{className:mr("progress-outer"),children:(0,n.jsx)("div",{className:mr("progress-inner"),style:{width:`${e}%`}})}),(0,n.jsxs)("div",{className:mr("progress-text-wrap"),children:[!s&&(0,n.jsxs)("div",{className:mr("progress-text"),children:[r," Complete"]}),t&&(0,n.jsxs)("div",{className:mr("progress-next-lesson"),children:[(0,n.jsx)(S2,{className:mr("progress-next-lesson-icon").toString(),decorative:!0}),(0,n.jsx)("span",{"aria-hidden":"true",className:mr("progress-next-lesson-text"),children:t.title}),(0,n.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})]})}const gd=J("lesson-header"),J0=()=>(0,n.jsx)("div",{className:gd("author--hidden")}),bE=({authorName:t,avatar:e,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:c,showAuthor:d,showLessonCount:l,title:u,totalLessons:h,lessonId:p})=>{const f=!wt()(c)&&d,g=e&&t&&d&&!f,v=g||f||l,C=l&&(g||f);return(0,n.jsxs)("div",{className:gd("content"),children:[v&&(0,n.jsxs)("div",{className:gd("info-row"),children:[g?(0,n.jsx)(_o,{avatar:e,authorName:t}):(0,n.jsx)(J0,{}),f&&(0,n.jsx)(mi,{partnerContentAuthors:c}),C&&(0,n.jsx)("span",{"aria-hidden":"true",className:gd("info-row--divider"),children:"|"}),l?(0,n.jsx)(Ho,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(Uo,{})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(Fo,{title:u,id:p}),s&&(0,n.jsx)(fa,{description:s})]})]})},yE=t=>{const{authorName:e,avatar:s,description:o,lessonName:r,lessonNumber:a,lessonPreposition:c,partnerContentAuthors:d,showAuthor:l,showLessonCount:u,title:h,totalLessons:p,lessonId:f}=t,g=!wt()(d),v=(0,m.useMemo)(()=>s&&e&&l&&!g,[s,e,l,g]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Fo,{title:h,id:f}),(0,n.jsxs)(q9,{children:[v?(0,n.jsx)(_o,{avatar:s,authorName:e}):(0,n.jsx)(J0,{showPartnerContent:g}),l&&g&&(0,n.jsx)(mi,{partnerContentAuthors:d}),u?(0,n.jsx)(Ho,{lessonName:r,lessonNumber:a,lessonPreposition:c,showPartnerContent:g,totalLessons:p}):(0,n.jsx)(Uo,{})]}),o&&(0,n.jsx)(fa,{description:o})]})},IE=t=>{const{authorName:e,avatar:s,description:o,lessonName:r,lessonNumber:a,lessonPreposition:c,partnerContentAuthors:d,showAuthor:l,showLessonCount:u,title:h,totalLessons:p,lessonId:f}=t,g=!wt()(d),v=(0,m.useMemo)(()=>s&&e&&l&&!g,[s,e,l,g]);return(0,n.jsxs)(n.Fragment,{children:[u?(0,n.jsx)(Ho,{lessonName:r,lessonNumber:a,lessonPreposition:c,totalLessons:p}):(0,n.jsx)(Uo,{}),v?(0,n.jsx)(_o,{avatar:s,authorName:e}):(0,n.jsx)(J0,{}),l&&g&&(0,n.jsx)(F0,{partnerContentAuthors:d}),(0,n.jsx)(Fo,{title:h,id:f}),o&&(0,n.jsx)(fa,{description:o})]})};function NE(t){const e=P0();return t.lessonHeaderSize===P.OX.SMALL&&!e?(0,n.jsx)(bE,{...t}):e?(0,n.jsx)(IE,{...t}):(0,n.jsx)(yE,{...t})}const{COMPACT:jE,COVER:AE,OVERLAY:RE,SIDEBAR:OE}=$e.by,$c=J("progress-circle");function PE({"aria-hidden":t,"aria-label":e,isFailed:s,isPassed:o,scope:r,value:a}){const[c,d]=(0,m.useState)(a===100),l=(0,as.A)(a),{theme:{progressIndicatorStyle:u=P.Y2.THEME_DEFAULT}}=(0,Me.DX)(),h=r===AE,p=r===RE,f=u===P.Y2.THEME_DEFAULT,g=u===P.Y2.CIRCULAR_FILL,v=u===P.Y2.INCOMPLETE_COMPLETE,C=$c({compact:r===jE,cover:h,sidebar:r===OE,overlay:p}),x=$c("track",{"circular-fill":!p&&g,"incomplete-complete":h&&v}),S=$c("runner",{"circular-fill":g,done:c,failed:s,passed:o,unstarted:a===0}),E=$c("pass",{done:c,visible:o}),b=$c("fail",{done:c,visible:s}),L=(0,m.useMemo)(()=>g||a===100?a:0,[g,a]);(0,m.useEffect)(()=>{if(a!==100&&l===100)d(!1);else if(a===100&&!c&&!v){const N=setTimeout(()=>d(!0),300);return clearTimeout.bind(null,N)}else a===100&&!c&&v&&d(!0)},[c,v,l,a]);const I=(0,m.useCallback)(()=>{a===100&&d(!0)},[a]);return(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:C,fill:"none",focusable:"false",role:"img",viewBox:"0 0 15 15",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:x,cx:"7.5",cy:"7.5",fill:"transparent",r:"6.5",strokeWidth:"2",transform:"rotate(-89.9 7.5 7.5)"}),f?(0,n.jsx)(Qp,{className:S,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:I,r:6.5,strokeWidth:2,transform:"rotate(-89.9 7.5 7.5)",value:a}):(0,n.jsx)(V0,{className:S,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:I,r:6.5,strokeWidth:2,strokeLinecap:"round",value:L}),(0,n.jsx)("path",{className:E,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,n.jsx)("path",{className:b,clipRule:"evenodd",d:"M7.5 8.56157L8.84426 9.90564L9.90503 8.84473L8.56078 7.50066L9.90543 6.15582L8.84452 5.09504L7.49986 6.43988L6.15452 5.09473L5.09375 6.15564L6.43909 7.5008L5.09452 8.84555L6.15543 9.90632L7.5 8.56157Z",fillRule:"evenodd"})]})}const vd=({"aria-hidden":t,"aria-label":e,progress:s=0,runnerClass:o,trackClass:r})=>(0,n.jsx)("div",{"aria-hidden":t,"aria-label":e,className:r,role:"img",children:(0,n.jsx)("div",{className:o,style:{width:`${s}%`}})}),ME=J("nav-sidebar-header");function DE(t){const{classProgressRunner:e,classProgressText:s,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:c}=t;return(0,n.jsxs)("div",{className:ME("progress"),children:[(0,n.jsx)("div",{className:s,children:c}),(0,n.jsx)(vd,{"aria-hidden":"true",color:r,progress:a,runnerClass:e,trackClass:o})]})}const kE=({className:t},e)=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",role:"img",ref:e,viewBox:"0 0 17 17",height:"17",width:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.029 16.2343L8.7361 16.9414L9.44321 16.2343L16.707 8.97048L15.2928 7.55627L9.73903 13.11L9.73903 1.99985L7.73903 1.99985L7.73904 13.1159L2.17939 7.55627L0.765176 8.97048L8.029 16.2343Z"})}),wE=(0,m.forwardRef)(kE);function BE(t){return(0,n.jsx)(is,{...t,viewBox:"0 0 16 8",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15,3H3.4l1.3-1.3c0.4-0.4,0.4-1,0-1.4C4.5,0.1,4.3,0,4,0S3.5,0.1,3.3,0.3l-3,3c-0.4,0.4-0.4,1,0,1.4l3,3c0.4,0.4,1,0.4,1.4,0c0.4-0.4,0.4-1,0-1.4L3.4,5H15c0.6,0,1-0.4,1-1S15.6,3,15,3",fill:"currentColor"})})}function _E(t){return(0,n.jsx)(is,{...Ps()(["Default"],t),viewBox:"0 0 16 8",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 5H12.6L11.3 6.3C10.9 6.7 10.9 7.3 11.3 7.7C11.5 7.9 11.7 8 12 8C12.3 8 12.5 7.9 12.7 7.7L15.7 4.7C16.1 4.3 16.1 3.7 15.7 3.3L12.7 0.3C12.3 -0.1 11.7 -0.1 11.3 0.3C10.9 0.7 10.9 1.3 11.3 1.7L12.6 3H1C0.4 3 0 3.4 0 4C0 4.6 0.4 5 1 5",fill:"currentColor"})})}const UE=({className:t},e)=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",ref:e,version:"1.1",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.971 0.7657L8.2639 0.0585938L7.55679 0.765701L0.292969 8.02952L1.70718 9.44374L7.26096 3.88995L7.26097 15.0002H9.26097L9.26096 3.88409L14.8206 9.44373L16.2348 8.02952L8.971 0.7657Z"})}),HE=(0,m.forwardRef)(UE);function FE(t){return(0,n.jsx)($s,{height:"12",width:"16",viewBox:"0 0 16 12",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M9.6665 2H0.666504V0H9.6665V2ZM12.6665 6H0.666504V4H12.6665V6ZM0.666504 10H7.6665V8H0.666504V10Z",fill:"currentColor",fillRule:"evenodd"})})}function y2(t){return(0,n.jsx)($s,{height:"8",width:"12",viewBox:"0 0 12 8",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M6.00008 7.91406L11.7072 2.20696L10.293 0.792742L6.00007 5.08564L1.70718 0.792742L0.292969 2.20696L6.00008 7.91406Z",fill:"currentColor",fillRule:"evenodd"})})}function zE(t){return(0,n.jsx)($s,{height:"8",width:"12",viewBox:"0 0 12 8",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M5.99992 0.0859375L0.292818 5.79304L1.70703 7.20726L5.99993 2.91436L10.2928 7.20726L11.707 5.79304L5.99992 0.0859375Z",fill:"currentColor",fillRule:"evenodd"})})}function VE(t){return(0,n.jsxs)($s,{height:"21",width:"20",viewBox:"0 0 20 21",...t,children:[(0,n.jsx)("path",{d:"M9.94535 6.125C9.1938 6.125 8.52385 6.6729 8.30039 7.48015C8.17194 7.9442 7.70954 8.21104 7.26759 8.07617C6.82564 7.94129 6.5715 7.45577 6.69996 6.99172C7.11282 5.50025 8.3916 4.375 9.94535 4.375C11.8499 4.375 13.3335 6.05606 13.3335 8.05C13.3335 9.7417 12.2656 11.2082 10.7787 11.6139V12.25C10.7787 12.7332 10.4056 13.125 9.94535 13.125C9.48511 13.125 9.11201 12.7332 9.11201 12.25V10.85C9.11201 10.3668 9.48511 9.975 9.94535 9.975C10.8628 9.975 11.6668 9.14886 11.6668 8.05C11.6668 6.95114 10.8628 6.125 9.94535 6.125Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M10.0002 14C9.53992 14 9.16683 14.3918 9.16683 14.875C9.16683 15.3582 9.53992 15.75 10.0002 15.75H10.0085C10.4687 15.75 10.8418 15.3582 10.8418 14.875C10.8418 14.3918 10.4687 14 10.0085 14H10.0002Z",fill:"currentColor"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M0.833496 3.55556C0.833496 2.01519 2.09493 0.875 3.51868 0.875H16.4816C17.9054 0.875 19.1668 2.01519 19.1668 3.55556V17.4444C19.1668 18.9848 17.9054 20.125 16.4816 20.125H3.51868C2.09493 20.125 0.833496 18.9848 0.833496 17.4444V3.55556ZM3.51868 2.625C2.89693 2.625 2.50016 3.10156 2.50016 3.55556V17.4444C2.50016 17.8984 2.89693 18.375 3.51868 18.375H16.4816C17.1034 18.375 17.5002 17.8984 17.5002 17.4444V3.55556C17.5002 3.10156 17.1034 2.625 16.4816 2.625H3.51868Z",fill:"currentColor",fillRule:"evenodd"})]})}function WE(t){return(0,n.jsx)($s,{height:"15",width:"16",viewBox:"0 0 16 15",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 6.51982C2 4.02359 4.02359 2 6.51982 2C9.01605 2 11.0396 4.02359 11.0396 6.51982C11.0396 9.01605 9.01605 11.0396 6.51982 11.0396C4.02359 11.0396 2 9.01605 2 6.51982ZM6.51982 0C2.91902 0 0 2.91902 0 6.51982C0 10.1206 2.91902 13.0396 6.51982 13.0396C8.06462 13.0396 9.48394 12.5024 10.6011 11.6045L13.9964 14.9998L15.4106 13.5856L11.9518 10.1268C12.6391 9.09384 13.0396 7.8536 13.0396 6.51982C13.0396 2.91902 10.1206 0 6.51982 0Z",fill:"currentColor",fillRule:"evenodd"})})}function GE(t){return(0,n.jsxs)($s,{height:"18",width:"18",viewBox:"0 0 18 18",...t,children:[(0,n.jsx)("path",{d:"M3.1665 6.08335C3.1665 4.01229 4.84544 2.33335 6.9165 2.33335C8.98757 2.33335 10.6665 4.01229 10.6665 6.08335C10.6665 6.37941 10.6324 6.66643 10.5681 6.9411C10.4634 7.38925 10.7417 7.83748 11.1899 7.94225C11.6381 8.04702 12.0863 7.76865 12.1911 7.3205C12.2841 6.92235 12.3332 6.50805 12.3332 6.08335C12.3332 3.09181 9.90805 0.666687 6.9165 0.666687C3.92496 0.666687 1.49984 3.09181 1.49984 6.08335C1.49984 6.46923 1.54032 6.84657 1.61756 7.21105C1.679 7.50095 1.76362 7.78236 1.86938 8.05316C1.97511 8.32389 2.10191 8.5839 2.24772 8.83119C2.48148 9.22764 2.99237 9.35953 3.38882 9.12577C3.78527 8.89201 3.91716 8.38112 3.6834 7.98467C3.58248 7.81352 3.49485 7.63379 3.42186 7.44688C3.34886 7.25994 3.29045 7.0657 3.24802 6.86551C3.1947 6.61395 3.1665 6.3524 3.1665 6.08335Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9.18922 9.34412L14.8186 10.2697C16.2762 10.5117 17.3332 11.6819 17.3332 13.0521V16.6037C17.3332 17.0029 16.9837 17.3264 16.553 17.3264C16.122 17.3264 15.7728 17.0029 15.7728 16.6037V13.0521C15.7728 12.3826 15.2561 11.8108 14.5446 11.6926L8.30452 10.6667H8.30233C7.90851 10.6331 7.57585 10.2773 7.57585 9.8899V6.0524C7.57585 5.88733 7.48441 5.73325 7.33119 5.64046C7.17921 5.54853 6.99291 5.53668 6.82002 5.60606C6.63747 5.68035 6.51483 5.87085 6.51483 6.08044V15.3607C6.51483 15.6856 6.30169 15.9391 5.91441 16.0741C5.40325 16.2528 4.90988 16.0261 4.70516 15.7226L3.01346 13.2999C2.93513 13.1565 2.84963 13.09 2.68954 13.0406C2.59935 13.0249 2.47889 13.0408 2.37154 13.0906C2.2798 13.1394 2.22768 13.4826 2.38902 13.9902C2.41984 14.0542 3.0442 15.4844 3.27756 16.0189C3.32536 16.1284 3.35676 16.2003 3.36328 16.2152C3.47656 16.4494 3.49404 16.6994 3.40853 16.8957C3.33551 17.0631 3.1904 17.1911 2.98912 17.2663C2.893 17.3018 2.77099 17.3334 2.63742 17.3334C2.36124 17.3334 2.03826 17.1986 1.80702 16.6867L1.75272 16.5849C1.3289 15.6773 1.03464 14.952 0.90735 14.6382L0.905151 14.6328L0.896561 14.6115C0.87092 14.548 0.854463 14.5072 0.847419 14.4926C0.45609 13.3756 0.711983 12.3355 1.49527 11.8308C1.97428 11.5452 2.55316 11.4538 3.08867 11.5781C3.63572 11.7047 4.10288 12.0476 4.40371 12.5436L4.82936 13.2293V5.99429C4.82936 5.3563 5.1692 4.74981 5.7381 4.37228C6.30855 3.99359 7.0238 3.89848 7.69942 4.11153C8.55823 4.3824 9.13554 5.15654 9.13617 6.03881L9.18922 9.34412Z",fill:"currentColor"})]})}function KE(t){return(0,n.jsxs)($s,{height:"14",width:"20",viewBox:"0 0 20 14",...t,children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"M19.548 2.09234C19.8255 2.23518 20 2.52116 20 2.83331V11.1666C20 11.4788 19.8255 11.7648 19.548 11.9076C19.2704 12.0505 18.9363 12.0262 18.6823 11.8448L12.849 7.67809C12.63 7.52166 12.5 7.2691 12.5 6.99998C12.5 6.73085 12.63 6.47829 12.849 6.32187L18.6823 2.1552C18.9363 1.97376 19.2704 1.9495 19.548 2.09234ZM14.7671 6.99998L18.3333 9.54732V4.45264L14.7671 6.99998Z",fill:"currentColor",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2.5 1.99998C2.03976 1.99998 1.66667 2.37308 1.66667 2.83331V11.1666C1.66667 11.6269 2.03976 12 2.5 12H11.6667C12.1269 12 12.5 11.6269 12.5 11.1666V2.83331C12.5 2.37308 12.1269 1.99998 11.6667 1.99998H2.5ZM0 2.83331C0 1.4526 1.11929 0.333313 2.5 0.333313H11.6667C13.0474 0.333313 14.1667 1.4526 14.1667 2.83331V11.1666C14.1667 12.5474 13.0474 13.6666 11.6667 13.6666H2.5C1.11929 13.6666 0 12.5474 0 11.1666V2.83331Z",fill:"currentColor",fillRule:"evenodd"})]})}function $E(t){return(0,n.jsx)($s,{height:"14",width:"14",viewBox:"0 0 14 14",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M13.4646 2.46462L11.8484 0.848376L7.00023 5.69652L2.15186 0.848143L0.535612 2.46439L5.38399 7.31276L0.534668 12.1621L2.15091 13.7783L7.00023 8.92901L11.8493 13.7781L13.4656 12.1619L8.61648 7.31276L13.4646 2.46462Z",fill:"currentColor",fillRule:"evenodd"})})}const I2=V,QE={classic:V,default:V,imaginative:se,organic:ue},N2=Object.assign((0,m.createContext)(I2),{displayName:"ThemeContext"});function ZE(){return(0,m.useContext)(N2)}function YE({themeId:t,...e}){return(0,n.jsx)(N2.Provider,{...e,value:QE[t]??I2})}function XE(t){return(0,n.jsx)(n.Fragment,{children:t.children})}function JE(){return null}function j2(t,e,s){function o(r,a){const d=ZE()?.[t]?.[e]??s;return(0,n.jsx)(d,{ref:a,...r,Default:s})}return o.displayName=`ThemeComponent(${e})`,(0,m.forwardRef)(o)}function Dt(t,e=XE){return j2("components",t,e)}function zs(t){return j2("icons",t,JE)}const qE=J("cover");function eT({className:t="",dueAt:e}){const s=Pr(),o=ni(),r=o==null||o.quizPassed||o.outOfAttempts,a=gp(e),c=qE("due-date",{urgent:a}).mix(t);return!e||s&&r?null:(0,n.jsx)("div",{className:c,tag:"div",children:L0(e)})}const tT=Dt("CoverDueDate",eT);function sT(t){const{dueAt:e}=Ut(t);return{dueAt:e}}const nT=(0,X.Ng)(sT)(tT),xa=J("cover"),oT=Dt("CoverProgress",({nextLesson:t,percentComplete:e})=>{const o=(0,Me.Wz)()?`%${e}`:`${e}%`;return e===0||window.isPublicShare||!ye.BI?null:(0,n.jsxs)("div",{className:xa("progress"),children:[(0,n.jsxs)("div",{className:xa("progress-text"),children:[o," Complete"]}),(0,n.jsx)("div",{className:xa("progress-outer"),children:(0,n.jsx)("div",{className:xa("progress-inner"),style:{width:`${e}%`}})}),t&&(0,n.jsxs)("div",{className:xa("progress-next-lesson"),children:[(0,n.jsx)(S2,{className:xa("progress-next-lesson-icon").toString(),decorative:"true"}),(0,n.jsx)("span",{"aria-hidden":"true",className:xa("progress-next-lesson-text"),children:t.title}),(0,n.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})}),rT=()=>{const t=u0();return(e,{currentLocale:s})=>{const o=t(s,e),r=ca(e);return{nextLesson:o,percentComplete:r}}},aT=Se()(xs.wZ,(0,X.Ng)(rT))(oT),{useLabelsMap:iT}=i(28239),A2=({failed:t,complete:e})=>{const s=iT();return(0,n.jsxs)("span",{className:"visually-hidden-always",children:[t?s?.a11yCoverRequirementFailed||"Requirement failed":e?s?.a11yCoverRequirementComplete||"Requirement complete":s?.a11yCoverRequirementIncomplete||"Requirement incomplete",": "]})},So=J("cover");function cT(){const t=(0,Me.DX)(),e=(0,ze.useLabelsMap)(),{trackingCompletionPercentage:s,trackingQuizId:o}=t;return s==null&&!o?null:(0,n.jsxs)("section",{className:So("requirements-section"),children:[(0,n.jsx)("h2",{className:So("requirements-title"),children:e?.coverCourseRequirements||"Course Requirements"}),(0,n.jsxs)("ul",{className:So("requirements-list"),children:[(0,n.jsx)(lT,{}),(0,n.jsx)(uT,{})]})]})}function lT(){const{trackingCompletionPercentage:t}=(0,Me.DX)(),e=(0,Me.v1)(),s=si(),o=(0,ze.useLabelsMap)(),r=Math.ceil(t/100*e),a=r===e;if(t==null||r==null)return null;const c=s>=t,d=c?fE:gE;return(0,n.jsxs)("li",{className:So("lesson-requirement"),role:"listitem",children:[(0,n.jsx)(d,{className:So("lesson-requirement-icon",{complete:c}).toString(),"aria-hidden":"true"}),(0,n.jsxs)("span",{className:So("lesson-requirement-text"),children:[(0,n.jsx)(A2,{complete:c}),a?o?.coverCompleteAllLessons||"Complete all lessons in this course":[o?.coverCompleteLessonsName||"Complete",r,o?.coverCompleteLessonsPreposition||"of",e,o?.coverCompleteLessonsInCourse||"lessons in this course"].join(" ")]})]})}const dT={passed:xE,failed:CE,requirement:EE};function uT(){const t=(0,ze.useLabelsMap)(),e=Gl(),s=ni(),o=Us(e?.title),r=e?.settings?.passingScore;if(!o||!s)return null;const{outOfAttempts:a,quizPassed:c}=s,d=!c&&a;let l="requirement";c?l="passed":d&&(l="failed");const u=dT[l];return(0,n.jsxs)("li",{className:So("quiz-requirement"),role:"listitem",children:[(0,n.jsx)(u,{className:So("quiz-requirement-icon",{type:l}).toString(),"aria-hidden":"true"}),(0,n.jsxs)("span",{className:So("quiz-requirement-text"),children:[(0,n.jsx)(A2,{failed:d,complete:c}),o,r!=null&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":"true",className:So("quiz-requirement-seperator"),children:"\xA0|\xA0"}),t?.coverQuizScoreOf||"Score of"," ",r,t?.coverQuizPercentOrHigher||"% or higher"]}),d&&(0,n.jsx)("div",{className:So("quiz-requirement-no-attempts"),children:t?.coverNoAttemptsRemaining||"No attempts remaining"})]})]})}function hT(t){const{to:e,children:s}=t,o=(0,ke.zy)(),r=(0,m.useMemo)(()=>(0,Dp.B)(e,o),[o,e]);return(0,n.jsx)(Mp.k2,{...t,to:r,children:s})}var Qc=i(5683);const R2="focus-lesson-content",lce="preview-nav-to-first-lesson",dce="preview-nav-to-cover-page",ms="preview-nav-to-lesson-item",uce="preview-scroll-to-nav-prev",hce="preview-scroll-to-header",q0="preview-clear-state",Cd="preview-show-nav-prev",xd="preview-show-nav-next",O2="preview-nav-open",P2="preview-nav-close",M2="event-lesson-transition-start",D2="event-lesson-transition-end",k2="event-lesson-nav-prev-visible",e1="event-lesson-nav-prev-hidden",w2="event-lesson-nav-next-visible",t1="event-lesson-nav-next-hidden",s1=new WeakMap,B2=new ResizeObserver(t=>{for(const e of t)s1.get(e.target)?.(e)});function Ed(t,e){(0,m.useEffect)(()=>{if(t)return s1.set(t,e),()=>s1.delete(t)},[t,e]),(0,m.useEffect)(()=>{if(t)return B2.observe(t),()=>B2.unobserve(t)},[t])}function mT(){const t=(0,X.wA)(),[e,s]=(0,m.useState)(null),o=(0,ze.useLabelsMap)(),r=(0,m.useCallback)(a=>{t((0,Qc.sf)({offsetHeight:a.target.offsetHeight}))},[t]);return(0,m.useLayoutEffect)(()=>{if(e)return t((0,Qc.sf)({offsetHeight:e.offsetHeight})),()=>t((0,Qc.sf)(null))},[t,e]),Ed(e,r),(0,n.jsx)("button",{className:"visually-hidden btn-skip-to-lesson brand--ui",onClick:_2,ref:s,type:"button",children:(0,n.jsxs)("span",{className:"btn-skip-to-lesson__wrap",children:[o?.courseSkipToLesson,(0,n.jsx)("span",{"aria-hidden":"true",children:(0,n.jsx)(UC,{className:"btn-skip-to-lesson__icon"})})]})})}function mce(t){document.addEventListener(EVENT_FOCUS_LESSON_CONTENT,t)}function pce(t){document.removeEventListener(EVENT_FOCUS_LESSON_CONTENT,t)}function pT(t){(0,bs.A)(R2,t,document)}function _2(){document.dispatchEvent(new CustomEvent(R2))}const n1=(0,m.createContext)(!1);function Td({children:t,inert:e}){const s=o1();return(0,n.jsx)(n1.Provider,{value:s||e,children:t})}const fce=n1.Consumer;function o1(){return(0,m.useContext)(n1)}function fT(t){return t?.sessionPreferences}function U2(){return(0,X.d4)(t=>fT(t))}const gT=(0,m.forwardRef)((t,e)=>{const{children:s,className:o="lesson-link-item-tooltip",dark:r,visible:a}=t,c=(0,m.useMemo)(()=>J(o),[o]),d=(0,n.jsx)("div",{"aria-hidden":"true",ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,n.jsx)("div",{style:{pointerEvents:"all"},children:(0,n.jsx)("div",{className:c({visible:a}),children:(0,n.jsx)("div",{className:c("inner",{dark:r,light:!r}),children:s})})})});return(0,Yn.createPortal)(d,document.getElementById("portal"))});function H2(t){const{children:e,className:s,dark:o,restriction:r,tooltipClassName:a,style:c}=t,{prefersKeyboardNavigation:d}=U2(),l=(0,m.useRef)(),u=(0,m.useRef)(),h=(0,m.useRef)(),p=(0,ze.useLabelsMap)(),f=o1(),[g,v]=(0,m.useState)(!1),C=(0,m.useCallback)(()=>v(!0),[]),x=(0,m.useCallback)(()=>v(!1),[]),S=(0,m.useCallback)(()=>{setTimeout(C,0)},[C]),E=(0,m.useCallback)(()=>{d&&x()},[x,d]),b=(0,m.useCallback)(j=>{yn(j)&&g&&(j.stopPropagation(),x())},[x,g]),L=(0,m.useCallback)(()=>{document.activeElement===l.current&&(clearTimeout(h.current),C())},[C]),I=(0,m.useCallback)(()=>{h.current=setTimeout(x,150)},[x]),N=(0,m.useCallback)(()=>{if(g){const j=l.current.getBoundingClientRect(),O=u.current.offsetParent.getBoundingClientRect(),{height:B,width:_}=j,k=j.left-O.left,te=j.top-O.top;Object.assign(u.current.style,{transform:`translate(${k}px, ${te}px)`,width:`${_}px`,height:`${B}px`})}},[g]);(0,m.useEffect)(()=>{f&&v(!1)},[f]),(0,m.useLayoutEffect)(()=>N(),[N]),(0,bs.A)("resize",N,window),(0,bs.A)("keydown",b,document),r2(l,x);let R;return r?.type===_t.XQ.QUIZ?R=`${p.quizRequirePassingScore}: "${r.data}"`:r?.type===_t.XQ.ORDER?R=p.lessonRestricted:r?.type===_t.XQ.KNOWLEDGE_CHECK&&(R=p.knowledgeCheckCorrectAnswerRequiredNav),(0,n.jsxs)("div",{"aria-disabled":!0,className:s,onBlur:E,onFocus:S,onMouseEnter:L,onMouseLeave:I,ref:l,role:"link",tabIndex:f?-1:0,style:c,children:[e,(0,n.jsx)("div",{className:"visually-hidden-always",children:p?.a11yRestrictedNav}),(0,n.jsx)("div",{className:"visually-hidden-always",children:R}),(0,n.jsx)(gT,{className:a,dark:o,ref:u,visible:g,children:R})]})}function vT(t){const{b:e,children:s,"data-direction":o,isCurrentLesson:r,isTooltipEnabled:a,lessonId:c,onClick:d=Function.prototype,onFocus:l,onHideProgressTooltip:u,onNavigate:h=Function.prototype,onShowProgressTooltip:p,restriction:f,showProgressDelay:g,style:v}=t,C=o1(),{theme:{progressIndicatorStyle:x=P.Y2.THEME_DEFAULT}}=(0,Me.DX)(),S=x===P.Y2.THEME_DEFAULT,E=(0,m.useCallback)(_=>{d(_),r?(_.preventDefault(),_2()):h(c)},[c,r,d,h]),[b,L]=(0,m.useState)(!1),I=(0,m.useCallback)(_=>{!b&&a&&(g!=null?setTimeout(p,g):p()),l?.(_)},[b,l,g,p,a]),N=(0,m.useCallback)(_=>{a&&yn(_)&&u()},[u,a]),R=(0,m.useCallback)(()=>{a&&L(!0)},[a]),j=(0,m.useCallback)(()=>{a&&L(!1)},[a]),O=f?.type!=null,B=e("link",{active:r,restricted:O,"theme-default":S}).toString();return O?(0,n.jsx)(H2,{...t,className:B,style:v}):(0,n.jsx)(hT,{"aria-current":"page",className:B.toString(),"data-link":"lesson-link-item",onBlur:a?u:void 0,onClick:E,"data-direction":o,onFocus:I,onKeyDown:N,onMouseDown:R,onMouseUp:j,style:v,tabIndex:C?-1:void 0,to:(0,_t.p1)(c),children:s})}function Zc(t){const{className:e="lesson-link-item",isCurrentLesson:s,last:o,lessonId:r,style:a}=t,c=(0,m.useMemo)(()=>J(e),[e]),d=Dr(r),l=d?.type!=null,{isComplete:u=!1}=De(r)??{},h=c({active:s,complete:u,last:o,restricted:l});return(0,n.jsx)("div",{className:h,children:(0,n.jsx)(vT,{...t,b:c,isCurrentLesson:s,restriction:d,style:a})})}const CT=J("lesson-nav"),xT=t=>{const{children:e,finish:s,lessonId:o,onFocus:r}=t;if(o)return(0,n.jsx)(Zc,{className:"lesson-nav-link",onFocus:r,tooltipClassName:"lesson-nav-link-tooltip",...t});const a=s?"/lessons/progress-summary":"/";return(0,n.jsx)("span",{className:"lesson-nav-link",children:(0,n.jsx)(Qn,{className:"lesson-nav-link__link","data-direction":t["data-direction"],onFocus:r,to:a,children:e})})},ET=({buttonScheme:t,accentContrast:e,children:s,className:o,direction:r,finish:a,navLessonId:c,onFocus:d,restrictionType:l},u)=>{const h=l!=null,p=ga(),g={className:CT(null,{[r]:!0,accent:t===P.LE.ACCENT,dark:t===P.LE.DARK,floating:p===P.AY.FLOATING,"floating-full":p===P.AY.FLOATING_FULL,finish:a,full:p===P.AY.FULL,light:t===P.LE.LIGHT,restricted:h,tint:t===P.LE.TINT}).mix(o),[`data-${r}-lesson`]:!0};return(0,n.jsx)("div",{ref:u,...g,children:(0,n.jsx)(xT,{accentContrast:e,"data-direction":r,lessonId:c,onFocus:d,finish:a,children:s})})};function TT(t,e){const{currentLocale:s}=e,o=Ut(t),r=(0,ze.selectLabelsMap)(s,t);return{buttonScheme:o.buttonScheme,accentContrast:o.theme?.accentContrast,labelLessonRestricted:r.lessonRestricted,labelQuizRequirePassingScore:r.quizRequirePassingScore}}const ST=Se()(xs.wZ,(0,X.Ng)(TT,null,null,{forwardRef:!0}),m.forwardRef)(ET),LT={CoverCompletedInformation:N4,CoverDueDate:nT,CoverProgress:aT,CoverRequirements:cT,ImageEagerOrLazy:_p,LessonNav:ST};function bT({children:t}){return(0,n.jsx)(B9,{...LT,children:t})}var yT=i(71129),IT=i(63006);const F2={"rise-course-navigation":!0},NT={"ai-assistant-settings":!0,"ai-assistant-summaries":!0,"ai-assistant-quizzes":!0,"ai-assistant-blocks":!0,"ai-text-to-video":!1,"ai-assistant-images":!0,"ai-assistant-magic-block-import":!0,"ai-assistant-writing":!0,"ai-assistant-enable":!0,"rise-com-360-upsell":!0},r1=(0,m.createContext)(F2);r1.displayName="FeatureFlagsContext";const{Provider:jT}=r1;function AT({children:t,value:e}){const s=(0,m.useMemo)(()=>({...NT,...e,...F2}),[e]);return(0,n.jsx)(jT,{value:s,children:t})}function Sd(){return(0,m.useContext)(r1)}function Ea(t){return Sd()[t]}function vce(t){function e(s){const o=Sd();return jsx(t,{...s,flags:o})}return e.displayName=`withFeatureFlags(${t.displayName||t.name})`,e}function Ld(t,e){return function(s){const o=r=>{const a=Ea(t),c={...r,[e]:a};return(0,n.jsx)(s,{...c})};return o.displayName=`withFeatureFlag(${s.displayName||s.name})`,o}}const z2=({children:t})=>(0,n.jsx)(n.Fragment,{children:t});z2.displayName="On";const V2=({children:t})=>(0,n.jsx)(n.Fragment,{children:t});V2.displayName="Off";const Ii=({children:t,featureFlags:e})=>{const s=Sd(),o=(0,m.useMemo)(()=>{const c=[].concat(e??[]);return c.length&&c.every(d=>s[d])},[e,s]),{on:r=null,off:a=null}=(0,m.useMemo)(()=>{const c={};return ie().Children.forEach(t,d=>{switch(d.type.displayName){case Ii.On.displayName:c.on=d;break;case Ii.Off.displayName:c.off=d;break;default:c.on=t}}),c},[t]);return o?r:a};Ii.On=z2,Ii.Off=V2;const RT={};function OT({children:t}){const e=(0,X.wA)(),s=Sd();return(0,yT.A)(()=>{e((0,IT.G)(s))},[s]),t}function PT({children:t}){const s=Mt()?.features??RT;return(0,n.jsx)(AT,{value:s,children:(0,n.jsx)(OT,{children:t})})}var MT=i(33169),a1=i(41481);const DT=t=>ye.BI?t??"":t?`${t} | ${ye.mZ}`:ye.mZ,Yc=t=>(0,ye.Hm)()?t:DT(t);var kT=i(59288);function Ta({children:t,title:e}){const s=Yc((0,Me.d_)()),o=e??s;return kT.useEffect(()=>{document.title=o},[o]),(0,n.jsx)(n.Fragment,{children:t})}var wT=i(42432),BT=i.n(wT),_T=i(98395),UT=i(88747);const i1=Object.assign((0,m.createContext)(void 0),{displayName:"BlockContext"});function c1({block:t,children:e}){const[s,o]=(0,m.useState)(t);return(0,m.useEffect)(()=>o(r=>t||r),[t]),(0,n.jsx)(i1.Provider,{value:s,children:(0,n.jsx)(K2,{...s?.settings,children:e})})}const xce=i1.Consumer;function Dn(){return(0,m.useContext)(i1)}function bd(t){return function(s){const o=Dn();return(0,n.jsx)(t,{...s,block:o})}}var HT=i(92348),FT=i.n(HT),zT=i(78483),Wo=i.n(zT),VT=i(98511),Sa=i.n(VT),WT=i(77412);const W2=2,Lo=FT()({WHITE:null,TRANSPARENT:null}),GT={backgroundColor:"",backgroundType:P.xj.LIGHT,cardMode:Lo.WHITE,customBackgroundColorContrast:P.Em.AUTO,entranceAnimation:!0,markerColorContrast:P.Em.AUTO,paddingBottom:3,paddingLinked:!0,paddingTop:3,snippetColorContrast:P.Em.AUTO},KT={knowledge:["knowledge"],knowledgeCheck:["draw from question bank","fillin","matching","multiple choice","multiple response"],flashcard:["flashcard","stack"],interactive:["accordion","tabs"],"interactive-fullscreen":["sorting","timeline","process"],multimedia:["attachment","embed"],quote:["carousel"]};function $T(t,e){return KT[t]?.includes?.(e)??!1}const QT={360:{storyline:"#fafafa"},impact:{c:"#ececec",d:"#f5f5f5"},"interactive-fullscreen":{timeline:"#f5f5f5"},quote:{d:"#f5f5f5"}};function ZT(t,e){const s=QT[t]?.[e];return s==null?{}:{backgroundColor:s,backgroundType:P.xj.COLOR}}const YT={360:["storyline"],knowledge:["knowledge"],knowledgeCheck:["multiple choice","multiple response","fillin","matching"],flashcard:["flashcard"],impact:["note"],interactive:["accordion","tabs"],"interactive-fullscreen":["scenario","sorting","timeline"],multimedia:["attachment","code"],quote:["background","carousel"],text:["code"]};function Ece(t,e){return YT[t]?.includes(e)??!1?.1:.5}function XT(t){switch(t.backgroundType){case P.xj.COLOR:return t.backgroundColor;case P.xj.ACCENT:return t.courseColor;case P.xj.TINT:return(0,ct.WA)(t.courseColor);case P.xj.LIGHT:return"#ffffff";case P.xj.GRAY:return"#fafafa";case P.xj.DARK:return"#303030";case P.xj.BLACK:return"#000000"}}const JT={multimedia:{embed(t){return{cardMode:t.showBorder===!1?Lo.TRANSPARENT:Lo.WHITE}}}};function qT(t,e,s){return eS(t,e,s)}function eS(t,e,s){const o=ZT(t,e);(s.v==null||s.v<W2)&&(s=tS(s),s.backgroundColor?.toLowerCase()==="#ffffff"&&Object.keys(o).length===0&&(s=Wo()("backgroundColor",s)));const r=JT[t]?.[e]?.(s),a=s.backgroundColor&&s.backgroundType==null?{backgroundType:P.xj.COLOR}:{};return[{accentColor:null},GT,o,r,s,a,{v:W2}].reduce((l,u)=>u==null?l:{...l,...Sa()(WT.A,u)})}function tS(t){return{...t,backgroundType:null,cardMode:null,v:1}}const sS={text:["table"],divider:["divider","numbered divider","spacing divider"],knowledgeCheck:["draw from question bank"]};function Tce(t,e){return!sS[t]?.includes(e)}const nS={};function Sce(t,e){return!nS[t]?.includes(e)}function oS(t){return t===IMAGE_OVERLAY_COLOR_TYPES.LIGHT?CONTRAST_COLORS.LIGHT:CONTRAST_COLORS.DARK}function rS(t,e){if(e===TEXT_COLOR.AUTO){const s=getColorRange(t),o=blockCardColorTransformers[s](t);return getTextColorFromBackground(o)===TEXT_COLOR.DARK?CONTRAST_COLORS.DARK:CONTRAST_COLORS.LIGHT}else return e===TEXT_COLOR.LIGHT?CONTRAST_COLORS.LIGHT:CONTRAST_COLORS.DARK}function Lce(t,e,s,o,r){const a=t?.backgroundType;return t?.cardMode===Lo.TRANSPARENT?a===BACKGROUND_TYPES.IMAGE?oS(e?.overlayColor):o&&a!==BACKGROUND_TYPES.ACCENT?r:rS(s,t?.customBackgroundColorContrast):o?r:CONTRAST_COLORS.DARK}const aS={interactive:["accordion","tabs"],"interactive-fullscreen":["labeledgraphic","process","timeline"],list:["numbered","bulleted","checkboxes"]};function bce(t,e){return aS[t]?.includes(e)??!1}var G2=i(59288);const l1=Object.assign((0,m.createContext)({}),{displayName:"BlockSettingsContext"});function rn(){return(0,m.useContext)(l1)}const iS="settings";function yd(t){return e=>{const s=G2.forwardRef((o,r)=>{const a=rn(),c={...o,[t??iS]:a};return(0,n.jsx)(e,{...c,ref:r})});return s.displayName=`withBlockSettings(${e.displayName||e.name})`,s}}function qn(){const t=rn();return t==null?null:XT(t)}const cS="backgroundColor";function lS(t){return e=>{const s=G2.forwardRef((o,r)=>{const a=qn(),c={...o,[t??cS]:a};return(0,n.jsx)(e,{ref:r,...c})});return s.displayName=`withBackgroundColor(${e.displayName||e.name})`,s}}function K2({children:t,...e}){const s=Dn(),o=rn(),r=(0,Me.kJ)(),a=(0,m.useMemo)(()=>{const c=s==null?e:qT(s.family,s.variant,e);return{courseColor:r,...o,...c}},[s,e,r,o]);return(0,n.jsx)(l1.Provider,{value:a,children:t})}const yce=l1.Consumer;var $2=i(58931),dS=i(42006),uS=i(4663),hS=i(39351),kn=i.n(hS),mS=i(23444),La=i.n(mS);const Q2=13,Xc=0,ba=1,Ni=2,pS=Xc|ba|Ni,Jc=4,Id=8,Nd=16,d1=(t,e)=>t&e?t&pS:Xc,jd=t=>e=>{e.keyCode===Q2&&t()},fS=We()(),gS=La()(wt()),vS=La()(Yt()),Z2=kn()(gS,vS),Ice=Jn()(wt(),Yt());var Y2=i(94379);const X2=t=>()=>document.querySelector(t),Nce=t=>{const e=t.value.length;t.focus(),t.setSelectionRange(e,e)},jce=t=>{const e=path(["current","editor"],t);if(!e)return null;const s=e.value.length;return e.focus(),e.setSelectionRange(s,s),t};function J2(t){return Array.prototype.slice.call(t)}function u1(t,e){const s=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;if(e==="start")return s.top>=0;if(e==="center"){if(s.height>o)return s.top<=0&&s.bottom>=o;const a=o/2,c=s.top+s.height/2,d=o*.25;return Math.abs(a-c)<d}return e==="end"?s.bottom<=o:s.top>=0&&s.left>=0&&s.bottom<=o&&s.right<=r}function q2({anchor:t,popover:e,positionX:s}){if(!t||!e)return null;const o=t.getBoundingClientRect(),a=window.getComputedStyle(t).direction==="rtl",c=window.getComputedStyle(e),d=parseFloat(c.marginTop),l=e.offsetWidth,u=window.visualViewport??{width:window.innerWidth,height:window.innerHeight},h=o.top+o.height+e.offsetHeight+d>u.height?o.top-(d*2+e.offsetHeight):o.top+o.height;let p;if(s==="center"){const f=o.left+o.width/2;p=a?u.width-f-l/2:f-l/2}else s==="right"?p=a?u.width-o.left-l:o.right-l:p=Math.min(a?u.width-o.right:o.left,u.width-l);return{left:p,top:h}}const Ace="menu",Rce="menuitem",ji="group",CS="tablist",xS="tabpanel",ES="tab",Oce="radiogroup",Pce="radio",TS=({element:t,isHidden:e})=>{t&&t.setAttribute("aria-hidden",e?"true":"false")},qc=({caption:t,editable:e,id:s,isOverlayType:o,getL10nValue:r})=>{const a=!!(!o&&!e&&r(t));return{figcaptionId:a?`figcaption-${s}`:void 0,isFigure:a,role:a?"figure":void 0,tagName:a?"figure":"div"}};var h1=i(88523);const e3=":focus{outline: none}",SS=":focus:not(:focus-visible){outline: none}",t3="focus-ring-style",m1=()=>document.getElementById(t3)||LS(),LS=()=>{const t=document.createElement("style");return t.id=t3,document.head.appendChild(t),t},el=0,Ad=-1,bS=()=>{const t=m1();document.addEventListener("mousedown",()=>{setTimeout(()=>{t.innerHTML=e3},0),(0,X.JD)((0,h1.xi)(!1))}),window.addEventListener("keydown",s3)},s3=t=>{const e=t.target,s=m1();(cd(t)||Hr(t)&&!e.classList.contains("ignore-prefers"))&&(s.innerHTML="",(0,X.JD)((0,h1.xi)(!0)))},n3=({focusVisible:t}={})=>m1().innerHTML=t?SS:e3,Fr=t=>t?el:Ad,Rd=(t,e)=>{const s=t||{},o=e!==el;s.tabIndex=e,TS({element:t,isHidden:o})},p1=({element:t,selector:e,tabIndex:s})=>{J2(t.querySelectorAll(e)).forEach(r=>{Rd(r,s)})},yS=(t,e,s)=>(Fs()(t,As(),Do())(e).focus(s),e),IS=(t=>(e,s)=>{const o=e.querySelectorAll('[tabindex = "0"]');return o.length?(yS(We()(t),o,s),!0):!1})(!0),o3=({list:t,index:e})=>{e>=0&&e<us()(t)&&t[e].focus()},NS=({list:t,currentIndex:e})=>{const s=Zt()(e||0),o=s<us()(t)?s:0;return o3({list:t,index:o}),o},jS=({list:t,currentIndex:e})=>{const s=fo()(e||us()(t));return o3({list:t,index:s}),s};function AS(){const t=Ea("big-head-mode");return M()({bigHeadMode:t})}function RS(t){function e(s,o){const r=AS();return(0,n.jsx)(t,{...s,ref:o,easterEggClassNames:r})}return Object.assign((0,m.forwardRef)(e),{displayName:`withEasterEggClassNames(${t.displayName||t.name})`})}var Ai=i(9988),OS=i(45949),Jt=i.n(OS),PS=i(35884),f1=i.n(PS),MS=i(30349),DS=i.n(MS);const kS=vi()(f1()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),We()("#FFF")),wS=Jt()({color:kS}),BS=({accentContrast:t,bodyTypeface:e,color:s,headingTypeface:o,isLegacyCourse:r,uiTypeface:a})=>{const c=(0,m.useMemo)(()=>{const u=!(0,ct.Wn)(s),h=(0,ct.xD)(s),p=t===P.Em.DARK||t===P.Em.AUTO&&h===P.Em.DARK;return!r&&(t&&p||!t&&u)?[$e.S6.DARK,$e.S6.LIGHT]:[$e.S6.LIGHT,$e.S6.DARK]},[t,s,r]),[d,l]=c;return(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:DS()({bodyTypeface:e,colorThemeRGB:(0,Ai.A)(s)?.slice(0,3),colorTheme:s,colorThemeContrast:d,colorThemeContrastComplementary:l,colorThemeContrastComplementaryRGB:(0,Ai.A)(l)?.slice(0,3),colorThemeContrastRGB:(0,Ai.A)(d)?.slice(0,3),colorThemeTint:(0,ct.WA)(s),colorThemeTransparent:s+"1A",headingTypeface:o,uiTypeface:a})}})},g1=Se()(BS,wS);g1.displayName="Branding",g1.propTypes={bodyTypeface:A().string,color:A().string.isRequired,headingTypeface:A().string,uiTypeface:A().string};const _S=(0,m.memo)(g1);var US=i(59288);const r3="riseUnsupportedBrowser",HS={authoring:/Android|webOS|iPhone|iPad|iPod|BlackBerry|MSIE|Trident/,runtime:/MSIE/},FS=t=>new RegExp(HS[t],"i").test(window.navigator.userAgent);class a3 extends US.Component{render(){return FS(this.props.env)&&!window.sessionStorage.getItem(r3)?this.renderUnsupported():this.props.children}renderUnsupported(){return(0,n.jsxs)("div",{children:[this.props.children,(0,n.jsx)("div",{className:"browser-support",children:(0,n.jsxs)("div",{className:"browser-support__inner",children:[(0,n.jsx)("p",{className:"browser-support__text browser-support__text--full",children:"You\u2019re using an unsupported browser. For better results, use a modern browser.\xA0"}),(0,n.jsx)("p",{className:"browser-support__text browser-support__text--mobile",children:"Unsupported browser"}),(0,n.jsxs)("a",{href:"https://articulate.com/support/article/System-Requirements-for-Rise",rel:"noopener noreferrer",target:"_blank",className:"browser-support__link",children:[(0,n.jsx)("span",{children:"Learn more"}),(0,n.jsx)("i",{className:"icon icon-chevron-right"})]}),(0,n.jsx)("div",{className:"browser-support__dismiss",onClick:this.handleDismiss.bind(this),children:(0,n.jsx)("span",{className:"browser-support__dismiss-icon",children:"\xD7"})})]})})]})}handleDismiss(){window.sessionStorage.setItem(r3,"true"),this.forceUpdate()}}a3.propTypes={env:A().string.isRequired};var ys=i(33733);const zS=t=>M()("button",{[t.className]:!wt()(t.className),"button--default":t.mode===void 0,"button--extraPadding":t.extraPadding,"button--sidebar brand--ui":t.sidebar,"button--header":t.header,"button--header-done":t.headerDone,"button--outline":t.outline,"button--outline button--outline-transparent":t.outlineTransparent,"button--condensed":t.condensed,"button--inverted":t.inverted,"button--logo":t.logo,"button--inline":t.mode==="inline","button--next":t.next,"button--disabled":t.disabled,"button--controls":t.controls,"button--controls-enhanced":t.controlsEnhanced,"brand--ui":t.accent,"brand--background brand--border":t.branded}),VS=({icon:t})=>t?(0,n.jsx)("i",{className:`button__icon icon-${t}`}):null,WS=({onlyIcon:t,children:e})=>ie().Children.map(e,s=>t&&s.type===void 0?null:s),Od=({accent:t,ariaControls:e,ariaExpanded:s,ariaHidden:o,ariaLabel:r,ariaPressed:a,branded:c,className:d,children:l,condensed:u,controls:h,controlsEnhanced:p,disabled:f,el:g,extraPadding:v,header:C,headerDone:x,icon:S,inverted:E,mode:b,next:L,onClick:I=Function.prototype,onlyIcon:N,onMouseDown:R=Function.prototype,outline:j,outlineTransparent:O,sidebar:B,tabIndex:_,type:k,...te})=>{const F=g||"button";return F==="button"&&!k&&(k="button"),(0,n.jsxs)(F,{"aria-controls":e,"aria-expanded":s,"aria-hidden":o,"aria-label":r,"aria-pressed":a,className:zS({accent:t,branded:c,className:d,condensed:u,controls:h,controlsEnhanced:p,disabled:f,extraPadding:v,header:C,headerDone:x,inverted:E,mode:b,next:L,outline:j,outlineTransparent:O,sidebar:B}),disabled:f,onClick:I,onMouseDown:R,tabIndex:_,type:k,...te,children:[(0,n.jsx)(VS,{icon:S}),WS({onlyIcon:N,children:l})]})};var GS=i(33744),i3=i.n(GS);const KS=["[href]",'[tabindex]:not([tabindex=""])',"audio[controls]","button:not([disabled])","details:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","summary:not([disabled])","textarea:not([disabled])","video[controls]"].map(t=>`${t}:not([tabindex="-1"]):not([hidden]):not([aria-hidden="true"])`).join(", "),Pd=(t,e=!1)=>s=>{const o=v1(s);if(o.length===0)return;const r=t>=o.length&&e?0:t;return i3()(r,o)},v1=t=>t?Array.from(t.querySelectorAll(KS)).filter(e=>window.getComputedStyle(e).display!=="none"):[],c3=t=>{const e=v1(t);return e.length===0?0:e.findIndex(s=>s==document.activeElement)},l3=Pd(0),d3=Pd(-1),$S=(t,e=!1)=>Pd(c3(t)+1,e)(t),QS=t=>Pd(c3(t)-1)(t),C1=t=>l3(t)?.focus?.(),kce=t=>d3(t)?.focus?.(),wce=(t,e=!1)=>$S(t,e)?.focus?.(),Bce=t=>QS(t)?.focus?.();function ZS(){const t=(0,m.useRef)(null);function e(s){const o=l3(t.current),r=d3(t.current);cd(s)&&(s.shiftKey?document.activeElement===o&&(r.focus(),s.preventDefault()):document.activeElement===r&&(o.focus(),s.preventDefault()))}return(0,m.useEffect)(()=>{const s=t?.current;return s?.addEventListener("keydown",e),()=>{s?.removeEventListener("keydown",e)}},[]),t}var YS=i(60670),XS=i(48270),JS=i(7037),qS=i(33998),eL=i(91244),tL=i(61666),sL=i(80869),nL=i(5861),oL=i(3236),rL=i(85496),aL=i(21234),iL=i(10124),cL=i(54134),lL=i(47763),dL=i(77255),uL=i(40773),hL=i(70161),mL=i(65228),pL=i(49416),fL=i(81291),gL=i(23741),vL=i(63817),CL=i(69540),xL=i(40370),EL=i(33285),TL=i(73442),SL=i(12703),LL=i(47456),bL=i(20084),yL=i(81699),IL=i(29437),NL=i(23707),jL=i(542),AL=i(32130),RL=i(87269),u3=i(14178),OL=i(37676),PL=i(51023),ML=i(25312),DL=i(53330),kL=i(26671),wL=i(1344),BL=i(14961),_L=i(18938),UL=i(73333),HL=i(32748),FL=i(44582),zL=i(98992),VL=i(39260),WL=i(97877),GL=i(90193),KL=i(26454),$L=i(6101),QL=i(38826),ZL=i(31334),YL=i(80050),XL=i(38734),JL=i(44240),qL=i(65111),eb=i(67026),tb=i(69571),sb=i(75722),nb=i(28094),ob=i(95300),rb=i(26463),ab=i(15901),ib=i(32507),cb=i(99932),lb=i(83246),db=i(978),ub=i(94495),hb=i(42741),mb=i(80627),pb=i(84219),fb=i(90652),gb=i(31352),vb=i(76657),Cb=i(54943),xb=i(92518),Eb=i(79697),Tb=i(78522),Sb=i(79470),Lb=i(21276),bb=i(35943),yb=i(6417),Ib=i(44199),Nb=i(53430),jb=i(78670),Ab=i(41339),Rb=i(11245),Ob=i(39176),Pb=i(15868),Mb=i(95665),Db=i(26788),kb=i(83035),wb=i(97333),Bb=i(86711),_b=i(39936),Ub=i(15859),Hb=i(52726),Fb=i(11825),zb=i(99811),Vb=i(52898),Wb=i(38289),Gb=i(34660),Kb=i(37592),$b=i(94846),Qb=i(25385),Zb=i(24069),Yb=i(9572),Xb=i(67537),Jb=i(96581),qb=i(27281),ey=i(90472),ty=i(15646),sy=i(48240),ny=i(39270),oy=i(12137),ry=i(96304),ay=i(15702),iy=i(59246),cy=i(32590),ly=i(63356),dy=i(45199),uy=i(70677),hy=i(50694),my=i(66087),py=i(76679),fy=i(6139),gy=i(46680),vy=i(61563),Cy=i(95651),xy=i(46138),Ey=i(18457),Ty=i(66233),h3=i(27780),Sy=i(96738),Ly=i(60023),by=i(6517),yy=i(75557),Iy=i(52193),Ny=i(61927),jy=i(44962),Ay=i(73404),Ry=i(53208),Oy=i(36609),Py=i(21576),My=i(81437),Dy=i(99440),ky=i(53352),wy=i(20551),By=i(84893),_y=i(9677),Uy=i(89865),Hy=i(43459),Fy=i(74248),zy=i(58100),Vy=i(77653),Wy=i(58834),Gy=i(19154),Ky=i(54804),$y=i(47167),Qy=i(44282),Zy=i(67559),Yy=i(47421);const Xy={prefix:"fab",iconName:"rise-com",icon:[512,512,[],"e001","M248 3.34C111 3.34 0 114 0 252c0 137 111 248 248 248 137 0 248-111 248-248-.457-137-112-248-248-248zm0 421c-75.4 0-139-48-163-116l326 0c-23.8 67.7-88.2 116-163 116z"]},Jy={prefix:"fab",iconName:"reach",icon:[182,182,[],"e001",["M181.97 99.3826C136.326 99.3826 99.3497 136.325 99.3497 181.926H35.1699C35.1699 100.912 100.881 35.2632 181.97 35.2632V99.3826Z","M41.5029 82.9278C64.4243 82.9278 83.0058 64.3638 83.0058 41.4639C83.0058 18.564 64.4243 0 41.5029 0C18.5815 0 0 18.564 0 41.4639C0 64.3638 18.5815 82.9278 41.5029 82.9278Z"]]},qy={prefix:"fab",iconName:"audio-plus",icon:[20,20,[],"e001","M1.5 8.75C1.5 8.34375 1.8125 8 2.25 8C2.65625 8 3 8.34375 3 8.75V10C3 12.2188 4.78125 14 7 14C7.71875 14 8.40625 13.8125 9 13.4688C9 13.5 9 13.5 9 13.5C9 14.0625 9.0625 14.5625 9.21875 15.0625C8.75 15.25 8.25 15.4062 7.75 15.4688V16.5H9.25C9.65625 16.5 10 16.8438 10 17.25C10 17.6875 9.65625 18 9.25 18H7H4.75C4.3125 18 4 17.6875 4 17.25C4 16.8438 4.3125 16.5 4.75 16.5H6.25V15.4688C3.5625 15.0938 1.5 12.8125 1.5 10V8.75ZM4 5C4 3.34375 5.34375 2 7 2C8.65625 2 10 3.34375 10 5V10C10 10.125 9.96875 10.25 9.96875 10.375C9.625 10.875 9.34375 11.4375 9.1875 12.0625C8.625 12.6562 7.84375 13 7 13C5.34375 13 4 11.6562 4 10V5ZM5.5 5V10C5.5 10.8438 6.15625 11.5 7 11.5C7.8125 11.5 8.5 10.8438 8.5 10V5C8.5 4.1875 7.8125 3.5 7 3.5C6.15625 3.5 5.5 4.1875 5.5 5ZM10 13.5C10 11.0312 12 9 14.5 9C16.9688 9 19 11.0312 19 13.5C19 16 16.9688 18 14.5 18C12 18 10 16 10 13.5ZM11 8.75C11 8.34375 11.3125 8 11.75 8C12.0312 8 12.2812 8.1875 12.4062 8.40625C11.875 8.625 11.4062 8.90625 11 9.28125V8.75ZM12 13.5C12 13.7812 12.2188 14 12.5 14H14V15.5C14 15.7812 14.2188 16 14.5 16C14.75 16 15 15.7812 15 15.5V14H16.5C16.75 14 17 13.7812 17 13.5C17 13.25 16.75 13 16.5 13H15V11.5C15 11.25 14.75 11 14.5 11C14.2188 11 14 11.25 14 11.5V13H12.5C12.2188 13 12 13.25 12 13.5Z"]},eI={"alert-circle-solid":u3.GE,"alert-circle":yb.lE,"alert-diamond":Ub.xG,"arrow-down-from-line":tb.xZ,"arrow-down-to-bracket":sb.a_,"arrow-down-to-line":nb.yH,"arrow-down":eb.B0,"arrow-left":ob.Ce,"arrow-right-from-line":ab.Pe,"arrow-right":rb.dm,"arrow-rotate-left-light":dL.V3,"arrow-rotate-left":ib.V3,"arrow-up-from-bracket":lb.MN,"arrow-up-from-line":db.s8,"arrow-up-right-from-square":ub.faArrowUpRightFromSquare,"arrow-up":cb.IN,"arrows-two-from-center":XS.A1,"arrows-two-to-center":JS.hL,"badge-check":SL.Zs,"bar-chart":hb.X8,bars:LL.ck,"block-selector":YL.iH,"book-open":pb.Re,"book-sparkles":fb.E4,book:mb.LB,"browser-light":eL.c9,browser:gb.c9,building:qS.UR,"cards-blank":vb.Xm,"caret-down":yL.xB,"caret-right":IL.fU,"chart-column":TL.q9,"check-regular":JL.e6,check:bL.e6,"chevron-down-solid":NL.Jt,"chevron-down":Cb.Jt,"chevron-left-light":tL.Wz,"chevron-left-solid":AL.Wz,"chevron-left":xb.Wz,"chevron-right-light":sL.Xk,"chevron-right-solid":RL.Xk,"chevron-right":Eb.Xk,"chevron-up-solid":jL.w2,"chevron-up":Tb.w2,"circle-arrow-right":PL.Ni,"circle-arrow-up":OL.yi,"circle-check-regular":Lb.QR,"circle-check-solid":ML.QR,"circle-check":uL.QR,"circle-dot":bb.pp,"circle-half-stroke":Ib.B2,"circle-info":Nb.faCircleInfo,"circle-plus-duotone":hL.q_,"circle-plus-regular":jb.q_,"circle-plus":DL.q_,"circle-small-solid":kL.ZP,"circle-small":Ab.ZP,"circle-solid":u3.GE,"circle-x":wL.Ub,"circle-xmark":Rb.bn,"circle-xmark-solid":BL.bn,"circle-xmark-duotone":mL.bn,circle:Sb.GE,"clock-rotate-left":Ob.Yj,clone:Mb.$3,close:Db.yY,"closed-captioning":Pb.UM,"code-fork-duotone":pL.zt,"code-fork-regular":kb.zt,code:Zy.jT,comment:wb.DN,copy:Bb.jP,crop:_b.K1,"edit-regular":Hb.MT,"ellipsis-regular":Fb.Dw,"ellipsis-vertical-regular":zb.nx,envelope:Vb.y_,"external-link":Wb.vM,"eye-slash":oL.k6,eye:nL.pS,"file-audio":Kb.qe,"file-duotone":fL.A4,"file-export-light":aL.o1,"file-export":$b.o1,"file-import":Qb.$M,"file-lines":Zb.bL,"file-pdf-light":rL.O_,"file-pdf":Yb.O_,file:Gb.A4,"folder-image":Xb.JK,"folder-open":gL.Uj,gear:Jb.BH,globe:qb.Bw,"graduation-cap":ey.eS,"grid-2":ty.Qy,"grid-solid":_L.Qy,"grip-dots-vertical":sy.IM,"hand-pointer":ny.A8,"image-landscape":ry.oC,"image-portrait":ay.E4,image:oy.jb,"info-circle":iy.iW,"layers-solid":QL.qI,"link-simple-slash":dy.r2,"link-simple":ly.wi,"link-slash":uy.TH,link:cy.CQ,list:hy.IT,"location-dot":cL.gK,"lock-keyhole-light":iL.Yp,lock:UL.DW,"magnifying-glass-plus":py.bM,"magnifying-glass":my.$U,megaphone:ZL.OR,"message-quote":fy.ps,"minus-solid":HL.EZ,minus:gy.EZ,paintbrush:vL.ue,palette:vy.fy,paste:Cy.R9,pause:xy.G1,"pause-solid":FL.G1,"pen-line":Ey.pg,"pen-to-square":Ty.faPenToSquare,"pencil-duotone":CL.zL,"pencil-regular":qL.zL,"pencil-thin":Yy.zL,pencil:lL.zL,"play-regular":h3.ij,"play-solid":zL.ij,play:h3.ij,"plus-regular":Sy.QL,plus:Ly.TS,"quote-left":by.$7,"rectangle-history-circle-plus":Iy.Hu,"rectangle-regular":yy.vt,"rectangle-vertical-history":Ny.Lt,rocket:jy.KM,"ruler-horizontal":Ay.Si,"ruler-triangle":Ry.cb,"sliders-simple":VL.AD,"sparkles-solid":WL.p7,sparkles:Oy.p7,"spinner-third":Py.sq,"square-arrow-down":Dy.Y1,"square-arrow-right":ky.mT,"square-arrow-up-right":wy.fL,"square-check-solid":GL.Dn,"square-check":By.Dn,"square-duo":xL.Nf,"square-info":_y.Lg,"square-plus":Uy.Vd,square:My.Nf,"stopwatch-regular":Hy.nw,table:Fy.w9,tag:zy._2,text:Vy.jw,"trash-can":Gy.sj,trash:Wy.yL,"user-group":KL.US,"users-regular":Ky.gd,users:EL.gd,video:$y.n2,"wand-magic-sparkles":Qy.Ys,"waveform-lines":XL.Wx,xmark:$L.Jy},tI={"audio-plus":qy,reach:Jy,"rise-com":Xy};function Lt({"aria-label":t,className:e,classNameIcon:s,color:o,name:r,rotation:a,spin:c,style:d,styleIcon:l}){return(0,n.jsx)("span",{className:e,style:{color:o,...d},children:(0,n.jsx)(YS.g,{"aria-label":t,className:s,icon:eI[r],rotation:a,spin:c,style:l})})}function _ce({className:t,classNameIcon:e,color:s,name:o,style:r,styleIcon:a}){return jsx("span",{className:t,style:{color:s,...r},children:jsx(FontAwesomeIcon,{className:e,icon:tI[o],style:a})})}const In=J("modal"),x1=ie().forwardRef((t,e)=>{const{children:s,className:o,darkOverlay:r,disableBackgroundScroll:a,disableCloseOnOverlayClick:c,focusFirstInput:d=!0,footer:l,forceToTop:u=!1,heading:h,hideCloseButton:p=!1,hideHeader:f=!1,useTopLayer:g=!0,onCancel:v,onClose:C=Ft.lQ,onClickBack:x,onOverlayClick:S=C,scroll:E=!1,subHeading:b,subText:L,width:I}=t,N=ZS(),R=(0,m.useRef)(void 0);(0,m.useEffect)(()=>{const _=k=>{yn(k)&&(k.preventDefault(),k.stopPropagation(),v?.(k),C?.())};return document.addEventListener("keydown",_,!0),()=>{document.removeEventListener("keydown",_,!0)}},[v,C]),(0,m.useEffect)(()=>{const _=N.current;return g?_?.showModal():_?.show(),()=>{_?.close()}},[N,g]),(0,m.useEffect)(()=>{if(d&&N.current){const _=v1(N.current).find(te=>te.tagName==="INPUT"||te.tagName==="TEXTAREA"),k=_||R?.current;k?.focus(),k instanceof HTMLTextAreaElement&&k.setSelectionRange(k.value.length,k.value.length)}},[d,N]),(0,m.useEffect)(()=>(a&&(document.scrollingElement||document.documentElement).classList.add("no-scroll"),()=>{a&&(document.scrollingElement||document.documentElement).classList.remove("no-scroll")}),[a,N]);const j=In({"force-to-top":u}).mix(o),O=In("content",{"with-footer":!!l,"force-scroll":!!E}),B=In("overlay",{dark:!!r});return(0,n.jsxs)("dialog",{"aria-labelledby":"modal-heading","aria-modal":"true",className:j.toString(),onClose:C,ref:_=>{N.current=_,e&&(e.current=_)},role:"dialog",children:[(0,n.jsx)("div",{id:"modal-portal"}),(0,n.jsx)("div",{className:B,onClick:c?void 0:S}),(0,n.jsxs)("div",{className:In("dialog"),style:I?{width:I}:{},children:[(!f||!p)&&(0,n.jsxs)("div",{className:In("heading-wrapper"),children:[(0,n.jsxs)("div",{className:In("heading-flexbox"),children:[!f&&(0,n.jsxs)("div",{className:In("header"),children:[x&&(0,n.jsx)("button",{"aria-label":"back to previous page",className:In("back-button"),onClick:x,type:"button",children:(0,n.jsx)(Lt,{name:"arrow-left",styleIcon:{paddingRight:"1rem",height:"2rem"}})}),(0,n.jsxs)("h1",{id:"modal-heading",className:In("heading"),children:[h,(0,n.jsx)("span",{className:In("subheading"),children:b})]})]}),!p&&(0,n.jsx)("button",{"aria-label":"close dialog",className:In("close"),onClick:C,ref:R,type:"button",children:(0,n.jsx)(Lt,{className:"icon",name:"close"})})]}),L?(0,n.jsx)("h2",{className:In("subtitle"),children:L}):[]]}),(0,n.jsx)("div",{className:O,children:s}),l&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:In("footer-shadow")}),(0,n.jsx)("div",{className:In("footer"),children:l})]})]})]})});var sI=i(13662);function nI(t){return t.global}function oI(t){return nI(t)?.externalLinksModalVisible}const rI=()=>{const t=(0,X.d4)(oI),e=(0,X.wA)(),s=(0,m.useCallback)(()=>e((0,sI.zE)(!1)),[e]);return(0,n.jsx)(ys.F,{children:t&&(0,n.jsx)(ys.B1,{classNames:"modal",timeout:400,children:(0,n.jsx)(x1,{hideCloseButton:!0,hideHeader:!0,onClose:s,width:440,children:(0,n.jsxs)("div",{className:"base-modal__content base-modal__content--centered",children:[(0,n.jsx)("p",{children:"External links are disabled in trial accounts."}),(0,n.jsx)("div",{className:"base-modal__btns",children:(0,n.jsx)(Od,{inverted:!0,onClick:s,children:"OKAY"})})]})})})})};var m3=i(59288);class aI extends m3.Component{componentWillEnter(e){this.child&&this.child.componentWillEnter?this.child.componentWillEnter(e):e()}componentDidEnter(){this.child&&this.child.componentDidEnter&&this.child.componentDidEnter()}componentWillExit(e){this.child&&this.child.componentWillExit?this.child.componentWillExit(e):e()}componentDidExit(){this.child&&this.child.componentDidExit&&this.child.componentDidExit()}render(){const{childProps:e,component:s}=this.props,o=Wo()("component",this.props);return(0,n.jsx)(ke.qh,{...o,render:({match:r})=>{const a=mt()(e,{match:r,ref:c=>this.child=c});return m3.createElement(s,a)}})}}const ya=aI;var E1=i(59288);class iI extends E1.Component{componentWillEnter(e){this.child&&this.child.componentWillEnter?this.child.componentWillEnter(e):e()}componentDidEnter(){this.child&&this.child.componentDidEnter&&this.child.componentDidEnter()}componentWillExit(e){this.child&&this.child.componentWillExit?this.child.componentWillExit(e):e()}componentDidExit(){this.child&&this.child.componentDidExit&&this.child.componentDidExit()}render(){const{children:e}=this.props,s=Wo()("children",this.props);return(0,n.jsx)(ke.dO,{...s,children:e&&E1.Children.map(e,o=>o!==null&&E1.cloneElement(o,{ref:r=>this.child=r}))})}}const p3=iI;var Md=i(59288);class T1 extends Md.Component{nodeRef=Md.createRef();constructor(e){super(e),this.handleTransition=this.handleTransition.bind(this),this.onEnter=this.onEnter.bind(this),this.onEntered=this.onEntered.bind(this),this.onExit=this.onExit.bind(this),this.onExited=this.onExited.bind(this)}handleTransition(e){const s=this.transitionState;s==="entering"?this.onEnter(e):s==="exiting"&&this.onExit(e)}onEnter(e){const s=this.nodeRef.current;s&&s.componentWillEnter?s.componentWillEnter(e):e()}onEntered(){const e=this.nodeRef.current;e&&e.componentDidEnter&&e.componentDidEnter()}onExit(e){const s=this.nodeRef.current;s&&s.componentWillExit?s.componentWillExit(e):e()}onExited(){const e=this.nodeRef.current;e&&e.componentDidExit&&e.componentDidExit()}render(){const{children:e}=this.props;return(0,n.jsx)(ys.eB,{addEndListener:this.handleTransition,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0,nodeRef:this.nodeRef,...this.props,children:s=>(this.transitionState=s,e&&Md.cloneElement(Md.Children.only(e),{ref:this.nodeRef}))})}}const Ri=J("cover");function cI(){const{categories:t}=(0,Me.DX)();return!Array.isArray(t)||t.length===0?null:(0,n.jsxs)("section",{className:Ri("categories-section"),children:[(0,n.jsx)("h2",{className:Ri("categories-title"),children:"Topics"}),(0,n.jsx)("ul",{className:Ri("categories-list"),role:"list",children:t.map(e=>(0,n.jsxs)("li",{className:Ri("categories-item"),role:"listitem",children:[(0,n.jsx)(hE,{className:Ri("categories-icon")}),(0,n.jsx)("span",{className:Ri("categories-item-wrap"),children:e})]},e))})]})}const lI=hi("CoverCompletedInformation"),dI=hi("CoverDueDate"),uI=hi("CoverRequirements"),hI=J("cover"),mI=t=>{const{courseId:e,coursePartnerContent:s,hasPartnerContent:o,publishedAt:r,tenantId:a}=t;return o?(0,n.jsx)(rd,{type:"partner-content",children:(0,n.jsx)(n2,{courseId:e,partnerContent:s,publishedAt:r,tenantId:a})}):null},pI=Dt("CoverCourseInfo",t=>{const{courseId:e,coursePartnerContent:s,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:c}=t,d=hI("details-content-aside",{logo:o});return(0,n.jsxs)("div",{className:d,children:[ye.BI&&(0,n.jsx)(w0,{}),(0,n.jsx)(mI,{courseId:e,coursePartnerContent:s,hasPartnerContent:r,publishedAt:a,tenantId:c}),ye.BI&&!r&&(0,n.jsx)(N9,{}),ye.BI&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(uI,{}),(0,n.jsx)(dI,{}),(0,n.jsx)(lI,{}),(0,n.jsx)(cI,{})]})]})}),fI=J("cover"),gI=Dt("CoverDescription",()=>{const t=(0,Me.DX)(),{navigation:e}=t,s=(0,It.QQ)(t.description),o=e?"description":"description-no-outline";if(!s)return null;const r=ci("description"),a=(0,_s.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":r};return(0,n.jsx)("div",{...a,children:(0,n.jsx)(rd,{type:o,children:(0,n.jsx)(Nt,{className:fI("details-content-description"),value:y0(s)},"text")})})}),f3=J("cover"),vI=({className:t=f3("details-logo"),imageClassName:e=f3("details-logo-image")})=>{const s=(0,Me.DX)()??{},o=(0,It.QQ)(s.media)?.image??{},{height:r,key:a,width:c,scalar:d=$e.C_.SMALL.value}=o,l={width:c*d,height:r*d};if(!a)return null;const u=(0,rs.ME)(o);return(0,n.jsx)("div",{className:t,children:(0,n.jsx)("img",{className:e,src:u,width:l.width,height:l.height,alt:""})})},CI=(t,e)=>{const s=jt()(["lessons",e],t),o=Ye()(0,["percentComplete"],s),r=jt()(["passed"],s);return{isComplete:jt()(["isComplete"],s),percentComplete:o,passedQuiz:r}};var Oi=i(98228),xI=i(2353),ps=i.n(xI),EI=i(3638),hn=i.n(EI);class Gce extends ie().Component{static propTypes={fill:A().string,height:A().number,type:A().string,width:A().number};static get defaultProps(){return{fill:"#000",height:56,type:"bullet",width:56}}render(){const{type:e,fill:s,width:o,height:r}=this.props,c={className:M()("lesson-icon",`lesson-icon--${e}`),height:r,viewBox:`0 0 ${o} ${r}`,width:o},g=Rs()([[ps()("embed"),We()("M15.266 48a7.275 7.275 0 0 1-5.146-12.426l6.35-6.352a7.274 7.274 0 0 1 8.364-1.382l-.607 1.232a5.9 5.9 0 0 0-6.784 1.12l-6.35 6.352a5.9 5.9 0 0 0 8.35 8.35l6.35-6.35a5.942 5.942 0 0 0 1.22-6.578l1.254-.558a7.323 7.323 0 0 1-1.5 8.107l-6.35 6.352A7.257 7.257 0 0 1 15.267 48zm19.1-19.1a7.264 7.264 0 0 1-3.216-.75l.607-1.232a5.9 5.9 0 0 0 6.784-1.12l6.353-6.352a5.9 5.9 0 0 0-8.35-8.35l-6.35 6.352a5.94 5.94 0 0 0-1.22 6.577l-1.255.56a7.322 7.322 0 0 1 1.5-8.108l6.35-6.352a7.278 7.278 0 0 1 10.298 10.288l-6.35 6.35a7.273 7.273 0 0 1-5.148 2.137zm-15.183 8.875l-.97-.975L36.8 18.213l.97.97z")],[ps()("map"),We()("M28.5 48l-.51-.72C27.458 46.53 15 28.837 15 21.57a13.5 13.5 0 1 1 27 0c0 7.266-12.46 24.958-12.99 25.707zm0-38.74a12.3 12.3 0 0 0-12.25 12.31c0 6.07 9.87 20.785 12.25 24.243 2.378-3.458 12.248-18.173 12.248-24.243A12.3 12.3 0 0 0 28.5 9.26zm0 18.257a5.862 5.862 0 1 1 5.83-5.862 5.853 5.853 0 0 1-5.83 5.86zm0-10.464a4.6 4.6 0 1 0 4.58 4.6 4.6 4.6 0 0 0-4.58-4.6z")],[ps()("process"),We()("M28.5 47.21a19.663 19.663 0 0 1-11.19-3.473l.784-1.1A18.364 18.364 0 0 0 34.37 44.9a17.84 17.84 0 0 0 12.263-16.85 17.505 17.505 0 0 0-.982-5.77l-.02-.057 1.296-.435.018.053A18.835 18.835 0 0 1 48 28.05a19.187 19.187 0 0 1-13.186 18.124A19.776 19.776 0 0 1 28.5 47.21zM10.065 34.28l.647-.215-.653.2A18.836 18.836 0 0 1 9 28.048 19.186 19.186 0 0 1 22.186 9.926a19.752 19.752 0 0 1 17.478 2.418l-.782 1.1A18.363 18.363 0 0 0 22.63 11.2a17.84 17.84 0 0 0-12.263 16.848 17.5 17.5 0 0 0 .982 5.77l-.638.246zM19.85 50l-3.6-7.62 8.483-1.062.167 1.332-6.627.83 2.816 5.954zm12.4-35.482l-.127-1.337 6.652-.612-2.612-6.042L37.423 6l3.343 7.733z")],[ps()("sorting"),We()("M25.86 48H8V30.23h17.86V48zM9.445 46.56h14.967V31.67H9.445v14.89zM25.86 25.77H8V8h17.86v17.77zM9.445 24.33h14.967V9.44H9.445v14.89zM48 48H30.134V30.23H48V48zm-16.42-1.44h14.97V31.67H31.58v14.89zM48 25.77H30.134V8H48v17.77zm-16.42-1.44h14.97V9.44H31.58v14.89z")],[ps()("timeline"),We()("M12.075 32a3.5 3.5 0 1 1 3.4-3.5 3.457 3.457 0 0 1-3.4 3.5zm0-5.63a2.13 2.13 0 1 0 2.07 2.13 2.1 2.1 0 0 0-2.07-2.13zM28.5 32a3.5 3.5 0 1 1 3.4-3.5 3.457 3.457 0 0 1-3.4 3.5zm0-5.63a2.13 2.13 0 1 0 2.07 2.13 2.1 2.1 0 0 0-2.07-2.13zM44.924 32a3.5 3.5 0 1 1 3.4-3.5 3.457 3.457 0 0 1-3.4 3.5zm0-5.63a2.13 2.13 0 1 0 2.07 2.13 2.1 2.1 0 0 0-2.07-2.13zM9.34 29.187H0v-1.372h9.34v1.372zm47.66 0h-9.34v-1.372H57v1.372zm-14.957 0H31.236v-1.372h10.808v1.372zm-16.614 0H14.954v-1.372H25.43v1.372z")],[ps()("video"),We()("M1.592 16.973H0V8h8.885v1.613H1.592v7.36zm54.4 0H54.4v-7.36h-7.29V8H56v8.968zM56 48h-8.89v-1.613h7.29v-7.36H56V48zM8.885 48H0v-8.973h1.592v7.36h7.293V48z")],[hn(),We()("M24 28a4 4 0 1 0 8 0 4 4 0 1 0-8 0")]]);return(0,n.jsx)("svg",{...c,children:(0,n.jsx)("path",{fill:s,d:g(e)})})}}function TI({icon:t,...e}){switch(t){case $e.xA.ARTICLE:return(0,n.jsx)(_C,{...e});case $e.xA.INTERACTION:return(0,n.jsx)(p4,{...e});case $e.xA.QUIZ:return(0,n.jsx)(d4,{...e});case $e.xA.VIDEO:return(0,n.jsx)(f4,{...e});default:return(0,n.jsx)("i",{className:"icon icon-Master-02"})}}var tl=i(94267);function Go(){return(0,ke.W5)("/lessons/:currentLessonId")?.params?.currentLessonId}var pr=i(76135);const SI=Dt("LessonProgressGraphic");function Dd({canComplete:t,id:e,isDark:s,isEnabled:o,isTooltipVisible:r,onHideTooltip:a,onShowTooltip:c,scope:d}){const{color:l,navigationStyle:u}=Mt(),h=De(e),p=Go(),f=$l(e),g=Ql(e),v=Dr(e),C=(0,ze.useLabelsMap)(),x=v?.type!=null,S=h?.isComplete,E=e===p,b=h?.percentComplete??0,L=(0,m.useCallback)(()=>{(0,X.JD)((0,pr.eQ)(e))},[e]),I=(0,m.useCallback)(()=>{(0,X.JD)((0,pr.ss)(e))},[e]);return(0,n.jsx)(d2,{canComplete:t,color:l,hasRestriction:x,isComplete:S,isCurrentLesson:E,isDark:s,isEnabled:o,isFailed:f,isPassed:g,isTooltipVisible:r,navigationStyle:u,onHideTooltip:a,onMarkComplete:L,onMarkReset:I,onShowTooltip:c,percentComplete:b,progressGraphic:SI,scope:d,labels:C})}const LI=J("overview-list-item");function bI({className:t,id:e,last:s}){const o=(0,Oi.W)(),r=Go(),{color:a,isLegacyCourse:c,navigationStyle:d,theme:l}=Mt(),{accentContrast:u}=l,{icon:h,title:p}=Co(e)??{},f=Us(p),g=De(e),v=$l(e),C=Ql(e),x=Dr(e),S=(0,ze.useLabelsMap)(),E=(0,_s.uW)(p)?{"data-l10n-id":p.l10nId}:{"data-change-path":Sp(e,"title")},b=g?.isComplete,L=g?.percentComplete??0,I=x?.type!=null,[N,R]=(0,m.useState)(!1),j=(0,m.useCallback)(()=>R(!0),[]),O=(0,m.useCallback)(()=>R(!1),[]),B=M()("overview-list__li",{"overview-list__li--last":s}),_=M()(t,"overview-list-item"),k=(0,m.useCallback)(te=>{const{currentTarget:{hash:F}}=te;te.preventDefault(),tl.Ay.Events.scrollEvent.register("end",()=>{o.push(F.slice(1)),tl.Ay.Events.scrollEvent.remove("end")}),tl.Ay.animateScroll.scrollTo(0,{containerId:"overview"})},[o]);return(0,n.jsx)("li",{...E,className:B,role:"listitem",children:(0,n.jsx)(Zc,{className:_,isTooltipEnabled:!0,lessonId:e,onBlur:O,onClick:k,onHideProgressTooltip:O,onShowProgressTooltip:j,tooltipClassName:"overview-list-item-tooltip",showProgressDelay:25,children:(0,n.jsx)(NI,{color:a,accentContrast:u,hasRestriction:I,isComplete:b,isCurrentLesson:e===r,isFailed:v,isLegacyCourse:c,isPassed:C,isTooltipVisible:N,lessonId:e,lessonIcon:h,lessonTitle:f,navigationStyle:d,onHideTooltip:O,onShowTooltip:j,percentComplete:L,progressGraphic:yI,scope:$e.by.COVER,labels:S})})})}const yI=Dt("LessonProgressGraphic");function II({isTooltipVisible:t,lessonIcon:e,lessonId:s,lessonTitle:o,onHideTooltip:r,onShowTooltip:a,scope:c}){const d=LI("progress-circle");return(0,n.jsxs)("div",{className:d,children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"overview-list-item__icon",children:(0,n.jsx)(TI,{icon:e})}),(0,n.jsx)("span",{className:"overview-list-item__title",children:o}),(0,n.jsx)(Dd,{canComplete:!1,id:s,isDark:!1,isEnabled:!0,isTooltipVisible:t,onHideTooltip:r,onShowTooltip:a,scope:c})]})}const NI=Dt("OverviewListItemLinkContent",II),jI=({value:t,fallback:e})=>{const s=(0,It.QQ)(t),o=(0,Pt.pP)(t);return e?(0,n.jsx)("span",{"data-l10n-id":o,children:s||e}):(0,n.jsx)("span",{"data-l10n-id":o,children:s})};function AI({value:t,children:e}){const s=(0,It.QQ)(t);return e(s)}const wn=jI,RI=J("overview-list"),OI=t=>t.reduce((e,s)=>(s.type==="section"?e.push([s]):e[e.length-1]?e[e.length-1].push(s):e.push([s]),e),[]),PI=Dt("OverviewListSectionTitle",({className:t="",...e})=>{const s=Ps()(["Default"],e);return(0,n.jsx)("h2",{...s,className:`${t} overview-list__section-title`})}),MI=({courseProgress:t,lessons:e})=>{const s=(0,ze.useLabelsMap)(),o=OI(e);return(0,n.jsx)("nav",{"aria-label":s?.a11yRegionNavOverview,className:"overview-list",children:o.map((r,a)=>{const[c={},...d]=r,{title:l,type:u}=c,h=u==="section",p=h?d:r,f=RI("list",{sectionless:!h});return(0,n.jsxs)("section",{children:[h&&l&&(0,n.jsx)(PI,{children:(0,n.jsx)(wn,{value:l})}),(0,n.jsx)("ol",{className:f,role:"list",children:p.map((g,v)=>{const{passedQuiz:C}=CI(t,g.id);return(0,n.jsx)(bI,{id:g.id,last:p.length>1&&v===p.length-1,passedQuiz:C},g.id)})})]},a)})})};function DI(t){const e=Ut(t),s=cr(t),o=jc(t),r=Mn({course:e,courseProgress:s});return{course:e,courseProgress:s,lessons:o,restrictingQuiz:r}}const kI=(0,m.memo)((0,X.Ng)(DI)(MI));function wI(t){return t?.partnerContent?.content??{}}function S1(){return(0,X.d4)(t=>wI(t))}const BI=t=>Object.values($e.C_).find(e=>e.value==t);function _I(t){return(0,m.useMemo)(()=>BI(t)??$e.C_.SMALL,[t])?.label.toLowerCase()}const Pi=J("cover"),UI=Dt("CoverDetails",({reverseColumns:t})=>{const e=Xs(1200),{description:s,id:o,media:r,navigation:a,partnerContentId:c,publishedAt:d,selectedAuthorId:l,tenantId:u}=Mt(),h=S1(),p=qe()(Ue()("id",l),h),f=!!c&&p,g=Us(r)?.image,v=!Yt()(g),C=!s||!a,x=!s&&!a,S=!!(f||ye.BI),E=Pi("details",{"rise-com":ye.BI,"rise-com-authoring":ye.BI&&!d}),b=Pi("details-content-wrap",{columns:S,logo:v}),L=Pi("details-content",{"no-description-or-outline":C}),I=Pi("details-logo",{centered:x,"no-description-or-outline":C,"has-partner-content":!!c}),N=S&&(0,n.jsx)(pI,{courseId:o,coursePartnerContent:p,hasLogo:v,hasPartnerContent:f,publishedAt:d,tenantId:u}),R=_I(g?.scalar),j=Pi("details-logo-image",{[R]:!0}),O=Pi("details-description-outline");return(0,n.jsx)("section",{className:E,children:(0,n.jsxs)("div",{className:b,children:[!e&&t&&N,(0,n.jsxs)("div",{className:L,children:[(0,n.jsx)(vI,{className:I,imageClassName:j}),(0,n.jsxs)("div",{className:O,children:[s&&(0,n.jsx)(gI,{}),e&&N,a&&(0,n.jsx)(rd,{type:"outline",children:(0,n.jsx)(kI,{})})]})]}),!e&&!t&&N]})})}),HI=Dt("CoverHeader"),FI=Dt("CoverLayout");var Ia=i(13082),zI=i(16832),sl=i(86145);const VI=new Intl.DisplayNames(["en"],{type:"language",fallback:"code"}),kd=t=>{try{return VI.of(t)}catch(e){return console.warn(`Language ${t} invalid`,e),t}},Mi=J("locale-selector"),L1=()=>{const t=(0,ke.zy)(),e=(0,Me.DX)(),s=(0,It.bs)(),o=Us(e.title),{currentLocale:r,setCurrentLocale:a}=(0,xs.nY)(),c=(0,Me.vU)(),[d,l]=(0,m.useState)(!1),u=(s?.length||0)>1,h=(0,m.useCallback)(g=>{(0,de.xS)(g),a(g)},[a]);(0,m.useEffect)(()=>{if(!s||d)return;if(s.length===1){h(s[0]),l(!0);return}const g=(0,de.y4)(void 0),v=(0,de.JK)()??"";if(v!==""){h(v),l(!0);return}g?.[zI.WY]==null&&v===""||(0,X.JD)((0,sl.Wp)(!1));const x=(navigator.language??"en-US").toLowerCase(),S=s.find(E=>E.toLowerCase()===x);h(S?x:s[0]),l(!0)},[s,t,h,d]);const p=g=>{g.preventDefault();const v=g.target.value;h(v)},f=()=>{(0,X.JD)((0,sl.Wp)(!1))};return!s||!u?null:(0,n.jsx)(ys.B1,{classNames:"modal",timeout:400,children:(0,n.jsx)(x1,{disableCloseOnOverlayClick:!0,hideCloseButton:!0,hideHeader:!0,onClose:()=>(0,X.JD)((0,sl.Wp)(!1)),useTopLayer:!1,className:Mi("modal"),children:(0,n.jsxs)("div",{className:Mi("container"),children:[(0,n.jsx)("div",{className:Mi("heading"),children:c.l10nChooseLanguage}),(0,n.jsx)("div",{className:Mi("course-title"),children:o}),(0,n.jsx)("div",{className:Mi("selector"),children:(0,n.jsx)("select",{onChange:p,value:r,children:s.map(g=>(0,n.jsx)("option",{value:g,children:kd(g)},g))})}),(0,n.jsx)("div",{className:Mi("footer"),children:(0,n.jsx)(Ia.ZH,{onClick:f,size:"xl",children:c.l10nChooseLanguageContinue})})]})})})},WI=J("cover-container");function GI({labels:t,isEntering:e,isExiting:s}){const o=t?.overviewPageTitleSuffix,r=Mo();return(0,n.jsxs)(Ta,{title:Yc(`${r} - ${o}`),children:[(0,n.jsx)("main",{children:(0,n.jsx)("div",{className:WI({entering:e,exiting:s}),children:(0,n.jsxs)(FI,{children:[(0,n.jsx)(HI,{}),(0,n.jsx)(UI,{})]})})}),(0,n.jsx)(L1,{})]})}class g3 extends m.Component{state={isEntering:!1,isExiting:!1};componentDidMount(){this.props.didNavigate&&document.querySelector("h1")?.focus({preventScroll:!0})}componentDidEnter(){this.setState({isEntering:!1})}componentWillEnter(e){this.setState({isEntering:!0},()=>{this.willEnterTimeout=setTimeout(e,P.WQ)})}componentWillExit(e){this.setState({isExiting:!0},()=>{this.willExitTimeout=setTimeout(e,P.WQ)})}componentWillUnmount(){clearTimeout(this.willEnterTimeout),clearTimeout(this.willExitTimeout)}render(){return(0,n.jsx)(GI,{...this.props,...this.state})}}var v3=i(62013),KI=i(19656),b1=i.n(KI),$I=i(41558),Nn=i.n($I);const QI=t=>{let e="";const s=(o,r)=>{if(r.type==="section")return e=r.id,r.children=[],ot()(o,[r]);if(e){r.sectionId=e;const a=Ts()(Ue()("id",e))(o);return o[a].children=ot()(o[a].children,[r]),o}return ot()(o,[r])};return Nn()(s,[],t)},ZI=(t,e)=>{const s=Se()(qe()(Ue()("id",e)),Pe()("children")),o=Se()(qe()(s),Qt()(Ue()("type","section")),QI)(t);return o?[o.id]:[]},YI=t=>Ts()(Ue()("id",t)),XI=kn()(Ue()("family","continue"),Ue()("variant","continue")),C3=Se()(b1()(XI),tt()([],"items"));var x3=i(96476);function JI(t){switch(t){case"a":return 46.5;default:return 7.6}}function qI(t){switch(t){case"d":return 2;default:return 3.2}}function eN(t){switch(t){case"a":return 30;case"c":case"d":return 92;case"note":default:return 76}}function E3(t){switch(t){case"b":return 95;case"background":return 52;default:return 76}}function T3(t){switch(t){case"a":case"b":case"carousel":default:return 6.4;case"c":return 18.6;case"d":return 8;case"background":return 6}}function tN(t){switch(t){case"dark":case"light":default:return .3}}function Yce(t){switch(t){case 3:return"three";case 4:return"four";case 2:default:return"two"}}function sN(t){switch(t){case"light":return"#fff";case"dark":default:return"#000"}}function Xce(t){switch(t){case"a":case"b":default:return[6.4,9.6,16];case"c":return[10,14.8,18.6];case"d":return[8,12,16];case"background":return[6,9.6,16];case"carousel":return[6.4,10,16]}}function Jce(t){switch(t){case"b":return[52,76,95];default:return[52,76,92]}}function qce(t){switch(t){case"a":return[30,76,92];default:return[52,76,92]}}function ele(t){switch(t){case"d":return[2,4.8,5.6];default:return[3.2,4.8,5.6]}}function tle(t){switch(t){case"a":return[46.5,78,120];default:return[7.6,20,32]}}function nN(t){switch(t){case 3:return"sm";case 10:return"lg";case 6:default:return"med"}}function S3(t,e){switch(e){case 6:case 6.4:case 8:default:return"sm";case 9.6:case 12:case 14.8:return"med";case 16:case 18.6:return"lg";case 10:return t==="c"?"sm":"med"}}function oN(t){switch(t){case 52:return"sm";case 76:return"med";case 92:default:return"lg"}}function L3(t){switch(t){case 52:return"sm";case 76:return"med";case 92:case 95:default:return"lg"}}function b3(t){switch(t){case 4:return"med";case 6:return"lg";case 2:default:return"sm"}}function y1(t){switch(t){case 52:return"sm";case 92:return"lg";case 76:default:return"med"}}function rN(t){switch(t){case 30:case 52:return"sm";case 92:return"lg";case 76:default:return"med"}}function aN(t){switch(t){case 4.8:return"med";case 5.6:return"lg";case 2:case 3.2:default:return"sm"}}function iN(t){switch(t){case 20:case 78:return"med";case 32:case 120:return"lg";case 7.6:case 46.5:default:return"sm"}}function cN(t){switch(t){case 1:return"sm";case 3:return"lg";case 1.5:default:return"med"}}function lN(t){switch(t){case 3.2:return"med";case 5.6:return"lg";case .8:default:return"sm"}}const Ms=({value:t,className:e,allowTabNavigation:s=!0,tagName:o,id:r})=>{const{value:a}=Ap((0,It.QQ)(t));return a?(0,n.jsx)(Nt,{className:e,value:t,allowTabNavigation:s,tagName:o,id:r}):null},dN=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),I1=(t,e)=>dN.test(e)?e:t;var N1=i(41021);function wd(){const t=Dn(),e=t?.background,o=t?.settings?.backgroundType,r=(0,It.QQ)(e?.media)?.image;return o===P.xj.IMAGE?r:null}function uN(){const t=wd();return(0,gn.I6)(t?.alt)}function hN(){const t=wd();if(!t)return null;const{alpha:e,overlayColor:s=P.df.DARK}=t,o=(0,rs.ME)(t),r=s===P.df.LIGHT?P.qH:P.KJ;return(0,N1.A)({alpha:e,color:r,url:o})}function jn(t){const{contrast:e=P.Em.AUTO,backgroundColor:s="#fff"}=t,o=I1("#fff",s),r=(0,ct.xD)(o);return e===P.Em.DARK||e===P.Em.AUTO&&r===P.Em.DARK?$e.S6.DARK:$e.S6.LIGHT}function mN(){const t=Dn(),e=t?.family,s=t?.variant,r=rn()?.cardMode;return $T(e,s)&&r?.toLowerCase()}function pN(){const t=qn(),e=t?(0,ct.XC)(t):ct.lL.LIGHT;return wc()(e.toLowerCase())}function fN(){return rn()?.backgroundType?.toLowerCase()}function gN(){const t=(0,Me.DX)(),e=t?.theme?.accentContrast,s=rn(),o=qn(),r=Dn(),a=r?.family,c=r?.variant,{accentColor:d,backgroundType:l,customBackgroundColorContrast:u}=s,h=(0,ct.cP)(o)?P.Em.LIGHT:P.Em.DARK,p=!u&&(a==="image"||a==="chart"||c==="sorting"),f=u??P.Em.DARK,g=p?h:f,v=l===P.xj.ACCENT||l===P.xj.COLOR,C=d||t?.theme?.colorAccent,x=l===P.xj.ACCENT?C:o,S=l===P.xj.ACCENT?e:g,E=jn({backgroundColor:x,contrast:S});return v&&E==$e.S6.LIGHT}function vN(){const{backgroundColor:t,customBackgroundColorContrast:e}=rn(),s=Dn(),o=(0,ct.cP)(t)?P.Em.LIGHT:P.Em.DARK,r=!e&&(s?.family==="image"||s?.family==="chart"||s?.variant==="sorting"),a=e??P.Em.DARK;return jn({backgroundColor:t,contrast:r?o:a})}function CN(){const t=wd(),e=!!t,s=t?.overlayColor;return e&&s===P.df.LIGHT}function xN(){const t=Dn(),e=t?.settings?.backgroundType,s=!t?.settings?.customBackgroundColorContrast;return e===null||s}function EN(t,e){const{className:s="",tag:o="div",style:r={},...a}=t,{backgroundColor:c}=rn(),d=vN(),l=d===$e.S6.DARK?$e.S6.LIGHT:$e.S6.DARK;return c!==""&&Object.assign(r,{"--color-background-contrast":d,"--color-background-contrast-complementary":l,"--color-background-contrast-rgb":(0,Ai.A)(d)?.slice(0,3)}),(0,n.jsx)(o,{...a,className:s,ref:e,style:r})}const y3=(0,m.forwardRef)(EN),j1=t=>`${t}rem`;function TN(){const t=rn(),e=j1(t?.paddingBottom),s=j1(t?.paddingTop);return{paddingBottom:e,paddingTop:s}}function nle(){const t=useBlockSettings();return j1(t?.width)}const SN=Ps()(["settings"]),I3=J("block-wrapper"),LN=J("bg"),bN=(t,e)=>{const{children:s,className:o,defaultBackgroundColor:r="",style:a,tag:c,type:d,...l}=t,u=Dn(),{paddingBottom:h,paddingTop:p}=TN(),f=pN(),g=mN(),v=fN(),C=gN(),x=CN(),S=hN(),E=uN(),b=I1(r,qn()),L=b||"transparent",I=u?.className,N={...a,...S,"--color-background":b,boxShadow:`0px 1px 0px ${L} `,paddingBottom:h,paddingTop:p},R=M()(o,{"bg--legacy-background":xN(),[`block-${d}`]:!!d}),j=LN({card:g,range:f,type:v,"overlay-light":x,"contrast-light":C}),O=I?I3({}).mix(j).mix(I):I3({}).mix(j),B=[R,O.toString()].join(" ");return(0,n.jsxs)(y3,{...SN(l),className:B,ref:e,style:N,tag:c,children:[(0,n.jsx)("span",{"aria-label":E,role:(0,gn.Vx)(E)}),s]})},qt=(0,m.forwardRef)(bN),An=hi("ImageEagerOrLazy");var yN=i(2216),ole=i(29308);function N3(t){return(0,n.jsx)(yN.A,{IconUnzoom:NN,IconZoom:IN,...t})}const IN=()=>(0,n.jsx)(Lt,{name:"arrows-two-from-center"}),NN=()=>(0,n.jsx)(Lt,{name:"arrows-two-to-center"}),j3=J("block-text");function jN({children:t,item:e,labels:s}){const o="media"in e?e.media:void 0,r=(0,It.QQ)(o)?.image,a=(0,rs.ME)(r),c=(0,gn.Ll)(r?.alt??""),l=Dn()?.settings,u=l?.images,h=l?.zoomOnClick,p=(0,m.useRef)(void 0);let f=(0,n.jsx)(An,{alt:c,ref:p,src:a,"data-l10n-id":(0,Pt.pP)(o)});return h&&(f=(0,n.jsx)(N3,{a11yNameButtonUnzoom:s?.a11yUnzoomImage,a11yNameButtonZoom:s?.a11yZoomImage,children:f})),(0,n.jsxs)("div",{className:j3("col"),children:[u&&r&&(0,n.jsx)("div",{className:j3("image"),children:f}),t]})}var AN=i(31316),A1=i.n(AN),RN=i(97086),R1=i(64653);const ON=J("portal-tooltip"),an={LEFT:"LEFT",RIGHT:"RIGHT",ABOVE:"ABOVE",BELOW:"BELOW"},PN=(t,e,s)=>{const o=t.getBoundingClientRect(),r=e.getBoundingClientRect(),a=window.visualViewport;let c=s;(c===an.ABOVE||c===an.BELOW)&&(o.bottom-r.height<0&&(c=an.BELOW),r.height+o.top>a.height&&(c=an.ABOVE)),(c===an.LEFT||c===an.RIGHT)&&(r.left<0&&(c=an.RIGHT),r.width+o.left>a.width&&(c=an.LEFT));const d={left:0,right:0,top:0,bottom:0};c===an.ABOVE&&(d.top=o.top-r.height-25),c===an.BELOW&&(d.top=o.top+o.height),c===an.RIGHT&&(d.left=o.left+o.width+70),c===an.LEFT&&(d.left=o.left-r.width-25),(c===an.LEFT||c===an.RIGHT)&&(d.top=o.top-o.height/2),(c===an.ABOVE||c===an.BELOW)&&(d.left=o.left+o.width/2);const l=o.left+o.width/2,u=r.width/2+l>a.width,h=r.width/2>l;u?e.classList.add("portal-tooltip__tooltip--offset-right"):h&&e.classList.add("portal-tooltip__tooltip--offset-left"),Object.keys(d).map(p=>d[p]===0?e.style.removeProperty(p):e.style.setProperty(p,`${d[p]}px`)),e.classList.add(`portal-tooltip__tooltip--${c.toLowerCase()}`)};function MN({children:t,className:e,direction:s=an.ABOVE,elementFocused:o,exitAnimation:r=!0,message:a,style:c}){const[d,l]=(0,m.useState)(!1),[u]=(0,m.useState)(!1),h=(0,m.useRef)(null),p=(0,m.useRef)(null),[f,g]=(0,RN.A)(()=>t),v=(0,m.useCallback)(()=>l(!0),[l]),C=(0,m.useCallback)(()=>l(!1),[l]);return(0,m.useEffect)(()=>(document.addEventListener("scroll",v),document.addEventListener("scrollend",C),()=>{document.removeEventListener("scroll",v),document.removeEventListener("scrollend",C)})),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:h,children:f}),a&&(g||u||o)&&!d&&(0,n.jsx)(ys.B1,{classNames:"portal-tooltip__tooltip",exit:r,timeout:200,children:(0,n.jsx)(DN,{buttonRef:h,className:e,direction:s,elementFocused:o,hovering:g,message:a,portalRef:p,style:c})})]})}function DN({buttonRef:t,className:e,direction:s,elementFocused:o,hovering:r,message:a,portalRef:c,style:d}){const l=(0,m.useCallback)(()=>PN(t.current,c.current,s),[t,s,c]),u=(0,m.useCallback)(()=>{c.current&&l()},[c,l]),h=()=>{!r&&!o&&c.current&&(c.current.style=null)};return(0,R1.A)(u),(0,Yn.createPortal)((0,n.jsx)("div",{"aria-hidden":!r||!o,className:ON("tooltip").mix(e).toString(),onTransitionEnd:h,ref:c,style:d,children:a}),document.getElementById("portal"))}const nl=MN;var es=i(59288);const ol=es.createContext(null);function kN({children:t,className:e,isDisabled:s,onClose:o,onItemActiveChange:r,onOpen:a,onSelect:c,portalArgs:d,positionX:l="left",value:u}){const[h,p]=es.useState(null),f=(0,as.A)(h),[g,v]=es.useState(!1),C=(0,as.A)(g),[x,S]=es.useState(null),E=es.useRef(void 0),b=es.useRef(void 0),L=es.useRef(void 0),N=`select-${es.useId()}`,R=`${N}-content`,j=h?.id,O=es.useCallback(K=>{const Z=K.currentTarget;A3(Z)||(v(!1),p(Z),c(Z.getAttribute("data-value")),K.stopPropagation())},[c]),B=es.useCallback(K=>{p(K)},[]),_=es.useCallback(()=>{v(K=>!K)},[]),k=es.useCallback(()=>{const{left:K,top:Z}=q2({anchor:b.current,popover:L.current,positionX:l}),oe=window.getComputedStyle(b.current).direction==="rtl"?-K:K;S({transform:`translate3d(${oe}px, ${Z}px, 0)`,visibility:"visible",width:`${b.current?.offsetWidth}px`})},[l]),te=es.useCallback(K=>{const Z=Array.from(L.current?.querySelectorAll("[data-select-item]")??[]),xe=Z.length,fe=Z.findIndex(Ae=>Ae.getAttribute("data-select-item")==="current");let oe,we=fe+1;for(let Ae=0;Ae<xe;Ae++){we>=xe&&(we=0);const _e=Z[Ae];if(_e!=null&&!A3(_e)&&UN(_e,K)){oe=Ae;break}else we=xe-1}oe&&(p(Z[oe]),Z[oe]?.scrollIntoView({block:"center"}))},[]),F=es.useCallback(K=>{const Z=K.key;if(K.ctrlKey||K.metaKey)return;let xe=!1;const fe=Array.from(L.current?.querySelectorAll("[data-select-item]")??[]),oe=fe.findIndex(we=>we.getAttribute("data-select-item")==="current");if(g)if(Z.length===1&&Z!==" "&&!K.altKey&&!K.ctrlKey&&!K.metaKey)te(Z);else switch(Z){case" ":case"Enter":v(!1),fe[oe]!=null&&c(fe[oe].getAttribute("data-value")),xe=!0;break;case"Esc":case"Escape":v(!1),p(fe.find(we=>we.getAttribute("aria-selected")==="true")),xe=!0;break;case"ArrowUp":K.altKey?(v(!1),fe[oe]!=null&&c(fe[oe].getAttribute("data-value")??"")):oe>0&&(p(fe[oe-1]),fe[oe-1].scrollIntoView({block:"center"})),xe=!0;break;case"ArrowDown":oe<fe.length-1&&(p(fe[oe+1]),fe[oe+1].scrollIntoView({block:"center"})),xe=!0;break;case"Home":p(fe[0]),fe[0]?.scrollIntoView({block:"center"}),xe=!0;break;case"End":p(fe[fe.length-1]),fe[fe.length-1]?.scrollIntoView({block:"center"}),xe=!0;break;case"PageUp":p(fe[0]),fe[0]?.scrollIntoView({block:"center"}),xe=!0;break;case"PageDown":p(fe[fe.length-1]),fe[fe.length-1]?.scrollIntoView({block:"center"}),xe=!0;break;case"Tab":v(!1),fe[oe]!=null&&c(fe[oe].getAttribute("data-value"));break}else if(Z.length===1&&Z!==" "&&!K.altKey&&!K.ctrlKey&&!K.metaKey)v(!0),te(Z);else switch(Z){case" ":case"Enter":v(!0),xe=!0;break;case"ArrowUp":v(!0),p(fe[0]),xe=!0;break;case"ArrowDown":v(!0),xe=!0;break;case"Home":v(!0),p(fe[0]),xe=!0;break;case"End":v(!0),p(fe[fe.length-1]),xe=!0;break}xe&&(K.stopPropagation(),K.preventDefault())},[te,g,c]);return es.useEffect(()=>{const K=L.current?.querySelector('[data-select-item][aria-selected="true"]');p(K)},[]),es.useEffect(()=>{const K=L.current?.querySelector(`[data-select-item][data-value="${u}"]`);p(K)},[u]),es.useEffect(()=>{const K=Z=>{g&&E.current!=null&&L.current!=null&&!E.current.contains(Z.target)&&!L.current.contains(Z.target)&&v(!1)};return g?document.addEventListener("click",K):document.removeEventListener("click",K),()=>{document.removeEventListener("click",K)}},[g]),es.useEffect(()=>(g?window.addEventListener("resize",k):window.removeEventListener("resize",k),()=>{window.removeEventListener("resize",k)}),[k,g]),es.useEffect(()=>{const K=id(E.current);for(const Z of K)g?Z?.addEventListener("scroll",k,{passive:!0}):Z?.removeEventListener("scroll",k);return()=>{for(const Z of K)Z?.removeEventListener("scroll",k)}},[k,g]),es.useEffect(()=>{g?k():S(null)},[k,g]),es.useEffect(()=>{g&&f!=null&&f!==h&&r?.({value:h.getAttribute("data-value")})},[g,f,h,r]),es.useEffect(()=>{if(C&&!g)o?.();else if(!C&&g&&(a?.(),E.current)){const K=new CustomEvent("comboboxopen",{bubbles:!0,detail:{target:E.current}});E.current.dispatchEvent(K)}},[C,g,o,a]),es.useEffect(()=>{const K=Z=>{Z.detail.target!==E.current&&v(!1)};return document.addEventListener("comboboxopen",K),()=>{document.removeEventListener("comboboxopen",K)}},[]),(0,n.jsx)(ol.Provider,{value:{activeEl:h,htmlIdActiveDescendant:j,htmlIdBase:N,htmlIdContent:R,isExpanded:g,onItemClick:O,onItemHover:B,onTriggerClick:_,onTriggerKeyDown:F,portalArgs:d,refContent:L,refTrigger:b,selectedValue:u,styleContent:x},children:(0,n.jsx)("div",{"aria-owns":R,className:e,inert:s?!0:void 0,ref:E,children:t})})}function wN({children:t,className:e,labelledBy:s,as:o,...r}){const{htmlIdActiveDescendant:a,htmlIdContent:c,isExpanded:d,onTriggerClick:l,onTriggerKeyDown:u,refTrigger:h}=es.useContext(ol),p=!!o,f=o??"button";return(0,n.jsxs)(f,{"aria-activedescendant":a,"aria-controls":c,"aria-expanded":d,"aria-haspopup":"listbox","aria-labelledby":s,className:e,"data-select-trigger":p?void 0:"",onClick:l,onKeyDown:u,ref:h,role:"combobox",type:"button",...r,children:[(0,n.jsx)("span",{"data-select-trigger-text":"",children:t}),(0,n.jsx)("span",{"data-select-trigger-icon":"",children:d?(0,n.jsx)(Lt,{name:"chevron-up"}):(0,n.jsx)(Lt,{name:"chevron-down"})})]})}function BN({children:t,className:e,labelledBy:s,style:o={}}){const{htmlIdContent:r,isExpanded:a,portalArgs:c,refContent:d,styleContent:l}=es.useContext(ol);return Yn.createPortal((0,n.jsx)("div",{"aria-labelledby":s,className:e,"data-select-content":"",hidden:a?void 0:!0,id:r,ref:d,role:"listbox",style:{...l,...o},children:t}),kr(c))}function rle({children:t,className:e,labelText:s}){const{htmlIdBase:o}=es.useContext(ol),r=es.useId(),a=`${o}-group-label-${r}`;return jsxs("div",{"aria-labelledby":a,className:e,"data-select-group":"",role:"group",children:[jsx("div",{"data-select-group-label":"",id:a,role:"presentation",children:s}),t]})}function _N({children:t,className:e,labelledBy:s,isDisabled:o,value:r}){const{activeEl:a,htmlIdBase:c,onItemClick:d,onItemHover:l,selectedValue:u}=es.useContext(ol),h=es.useRef(void 0),p=es.useId(),f=h.current===a,g=r===u,v=`${c}-option-${p}`,C=es.useCallback(()=>{l(h.current)},[l]);return(0,n.jsxs)("div",{"aria-disabled":o,"aria-labelledby":s,"aria-selected":g,className:e,"data-select-item":f?"current":"","data-value":r,id:v,onClick:o?void 0:d,onMouseEnter:C,ref:h,role:"option",children:[t,g&&(0,n.jsx)("span",{"data-select-item-selected":"",children:(0,n.jsx)(Lt,{name:"check"})})]})}function ale({children:t}){return jsx("span",{"data-select-item-icon":"",children:t})}function ile({className:t}){return jsx("hr",{className:t,"data-select-separator":""})}function A3(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function UN(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const HN=[.5,.75,1,1.25,1.5,1.75,2].toReversed().map(t=>({value:t,label:`${t}x`})),O1=J("playback-speed-menu"),R3=({onFocus:t,onBlur:e,onMouseEnter:s,onMouseLeave:o,onChange:r,speed:a,triggerClassName:c=""})=>{const d=(0,$p.A)();return(0,n.jsxs)(kN,{className:O1(),onSelect:l=>r(parseFloat(l)),value:String(a),portalArgs:{id:"portal",childType:"dialog"},children:[(0,n.jsxs)(wN,{className:[O1("trigger"),c].join(" "),labelledBy:d,as:Ia.ZH,variant:"tertiary",shape:"square",size:"sm",onBlur:e,onFocus:t,onMouseEnter:s,onMouseLeave:o,children:[a,"x"]}),(0,n.jsx)(BN,{className:O1("content"),labelledBy:d,children:HN.map((l,u)=>(0,n.jsx)(_N,{value:String(l.value??""),children:l.label},u))})]})};var P1=i(72181);const FN=(0,he.action)(P1.l6),O3=(0,he.action)(P1.ju),rl=(0,he.action)(P1.Y8);var zN=i(60213),P3=i(36563),VN=i(21784);const WN=(0,P3._w)([zN.z]);function GN(){return"* "}const KN=new VN.K6({bulletList(t,e){t.renderList(e," ",GN)},orderedList(t,e){const s=e.attrs.order??1,o=String(s+e.childCount-1).length,r=t.repeat(" ",o+2);t.renderList(e,r,a=>{const c=String(s+a);return t.repeat(" ",o-c.length)+c+". "})},listItem(t,e){t.renderContent(e)},text(t,e){t.text(e.text)},math(t,e){typeof e.attrs.tex=="string"&&t.text(e.attrs.tex)}},{},{strict:!1});function fr(t){if(t==null)return t;const e=(0,P3.ui)(t,WN);return KN.serialize(e,{tightLists:!0})}const M3=(t,e,s)=>{if(t.variant==="audio"||t.family==="gallery"&&t.variant==="centered")return $N(t,e,s);if(t.variant==="flashcard"||t.variant==="stack")return QN(t,e,s);if(t.family==="image")return ZN(t,e,s);if(t.variant==="accordion"||t.variant==="labeledgraphic"||t.variant==="process"||t.variant==="tabs"||t.variant==="timeline")return YN(t,e,s);if(t.family==="list")return XN(t,e,s);if(t.family==="text")return qN(t,e,s);if(t.family==="impact")return ej(t,e,s)},$N=(t,e,{getL10nValue:s})=>fr(s(e.caption)),QN=(t,e,{getL10nValue:s,side:o="front"})=>{const r=e[o];return r.type==="description"?fr(s(r.description)):void 0},ZN=(t,e,{getL10nValue:s})=>{const o=t.variant==="text aside";return Bd([o&&"paragraph"in e&&fr(s(e.paragraph)),fr(s(e.caption))])},YN=(t,e,{getL10nValue:s})=>{const o=t.variant==="timeline"&&"date"in e&&s(e.date),r=s(e.title),a=fr(s(e.description));return Bd([o,r,a])},XN=(t,e,{getL10nValue:s})=>{if(Array.isArray(t.items)){const o=String(t.items.length).length,r=t.variant==="numbered";return Bd(t.items.map((a,c)=>(r?`${String(a.number||c+1)}. `.padStart(o+2," "):"* ")+fr(s(a.paragraph))))}},JN={"two column":2,"three column":3,"four column":4},qN=(t,e,{getL10nValue:s})=>{const o=t.variant?.includes("heading"),r=!["heading","subheading"].includes(t?.variant),a=JN[t?.variant]??1;return Bd(t.items.slice(0,a).flatMap(c=>[o&&"heading"in c&&fr(s(c.heading)),r&&"paragraph"in c&&fr(s(c.paragraph))]))};function Bd(t){return t.filter(Boolean).join(`

`)}const ej=(t,e,{getL10nValue:s})=>t.items.reduce((o,r)=>"paragraph"in r?o+(o.length>0?`
`:"")+fr(s(r.paragraph)):o,""),D3=(0,m.createContext)(void 0);function tj({aiEnabled:t=!1,aiWriterContext:e,children:s,lessonId:o,mode:r,showAssetLibraryDialog:a,hideAssetLibraryDialog:c,openTranscript:d,closeTranscript:l,removeMediaRecordType:u,removeItemMedia:h,uploadAudio:p}){const f=(0,It.gY)(),g=(0,Hs.y4)(),v=({item:L})=>{if(!L)return;const I="media"in L?f(L.media)?.audio?.transcript:void 0;return g(FN(I))},C=()=>g(O3()),x=(L,I,N)=>{const{id:R,media:j}=I;N||(N=`items:${L}/items:${I?.id}`),(0,_s.uW)(j)?g(u({l10n:j,type:"audio"})):g(h({itemId:R,lessonId:o,refs:N,type:"audio"}))},S=(L,I,N,R,j)=>{const O=(0,_s.uW)(j)?j:void 0;p({file:L,opts:{lessonId:o,refs:R,l10n:O,transcript:I,aiAudioSettings:N}})},E=(L,I,N)=>{c&&c(),S(L.detail.files[0],L.detail.transcription,L.detail.aiAudioSettings,I,N)},b=(L,I,N,R)=>{N||(N=`items:${L.id}/items:${I?.id}`);const j=L.variant==="flashcard"?M3(L,L.items?.find(B=>B.id===I.id),{getL10nValue:f,side:R}):M3(L,I,{getL10nValue:f,side:R}),O=f(I.media);a&&g(a({onInsertAudio:B=>E(B,N,I.media),initialSelectedTab:"ai-audio",initialAudioText:j,aiWriterContext:e,uploadTypes:["audio"],tabs:{"ai-audio":t,"record-audio":!0,"upload-audio":!0},initialData:{"ai-audio":O?.audio?.aiAudioSettings?{...O.audio.aiAudioSettings,audioUrl:O.audio.key?(0,ye.o1)(O.audio.key):void 0}:void 0}}))};return(0,n.jsx)(D3.Provider,{value:{lessonId:o,uploadAudio:p,mode:r,openTranscript:d||v,closeTranscript:l||C,showAssetLibraryDialog:a,hideAssetLibraryDialog:c,handleOpenMediaModal:b,handleDelete:x},children:s})}function _d(){const t=(0,m.useContext)(D3);return t||(console.warn("useMediaContext must be used within a MediaProvider"),{mode:"readonly",openTranscript:null,closeTranscript:null,lessonId:"",uploadAudio:null})}function k3(t){function e(s){const o=_d();return(0,n.jsx)(t,{...s,...o})}return e.displayName=`WithMediaContextWrapper(${t.name})`,e}const sj=(0,Hs.GF)(),M1=()=>sj(t=>t.transcriptPanel),Ud={container:"audio-player__actions",button:"audio-player__actions--button"},nj=({inert:t,playbackSpeed:e,transcript:s,onPlaybackChange:o,onDelete:r,onTranscriptClick:a,onTranscriptClose:c})=>{const{mode:d}=_d(),l=M1(),[u,h]=(0,m.useState)(!1),[p,f]=(0,m.useState)(!1),[g,v]=(0,m.useState)(!1),C=(0,m.useCallback)(()=>h(!0),[]),x=(0,m.useCallback)(()=>h(!1),[]),S=(0,m.useCallback)(()=>f(!0),[]),E=(0,m.useCallback)(()=>f(!1),[]),b=(0,m.useCallback)(()=>v(!0),[]),L=(0,m.useCallback)(()=>v(!1),[]),I=l?.transcript===s,N=I?"Close":d==="edit"?"Edit":"View";function R(){I?c?.():a?.()}return(0,n.jsxs)("div",{className:Ud.container,inert:t,children:[(0,n.jsx)(nl,{elementFocused:u,message:"Play speed",children:(0,n.jsx)(R3,{onChange:o,speed:e,triggerClassName:Ud.button,onFocus:C,onBlur:x})}),r&&(0,n.jsx)(nl,{elementFocused:p,message:"Remove audio",children:(0,n.jsx)(Ia.ZH,{icon:(0,n.jsx)(Lt,{name:"trash"}),className:Ud.button,layout:"icon",size:"sm",type:"button",variant:"tertiary",onClick:r,onMouseOver:S,onMouseOut:E,onFocus:S,onBlur:E})}),(d==="edit"||s)&&(0,n.jsx)(nl,{elementFocused:g,message:`${N} transcript`,style:{whiteSpace:"nowrap"},children:(0,n.jsx)(Ia.ZH,{icon:(0,n.jsx)(Lt,{name:"file-audio"}),className:Ud.button,onClick:R,onMouseOver:b,onMouseOut:L,onFocus:b,onBlur:L,layout:"icon",size:"sm",type:"button",variant:"tertiary","aria-label":`${N} transcript`})})]})};var oj=i(20571);const w3="change";class rj extends oj.EventEmitter{_isMuted;_isPlaying;_playerId;constructor(e){super(),this.setMaxListeners(e)}get isPlaying(){return this._isPlaying}set isPlaying(e){this._isPlaying=e,this.emit("change")}set playerId(e){this._playerId=e}get playerId(){return this._playerId}pause(){this.isPlaying=!1}get isMuted(){return this._isMuted}set isMuted(e){this._isMuted=e,this.emit("change")}mute(){this.isMuted=!1}addChangeListener(e){this.on(w3,e)}removeChangeListener(e){this.removeListener(w3,e)}}const at=new rj(1/0),B3=J("audio-player-icon"),Na=({x:t,width:e,height:s,y:o,pulseBaseHeight:r,pulseBaseY:a,pulseHeight:c,pulseY:d,delay:l="0s"})=>(0,n.jsx)("rect",{className:B3("bar"),x:t,width:e,height:s,y:o,rx:1,style:{"--base-height":`${s/10}rem`,"--base-y":`${o/10}rem`,"--pulse-base-height":r&&`${r/10}rem`,"--pulse-base-y":a&&`${a/10}rem`,"--pulse-height":`${c/10}rem`,"--pulse-y":`${d/10}rem`,"--delay":l}}),aj=({animating:t})=>(0,n.jsx)("span",{className:B3({animating:t}),children:(0,n.jsxs)("svg",{viewBox:"0 0 20 16",width:"20",height:"16",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,n.jsx)(Na,{x:0,width:2,height:2,y:7,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,delay:"0s"}),(0,n.jsx)(Na,{x:3,width:2,height:4,y:6,pulseBaseHeight:3,pulseBaseY:6.5,pulseHeight:8,pulseY:4,delay:"0.1s"}),(0,n.jsx)(Na,{x:6,width:2,height:10,y:3,pulseBaseHeight:8,pulseBaseY:4,pulseHeight:12,pulseY:2,delay:"0.2s"}),(0,n.jsx)(Na,{x:9,width:2,height:16,y:0,pulseBaseHeight:12,pulseBaseY:2,pulseHeight:16,pulseY:0,delay:"0.3s"}),(0,n.jsx)(Na,{x:12,width:2,height:8,y:4,pulseBaseHeight:6,pulseBaseY:5,pulseHeight:12,pulseY:2,delay:"0.4s"}),(0,n.jsx)(Na,{x:15,width:2,height:11,y:2.5,pulseBaseHeight:9,pulseBaseY:3.5,pulseHeight:15,pulseY:.5,delay:"0.5s"}),(0,n.jsx)(Na,{x:18,width:2,height:2,y:7,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,delay:"0.6s"})]})});var D1=i(91333),ts=i(59288);const Hd=ts.createContext(null);function ij({children:t,isDisabled:e,onClose:s,onOpen:o,onSelect:r,positionX:a="left"}){const[c,d]=ts.useState(!1),l=(0,as.A)(c),[u,h]=ts.useState(null),p=ts.useRef(void 0),f=ts.useRef(void 0),g=ts.useRef(void 0),x=`${`menu-${ts.useId()}`}-content`,S=ts.useCallback(({direction:F,predFn:K=()=>!0})=>{if(!g.current)return;const Z=Array.from(g.current.querySelectorAll('[role="menuitem"]')),xe=Z.length,fe=Z.findIndex(_e=>_e===document.activeElement);let oe,we,Ae;switch(F){case"start":oe=0,we=1;break;case"end":oe=xe-1,we=-1;break;case"backwards":oe=fe-1,we=-1;break;case"forwards":oe=fe+1,we=1;break;default:oe=fe+1,we=1}for(let _e=0;_e<=xe;_e++){oe>=xe?oe=0:oe<0&&(oe=xe-1);const Qe=Z[oe];if(Qe!=null&&dj(Qe)&&K(Qe)){Ae=Qe;break}else oe=oe+we}Ae&&Ae.focus()},[]),E=ts.useCallback(()=>{S({direction:"start"})},[S]),b=ts.useCallback(()=>{S({direction:"end"})},[S]),L=ts.useCallback(()=>{S({direction:"backwards"})},[S]),I=ts.useCallback(()=>{S({direction:"forwards"})},[S]),N=ts.useCallback(F=>{S({direction:"forwards",predFn:K=>uj(K,F)})},[S]),R=ts.useCallback(()=>{c?d(!1):(d(!0),setTimeout(I,25))},[I,c]),j=ts.useCallback(()=>{f.current?.focus(),d(!1)},[]),O=ts.useCallback(()=>{d(!0),setTimeout(I,25)},[I]),B=ts.useCallback(()=>{d(!0),setTimeout(L,25)},[L]),_=ts.useCallback(()=>{const{left:F,top:K}=q2({anchor:f.current,popover:g.current,positionX:a});h({transform:`translate3d(${F}px, ${K}px, 0)`,visibility:"visible"})},[a]),k=ts.useCallback(F=>{const K=F.currentTarget;_3(K)||(r?.(K.getAttribute("data-name")),j())},[j,r]),te=ts.useCallback(F=>{const K=F.key;if(F.altKey||F.ctrlKey||F.metaKey)return;let Z=!1;if(F.shiftKey)K==="Tab"?L():K.trim()!==""&&N(K),Z=!0;else switch(K){case" ":case"Enter":k(F),Z=!0;break;case"Esc":case"Escape":j(),Z=!0;break;case"ArrowUp":L(),Z=!0;break;case"Tab":case"ArrowDown":I(),Z=!0;break;case"Home":case"PageUp":E(),Z=!0;break;case"End":case"PageDown":b(),Z=!0;break;default:N(K);break}Z&&(F.stopPropagation(),F.preventDefault())},[j,k,N,E,b,I,L]);return ts.useEffect(()=>{const F=K=>{c&&p.current!=null&&g.current!=null&&!p.current.contains(K.target)&&!g.current.contains(K.target)&&d(!1)};return c?document.addEventListener("click",F):document.removeEventListener("click",F),()=>{document.removeEventListener("click",F)}},[c]),ts.useEffect(()=>(c?window.addEventListener("resize",_):window.removeEventListener("resize",_),()=>{window.removeEventListener("resize",_)}),[_,c]),ts.useEffect(()=>{const F=id(p.current);for(const K of F)c?K?.addEventListener("scroll",_,{passive:!0}):K?.removeEventListener("scroll",_);return()=>{for(const K of F)K?.removeEventListener("scroll",_)}},[_,c]),ts.useEffect(()=>{c?_():h(null)},[_,c]),ts.useEffect(()=>{if(l&&!c)s?.();else if(!l&&c&&(o?.(),p.current)){const F=new CustomEvent("menuopen",{bubbles:!0,detail:{target:p.current}});p.current.dispatchEvent(F)}},[l,c,s,o]),ts.useEffect(()=>{const F=K=>{K.detail.target!==p.current&&d(!1)};return document.addEventListener("menuopen",F),()=>{document.removeEventListener("menuopen",F)}},[]),(0,n.jsx)(Hd.Provider,{value:{htmlIdContent:x,isExpanded:c,onCloseFocusTrigger:j,onExpandFocusMenuItemNext:O,onExpandFocusMenuItemPrevious:B,onFocusMenuItemByPrefix:N,onFocusMenuItemFirst:E,onFocusMenuItemLast:b,onFocusMenuItemNext:I,onFocusMenuItemPrevious:L,onItemClick:k,onItemKeyDown:te,onTriggerClick:R,refContent:g,refTrigger:f,styleContent:u},children:(0,n.jsx)("div",{"aria-owns":x,inert:e?!0:void 0,ref:p,children:t})})}function cj({children:t,label:e,labelledBy:s,...o}){const{htmlIdContent:r,isExpanded:a,onTriggerClick:c,onCloseFocusTrigger:d,onExpandFocusMenuItemNext:l,onExpandFocusMenuItemPrevious:u,refTrigger:h}=ts.useContext(Hd),p=ts.useCallback(f=>{let g=!1;switch(f.key){case" ":case"Enter":case"ArrowDown":case"Down":l(),g=!0;break;case"Esc":case"Escape":d(),g=!0;break;case"Up":case"ArrowUp":u(),g=!0;break;default:break}g&&(f.stopPropagation(),f.preventDefault())},[d,l,u]);return(0,n.jsx)("button",{...o,"aria-controls":r,"aria-expanded":a,"aria-haspopup":"menu","aria-label":e,"aria-labelledby":s,"data-menu-trigger":"",onClick:c,onKeyDown:p,ref:h,type:"button",children:t})}function lj({children:t,className:e}){const{htmlIdContent:s,isExpanded:o,refContent:r,styleContent:a}=ts.useContext(Hd);return o?Yn.createPortal((0,n.jsx)("div",{className:e,"data-menu-content":"",hidden:o?void 0:!0,id:s,ref:r,role:"menu",style:a,children:t}),kr()):null}function k1({children:t,className:e,isDisabled:s,name:o}){const{onItemClick:r,onItemKeyDown:a}=ts.useContext(Hd),c=ts.useCallback(d=>{d.currentTarget?.focus()},[]);return(0,n.jsx)("button",{"aria-disabled":s,className:e,"data-menu-item":"","data-name":o,onClick:s?void 0:r,onKeyDown:a,onMouseOver:c,role:"menuitem",tabIndex:s?-1:void 0,type:"button",children:t})}function hle({children:t}){return jsx("span",{"data-menu-item-icon":"",children:t})}function mle({className:t}){return jsx("hr",{className:t,"data-menu-separator":""})}function _3(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function dj(t){return t!=null&&t.tagName==="BUTTON"&&!_3(t)}function uj(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const Fd=J("audio-player-actions-condensed"),Di=Object.freeze({DeleteAudio:"delete-audio",EditAudio:"edit-audio",EditTranscript:"edit-transcript"}),w1={container:"audio-player__actions",button:"audio-player__actions--button",options:"audio-player__actions--options"},hj=({inert:t,playbackSpeed:e,transcript:s,onPlaybackChange:o,onTranscriptClick:r,onTranscriptClose:a,item:c,side:d,refs:l})=>{const{mode:u,handleOpenMediaModal:h,handleDelete:p}=_d(),f=M1(),g=Dn(),[v,C]=(0,m.useState)(!1),[x,S]=(0,m.useState)(!1),E=(0,m.useCallback)(()=>C(!0),[]),b=(0,m.useCallback)(()=>C(!1),[]),L=(0,m.useCallback)(()=>S(!0),[]),I=(0,m.useCallback)(()=>S(!1),[]),N=f?.transcript===s,R=N?"Close":u==="edit"?"Edit":"View";function j(O){switch(O){case Di.DeleteAudio:p(g.id,c,l);break;case Di.EditTranscript:N?a?.():r?.();break;case Di.EditAudio:h(g,c,l,d);break}}return(0,n.jsxs)("div",{className:w1.container,inert:t,children:[(0,n.jsx)(nl,{elementFocused:v,message:"Play speed",children:(0,n.jsx)(R3,{onChange:o,speed:e,triggerClassName:w1.button,onFocus:E,onBlur:b})}),h||p||s?(0,n.jsx)(nl,{elementFocused:x,message:"Options",children:(0,n.jsxs)(ij,{onSelect:j,positionX:"left",children:[(0,n.jsxs)(cj,{className:w1.options,onFocus:L,onBlur:I,onMouseEnter:L,onMouseLeave:I,children:[(0,n.jsx)(D1.gS,{icon:"fa-regular fa-ellipsis",size:16}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Options"})]}),(0,n.jsxs)(lj,{className:Fd("content"),children:[h?(0,n.jsx)(k1,{name:Di.EditAudio,className:Fd("menu-item"),children:"Edit audio"}):null,u==="edit"||s?(0,n.jsxs)(k1,{name:Di.EditTranscript,className:Fd("menu-item"),children:[R," transcript"]}):null,p&&g.variant!=="audio"?(0,n.jsx)(k1,{name:Di.DeleteAudio,className:Fd("menu-item"),children:"Remove audio"}):null]})]})}):null]})},Bn=J("audio-player"),zd=({currentTime:t,duration:e})=>Math.round(t/e*100)||0,U3=t=>{if(!t)return{hours:0,minutes:0,seconds:0};const e=Math.floor(t/3600),s=Math.floor(t%3600/60),o=t%60;return{hours:e,minutes:s,seconds:o}},H3=t=>{const{minutes:e,seconds:s}=U3(t);let o="";return e>0&&(o+=`${new Intl.NumberFormat(void 0,{style:"unit",unit:"minute",unitDisplay:"long"}).format(e)} `),o+=new Intl.NumberFormat(void 0,{style:"unit",unit:"second",unitDisplay:"long"}).format(Math.round(s)),o},mj=t=>{const{hours:e,minutes:s,seconds:o}=U3(t);function r(d,l,u){return(new Array(u+1).join(l)+d).slice(-u)}const a=r(s,"0",2),c=r(o,"0",2);return e>0?`${e}:${a}:${c}`:`${s}:${c}`};class Ko extends ie().Component{audio;play;trackerbar;trackerhandle;onDelete;constructor(e){super(e),this.state={playheadPositionSaveThrottle:0,playbackSpeed:1,playerExpanded:!0,shouldLoadPlayheadPosition:!0},this.handleChange=this.handleChange.bind(this),this.handleClickInsideAudioPlayer=this.handleClickInsideAudioPlayer.bind(this),this.onPlayClick=this.onPlayClick.bind(this),this.onTogglePlayer=this.onTogglePlayer.bind(this)}static defaultProps={allowTabNavigation:!0,mediaSrc:null,transcript:null,onEnd:()=>{},onLoad:()=>{},onPause:()=>{},onPlay:()=>{},onSeek:()=>{},shouldPause:!1};static getElementOffset(e){const s=document.documentElement,o=e.getBoundingClientRect(),r=o.top+window.pageYOffset-s.clientTop,a=o.left+window.pageXOffset-s.clientLeft;return{top:r,left:a}}static timeMs(e){return Math.round(e*1e3)}mouseSeek(e){const{currentTarget:s,nativeEvent:o}=e,r=this.audio;let a=0;typeof TouchEvent<"u"&&o instanceof TouchEvent?a=o.touches[0].pageX:a=e.pageX;const c=Ko.getElementOffset(s);let d=a-c.left;const l=s.offsetWidth,u=r.duration;d>l?d=l:d<1&&(d=1),!(isNaN(d/l*u)||l===0)&&(r.currentTime=d/l*u,this.props.onSeek(Ko.timeMs(r.currentTime)))}keySeek(e){this.setState({isSeeking:!0},()=>{const s=this.audio,o=s.duration;s.currentTime=e<0?Math.max(s.currentTime+e,0):Math.min(s.currentTime+e,o),this.props.onSeek(Ko.timeMs(s.currentTime)),this.onSeekEnd()})}componentDidMount(){at.addChangeListener(this.handleChange)}componentDidUpdate(e,s){const r=this.props.activeIndex!=null&&this.props.itemIndex!=null&&e.activeIndex!==this.props.activeIndex&&this.props.activeIndex!==this.props.itemIndex;(at.isPlaying&&!e.shouldPause&&this.props.shouldPause||r)&&(this.audio.pause(),at.pause()),s.playbackSpeed!==this.state.playbackSpeed&&(this.audio.playbackRate=this.state.playbackSpeed)}componentWillUnmount(){const{recordMediaPlayheadPosition:e}=this.props;at.pause(),at.removeChangeListener(this.handleChange),e&&e(zd(this.audio))}handleClickInsideAudioPlayer=e=>{e.stopPropagation(),e.preventDefault()};handleChange(){const{dispatch:e,transcript:s}=this.props;at.playerId===this.props.id&&(at.isPlaying?(this.audio.play(),s&&e(rl(s))):this.audio&&this.audio.pause(),this.audio&&(this.audio.muted=at.isMuted),this.forceUpdate())}render(){const{allowTabNavigation:e,id:s,isEditor:o,isOverlayAudio:r,labels:a,mediaSrc:c,mode:d,onDelete:l,onTranscriptClick:u,onTranscriptClose:h,transcript:p,item:f,side:g,refs:v}=this.props,C=at.isPlaying&&at.playerId===s,{currentTime:x,playerExpanded:S}=this.state,E=this?.audio?.duration??0,b=Math.round(E-x),L=mj(b),I=H3(b),N=H3(x),R=e?0:-1,j=!o,{a11yGroupAudioPlayer:O,a11yMediaPlay:B,a11yMediaPause:_,a11yMediaSeek:k}=a??{},te=Bn({overlay:r,collapsed:r&&!S,expanded:!r||S});return(0,n.jsx)("div",{className:Bn("container"),onClick:this.handleClickInsideAudioPlayer,children:(0,n.jsxs)("div",{id:s,className:te,children:[j&&(0,n.jsx)("button",{"aria-label":r?`${this.state.playerExpanded?"Collapse":"Expand"} audio player`:void 0,disabled:!r,className:Bn("waveform-icon",{disabled:!r}),onClick:this.onTogglePlayer,type:"button",children:(0,n.jsx)(aj,{animating:C})}),(0,n.jsxs)("div",{"aria-hidden":!e,"aria-label":O,className:Bn("housing"),onKeyDown:this.onKeyDown.bind(this),role:ji,tabIndex:R,inert:!this.state.playerExpanded,children:[(0,n.jsx)("button",{"aria-label":C?_:B,className:Bn("play"),onClick:this.onPlayClick,ref:F=>{this.play=F},tabIndex:R,type:"button",children:C?(0,n.jsx)(Lt,{className:Bn("play-icon"),name:"pause-solid"}):(0,n.jsx)(Lt,{className:Bn("play-icon"),name:"play-solid"})}),(0,n.jsxs)("div",{className:Bn("tracker"),onMouseDown:this.onMouseSeekStart.bind(this),onTouchStart:this.onMouseSeekStart.bind(this),onMouseUp:this.onSeekEnd.bind(this),onTouchEnd:this.onSeekEnd.bind(this),onMouseMove:this.onSeek.bind(this),onTouchMove:this.onSeek.bind(this),children:[(0,n.jsx)("div",{ref:F=>{this.trackerbar=F},className:Bn("tracker-bar")}),(0,n.jsx)("div",{className:Bn("tracker-handle"),"aria-label":k,"aria-live":"polite","aria-valuemax":E,"aria-valuemin":0,"aria-valuenow":x,"aria-valuetext":N,ref:F=>{this.trackerhandle=F},role:"slider",tabIndex:R,children:(0,n.jsx)(Lt,{className:Bn("tracker-handle-icon"),name:"circle-solid"})})]}),(0,n.jsx)("div",{className:Bn("timer"),role:"timer","aria-label":I,children:L})]}),(0,n.jsx)("audio",{ref:F=>{this.audio=F},"data-testid":"audio-player-element",className:Bn("audio-element"),onTimeUpdate:this.onTimeUpdate.bind(this),onLoadedMetadata:this.onLoadedMetadata.bind(this),onEnded:this.onEnded.bind(this),src:(0,ye.o1)(`${c}`)},"audio-"+s),(0,n.jsx)(Ii,{featureFlags:["rise-audio-release"],children:(0,n.jsx)(Ii.On,{children:d==="readonly"||o?(0,n.jsx)(nj,{inert:!this.state.playerExpanded,playbackSpeed:this.state.playbackSpeed,transcript:p,onPlaybackChange:F=>{this.setState({playbackSpeed:F})},onDelete:l,onTranscriptClick:u,onTranscriptClose:h}):(0,n.jsx)(hj,{inert:!this.state.playerExpanded,playbackSpeed:this.state.playbackSpeed,transcript:p,onPlaybackChange:F=>{this.setState({playbackSpeed:F})},onTranscriptClick:u,onTranscriptClose:h,item:f,side:g,refs:v})})})]},`player-${s}`)})}onKeyDown(e){const o=To(this.onPlayClick),r=To(()=>this.keySeek(5)),a=To(()=>this.keySeek(-5)),c=p=>p.target===this.play,d=p=>p.target===this.trackerhandle,l=Rs()([[Hr,o],[dd,Si],[ud,Si]]),u=Rs()([[Hr,Si],[dd,r],[ud,a]]),h=Rs()([[Hr,o],[dd,r],[ud,a]]);Rs()([[c,l],[d,u],[hn(),h]])(e)}onPlayClick(e){e.stopPropagation(),e.preventDefault();const{audioVideoPlayhead:s,id:o,onPause:r,onPlay:a,recordMediaPlayheadPosition:c}=this.props,{currentTime:d,duration:l}=this.audio;at.isPlaying&&at.playerId!==o&&(at.isPlaying=!1),at.playerId=o,at.isPlaying=!at.isPlaying,at.isPlaying?(a(Ko.timeMs(d)),s&&this.state.shouldLoadPlayheadPosition&&(this.audio.currentTime=l*s/100||0)):(r(Ko.timeMs(d)),c&&c(zd(this.audio))),this.setState({shouldLoadPlayheadPosition:!1})}onMouseSeekStart(e){this.setState({isSeeking:!0}),this.mouseSeek(e)}onSeekEnd(){const{id:e,onPlay:s,recordMediaPlayheadPosition:o}=this.props,{currentTime:r}=this.audio;this.setState({isSeeking:!1}),at.isPlaying&&at.playerId!==e&&(at.isPlaying=!1),at.playerId=e,s(Ko.timeMs(r)),o&&o(zd(this.audio))}onSeek(e){this.state.isSeeking&&this.mouseSeek(e)}onLoadedMetadata(e){const s=e.target;this.setState({currentTime:s.currentTime});const{onLoad:o}=this.props;o()}onEnded(e){const s=e.target;this.audio.currentTime=0,this.setState({currentTime:s.currentTime}),at.isPlaying=!1,this.props.onEnd(Ko.timeMs(s.currentTime)),this.forceUpdate()}onTimeUpdate(e){const s=e.target,{recordMediaPlayheadPosition:o}=this.props,{currentTime:r,duration:a}=s,c=Math.floor(r);(0,ye.ih)();const d=r/a*100;this.trackerbar.style.width=d+"%",this.trackerhandle.style.left=d+"%",this.setState({currentTime:r}),c%5===0&&this.state.playheadPositionSaveThrottle!==c&&o&&(o(zd(s)),this.setState({playheadPositionSaveThrottle:c}))}onTogglePlayer(e){const{playerExpanded:s}=this.state;this.setState({playerExpanded:!s}),e.preventDefault(),e.stopPropagation()}currentTime(){return Ko.timeMs(this.audio.currentTime)}}const pj=(0,Hs.Ls)()(Ko);var fj=i(20817),gj=i.n(fj),vj=i(80029),Cj=i.n(vj),F3=i(67757);const gr=Ue()("status"),xj=Cj()(gr("uploading"),gr("processing")),fle=gr("canceled"),B1=gr("complete"),z3=gr("cropping"),V3=gr("crushing"),W3=gr("uploading"),G3=gr("processing"),K3=gr("errored"),$3=gj()([z3,V3,K3,G3,W3]),Ej=Se()(F3.UA,Qt()(xj));function gle(t){return Math.round(t.loaded*100/t.total)}const vle=Jn()(jt()(["file","name"]),Ye()("",["opts","filename"])),Cle=kn()(F3.UA,Ej),Vd=t=>M()("upload-progress__wrapper",t),Q3=(0,m.createContext)(null);function Z3(){return(0,m.useContext)(Q3)}const xle=Q3.Provider;function Tj(t){function e(s){const o=Z3();return o?(0,n.jsx)(t,{...s,getUpload:o.getUpload,handleUploadDismiss:o.handleUploadDismiss}):(0,n.jsx)(t,{...s})}return e.displayName=`withUploadStatusContext(${t.displayName||t.name})`,e}const Wd=({onClick:t,text:e})=>(0,n.jsxs)(Ia.ZH,{type:"button",variant:"tertiary",size:"sm",onClick:t,children:[e,(0,n.jsx)("span",{className:"visually-hidden-always",children:" upload"})]}),_1=20,al=_1/2,U1=al-2,Y3=+(2*Math.PI*U1).toFixed(3),Sj=t=>Y3*(100-t)/100;function X3({classes:t,percent:e}){return(0,n.jsxs)("svg",{className:M()("upload-progress__pie",t),width:`${_1}px`,height:`${_1}px`,focusable:"false",children:[(0,n.jsx)("circle",{className:"upload-progress__border",cx:al,cy:al,r:U1}),(0,n.jsx)("circle",{className:"upload-progress__progress",cx:al,cy:al,r:U1,strokeDasharray:Y3,strokeDashoffset:Sj(e)})]})}const Lj=({text:t})=>(0,n.jsxs)("div",{className:"upload-progress",children:[(0,n.jsx)(X3,{percent:70,classes:"upload-progress__pie--processing"}),(0,n.jsx)("div",{className:"upload-progress__text",children:t})]}),bj=({percentage:t,text:e="Uploading\u2026"})=>(0,n.jsxs)("div",{className:"upload-progress",children:[(0,n.jsx)(X3,{percent:t}),(0,n.jsx)("div",{className:"upload-progress__text",children:e})]}),H1=({classes:t,jobId:e,onCancel:s,text:o})=>(0,n.jsxs)("div",{className:Vd(t),children:[(0,n.jsx)(Lj,{text:o}),e&&(0,n.jsx)(Wd,{onClick:s,text:"Cancel"})]}),yj=({classes:t,onCancel:e,percentage:s,text:o})=>(0,n.jsxs)("div",{className:Vd(t),children:[(0,n.jsx)(bj,{percentage:s,text:o}),(0,n.jsx)(Wd,{onClick:e,text:"Cancel"})]}),Ij=({message:t="Error"})=>(0,n.jsxs)("div",{className:"upload-error",children:[(0,n.jsx)(D1.gS,{icon:"fa-regular fa-circle-exclamation"}),(0,n.jsx)("div",{className:"upload-error__text",children:t})]}),Nj=({classes:t,message:e,onClick:s})=>(0,n.jsxs)("div",{className:Vd(t),children:[(0,n.jsx)(Ij,{message:e}),(0,n.jsx)(Wd,{onClick:s,text:"Dismiss"})]}),jj=({message:t="Success"})=>(0,n.jsxs)("div",{className:"upload-success",children:[(0,n.jsx)(D1.gS,{icon:"fa-regular fa-check"}),(0,n.jsx)("div",{className:"upload-success__text",children:t})]}),Aj=({classes:t,message:e,onClick:s})=>(0,n.jsxs)("div",{className:Vd(t),children:[(0,n.jsx)(jj,{message:e}),s?(0,n.jsx)(Wd,{onClick:s,text:"Dismiss"}):null]}),Rj=t=>{const{classes:e,data:s={},errorMessage:o,jobId:r,progress:a,onCancelUpload:c,onCancelProcess:d,onErrorDismiss:l,onSuccessDismiss:u,successMessage:h,uploadType:p}=t;return K3(t)?(0,n.jsx)(Nj,{classes:e,message:o||s?.message,onClick:l}):W3(t)?(0,n.jsx)(yj,{classes:e,onCancel:c,percentage:a,text:`Uploading ${p}\u2026`}):G3(t)?(0,n.jsx)(H1,{classes:e,jobId:r,onCancel:d,text:`Processing ${p}\u2026`}):V3(t)?(0,n.jsx)(H1,{classes:e,onCancel:d,text:`Uploading ${p}\u2026`}):z3(t)?(0,n.jsx)(H1,{classes:e,onCancel:d,text:"Cropping image\u2026"}):B1(t)&&h?(0,n.jsx)(Aj,{classes:e,message:h,onClick:u}):(0,n.jsx)("div",{})},F1=J("audio-player"),Oj=F1("upload-state");function z1({uploadId:t,onAIUploadFinish:e,...s}){const o=Z3(),{mode:r}=_d();let a=null;o&&t&&(a=o.getUpload(t));const c=(0,m.useMemo)(()=>a&&a.mediaType==="audio"&&($3(a)||B1(a)&&!s.mediaSrc),[a,s.mediaSrc]),d=(0,as.A)(c);if((0,m.useEffect)(()=>{!c&&d&&e?.()},[c,d,e]),c){const{jobId:l,status:u,progress:h,data:p}=a,f=v=>()=>o?.handleUploadDismiss(v,a),g=F1({overlay:s.isOverlayAudio,static:s.isOverlayAudio});return(0,n.jsx)("div",{className:F1("container"),children:(0,n.jsx)("div",{className:g,children:(0,n.jsx)(Rj,{classes:Oj,errorMessage:p?.message,status:u,progress:h,jobId:l,onCancelUpload:f("upload"),onCancelProcess:f("process"),onErrorDismiss:f("error"),uploadType:"audio",successMessage:"Processing\u2026"})})})}return(0,n.jsx)(pj,{...s,mode:r})}var Pj=i(96865),Mj=i.n(Pj),Dj=i(29209),J3=i.n(Dj);const ki=ie().memo(({align:t,alt:e,allowTabNavigation:s=!0,disableZoom:o,height:r,l10nId:a,labels:c,maxHeight:d=380,onLoad:l,shouldFillWidth:u,src:h,width:p})=>{const f=(0,gn.Ll)(e),g=s&&!o,v=M()("img-img",{"img-img--left":t==="left","img-img--right":t==="right","img-img--center":!t||t==="center","img-img--fill":u});let C;p>0&&r>0&&r>d?(p=Math.round(p*d/r),r=d):d&&(!p||!r)&&(C={maxHeight:d});let x=(0,n.jsx)(An,{alt:f,"data-l10n-id":a,className:v,height:r,onLoad:l,src:h,style:C,width:p});return g&&(x=(0,n.jsx)(N3,{a11yNameButtonUnzoom:c?.a11yUnzoomImage,a11yNameButtonZoom:c?.a11yZoomImage,children:x})),(0,n.jsx)("div",{className:"img",children:x})});var ja=i(91817),q3=i(90960),kj=i(91980),wj=i.n(kj),Bj=i(13184),_j=i.n(Bj),Uj=i(883),Aa=i.n(Uj),Hj=i(47374),il=i.n(Hj),Fj=i(1004),zj=i.n(Fj),Vj=i(36865),Wj=i.n(Vj),Gj=i(88659),Kj=i.n(Gj),$j=i(25578),V1=i.n($j),Qj=i(73461),Zj=i.n(Qj);const Yj=(t,e)=>s=>t(s)?e(s):!0,Xj=zj()(ps(),["http","https"]),Jj=Aa()(As(),V1()(":")),qj=Aa()(il()(Wj()(wj()),Xj),_j()),eA=Aa()(Kj()(Zj()("//"),qj),Jj),tA=t=>vi()(Yj(t,eA),We()("")),Ile=Es()(t=>Aa()(tA(t),ja.htmlDecode,q3.J)),sA=/(\.\.\/)|(\.\.\.\.\/)+|%2e%2e\/|%252e%252e\/|%2f\/|\/%2e%2e/gi,nA=t=>typeof t=="string"&&t.replace(sA,""),Ra=Aa()(nA,q3.J);var oA=i(44336),cl=i.n(oA),rA=i(61319),W1=i.n(rA);const aA=[{title:"Course Overview",labels:[{name:"courseStart",text:"START COURSE"},{name:"courseResume",text:"RESUME COURSE"}]},{title:"Global",labels:[{name:"courseHome",text:"Home"},{name:"lessonComplete",text:"80% COMPLETE"},{name:"lessonName",text:"Lesson 4 of 7"},{name:"lessonRestricted",text:"Lessons must be completed in order"},{name:"courseSkipToLesson",text:"SKIP TO LESSON"},{name:"search",text:"search"},{name:"results",text:"20 results"},{name:"result",text:"1 result"},{name:"noResults",text:'No results for "abc"'}].concat(ye.BI?[{name:"courseFinish",text:"Finish"}]:[])},{title:"Quiz & Knowledge Check",labels:[{name:"quizStart",text:"START QUIZ"},{name:"quizAcceptableResponses",text:"Acceptable responses"},{name:"quizQuestion",text:"Question"},{name:"quizAnswerPlaceholder",text:"Type your answer here"},{name:"quizSubmit",text:"SUBMIT"},{name:"quizRequireAnswer",text:"Please answer the question to continue"},{name:"quizNext",text:"NEXT"},{name:"quizRestart",text:"RESTART"},{name:"quizIncorrect",text:"Incorrect"},{name:"quizCorrect",text:"Correct"},{name:"quizResults",text:"Quiz Results"},{name:"quizScore",text:"Your score 90%"},{name:"quizPassing",text:"PASSING 80%"},{name:"quizTakeAgain",text:"TAKE AGAIN"},{name:"quizRequirePassingScore",text:"Must pass quiz before continuing"},{name:"quizContinue",text:"Continue"}]},{title:"Process",labels:[{name:"processStepName",text:"Step 3 of 6"},{name:"processNextStep",text:"NEXT STEP"},{name:"processLessonName",text:"Lesson 5 Complete"},{name:"processStart",text:"START"},{name:"processStartAgain",text:"START AGAIN"},{name:"processSwipe",text:"Swipe to continue"}]},{title:"Sorting",labels:[{name:"sortingCardsCorrect",text:"6/8 Cards Correct"},{name:"sortingReplay",text:"REPLAY"}]},{title:"Embeds",labels:[{name:"embedViewOn",text:"VIEW ON YOUTUBE"},{name:"embedReadMore",text:"Read more"}]},{title:"Flashcards",labels:[{name:"blocksClickToFlip",text:"Click cards to flip"},{name:"blocksPreposition",text:"1 of 3"}]},{title:"Scenario",labels:[{name:"scenarioTryAgain",text:"TRY AGAIN"},{name:"scenarioContinue",text:"CONTINUE"},{name:"scenarioComplete",text:"Scenario Complete"},{name:"scenarioStartOver",text:"START OVER"}]},{title:"Exit Course (LMS)",labels:[{name:"courseExit",text:"EXIT COURSE"},{name:"salutation",text:"\u{1F44B} Bye!"},{name:"exitMessage",text:"You may now leave this page."}]}],iA=t=>{let e={};return e[t.name]=t.text,e},cA=St()(ws()(Pe()("labels")),cl(),ws()(iA),W1())(aA);var jle=i(30772),lA=i(70117),G1=i.n(lA);const{validIframe:ef,validUrl:tf}=$e.yG,sf=st()("type","embed"),dA=G1()("type","embedType"),uA=td()(/http:/i,"https:"),hA=t=>({embedType:"iframe",originalUrl:t,src:t}),nf=t=>ll(t.embed),ll=t=>t?.embedType||t?.type,Ale=t=>cond([[test(ef),compose(sf,hA,uA)],[test(tf),composeP(sf,dA,t)]]),Rle=Jn()(Se()(f1()(ef),xo.R9),f1()(tf)),Ole="We are unable to generate an embed for this URL. Please check that the URL is valid and the content is publicly accessible.";var Gd=i(59288);const of=t=>{const e=(0,ye._$)("CDN_USER_CONTENT_URI"),s=new RegExp((0,ye._$)("CDN_URI"),"g");return(0,ye.Hm)()?t:s.test(t)?`${e}${new URL(t).pathname}${new URL(t).search}`:t},mA=t=>{const e=new window.URL("https:"+t);return e.searchParams.set("src",e.searchParams.get("src")+"&disable-auto-focus=true"),e.toString().replace("https:","")},pA=/^\/\/cdn.embedly.+src=.*\.typeform\.com%2F/,fA=t=>pA.test(t),gA=/^\/\//,vA=t=>t?.replace(gA,"https://"),CA=Se()(vA,sn()(fA,mA),sn()(Boolean,ye.o1),Ra),xA=t=>{const{paddingBottom:e,ref:s,value:o}=t;return(0,n.jsx)("div",{className:"embed--iframe",dangerouslySetInnerHTML:Gd.useMemo(()=>({__html:o}),[o]),ref:s,style:{paddingBottom:e}})};class EA extends Gd.Component{player;refIframeContainer=Gd.createRef();refIframePlayer=Gd.createRef();state={duration:0,isReady:!1};static get defaultProps(){const{embedReadMore:e}=cA;return{allowTabNavigation:!0,labels:{embedReadMore:e,embedViewOn:"View on"},shouldPause:!1,showMetaData:!0}}componentDidUpdate(e){!e.shouldPause&&this.props.shouldPause&&at.isPlaying&&(this.player?.pause(),at.isPlaying=!1)}componentWillUnmount(){ll(this.props.data)==="video"&&this.teardownPlayer()}handlePlayerReady=()=>{this.player&&(this.player.on("play",this.handlePlayerPlay),this.player.on("timeupdate",this.handlePlayerUpdate),this.setState({isReady:!0}),at.addChangeListener(this.handlePlayerChange))};handlePlayerPlay=()=>{const{id:e}=this.props;at.isPlaying&&at.playerId!==e&&(at.isPlaying=!1),at.playerId=e,at.isPlaying=!0};handlePlayerUpdate=e=>{this.props.progressChanged?.({done:e.seconds/e.duration*100})};handlePlayerChange=()=>{const{id:e}=this.props;at.playerId===e&&(at.isPlaying?this.player.play():this.player.pause())};setupPlayer=()=>{this.refIframePlayer.current?.contentWindow!=null&&(this.player!=null&&this.teardownPlayer(),this.player=new(Mj()).Player(this.refIframePlayer.current),this.player.on("ready",this.handlePlayerReady))};teardownPlayer=()=>{at.isPlaying=!1,at.removeChangeListener(this.handlePlayerChange),this.player&&(this.player.off("play"),this.player.off("ready"),this.player.off("timeupdate"),delete this.player)};playerSupportsMethods=e=>{const s=o=>this.player.supports("method",o);return J3()(s)(e)};togglePlay=()=>{this.playerSupportsMethods(["play","pause"])&&this.player.on("ready",()=>{this.player.getPaused(e=>{e?this.player.play():this.player.pause()})})};keySeek=e=>{this.playerSupportsMethods(["getCurrentTime","setCurrentTime"])&&this.player.on("ready",()=>{this.player.getCurrentTime(s=>{this.player.setCurrentTime(s+e)})})};changeVolume=e=>{this.playerSupportsMethods(["getVolume","setVolume"])&&this.player.getVolume(s=>{this.player.setVolume(s+e)})};onKeyDown=e=>{const r=To(this.togglePlay),a=To(()=>this.keySeek(5)),c=To(()=>this.keySeek(-5)),d=To(()=>this.changeVolume(10)),l=To(()=>this.changeVolume(-10));Rs()([[ld,r],[Ur,a],[_r,c],[Li,d],[bi,l]])(e)};renderProvider=()=>{const{allowTabNavigation:e,externalLinksDisabled:s,showExternalLinksModal:o,showMetaData:r,data:a}=this.props,{providerUrl:c,provider:d,favicon:l}=a;if(!(r&&c))return null;const u=Ra(c),h=s&&di(u),p=h?"":void 0,f=h?o:void 0,g=h?void 0:u,v=h?void 0:"noopener noreferrer",C=h?"button":void 0,x=h?void 0:"_blank";return(0,n.jsx)("h2",{className:"embed__provider",children:(0,n.jsxs)("a",{className:"brand--hoverColor","data-external":p,href:g,onClick:f,rel:v,role:C,tabIndex:e?0:-1,target:x,children:[(0,n.jsx)(An,{alt:l?d:"",className:"embed__providerIcon",src:l}),(0,n.jsx)("span",{className:"embed__providerName",children:d})]})})};renderMetaData=()=>{const{allowTabNavigation:e,data:s,externalLinksDisabled:o,labels:r,showExternalLinksModal:a,showMetaData:c}=this.props,{src:d,title:l,description:u,provider:h}=s,{embedReadMore:p,embedViewOn:f}=r,g=ll(s);if(!c&&g!=="link")return null;const v=Ra(d),C=o&&di(v),x={"data-external":C?"":void 0,href:C?void 0:v,onClick:C?a:void 0,rel:C?void 0:"noopener noreferrer",role:C?"button":void 0,tabIndex:e?0:-1,target:C?void 0:"_blank"};return(0,n.jsxs)("div",{className:"embed__meta__content",children:[(0,n.jsx)("h2",{className:"embed__title",children:(0,n.jsx)("a",{className:"brand--hoverColor",...x,children:(0,n.jsx)(Nt,{value:l})})}),(0,n.jsx)(Nt,{className:"embed__description",value:u}),(0,n.jsxs)("a",{className:"embed__readMore brand--hoverColor",...x,children:[g==="link"?`${p} ${h}`:`${f} ${h}`,(0,n.jsx)("i",{className:"icon icon-chevron-right"})]})]})};render(){const{allowTabNavigation:e,data:s,externalLinksDisabled:o,isLesson:r,labels:a,showExternalLinksModal:c,showMetaData:d}=this.props,{useRelativePath:l}=s??{},{description:u,originalUrl:h,src:p,thumbnail:f,title:g}=s,{embedLinkGroup:v,embedPlayerGroup:C,embedReadMore:x}=a,S=ll(s);if(S==="iframe"){const E=document.createElement("div");E.innerHTML=(0,xo.R9)(p);const b=E.firstChild,L=b&&b.tagName&&b.tagName.toLowerCase()==="iframe";let I=100,N=32;if(r9(window.location.href)&&l)return(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"embed__relativeUrl--iframe",children:"Embedded iframe with a relative url"}),(0,n.jsx)("p",{className:"embed__relativeUrl--title",children:g}),(0,n.jsx)("p",{className:"embed__relativeUrl--url",children:h})]});if(L){const k=b.width.match(/%/),te=parseInt(b.width);b.src=Ra(b.src),I=k?700*(te/100):te||16,N=parseInt(b.height)}const R=N/I,j=L?`${R*100}%`:"3rem";if(b.src.includes("typeform")){const k=new window.URL(b.src);k.searchParams.append("disable-auto-focus","true"),b.src=k.toString()}if(b.src.includes("forms.office.com")){const k=new window.URL(b.src);k.searchParams.append("embed","true"),b.src=k.toString()}const _=L?b.outerHTML:"<div>Error: Invalid iframe tag. Please check the iframe source.</div>";return(0,n.jsxs)("div",{"aria-hidden":!e,"aria-label":C,className:"embed",role:ji,children:[l&&(0,n.jsx)("div",{className:"embed__title embed--iframe__title",children:g}),(0,n.jsx)(xA,{paddingBottom:j,ref:this.refIframeContainer,value:_})]})}else if(r){const E=l?p:Ra(p),b=o&&di(E),L=b?"":void 0,I=b?c:void 0,N=b?void 0:E,R=b?void 0:"noopener noreferrer",j=b?"button":void 0,O=b?void 0:"_blank";if(l){const B={"data-external":b?"":void 0,href:E,onClick:b?c:void 0,rel:b?void 0:"noopener noreferrer",role:b?"button":void 0,tabIndex:e?0:-1,target:b?void 0:"_blank"};return(0,n.jsxs)("div",{"aria-hidden":!e,"aria-label":a?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:ji,children:[(0,n.jsx)("h2",{className:"embed__title",children:(0,n.jsx)("a",{className:"brand--hoverColor",...B,children:(0,n.jsx)(Nt,{value:g})})}),["link","photo"].includes(S)?(0,n.jsxs)("a",{className:"embed__relativeUrl--url","data-external":L,href:N,onClick:I,rel:R,role:j,tabIndex:e?0:-1,target:O,children:[E,S==="photo"?(0,n.jsx)("div",{className:"embed__relativeUrl--image",children:(0,n.jsx)(An,{alt:f?g:"",className:"embed__img",src:E})}):null]}):this.renderEmbedIframe({allowTabNavigation:e,labels:a,src:p,thumbnail:f,title:g,type:S})]})}return(0,n.jsxs)("div",{"aria-hidden":!e,"aria-label":a?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:ji,children:[this.renderProvider(),["link","photo"].includes(S)?(0,n.jsx)("a",{"data-external":L,href:N,onClick:I,rel:R,role:j,tabIndex:e?0:-1,target:O,children:(0,n.jsx)(An,{alt:f?g:"",className:"embed__img",src:of(f)})}):this.renderEmbedIframe({allowTabNavigation:e,labels:a,src:p,thumbnail:f,title:g,type:S}),this.renderMetaData()]})}else if(S==="link"){const E=l?p:Ra(p),b=l||o&&di(E),L=b?"":void 0,I=b?c:void 0,N=b?void 0:E,R=b?void 0:"noopener noreferrer",j=b?"button":void 0,O=b?void 0:"_blank";return(0,n.jsxs)("div",{"aria-hidden":!e,"aria-label":v,className:"embed embed--link brand--linkColor",role:ji,children:[(0,n.jsx)(Nt,{className:"embed__title",value:g}),(0,n.jsx)(Nt,{className:"embed__description",value:u}),(0,n.jsx)("a",{className:"embed__readMore brand--hoverColor","data-external":L,href:N,onClick:I,rel:R,role:j,target:O,children:x})]})}else return(0,n.jsxs)("div",{className:"embed embed--media",children:[d?(0,n.jsx)(Nt,{"aria-hidden":!e,className:"embed__title",value:g}):null,this.renderEmbedIframe({allowTabNavigation:e,labels:a,src:p,thumbnail:f,title:g,type:S})]})}renderEmbedIframe=e=>{const{allowTabNavigation:s,labels:o,src:r,thumbnail:a,title:c,type:d}=e,{useRelativePath:l}=this.props.data??{};if(d==="photo")return(0,n.jsx)("figure",{className:"embed__media-wrap embed__media-wrap--photo",children:(0,n.jsx)(ki,{src:of(a),labels:o,allowTabNavigation:s})});{const u=nn.isIe11||nn.isEdge,h=M()("embed__media-wrap",{"embed__media-wrap--ms_browser":u});return(0,n.jsxs)("figure",{"aria-hidden":!s,"aria-label":o?.embedPlayerGroup,className:h,onKeyDown:this.onKeyDown,ref:this.refIframeContainer,tabIndex:s?0:-1,children:[(0,n.jsx)("meta",{name:"referrer",content:"origin"}),(0,n.jsx)("iframe",{inert:s?void 0:!0,ref:this.refIframePlayer,className:"embed__media",src:l?r:CA(r),frameBorder:"0",scrolling:l?"yes":"no",onLoad:this.setupPlayer,allowFullScreen:!0,title:c})]})}}}const TA=li()({externalLinksDisabled:jt()(["course","externalLinksDisabled"])}),SA={showExternalLinksModal:()=>({type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0})},K1=(0,Hs.Ls)(TA,SA)(EA);var LA=i(57094),bA=i.n(LA),yA=i(7656),rf=i(94050);const IA=rf.default.getComponent("SeekBar");class NA extends IA{seekDisabled=!1;maxTime=0;constructor(e){super(e,[])}disableSeek(){this.seekDisabled=!0}setMaxTime(e){this.maxTime=e}handleMouseMove(e){if(!this.seekDisabled)return super.handleMouseMove(e);const s=this.player();let o=this.calculateDistance(e)*s.duration();o>this.maxTime?(this.trigger("showRestrictSeekTooltip",!0),o=this.maxTime):this.trigger("showRestrictSeekTooltip",!1),o===s.duration()&&(o=o-.1),s.currentTime(o)}}rf.default.registerComponent("SeekBar",NA);var jA=i(16500),AA=i(22973),RA=i(65664),OA=i(76700),PA=i(7211),MA=i(80647),DA=i(48034),kA=i(18058),wA=i(70485),BA=i(51327),_A=i(57269),UA=i(85961),HA=i(19022),FA=i(60158),zA=i(99301),VA=i(34441);const WA={ar:jA,cs:AA,de:RA,en:OA,es:PA,fr:MA,it:DA,ja:kA,nl:wA,pl:BA,sk:_A,tr:UA,"pt-BR":HA,"pt-PT":FA,"zh-CN":zA,"zh-TW":VA},GA=-5,$1="seek-tooltip--hidden",KA=()=>{const t=document.createElement("div");return t.classList.add("seek-tooltip"),t.classList.add($1),t},Kd=t=>Math.round(t.currentTime()/t.duration()*100)||0;class $A extends ie().Component{maxTime;seeking;wasPaused;restrictingSeek;seekTimeout;playbackRatesChanged;videoPaused;videoPlay;videoPlaying;videoSeeking;videoSeeked;videoUpdate;container;seekDiv;progressBarElement;video;constructor(e){super(e),this.state={isReady:!1,shouldLoadPlayheadPosition:!1,playbackStarted:!1,playheadPositionSaveThrottle:0,showRestrictSeekTooltip:!1},this.showRestrictSeekTooltip=this.showRestrictSeekTooltip.bind(this),this.updateSeekTooltip=this.updateSeekTooltip.bind(this),this.getMaxTime=this.getMaxTime.bind(this),this.onMediaStoreChange=this.onMediaStoreChange.bind(this),this.renderCaptionTrack=this.renderCaptionTrack.bind(this)}static get defaultProps(){return{autoplay:!1,allowTabNavigation:!0,currentTime:0,labels:{},onFullScreenChange:()=>{},onLoad:()=>{},percentComplete:0,progressChanged:()=>{},shouldPause:!1}}updateContentFocusability(){const{allowTabNavigation:e}=this.props;J2(this.container.getElementsByTagName("button")).forEach(o=>{Rd(o,Fr(e))}),p1({element:this.container,selector:".vjs-progress-holder",tabIndex:Fr(e)}),p1({element:this.container,selector:".vjs-volume-bar",tabIndex:Fr(e)}),p1({element:this.container,selector:".vjs-volume-menu-button",tabIndex:Fr(e)})}componentDidUpdate(e){this.updateContentFocusability(),!e.shouldPause&&this.props.shouldPause&&at&&(this.video.player.pause(),at.isPlaying=!1)}setMaxTime(e){this.maxTime=e,this.video.player.controlBar.progressControl.seekBar.setMaxTime(e)}componentDidMount(){const{player:e}=this.video,{audioVideoPlayhead:s,canRestrictSeek:o,currentTime:r,id:a,onFullScreenChange:c,onLoad:d,percentComplete:l,progressChanged:u,recordMediaPlayheadPosition:h,type:p}=this.props;if(this.setState({shouldLoadPlayheadPosition:!0}),this.wasPaused=!1,this.seeking=!1,this.setMaxTime(r),this.updateContentFocusability(),o){const{seekBar:f}=this.video.player.controlBar.progressControl;f.disableSeek(),f.on("showRestrictSeekTooltip",(g,v)=>this.showRestrictSeekTooltip(v)),this.configureSeekDiv()}e.ready(()=>{e.el_?.removeAttribute("role"),e.el_?.removeAttribute("aria-label"),e.getChild("BigPlayButton").controlTextEl_?.removeAttribute("aria-live"),e.getChild("controlBar").getChild("PlaybackRateMenuButton").childNameIndex_.PlaybackRateMenuButton.controlTextEl_.innerText=`Playback Rate ${e.playbackRate()}x`,e.getChild("controlBar").getChild("PlaybackRateMenuButton").removeAttribute("aria-describedby"),e.getChild("controlBar").getChild("PlaybackRateMenuButton").labelEl_.setAttribute("aria-hidden",!0),e.getChild("controlBar")?.getChild("volumePanel")?.getChild("volumeControl")?.getChild("volumeBar")?.el_?.removeAttribute("aria-live"),l&&l<100&&p!=="customVideo"&&(e.play(),e.currentTime(r),e.pause()),e.on("timeupdate",this.videoUpdate=()=>{(0,ye.ih)();const f=e.currentTime(),g=e.duration(),v=e.paused(),C=Math.floor(f),x=g*s/100||0;v&&!this.wasPaused&&f>this.maxTime&&this.setMaxTime(f),o&&this.updateSeekTooltip();const S=e.ended()&&!this.seeking,E=!v&&!this.seeking;if(!o||S||E){f>this.maxTime&&this.setMaxTime(f);let L=f/g*100;S&&(L=100),u&&u({currentTime:f,percentComplete:L}),C%5===0&&this.state.playheadPositionSaveThrottle!==C&&h&&(h(Kd(e)),this.setState({playheadPositionSaveThrottle:C}))}else o&&!this.restrictingSeek&&f>this.maxTime&&x<this.maxTime&&(this.restrictingSeek=!0,v||e.pause(),e.currentTime(this.maxTime));this.wasPaused=v}),this.setState({isReady:!0}),d()}),e.on("play",this.videoPlay=()=>{this.seeking=!1,this.showRestrictSeekTooltip(!1)}),e.on("playing",this.videoPlaying=()=>{at.isPlaying&&at.playerId!==a&&(at.isPlaying=!1),at.playerId=a,at.isPlaying=!0,this.state.playbackStarted===!1&&this.setState({playbackStarted:!0}),s&&this.state.shouldLoadPlayheadPosition&&e.currentTime(e.duration()*s/100||0),this.setState({shouldLoadPlayheadPosition:!1})}),e.on("pause",this.videoPaused=()=>{at.playerId===a&&(at.isPlaying=!1),h&&h(Kd(e))}),e.on("seeking",this.videoSeeking=()=>{this.seeking=!0}),e.on("seeked",this.videoSeeked=()=>{this.restrictingSeek=!1,this.seekTimeout&&clearTimeout(this.seekTimeout),h&&h(Kd(e)),this.seekTimeout=setTimeout(()=>{this.seeking=!1},1e3)}),e.on("fullscreenchange",c),e.on("keyup",s3),e.on("contextmenu",f=>{f.preventDefault()}),e.on("ratechange",this.playbackRatesChanged=()=>{e.controlBar.playbackRateMenuButton.childNameIndex_.PlaybackRateMenuButton.controlTextEl_.innerText=`Playback Rate ${e.playbackRate()}x`}),at.addChangeListener(this.onMediaStoreChange)}componentWillUnmount(){const{onFullScreenChange:e,recordMediaPlayheadPosition:s}=this.props,{player:o}=this.video;s&&s(Kd(o)),at.isPlaying=!1,at.removeChangeListener(this.onMediaStoreChange),o.off("timeupdate",this.videoUpdate),o.off("play",this.videoPlay),o.off("playing",this.videoPlaying),o.off("pause",this.videoPaused),o.off("seeking",this.videoSeeking),o.off("seeked",this.videoSeeked),o.off("fullscreenchange",e),o.off("ratechange",this.playbackRatesChanged),o.dispose()}render(){const{allowTabNavigation:e,labels:{a11yGroupVideoPlayer:s}}=this.props,{isReady:o,showRestrictSeekTooltip:r,playbackStarted:a}=this.state,c=M()("video-a11y video-wrapper",{"video-wrapper--visible":o,"video-wrapper--restrict-seek":r,"video-playback-started":a});return(0,n.jsx)("div",{"aria-hidden":!e,"aria-label":s,className:"figure-container",onKeyDown:this.onKeyDown.bind(this),ref:d=>{this.container=d},role:"region",children:(0,n.jsx)("div",{className:c,children:this.renderPlayer()})})}renderCaptionTrack(e){const{code:s,id:o,key:r,name:a,url:c}=e,d=c||(0,ye.o1)(r),l=YA(this.props.locale??"en"),u=a||l.of(s);return(0,n.jsx)("track",{kind:"captions",label:u,src:d,srcLang:s},o)}renderPlayer(){const{autoplay:e,canAdjustPlaybackSpeed:s,captionUID:o,captions:r,id:a,subtitle:c,type:d}=this.props,l=d==="customVideo",h=l?(L=>new URL(L).pathname.slice(1))(this.props.src):this.props.src,p=l?this.props.poster:(0,ye.o1)(this.props.poster),f=l?this.props.src:(0,ye.o1)(this.props.src),g=l?"application/x-mpegURL":void 0,v=s?[.25,.5,.75,1,1.25,1.5,1.75,2]:void 0,C=nn.isLocalFilesystem?{}:{crossOrigin:"anonymous"},x={autoplay:e,controlBar:{children:{playToggle:!0,progressControl:!0,remainingTimeDisplay:!0,playbackRateMenuButton:!0,captionsButton:!0,pictureInPictureToggle:!0,fullscreenToggle:!0,volumePanel:{inline:!0}}},controls:!0,languages:WA,playbackRates:v,preload:"none",textTrackSettings:!1};document.pictureInPictureEnabled||delete x.controlBar.children.pictureInPictureToggle;const S={key:`${a}-${h}-${o}`,options:x,poster:p,ref:L=>{this.video=L},...C},E=(0,n.jsx)("track",{kind:"captions",label:"English",src:l?c:(0,ye.o1)(c),srcLang:"en"}),b=`${f}?v=1`;return(0,n.jsxs)(yA.A,{...S,children:[(0,n.jsx)("source",{src:b,type:g}),!r&&c&&E,r&&r.map(this.renderCaptionTrack)]})}onKeyDown(e){if(ZA(e))return;const s=5,o=To(this.togglePlay.bind(this)),r=this.toggleFullScreen.bind(this),a=To(()=>this.keySeek(s)),c=To(()=>this.keySeek(-s));Rs()([[ld,o],[va,r],[dd,a],[ud,c]])(e)}togglePlay(){const{player:e}=this.video;e.userActive(!0),e.paused()?e.play():e.pause()}toggleFullScreen(){if(nn.isIe11)return;const{player:e}=this.video;e.isFullscreen()?e.exitFullscreen():e.requestFullscreen()}changeVolume(e){const{player:s}=this.video,o=s.volume();s.userActive(!0),s.volume(o+e)}keySeek(e){const{player:s}=this.video,{canRestrictSeek:o}=this.props;s.userActive(!0);const r=s.currentTime(),a=s.duration();s.paused()&&!r&&!a&&s.play();let d=r+e;o&&(d>this.maxTime?(d=this.maxTime,this.showRestrictSeekTooltip(!0)):this.showRestrictSeekTooltip(!1));const l=e<0?Math.max(d,0):Math.min(d,a);l!==r&&s.currentTime(l)}configureSeekDiv(){const{player:e}=this.video,s=e.controlBar,o=s.el();this.progressBarElement=s.progressControl.seekBar.playProgressBar.el(),this.seekDiv=KA(),o.appendChild(this.seekDiv),(0,je.createRoot)(this.seekDiv).render((0,n.jsx)(l4,{}))}showRestrictSeekTooltip(e){const{canRestrictSeek:s}=this.props;!s||!this.seekDiv||e!==this.state.showRestrictSeekTooltip&&(e?this.seekDiv.classList.remove($1):this.seekDiv.classList.add($1),this.setState({showRestrictSeekTooltip:e}))}updateSeekTooltip(){const{player:e}=this.video,s=this.progressBarElement.getBoundingClientRect(),o=e.el().getBoundingClientRect(),r=this.seekDiv.getBoundingClientRect().width,a=s.left-o.left,c=r/2,d=a+s.width-c;this.seekDiv.style.left=`${d}px`,this.seekDiv.style.top=`${GA}px`}getMaxTime(){return this.maxTime}onMediaStoreChange(){if(!this.video)return;const{id:e}=this.props,{player:s}=this.video;at.playerId===e&&(at.isPlaying?s.play():s.pause())}}function QA(t){const e=s=>{const o=(0,Me.DX)();return(0,n.jsx)(t,{...s,locale:o?.locale})};return e.displayName=`withLocale(${t.displayName??t.name})`,e}const Q1=QA($A),ZA=t=>{const e=t.target.className,s=a2(t)&&e.includes("vjs-volume-bar");return Hr(t)&&(e.includes("vjs-control")||e.includes("vjs-big-play-button"))||s},YA=bA()(t=>new Intl.DisplayNames([t],{type:"language",fallback:"code"}));var af=i(59288);function cs(t){const e=af.forwardRef((s,o)=>{const r=(0,It.gY)();return(0,n.jsx)(t,{...s,getL10nValue:r,ref:o})});return e.displayName=`withLocalizedLookup(${t.displayName||t.name})`,e}function cf(t){const e=af.forwardRef((s,o)=>{const r=(0,It.gY)(),a=(0,It.NB)();return(0,n.jsx)(t,{...s,getL10nValue:r,getL10nRecursive:a,ref:o})});return e.displayName=`withLocalizedLookupRecursive(${t.displayName||t.name})`,e}var XA=i(38576),bo=i.n(XA),JA=i(11437),lf=i.n(JA);const qA=t=>({...t,courseId:t.courseId||jt()(["course","id"],t)}),eR=t=>({...t,lessonId:t.lessonId||jt()(["lesson","id"],t)}),tR=({id:t,courseId:e,lessonId:s,refs:o})=>t||(o&&s?`${s}-${o}`:s||e),Z1=Se()(tR,eR,qA),Mle=St()(vi()(Pe()("id"),bo()("id",Z1)),Jn()(lf()(Pe(),[Pe()("id"),Pe()("uploads")]),Ls()(["id"])),bo()("isUploading",Ue()("status","uploading")));var sR=i(59288);const Y1=t=>!!(t&&("key"in t&&t.key||"src"in t&&t.src)),$d=t=>Y1(t)&&!t.isProcessing&&!t.error,nR=(t,e)=>e?.mediaType==="audio"?!!t&&(Y1(t)||$3(e)||B1(e)&&!Y1(t)):$d(t),oR=t=>sn()(We()(!!t),A1()(`-${t}`));class rR extends sR.Component{constructor(e){super(e),this.onTranscriptClick=this.onTranscriptClick.bind(this)}static get defaultProps(){return{defaultAlign:"left",media:{},index:"1",hasPadding:!0,opts:{},allowTabNavigation:!0,lessonNumber:1,getL10nValue:()=>{}}}onTranscriptClick(){const{block:e,openTranscript:s,refs:o}=this.props,r=e.items?.length===1?e.items[0]:void 0,a=this.props.item??r;if(e&&a&&s)return s({blockId:e.id,item:a,refs:o})}renderAudio(e,s){const{activeIndex:o,allowTabNavigation:r,index:a,isOverlayAudio:c,item:d,itemIndex:l,labels:u,lessonNumber:h,pauseOnLoad:p,shouldPause:f,refs:g,side:v}=this.props,C=`audio-${h}-${a}`;return(0,n.jsx)(z1,{activeIndex:o,allowTabNavigation:r,id:C,item:d,itemIndex:l,isOverlayAudio:c,labels:u,mediaSrc:e.key,refs:g,side:v,onTranscriptClick:this.onTranscriptClick,onTranscriptClose:this.props.closeTranscript,shouldPause:e.pause||p||f,transcript:e.transcript,uploadId:s},C)}renderImage(e){const{allowTabNavigation:s,defaultAlign:o,imageMaxHeight:r,index:a,labels:c,onLoad:d,opts:l}=this.props,u=e?.align??o,h=e?.dimensions,p=`image-${a}`,{disableZoom:f}=l;return(0,n.jsx)(ki,{align:u,allowTabNavigation:s,alt:e.alt,disableZoom:f,height:h?.height||h?.originalHeight,labels:c,maxHeight:r,onLoad:d,shouldFillWidth:e.fillWidth,src:(0,rs.ME)(e),width:h?.width||h?.originalWidth},p)}renderVideo(e){const{allowTabNavigation:s,blockId:o,lessonNumber:r,index:a,labels:c,onFullScreenChange:d,enableVideoPlaybackSpeed:l,pauseOnLoad:u,shouldPause:h}=this.props,p=oR(o)(`video-${r}-${a}`);return(0,n.jsx)(Q1,{allowTabNavigation:s,captionUID:e.captionUID,captions:e.captions,id:p,labels:c,onFullScreenChange:d,poster:e.poster,shouldPause:e.pause||u||h,src:e.key,canAdjustPlaybackSpeed:l},p)}renderEmbed(e){const{allowTabNavigation:s,embedClass:o,labels:r,opts:a,shouldPause:c}=this.props,{fullEmbed:d,showMetaData:l=!0}=a,u=`embed-${this.props.index}`;return(0,n.jsx)("div",{className:o,children:(0,n.jsx)(K1,{labels:r,isLesson:d,id:u,showMetaData:l,data:e,allowTabNavigation:s,shouldPause:e.pause||c},u)})}render(){const{blockId:e,hasPadding:s,item:o,lessonId:r,refs:a=`items:${e??""}/items:${o&&"id"in o?o.id:""}`,renderMediaType:c}=this.props,d=this.props.media,l=M()({"media-group":s}),{audio:u,embed:h,image:p,video:f}=this.props.getL10nValue(d)??{},g=Z1({lessonId:r,refs:a}),v=this.props.getUpload?this.props.getUpload(g):null;return(0,n.jsxs)("div",{className:l,"data-l10n-id":(0,Pt.pP)(d),children:[(!c||c==="audio")&&nR(u,v)&&this.renderAudio(u,g),(!c||c==="image")&&$d(p)&&this.renderImage(p),(!c||c==="video")&&$d(f)&&this.renderVideo(f),(!c||c==="embed")&&$d(h)&&this.renderEmbed(h)]})}}const En=(0,Hs.Ls)()(Tj(bd(k3(cs(rR)))));var aR=i(59288);const $o=J("block-text"),iR=class extends aR.Component{renderHeadingDelegate;renderTextDelegate;constructor(t){super(t),this.renderTextDelegate=this.renderText.bind(this),this.renderHeadingDelegate=this.renderHeading.bind(this)}static get defaultProps(){return{columns:1,heading:"",items:[],type:"onecol",getL10nValue:()=>{}}}getHeadingComponent=()=>{const{heading:t}=this.props;return t?t==="heading"?"h2":"h3":"div"};renderHeading(t){const e="heading"in t?t.heading:null;return(0,n.jsx)(Nt,{value:e})}renderText(t){const{labels:e,takingSnapshot:s,variant:o}=this.props,r=o?.includes("column"),a="paragraph"in t?t.paragraph:void 0;return r||s?(0,n.jsx)(jN,{item:t,labels:e,children:(0,n.jsx)(Ms,{value:a||""})}):(0,n.jsx)(Ms,{className:$o("col"),value:a||""})}render(){const{blockId:t,columns:e,defaultBackgroundColor:s,heading:o,isLearner:r,items:a,labels:c,lessonId:d,media:l,settings:u,type:h,variant:p,renderText:f=this.renderTextDelegate,renderHeading:g=this.renderHeadingDelegate,getL10nValue:v}=this.props,C=v(l),x=Object.keys(C?.audio??{}).length>0,{entranceAnimation:S,cellPadding:E=1.5,tableWidth:b=76,textPadding:L=.8,textWidth:I=76}=u,N=p==="table",R=e===1,j=e>1,O=N?b:I,B=!N&&R,_=N,k=cN(E),te=lN(L),F=y1(O),K=$o({[h]:!B&&!_||j,[`${h}-custom-width`]:!j,[`${h}-custom-width-table-${F}`]:_,[`${h}-custom-width-text-${F}`]:B,[`heading-custom-text-padding-${te}`]:B,[`${h}-custom-cell-padding-${k}`]:_,"no-animation":!S}),Z=e>2?$o("container-wide"):$o("container",{authoring:!r}),xe=this.getHeadingComponent();return(0,n.jsx)(qt,{className:K.toString(),defaultBackgroundColor:s,children:(0,n.jsxs)("div",{className:Z,"data-block-id":t,"data-block-text":"",children:[(0,n.jsx)("div",{className:$o("row"),children:o!==""?a.slice(0,1).map((fe,oe)=>(0,n.jsx)("div",{className:$o("col"),children:(0,n.jsx)("div",{className:$o("heading"),children:(0,n.jsx)(xe,{children:g(fe)})})},"id"in fe?fe.id:oe)):null}),(0,n.jsx)("div",{className:$o("row"),children:h!=="heading"?a.slice(0,e).map((fe,oe)=>(0,n.jsx)(m.Fragment,{children:f(fe)},"id"in fe?fe.id:oe)):null}),x&&(0,n.jsx)("div",{className:$o("row",{media:!0}),children:(0,n.jsx)("div",{className:$o("col",{media:!0}),children:(0,n.jsx)(En,{blockId:t,hasPadding:!1,index:t,labels:c,lessonId:d,item:{id:t,media:l},media:l,refs:`items:${t}`})})})]})})}},zr=cs(iR),cR=zr,lR=t=>(0,n.jsx)(zr,{type:"twocol",columns:2,...t}),dR=t=>(0,n.jsx)(zr,{type:"threecol",columns:3,...t}),uR=t=>(0,n.jsx)(zr,{type:"fourcol",columns:4,...t}),hR=t=>(0,n.jsx)(zr,{type:"heading",heading:"heading",...t}),mR=t=>(0,n.jsx)(zr,{type:"heading",heading:"subheading",...t}),pR=t=>(0,n.jsx)(zr,{heading:"heading",...t}),fR=t=>(0,n.jsx)(zr,{heading:"subheading",...t});var gR=i(31433),Vr=i.n(gR);class vR extends ie().Component{static defaultProps={animateOnce:!1,delay:0,duration:1,keepStructure:!1,initiallyVisible:!1,offset:150,siblingDelay:0};animating;callbackTimeout;delayedAnimationTimeout;listener;node;scrollableParent;serverSide;visibility={aboveViewport:!1,belowViewport:!1,inViewport:!1,onScreen:!1};constructor(e){super(e),this.serverSide=typeof window>"u",this.listener=Vr()(this.handleScroll.bind(this),50),this.state={canAnimate:!0,classes:"animated",style:{animationDuration:`${this.props.duration}s`,opacity:this.props.initiallyVisible?1:0}}}getElementTop(e){let s=0;for(;e&&e.offsetTop!==void 0&&e.clientTop!==void 0;)s+=e.offsetTop+e.clientTop,e=e.offsetParent;return s}getScrollPos(){return this.scrollableParent instanceof Window&&this.scrollableParent.pageYOffset!==void 0?this.scrollableParent.pageYOffset:this.scrollableParent.scrollTop}getScrollableParentHeight(){return this.scrollableParent instanceof Window&&this.scrollableParent.innerHeight!==void 0?this.scrollableParent.innerHeight:this.scrollableParent.clientHeight}getViewportTop(){return this.getScrollPos()+this.props.offset}getViewportBottom(){return this.getScrollPos()+this.getScrollableParentHeight()-this.props.offset}isInViewport(e){return e>=this.getViewportTop()&&e<=this.getViewportBottom()}isAboveViewport(e){return e<this.getViewportTop()}isBelowViewport(e){return e>this.getViewportBottom()}inViewport(e,s){return this.isInViewport(e)||this.isInViewport(s)||this.isAboveViewport(e)&&this.isBelowViewport(s)}onScreen(e,s){return!this.isAboveScreen(s)&&!this.isBelowScreen(e)}isAboveScreen(e){return e<this.getScrollPos()}isBelowScreen(e){return e>this.getScrollPos()+this.getScrollableParentHeight()}getVisibility(){const e=this.getElementTop(this.node)-this.getElementTop(this.scrollableParent),s=e+this.node.clientHeight,o=this.inViewport(e,s);return{aboveViewport:this.isAboveViewport(e),belowViewport:this.isBelowViewport(e),inViewport:o,onScreen:this.onScreen(e,s)}}componentDidMount(){if(!this.serverSide){const e=this.props.scrollableParentSelector;this.scrollableParent=e?document.querySelector(e):window,this.scrollableParent&&this.scrollableParent.addEventListener?this.scrollableParent.addEventListener("scroll",this.listener):console.warn(`Cannot find element by locator: ${this.props.scrollableParentSelector}`),setTimeout(()=>{this.handleScroll()},0)}}componentWillUnmount(){clearTimeout(this.delayedAnimationTimeout),clearTimeout(this.callbackTimeout),this.listener.cancel(),window&&window.removeEventListener&&window.removeEventListener("scroll",this.listener)}visibilityHasChanged(e,s){return e.inViewport!==s.inViewport||e.onScreen!==s.onScreen}captureRef(e){e&&(this.node=e instanceof HTMLElement?e:e.animateRef)}animate(e,s){const{children:o,duration:r,siblingDelay:a}=this.props;this.delayedAnimationTimeout=setTimeout(()=>{this.animating=!0,this.setState({classes:`animated ${e}`,style:{animationDuration:`${this.props.duration}s`}});let c=r;if(a>0){let d=0;ie().Children.forEach(o,l=>{l&&(d+=ie().Children.count(l.props.children))}),d>0&&(c=r+a*d)}this.callbackTimeout=setTimeout(s,c*1e3)},this.props.delay)}animateIn(e){this.animate(this.props.animateIn,()=>{this.props.animateOnce?this.setState({canAnimate:!1,classes:"",style:{}}):(this.setState({style:{animationDuration:`${this.props.duration}s`,opacity:1}}),this.animating=!1);const s=this.getVisibility();e&&e(s)})}animateOut(e){this.animate(this.props.animateOut,()=>{this.setState({classes:"animated",style:{animationDuration:`${this.props.duration}s`,opacity:0}});const s=this.getVisibility();s.inViewport&&this.props.animateIn?this.animateIn(this.props.afterAnimatedIn):this.animating=!1,e&&e(s)})}shouldNotAnimate(e){return this.props.animateIn&&this.props.animateOut?!e.onScreen:this.props.animateIn?!e.onScreen&&!e.aboveViewport:!e.onScreen&&!e.belowViewport}shouldAnimateIn(e){return this.props.animateIn?this.props.animateOut?e.inViewport:e.inViewport||e.aboveViewport:!1}shouldAnimateOut(e){return this.props.animateOut&&e.onScreen&&this.state.style.opacity===1?this.props.animateIn?e.inViewport:e.inViewport||e.belowViewport:!1}handleScroll(){if(!this.animating&&this.node!=null){const e=this.getVisibility();this.visibilityHasChanged(this.visibility,e)&&(clearTimeout(this.delayedAnimationTimeout),this.shouldNotAnimate(e)?this.setState({classes:"animated",style:{animationDuration:`${this.props.duration}s`,opacity:this.props.initiallyVisible?1:0}}):this.shouldAnimateIn(e)?this.animateIn(this.props.afterAnimatedIn):this.shouldAnimateOut(e)&&this.animateOut(this.props.afterAnimatedOut),this.visibility=e)}}renderChild(e,s,o=0){const{canAnimate:r}=this.state,{initiallyVisible:a,keepStructure:c,siblingDelay:d}=this.props,l=d*o,u=Object.assign({},this.props.style,this.state.style,r&&{animationDelay:`${l}s`,animationFillMode:"forwards"});return(0,n.jsx)(CR,{classes:s,initiallyVisible:a,keepStructure:c,style:u,children:e},o)}renderChildren(e,s){const{children:o,siblingDelay:r}=this.props,a=Array.isArray(s)?s:o;return r&&Array.isArray(a)?[...Array(a.length).keys()].map(c=>this.renderChild(a[c],e,c)):this.renderChild(a,e)}renderWrapped(e){return(0,n.jsx)("div",{ref:s=>{this.node=s},children:this.renderChildren(e)})}renderStructure(e){const{children:s}=this.props;return ie().Children.count(s)===1?ie().Children.map(s,o=>ie().cloneElement(o,{ref:this.captureRef.bind(this)},this.renderChildren(e,o.props.children))):this.renderWrapped(e)}render(){const e=this.props.className?`${this.props.className} ${this.state.classes}`:this.state.classes;return this.props.keepStructure?this.renderStructure(e):this.renderWrapped(e)}}class CR extends ie().Component{static defaultProps={keepStructure:!1};state={hasAnimated:!1};ref;componentDidMount(){this.ref?.addEventListener?.("animationend",this.handleAnimationEnd)}componentWillUnmount(){this.ref?.removeEventListener?.("animationend",this.handleAnimationEnd)}componentDidUpdate(e){e.style.opacity!==this.props.style.opacity&&this.props.style.opacity===0&&this.setState({hasAnimated:!1})}captureRef(e){e&&(this.ref=e instanceof HTMLElement?e:e.animateRef)}handleAnimationEnd=()=>{this.ref&&this.setState({hasAnimated:!0})};renderStructure({style:e}){const{children:s,classes:o}=this.props;return ie().Children.map(s,a=>ie().cloneElement(a,{className:o,style:e,ref:this.captureRef.bind(this)}))}renderWrapped({style:e}){const{children:s,classes:o}=this.props;return(0,n.jsx)("div",{className:o,style:e,ref:r=>{this.ref=r},children:s})}render(){const{initiallyVisible:e,keepStructure:s}=this.props,{hasAnimated:o}=this.state,r=this.props.style,a=r.animationDelay!==void 0&&!e?0:r.opacity,c=Object.assign({},r,{opacity:o?1:a});return s?this.renderStructure({style:c}):this.renderWrapped({style:c})}}const xR=matchMedia("(prefers-reduced-motion: reduce)");function Js(){return xR.matches}const ER=t=>{const{afterAnimatedIn:e,animateBlockEntrance:s,animateIn:o,animateOnce:r,children:a,className:c,duration:d,keepStructure:l,initiallyVisible:u,isLearner:h,offset:p,siblingDelay:f}=t;return h&&s&&!Js()?(0,n.jsx)(vR,{afterAnimatedIn:e,animateIn:o,animateOnce:r??!0,className:c,duration:d??.75,initiallyVisible:u,keepStructure:l,offset:p??200,scrollableParentSelector:"#page-wrap",siblingDelay:f??0,children:a}):Array.isArray(a)?(0,n.jsx)("div",{children:a}):a},zt=(0,Me.Uj)(ER);var df=i(59288);const TR=df.lazy(async()=>{const[t,e]=await Promise.all([i.e("ace").then(i.t.bind(i,72066,23)),i.e("ace").then(i.bind(i,49249)),i.e("ace").then(i.t.bind(i,22813,23)),i.e("ace").then(i.t.bind(i,93020,23)),i.e("ace").then(i.t.bind(i,40864,23)),i.e("ace").then(i.t.bind(i,10695,23)),i.e("ace").then(i.t.bind(i,40864,23)),i.e("ace").then(i.t.bind(i,1883,23)),i.e("ace").then(i.t.bind(i,64580,23)),i.e("ace").then(i.t.bind(i,84557,23)),i.e("ace").then(i.t.bind(i,77443,23)),i.e("ace").then(i.t.bind(i,35761,23)),i.e("ace").then(i.t.bind(i,23977,23)),i.e("ace").then(i.t.bind(i,1672,23)),i.e("ace").then(i.t.bind(i,19356,23)),i.e("ace").then(i.t.bind(i,94443,23)),i.e("ace").then(i.t.bind(i,88191,23)),i.e("ace").then(i.t.bind(i,84390,23)),i.e("ace").then(i.t.bind(i,74445,23)),i.e("ace").then(i.t.bind(i,95402,23)),i.e("ace").then(i.t.bind(i,5361,23)),i.e("ace").then(i.t.bind(i,36240,23))]);return{default:e.default}});class SR extends df.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption({caption:e}){return(0,n.jsx)(Ms,{className:"block-text__code-caption",value:e||""})}render(){const{animateBlockEntrance:e,defaultBackgroundColor:s="",getL10nValue:o,isLearner:r,items:a,labels:c,settings:d,renderCaption:l=this.renderCaptionDelegate}=this.props,{entranceAnimation:u,language:h,paddingBottom:p,paddingTop:f,snippetBackgroundColor:g,snippetColorContrast:v,theme:C,useAdvancedEditor:x,wrapWords:S}=d,E=M()("block-text block-text--code",{"block-text--padding-top":Number(f)===2,"block-text--padding-bottom":Number(p)===2,"block-text--no-animation":!u}),b={backgroundColor:g},L=g==="#fafafa"||wt()(g),I=v??P.Em.DARK;if(!L){const N=jn({backgroundColor:g,contrast:I});Object.assign(b,{"--color-snippet-contrast":N})}return(0,n.jsx)(qt,{className:E,defaultBackgroundColor:s,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:r,children:(0,n.jsx)("div",{className:"block-text__container",children:a.slice(0,1).map(N=>{const R=qc({...N,getL10nValue:o});return(0,n.jsx)("div",{className:"block-text__row",children:(0,n.jsx)("div",{"aria-label":c?.a11yBlockCode,className:"block-text__col",role:ji,children:(0,n.jsxs)("figure",{"aria-labelledby":R.figcaptionId,className:"block-text__figure",role:"figure",children:[(0,n.jsx)(AI,{value:N.code,children:j=>x?(0,n.jsx)(m.Suspense,{fallback:null,children:(0,n.jsx)(TR,{editorProps:{$blockScrolling:!0},maxLines:25,mode:h,name:String(N.id),setOptions:{enableSnippets:!1,showLineNumbers:!0,tabSize:2,fontSize:"1.6rem",useWorker:!1},theme:C,readOnly:!0,width:"100%",wrapEnabled:S,value:(0,ja.htmlDecode)((0,xo.aj)(j))})}):(0,n.jsx)("pre",{className:"block-text__code",dangerouslySetInnerHTML:{__html:(0,xo.aj)(j)},dir:"ltr",style:b})}),N.caption&&(0,n.jsx)("figcaption",{id:R.figcaptionId,children:l(N)})]})})},N.id)})})})})}}const uf=cs(SR);function LR(t,e){const s=rn(),{cardMode:o,className:r="",children:a,disabled:c=!1,tag:d="div",overrideBackground:l=!1,style:u={},...h}=t,{backgroundType:p,cardMode:f,customBackgroundColorContrast:g}=s,C=(0,Me.DX)()?.theme,x=o??f,S=qn()??"#ffffff",E=x===Lo.WHITE,b=p===P.xj.COLOR,L=p===P.xj.ACCENT,I=C?.accentContrast,N=p===P.xj.ACCENT||p===P.xj.COLOR,R=I===P.Em.AUTO&&L||g===P.Em.AUTO&&b,j=p===P.xj.COLOR?g:I,O=[r,"block-card"];if(E)O.push("bg--range-light","block-card--white");else if(c){O.push("block-card--disabled");const B=jn({backgroundColor:S,contrast:j});R&&(u["--color-text"]=B,u["--color-text-opposite"]=B===$e.S6.DARK?$e.S6.LIGHT:$e.S6.DARK)}else{O.push("block-card--transparent");const B=(0,ct.XC)(S),_=ct.t9[B](S);switch(p){case P.xj.LIGHT:case P.xj.GRAY:O.push("bg--range-light");break;case P.xj.IMAGE:O.push("bg--range-dark");break;case P.xj.DARK:case P.xj.BLACK:O.push("bg--range-dark"),u["--color-background-rgb"]=(0,Ai.A)(_)?.slice(0,3);break;default:{const k=jn({backgroundColor:_,contrast:j});N&&k==$e.S6.LIGHT&&O.push("block-card--contrast-light");const te=(0,ct.XC)(_);O.push(`bg--range-${wc()(te.toLowerCase())}`);const F=l?S:_;u["--color-background"]=F,u["--color-background-rgb"]=(0,Ai.A)(F)?.slice(0,3);break}}}return(0,n.jsx)(d,{...h,className:O.join(" "),ref:e,style:u,children:a})}const Rn=(0,m.forwardRef)(LR);var hf=i(59288);const eo=J("block-statement");class bR extends hf.Component{renderTextDelegate;constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this)}static get defaultProps(){return{items:[],type:"a",getL10nValue:()=>{}}}getEntranceAnimationType(){const{type:e}=this.props;switch(e){case"a":return"fadeIn";case"b":case"d":return"fadeInUp";case"c":return"fadeInRight";case"note":return"fadeInGrow"}}getEntranceAnimationDuration(){const{type:e}=this.props;switch(e){case"a":return 1;case"b":case"c":case"d":return .75;case"note":return .5}}renderText({blockId:e,getL10nValue:s,type:o,labels:r,lessonId:a,media:c},{paragraph:d}){const u=o==="note"?RR:hf.Fragment,h=!!(c&&s(c)?.audio);return(0,n.jsx)(u,{children:(0,n.jsxs)("div",{className:eo("quote"),children:[(0,n.jsx)(Ms,{value:d}),h&&(0,n.jsx)("div",{className:eo("audio-container"),children:(0,n.jsx)(En,{blockId:e,hasPadding:!1,index:e,labels:r,lessonId:a,media:c,item:{media:c,id:e},refs:`items:${e}`})})]})})}render(){const{animateBlockEntrance:e,isLearner:s,items:o,renderText:r=this.renderTextDelegate,settings:a,type:c}=this.props,{entranceAnimation:d,divider:l=!0,dividerPadding:u=qI(c),dividerSize:h=JI(c),noteIcon:p=!0,noteSize:f="sm",statementWidth:g=eN(c)}=a,v=rN(g),C=aN(u),x=iN(h),S=f,E=c==="a"||c==="b"||c==="d",b=c==="note",L=eo({[c]:!0,[`${c}-custom-width-${v}`]:!0,[`${c}-divider-off`]:E&&!l,[`${c}-divider-padding-${C}`]:E&&l,[`${c}-divider-size-${x}`]:E&&l,[`note-size-${S}`]:b,[`note-size-${S}-no-icon`]:b&&!p,"no-animation":!d});return(0,n.jsx)(qt,{className:L.toString(),children:(0,n.jsx)("div",{className:eo("wrap"),children:(0,n.jsx)("div",{className:eo("container"),children:(0,n.jsx)("div",{className:eo("row"),children:o.slice(0,1).map(I=>(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:this.getEntranceAnimationType(),duration:this.getEntranceAnimationDuration(),isLearner:s,children:(0,n.jsxs)("div",{className:eo("col"),children:[(0,n.jsx)("div",{className:eo("divider-top-container"),children:(0,n.jsx)("div",{className:eo("divider-top")})}),r(this.props,I),(0,n.jsx)("div",{className:eo("divider-bottom")})]})},I.id))})})})})}}const dl=cs(bR),yR=dl,IR=t=>(0,n.jsx)(dl,{type:"b",...t}),NR=t=>(0,n.jsx)(dl,{type:"c",...t}),jR=t=>(0,n.jsx)(dl,{type:"d",...t}),AR=t=>(0,n.jsx)(dl,{type:"note",...t}),RR=({children:t})=>{const{accentColor:e,backgroundType:s,cardMode:o,courseColor:r,customBackgroundColorContrast:a,noteIcon:c=!0}=rn(),{theme:d}=(0,Me.DX)(),l=qn(),u=s===P.xj.COLOR,h=s===P.xj.ACCENT,p=d?.accentContrast,f=s===P.xj.DARK||s===P.xj.BLACK,v=u||h||f?Lo.TRANSPARENT:o,C=p===P.Em.AUTO&&h||a===P.Em.AUTO&&u,x={},S=(0,m.useMemo)(()=>{if(s!==P.xj.IMAGE&&l==null)return"#000000b3";switch(s){case P.xj.IMAGE:return"";case P.xj.LIGHT:case P.xj.GRAY:return(0,ct.W8)(.9,e??r);case P.xj.DARK:return"#494949";case P.xj.BLACK:return"#333333";default:switch((0,ct.XC)(l)){case ct.lL.LIGHT:return(0,ct.W8)(.3,l);case ct.lL.MED:return(0,ct.W8)(-.2,l);case ct.lL.DARK:case ct.lL.NEAR_BLACK:return(0,ct.W8)(-.4,l)}}},[e,s,l,r]),E=s===P.xj.COLOR?a:p,b=jn({backgroundColor:S,contrast:E});x["--color-background"]=S,C&&(x["--color-text"]=b);const L=eo("note-icon",{off:!c});return(0,n.jsxs)(Rn,{cardMode:v,className:eo("note-card"),style:x,children:[(0,n.jsx)("div",{className:L,children:(0,n.jsx)(Lt,{name:"circle-info"})}),t]})};var qs=i(59288);function mf({ariaLabel:t,children:e,className:s="carousel-controls-item-btn",isActive:o,onClick:r,onKeyDown:a}){return(0,n.jsx)("li",{className:"carousel-controls-item",role:"listitem",children:(0,n.jsx)("button",{"aria-current":o,"aria-label":t,className:s,onClick:r,onKeyDown:a,tabIndex:o?0:-1,type:"button",children:e})})}function Qd({children:t,iconNameLeft:e="chevron-left-light",iconNameRight:s="chevron-right-light",isInfinite:o=!0,isRTL:r=!1,labelCarousel:a="Carousel",labelCarouselRoleDesc:c="Carousel",labelSlideControls:d="Slide controls",labelSlideControlsGoToNext:l="Go to next slide",labelSlideControlsGoToPrevious:u="Go to previous slide",labelSlideControlsGoToSlide:h="Go to slide",labelSlidePreposition:p="of",labelSlideRoleDesc:f="Slide",onChange:g,ref:v,renderSlideIndicator:C,shouldMouseEmulateTouch:x=!1,shouldUseCounter:S=!1,shouldUseGoToSlide:E=!0}){const[b,L]=qs.useState(0),I=(0,as.A)(b)??0,N=qs.useRef(void 0),R=qs.useRef(void 0),j=qs.useRef(!1),O=qs.useRef(!1),B=qs.useRef(void 0),_=qs.useRef(void 0),k=qs.Children.count(t),te=(0,as.A)(k),F=qs.useMemo(()=>Array.from({length:k}),[k]),K=k>1;qs.useImperativeHandle(v,()=>({navigateToSlide:(Ae,_e=!0)=>{L(Ae);const Qe=N.current?.children?.[Ae]?.firstElementChild;_e&&Qe?.focus()}}),[L]);const Z=qs.useCallback(({activeIndex:Ae,dir:_e})=>{const Qe=o?Ae-1>=0?Ae-1:k-1:Math.max(0,Ae-1),pt=o?Ae+1<=k-1?Ae+1:0:Math.min(k-1,Ae+1);return _e==="left"?r?pt:Qe:r?Qe:pt},[o,r,k]),xe=qs.useCallback(()=>{L(Ae=>Z(r?{activeIndex:Ae,dir:"right"}:{activeIndex:Ae,dir:"left"}))},[Z,r]),fe=qs.useCallback(()=>{L(Ae=>Z(r?{activeIndex:Ae,dir:"left"}:{activeIndex:Ae,dir:"right"}))},[Z,r]),oe=qs.useCallback(Ae=>{let _e=!1,Qe=b;switch(Ae.key){case"ArrowLeft":_e=!0,Qe=Z({activeIndex:b,dir:"left"});break;case"ArrowRight":_e=!0,Qe=Z({activeIndex:b,dir:"right"});break;case"Home":_e=!0,Qe=0;break;case"End":_e=!0,Qe=k-1;break}if(_e&&(Ae.stopPropagation(),Ae.preventDefault()),b!==Qe){const pt=N.current?.children?.[Qe]?.firstChild;pt?.focus(),pt?.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),L(Qe)}},[b,Z,k]);qs.useEffect(()=>{I!==b&&g?.(b)},[b,g,I]),qs.useEffect(()=>{k<te&&b>k-1&&L(k-1)},[b,te,k]),qs.useEffect(()=>{const Ae=Ne=>{Ne.target.tagName==="IMG"&&Ne.preventDefault(),B.current=Ne.screenX},_e=Ne=>{const Ke=window.visualViewport?.scale??1,He=window.getSelection().toString()!=="";if(!O.current&&Ke<=1.01&&!He&&B.current!=null){_.current=Ne.screenX;const dt=_.current-B.current;Math.abs(dt)>50&&(window.getSelection().empty(),j.current=!0,B.current=void 0,_.current=void 0,dt<0?L(Ht=>Z({activeIndex:Ht,dir:"right"})):L(Ht=>Z({activeIndex:Ht,dir:"left"})))}},Qe=Ne=>{j.current&&Ne.stopPropagation(),j.current=!1,O.current=!1,B.current=void 0,_.current=void 0},pt=Ne=>{if(Ne.touches.length>1){O.current=!0;return}Ne.changedTouches.length===1&&Ne.changedTouches[0]&&(B.current=Ne.changedTouches[0].screenX)},ls=Ne=>{const Ke=window.visualViewport?.scale??1,He=window.getSelection().toString()!=="";if(!O.current&&Ke<=1.01&&!He&&B.current!=null&&Ne.changedTouches[0]){_.current=Ne.changedTouches[0].screenX;const dt=_.current-B.current;Math.abs(dt)>50&&(j.current=!0,B.current=void 0,_.current=void 0,dt<0?L(Ht=>Z({activeIndex:Ht,dir:"right"})):L(Ht=>Z({activeIndex:Ht,dir:"left"})))}},nt=()=>{j.current=!1,O.current=!1,B.current=void 0,_.current=void 0},Ce=R.current;return x&&(Ce?.addEventListener("mousedown",Ae,{capture:!0}),Ce?.addEventListener("mousemove",_e,{capture:!0}),Ce?.addEventListener("click",Qe,{capture:!0})),Ce?.addEventListener("touchstart",pt,{passive:!0}),Ce?.addEventListener("touchmove",ls,{passive:!0}),Ce?.addEventListener("touchend",nt,{passive:!0}),Ce?.addEventListener("touchcancel",nt,{passive:!0}),()=>{x&&(Ce?.removeEventListener("mousedown",Ae),Ce?.removeEventListener("mousemove",_e),Ce?.removeEventListener("mouseup",nt)),Ce?.removeEventListener("touchstart",pt),Ce?.removeEventListener("touchmove",ls),Ce?.removeEventListener("touchend",nt),Ce?.removeEventListener("touchcancel",nt)}},[Z,x,k]);const we=Ae=>()=>{N.current?.children?.[Ae]?.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),L(Ae)};return(0,n.jsxs)("div",{"aria-label":a,"aria-roledescription":c,className:"carousel",dir:r?"rtl":void 0,role:"region",style:{"--carousel-active-index":b},children:[K&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{"aria-label":d,className:"carousel-controls",role:"group",children:[E&&(0,n.jsx)("ul",{className:"carousel-controls-items",ref:N,role:"list",children:F.map((Ae,_e)=>{const Qe=b===_e,pt=we(_e);return C?C({index:_e,isActive:Qe,onClick:pt,onKeyDown:oe}):(0,n.jsx)(mf,{ariaLabel:h+" "+(_e+1),isActive:Qe,onClick:pt,onKeyDown:oe,children:(0,n.jsx)(Lt,{className:"carousel-controls-item-btn-icon",name:Qe?"circle":"circle-solid"})},_e)})}),(0,n.jsx)("button",{"aria-disabled":o?void 0:b===0,"aria-label":u,className:"carousel-controls-prev",onClick:!o&&b===0?void 0:xe,type:"button",children:(0,n.jsx)(Lt,{className:"carousel-controls-prev-icon",name:r?s:e})}),(0,n.jsx)("button",{"aria-disabled":o?void 0:b===k-1,"aria-label":l,className:"carousel-controls-next",onClick:!o&&b===k-1?void 0:fe,type:"button",children:(0,n.jsx)(Lt,{className:"carousel-controls-next-icon",name:r?e:s})}),S&&(0,n.jsxs)("div",{className:"carousel-controls-counter",children:[(0,n.jsx)("div",{className:"carousel-controls-counter-text",children:`${b+1} ${p} ${k}`}),(0,n.jsx)("div",{className:"carousel-controls-counter-line",children:(0,n.jsx)("div",{className:"carousel-controls-counter-line-runner",style:{width:`${Number(((b+1)/k).toFixed(2))*100}%`}})})]})]})}),(0,n.jsx)("div",{"aria-live":"polite",className:"carousel-slides",ref:R,children:qs.Children.map(t,(Ae,_e)=>(0,n.jsx)("div",{"aria-label":`${_e+1} ${p} ${k}`,"aria-roledescription":f,className:"carousel-slide",hidden:b!==_e,inert:b!==_e,role:"group",children:Ae}))})]})}var ul=i(59288);const OR="div",pf=ul.createContext(void 0);function PR({children:t,element:e,...s},o){const[r,a]=ul.useState();return(0,n.jsx)(pf.Provider,{value:r,children:ul.createElement(e??OR,{...s,ref:o},t,(0,n.jsx)("div",{ref:a}))})}const Zd=ul.forwardRef(PR);function Dle(){return ul.useContext(pf)}function Yd(t){const e=s=>{const o=(0,Me.Wz)();return(0,n.jsx)(t,{...s,isRTL:o})};return e.displayName=`withRTL(${t.displayName||t.name})`,e}const Xd=({blockId:t,carouselRef:e,children:s,items:o})=>{const r=(0,m.useRef)(null),a=e??r;return(0,m.useEffect)(()=>{const c=d=>{const{path:l}=d.detail,{blockId:u,cardId:h}=Pc(l,["block","card"]);if(u===t){const p=o.findIndex(f=>f.id===h);p>=0&&a.current?.navigateToSlide?.(p,!1)}};return window.addEventListener(ms,c),()=>{window.removeEventListener(ms,c)}},[o,t,a]),(0,n.jsx)(n.Fragment,{children:s({carouselRef:e})})},Vt=J("block-quote"),hl=({avatar:t,alt:e,l10nId:s,showAvatar:o})=>(0,n.jsx)(An,{alt:(0,gn.Ll)(e),className:Vt("avatar",{hidden:!o}),"data-l10n-id":s,src:t}),MR=({alt:t,animateBlockEntrance:e,avatar:s,children:o,l10nId:r,isAuthorBlank:a=!1,isLearner:c,showAvatar:d,type:l})=>{const u=Vt("col",{"no-avatar":!s}),h=s?(0,n.jsx)("div",{className:Vt("image"),children:(0,n.jsx)("div",{className:Vt("avatar-wrap"),children:l==="c"?(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeInLeftSmall",isLearner:c,children:(0,n.jsx)(hl,{avatar:s,alt:t,l10nId:r,showAvatar:d})}):(0,n.jsx)(hl,{avatar:s,alt:t,l10nId:r,showAvatar:d})})}):null;return(0,n.jsx)("div",{className:Vt("container"),children:(0,n.jsx)("div",{className:Vt("row"),children:(0,n.jsxs)("div",{className:u,children:[(0,n.jsx)("div",{className:Vt("divider-top")}),(0,n.jsxs)("div",{className:Vt("figure",{"no-author":a,"no-avatar":!a&&!d}),children:[h,o]}),(0,n.jsx)("div",{className:Vt("divider-bottom")})]})})})},DR=({avatar:t,children:e,alt:s,l10nId:o,showAvatar:r})=>(0,n.jsx)("div",{className:Vt("figure"),children:(0,n.jsx)("div",{className:Vt("container"),children:(0,n.jsxs)("div",{className:Vt("row"),children:[(0,n.jsx)("div",{className:Vt("col"),children:t&&r?(0,n.jsx)(hl,{avatar:t,alt:s,l10nId:o,showAvatar:r}):null}),(0,n.jsx)("div",{className:Vt("col"),children:e})]})})}),kR=({background:t,avatar:e,children:s,alt:o,l10nId:r,showAvatar:a})=>(0,n.jsx)("div",{className:Vt("background"),style:{backgroundImage:t??""},children:(0,n.jsx)("div",{className:Vt("container"),children:(0,n.jsx)("div",{className:Vt("row"),children:(0,n.jsx)("div",{className:Vt("col"),children:(0,n.jsxs)("div",{className:Vt("figure"),children:[e&&a?(0,n.jsx)(hl,{avatar:e,alt:o,l10nId:r,showAvatar:a}):null,s]})})})})});class wR extends ie().Component{renderTextDelegate;renderCaptionDelegate;constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{editable:!1,items:[],type:"a",getL10nValue:()=>{}}}getQuoteEntranceAnimationType(){const{type:e}=this.props;switch(e){case"a":case"b":case"background":return"fadeInUp";case"d":case"c":return"fadeInRight"}}getBackgroundImageUrl(e,s){const o=e?.alpha??tN(s),r=(0,rs.ME)(e),a=sN(s);return(0,N1.A)({alpha:o,color:a,url:r})?.backgroundImage}renderText(e,{paragraph:s}){const o=s||"",r=Vt("text",{blank:o===""}).toString();return(0,n.jsx)(Ms,{className:r,value:o})}renderCaption(e,{name:s}){const o=Vt("caption",{blank:s===""}).toString();return(0,n.jsx)(Ms,{className:o,value:s})}render(){const{animateBlockEntrance:e,getL10nValue:s,isLearner:o,items:r,settings:a,type:c,renderText:d=this.renderTextDelegate,renderCaption:l=this.renderCaptionDelegate}=this.props,u=92,{avatarSize:h=T3(c),divider:p=!0,dividerSize:f=u,entranceAnimation:g,quoteAlignment:v="left",quoteIcon:C=!0,quotesInline:x,quotePadding:S=2,quoteWidth:E=E3(c)}=a,[b]=r,{avatar:L,background:I}=b,N=s(L?.media)?.image,R=(0,rs.xm)(N),j=N?.alt,O=(0,Pt.pP)(L.media),B=s(I?.media)?.image,_=B?.overlayColor,k=this.getBackgroundImageUrl(B,_),te=a?.avatar??R!=="",F=R&&R!=="",K=c==="background",Z=K&&_==="light",xe=L3(E),fe=b3(S),oe=S3(c,h),we=oN(f),Ae=c==="a",_e=c==="c"||K,Qe=c!=="b"&&!K,pt=b?.name==="",ls=b?.paragraph==="",nt=Vt(null,{[c]:!0,[`${c}-custom-width-${xe}`]:!0,[`${c}-divider-off`]:Ae&&!p,[`${c}-divider-size-${we}`]:Ae&&p,[`${c}-quote-padding-${fe}`]:!0,[`${c}-align-${v}`]:K,[`${c}-${xe}-no-avatar`]:!R||!te,[`${c}-avatar-size-${oe}`]:te&&F,[`${c}-quote-icon-off`]:_e&&!C,[`${c}-legacy-quote-mark`]:Qe&&!x,[`${c}-overlay-legacy`]:!_,[`${c}-overlay-light`]:Z,"no-animation":!g}).toString(),Ce=(0,n.jsx)("div",{className:Vt("wrap",{blank:pt||ls}),children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:this.getQuoteEntranceAnimationType(),isLearner:o,siblingDelay:.15,children:(0,n.jsxs)("figure",{children:[(0,n.jsx)("blockquote",{children:d(this.props,b)}),(0,n.jsx)("figcaption",{children:l(this.props,b)})]})})});let Ne;switch(c){case"d":Ne=(0,n.jsx)(DR,{type:c,avatar:R,alt:j,l10nId:O,showAvatar:te,children:Ce});break;case"background":Ne=(0,n.jsx)(kR,{type:c,avatar:R,alt:j,background:k,l10nId:O,showAvatar:te,children:Ce});break;default:Ne=(0,n.jsx)(MR,{type:c,animateBlockEntrance:e,avatar:R,alt:j,l10nId:O,isAuthorBlank:pt,isLearner:o,showAvatar:te,children:Ce})}return(0,n.jsx)(qt,{className:nt,children:Ne})}}const ml=cs(wR),BR=t=>(0,n.jsx)(ml,{...t}),_R=t=>(0,n.jsx)(ml,{type:"b",...t}),UR=t=>(0,n.jsx)(ml,{type:"c",...t}),HR=t=>(0,n.jsx)(ml,{type:"d",...t}),FR=t=>(0,n.jsx)(ml,{type:"background",...t});class zR extends ie().Component{static get defaultProps(){return{type:"carousel",items:[],onStep:Function.prototype,getL10nValue:()=>{}}}handleChangeCarousel=e=>{this.props.onStep?.(this.props.items[e])};renderText=(e,{paragraph:s})=>{const o=s||"",r=Vt("text",{blank:s===""}).toString();return(0,n.jsx)(Ms,{className:r,value:o})};renderCaption=(e,{name:s})=>{const o=Vt("caption",{blank:s===""}).toString();return(0,n.jsx)(Ms,{className:o,value:s})};render(){const{blockId:e,animateBlockEntrance:s,editable:o,getL10nValue:r,isRTL:a,isLearner:c,isLessonBlocksList:d=!1,items:l,labels:u,previewType:h,settings:p,renderText:f=this.renderText,renderCaption:g=this.renderCaption,type:v}=this.props,{avatar:C=!0,avatarSize:x=T3(v),entranceAnimation:S,quotesInline:E,quotePadding:b=2,quoteWidth:L=E3(v),showBorder:I=!0}=p,R=v!=="b"&&!(v==="background"),j=L3(L),O=b3(b),B=S3(v,x),_=h==="mobile-portrait"||h==="mobile-landscape",k=Vt({[v]:!0,[`${v}-custom-width-${j}`]:!0,[`${v}-quote-padding-${O}`]:!0,[`${v}-${j}-no-avatar`]:!C,[`${v}-avatar-size-${B}`]:C,[`${v}-legacy-quote-mark`]:!d&&R&&!E,"no-animation":!S,"hide-border":!I,editable:o}).toString(),te=l.map(F=>{const K=r(F?.avatar?.media)?.image,Z=K?.alt,xe=(0,rs.xm)(K),fe=C??xe!=="",oe="l10nId"in F.avatar.media?F.avatar.media.l10nId:void 0;return(0,n.jsx)("div",{className:Vt("slide"),children:(0,n.jsxs)("figure",{className:Vt("figure"),children:[xe&&C?(0,n.jsx)(hl,{avatar:xe,alt:Z,l10nId:oe,showAvatar:fe}):null,(0,n.jsxs)(zt,{animateBlockEntrance:s,animateIn:"fadeInUp",siblingDelay:.25,isLearner:c,children:[(0,n.jsx)("blockquote",{children:f(this.props,F)}),(0,n.jsx)("figcaption",{children:g(this.props,F)})]})]})},F.id)});return(0,n.jsx)("div",{className:Vt("slider-container"),children:(0,n.jsx)(qt,{className:k,children:(0,n.jsx)(Zd,{className:Vt("wrap"),children:(0,n.jsx)("div",{className:Vt("container"),children:(0,n.jsx)("div",{className:Vt("col"),children:(0,n.jsx)(Rn,{className:Vt("box"),children:(0,n.jsx)(Xd,{blockId:e,items:l,children:({carouselRef:F})=>(0,n.jsx)(Qd,{ref:F,isRTL:a,labelCarousel:u?.a11yBlockQuoteCarousel,labelCarouselRoleDesc:u?.a11yBlockQuoteCarouselRoleDescription,labelSlideControls:u?.a11yBlockQuoteCarouselSlideControls,labelSlideControlsGoToNext:u?.a11yBlockQuoteCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:u?.a11yBlockQuoteCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:u?.a11yBlockQuoteCarouselSlideControlsGoToSlide,labelSlidePreposition:u?.a11yBlockQuoteCarouselSlidePreposition,labelSlideRoleDesc:u?.a11yBlockQuoteCarouselSlideRoleDescription,onChange:this.handleChangeCarousel,shouldMouseEmulateTouch:_,children:te})})})})})})})})}}const VR=Yd(cs(zR));function wi(t,e,s,o,r){const c=e==="bottom"&&s||!o&&e!=="top"?"bottom":"top",d={renderOrder:["text"],isOverlayAudio:!1};if(!t)return d;const l=!!t.audio,u=!!t.image,h=!!t.video,p=!!t.embed,f=u||h,g=()=>{const x=u?"image":"video",S={top:l?["audio","text",x]:["text",x],bottom:l?["text","audio",x]:["text",x],legacyTop:l?["audio",x,"text"]:[x,"text"],legacyBottom:l?[x,"text","audio"]:[x,"text"]};return o&&r==="timeline"&&!e?S.top:o&&r!=="timeline"?c==="bottom"?S.legacyBottom:S.legacyTop:c==="bottom"?S.bottom:S.top},v=()=>{const x={top:l?["audio","text","embed"]:["text","embed"],bottom:l?["text","embed","audio"]:["text","embed"],legacyTop:l?["audio","embed","text"]:["embed","text"],legacyBottom:l?["embed","text","audio"]:["embed","text"]};return o&&r==="timeline"&&!e?x.legacyTop:o&&r!=="timeline"?c==="bottom"?x.legacyBottom:x.legacyTop:c==="bottom"?x.bottom:x.top},C=()=>c==="bottom"?["text","audio"]:["audio","text"];return l&&!f&&!p?{...d,renderOrder:C()}:f&&!l&&!p?{...d,renderOrder:g()}:p&&!l&&!f?{...d,renderOrder:v()}:l&&f&&!p?r==="labeled-graphic"||c==="top"||r==="process"?{...d,renderOrder:g(),audioOnlyMedia:{audio:t.audio},imageOnlyMedia:{image:t.image},videoOnlyMedia:{video:t.video}}:{...d,renderOrder:t.video?["text","video","audio"]:["text","overlay"],audioOnlyMedia:{audio:t.audio},imageOnlyMedia:{image:t.image},videoOnlyMedia:{video:t.video},isOverlayAudio:!t.video}:l&&p&&!f?{...d,renderOrder:v(),audioOnlyMedia:{audio:t.audio},embedOnlyMedia:{embed:t.embed}}:d}var ff=i(59288);const to=J("block-list"),WR=class extends ff.Component{static get defaultProps(){return{editable:!1,items:[],onStep:Function.prototype,type:"numbered"}}nextNumber(t){const{items:e}=this.props,o=e.length>0?e[t].number:null;let r;return!isNaN(o)&&o!==""&&(r=parseInt(o,10)+1),(r<1||r>99)&&(r=null),r}render(){const{animateBlockEntrance:t,blockId:e,defaultBackgroundColor:s,editable:o,hasAudioExpansionFlag:r,hasBlockIncrementalUpdatesFlag:a,isLearner:c,items:d,labels:l,lessonId:u,media:h,onStep:p,settings:f,type:g}=this.props,{audioPosition:v,bulletPadding:C,entranceAnimation:x,listWidth:S}=f,E=wi(h,v,r),b=nN(C),L=y1(S),I=to({[g]:!0,[`${g}-custom-width-${L}`]:!0,[`${g}-bullet-padding-${b}`]:!0,"no-animation":!x}),N=g==="numbered"?"ol":"ul";return(0,n.jsx)(qt,{className:I.toString(),defaultBackgroundColor:s,children:(0,n.jsx)("div",{className:to("container"),children:(0,n.jsx)("div",{className:to("row"),children:(0,n.jsx)(Zd,{className:to("col"),children:(0,n.jsx)(zt,{animateBlockEntrance:t,animateIn:"fadeInRight",className:to("animated-item").toString(),isLearner:c,keepStructure:!0,siblingDelay:.25,children:(0,n.jsx)("div",{className:"blocks-list__container",children:E.renderOrder.map((R,j)=>{if(R==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(N,{className:to("list"),role:"list",children:d.map((O,B)=>{const _={key:O.id,index:B,lessonId:u,blockId:e,type:g,hasBlockIncrementalUpdatesFlag:a,editable:o,nextNumber:this.nextNumber.bind(this),onStep:p,...O};return this.props.renderItem?this.props.renderItem(_):(0,n.jsx)(GR,{..._})})})},`text-${j}`);if(R==="audio")return(0,n.jsx)("div",{className:M()("block-list__media",{"audio-on-top":E.renderOrder[0]==="audio","audio-on-bottom":E.renderOrder[0]!=="audio"}),children:(0,n.jsx)(En,{blockId:e,hasPadding:!1,index:e,labels:l,lessonId:u,media:h,item:{media:h},refs:`items:${e}`})},`${R}-${j}`)})})})})})})})}};class GR extends ff.Component{renderTextDelegate;animateRef;static get defaultProps(){return{className:""}}constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this)}renderText(e){return(0,n.jsx)(Ms,{...e})}handleChangeCheckbox=()=>{this.props.onStep(this.props)};render(){const{type:e,id:s,index:o,number:r,paragraph:a,editable:c,className:d,renderText:l=this.renderTextDelegate,style:u}=this.props,h={allowTabNavigation:!0,className:"block-list__content brand--linkColor cursorAuto",editable:c,id:s,value:a};return(0,n.jsxs)("li",{className:M()("block-list__item",`block-list__item--${e}`,d),ref:p=>{this.animateRef=p},role:"listitem",style:u,children:[e==="numbered"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:to("number"),children:r||o+1}),l(h)]}),e==="bulleted"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:"\u2022"}),(0,n.jsx)(Lt,{className:to("bullet"),name:"circle-solid"}),l(h)]}),e==="checkboxes"&&(0,n.jsxs)("label",{className:to("option"),children:[(0,n.jsx)("input",{type:"checkbox",className:to("checkbox-input"),onChange:this.handleChangeCheckbox}),(0,n.jsx)("div",{className:to("checkbox"),children:(0,n.jsx)(Lt,{className:to("checkbox__icon"),name:"check"})}),l(h)]})]})}}const X1=Ld("rise-audio-release","hasAudioExpansionFlag")(t=>(0,n.jsx)(WR,{...t})),KR=X1,$R=t=>(0,n.jsx)(X1,{type:"checkboxes",...t}),QR=t=>(0,n.jsx)(X1,{type:"bulleted",...t});var J1=i(59288);class ZR extends J1.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{type:"hero",editable:!1,getL10nValue:()=>{},lessonId:"",blockId:"",items:[]}}renderCaption(e,s){return(0,n.jsx)(Ms,{className:"block-image__caption",value:s})}render(){const{aiMagicIcon:e,aiOverlay:s,animateBlockEntrance:o,blockId:r,defaultBackgroundColor:a,editable:c,getL10nValue:d,isLastBlock:l,isLearner:u,items:h,type:p,labels:f,lessonId:g,settings:v,renderCaption:C=this.renderCaptionDelegate}=this.props,{entranceAnimation:x,zoomOnClick:S}=v,E=M()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!x}),b=h[0],{id:L,caption:I}=b,{image:N,audio:R}=d(b.media),j=N?.alt,O=(0,rs.ME)(N),B=N?.dimensions,_=B?.width||B?.originalWidth,k=B?.height||B?.originalHeight,te=qc({caption:I,editable:c,id:L,getL10nValue:d}),F=l?50:300,K=!u&&!O,Z=_&&k?_/k:void 0,xe=M()("block-image__image",{"block-image__image--audio-overlay":!!R});return(0,n.jsx)(qt,{className:E,defaultBackgroundColor:a,children:(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsx)("div",{className:"block-image__row",children:(0,n.jsx)("div",{className:"block-image__col",children:(0,n.jsx)(zt,{animateBlockEntrance:o,animateIn:"fadeIn",isLearner:u,offset:F,children:(0,n.jsxs)(te.tagName,{"aria-labelledby":te.figcaptionId,className:"block-image__figure",role:te.role,children:[(0,n.jsxs)("div",{className:xe,children:[K?(0,n.jsxs)("div",{className:"block-image__waiting",style:{aspectRatio:Z},children:[(0,n.jsx)("div",{children:e}),(0,n.jsx)("div",{className:"block-image__waiting-text",children:"Waiting for image\u2026"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ki,{alt:j,l10nId:(0,Pt.pP)(b.media),disableZoom:!S,height:k,labels:f,maxHeight:p==="full"?380:900,src:O,width:_}),R&&(0,n.jsx)(En,{blockId:r,index:`${r}-${L}-0`,isOverlayAudio:!0,item:b,labels:f,lessonId:g,media:b.media,renderMediaType:"audio"})]}),s&&(0,n.jsx)("div",{className:"block-image__ai-overlay",children:s})]}),(c||I)&&(0,n.jsx)("figcaption",{id:te.figcaptionId,children:C(L,I)})]})})})})})})}}const YR=cs(ZR),XR=(t,e,s,o)=>e?o:(0,n.jsx)(zt,{animateBlockEntrance:t,animateIn:"fadeIn",isLearner:s,duration:1,children:o});class JR extends J1.Component{renderCaptionDelegate;renderParagraphDelegate;constructor(e){super(e),this.renderParagraphDelegate=this.renderParagraph.bind(this),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{blockId:"",getL10nValue:()=>{},editable:!1,items:[],lessonId:"",type:"text-aside"}}renderParagraph(e,s){return(0,n.jsx)(Ms,{className:"block-image__text",value:s})}renderCaption(e,s){return(0,n.jsx)(Ms,{className:"block-image__caption",value:s})}renderImage(e,s,o,r){const{blockId:a,editable:c,lessonId:d,renderCaption:l=this.renderCaptionDelegate,getL10nValue:u}=this.props,{image:h,audio:p}=u(o.media),f=h?.alt,g=(0,rs.ME)(h),v=h?.dimensions,C=v?.width||v?.originalWidth,x=v?.height||v?.originalHeight,S=qc({caption:s,editable:c,id:e,getL10nValue:u}),{animateBlockEntrance:E,isLearner:b,labels:L,settings:{zoomOnClick:I}}=this.props,N=M()("block-image__image",{"block-image__image--audio-overlay":!!p});return(0,n.jsx)(zt,{animateBlockEntrance:E,animateIn:r==="right"?"fadeInRight":"fadeInLeft",isLearner:b,children:(0,n.jsxs)(S.tagName,{"aria-labelledby":S.figcaptionId,className:"block-image__figure",role:S.role,children:[(0,n.jsxs)("div",{className:N,children:[(0,n.jsx)(ki,{alt:f,disableZoom:!I,height:x,l10nId:(0,Pt.pP)(o?.media),labels:L,maxHeight:900,src:g,width:C}),p&&(0,n.jsx)(En,{blockId:a,index:`${a}-${e}-0`,isOverlayAudio:!0,item:o,labels:L,lessonId:d,media:o.media,renderMediaType:"audio"})]}),(c||s)&&(0,n.jsx)("figcaption",{id:S.figcaptionId,children:l(e,s)})]})})}render(){const{defaultBackgroundColor:e,items:s,renderParagraph:o=this.renderParagraphDelegate,settings:r,type:a}=this.props,{entranceAnimation:c,imagePosition:d,imageSize:l}=r,u=d==="right",h=M()(`block-image block-image--${a}`,{"block-image--small":l==="small","block-image--large":l==="large","block-image--reverse":u,"block-image--no-animation":!c}),p=s[0],{id:f,caption:g}=p,v="paragraph"in p?p.paragraph:void 0;return(0,n.jsx)(qt,{className:h,defaultBackgroundColor:e,children:(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsxs)("div",{className:"block-image__row",children:[(0,n.jsx)("div",{className:"block-image__col",children:u?o(f,v):this.renderImage(f,g,p,"left")}),(0,n.jsx)("div",{className:"block-image__col",children:u?this.renderImage(f,g,p,"right"):o(f,v)})]})})})}}const qR=cs(JR);class eO extends J1.Component{renderCaptionDelegate;renderOverlayDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this),this.renderOverlayDelegate=this.renderOverlay.bind(this)}static get defaultProps(){return{blockId:"",editable:!1,getL10nValue:()=>{},items:[],lessonId:"",type:"full"}}renderCaption(e,s){return(0,n.jsx)(Ms,{className:"block-image__caption",value:s})}renderOverlay(e,s){return(0,n.jsx)(Ms,{className:"block-image__paragraph",value:s})}renderOverlayCaption(e,s){const{animateBlockEntrance:o,isLearner:r,renderOverlay:a=this.renderOverlayDelegate}=this.props;return(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsx)("div",{className:"block-image__row",children:(0,n.jsx)("div",{className:"block-image__col",children:(0,n.jsx)(zt,{animateBlockEntrance:o,animateIn:"fadeInUp",isLearner:r,duration:1,children:a(e,s)})})})})}render(){const{animateBlockEntrance:e,blockId:s,defaultBackgroundColor:o,editable:r,getL10nValue:a,isLearner:c,items:d,labels:l,lessonId:u,settings:h,type:p,renderCaption:f=this.renderCaptionDelegate}=this.props,{entranceAnimation:g,opacity:v,opacityColor:C}=h,x=I1(h?.backgroundColor,o),S=M()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!g,"block-image--dark":(0,ct.cP)(x)}),E={opacity:v||.6,backgroundColor:C||"transparent"},b=d[0],{id:L,caption:I}=b,{image:N,audio:R}=a(b.media),j=N?.key,O=(0,rs.ME)(N),B=N?.dimensions,_=B?.width||B?.originalWidth,k=B?.height||B?.originalHeight,te=(0,gn.Ll)(N?.alt),F=p==="overlay",K=qc({caption:I,editable:r,id:L,isOverlayType:F,getL10nValue:a});return(0,n.jsxs)(qt,{"aria-labelledby":K.figcaptionId,className:S,defaultBackgroundColor:o,role:K.role,tag:K.tagName,children:[XR(e,F,c,(0,n.jsxs)("div",{className:"block-image__figure",children:[j&&(0,n.jsxs)("div",{className:"block-image__image","data-l10n-id":(0,Pt.pP)(b?.media),style:{backgroundImage:`url('${O}')`},children:[(0,n.jsx)(An,{alt:te,height:k,src:O,width:_}),(0,n.jsx)("div",{className:"block-image__overlay",style:E}),R&&(0,n.jsx)(En,{blockId:s,index:`${s}-${L}-0`,isOverlayAudio:!0,item:b,labels:l,lessonId:u,media:b.media,renderMediaType:"audio"})]}),F?this.renderOverlayCaption(L,I):null]})),!F&&(r||I)&&(0,n.jsx)("figcaption",{className:"block-image__container",id:K.figcaptionId,children:f(L,I)})]})}}const gf=cs(eO),tO=t=>(0,n.jsx)(gf,{type:"overlay",...t});var sO=i(59288);function vf(t){class e extends sO.Component{static displayName=`withGalleryCaption(${t.displayName||t.name})`;renderCaptionDelegate;constructor(o){super(o),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption(o,r,a=!0){return(0,n.jsx)(Ms,{className:"block-gallery__caption",value:r,allowTabNavigation:a})}render(){const{renderCaption:o=this.renderCaptionDelegate}=this.props;return(0,n.jsx)(t,{...this.props,renderCaption:o})}}return e}var Jd=i(59288);const Cf=J("block-gallery-carousel");function nO({blockId:t,animateBlockEntrance:e,defaultBackgroundColor:s,editable:o,isLearner:r,labels:a,lessonId:c,items:d,onStep:l,previewType:u,renderCaption:h,settings:p}){d||=[];const[f,g]=Jd.useState(0),v=Jd.useCallback(E=>{g(E),l?.(d[E])},[d,l]),C=u===$e.o4.MOBILE_PORTRAIT||u===$e.o4.MOBILE_LANDSCAPE,x=Cf({noAnimation:!p?.entranceAnimation||Js()}).toString(),S=(0,Me.Wz)();return(0,n.jsx)(qt,{className:x,defaultBackgroundColor:s,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",offset:200,isLearner:r,children:(0,n.jsx)(Zd,{className:Cf("container").toString(),children:(0,n.jsx)(Xd,{blockId:t,items:d,children:({carouselRef:E})=>(0,n.jsx)(Qd,{ref:E,isRTL:S,labelCarousel:a?.a11yBlockImageCarousel,labelCarouselRoleDesc:a?.a11yBlockImageCarouselRoleDescription,labelSlideControls:a?.a11yBlockImageCarouselSlideControls,labelSlideControlsGoToNext:a?.a11yBlockImageCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:a?.a11yBlockImageCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:a?.a11yBlockImageCarouselSlideControlsGoToSlide,labelSlidePreposition:a?.a11yBlockImageCarouselSlidePreposition,labelSlideRoleDesc:a?.a11yBlockImageCarouselSlideRoleDescription,onChange:v,shouldMouseEmulateTouch:C,children:d.map((b,L)=>(0,n.jsx)(rO,{activeIndex:f,blockId:t,editable:o,index:L,item:b,labels:a,lessonId:c,renderCaption:h,settings:p},b.id))})})})})})}const oO=vf(nO),q1=J("block-gallery-carousel-item");function rO({activeIndex:t,blockId:e,editable:s,index:o,item:r,labels:a,lessonId:c,renderCaption:d,settings:l}){const[u,h]=Jd.useState(!1),{image:p,audio:f}=(0,It.QQ)(r.media),g=p?.dimensions,v=Jd.useCallback(()=>{h(!0)},[]);return(0,n.jsxs)("figure",{className:q1(),children:[s&&!u&&(0,n.jsx)("div",{className:q1("loading"),children:"Loading image..."}),(0,n.jsxs)("div",{className:q1("image-container",{"audio-overlay":!!f}),children:[(0,n.jsx)(ki,{alt:p?.alt,disableZoom:!l?.zoomOnClick,height:g?.height||g?.originalHeight,l10nId:(0,Pt.pP)(r?.media),labels:a,maxHeight:900,onLoad:v,src:(0,rs.ME)(p),width:g?.width||g?.originalWidth}),f&&(0,n.jsx)(En,{blockId:e,index:`${e}-${r.id}-${o}`,isOverlayAudio:!0,labels:a,lessonId:c,media:r.media,item:r,renderMediaType:"audio",shouldPause:t!==o})]}),(s||r.caption)&&u&&(0,n.jsx)("figcaption",{children:d(r.id,r.caption)})]})}const aO=({alt:t,disableZoom:e,height:s,l10nId:o,labels:r,src:a,width:c})=>(0,n.jsx)("div",{className:"block-gallery__image",children:(0,n.jsx)(ki,{alt:t,l10nId:o,disableZoom:e,height:s,labels:r,maxHeight:900,src:a,width:c})}),iO=t=>{switch(t){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}};function cO(t){return(0,n.jsx)(oO,{...t})}class lO extends ie().Component{static get defaultProps(){return{blockId:"",getL10nValue:()=>{},items:[],lessonId:"",width:2}}render(){const{animateBlockEntrance:e,defaultBackgroundColor:s,editable:o,getL10nValue:r,isLearner:a,items:c,labels:d,renderCaption:l,settings:u,width:h}=this.props,{entranceAnimation:p,zoomOnClick:f}=u,g=M()(`block-gallery block-gallery--${iO(h)}`,{"block-gallery--no-animation":!p||Js()});return(0,n.jsx)(qt,{className:g,defaultBackgroundColor:s,children:(0,n.jsx)("div",{className:"block-gallery__container",children:(0,n.jsx)("div",{className:"block-gallery__row",children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",className:"block-gallery__col",isLearner:a,siblingDelay:.25,children:c.map(v=>{const{id:C}=v,x=v.caption,S=r(v.media)?.image,E=S?.alt,b=S?.key,L=S?.dimensions,I=L?.width||L?.originalWidth,N=L?.height||L?.originalHeight,R=(0,rs.ME)(S),j=qc({caption:x,editable:o,id:C,getL10nValue:this.props.getL10nValue});return(0,n.jsx)("div",{className:!e||Js()?"block-gallery__col":"",children:(0,n.jsxs)(j.tagName,{"aria-labelledby":j.figcaptionId,className:"block-gallery__figure",role:j.role,children:[b&&(0,n.jsx)(aO,{alt:E,disableZoom:!f,height:N,l10nId:(0,Pt.pP)(v?.media),labels:d,src:R,width:I}),(o||x)&&(0,n.jsx)("figcaption",{id:j.figcaptionId,children:l(C,x)})]})},C)})})})})})}}const eh=vf(cs(lO)),th=J("block-divider"),sh=({isLearner:t,labels:{numberedDividerGroup:e},number:s,settings:o,type:r="divider"})=>{const{entranceAnimation:a}=o,c=r==="numbered",l=th({authoring:!t,spacing:r==="spacing",numbered:c,"no-animation":!a}).toString(),u=c?(0,n.jsxs)("div",{className:th("wrap__number"),children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:e}),s]}):null;return(0,n.jsx)(qt,{className:l,children:(0,n.jsx)("div",{className:th("wrap",{authoring:!t&&!c}),children:u})})},dO=sh,uO=t=>(0,n.jsx)(sh,{type:"numbered",...t}),hO=t=>(0,n.jsx)(sh,{type:"spacing",...t});var mO=i(16169),Bi=i.n(mO),pO=i(42551),fO=i.n(pO),gO=i(51926),Wr=i.n(gO),vO=i(13916),nh=i.n(vO),CO=i(19453),qd=i.n(CO),eu=i(59288);const xO=30,xf=yd("blockSettings");class EO extends eu.Component{static defaultProps={items:[],editable:!1,lessonId:"",blockId:"",onStep:()=>{},blockSettings:{}};render(){const{animateBlockEntrance:e,blockId:s,editable:o,isLearner:r,items:a,labels:c,lessonId:d,onStep:l,settings:u,enableVideoPlaybackSpeed:h}=this.props,{entranceAnimation:p,accordionBehavior:f="keepOpen"}=u,g=M()("blocks-accordion",{"blocks-accordion--no-animation":!p});return(0,n.jsx)(qt,{className:g,"data-block-id":s,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:r,duration:.75,children:(0,n.jsx)("div",{className:"blocks-accordion__container",children:(0,n.jsx)("div",{className:"blocks-accordion__row",children:(0,n.jsx)("div",{className:"blocks-accordion__col",children:(0,n.jsx)(NO,{keepOpen:f==="keepOpen",lessonId:d,blockId:s,items:a,editable:o,settings:u,onStep:l,enableVideoPlaybackSpeed:h,labels:c})})})})})})}}const TO={isOpen:!1,isActive:!1},SO=t=>(e,{id:s})=>Object.assign({},e,{[s]:t[s]||TO}),Ef=(t,e)=>e.reduce(SO(t),{}),LO=(t,e)=>(s,o)=>{const r=t==o,a=r?!s.isOpen:s.isOpen,c=r&&!s.isOpen;return{isOpen:e?a:c,isActive:r}},bO=t=>(e,s)=>{const o=s==t;return{isOpen:o,isActive:o}},yO=t=>(e,s)=>({isOpen:s==t,isActive:e.isActive});class IO extends eu.Component{static defaultProps={items:[],editable:!1,lessonId:"",blockId:"",keepOpen:!1,onStep:()=>{},blockSettings:{}};constructor(e){super(e);const{items:s}=this.props;this.state={itemStatusMap:Ef({},s)},this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){window.addEventListener(ms,this.handleNavtoTab)}componentWillUnmount(){window.removeEventListener(ms,this.handleNavtoTab)}handleNavtoTab(e){const s=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;if(s===this.props.blockId){const r=this.props.items.findIndex(({id:h})=>h===o),{items:a,onStep:c}=this.props,{itemStatusMap:d}=this.state,l=a[r].id,u=bO(l);this.setState({itemStatusMap:Wr()(u,d)}),open&&c(a[r])}}UNSAFE_componentWillReceiveProps(e){const s=e.items,o=us()(s)!==us()(this.props.items);!e.keepOpen&&this.props.keepOpen?this.updateMapForOneAtATimePreference():o&&this.rebuildItemStatusMap(s)}updateMapForOneAtATimePreference(){const{itemStatusMap:e}=this.state,{items:s}=this.props,o=fO()(a=>e[a.id].isOpen,s);if(!o)return;const r=yO(o.id);this.setState({itemStatusMap:Wr()(r,e)})}rebuildItemStatusMap(e){const s=this.state.itemStatusMap;this.setState({itemStatusMap:Ef(s,e)})}handleItemClick(e){const{items:s,keepOpen:o,onStep:r}=this.props,{itemStatusMap:a}=this.state,c=s[e].id,d=LO(c,o);this.setState({itemStatusMap:Wr()(d,a)}),open&&r(s[e])}render(){const{items:e,settings:s,editable:o,labels:r,lessonId:a,blockId:c,enableVideoPlaybackSpeed:d}=this.props,{itemStatusMap:l}=this.state,{zoomOnClick:u}=s,h=Object.values(l)?.find(p=>p.isOpen)?"open":"closed";return(0,n.jsx)("div",{className:"blocks-accordion__wrapper","data-accordion-status":h,children:e.map((p,f)=>(0,n.jsx)(RO,{blockId:c,disableZoom:!u,editable:o,focused:l[p.id].isActive,index:f,item:{...p,enableVideoPlaybackSpeed:d},labels:r,lessonId:a,onClick:this.handleItemClick.bind(this,f),open:l[p.id].isOpen},p.id))})}}const NO=xf(IO);class jO extends eu.Component{static get defaultProps(){return{editable:!1,getL10nValue:()=>{},onClick:()=>{},lessonId:"",blockId:"",open:null}}id;content;constructor(e){super(e),this.id=qd()(),this.toggle=this.toggle.bind(this),this.renderDescription=this.renderDescription.bind(this),this.renderTitle=this.renderTitle.bind(this)}componentDidUpdate(e){if(!this.props.open)return;const s=this.content;if(s&&(s.classList.add("blocks-accordion__content--visible"),!e.open&&this.props.open)){const o=s.parentElement,r=o?.getBoundingClientRect()?.top,a=r>0&&r<window.innerHeight,c=Js()?"instant":"smooth";a||o.scrollIntoView({behavior:c,block:"start"})}}toggle(e){const{blockId:s,index:o}=this.props,r=at.playerId;open&&r&&r.includes(s.toString())&&r.endsWith(o.toString())&&at.pause(),this.props.onClick(),e.preventDefault()}renderTitle(e){const{title:s}=this.props.item;return(0,n.jsx)(Nt,{id:e,className:"blocks-accordion__title",value:s})}renderDescription(){const{description:e=""}=this.props.item;return(0,n.jsx)(Ms,{className:"blocks-accordion__description",value:e||""})}render(){const{blockId:e,blockSettings:s,editable:o,disableZoom:r,getL10nValue:a,hasAudioExpansionFlag:c,index:d,item:l,focused:u,labels:h,lessonId:p,open:f,renderDescription:g=this.renderDescription,renderTitle:v=this.renderTitle}=this.props,{settings:C={},enableVideoPlaybackSpeed:x}=l,S=a(l.media)??{},E=wi(S,s.audioPosition,c),b=Object.assign({},C,{disableZoom:r,fullEmbed:!0}),L=s?.backgroundType===P.xj.ACCENT||s?.backgroundType===P.xj.IMAGE,I=M()("blocks-accordion__item",{"blocks-accordion__item--closed":!f}),N=M()("blocks-accordion__header",{"blocks-accordion__header--editing":o,"brand--border":f&&u&&!L}),R=M()("blocks-accordion__content",{"blocks-accordion__content--will-enter":f,"brand--border":f&&u&&!L}),j=`title-${this.id}`,O=`panel-${this.id}`,B=s?.headingLevel,_=B?`h${B}`:"h2";let k=(0,n.jsxs)("button",{"aria-controls":O,"aria-expanded":f,className:N,onClick:this.toggle,onKeyDown:!o&&i2(this.toggle)||null,type:"button",children:[v(j),(0,n.jsx)("span",{className:"blocks-accordion__toggler-wrap",children:(0,n.jsx)(Lt,{className:"blocks-accordion__toggler",name:f?"minus":"plus"})})]});return o&&(k=(0,n.jsxs)("div",{className:N,children:[v(j),(0,n.jsx)("button",{"aria-label":f?"Close":"Open","aria-controls":O,"aria-expanded":f,className:"blocks-accordion__toggler-wrap",onClick:this.toggle,type:"button",children:(0,n.jsx)(Lt,{className:"blocks-accordion__toggler",name:f?"minus":"plus"})})]})),(0,n.jsxs)(Rn,{className:I,tag:"section",children:[(0,n.jsx)("div",{className:"blocks-accordion__header-wrap",children:(0,n.jsx)(_,{children:k})}),(0,n.jsx)("section",{"aria-labelledby":j,className:R,id:O,ref:te=>{this.content=te},children:E.renderOrder.map((te,F)=>{if(te==="text")return g();const K={blockId:e,hasPadding:!1,imageMaxHeight:1e3,item:l,labels:h,lessonId:p,enableVideoPlaybackSpeed:x,opts:b},Z=Tf(S),xe=Z==="image-with-audio",fe=xe?"left":"center",we={audio:{media:E.audioOnlyMedia||S,isOverlayAudio:!1,index:`${e}-${d}-audio`,className:"blocks-accordion__audio"},image:{media:E.imageOnlyMedia||S,isOverlayAudio:!1,index:`${e}-${d}-image`,className:M()(`blocks-accordion__${Z}`,{[`blocks-accordion__${Z}--${fe}`]:xe})},video:{media:E.videoOnlyMedia||S,isOverlayAudio:!1,index:`${e}-${d}-video`,className:M()(`blocks-accordion__${Z}`,{[`blocks-accordion__${Z}--${fe}`]:xe})},embed:{media:E.embedOnlyMedia||S,isOverlayAudio:!1,index:`${e}-${d}-embed`,className:M()(`blocks-accordion__${Z}`,{[`blocks-accordion__${Z}--${fe}`]:xe})},overlay:{media:S,isOverlayAudio:!0,index:`${e}-${d}-overlay`,className:M()(`blocks-accordion__${Z}`,{[`blocks-accordion__${Z}--${fe}`]:xe})}}[te];if(!we)return null;const{className:Ae,..._e}=we;return(0,n.jsx)("div",{className:M()(Ae,{"audio-on-top":this.props.blockSettings.audioPosition==="top"||!c}),children:(0,n.jsx)("div",{className:"blocks-accordion__figure",children:(0,n.jsx)(En,{...K,..._e})})},`${te}-${F}`)})})]})}}const AO=t=>(0,n.jsx)(jO,{...t}),RO=xf(Ld("rise-audio-release","hasAudioExpansionFlag")(cs(AO))),Tf=t=>{const{image:e,embed:s,video:o,audio:r}=t;return e&&!r?"image":s&&!r?"embed":o?"video":r&&!e&&!s?"audio":e&&r?"image-with-audio":r&&s?"audio-and-embed":"image"};class OO extends eu.Component{static get defaultProps(){return{items:[],activeIndex:0,getL10nValue:()=>{},lessonId:"",blockId:"",blockSettings:{},onStep:Function.prototype}}tabs;id;tabResize;tabScroll;arrowNextEl;arrowPrevEl;container;tabControls;tabsHeaderEl;constructor(e){super(e),this.renderDescription=this.renderDescription.bind(this);const s=this.props.activeIndex;this.state={activeIndex:s,activeTouch:!1,activeMouse:!1},this.tabs=[],this.id=qd()(),this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){this.handleControls(),window.addEventListener("resize",this.tabResize=Vr()(this.handleControls.bind(this),100)),window.addEventListener(ms,this.handleNavtoTab),this.tabsHeaderEl?.addEventListener("scroll",this.tabScroll=Vr()(this.handleControls.bind(this),50))}handleNavtoTab(e){const s=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;s===this.props.blockId&&(this.tabsHeaderEl.scrollIntoView({behavior:"smooth",block:"start"}),this.setState({activeIndex:this.props.items.findIndex(({id:r})=>r===o)},()=>{u1(this.tabsHeaderEl,"start")||this.tabsHeaderEl.scrollIntoView({behavior:"instant",block:"start"})}))}componentDidUpdate(){this.handleControls()}componentWillUnmount(){this.tabsHeaderEl?.removeEventListener("scroll",this.tabScroll),window.removeEventListener("resize",this.tabResize),window.removeEventListener(ms,this.handleNavtoTab)}setActive(e){this.setState({activeIndex:e});const{blockId:s}=this.props,o=at.playerId;this.state.activeIndex!=e&&o&&o.includes(s.toString())&&at.pause(),this.props.onStep(this.props.items[e])}handleControls(){const{isRTL:e}=this.props;this.tabsHeaderEl.offsetWidth===this.tabsHeaderEl.scrollWidth?(this.arrowPrevEl.classList.add("hidden"),this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("start"),this.tabControls.classList.add("end")):(this.tabsHeaderEl.scrollLeft===0?(this.arrowPrevEl.classList.add("hidden"),this.tabControls.classList.add("start")):(this.arrowPrevEl.classList.remove("hidden"),this.tabControls.classList.remove("start")),this.tabsHeaderEl.scrollLeft===(this.tabsHeaderEl.scrollWidth-this.tabsHeaderEl.offsetWidth)*(e?-1:1)?(this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("end")):(this.arrowNextEl.classList.remove("hidden"),this.tabControls.classList.remove("end")))}handleMouseEnter(){this.state.activeTouch||this.setState({activeMouse:!0})}handleMouseLeave(){this.setState({activeMouse:!1})}handleTouchStart(){this.setState({activeTouch:!0})}scrollTabs(e){const{isRTL:s}=this.props,o=this.tabsHeaderEl.offsetWidth,r=this.tabsHeaderEl.scrollLeft,c=(e==="next"?s?nh():Bi():s?Bi():nh())(r,o*.8);this.tabsHeaderEl.scrollTo({left:c,behavior:"smooth"})}arrowPrevInset(e){const s=this.arrowPrevEl.getBoundingClientRect(),o=s.right-e,r=s.left-e;return o+r}focusTab(e){e.currentTarget?.scrollIntoView({behavior:"smooth",block:"nearest"})}handleTabKeyDown(e,s){const{isRTL:o}=this.props;let r=!1,a;_r(s)?(r=!0,a=o?e+1>this.tabs.length-1?0:e+1:e-1>=0?e-1:this.tabs.length-1):Ur(s)&&(r=!0,a=o?e-1>=0?e-1:this.tabs.length-1:e+1>this.tabs.length-1?0:e+1),r&&s.preventDefault(),a!=null&&(this.tabs[a]?.focus(),this.setActive(a))}renderHeader(e,s){const{activeIndex:o,activeTouch:r,activeMouse:a}=this.state,c=this.tabsHeaderEl&&this.tabsHeaderEl.scrollWidth>this.tabsHeaderEl.clientWidth,d=M()("blocks-tabs__header-wrap",{touch:r,mouse:a&&c});return(0,n.jsxs)("div",{className:d,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),onTouchStart:this.handleTouchStart.bind(this),children:[(0,n.jsx)("div",{className:"blocks-tabs__header",ref:l=>{this.tabsHeaderEl=l},role:CS,children:e.map(({title:l},u)=>{const h=e.length===1||u===o,p=e.length>1&&u+1===o,f=e.length>1&&u-1===o,g=M()("blocks-tabs__header-item",{"brand--color":h&&!s,"blocks-tabs__header-item--active":h,"blocks-tabs__header-item--before-active":p,"blocks-tabs__header-item--after-active":f}),v=`tab-${this.id}-${u}`,C=`tabpanel-${this.id}-${u}`;return(0,n.jsx)("button",{"aria-controls":C,"aria-selected":h,className:g,id:v,onClick:this.setActive.bind(this,u),onKeyDown:this.handleTabKeyDown.bind(this,u),onFocus:this.focusTab.bind(this),ref:x=>{this.tabs[u]=x},role:ES,tabIndex:h?void 0:-1,type:"button",children:(0,n.jsx)(Nt,{value:l})},v)})}),(0,n.jsxs)("div",{className:"blocks-tabs__controls",ref:l=>{this.tabControls=l},children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--prev brand--background",ref:l=>{this.arrowPrevEl=l},onClick:this.scrollTabs.bind(this,"previous"),children:(0,n.jsx)(Lt,{className:"blocks-tabs__arrow-icon",name:"chevron-right-solid"})}),(0,n.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--next brand--background",ref:l=>{this.arrowNextEl=l},onClick:this.scrollTabs.bind(this,"next"),children:(0,n.jsx)(Lt,{className:"blocks-tabs__arrow-icon blocks-tabs__arrow-icon--next",name:"chevron-right-solid"})})]})]})}renderDescription({description:e}){return(0,n.jsx)(Ms,{className:"blocks-tabs__description",value:e})}renderItem(e,s,o){const{blockId:r,getL10nValue:a,hasAudioExpansionFlag:c,labels:d,lessonId:l,renderDescription:u=this.renderDescription}=this.props,{activeIndex:h}=this.state,p=h===s,{settings:f={},enableVideoPlaybackSpeed:g}=e,v=a(e.media)??{},C=wi(v,this.props.settings.audioPosition,c,!1),x=M()("blocks-tabs__content-item",{"blocks-tabs__content-item--active":p}),S=Object.assign({},f,{disableZoom:o,fullEmbed:!0}),E=`tabpanel-${this.id}-${s}`,b=`tab-${this.id}-${s}`,L=Tf(v),I=L==="image-with-audio",N=L==="audio-and-embed",R=I?v?.image?.align:"left",j=N?"embed-border":void 0;return(0,n.jsx)("div",{"aria-labelledby":b,className:x,id:E,role:xS,tabIndex:p?0:void 0,children:C.renderOrder.map((O,B)=>{if(O==="text")return(0,n.jsx)("div",{className:"blocks-tabs__description",children:u(e)},`text-${B}`);const _={blockId:r,embedClass:j,hasPadding:!1,imageMaxHeight:1e3,item:e,labels:d,lessonId:l,enableVideoPlaybackSpeed:g,opts:S},te={audio:{media:C.audioOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-audio`,className:"blocks-tabs__audio"},image:{media:C.imageOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-image`,className:M()(`blocks-tabs__${L}`,{[`blocks-tabs__${L}--${R}`]:I})},video:{media:C.videoOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-video`,className:M()(`blocks-tabs__${L}`,{[`blocks-tabs__${L}--${R}`]:I})},embed:{media:C.embedOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-embed`,className:M()(`blocks-tabs__${L}`,{[`blocks-tabs__${L}--${R}`]:I})},overlay:{media:v,isOverlayAudio:!0,index:`${r}-${s}-overlay`,className:M()(`blocks-tabs__${L}`,{[`blocks-tabs__${L}--${R}`]:I})}}[O];if(!te)return null;const{className:F,...K}=te;return(0,n.jsx)("div",{className:M()(F,{"audio-on-top":this.props.settings.audioPosition==="top"||!c}),children:(0,n.jsx)("div",{className:"blocks-tabs__figure",children:(0,n.jsx)(En,{..._,...K})})},`${O}-${B}`)})},E)}render(){const{animateBlockEntrance:e,isLearner:s,items:o,settings:r,enableVideoPlaybackSpeed:a}=this.props,{backgroundType:c,cardMode:d,entranceAnimation:l,zoomOnClick:u}=r,h=M()("blocks-tabs",{"blocks-tabs--no-animation":!l}),p=o.length>0?o.slice(0,xO):[],f=d===Lo.TRANSPARENT&&(c===P.xj.ACCENT||c===P.xj.IMAGE),g=M()("blocks-tabs__container",{"blocks-tabs--single":p.length===1});return(0,n.jsx)(qt,{className:h,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:s,offset:350,children:(0,n.jsx)("div",{className:g,children:(0,n.jsx)("div",{className:"blocks-tabs__row",children:(0,n.jsx)("div",{className:"blocks-tabs__col",children:(0,n.jsx)("div",{className:"blocks-tabs__wrapper",ref:v=>{this.container=v},children:(0,n.jsxs)(Rn,{children:[this.renderHeader(p,f),(0,n.jsx)("div",{className:"blocks-tabs__content",children:p.map((v,C)=>this.renderItem({...v,enableVideoPlaybackSpeed:a},C,!u))})]})})})})})})})}}const PO=t=>(0,n.jsx)(OO,{...t}),MO=Yd(cs(Ld("rise-audio-release","hasAudioExpansionFlag")(PO))),DO=Ye()(null,["payload","result"]),kO=t=>t.thumbnail,wO=t=>t.meta?.version,Sf=t=>t.src??null,BO=t=>t.processing,_O=jt()(["payload","result","completion"]),UO=Ye()(!1,["payload","result","score"]),HO=hr()((t,e)=>{if(!e)return!1;const{majorLimit:s,minorLimit:o}=t,[r,a]=e.split("."),c=parseInt(r)===s&&Number(a)>=o;return Number(r)>s||c}),FO={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},zO=t=>{const e=As()(t.split("-"));return FO[e]},VO=HO({majorLimit:3,minorLimit:13}),WO=(t,e,s)=>{const o=e&&zO(s);return o?`${t}${o}`:`${t}?rise=true`};var GO=i(59288);class KO extends GO.Component{constructor(e){super(e),this.state={fullscreen:!1,reopenMenu:!1},this.iframe=null,this.canFullscreen=this.canFullscreen.bind(this),this.handleCourseUpdate=this.handleCourseUpdate.bind(this),this.handleFullscreenEnter=this.handleFullscreenEnter.bind(this),this.handleFullscreenExit=this.handleFullscreenExit.bind(this),this.handleMessages=this.handleMessages.bind(this),this.renderItem=this.renderItem.bind(this)}iframe;static get defaultProps(){return{getL10nValue:()=>{},isLesson:!1,onStep:Function.prototype,hasManySlBlocks:Function.prototype,previewType:""}}UNSAFE_componentWillMount(){window.addEventListener("message",this.handleMessages)}componentWillUnmount(){window.removeEventListener("message",this.handleMessages)}componentDidMount(){const{getL10nValue:e,items:s,onStep:o}=this.props,r=As()(s),a=e(r?.media)?.storyline??{},c=wO(a);VO(c)||o(r)}canFullscreen(e){const{blockId:s,hasManySlBlocks:o}=this.props,{windowName:r}=e;return s===r||!o()}handleMessages(e){const{data:s}=e,{type:o}=s,r={"fullscreen:enter":this.handleFullscreenEnter,"fullscreen:exit":this.handleFullscreenExit,"course:update":this.handleCourseUpdate}[o];r&&r(s)}handleCourseUpdate(e){const{items:s,onStep:o,blockId:r}=this.props,a=As()(s),{windowName:c}=e;if(r===c&&_O(e)){const{score:d,success:l}=DO(e);if(UO(e)){const u=d.scaled*100;(0,de.jr)(r,l,!0,u)}else(0,de.jr)(r,!0,!1);o(a)}}handleFullscreenEnter(e){const{menuOpen:s,handleStorylineFullscreen:o}=this.props;this.canFullscreen(e)&&(s&&o(!0),this.setState({fullscreen:!0,reopenMenu:s}))}handleFullscreenExit(e){const{handleStorylineFullscreen:s}=this.props,{reopenMenu:o}=this.state;this.canFullscreen(e)&&(o&&s(!1),this.setState({fullscreen:!1,reopenMenu:!1}))}render(){const{animateBlockEntrance:e,getL10nValue:s,isLesson:o,isLearner:r,isOnlyBlockInStep:a,items:c,labels:{a11yBlockStoryline:d},settings:l,takingSnapshot:u}=this.props,h=As()(c),p=s(h?.media)?.storyline??{},{mediaWidth:f="0"}=l,g=a?{}:{display:o&&!Sf(p)?"none":"block"},v=M()("blocks-storyline__wrapper",{"blocks-storyline__wrapper--small":f==="0","blocks-storyline__wrapper--medium":f==="1","blocks-storyline__wrapper--full":f==="2","blocks-storyline__wrapper--snapshot":u});return(0,n.jsx)(qt,{className:"blocks-storyline",style:g,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:r,children:(0,n.jsx)("div",{"aria-label":d,className:v,role:"group",children:u?this.renderThumbnail(p):this.renderStorylineBlock(p)})})})}renderStorylineBlock(e){return BO(e)?this.renderProcessing():Sf(e)?this.renderItem(e):this.renderEmpty()}renderThumbnail(e){const s=kO(e),o=`${(0,ye._$)("CDN_USER_CONTENT_URI")}/${s}`;return(0,n.jsx)("img",{alt:"Thumbnail",src:o})}renderEmpty(){const{renderEmpty:e}=this.props;return typeof e=="function"?e():null}renderItem(e){const{fullscreen:s}=this.state,{blockId:o,isLesson:r,previewType:a}=this.props,{src:c,meta:d,title:l}=e,{player:u}=d,h=WO(c,r,a),f={paddingBottom:`${u.height/u.width*100}%`},g=M()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":s});return(0,n.jsx)("div",{className:"blocks-storyline__item",style:f,children:(0,n.jsx)("iframe",{allowFullScreen:!0,allowtransparency:"true",ref:v=>{this.iframe=v},name:o.toString(),className:g,src:(0,ye.o1)(h),title:l})})}renderProcessing(){const{renderProcessing:e}=this.props;return typeof e=="function"?e():null}}const $O=cs(KO);var QO=i(67371),tu=i.n(QO),wle=i(56552),ZO=i(23117),YO=i.n(ZO),XO=i(37600),Oa=i.n(XO);function su(t,e,s="..."){const o=t?t.toString():"";return o.length>e?o.substr(0,e-1)+s:o}const Ble=t=>when(e=>length(e)>t,slice(0,t)),JO=null,qO=t=>JO.test(t),eP=t=>t>=0,tP=t=>t<=100,_le=t=>t==="",Ule=t=>qO(t)&&tP(t)&&eP(t),Hle=t=>String(Number(t)),Lf=Se()(ha()(""),tu()(YO(),0)),Fle=Se()(ha()(" "),ws()(Lf),V1()(" ")),bf=Se()(ha()(" "),V1()(/(?=[A-Z]|^)/)),zle=Se()(Lf,Oa(),bf),Vle=Se()(Oa(),bf),Wle=(t,e)=>s=>su(s,t,e);var sP=i(59288);const nu=J("blocks-button"),_i=P.Ht,yf=P.zV,nP=({description:t})=>(0,n.jsx)(Nt,{className:nu("description"),value:t}),oP=({color:t,destination:e,editBlock:s,handleNavigate:o,isEditable:r,label:a,type:c})=>{const d=(0,Me.d_)(),l=(0,Me.DX)()?.externalLinksDisabled,u=(0,Me.DX)()?.theme,h=(0,Me.kJ)(),{mode:p}=(0,ke.g)(),f=(0,Hs.y4)(),g=rn(),v=(0,Me.vU)(),C=(0,ja.htmlDecode)((0,xo.QZ)((0,It.QQ)(a))),x=su(C,18),S=c==="email",E=c==="exit-course",b=c==="lesson",L=c==="relative-url",I=nu("button"),N=!t||t===""||t===h,R=t??h,j={},O=(0,Me.Ge)(h),B=N&&u?.accentContrast===P.Em.AUTO?P.Em.AUTO:O,_=g?.buttonColorContrast??B,k=jn({backgroundColor:R,contrast:_});Object.assign(j,{...!N&&{"--color-button-bg":R},...!N&&{"--color-button-text":k},...!N&&{"--color-button-border":"transparent"}});const te=l&&di(e),F=(0,m.useCallback)(()=>{f({payload:!0,type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL"})},[f]),K=(0,m.useCallback)(()=>{if(r)s();else{if(te)return F();if(E)return(0,ye.NS)()}},[s,te,r,E,F]),Z=(0,m.useCallback)(()=>{o(e)},[e,o]);if(r||te||E)return(0,n.jsx)("button",{className:I,onClick:K,onKeyDown:i2(K),style:j,tabIndex:el,type:"button","aria-label":C,children:x});if(b){const xe=p?`/${p}`:"",fe=`/lessons/${e}${xe}`,oe=e===""?"#":fe;return(0,n.jsx)(Qn,{className:I,onClick:Z,style:j,to:oe,"aria-label":C,children:x})}else{const xe=L?e:Ra(e),fe=S?`mailto:${e}?subject=${d}`:xe,oe=nn.isIphoneSafari?"_top":"_self",we=S?oe:"_blank",Ae=we==="_blank",_e=Ae?"noopener noreferrer":void 0,Qe=v?.a11yNoticeLinkNewTab||"(opens in a new tab)",pt=Ae?`${C} ${Qe}`:C;return(0,n.jsx)("a",{className:I,href:fe,rel:_e,style:j,tabIndex:el,target:we,"aria-label":pt,children:x})}},If=t=>{const{animateBlockEntrance:e,editable:s,editBlock:o=()=>{},handleNavigate:r,isLearner:a,items:c=[],renderDescription:d=nP,settings:l}=t,{buttonColor:u,buttonStack:h,entranceAnimation:p,paddingBottom:f=3,paddingTop:g=3}=l,v=nu(null,{"no-animation":!p,center:_i==="center",left:_i==="left",right:_i==="right",rounded:yf==="rounded"}),C={paddingTop:`${Number(g)*10}px`,paddingBottom:`${Number(f)*10}px`},x=(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:a,offset:100,children:c?.map(({id:S,description:E,...b})=>(0,n.jsxs)("section",{className:nu("container"),children:[d({id:S,description:E}),(0,n.jsx)(oP,{...b,color:u,editBlock:o,handleNavigate:r,isEditable:s})]},S))??null});return h?(0,n.jsx)("div",{style:C,children:x}):(0,n.jsx)(qt,{className:v.toString(),style:C,children:x})},rP=If;class aP extends sP.Component{renderButtonDelegate;constructor(e){super(e),this.renderButtonDelegate=this.renderButton.bind(this)}static get defaultProps(){return{items:[],lessonId:"",blockId:"",editBlock:()=>{}}}renderButton(e,s){const{blockId:o,editable:r,editBlock:a,handleNavigate:c,isLearner:d,lessonId:l}=this.props;return(0,n.jsx)(If,{animateBlockEntrance:!1,blockId:o,editable:r,editBlock:a,isLearner:d,items:[e],lessonId:l,settings:s,type:"right",handleNavigate:c})}render(){const{animateBlockEntrance:e,isLearner:s,items:o,settings:r,renderButton:a=this.renderButtonDelegate}=this.props,{paddingTop:c,paddingBottom:d,entranceAnimation:l}=r,u=M()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!l,"blocks-button--center":_i==="center","blocks-button--left":_i==="left","blocks-button--right":_i==="right","blocks-button--rounded":yf==="rounded"}),h={paddingTop:`${Number(c)*10}px`,paddingBottom:`${Number(d)*10}px`},p={buttonColor:r.buttonColor||this.props.color,buttonStyle:r.buttonStyle,buttonStack:!0};return(0,n.jsx)(qt,{className:u,style:h,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:s,children:o.map(f=>(0,n.jsx)(m.Fragment,{children:a(f,p)},f.id))})})}}var iP=i(5803),cP=i.n(iP);const lP=ot()("partner-content-block-card__"),dP=t=>{const{backgroundColor:e,blockId:s,courseId:o,partnerContent:r,publishedAt:a,tenantId:c}=t,{data:d,type:l}=r,{authors:u,bookImage:h,bookTitle:p,buyLink:f,internalId:g,nbicLink:v}=d,C={blockId:s,courseId:o,partnerContentId:g,tenantId:c,contentSubtype:l};return(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"More Info"}),(0,n.jsxs)("ol",{className:"partner-content-block-card",role:"list",children:[(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(t2,{authors:u,backgroundColor:e,block:!0,bookImage:h,bookTitle:p,buyLink:f,publishedAt:a,trackingInfo:C})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)("div",{className:lP("divider")})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(s2,{backgroundColor:e,block:!0,link:v,publishedAt:a,trackingInfo:C})})]})]})};var ou=i(59288);const ru=J("block-audio"),Ui=J("block-video"),oh=J("block-embed"),_n=J("block-attachment");class uP extends ou.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this),this.onLoad=this.onLoad.bind(this),this.state={loaded:!1}}static get defaultProps(){return{audioVideoPlayhead:0,blockId:"",getL10nValue:()=>{},editable:!1,items:[],lessonId:"",onStep:()=>{},recordMediaPlayheadPosition:()=>{}}}renderCaption({caption:e}){const{loaded:s}=this.state,o=ru("caption",{hidden:!s}).toString();return(0,n.jsx)(Ms,{className:o,value:e})}onLoad(){this.setState({loaded:!0})}renderItem(e){const{blockId:s,getL10nValue:o,labels:r,lessonId:a,loadMedia:c,progress:d,recordMediaPlayheadPosition:l,renderCaption:u=this.renderCaptionDelegate}=this.props,h=o(e.media)??{},{id:p}=e,f=h?.tmp?.audio?.key||h?.audio?.key,g=h?.tmp?.audio?.transcript||h?.audio?.transcript,v=`${a}-${s}-${p}`,C=Ye()(0,["items",s,"items",p,"audioVideoPlayhead"],d),x=Z1({lessonId:a,refs:`items:${s}/items:${p}`});return(0,n.jsxs)("div",{className:ru("item"),children:[c&&(0,n.jsx)(z1,{audioVideoPlayhead:C,id:v,item:e,refs:`items:${s}/items:${p}`,labels:r,mediaSrc:f,onEnd:this.handleOnEnd.bind(this,p),onLoad:this.onLoad,onTranscriptClick:this.onTranscriptClick.bind(this,e),onTranscriptClose:this.props.closeTranscript,onAIUploadFinish:this.props.onAIUploadFinish,recordMediaPlayheadPosition:l,transcript:g,uploadId:x},v),u(e)]},p)}handleOnEnd(e){this.props.onStep({id:e})}onTranscriptClick(e){const{blockId:s}=this.props;return this.props.openTranscript?.({blockId:s,item:e})}render(){const{animateBlockEntrance:e,isLastBlock:s,isLearner:o,items:r,settings:a}=this.props,{entranceAnimation:c}=a,d=ru({"no-animation":!c}).toString(),l=r.length>0?r.slice(0,1):[],u=s?50:300;return(0,n.jsx)(qt,{className:d,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:o,offset:u,children:(0,n.jsx)("div",{className:ru("wrapper"),children:l.map(h=>this.renderItem(h))})})})}}const hP=k3(cs(uP));class mP extends ou.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this),this.onVideoLoad=this.onVideoLoad.bind(this),this.state={loaded:!1}}static get defaultProps(){return{audioVideoPlayhead:0,items:[],editable:!1,lessonId:"",blockId:"",onStep:()=>{},partnerContent:[],getL10nValue:()=>{}}}onVideoLoad(){this.setState({loaded:!0})}renderVideo(e){const{blockId:s,editable:o,enableVideoPlaybackSpeed:r,labels:a,progress:c,recordMediaPlayheadPosition:d,settings:l,takingSnapshot:u,type:h}=this.props,{captions:p,captionUID:f,id:g,key:v,keyId:C,poster:x,subtitle:S}=e,E=v||e.src,b=Ye()(0,["items",s,"items",g,"audioVideoPlayhead"],c),L=(0,n.jsx)("div",{children:(0,n.jsx)(An,{alt:"Video Poster",className:Ui("poster"),src:x})}),I=(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:Ui("placeholder")})}),N=(0,n.jsx)("div",{children:(0,n.jsx)(Q1,{audioVideoPlayhead:b,canAdjustPlaybackSpeed:r,canRestrictSeek:l.forwardSeekRestricted&&!o&&!c?.isComplete,captionUID:f,captions:p,id:C,labels:a,onLoad:this.onVideoLoad,poster:x,progressChanged:this.handleProgressChanged.bind(this,g),recordMediaPlayheadPosition:d,src:E,subtitle:S,type:v?"video":h},C)});return u?L:E?N:I}renderCaption({caption:e}){const{loaded:s}=this.state,o=Ui("caption",{visible:s}).toString();return(0,n.jsx)(Ms,{className:o,value:e})}renderItem(e){const{courseId:s,currentLocale:o,lessonId:r,blockId:a,loadMedia:c,partnerContent:d,publishedAt:l,settings:u,tenantId:h,renderCaption:p=this.renderCaptionDelegate,getL10nValue:f}=this.props,{loaded:g}=this.state,{backgroundColor:v,mediaWidth:C="1"}=u,{id:x,media:S}=e,E="partnerContentId"in e?e.partnerContentId:void 0,b=f(S)??{},{customVideo:L={},tmp:I={},video:N={}}=b,R=ur()("poster",N)?N:mt()(N,L),j=ur()("poster",I.video||{})&&I.video,{captionUID:O,captions:B,key:_,poster:k,src:te,subtitle:F}=(0,ye.Hm)()?R:j||R,K=`${r}-${a}-${x}-${o}`,Z={captionUID:O,captions:B,id:x,key:_,keyId:K,partnerContentId:E,poster:k,src:te,subtitle:F},xe=qe()(Ue()("id",E),d)||{},fe=xe&&!Yt()(xe),oe=Ui("item",{small:C==="0",medium:C==="1",full:C==="2"});return(0,n.jsxs)("div",{className:oe,children:[(0,n.jsxs)("figure",{"data-l10n-id":S?.l10nId,children:[c&&this.renderVideo(Z),g&&(0,n.jsx)("figcaption",{className:Ui("wrapper"),children:p(e)})]}),fe&&(0,n.jsx)(dP,{backgroundColor:v,blockId:a,courseId:s,partnerContent:xe,publishedAt:l,tenantId:h})]},x)}handleProgressChanged(e,{percentComplete:s}){s>=100&&this.props.onStep({id:e})}render(){const{animateBlockEntrance:e,isLearner:s,items:o,settings:r}=this.props,{entranceAnimation:a}=r,c=Ui({"no-animation":!a}).toString(),d=o.length>0?o.slice(0,1):[];return(0,n.jsx)(qt,{className:c,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:s,offset:250,children:d.map(l=>this.renderItem(l))})})}}const Nf=(0,xs.wZ)(cs(mP));class pP extends ou.Component{static get defaultProps(){return{items:[],editable:!1,lessonId:"",blockId:"",settings:{}}}renderItem(e,s){const{id:o,settings:r={}}=e,a=this.props.getL10nValue(e.media)??{},c="embed"in a?a.embed:void 0,{loadMedia:d,labels:l,settings:u}=this.props,{showMetaData:h}=r,{cardMode:p,showBorder:f=!0}=u,g=oh("item",{border:f}).toString();return(0,n.jsx)(Rn,{className:g,disabled:!f&&p==Lo.TRANSPARENT,tag:"section",children:d&&(0,n.jsx)(K1,{id:`${s}-${o}`,labels:l,isLesson:!0,data:c,showMetaData:h})},o)}render(){const{animateBlockEntrance:e,blockId:s,getL10nValue:o,isLearner:r,items:a,settings:c}=this.props,{entranceAnimation:d,mediaWidth:l="0"}=c,u=o(a?.[0]?.media);if(!u)return null;const h=nf(u)!=="link",p=oh({"no-animation":!d}).toString(),f=oh("wrapper",{medium:h&&l==="1",full:h&&l==="2"}),g=a.length>0?a.slice(0,1):[];return(0,n.jsx)(qt,{className:p,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:r,offset:300,children:(0,n.jsx)("div",{className:f,children:g.map(v=>this.renderItem(v,s))})})})}}const fP=cs(yd()(pP));class gP extends ou.Component{get attachment(){const e=this.props.items[0].media;return this.props.getL10nValue(e)?.attachment??{}}render(){const{animateBlockEntrance:e,isLearner:s}=this.props;return(0,n.jsx)(qt,{children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:s,children:(0,n.jsx)("div",{className:"block-text--onecol",children:(0,n.jsx)("div",{className:"block-text__container",children:(0,n.jsx)("div",{className:"block-text__row",children:(0,n.jsx)("div",{className:"block-text__col",children:this.renderAttachment(this.attachment)})})})})})})}renderAttachment(e){return e.key?this.renderDownload(e):this.renderNoFile()}renderDownload({key:e,mimeType:s,originalUrl:o,size:r}){const{blockId:a,externalLinksDisabled:c,showExternalLinksModal:d}=this.props,l=(0,ye.o1)(e),u=c?"":void 0,h=c?d:void 0,p=c?void 0:l,f=c?void 0:"noopener noreferrer",g=c?"button":void 0,v=c?void 0:"_blank",C=_n({}).mix("brandHover").toString(),x=_n("info");return(0,n.jsxs)(Rn,{"aria-labelledby":`attachment-name-${a} attachment-icon-${a}`,className:C,"data-external":u,download:o,href:p,onClick:h,rel:f,role:g,tag:"a",target:v,children:[(0,n.jsxs)("div",{className:_n("main"),children:[(0,n.jsx)("div",{className:_n("icon"),id:`attachment-icon-${a}`,children:this.fileIcon(s)}),(0,n.jsxs)("div",{className:x,children:[(0,n.jsx)(Nt,{className:_n("title").toString(),id:`attachment-name-${a}`,value:o}),(0,n.jsx)("div",{className:_n("size").toString(),children:cP()(r,{round:1})})]})]}),(0,n.jsx)("div",{className:_n("rest"),children:(0,n.jsx)(XC,{className:"brandHover__target--fill"})})]})}renderNoFile(){const e=_n({none:!0}).toString(),s=_n("info");return(0,n.jsx)(Rn,{className:e,children:(0,n.jsxs)("div",{className:_n("main"),children:[(0,n.jsx)("div",{className:_n("icon"),children:(0,n.jsx)(hp,{"aria-label":"File"})}),(0,n.jsxs)("div",{className:s,children:[(0,n.jsx)("div",{className:_n("title").toString(),children:"File Attachment Block"}),(0,n.jsx)("div",{className:_n("size").toString(),children:"No file added"})]})]})})}fileIcon(e){const{labels:s}=this.props,o=/excel|spreadsheet/,r=/pdf/,a=/word/,c=/powerpoint|presentation/,d=/rtf|richtext/,l=/zip/;return o.test(e)?(0,n.jsx)(s4,{"aria-label":s?.a11yExcelIcon}):r.test(e)?(0,n.jsx)(qC,{"aria-label":s?.a11yPDFIcon}):a.test(e)?(0,n.jsx)(JC,{"aria-label":s?.a11yWordIcon}):c.test(e)?(0,n.jsx)(e4,{"aria-label":s?.a11yPPTIcon}):d.test(e)?(0,n.jsx)(t4,{"aria-label":s?.a11yRTFIcon}):l.test(e)?(0,n.jsx)(n4,{"aria-label":s?.a11yZipIcon}):(0,n.jsx)(hp,{"aria-label":s?.a11yFileIcon})}}const vP=li()({externalLinksDisabled:jt()(["course","externalLinksDisabled"])}),CP={showExternalLinksModal:()=>({type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0})};function xP(t){const e=(0,Hs.Ls)(vP,CP)(t),s=yd()(e);return cs(s)}const EP=xP(gP),TP=J("continue-btn"),rh=({bgColor:t="brand",href:e,onClick:s,text:o})=>{const r=TP({gray:t==="gray",black:t==="black"}).mix("brand--ui");return e?(0,n.jsx)(Qn,{className:r,"data-continue-btn":"",onClick:s,to:e,children:(0,n.jsx)(wn,{value:o})}):(0,n.jsx)("button",{className:r,"data-continue-btn":"",onClick:s,type:"button",children:(0,n.jsx)(Nt,{value:o})})},jf=({bgType:t,text:e,iconType:s="locked"})=>{const o=M()("continue-hint",{"continue-hint--bg-transparent":t==="transparent"});return(0,n.jsxs)("div",{className:o,"data-continue-btn":"",children:[s==="locked"&&(0,n.jsx)(Lt,{className:"continue-hint__icon",name:"lock-keyhole-light"}),(0,n.jsx)("div",{className:"continue-hint__content",children:(0,n.jsx)(wn,{value:e})})]})};function SP({animateBlockEntrance:t,canContinue:e=!1,isComplete:s,isLearner:o,isOnlyBlockInStep:r,items:a=[],labels:c,onStep:d=()=>{},skipContinue:l=!1}){const u=(0,m.useRef)(void 0),h=(0,as.A)(s),{announcePolite:p}=Je(),f=a[0],{buttonColor:g,id:v,title:C,type:x}=f,S=!x||e||r&&s,E=!s||r,b=(0,m.useCallback)(()=>{d({id:v}),setTimeout(()=>{const L=u.current;L&&(L.setAttribute("aria-live","off"),L.setAttribute("role","status"),L.setAttribute("tabindex","-1"),L.innerHTML=c?.a11yStatusContinued,L.focus())},0)},[v,c,d]);return(0,m.useEffect)(()=>{!h&&s&&p?.(c?.a11yStatusAdditionalContent)},[p,s,c,h]),(0,n.jsxs)(n.Fragment,{children:[(E||l)&&(0,n.jsx)(qt,{children:(0,n.jsx)(zt,{animateBlockEntrance:t,animateIn:"fadeIn",isLearner:o,offset:25,children:(0,n.jsx)("div",{className:"block-text--onecol",children:(0,n.jsx)("div",{className:"block-text__container",children:(0,n.jsx)("div",{className:"block-text__row",children:(0,n.jsxs)("div",{className:"block-text__col",children:[S&&(0,n.jsx)(rh,{bgColor:g,onClick:b,text:C}),!S&&(0,n.jsx)(jf,{text:f.completeHint})]})})})})})}),(0,n.jsx)("div",{className:"abs-center-x visually-hidden-always","data-continue-sr":"",ref:u})]})}var Af=i(92536),LP=i(94054),au=i.n(LP);const bP=J("flashcard");class yP extends m.PureComponent{static defaultProps={allowTabNavigation:!0,backType:"description",forceFlipped:!1,frontType:"description",getL10nValue:()=>{},onFlip:Function.prototype,onStep:Function.prototype,settingShowHint:!0};state={areSidesReady:!0,flipped:!1,hasFlippedOnce:!1,isMounted:!1};cardRef=(0,m.createRef)();render(){const{cardRef:e,handleFlip:s,handleSideReady:o,handleTouchEnd:r,props:{activeIndex:a,allowTabNavigation:c,backDescription:d,backMedia:l,backType:u,block:h,forceFlipped:p,frontDescription:f,frontMedia:g,frontType:v,id:C,index:x,isHidden:S,labels:E,lessonId:b,prefersKeyboardNavigation:L,settingShowHint:I,size:N,type:R,wrapElement:j,wrapRole:O},state:{areSidesReady:B,flipped:_,isMounted:k}}=this,te=p||_,F=bP({large:N==="large",small:N==="small",flipped:te,stack:R==="stack"});return(0,n.jsxs)(j,{"aria-hidden":!c,className:F,onClick:s,onTouchEnd:r,role:O,ref:e,children:[(0,n.jsx)(Rn,{activeIndex:a,allowTabNavigation:c,blockId:h?.id,blockType:R,description:f,media:g,itemId:C,index:x,isActiveSide:!te,isAriaHidden:te&&k&&B,isFlipped:te,isHidden:S,labels:E,lessonId:b,onFlip:s,onReady:o,prefersKeyboardNavigation:L,settingShowHint:I,side:"front",size:N,type:v,tag:Of}),(0,n.jsx)(Rn,{activeIndex:a,allowTabNavigation:c,blockId:h?.id,blockType:R,description:d,media:l,itemId:C,index:x,isActiveSide:te,isAriaHidden:!te&&k&&B,isFlipped:te,isHidden:S,labels:E,lessonId:b,onFlip:s,onReady:o,prefersKeyboardNavigation:L,settingShowHint:I,side:"back",size:N,type:u,tag:NP})]})}componentDidMount(){this.setState({isMounted:!0}),window.addEventListener(ms,this.handleNavEvent)}componentDidUpdate(e,s){const{props:{allowTabNavigation:o,id:r,onStep:a},state:{hasFlippedOnce:c}}=this;!s.hasFlippedOnce&&c&&a({id:r}),e.allowTabNavigation&&!o&&this.setState({flipped:!1})}componentWillUnmount(){window.removeEventListener(ms,this.handleNavEvent)}handleNavEvent=e=>{const{path:s}=e.detail,{cardId:o}=Pc(s,["block","card"]);if(o===this.props.id){let r=!1;s.includes("back")&&(r=!0),this.setState({flipped:r},()=>{this.props.type!=="stack"&&!u1(this.cardRef.current,"center")&&this.cardRef.current.scrollIntoView({behavior:"instant",block:"center"})})}};handleFlip=e=>{const{block:s,dispatch:o,getL10nValue:r,index:a}=this.props,c=window.getSelection(),d=c.toString()&&this.cardRef.current?.contains(c.anchorNode);if(e.detail>1&&c.empty(),e&&e.target.closest("a")||d)return;const l=!this.state.flipped;this.setState({areSidesReady:!1,flipped:l,hasFlippedOnce:!0});const u=l?"back":"front",h=s.items?.[a]?.[u]?.media,f=r(h)?.audio?.transcript;f&&o(rl(f)),this.props.onFlip?.(this.props.index,l)};handleTouchEnd=e=>{e.stopPropagation()};handleSideReady=()=>{this.setState({areSidesReady:!0})}}const Rf=(0,Hs.Ls)()(bd(cs(yP))),Hi=J("flashcard-side"),iu=J("flashcard-side-flip");class Pa extends m.PureComponent{static descriptionActionTypes={INITIAL:"INITIAL",INSERTING:"INSERTING",DELETING:"DELETING"};static initialState={descriptionAction:Pa.descriptionActionTypes.INITIAL,isAtLongOverflowBottom:!1,isLong:!1,isLongOverflow:!1,isTooltipVisible:!1,scrollbarWidthOffset:void 0};id;constructor(e){super(e),this.handleMouseEnterAudio=this.handleMouseEnterAudio.bind(this),this.handleMouseLeaveAudio=this.handleMouseLeaveAudio.bind(this),this.id=(0,Af.uniqueId)("flashcard-side")}state=Pa.initialState;longBottomObserver=void 0;readyTimeout=void 0;refDescription=(0,m.createRef)();refDescriptionBottom=(0,m.createRef)();refSide=(0,m.createRef)();refBtnTimeoutMouseLeave=(0,m.createRef)();checkDescriptionSizeDebounced;handleMouseEnterAudio=()=>{const{itemId:e,index:s,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${e}-${s}-${r}-flip-btn`);a&&o&&(a.style.opacity="0.6")};handleMouseLeaveAudio=()=>{const{itemId:e,index:s,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${e}-${s}-${r}-flip-btn`);a&&o&&(a.style.opacity="1")};render(){const{props:{activeIndex:e,allowTabNavigation:s,block:o,className:r,description:a,getL10nValue:c,hasAudioExpansion:d,index:l,itemId:u,media:h,isActiveSide:p,isAriaHidden:f,isFlipped:g,labels:v,lessonId:C,onFlip:x,prefersKeyboardNavigation:S,settingShowHint:E,side:b,size:L,style:I,type:N},refDescription:R,refDescriptionBottom:j,refSide:O,state:{isAtLongOverflowBottom:B,isLong:_,isLongOverflow:k,isTooltipVisible:te,scrollbarWidthOffset:F}}=this,K=b==="front",Z=b==="back",xe=L==="small",fe=L==="large",oe=N==="description",we=N==="fullimage",Ae=N==="image",_e=K?v?.a11yBlockFlashcardFront:v?.a11yBlockFlashcardBack,Qe=`items:${o?.id}/items:${u}/${K?"front":"back"}`,pt=Hi({back:Z,flipped:g,front:K,fullimage:we}).mix(r),{image:ls,audio:nt}=c(h)??{},Ce=Hi("content",{small:xe,large:fe,front:K,fullimage:we,image:Ae,"long-overflow":k,"long-overflow-bottom":B,"has-audio":!!nt}),Ne=iu({"audio-expansion":d}),Ke=iu("btn",{"visually-hidden":!E,"prefers-keyboard":S,round:!!d}),He=iu("icon"),dt=iu("tooltip",{visible:te}),lt=Hi("img",{small:xe,large:fe,centered:Ae,full:we}),Ht=Hi("description",{"has-audio":!!nt,long:_&&!k,"long-overflow":k,short:!_,large:fe}),Wt=Hi("description-bottom"),vs=F==null?void 0:{right:F},en=ls?.alt??`Image ${l+1}`,Pn=(0,rs.ME)(ls),Bs=`${this.id}-click-to-flip-text`,Sn=`${this.id}-image`,lo=`${this.id}-description`;return(0,n.jsxs)("div",{"aria-label":_e,className:pt,inert:f,ref:O,tabIndex:-1,style:I,role:"group",children:[(0,n.jsxs)("div",{className:Ce,children:[(0,n.jsxs)("div",{className:Ne,onMouseEnter:this.handleBtnMouseEnter,onMouseLeave:this.handleBtnMouseLeave,style:vs,children:[(0,n.jsx)("button",{"aria-labelledby":`${Bs} ${lo} ${Sn}`,className:Ke,id:`${u}-${l}-${b}-flip-btn`,onBlur:this.handleBtnBlur,onClick:x,onFocus:this.handleBtnFocus,tabIndex:s&&p?0:-1,type:"button",children:(0,n.jsx)(h4,{className:He})}),(0,n.jsx)("div",{"aria-hidden":"true",className:dt,id:Bs,onClick:Si,children:v?.blocksClickToFlip})]}),(we||Ae)&&(0,n.jsx)(jP,{alt:en,className:lt,imageId:Sn,l10nId:(0,Pt.pP)(h),url:Pn}),oe&&(0,n.jsxs)("div",{className:Ht,ref:R,tabIndex:p&&k?0:void 0,children:[(0,n.jsx)(Nt,{allowTabNavigation:s&&!f,id:lo,value:a}),k&&(0,n.jsx)("div",{className:Wt,ref:j})]})]}),nt&&(0,n.jsx)("div",{className:Hi("audio-player",{text:oe,image:Ae}),onMouseEnter:this.handleMouseEnterAudio,onMouseLeave:this.handleMouseLeaveAudio,children:(0,n.jsx)(En,{activeIndex:e,blockId:o.id,index:`${u}-${l}-${b}`,isOverlayAudio:we,labels:v,lessonId:C,media:h,renderMediaType:"audio",item:{id:u,media:h},itemIndex:l,refs:Qe,side:b,shouldPause:!p})})]})}componentDidMount(){this.checkDescriptionSize(this.props),this.checkDescriptionSizeDebounced=au()(this.checkDescriptionSize,250),window.addEventListener("resize",this.checkDescriptionSizeDebounced),document.addEventListener("keydown",this.handleDocumentKeyDown)}componentWillUnmount(){clearTimeout(this.readyTimeout),this.cleanupLongBottomObserver(),window.removeEventListener("resize",this.checkDescriptionSizeDebounced),document.removeEventListener("keydown",this.handleDocumentKeyDown)}componentDidUpdate(e,s){const{props:{allowTabNavigation:o,blockType:r,isFlipped:a,isActiveSide:c,isHidden:d,onReady:l,type:u}}=this;e.isHidden&&!d&&this.checkDescriptionSize(this.props),e.isFlipped!==a&&(c&&o?(this.refSide.current?.focus?.(),this.readyTimeout=setTimeout(()=>{l()},700)):clearTimeout(this.readyTimeout)),u==="description"&&this.handleUpdatesDescription(e,s),r==="stack"&&c&&!e.allowTabNavigation&&o&&this.refSide.current?.focus?.()}handleBtnBlur=()=>{this.setState({isTooltipVisible:!1})};handleBtnFocus=()=>{this.setState({isTooltipVisible:!0})};handleBtnMouseEnter=()=>{clearTimeout(this.refBtnTimeoutMouseLeave.current),this.setState({isTooltipVisible:!0})};handleBtnMouseLeave=()=>{this.refBtnTimeoutMouseLeave.current=setTimeout(()=>{this.setState({isTooltipVisible:!1})},150)};handleDocumentKeyDown=e=>{yn(e)&&this.state.isTooltipVisible&&this.setState({isTooltipVisible:!1})};handleUpdatesDescription=(e,s)=>{const{props:{isFlipped:o,isActiveSide:r},state:{isLongOverflow:a}}=this;e.isFlipped!==o&&r&&this.scrollDescriptionToTop(),this.handleUpdatesDescriptionSize(e,s),!s.isLongOverflow&&a?(this.setLongBottomObserver(),this.setScrollbarWidth()):s.isLongOverflow&&!a&&this.cleanupLongBottomObserver()};handleUpdatesDescriptionSize=(e,s)=>{const{INSERTING:o,DELETING:r}=Pa.descriptionActionTypes,{props:{description:a,size:c,type:d,getL10nValue:l},state:{descriptionAction:u,isLong:h,isLongOverflow:p}}=this,f=l(a)?.length||0,g=l(e.description)?.length||0;u!==o&&f>g?this.setState({descriptionAction:o}):u!==r&&f<g?this.setState({descriptionAction:r}):(u!==s.descriptionAction||h!==s.isLong||p!==s.isLongOverflow||c!==e.size||d!==e.type||f!==g)&&this.checkDescriptionSize(e)};checkDescriptionSize=e=>{const{DELETING:s}=Pa.descriptionActionTypes,{props:{size:o},refDescription:{current:r},state:{descriptionAction:a,isLong:c,isLongOverflow:d}}=this;if(!r)return;r&&r.scrollHeight>r.clientHeight?c&&!d?this.setState({isLongOverflow:!0}):!c&&!d&&this.setState({isLong:!0}):(a===s||o!==e.size)&&this.setState(Pa.initialState)};scrollDescriptionToTop=()=>{const e=this.refDescription.current;this.state.isLong&&e&&(e.scrollTop=0)};setLongBottomObserver=()=>{const e=this.refDescriptionBottom.current;if(e&&this.longBottomObserver==null){const s=o=>{const r=o?.[0]?.isIntersecting??!1;this.setState({isAtLongOverflowBottom:!r})};this.longBottomObserver=new IntersectionObserver(s,{threshold:[0,1]}),this.longBottomObserver.observe(e)}};cleanupLongBottomObserver=()=>{this.longBottomObserver?.disconnect?.(),this.longBottomObserver=void 0};setScrollbarWidth=()=>{const e=this.refDescription.current;if(e){const s=e.offsetWidth-e.clientWidth;s>0&&this.setState({scrollbarWidthOffset:s})}}}const IP=Ld("rise-audio-release","hasAudioExpansion")(t=>(0,n.jsx)(Pa,{...t})),Of=(0,Hs.Ls)()(bd(cs(t=>(0,n.jsx)(IP,{...t})))),NP=t=>{const{backgroundType:e,cardMode:s,customBackgroundColorContrast:o}=rn(),r=(0,Me.DX)()?.theme,a=wd(),d=e===P.xj.IMAGE&&a?.overlayColor===P.df.LIGHT,l=qn(),u=r?.accentContrast,h=u===P.Em.AUTO,p=(0,m.useMemo)(()=>{let g="#fafafa";if(s===Lo.TRANSPARENT)switch(e){case P.xj.DARK:g="#525252";break;case P.xj.BLACK:g="#1a1a1a";break;case P.xj.IMAGE:d?g="rgba(0, 0, 0, 0.7)":g="rgba(255, 255, 255, 0.7)";break;case P.xj.ACCENT:case P.xj.COLOR:case P.xj.TINT:{let x=0;switch((0,ct.XC)(l)){case ct.lL.LIGHT:x=.5;break;case ct.lL.MED:x=-.35;break;case ct.lL.DARK:x=-.65;break;case ct.lL.NEAR_BLACK:x=.1;break}g=(0,ct.W8)(x,l)}}const v={"--color-background":g},C=e===P.xj.COLOR?o:u;if((e===P.xj.ACCENT||e===P.xj.COLOR)&&s===Lo.TRANSPARENT&&h){const x=jn({backgroundColor:g,contrast:C});v["--color-text"]=x}return v},[l,e,s,o,h,d,u]),f={...t,style:p};return(0,n.jsx)(Of,{...f})},jP=({alt:t,className:e,imageId:s,l10nId:o,url:r})=>{const a=(0,gn.Ll)(t);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(An,{alt:a,className:e,"data-l10n-id":o,id:s,src:r}),!a&&(0,n.jsx)("span",{className:"visually-hidden-always",children:"No image alternative text"})]})};class AP extends m.Component{static defaultProps={editable:!1,items:[],onStep:()=>{},stack:!1,isRTL:!1};state={activeIndex:0,flipStateMap:{},prefersKeyboardNavigation:!0};render(){const{blockId:e,animateBlockEntrance:s,isHidden:o,isLearner:r,items:a,labels:c,lessonId:d,onStep:l,previewType:u,isRTL:h,settings:p,stack:f}=this.props,{activeIndex:g}=this.state,{prefersKeyboardNavigation:v}=this.state,{entranceAnimation:C,showHint:x}=p,S=M()("block-flashcards",{"block-flashcard--column":!f,"block-flashcard--stack":f,"block-flashcards--no-animation":!C}),E=a.length>2?"small":"large",b=u===$e.o4.MOBILE_PORTRAIT||u===$e.o4.MOBILE_LANDSCAPE;return(0,n.jsx)(qt,{className:S,children:f?(0,n.jsx)(zt,{animateBlockEntrance:s,animateIn:"fadeIn",isLearner:r,offset:400,children:(0,n.jsx)("div",{className:"block-flashcard-carousel",children:(0,n.jsx)(Xd,{blockId:e,items:a,children:({carouselRef:L})=>(0,n.jsx)(Qd,{iconNameLeft:"chevron-left",iconNameRight:"chevron-right",isInfinite:!1,isRTL:h,labelCarousel:c?.a11yBlockFlashcardStack,labelCarouselRoleDesc:c?.a11yBlockFlashcardStackRoleDescription,labelSlideControls:c?.a11yBlockFlashcardStackSlideControls,labelSlideControlsGoToNext:c?.a11yBlockFlashcardStackSlideControlsGoToNext,labelSlideControlsGoToPrevious:c?.a11yBlockFlashcardStackSlideControlsGoToPrevious,labelSlideControlsGoToSlide:c?.a11yBlockFlashcardStackSlideControlsGoToSlide,labelSlidePreposition:c?.a11yBlockFlashcardStackSlidePreposition,labelSlideRoleDesc:c?.a11yBlockFlashcardStackSlideRoleDescription,onChange:this.handleCarouselChange.bind(this),shouldMouseEmulateTouch:b,shouldUseGoToSlide:!1,shouldUseCounter:!0,ref:L,children:a.map((I,N)=>(0,n.jsx)(Rf,{activeIndex:g,backDescription:I?.back?.description,backMedia:I?.back?.media,backType:I?.back?.type,frontDescription:I?.front?.description,frontMedia:I?.front?.media,frontType:I?.front?.type,id:I?.id,index:N,labels:c,lessonId:d,onFlip:this.handleFlip.bind(this),onStep:l,prefersKeyboardNavigation:v,settingShowHint:x,size:"large",type:"stack",wrapElement:"div"},I?.id))})})})}):(0,n.jsx)(zt,{animateBlockEntrance:s,animateIn:"fadeIn",className:"block-flashcards__animation",isLearner:r,siblingDelay:.25,children:(0,n.jsx)("ol",{className:"block-flashcards__wrapper",role:"list",children:a.map((L,I)=>(0,n.jsx)(Rf,{activeIndex:g,backDescription:L?.back?.description,backMedia:L?.back?.media,backType:L?.back?.type,blockId:e,frontDescription:L?.front?.description,frontMedia:L?.front?.media,frontType:L?.front?.type,id:L?.id,index:I,isHidden:o,labels:c,lessonId:d,onStep:l,prefersKeyboardNavigation:v,settingShowHint:x,size:E,type:"grid",wrapElement:"li",wrapRole:"listitem"},L?.id))})})})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("mousedown",this.handleMouseDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mousedown",this.handleMouseDown)}handleKeyDown=e=>{!this.state.prefersKeyboardNavigation&&!Ox(e)&&this.setState({prefersKeyboardNavigation:!0})};handleMouseDown=()=>{this.state.prefersKeyboardNavigation&&this.setState({prefersKeyboardNavigation:!0})};handleFlip(e,s){this.setState(o=>({flipStateMap:{...o.flipStateMap,[e]:s}}))}handleCarouselChange(e){const{block:s,dispatch:o,getL10nValue:r}=this.props,{flipStateMap:a}=this.state,c=a[e]?"back":"front",d=s.items?.[e]?.[c]?.media,u=r(d)?.audio?.transcript;u&&o(rl(u)),this.setState({activeIndex:e})}}const Pf=(0,Hs.Ls)()(Yd(cs(bd(AP))));var RP=i(55328),Qo=i.n(RP),OP=i(43358),ah=i.n(OP);const Mf=({canProceed:t,isReduceMotion:e,onNext:s,onSubmit:o,quizNext:r,quizSubmit:a,allowNext:c=!1})=>{const d=t?!0:void 0,l=t?void 0:o,u=t?-1:void 0,h=t?void 0:!0,p=t?s:void 0,f=t?void 0:-1,g=(0,m.useRef)(void 0),v=(0,as.A)(t);(0,m.useEffect)(()=>{c&&!v&&t&&setTimeout(()=>{g.current?.focus?.({preventScroll:e})},0)},[c,t,e,v]);const C=M()("quiz-card__actions",{"quiz-card__actions--proceed":t}),x=M()("quiz-card__button","quiz-card__button--next","brand_ui",{"brand--background":t,"visually-hidden-always":!t});return(0,n.jsxs)("div",{className:C,children:[(0,n.jsx)("div",{className:"quiz-card__submit brand--ui",children:(0,n.jsx)("button",{"aria-disabled":d,"aria-hidden":d,className:"quiz-card__button",onClick:l,tabIndex:u,type:"button",children:a})}),(0,n.jsx)("br",{role:"presentation",className:"visually-hidden-always"}),c&&(0,n.jsx)("div",{className:"quiz-card__next brand--ui",children:(0,n.jsx)("button",{"aria-disabled":h,"aria-hidden":h,className:x,onClick:p,ref:g,tabIndex:f,type:"button",children:r})})]})},PP=({children:t,isActive:e,isComplete:s,isTimedQuiz:o,style:r})=>(0,n.jsx)("div",{inert:e?void 0:!0,"aria-hidden":e?void 0:!0,className:MP({isActive:e,isComplete:s,isTimedQuiz:o}),style:r,children:(0,n.jsx)("div",{className:"quiz-card__container",children:(0,n.jsx)("div",{className:"quiz-card__row",children:(0,n.jsx)("div",{className:"quiz-card__main",children:t})})})}),MP=({isActive:t,isComplete:e,isTimedQuiz:s})=>M()("quiz-card",{"quiz-card--active":t,"quiz-card--done":e,"quiz-card--timed":s}),Df=PP;var Gr=i(20387),yt=i(17862);const{FILL_IN_THE_BLANK:kf,MATCHING:DP,MULTIPLE_CHOICE:kP,MULTIPLE_RESPONSE:wP}=yt.Ay;function BP({answers:t},e){return t.map(s=>e(s?.title)).filter(Boolean).join(", ")}function _P({answers:t,correct:e},s){const o=e!=null?(0,Gr.propEq)("id",e):(0,Gr.propEq)("correct",!0);return s(t.find(o)?.title)}function UP({answers:t,selection:e},s){return s(t?.[e]?.title)}function wf(t,e,s){return e.filter(t).reduce((o,r,a)=>{const c=s(r?.title)??"";return a===0?c:o+", "+c},"")}function HP({corrects:t,answers:e},s){return wf(r=>Array.isArray(t)?t.includes?.(r.id):r.correct,e,s)}function FP({answers:t,selection:e},s){return wf((r,a)=>e.includes(a),t,s)}function zP({answers:t,getL10nValue:e,selection:s,correctLabel:o,userLabel:r,matchLabel:a="Match Item: ",revealAnswers:c}){const d=(0,Gr.invertObj)(s);return t.map((l,u)=>{const h=e(l?.title)??"",p=e(l?.matchTitle)??"",f=d?.[u],g=e(t?.[f]?.title)??"";return c===yt.iV.INCORRECT?a+p+". "+r+": "+g+".":a+p+". "+o+": "+h+". "+r+": "+g+"."}).join(" ")}function ih({correctAnswer:t,selectedAnswer:e,correctLabel:s,userLabel:o,revealAnswers:r}){return!t||!e||r===yt.iV.NONE?"":r===yt.iV.INCORRECT?o+": "+(0,xo.QZ)(e)+".":s+": "+(0,xo.QZ)(t)+". "+o+": "+(0,xo.QZ)(e)+"."}function VP({item:t,labels:e}){return t.type===kf?e?.quizAcceptableResponses:e?.a11yCorrectLive}function WP({getL10nValue:t,isComplete:e,item:s,selection:o,labels:r,revealAnswers:a}){if(!s||!e)return null;const c=s?.answers??[],d=s?.correct,l=s?.corrects,u=VP({item:s,labels:r}),h=r?.a11yAnswerLive;switch(s.type){case DP:return zP({getL10nValue:t,answers:c,selection:o,correctLabel:u,userLabel:h,revealAnswers:a});case kf:return ih({correctAnswer:BP({answers:c},t),selectedAnswer:o,correctLabel:u,userLabel:h,revealAnswers:a});case kP:return ih({correctAnswer:_P({answers:c,correct:d},t),selectedAnswer:UP({answers:c,selection:o},t),correctLabel:u,userLabel:h,revealAnswers:a});case wP:return ih({correctAnswer:HP({corrects:l,answers:c},t),selectedAnswer:FP({answers:c,selection:o},t),correctLabel:u,userLabel:h,revealAnswers:a})}return null}const Bf=({canProceed:t,feedbackRef:e,feedbackValue:s,isActive:o,isComplete:r,isCorrect:a,item:c,labels:d,quizCorrect:l,quizIncorrect:u,revealAnswers:h,selection:p})=>{const{announcePolite:f,clearAnnouncements:g}=Je(),v=(0,as.A)(t),C=(0,It.gY)(),S=!!(0,It.QQ)(s),E=a?l:u,b=(0,m.useCallback)(()=>{const N=WP({getL10nValue:C,isComplete:r,item:c,labels:d,revealAnswers:h,selection:p}),R=s?(0,xo.QZ)(C(s)):"",j=E+". "+N+" "+R;let O;return j&&(O=setTimeout(()=>{f(j)},250)),()=>{clearTimeout(O)}},[f,s,C,r,c,d,E,h,p]);(0,m.useLayoutEffect)(()=>{!v&&t&&h!==yt.iV.NONE&&b()},[t,v,b,h]),(0,m.useEffect)(()=>g,[g]);const L=M()("quiz-card__feedback",{"quiz-card__feedback--active":t,"quiz-card__feedback--frame":S}),I=M()("quiz-card__feedback-icon",{"quiz-card__feedback-icon--correct":a});return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:L,"aria-hidden":o?void 0:!0,ref:e,children:(0,n.jsx)("div",{className:"quiz-card__main--feedback",children:(0,n.jsxs)("div",{"aria-label":d?.a11yQuizFeedback,className:"quiz-card__feedback-wrap",role:"group",children:[(0,n.jsx)("div",{className:I,children:(0,n.jsx)("i",{"aria-hidden":"true",className:a?"icon icon-Master-05":"icon icon-Master-06"})}),(0,n.jsx)("div",{className:"quiz-card__feedback-label",children:E}),(0,n.jsx)("div",{children:(0,n.jsx)(Nt,{allowTabNavigation:r&&o,className:"quiz-card__feedback-text",value:s})})]})})})})},GP=({children:t,hasNoBorder:e,type:s})=>(0,n.jsx)("div",{className:KP({hasNoBorder:e,type:s}),children:t}),KP=({hasNoBorder:t,type:e})=>M()("quiz-card__interactive",{"quiz-card__interactive--no-border":t,"quiz-card__interactive--fill":e==="FILL_IN_THE_BLANK"}),_f=GP;var $P=i(87839),QP=i.n($P),ZP=i(37022),YP=i.n(ZP),XP=i(59565),JP=i.n(XP),qP=i(65828),eM=i.n(qP);const tM=Es()((t,e)=>Aa()(JP()(null),eM()(t,e)));var sM=i(45013),Uf=i.n(sM),nM=i(77061),oM=i.n(nM),rM=i(24799),Hf=i.n(rM),aM=i(86697),iM=i.n(aM),cM=i(9325),Ff=i.n(cM),lM=i(89657),dM=i.n(lM);const ch=Ff()(Hf()),Xle=sn()(Hf(),()=>({})),Ma=Ff()(oM()),lh=A1()(Uf()(Ma),Uf()(iM())),Jle=dM()(lh),qle=t=>t.toLowerCase(),uM=({allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:s,index:o,labels:r,media:a,settings:c})=>(0,n.jsx)("div",{className:"quiz-card__media",children:(0,n.jsx)(En,{allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:s,index:o,labels:r,media:a,opts:c})}),hM=Aa()(YP()(["tmp"]),Ye()({},["media"])),mM=QP()(hM,lh),pM=A1()(mM,lh),zf=tM(pM,uM),fM=(t,e)=>{const s=Js(),o=(0,Kt.A)(e);(0,m.useEffect)(()=>{!o&&e&&t&&zc()(t.focus)&&t.focus({preventScroll:s})},[e,s,o,t])},sde=hr()((t,e,s)=>s>=t&&s<e),Vf=t=>t<10?`0${t}`:String(t),gM=t=>Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(t),Wf=t=>t.reduce((e,s)=>isNaN(s)||s==null?e:e+s,0),vM=({isActive:t,labels:e,num:s,quizQuestion:o,total:r})=>{const a=(0,m.useRef)();return fM(a.current,t),(0,n.jsx)("div",{className:"quiz-card__number",children:(0,n.jsxs)("h1",{"aria-label":`${e?.quizQuestion} ${s} ${e?.lessonPreposition} ${r}`,className:"quiz-card__number-title",ref:a,tabIndex:-1,children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"quiz-card__step-label",children:o}),(0,n.jsx)("span",{"aria-hidden":"true",className:"quiz-card__counter brand--color brand--ui",children:`${Vf(s)}/${Vf(r)}`})]})})},CM=({allowTabNavigation:t,id:e,value:s})=>(0,n.jsx)(Nt,{allowTabNavigation:t,className:"quiz-card__title",id:e,value:s}),cu={ANY:"ANY",CORRECT_INCORRECT:"CORRECT_INCORRECT",CHOICE:"CHOICE"},Gf={label:"Any Response",prop:"feedback"},xM={label:"By Choice",prop:"choice"},EM={correctProp:"feedbackCorrect",incorrectProp:"feedbackIncorrect",label:"Correct / Incorrect",type:"CORRECT_INCORRECT"},rde=Rs()([[ps()(cu.ANY),We()(Gf)],[ps()(cu.CHOICE),We()(xM)],[ps()(cu.CORRECT_INCORRECT),We()(EM)],[hn(),We()(Gf)]]),Kf=cu,TM=({allowTabNavigation:t,correctAnswerColor:e,correctAnswerColorContrast:s,errorMessageId:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:c,isCorrect:d,labels:l,onEnterToSubmit:u=Function.prototype,onChange:h=Function.prototype,options:p,questionHtmlId:f,quizAcceptableResponses:g,quizAnswerPlaceholder:v,revealAnswers:C,value:x})=>{const S=(0,m.useRef)(void 0),[E]=(0,m.useState)(()=>rt()("fitb-")),b=(0,It.gY)(),L=SM({options:p,getL10nValue:b}),I=`${E}-feedback`,N=`${E}-acceptable`,R=`${E}-input`,j=c?`${I} ${N}`:o||void 0,O=c?void 0:v,B=t?0:Ad,_=C===yt.iV.ALL||C===yt.iV.INCORRECT,k=C===yt.iV.ALL||d&&C===yt.iV.INCORRECT,te=d?e:r,K=e&&r&&{"--fa-primary-color":jn({backgroundColor:te,contrast:d?s:a}),"--fa-secondary-color":te},Z=r&&{backgroundColor:jn({backgroundColor:r,contrast:a}),fill:r,borderRadius:"50%"},xe=M()("quiz-fill__icon",{"quiz-fill__icon--visible":c}),fe=M()("quiz-fill__options",{"quiz-fill__options--visible":c}),oe=(0,m.useCallback)(Qe=>{h(Qe.currentTarget.value)},[h]),we=(0,m.useCallback)(Qe=>{va(Qe)&&u(Qe)},[u]),Ae=c?void 0:oe,_e=c?void 0:we;return(0,n.jsxs)("div",{className:"quiz-fill",children:[(0,n.jsxs)("div",{className:"quiz-fill__container",children:[(0,n.jsx)("input",{"aria-invalid":o?!0:void 0,"aria-labelledby":f,"aria-describedby":j,"aria-hidden":!t,"aria-readonly":c,"aria-required":"true",autoComplete:"off",className:"quiz-fill__input ignore-prefers",id:R,onChange:Ae,onKeyDown:_e,placeholder:O,readOnly:c,ref:S,tabIndex:B,type:"text",value:x}),_&&(0,n.jsxs)("div",{className:xe,id:I,children:[d&&(0,n.jsx)(Lt,{"aria-label":l?.quizCorrect,name:"circle-check",styleIcon:{height:"2rem",...K}}),!d&&(0,n.jsx)(g4,{"aria-label":l?.quizIncorrect,style:Z})]})]}),k&&c&&(0,n.jsx)("div",{className:fe,id:N,children:(0,n.jsx)(Nt,{value:`${g}: ${L}`})})]})},SM=({options:t,getL10nValue:e})=>t.map(o=>ma()(e(o.title)??"")).join(", "),$f=TM;function LM({correctAnswerColor:t,correctAnswerColorContrast:e}){const s=(0,Me.vU)(),o=jn({backgroundColor:t,contrast:e}),r=t?{"--fa-primary-color":o,"--fa-secondary-color":t}:void 0;return(0,n.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,n.jsx)(Lt,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--correct",name:"circle-check",style:r}),(0,n.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,n.jsx)("span",{className:"matching-results-item-feedback-text-result",children:s?.quizCorrect})})]})}var Fi=i(59288);function bM({correctAnswerValue:t,incorrectAnswerColor:e,incorrectAnswerColorContrast:s,shouldRevealCorrectAnswer:o}){const[r,a]=Fi.useState(!0),[c,d]=Fi.useState(!1),l=Fi.useRef(null),h=`matching-text-${Fi.useId()}`,p=(0,Me.vU)(),f=(0,as.A)(t),g=Fi.useCallback(()=>{a(L=>!L)},[]);Fi.useLayoutEffect(()=>{if(f!==t){const L=l.current;L!=null&&L.scrollWidth>L.clientWidth&&d(!0)}},[f,t]);const v=jn({backgroundColor:e,contrast:s}),C=e?{"--fa-primary-color":v,"--fa-secondary-color":e}:void 0,x=M()("matching-results-item-feedback-text",{"matching-results-item-feedback-text--collapsed":r}),S=M()("matching-results-item-feedback-text-btn-icon",{"matching-results-item-feedback-text-btn-icon--collapsed":r}),E=M()("matching-results-item-feedback-text-extra",{"matching-results-item-feedback-text-extra--collapsed":r}),b=M()("matching-results-item-feedback-text-extra-text",{"matching-results-item-feedback-text-extra-text--collapsed":r});return(0,n.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,n.jsx)(Lt,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--incorrect",name:"circle-xmark-duotone",style:C}),!o&&(0,n.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,n.jsx)("span",{className:"matching-results-item-feedback-text-result",children:p?.quizIncorrect})}),o&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("span",{className:x,children:[(0,n.jsxs)("span",{className:"matching-results-item-feedback-text-result",children:[p?.quizIncorrect,"."]}),c&&(0,n.jsx)("button",{"aria-controls":h,"aria-label":r?p?.a11yMatchingItemShowMore:p?.a11yMatchingItemShowLess,"aria-expanded":!r,className:"matching-results-item-feedback-text-btn",onClick:g,type:"button",children:(0,n.jsx)(Lt,{className:S,name:"caret-down",style:C})}),(0,n.jsx)("span",{className:E,children:(0,n.jsxs)("span",{className:b,id:h,ref:l,children:[p?.quizCorrect,": ",(0,n.jsx)(wn,{value:t})]})})]})})]})}function yM({col1Id:t,col1Value:e,col2Id:s,col2Value:o,correctAnswerColor:r,correctAnswerColorContrast:a,correctAnswerValue:c,height:d,incorrectAnswerColor:l,incorrectAnswerColorContrast:u,revealAnswers:h}){const p=t===s,f=h!=="incorrect",g=h!=="none";return(0,n.jsxs)("li",{className:"matching-results-item",role:"listitem",children:[(0,n.jsxs)("div",{className:"matching-results-item-pieces",children:[(0,n.jsxs)("div",{className:"matching-results-item-piece",style:d?{height:d}:void 0,children:[(0,n.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,n.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,n.jsx)("span",{className:"matching-results-item-piece-content",children:(0,n.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,n.jsx)(wn,{value:e})})})]}),(0,n.jsxs)("div",{className:"matching-results-item-piece",children:[(0,n.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,n.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,n.jsx)("span",{className:"matching-results-item-piece-content",children:(0,n.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,n.jsx)(wn,{value:o})})})]})]}),g&&p&&(0,n.jsx)(LM,{correctAnswerColor:r,correctAnswerColorContrast:a}),g&&!p&&(0,n.jsx)(bM,{correctAnswerValue:c,incorrectAnswerColor:l,incorrectAnswerColorContrast:u,shouldRevealCorrectAnswer:f})]})}function IM({answers:t,columnBehavior:e,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,itemHeight:c,revealAnswers:d,rows:l}){return(0,n.jsx)("div",{className:"matching-results",children:(0,n.jsx)("ul",{className:"matching-results-list",role:"list",children:l.map((u,h)=>{const[p,f]=u,g=e==="freezeFirst"?t.find(v=>v.id===p.id)?.matchTitle:t.find(v=>v.id===f.id)?.title;return(0,n.jsx)(yM,{col1Id:p.id,col1Value:p.value,col2Id:f.id,col2Value:f.value,correctAnswerColor:s,correctAnswerColorContrast:o,correctAnswerValue:g,height:c,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,revealAnswers:d},h)})})})}var NM=i(63310),dh=i.n(NM);dh().dynamicDrop(!0),dh().pointerMoveTolerance(8);const Zo=dh();var zi=i(59288);function jM(t,{onStart:e,onMove:s,onEnd:o,isEnabled:r=!0}){const a=zi.useRef({x:0,y:0}),c=zi.useRef({x:0,y:0}),d=zi.useRef(!1),l=zi.useRef(null),u=zi.useRef(void 0);zi.useEffect(()=>{const h=t.current;if(!h||!r||d.current)return;l.current=gx(h);function p(){const f=l.current;return f instanceof Window?{x:window.scrollX,y:window.scrollY}:{x:f.scrollLeft,y:f.scrollTop}}return u.current=()=>{const f=p(),g=f.x-c.current.x,v=f.y-c.current.y;(g!==0||v!==0)&&(a.current.x+=g,a.current.y+=v,t.current&&(t.current.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,s?.({...a.current})),c.current=f)},Zo(h).draggable({inertia:!1,autoScroll:{container:l.current,distance:5,interval:10,margin:50},listeners:{start:()=>{a.current={x:0,y:0},c.current=p(),l.current?.addEventListener("scroll",u.current,{passive:!0}),e?.()},move:f=>{a.current.x+=f.dx,a.current.y+=f.dy,h.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,s?.({...a.current})},end:()=>{a.current={x:0,y:0},h.style.transform="",l.current?.removeEventListener("scroll",u.current),setTimeout(()=>{o?.()},0)}}}),d.current=!0,()=>{Zo(h).unset(),l.current?.removeEventListener("scroll",u.current),d.current=!1}},[t,e,s,o,r])}var Qf=i(59288);function AM(t,{isEnabled:e=!0,onDrop:s,onEnter:o,onLeave:r,overlap:a=.015}){const c=Qf.useRef(!1);Qf.useEffect(()=>{const d=t.current;if(!(!d||!e||c.current))return Zo(d).dropzone({overlap:a,listeners:{drop:()=>{s?.()},dragenter:()=>{o?.()},dragleave:()=>{r?.()}}}),c.current=!0,()=>{Zo(d).unset(),c.current=!1}},[t,s,o,r,e,a])}var so=i(59288);const Zf=so.memo(function({col:e,height:s,id:o,index:r,isActive:a,isFrozen:c,isMatched:d,isMoved:l,onClick:u,onDragEnd:h,onDragStart:p,onDrop:f,onDropZoneEnter:g,onDropZoneLeave:v,onKeyDown:C,value:x,valueOtherColumnActive:S,valueOtherColumnMatch:E}){const[b,L]=so.useState(!1),I=so.useRef(null),N=so.useRef(null),R=(0,Me.vU)(),j=so.useCallback(()=>{u({col:e,id:o,value:x})},[e,o,u,x]),O=so.useCallback(()=>{L(!0),p({col:e,id:o,value:x})},[e,o,p,x]),B=so.useCallback(()=>{h(),L(!1)},[h]),_=so.useCallback(()=>{f({col:e,id:o,value:x})},[e,o,f,x]),k=so.useCallback(()=>{g({col:e,id:o,value:x})},[e,o,g,x]),te=so.useCallback(()=>{v()},[v]),F=so.useCallback(oe=>{C(oe,{col:e,index:r})},[e,r,C]);so.useEffect(()=>{e===1&&r===0||N.current?.setAttribute("tabindex","-1")},[]),jM(I,{isEnabled:!c,onStart:O,onEnd:B}),AM(I,{isEnabled:c,onDrop:_,onEnter:k,onLeave:te});const K=M()("matching-interaction-piece",{"matching-interaction-piece--matched":d,"matching-interaction-piece--moved":l}),Z=E==null?null:(0,n.jsxs)(n.Fragment,{children:[R?.a11yMatchingItemMatchedWith," ",(0,n.jsx)(wn,{value:E})]}),xe=S==null?(0,n.jsx)(n.Fragment,{children:R?.a11yMatchingItemSelectableItem}):(0,n.jsxs)(n.Fragment,{children:[R?.a11yMatchingItemMatchWith," ",(0,n.jsx)(wn,{value:S})]}),fe=M()("matching-interaction-item",{draggable:!c,"draggable--dragging":!c&&b,droppable:c});return(0,n.jsx)("li",{className:fe,ref:I,role:"listitem",children:(0,n.jsxs)("button",{"aria-pressed":a||d?!0:void 0,className:K,"data-state":a?"active":void 0,onClick:b?void 0:j,onKeyDown:F,ref:N,style:s?{height:s}:void 0,type:"button",children:[c?(0,n.jsx)("span",{className:"matching-interaction-piece-decoration"}):(0,n.jsx)(Lt,{className:"matching-interaction-piece-decoration",name:"grip-dots-vertical"}),e===2?(0,n.jsx)("span",{className:"matching-interaction-piece-jigsaw"}):null,(0,n.jsx)("span",{className:"matching-interaction-piece-content",children:(0,n.jsx)("span",{"data-matching-interaction-piece-content-inline":"",children:(0,n.jsx)(wn,{value:x})})}),(0,n.jsx)("span",{className:"visually-hidden-always",children:Z}),(0,n.jsx)("span",{className:"visually-hidden-always",children:xe})]},o)})});var ss=i(59288);function RM({answers:t,columnBehavior:e,isActive:s,itemHeight:o,matches:r,onChange:a,onChangeItemHeight:c,onChangeRows:d,prefersKeyboardNavigation:l}){const u=(0,as.A)(s),h=(0,as.A)(e),p=(0,as.A)(t),f=(0,as.A)(r),g=(0,Me.vU)(),[v,C]=ss.useState(void 0),[x,S]=ss.useState(void 0),[E,b]=ss.useState(void 0),[L,I]=ss.useState(!1),N=ss.useRef(null),R=ss.useRef(null),j=ss.useRef(null),O=ss.useRef(void 0),B=ss.useRef(void 0),[_,k]=ss.useState(()=>lu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),[te,F]=ss.useState(()=>lu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})),K=ss.useMemo(()=>t.map(Ne=>({col:1,id:Ne.id,value:Ne.title})).toSorted((Ne,Ke)=>{const He=_.get(Ne.id)??1/0,dt=_.get(Ke.id)??1/0;return He-dt}),[t,_]),Z=ss.useMemo(()=>t.map(Ne=>({col:2,id:Ne.id,value:Ne.matchTitle})).toSorted((Ne,Ke)=>{const He=te.get(Ne.id)??1/0,dt=te.get(Ke.id)??1/0;return He-dt}),[t,te]),xe=ss.useCallback(()=>{for(const Ce of N.current?.querySelectorAll('button:not([tabindex="-1"])')??[])Ce.setAttribute("tabindex","-1")},[]),fe=ss.useCallback(Ce=>{const Ne=Array.from(_),Ke=Array.from(te);if(e==="freezeSecond"){const He=new Array(Ke.length),dt=Ne.map(Wt=>Wt[0]).filter(Wt=>!(Wt in Ce));for(const[Wt,vs]of Object.entries(Ce)){const en=te.get(vs);He[en]=[Wt,en]}for(let Wt=0;Wt<He.length;Wt++)if(He[Wt]==null){const vs=dt.shift();He[Wt]=[vs,Wt]}const lt=new Map(He),Ht=Yf(_,lt);Ht.length>0&&S(Ht),k(lt)}else{const He=new Array(Ne.length),dt=new Set(Object.values(Ce)),lt=Ke.map(vs=>vs[0]).filter(vs=>!dt.has(vs));for(const[vs,en]of Object.entries(Ce)){const Pn=_.get(vs);He[Pn]=[en,Pn]}for(let vs=0;vs<He.length;vs++)if(He[vs]==null){const en=lt.shift();He[vs]=[en,vs]}const Ht=new Map(He),Wt=Yf(te,Ht);Wt.length>0&&b(Wt),F(Ht)}},[e,_,te]),oe=ss.useCallback(Ce=>{O.current=Ce},[]),we=ss.useCallback(()=>{B.current==null&&(O.current=void 0)},[]),Ae=ss.useCallback(Ce=>{B.current=Ce},[]),_e=ss.useCallback(()=>{B.current=void 0},[]),Qe=ss.useCallback(Ce=>{if(O.current!=null){const Ke=structuredClone(r),He=Ce.col===1?Ce.id:O.current.id,dt=Ce.col===1?O.current.id:Ce.id;if(He in r&&delete Ke[He],Object.values(Ke).includes(dt)){for(const lt in Ke)if(Ke[lt]===dt){delete Ke[lt];break}}Ke[He]=dt,O.current=void 0,B.current=void 0,a(Ke)}},[r,a]),pt=ss.useCallback(Ce=>{const Ne=structuredClone(r);let Ke=!1,He=!1,dt=v;if(Ce.col===1&&Ce.id in r)delete Ne[Ce.id],Ke=!0,dt=null;else if(Ce.col===2&&Object.values(Ne).includes(Ce.id)){for(const lt in Ne)if(Ne[lt]===Ce.id){delete Ne[lt],Ke=!0,dt=null;break}}else v==null&&(dt={col:Ce.col,id:Ce.id,value:Ce.value},He=!0);if(v!=null)if(v.col===Ce.col)v.id===Ce.id?dt=null:dt={col:Ce.col,id:Ce.id,value:Ce.value};else{const lt=Ce.col===1?Ce.id:v.id,Ht=Ce.col===1?v.id:Ce.id;lt in r&&delete Ne[lt],Ne[lt]=Ht,Ke=!0,He=!0,dt=null}if(Ke&&a(Ne),v!==dt&&C(dt),He){const Ht=(Ce.col===1?j:R).current?.querySelector('button:not([aria-pressed="true"])');Ht&&(xe(),Ht.removeAttribute("tabindex"),Ht.focus({preventScroll:!l}))}},[l,v,r,a,xe]),ls=ss.useCallback((Ce,{col:Ne,index:Ke})=>{const He=Ce.currentTarget;let dt=!1,lt=null;switch(Ce.key){case"ArrowUp":dt=!0,lt=He.parentElement.previousElementSibling?.firstElementChild;break;case"ArrowDown":dt=!0,lt=He.parentElement.nextElementSibling?.firstElementChild;break;case"ArrowRight":dt=!0,lt=Ne===1?j.current?.children[Ke]?.firstElementChild:void 0;break;case"ArrowLeft":dt=!0,lt=Ne===2?R.current?.children[Ke]?.firstElementChild:void 0;break;case"Home":dt=!0,lt=He.closest("ul").firstElementChild.firstElementChild;break;case"End":dt=!0,lt=He.closest("ul").lastElementChild.firstElementChild;break}dt&&(Ce.preventDefault(),Ce.stopPropagation()),lt&&(xe(),lt.removeAttribute("tabindex"),lt.focus())},[xe]);ss.useEffect(()=>{r!==f&&Object.keys(r).length>0&&fe(r)},[fe,r,f]),ss.useEffect(()=>{const Ce=({shouldFocus:He})=>{const dt=v.col===1?R:j;xe();const lt=dt.current.querySelector('button[data-state="active"]');lt?.removeAttribute("tabindex"),He&&lt?.focus(),C(null)},Ne=He=>{N.current?.contains(He.target)||Ce({shouldFocus:!1})},Ke=He=>{yn(He)&&v!=null&&Ce({shouldFocus:!0})};return v==null?(document.removeEventListener("mousedown",Ne),document.removeEventListener("keydown",Ke)):(document.addEventListener("mousedown",Ne),document.addEventListener("keydown",Ke)),()=>{document.removeEventListener("mousedown",Ne),document.removeEventListener("keydown",Ke)}},[v,xe]);const nt=ss.useCallback(()=>{const Ce=Array.from(N.current?.querySelectorAll("[data-matching-interaction-piece-content-inline]"));if(Ce.length===0)return;const Ne=Ce[0].closest("button");let Ke=0,He;if(Ne){const lt=window.getComputedStyle(Ne),Ht=parseFloat(lt.paddingBlockStart)+parseFloat(lt.paddingBlockEnd),Wt=parseFloat(lt.borderTopWidth)+parseFloat(lt.borderBottomWidth);Ke=Ht+Wt,He=parseFloat(lt.minHeight)}const dt=Ce.reduce((lt,Ht)=>Math.max(lt,Ht.scrollHeight+Ke),0);He&&He>=dt?c(void 0):c(dt)},[c]);return ss.useEffect(()=>{(!u&&s||p!==t)&&nt()},[u,s,t,p,nt]),ss.useEffect(()=>{const Ce=N.current?.closest(".quiz-card");let Ne;return Ce!=null&&(Ne=new ResizeObserver(()=>{nt()}),Ne.observe(Ce)),()=>{Ce!=null&&Ne!=null&&Ne.unobserve(Ce)}},[nt]),ss.useEffect(()=>{let Ce,Ne;return x&&(Ce=setTimeout(()=>{S(void 0)},1e3)),E&&(Ne=setTimeout(()=>{b(void 0)},1e3)),()=>{clearTimeout(Ce),clearTimeout(Ne)}},[x,E]),ss.useEffect(()=>{L&&h!==e&&(a({}),fe({}),C(void 0),k(lu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),F(lu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})))},[L,e,h,t,a,fe]),ss.useEffect(()=>{if(K.length<=0)return;const Ce=K.map((Ne,Ke)=>[Ne,Z[Ke]]);d(Ce)},[K,Z,d]),ss.useEffect(()=>{I(!0)},[]),(0,n.jsxs)("div",{className:"matching-interaction",ref:N,children:[(0,n.jsx)("ul",{"aria-label":g?.a11yMatchingColumn1,className:"matching-interaction-col matching-interaction-col-1",ref:R,role:"list",children:K.map((Ce,Ne)=>{const Ke=Ce.id in r;return(0,n.jsx)(Zf,{col:1,height:o,id:Ce.id,index:Ne,isActive:v?.col===1&&v?.id===Ce.id,isFrozen:e==="freezeFirst",isMatched:Ke,isMoved:x?.map(He=>He.id).includes(Ce.id),onClick:pt,onDragStart:oe,onDragEnd:we,onDrop:Qe,onDropZoneEnter:Ae,onDropZoneLeave:_e,onKeyDown:ls,value:Ce.value,valueOtherColumnActive:v?.col===2?v?.value:void 0,valueOtherColumnMatch:Ke?Z[Ne]?.value:void 0},Ce.id)})}),(0,n.jsx)("ul",{"aria-label":g?.a11yMatchingColumn2,className:"matching-interaction-col matching-interaction-col-2",ref:j,role:"list",children:Z.map((Ce,Ne)=>{const Ke=Ce.id in r;return(0,n.jsx)(Zf,{col:2,height:o,id:Ce.id,index:Ne,isActive:v?.col===2&&v?.id===Ce.id,isFrozen:e==="freezeSecond",isMatched:Object.values(r).includes(Ce.id),isMoved:E?.map(He=>He.id).includes(Ce.id),onClick:pt,onDragStart:oe,onDragEnd:we,onDrop:Qe,onDropZoneEnter:Ae,onDropZoneLeave:_e,onKeyDown:ls,value:Ce.value,valueOtherColumnActive:v?.col===1?v?.value:void 0,valueOtherColumnMatch:Ke?K[Ne]?.value:void 0},Ce.id)})})]})}const lu=({answers:t,columnBehavior:e,columnBehaviorToShuffle:s})=>{let o=t.map(r=>r.id);return e===s&&(o=(0,Af.shuffle)(o)),new Map(o.map((r,a)=>[r,a]))};function Yf(t,e){const s=[];for(const[o,r]of t){const a=e.get(o);a!==r&&s.push({id:o,from:r,to:a})}return s}var du=i(59288);function Xf({columnBehavior:t="freezeSecond",...e}){const[s,o]=du.useState([]),[r,a]=du.useState(void 0),c=du.useCallback(l=>{o(l)},[]),d=du.useCallback(l=>{a(l)},[]);return e.isComplete?(0,n.jsx)(IM,{...e,columnBehavior:t,itemHeight:r,rows:s}):(0,n.jsx)(RM,{...e,columnBehavior:t,itemHeight:r,onChangeItemHeight:d,onChangeRows:c})}const OM=({allowTabNavigation:t,color:e,correctId:s,errorMessageId:o,isComplete:r,isCorrect:a,isReduceMotion:c,labels:d,onChange:l,onEnterToSubmit:u,options:h=[],questionHtmlId:p,renderOptionText:f,revealAnswers:g,selectedIndex:v})=>(0,n.jsx)(Zd,{"aria-invalid":o?!0:void 0,"aria-labelledby":[p,o].filter(Boolean).join(" "),"aria-required":"true",role:"radiogroup",children:h.map((C,x,S)=>(0,n.jsx)(PM,{allowTabNavigation:t,color:e,id:C.id,index:x,isComplete:r,isCorrect:a,isCorrectOption:s===C.id,isFirst:x===0,isFresh:v===-1||v===null||v===void 0,isLast:x===S.length-1,isReduceMotion:c,isSelected:v===x,labels:d,onChange:l,onEnterToSubmit:u,questionHtmlId:p,renderOptionText:f,revealAnswers:g,title:C.title},C.id))}),PM=({allowTabNavigation:t,color:e,id:s,index:o,isComplete:r,isCorrect:a,isCorrectOption:c,isFresh:d,isSelected:l,isReduceMotion:u,labels:h,onChange:p,onEnterToSubmit:f,questionHtmlId:g,renderOptionText:v,revealAnswers:C,title:x})=>{const[S]=(0,m.useState)(()=>rt()("qmc-")),E=(0,m.useRef)(void 0),b=(0,Kt.A)(l),L=!!r,I=t&&(l||d&&o===0)?0:Ad,N=C===yt.iV.ALL,R=C==yt.iV.INCORRECT,j=N||R&&a,O=N||R&&a||R&&!a&&l,B=r&&c&&j,_=r&&!c&&O,k=B||_,te=k?`${S}-result`:void 0,F=M()("quiz-multiple-choice-option",{"is-complete":r,"is-correct":B,"is-incorrect":_,"is-selected":l}),K=M()("quiz-multiple-choice-option__dot",{"quiz-multiple-choice-option__dot--active":l&&!r}),Z=M()("quiz-multiple-choice-option__check",{"quiz-multiple-choice-option__check--active":B}),xe=M()("quiz-multiple-choice-option__x",{"quiz-multiple-choice-option__x--active":_}),fe=M()("quiz-multiple-choice-option__border"),oe=(0,m.useCallback)(_e=>{va(_e)&&f(_e)},[f]),we=(0,m.useCallback)(()=>{p({selectedIndex:o})},[o,p]),Ae=r?void 0:oe;return(0,m.useEffect)(()=>{t&&!b&&l&&E.current&&E.current.focus({preventScroll:u})},[t,l,u,b]),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{"aria-describedby":te,className:F,ref:E,children:[(0,n.jsx)("input",{type:"radio",name:g,onKeyDown:Ae,tabIndex:I,disabled:L,className:"quiz-multiple-choice-option__input",onChange:r?void 0:we}),(0,n.jsxs)("div",{className:"quiz-multiple-choice-option__indicator",style:{color:e},children:[(0,n.jsx)(dp,{className:K}),(0,n.jsx)(lp,{className:Z}),(0,n.jsx)(up,{"aria-hidden":"true",className:xe,overrideStyle:!0})]}),(0,n.jsx)("div",{className:fe}),(0,n.jsx)("div",{className:"quiz-multiple-choice-option__text",children:v({optionId:s,title:x})})]}),k&&(0,n.jsxs)("div",{className:"visually-hidden-always",id:te,children:[l&&c&&h?.a11yQuizReviewCorrectlySelected,l&&!c&&h?.a11yQuizReviewIncorrectlySelected,!l&&c&&h?.a11yQuizReviewIncorrectlyUnselected,!l&&!c&&h?.a11yQuizReviewCorrectlyUnselected]})]})},Jf=OM,MM=({allowTabNavigation:t,correctIds:e=[],errorMessageId:s,isComplete:o,isCorrect:r,labels:a,onChange:c,onEnterToSubmit:d,options:l=[],questionHtmlId:u,renderOptionText:h,revealAnswers:p,selectedIndices:f=[]})=>(0,n.jsx)("div",{"aria-labelledby":[u,s].filter(Boolean).join(" "),"aria-required":"true",role:"group",children:(0,n.jsx)("ul",{children:l.map((g,v)=>(0,n.jsx)(DM,{allowTabNavigation:t,errorMessageId:s,id:g.id,index:v,isComplete:o,isCorrect:r,isCorrectOption:on()(g.id,e),isSelected:on()(v,f),labels:a,onChange:c,onEnterToSubmit:d,renderOptionText:h,revealAnswers:p,title:g.title},g.id))})}),DM=({allowTabNavigation:t,errorMessageId:e,id:s,index:o,isComplete:r,isCorrect:a,isCorrectOption:c,isSelected:d,labels:l,onChange:u,onEnterToSubmit:h,renderOptionText:p,revealAnswers:f,title:g})=>{const[v]=(0,m.useState)(()=>rt()("qmr-")),C=r&&f===yt.iV.ALL,x=C?`${v}-result`:void 0,S=!!r,E=t?0:Ad,b=f===yt.iV.ALL,L=f==yt.iV.INCORRECT,I=b||L&&a||L&&!a&&d,N=M()("quiz-multiple-response-option",{"quiz-multiple-response-option--complete":r,"quiz-multiple-response-option--selected":d,"quiz-multiple-response-option--correct":r&&c&&I,"quiz-multiple-response-option--incorrect":r&&!c&&I}),R=M()("quiz-multiple-response-option__border"),j=(0,m.useCallback)(_=>{va(_)&&h(_)},[h]),O=(0,m.useCallback)(()=>{u({optionIndex:o})},[o,u]),B=r?void 0:j;return(0,n.jsxs)("li",{children:[(0,n.jsxs)("label",{className:N,"aria-describedby":x,children:[(0,n.jsx)("input",{"aria-describedby":e||void 0,"aria-invalid":e?!0:void 0,type:"checkbox",onKeyDown:B,tabIndex:E,disabled:S,className:"quiz-multiple-response-option__input",onChange:r?void 0:O}),(0,n.jsxs)("div",{className:"quiz-multiple-response-option__indicator",children:[(0,n.jsx)(lp,{className:"quiz-multiple-response-option__check"}),(0,n.jsx)(up,{"aria-hidden":"true",className:"quiz-multiple-response-option__x",overrideStyle:!0,height:"8",width:"8"})]}),(0,n.jsx)("div",{className:R}),(0,n.jsx)("div",{className:"quiz-multiple-response-option__text",children:p({optionId:s,title:g})})]}),C&&(0,n.jsxs)("div",{className:"visually-hidden-always",id:x,children:[d&&c&&l?.a11yQuizReviewCorrectlyChecked,d&&!c&&l?.a11yQuizReviewIncorrectlyChecked,!d&&c&&l?.a11yQuizReviewIncorrectlyUnchecked,!d&&!c&&l?.a11yQuizReviewCorrectlyUnchecked]})]})},qf=MM;var kM=i(1034),pl=i.n(kM),wM=i(55414),Un=i.n(wM),BM=i(58488),uh=i.n(BM),_M=i(77504),Yo=i.n(_M);const e6=pl()(Un()),UM=Qt()(Ue()("correct",!0)),HM=Se()(sn()(ps()(-1),We()(0)),Ts()(Ue()("correct",!0))),ade=t=>compose(contains(t),uu),FM=({answers:t,fillInValue:e,isCaseSensitive:s,getL10nValue:o})=>{const r=s?ma():Se()(ma(),Oa()),a=t.map(c=>r(o(c.title)??""));return on()(r(e),a)},zM=({answers:t,selectedIndices:e})=>ps()(Yo()(e6,e),Se()(Yo()(e6),ws()(Se()(Eo()(Ts())(t),Ue()("id"))),uu)(t)),VM=t=>({MATCHING:Un(),FILL_IN_THE_BLANK:hh,MULTIPLE_CHOICE:Un(),MULTIPLE_RESPONSE:Un()})[t],uu=Se()(Tt()("id"),UM),WM=Se()(As(),uu),hh=Qt()(Ue()("correct",!0)),GM=Se()(Pe()("id"),As()),ide=Se()(us(),uh()),cde={MULTIPLE_CHOICE:{label:"Multiple Choice",icon:(0,n.jsx)(i4,{})},MULTIPLE_RESPONSE:{label:"Multiple Response",icon:(0,n.jsx)(c4,{})},FILL_IN_THE_BLANK:{label:"Fill in the blank",icon:(0,n.jsx)(v0,{})},MATCHING:{label:"Matching",icon:(0,n.jsx)(a4,{})}};var lde=i(52988),KM=i(84136),mh=i.n(KM),$M=i(77170),yo=i.n($M),QM=i(97223),ZM=i.n(QM),YM=i(82501),t6=i.n(YM),XM=i(18448),hu=i.n(XM),JM=i(40132),qM=i.n(JM),eD=i(66919),tD=i.n(eD),sD=i(84761),nD=i.n(sD),oD=i(34700),rD=i.n(oD),aD=i(39010),s6=i.n(aD),iD=i(54569),cD=i.n(iD),lD=i(79975),dD=i.n(lD),uD=i(62599),ph=i.n(uD),hD=i(13219),fh=i.n(hD),mD=i(59441),n6=i.n(mD),pD=i(30041),fD=i.n(pD),dde=i(77406);const gD=(...t)=>Se()(...fD()(1,t))(Do()(t)),ude=(t,e)=>cond(e)(t),gh=(t,...e)=>St()(...e)(t),hde=(t,...e)=>pipeP(...e)(t),o6=t=>e=>{const{folders:s}=t,{id:o}=e,r=filter(propEq("parentId",o),s),a=map(o6(t),r);return[e,...flatten(a)]},vD=t=>(e,{id:s})=>pipeWith(t,filter(propEq("folderId",s)),concat(e)),vh=n6()(Se()(Oa(),Pe()("title"))),r6=t=>e=>{const s=qe()(Ue()("id",e),t),o=gh(t,dD()(Fs()(Ue()("parentId",e),St()(Pe()("id"),r6(t)),We()([]))),vh);return st()("subfolders",o,s)},CD=({folders:t,ids:e})=>gD(vh,ws()(r6(t)),e),xD=t=>(e,s)=>t[s.parentId]?e:Qo()(s,e),ED=t=>{const e=ph()(Pe()("id"),t||[]);return Nn()(xD(e),[],t)},TD=St()(ED,Tt()(["id"])),SD=St()(t=>({folders:t,ids:TD(t)}),CD),a6=(t,e,s=[])=>{const o=qe()(Ue()("id",t),e),{parentId:r}=o||{},a=o?[o,...s]:s;return r?a6(r,e,a):a},mde=({category:t,folders:e,...s})=>pipe(o6({folders:e}),o=>({folders:o,[t]:reduce(vD(s[t]),[],o)})),Ch="owner",i6="manager",xh="editor",c6="viewer",LD="shared",l6=[c6,xh,i6,Ch],mu=({effectiveRole:t,requiredRole:e})=>{const s=fh()(t,l6),o=fh()(e,l6);return s>=o},bD=t=>{const{allowViewer:e,effectiveRole:s,id:o,type:r}=t;return wt()(o)||!(r===LD)||mu({effectiveRole:s,requiredRole:e?c6:xh})};var yD=i(62116),d6=i.n(yD),ID=i(22423),Hn=i.n(ID);const ND=Rs()([[d6()(String),Un()],[wt(),We()(void 0)],[ur()("displayName"),Pe()("displayName")],[ur()("name"),Pe()("name")],[hn(),We()("Component")]]),jD=Ps()(["enableClickOutside","hideScroll","onClickOutside","preventDefault","stopPropagation"]);class Eh extends m.Component{static defaultProps={onClickOutside:Function.prototype,preventDefault:!0,stopPropagation:!0};constructor(...e){super(...e),this.onBodyMouseDownDelegate=this.onBodyMouseDown.bind(this),this.onBodyClickDelegate=this.onBodyClick.bind(this),this.containerRef=ie().createRef(),this.addDomEvents()}componentWillUnmount(){this.removeDomEvents()}onBodyClick(e){const{onClickOutside:s,preventDefault:o,stopPropagation:r}=this.props,{target:a}=e;this.shouldClickOutside(a)&&(o&&e.preventDefault(),r&&e.stopPropagation(),s(e)),this.cancel=!1}onBodyMouseDown(e){this.cancel=!this.shouldClickOutside(e.target)}render(){const{Child:e,props:s}=this;return(0,n.jsx)(e,{...jD(s),ref:this.containerRef})}setupDomEvents(e){const s=e?"addEventListener":"removeEventListener";document.body[s]("click",this.onBodyClickDelegate,!0),document.body[s]("mousedown",this.onBodyMouseDownDelegate,!0)}shouldClickOutside(e){const{enableClickOutside:s}=this.props,o=this.containerRef.current;return s&&!this.cancel&&o!==null&&o!==e&&!o.contains(e)}}Eh.propTypes={enableClickOutside:A().bool,onClickOutside:A().func.isRequired,preventDefault:A().bool,stopPropagation:A().bool};const{prototype:Th}=Eh;Object.assign(Th,{addDomEvents:Hn()(Th.setupDomEvents,[!0]),removeDomEvents:Hn()(Th.setupDomEvents,[!1])});const Sh=t=>class extends Eh{static get displayName(){return`ClickableOutside(${ND(t)})`}get Child(){return t}},AD=Sh("div"),pde=Sh("span"),fde=Sh("form"),Kr=J("bc-dropdown"),pu=new Map,u6=t=>t==null?0:t.offsetLeft+u6(t.offsetParent),RD=()=>{for(const t of pu.values())t()},h6=Vr()(RD,250);window.addEventListener("resize",h6),window.addEventListener("orientationchange",h6);class fl extends m.Component{static defaultProps={align:"center"};constructor(...e){super(...e),this.posRef=ie().createRef(),this.update(this.props)}componentDidUpdate(e){this.update(this.props,e)}componentWillUnmount(){pu.delete(this)}fitOnScreen(){const{props:{fit:e},posRef:{current:s}}=this;if(e&&s!=null){Object.assign(s.style,{left:"",right:""});const r=u6(s)+s.offsetWidth-window.innerWidth+20,[a,c]=r>0?["auto","0"]:["",""];Object.assign(s.style,{left:a,right:c})}}render(){const{active:e,align:s,children:o,className:r,onClose:a,role:c="menu",slideIn:d,...l}=this.props,u=Kr("pos",{inactive:!e,active:e,left:s!=="right",right:s==="right"}),h=Kr({inactive:!e,active:e,alignLeft:s==="left",alignCenter:s==="center",alignRight:s==="right",slideIn:d,inPlace:!d});return(0,n.jsx)("div",{className:r||Kr("wrap"),children:(0,n.jsx)("div",{ref:this.posRef,className:u,children:(0,n.jsx)(AD,{"aria-hidden":!e,className:h,enableClickOutside:e,onClickOutside:a,role:c,...Ps()(["fit"],l),children:o})})})}update({fit:e},{fit:s}={}){e&&!s?pu.set(this,this.fitOnScreen.bind(this)):!e&&s&&pu.delete(this)}}Object.assign(fl.prototype,{componentDidMount:fl.prototype.fitOnScreen,componentDidUpdate:fl.prototype.fitOnScreen}),fl.propTypes={active:A().bool,align:A().string,children:A().node,className:A().string,fit:A().bool,onClose:A().func,role:A().string,slideIn:A().bool};const OD=t=>(0,n.jsx)("div",{className:"dropdownItem",role:"menuitem",...t}),PD=J("breadcrumb"),m6=()=>(0,n.jsx)("span",{className:PD("caret"),children:(0,n.jsx)($C,{})}),p6=({onClick:t,option:e})=>{const{title:s}=e,o=(0,m.useCallback)(()=>t(e),[t,e]),r={className:Kr("item"),onClick:o};return(0,n.jsx)(OD,{...r,children:(0,n.jsx)("span",{className:Kr("label"),children:s})})};p6.propTypes={onClick:A().func.isRequired,option:A().shape({title:A().string.isRequired})};const MD=p6,f6=(0,m.forwardRef)((t,e)=>{const[s,o]=(0,m.useState)(!1),{onClick:r,options:a}=t,c=(0,m.useCallback)(()=>o(!1),[o]),d=(0,m.useCallback)(()=>o(!0),[o]),l=(0,m.useCallback)(Se()(c,r),[r,c]),u=Kr("caret",{active:s}),h={active:s,align:"left",className:Kr("wrap").toString(),onClose:c};return(0,n.jsxs)("li",{className:"breadcrumb",ref:e,role:"listitem",children:[(0,n.jsxs)("button",{type:"button",className:Kr("trigger"),onClick:d,children:[(0,n.jsx)(C0,{}),(0,n.jsx)("span",{className:u})]}),(0,n.jsx)(fl,{...h,children:a.map((p,f)=>(0,n.jsx)(MD,{onClick:l,option:p},`${f}-${p.title}`))}),(0,n.jsx)(m6,{})]})});f6.propTypes={onClick:A().func.isRequired,options:A().arrayOf(A().object).isRequired};const DD=f6,g6=({menu:t,...e})=>(0,n.jsx)(t,{...Ls()(["category","depth","id","isDeleted","type","effectiveRole"],e)});g6.propTypes={menu:A().elementType.isRequired};const kD=g6,v6=J("breadcrumb"),C6=t=>{const{active:e,allowViewer:s=!1,effectiveRole:o,id:r,label:a,onClick:c,showCaret:d,showMenu:l,type:u}=t,h=wt()(r),p=bD({allowViewer:s,effectiveRole:o,id:r,type:u}),f=(0,m.useCallback)(x=>{p&&c(x)},[p,c]),g=(0,m.useCallback)(x=>{x.keyCode===Q2&&f(x)},[f]),C={className:v6({active:e,root:(h||r==="deleted")&&e,disabled:!p}),onClick:f,onKeyPress:g,role:"listitem","aria-current":e?"page":null};return(0,n.jsxs)("li",{...C,children:[(0,n.jsx)("span",{className:v6("label"),children:a}),l&&e&&(0,n.jsx)(kD,{...t}),d&&!e&&(0,n.jsx)(m6,{})]})};C6.propTypes={active:A().bool,allowViewer:A().bool,category:A().string,effectiveRole:A().string,id:A().any,label:A().string.isRequired,menu:A().elementType,onClick:A().func.isRequired,showCaret:A().bool,showMenu:A().bool,type:A().string};const wD=({allowViewer:t,folder:e,index:s,breadcrumbs:o,category:r,menu:a,onClick:c})=>{const{id:d,deleted:l,effectiveRole:u,title:h,type:p}=e,f=o.length,g=(0,m.useCallback)(()=>c(e),[e,c]);return(0,n.jsx)(C6,{active:s===f-1,allowViewer:t,category:r,depth:s,effectiveRole:u,id:d,isDeleted:l,label:h,onClick:g,menu:a,showMenu:f>1,showCaret:f>1,type:p},s)},x6=16,BD=54,E6=t6()(hu()),T6=t=>{const e=(0,m.useRef)(null),s=(0,m.useRef)(null),o=cD()(),{active:r,className:a,folders:c,root:d}=t,l=UD(r,c,d),u={...t,active:r,breadcrumbs:l,dropdownRef:s,wrapperRef:e};return(0,m.useEffect)(KD(o),[]),(0,m.useLayoutEffect)(VD(u)),(0,n.jsxs)("ol",{className:M()("breadcrumbs",a),ref:e,"aria-label":"Breadcrumb",role:"list",children:[(0,n.jsx)(FD,{...u}),l.map((h,p)=>(0,n.jsx)(wD,{folder:h,index:p,...u},p))]})},_D=t=>({breadcrumbs:e,resume:s},{offsetWidth:o})=>St()(Nn()(Bi(),0),Bi()(o),Bi()(x6),Fs()(qM()(t),We()({breadcrumbs:[...e,o],resume:s}),We()({breadcrumbs:e,resume:!1})))(e),UD=(t,e,s)=>!t||t==="deleted"?[s]:[s,...a6(t,e)],HD=(t,e)=>gh(e,rD(),nD()(Ue()("resume",!0),_D(t),{breadcrumbs:[],resume:!0}),Pe()("breadcrumbs"),Fs()(Yt(),We()([e.length-1]),St()(us(),nh()(e.length),Eo()(tD())(e.length)))),FD=({breadcrumbs:t,dropdownRef:e,onClick:s})=>(0,n.jsx)(DD,{onClick:s,options:t,ref:e}),zD=t=>{const{wrapperRef:e}=t,s=e.current.children;for(let o=0;o<s.length;o++)s[o].removeAttribute("style")},VD=t=>()=>{zD(t);const{dropdownRef:e,wrapperRef:s}=t,o=e.current,r=s.current,a=s6()(r.children),c=o.children[1].children[0].children[0].children,d=r.offsetWidth-BD-x6,l=HD(d,a),u=a.length>l.length;o.style.display=u?"inline-flex":"none",E6(WD(l),a),E6(GD(l),c)},WD=t=>(e,s)=>{e.style.display=t.includes(s)?"inline-flex":"none"},GD=t=>(e,s)=>{e.style.display=t.includes(s)?"none":"block"},KD=t=>()=>(window.addEventListener("resize",t),()=>window.removeEventListener("resize",t));T6.propTypes={active:A().any,category:A().string,folders:A().arrayOf(A().object).isRequired,menu:A().elementType,onClick:A().func.isRequired,root:A().object.isRequired};const Cde=(0,m.memo)(T6);var $D=i(93502),QD=i.n($D),ZD=i(89685),YD=i.n(ZD);const S6=J("folder-tree"),L6=({isOpen:t,onFolderToggle:e})=>{const s=S6("folder","caret",{open:t}),o={className:S6("folder","caretWrap").toString(),onClick:e,onKeyPress:jd(e),role:"button"};return(0,n.jsx)("div",{...o,children:(0,n.jsx)("div",{className:s})})};L6.propTypes={isOpen:A().bool,onFolderToggle:A().func};const b6=L6,y6=J("folder-tree"),I6=({active:t,category:e,itemId:s,menu:o,setMenuActive:r,type:a})=>{const c=(0,m.useMemo)(()=>t===s,[t,s]),d=y6("folderOptions",{active:c}),l=(0,m.useCallback)(()=>r(!1),[r]),u=(0,m.useCallback)(()=>r(!0),[r]);return(0,n.jsx)("div",{className:d,children:(0,n.jsx)(o,{category:e,className:y6("folderMenu").toString(),id:s,onClose:l,onOpen:u,type:a})})},N6=J("folder-tree"),j6=t=>{const{active:e,activeClassName:s,children:o,className:r,forceHover:a,hasItems:c,itemId:d,itemType:l,onClick:u,onDrop:h,onKeyPress:p,paddingLeft:f}=t,[g,v]=(0,m.useState)(!1),C=!!h&&l==="folder",x=(0,m.useMemo)(()=>e===d,[e,d]),S=()=>v(!0),E=N=>{v(!1),h?.(N)},b=N=>{N.preventDefault()},L=()=>v(!1),I=M()(r,N6("folder",{active:x,forceHover:a,hideCaret:!c,dndEnabled:C}).toString(),{[s]:x});return(0,n.jsxs)("div",{className:I,onClick:u,onKeyPress:p,role:"button",style:{paddingLeft:f},tabIndex:"0",onDragEnter:S,children:[C&&g&&(0,n.jsx)("div",{className:N6("folder","drop-mask"),onDragOver:b,onDrop:E,onDragLeave:L}),o]})},Lh=J("folder-tree"),XD=t=>{const{disableRootMenu:e,folders:s,isOpen:o,menu:r,onDrop:a,onFolderClick:c,onFolderToggle:d,root:l}=t,[u,h]=(0,m.useState)(!1),{id:p,title:f,icon:g}=l,v=(0,m.useCallback)(()=>c(l),[c,l]),C=(0,m.useCallback)(jd(v),[v]),x=(0,m.useCallback)(a?.(p),[a,p]),S=Ls()(["active","activeClassName","className"],t),E=Ls()(["active","activeClassName","category","className","menu","type"],t);return(0,n.jsxs)(j6,{...S,forceHover:u,hasItems:!Yt()(s),itemId:p,itemType:"folder",onClick:v,onDrop:x,onKeyPress:C,children:[(0,n.jsx)(b6,{isOpen:o,onFolderToggle:d}),g&&(0,n.jsx)("div",{className:Lh("folderIcon"),children:g}),(0,n.jsx)("div",{className:Lh("folderNameWrap"),children:(0,n.jsx)("div",{className:Lh("folderName"),children:f})}),!e&&r&&(0,n.jsx)(I6,{...E,itemId:p,setMenuActive:h})]})},Sde=40,A6=(t,e=!0)=>Se()(sn()(We()(e),Sa()(Ue()("deleted",!0))),Qt()(Ue()("folderId",t))),R6=(t,e,s)=>o=>{Se()(s,ah()([t]))(e),o.stopPropagation()},O6=(t,e,s)=>o=>{Se()(s,Qo()(t))(e),o.stopPropagation()},JD=t=>({editor:mu({effectiveRole:t,requiredRole:xh}),manager:mu({effectiveRole:t,requiredRole:i6}),owner:mu({effectiveRole:t,requiredRole:Ch})}),Lde=(t,e,s)=>{const{authorId:o}=t,r=o===s,a=d=>r||d,c=bh(e);return pipe(omit(["canChangePermissions","canMoveTo"]),evolve({canDelete:a,canEdit:a,canMove:a,canRename:a,canUnshare:a}))(c)},bh=t=>{const{effectiveRole:e,type:s}=t||[],o=s!==vl?Ch:e,{editor:r,manager:a,owner:c}=JD(o);return{canChangePermissions:a,canCreate:r,canDelete:c,canEdit:r,canMove:a,canMoveTo:r,canRename:r,canUnshare:c}},qD=21,fu=J("folder-tree"),yh=t=>{const{id:e,index:s=0,itemIcon:o,item:r,items:a,itemType:c,menu:d,onDrop:l,onFolderClick:u,onItemClick:h,openFolders:p,setOpenFolders:f,showItems:g}=t,{id:v,title:C,subfolders:x,type:S}=r,[E,b]=(0,m.useState)(!1),[L,I]=(0,m.useState)(p.includes(v));(0,m.useEffect)(()=>{I(p.includes(v))},[v,p]);const N=(0,m.useCallback)(R6(v,p,f),[v,p,f]),R=(0,m.useCallback)(O6(v,p,f),[v,p,f]),j=(0,m.useCallback)(()=>c==="folder"?u(r):h(r),[r,u,h,c]),O=(0,m.useCallback)(bh(r).canCreate?l?.(r.id):null,[r,l]),B=g?A6(v)(a):[],_=(0,m.useMemo)(()=>`${(s+2)*qD}px`,[s]),k=(0,m.useMemo)(()=>L?N:R,[L,N,R]),te=fu("folderWrap",{open:L}),F=Z2(x)||Z2(B),K=(0,m.useCallback)(jd(j),[jd,j]),Z=S==="team"?fp:C0,xe=Ls()(["active","activeClassName","className"],t),fe=Ls()(["active","activeClassName","category","className","menu","type"],t),oe=Ls()(["active","activeClassName","category","className","disableRootMenu","folders","id","items","itemIcon","menu","onDrop","onFolderClick","onItemClick","openFolders","root","setOpenFolders","showItems","type"],t);return(0,n.jsxs)("div",{id:`${e}-qbf-${v}`,className:te,children:[(0,n.jsxs)(j6,{...xe,forceHover:E,hasItems:F,itemId:v,itemType:c,onClick:j,onKeyPress:K,paddingLeft:_,onDrop:O,children:[(0,n.jsx)(b6,{isOpen:L,onFolderToggle:k}),(0,n.jsx)("div",{className:fu("folderIcon").toString(),children:c==="folder"?(0,n.jsx)(Z,{}):(0,n.jsx)(o,{})}),(0,n.jsx)("div",{className:fu("folderNameWrap").toString(),children:(0,n.jsx)("div",{className:fu("folderName").toString(),children:C})}),d&&(0,n.jsx)(I6,{...fe,itemId:v,setMenuActive:b})]}),x&&x.map(we=>(0,n.jsx)(yh,{...oe,item:we,index:s+1,itemType:"folder"},we.id)),B&&B.map(we=>(0,n.jsx)(yh,{...oe,item:we,index:s+1,itemType:"item"},we.id))]},v)},P6=yh,ek=J("folder-tree"),tk=t=>{const e=gh(t,Tt()("id"));return Qt()(s=>s.folderId===null||!on()(s.folderId,e))},sk=t=>{const{folders:e,id:s,items:o,openFolders:r,root:a,setOpenFolders:c,showItems:d}=t,l=(0,m.useMemo)(()=>SD(e),[e]),u=(0,m.useMemo)(()=>tk(e)(o),[e,o]),[h,p]=(0,m.useState)(r.includes("root")),f=d?A6(s)(o):[];(0,m.useEffect)(()=>{p(r.includes("root"))},[r]);const g=(0,m.useCallback)(R6("root",[],c),[s,r,c]),v=(0,m.useCallback)(O6("root",r,c),[f,s,r,c]),C=ek("folderWrap",{open:h}),x=Ls()(["active","activeClassName","category","className","disableRootMenu","folders","id","items","itemIcon","menu","onDrop","onFolderClick","onItemClick","openFolders","root","setOpenFolders","showItems","type"],t);return(0,n.jsxs)("div",{id:`${s}-qbf-root`,className:C,children:[a&&(0,n.jsx)(XD,{onFolderToggle:h?g:v,isOpen:h,...x}),l.map(S=>(0,n.jsx)(P6,{...x,item:S,itemType:"folder"},S.id)),d&&u&&u.map(S=>(0,n.jsx)(P6,{...x,item:S,itemType:"item"},S.id))]})},nk=(0,m.memo)(sk),ok=A().shape({id:A().string.isRequired,folderId:A().string,title:A().string}),rk=A().shape({id:A().string.isRequired,parentId:A().string,title:A().string,type:A().oneOf(["team","personal"])}),ak=A().shape({id:A().string,title:A().string.isRequired,icon:A().node}),ik={active:A().any,activeType:A().oneOf(["team","personal"]),activeClassName:A().string,category:A().string,className:A().string,disableRootMenu:A().bool,folders:A().arrayOf(rk).isRequired,id:A().string.isRequired,initialFolders:A().arrayOf(A().string),items:A().arrayOf(ok),itemIcon:A().elementType,menu:A().elementType,onDrop:A().func,onFolderClick:A().func.isRequired,onItemClick:A().func,openToActive:A().bool,reportOpenFolders:A().func,root:ak,showItems:A().bool,type:A().oneOf(["team","personal"]),viewingTree:A().bool},ck=J("folder-tree"),M6=(t,e,s=[])=>{if(t==null||t==="personal"||t==="team"||t==="deleted")return s;if(!e||e.length===0)return[];const o=qe()(Ue()("id",t),e);return o===void 0?[]:M6(o.parentId,e,[o,...s])},lk=t=>Qt()(e=>e==="root"||t.includes(e)),dk=t=>{const{active:e,activeClassName:s,activeType:o,category:r,className:a,disableRootMenu:c,folders:d,id:l,initialFolders:u=["root"],itemIcon:h,items:p=[],menu:f,onDrop:g,onFolderClick:v,onItemClick:C,openToActive:x=!1,reportOpenFolders:S=()=>{},root:E,root:{deleted:b},showItems:L=!1,type:I,viewingTree:N=!0}=t,R={activeClassName:s,category:r,className:a,disableRootMenu:c,folders:d,id:l,items:p,itemIcon:h,menu:f,onDrop:g,onFolderClick:v,onItemClick:C,root:E,showItems:L,type:I},[j,O]=(0,m.useState)(N?u:[]),B=I===o?e:!1,_=(0,m.useMemo)(()=>B,[B]),[k,te]=(0,m.useState)(!1);(0,m.useEffect)(()=>{S(b?"deleted":I,j)},[b,j,S,I]);const F=x?M6(_,d):[];return(0,m.useEffect)(()=>{te(!1)},[_]),(0,m.useEffect)(()=>{x&&!k&&(Se()(O,lk(Tt()("id",d)),YD(),sn()(K=>K.length>0,Qo()("root")),cl(),Eo()(Qo())(j),QD(),Tt()("id"))(F),te(!0))},[x,k,j,F,d,O]),(0,n.jsx)("div",{className:ck("wrap"),children:(0,n.jsx)(nk,{...R,active:_,openFolders:j,setOpenFolders:O})})};dk.propTypes=ik;const bde=null,D6=({buttonText:t,onNewClick:e})=>(0,n.jsx)("div",{className:"folder",children:(0,n.jsxs)("button",{className:"folder__button",type:"button",onClick:e,children:[(0,n.jsx)("div",{className:M()("folderIcon","addIcon"),children:(0,n.jsx)(BC,{height:12,width:12})}),(0,n.jsx)("span",{className:"label",children:(0,n.jsx)("div",{children:t})})]})});D6.propTypes={buttonText:A().string.isRequired,onNewClick:A().func.isRequired};const uk=D6,Ih=J("folder"),k6=({onClick:t,folder:e,onDrop:s})=>{const[o,r]=(0,m.useState)(!1),a=!!s,{title:c}=e,d=(0,m.useCallback)(()=>{t(e)},[e,t]),l=()=>r(!0),u=f=>f.preventDefault(),h=f=>{r(!1),s?.(f)},p=()=>r(!1);return(0,n.jsxs)("div",{className:Ih(),onDragEnter:a?l:()=>{},children:[a&&o&&(0,n.jsx)("div",{className:Ih("drop-mask"),onDragOver:u,onDrop:h,onDragLeave:p}),(0,n.jsxs)("button",{type:"button",className:Ih("button",{"drag-over":o}),onClick:d,children:[(0,n.jsx)("div",{className:"folderIcon",children:e.type==="shared"?(0,n.jsx)(fp,{height:21,width:21}):(0,n.jsx)(C0,{height:21,width:21})}),(0,n.jsx)("span",{className:"label",children:(0,n.jsx)("div",{children:c})})]})]})};k6.propTypes={className:A().string,folder:A().object.isRequired,onClick:A().func.isRequired};const hk=k6,Nh=J("folder-list"),mk=t=>{const{buttonText:e,label:s,showButton:o,onClick:r,onNewClick:a,onDrop:c}=t,d=vh(t.folders);return(0,n.jsxs)("div",{className:Nh("wrap"),children:[(0,n.jsx)("span",{className:Nh("wrap","label"),children:s}),(0,n.jsxs)("div",{className:Nh("wrap","list"),children:[d.map((l,u)=>(0,n.jsx)(hk,{onClick:r,folder:l,onDrop:bh(l).canCreate?c?.(l.id):null},`${u}-${l.id}`)),o&&(0,n.jsx)(uk,{buttonText:e,onNewClick:a})]})]})};mk.propTypes={buttonText:A().string,folders:A().arrayOf(A().object),label:A().string.isRequired,onClick:A().func.isRequired,onNewClick:A().func,showButton:A().bool};const yde=null;var pk=i(82298),Vi=i.n(pk),fk=i(75488),jh=i.n(fk),gk=i(80721),Ah=i.n(gk),vk=i(87186),w6=i.n(vk);const Io=J("table"),Rh=[ba,Ni],gu=Pe()("sortable"),Oh=kn()(gu,Ue()("sortDirection",ba)),Ph=kn()(gu,Ue()("sortDirection",Ni)),Mh=kn()(gu,Se()(Pe()("hover"),w6()(1))),Ck=Rs()([[Oh,We()("ascending")],[Ph,We()("descending")],[hn(),We()("none")]]),xk=St()(fh()(Vi(),Rh),Fs()(ps()(Rh.length-1),We()(0),Zt()),Pe()(Vi(),Rh)),Ek=Ps()(["onSort","sortable","sortDirection","sortKey","className"]),Tk=t=>(0,n.jsx)("table",{className:"table",...t});class Sk extends m.Component{constructor(...e){super(...e),this.onMouseOverDelegate=this.onMouseOver.bind(this),this.onMouseOutDelegate=this.onMouseOut.bind(this),this.renderChildDelegate=this.renderChild.bind(this),this.state={hoverIndex:-1}}onMouseOver({currentTarget:{children:e},target:s}){const o=a=>a===s||a.contains(s),r=Ts()(o,e);this.setState({hoverIndex:r})}onMouseOut(){this.setState({hoverIndex:-1})}render(){const{children:e,enableHover:s,...o}=this.props,r=s?this.onMouseOutDelegate:void 0,a=s?this.onMouseOverDelegate:void 0,c={...o,onMouseOut:r,onMouseOver:a};return(0,n.jsx)("tbody",{...c,children:m.Children.map(e,this.renderChildDelegate)})}renderChild(e,s){return(0,m.cloneElement)(e,{hover:s===this.state.hoverIndex})}}const gl=t=>(0,n.jsx)("td",{className:M()(Io("cell").toString(),Io("td").toString(),t.className),...Ps()(["className"],t)});class $r extends m.Component{static defaultProps={sortable:!1,sortDirection:Xc,onSort:Function.prototype};constructor(...e){super(...e),this.state={hover:!1},this.onClickDelegate=this.onClick.bind(this),this.onMouseEnterDelegate=this.onMouseEnter.bind(this),this.onMouseLeaveDelegate=this.onMouseLeave.bind(this)}componentDidUpdate({sortDirection:e}){const{sortDirection:s}=this.props,{hover:o}=this.state,r=o&&s===e;this.state.hover!==r&&this.setState({hover:r})}onClick(){const{sortKey:e,sortDirection:s,onSort:o}=this.props,r=xk(s),a=r===Xc?Xc:e|r;o(a)}onMouse(e){this.setState({hover:e})}render(){const{sortable:e,className:s}=this.props,o=M()(s,Io("cell").toString(),Io("thcol",{ascHover:kn()(Mh,Oh)(this.props),descHover:kn()(Mh,Ph)(this.props),hover:Mh(this.props),asc:Oh(this.props),desc:Ph(this.props),sortable:gu(this.props)}).toString());return(0,n.jsx)("th",{"aria-sort":Ck(this.props),className:o,onClick:e?this.onClickDelegate:void 0,onMouseEnter:e?this.onMouseEnterDelegate:void 0,onMouseLeave:e?this.onMouseLeaveDelegate:void 0,role:"columnheader",scope:"col",tabIndex:e?"0":void 0,...Ek(this.props)})}}Object.assign($r.prototype,{onMouseEnter:Hn()($r.prototype.onMouse,[!0]),onMouseLeave:Hn()($r.prototype.onMouse,[!1])});const Lk=t=>(0,n.jsx)("thead",{...t}),B6=t=>(0,n.jsx)("tr",{...t}),Dh=J("question-bank-list"),bk=Ye()("",["links","micro"]),_6=({profile:t,updateCol:e})=>{if(!t)return(0,n.jsx)("span",{children:"Loading..."});const s=`${t.firstName} ${t.lastName}`,o=bk(t);return(0,n.jsxs)("div",{className:Dh("avatar"),children:[e&&(0,n.jsx)("span",{children:"Updated by:\xA0"}),(0,n.jsx)("span",{className:Dh("avatar","icon"),style:{backgroundImage:`url(${o})`}}),(0,n.jsx)("span",{className:Dh("avatar","name"),children:s})]})},U6=(t,e)=>e[t],Xo=J("question-bank-list"),yk=t=>{const{active:e,displayOwnerColumn:s,getCountLabel:o,index:r,locks:a={},menu:c,onClick:d,profiles:l,row:u,tooltipFn:h,type:p}=t,{authorId:f,deleted:g,id:v,lastEditedBy:C,questions:x,title:S,updatedAt:E}=u,b=U6(f,l),L=U6(C,l),I=(0,m.useCallback)(()=>d(u),[d,u]),N=ur()(v,a),R=Io("tr",{active:e===v,deleted:g}),j=Ik(E);return(0,n.jsxs)(B6,{className:R,onClick:g?null:I,children:[(0,n.jsx)(gl,{children:(0,n.jsxs)("div",{className:Xo("title"),children:[(0,n.jsx)("span",{className:Xo("titleText"),children:S}),N&&(0,n.jsx)(Nk,{})]})}),(0,n.jsx)(gl,{className:Xo("colQuestions").toString(),children:o(x.length)}),s&&(0,n.jsx)(gl,{className:Xo("colOwner").toString(),children:(0,n.jsx)(_6,{profile:b})}),(0,n.jsx)(gl,{className:Xo("colUpdated").toString(),children:L&&p==="team"?h(j,(0,n.jsx)(_6,{profile:L,updateCol:!0})):j}),(0,n.jsx)(gl,{className:Xo("menuTd").toString(),children:c&&(0,n.jsx)(jk,{isLocked:N,...t,...u})})]},r)},Ik=t=>$n()(t).format("M/D/YY @ h:mma"),Nk=()=>(0,n.jsxs)("div",{className:Xo("editing"),"data-testid":"editing",children:[(0,n.jsx)("span",{className:Xo("editingIcon"),children:(0,n.jsx)(GC,{})}),"Editing"]}),jk=({deleted:t,effectiveRole:e,id:s,isLocked:o,menu:r,row:a,setActive:c,type:d})=>{const l=(0,m.useCallback)(()=>c(null),[c]),u=(0,m.useCallback)(()=>c(s),[s,c]);return(0,n.jsx)("div",{className:Xo("menuWrap"),children:(0,n.jsx)(r,{authorId:a.authorId,category:"questionBanks",className:M()(Xo("menu").toString(),Io("menu").toString()),effectiveRole:e,id:s,isDeleted:t,isLocked:o,onClose:l,onOpen:u,type:d,scrollableAreaSelector:".question-banks"})})},Ak=yk,Rk=t=>{const{columns:{title:e},sort:s,setSort:o}=t,r={className:Io("th").toString(),onSort:o,sortDirection:d1(s,Jc),sortKey:Jc,sortable:!0};return(0,n.jsx)($r,{...r,children:e})},Ok=ot()("queston-bank-list__"),Pk=t=>{const{columns:{owner:e},sort:s,setSort:o}=t,a={className:M()(Io("th").toString(),Ok("colOwner")),onSort:o,sortDirection:d1(s,Nd),sortKey:Nd,sortable:!0};return(0,n.jsx)($r,{...a,children:e})},Mk=J("question-bank-list"),Dk=t=>{const{columns:{lastUpdated:e},sort:s,setSort:o}=t,a={className:M()(Io("th").toString(),Mk("colUpdated").toString()),onSort:o,sortDirection:d1(s,Id),sortKey:Id,sortable:!0};return(0,n.jsx)($r,{...a,children:e})},Wi=J("question-bank-list"),kk=t=>{const[e,s]=(0,m.useState)(null),[o,r]=(0,m.useState)(Jc|ba),{columns:{questions:a},displayOwnerColumn:c,label:d,profiles:l}=t,u=wk(t.questionBanks,l,o);return(0,n.jsxs)("div",{className:Wi(),children:[(0,n.jsx)("div",{className:Wi("label"),children:d}),(0,n.jsxs)(Tk,{children:[(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{}),(0,n.jsx)("col",{className:Wi("colQuestions")}),c&&(0,n.jsx)("col",{className:Wi("colOwner")}),(0,n.jsx)("col",{className:Wi("colUpdated")}),(0,n.jsx)("col",{className:Wi("colMenu")})]}),(0,n.jsx)(Lk,{className:Io("thead").toString(),children:(0,n.jsxs)(B6,{children:[(0,n.jsx)(Rk,{sort:o,setSort:r,...t}),(0,n.jsx)($r,{className:Io("th").toString(),children:a}),c&&(0,n.jsx)(Pk,{sort:o,setSort:r,...t}),(0,n.jsx)(Dk,{sort:o,setSort:r,...t}),(0,n.jsx)($r,{})]})}),(0,n.jsx)(Sk,{children:u.map((h,p)=>(0,n.jsx)(Ak,{index:p,row:h,active:e,setActive:s,...t},`${p}-${h.id}`))})]})]})},H6=t=>St()(Pe()("authorId"),Pe()(Vi(),t),Ah()([Pe()("firstName"),Pe()("lastName")]),ha()(" ")),wk=(t,e,s)=>{switch(s){case Jc|ba:return Yo()(pl()(Se()(Oa(),Pe()("title"))),t);case Jc|Ni:return Yo()(jh()(Se()(Oa(),Pe()("title"))),t);case Id|ba:return Yo()(pl()(Pe()("updatedAt")),t);case Id|Ni:return Yo()(jh()(Pe()("updatedAt")),t);case Nd|ba:return Yo()(pl()(H6(e)),t);case Nd|Ni:return Yo()(jh()(H6(e)),t);default:return t}};kk.propTypes={columns:A().object.isRequired,getCountLabel:A().func.isRequired,hasDropdownMenu:A().bool,label:A().string.isRequired,menuCallback:A().elementType,onClick:A().func.isRequired,questionBanks:A().arrayOf(A().object)};const Rde=null,Bk={[yt.Ay.FILL_IN_THE_BLANK]:"fillin",[yt.Ay.MATCHING]:"matching",[yt.Ay.MULTIPLE_CHOICE]:"multiple choice",[yt.Ay.MULTIPLE_RESPONSE]:"multiple response"},Da="personal",vl="team",Ode=500,kde=[{id:null,deleted:!1,type:Da},{id:null,deleted:!1,type:vl},{id:"deleted",deleted:!0,type:Da}],F6=({drawCount:t,questions:e,drawnQuestions:s=[]})=>{if(s.length===t)return null;const o=r=>r[Math.floor(Math.random()*r.length)];return Se()(bo()("index",r=>Ts()(Ue()("id",r.id),e)),o,Sa()(mh()(Eo()(on())(s),"id")))(e)},_k=t=>e=>e.type===Da||hasSufficientRole({effectiveRole:e.effectiveRole,requiredRole:t}),Uk=({folders:t,requiredRole:e,teamAccount:s})=>pipeWith(t,values,flatten,filter(o=>_k(e)&&(s||o.type===Da))),wde=({questionBanks:{folders:t,questionBanks:e},requiredRole:s=FOLDER_ROLE_VIEWER,teamAccount:o,term:r})=>{if(r&&isEmpty(trim(r)))return{folders:[],questionBanks:[]};const a=new RegExp("("+escapeRegExp(r)+")","i"),c=Uk({folders:t,requiredRole:s,teamAccount:o}),d=pluck("id",c),l=filter(h=>h.title.match(a)&&!h.deleted,c),u=filter(h=>(isNil(h.folderId)||contains(h.folderId,d))&&h.title.match(a)&&!h.deleted,e);return{folders:l,questionBanks:u}},z6=(t,e,s=!1)=>pipeWith(e,ifElse(always(!isNil(t)),prop(t),pipe(values,flatten)),reject(propEq("deleted",!s))),Hk=(t,e,s,o=!1)=>{const r=t===vl,a=t===Da,c=pipeWith(z6(vl,s),pluck("id")),d=l=>!isNil(l.folderId)&&contains(l.folderId,c);return pipeWith(e,filter(cond([[always(o),l=>l.deleted],[always(r),l=>!l.deleted&&d(l)],[always(a),l=>!l.deleted&&!d(l)],[always(isNil(t)),l=>!l.deleted],[T,identity]])))},Fk=({type:t})=>t===Da,V6=({effectiveRole:t})=>hasSufficientRole({effectiveRole:t,requiredRole:FOLDER_ROLE_EDITOR}),zk=(t,e)=>({id:s})=>s?compose(any(identity),map(allPass([propEq("folderId",s),propEq("authorId",t)])))(e):!1,Vk=(t,e,s,o)=>pipeWith(z6(e,t),filter(anyPass([Fk,V6,zk(o,s)]))),Wk=(t,e)=>s=>{if(isNil(s.folderId))return!0;const o=find(propEq("id",s.folderId),t);if(!o)return!1;const r=V6(o),a=s.authorId===e;return r||a},Gk=(t,e,s,o,r)=>pipeWith(Hk(t,e,s),filter(Wk(o,r))),Bde=(t,e,s,o)=>{const r=Vk(t,s,e,o),a=Gk(s,e,t,r,o);return{folders:r,questionBanks:a}},{FILL_IN_THE_BLANK:ka,MATCHING:Cl,MULTIPLE_CHOICE:xl,MULTIPLE_RESPONSE:El}=yt.Ay,{ANY:Kk,CHOICE:$k,CORRECT_INCORRECT:Qk}=Kf,Zk={FILL_IN_THE_BLANK:"a11yBlockKnowledgeCheckFIB",MATCHING:"a11yBlockKnowledgeCheckM",MULTIPLE_CHOICE:"a11yBlockKnowledgeCheckMC",MULTIPLE_RESPONSE:"a11yBlockKnowledgeCheckMR"},Yk=Ye()(null,[0,"type"]),kh=Js();class W6 extends ie().Component{static get defaultProps(){return{items:[],lessonId:"",blockId:"",onStep:Function.prototype}}retakeAnimationStageOne;retakeAnimationStageTwo;takeAgainRef;block;wrapper;id;constructor(e){super(e),this.state={errorIncomplete:!1,selectedAnswer:null,selectedIndices:[],chosen:!1,answered:!1,fillInValue:"",matches:{},questionHtmlId:`q-${qd()()}`},this.retakeAnimationStageOne=null,this.retakeAnimationStageTwo=null,this.takeAgainRef=(0,m.createRef)(),this.getSelection=this.getSelection.bind(this),this.handleFillIn=this.handleFillIn.bind(this),this.handleChoiceSelect=this.handleChoiceSelect.bind(this),this.handleMultipleResponseChange=this.handleMultipleResponseChange.bind(this),this.handleRetake=this.handleRetake.bind(this),this.renderQuestionTitle=this.renderQuestionTitle.bind(this),this.renderMultipleResponseOptionText=this.renderMultipleResponseOptionText.bind(this),this.renderMultipleChoiceOptionText=this.renderMultipleChoiceOptionText.bind(this),this.previewOnly__forceShowFeedback=this.previewOnly__forceShowFeedback.bind(this),this.previewOnly__clearOverrides=this.previewOnly__clearOverrides.bind(this),window.addEventListener(ms,this.previewOnly__forceShowFeedback),window.addEventListener(q0,this.previewOnly__clearOverrides),this.id=rt()("kc-")}componentDidUpdate(e,s){s.answered&&!this.state.answered?this.getType()!==ka&&C1(this.wrapper):!s.answered&&this.state.answered&&setTimeout(()=>{this.takeAgainRef.current?.focus?.()},0)}componentWillUnmount(){this.retakeAnimationStageOne&&(clearTimeout(this.retakeAnimationStageOne),this.retakeAnimationStageOne=null),this.retakeAnimationStageTwo&&(clearTimeout(this.retakeAnimationStageTwo),this.retakeAnimationStageTwo=null),window.removeEventListener(ms,this.previewOnly__forceShowFeedback),window.removeEventListener(q0,this.previewOnly__clearOverrides)}previewOnly__forceShowFeedback(e){const{itemId:s,path:o}=e.detail,{getL10nValue:r}=this.props;if(s!==this.props.blockId)return;const a=o.at(-1);if(typeof a=="string"&&a.startsWith?.("feedback")){const c=a==="feedbackCorrect",d=o.indexOf("answers"),l=o[d+1],u=d>-1&&typeof l!="string"?l.id:null,h={forceShowFeedback:!0,forceShowFeedbackCorrect:c,forceShowFeedbackMessage:""};if(u&&"answers"in this.props.items[0]){const p=this.props.items[0].answers.find(({id:g})=>g===u),f="feedback"in p?p?.feedback:void 0;h.forceShowFeedbackCorrect=p?.correct??!1,h.forceShowFeedbackMessage=r(f)}this.setState(h)}}previewOnly__clearOverrides(){this.setState({forceShowFeedback:!1,forceShowFeedbackCorrect:!1})}getSelection({item:e}){switch(e.type){case ka:return this.state.fillInValue;case Cl:return this.state.matches;case El:return this.state.selectedIndices;case xl:default:return this.state.selectedAnswer}}handleMatchesChange=e=>{this.setState({errorIncomplete:!1,matches:e})};handleMultipleResponseChange({optionIndex:e}){const{selectedIndices:s}=this.state,o=s.includes(e)?ah()([e]):Qo()(e);this.setState({errorIncomplete:!1,selectedIndices:o(s)})}handleChoiceSelect({selectedIndex:e}){const{answered:s}=this.state;s||this.setState({errorIncomplete:!1,selectedAnswer:e,chosen:!0})}onSubmit(e,s,o,r,a){if(!s){switch(this.setState({errorIncomplete:!0}),r.type){case ka:this.wrapper?.querySelector("input")?.focus();break;case El:case xl:this.wrapper?.querySelector("input")?.focus();break;case Cl:default:break}return}a?.preventDefault(),this.setState({answered:!0,retake:!1}),o&&this.props.onStep({id:e})}handleFillIn(e){this.setState({errorIncomplete:!1,fillInValue:e})}handleRetake(e){const{blockId:s,lessonId:o,settings:r}=this.props,{id:a}=e;this.setState({retake:!0}),this.retakeAnimationStageOne=setTimeout(()=>{this.setState({answered:!1,chosen:!1,matches:{}},()=>{this.retakeAnimationStageOne=null})},400),this.retakeAnimationStageTwo=setTimeout(()=>{this.setState({fillInValue:"",selectedAnswer:null,selectedIndices:[]},()=>{!kh&&this.getType()===ka&&C1(this.wrapper),this.retakeAnimationStageTwo=null}),r?.retryCount!=null&&(0,X.JD)((0,pr.Sw)({blockId:s,itemId:a,lessonId:o}))},950)}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}renderQuestionTitle({title:e}){return(0,n.jsx)(Ms,{className:"quiz-card__title",value:e,id:this.state.questionHtmlId})}renderQuestion(e){const{answered:s,errorIncomplete:o,retake:r,selectedAnswer:a}=this.state,{blockId:c,enableVideoPlaybackSpeed:d,labels:l,progress:u,renderQuestionTitle:h=this.renderQuestionTitle,settings:p}=this.props,{quizCorrect:f,quizIncorrect:g,quizRequireAnswer:v,quizSubmit:C,quizTakeAgain:x}=l,{id:S,type:E}=e,b=e.type!=="DRAW_FROM_QUESTION_BANK"?e.settings:{},L="media"in e?e.media:void 0,I=this.state.forceShowFeedbackCorrect||this.getIsCorrect({item:e}),N=this.getCanSubmit({item:e}),R=p?.requireCorrectAnswer?I:!0,j=this.onSubmit.bind(this,S,N,R,e),O=this.getFeedback({item:e,isCorrect:I,selectedAnswer:a}),B=this.getSelection({item:e}),{columnBehavior:_,correctAnswerColor:k,correctAnswerColorContrast:te,incorrectAnswerColor:F,incorrectAnswerColorContrast:K}=p,Z=I?k:F,xe=l.knowledgeCheckCorrectAnswerRequiredBlock,fe=l.knowledgeCheckRetriesAttemptsRemaining,oe=l.knowledgeCheckMaxRetriesReached,we=Ye()(0,["items",c,"items",S,"retryAttemptCount"],u),Ae=p?.retryCount!==0&&(p?.retryCount==null||p?.retryCount===-1||we<p?.retryCount),_e=p?.retryCount!=null||p?.retryCount===-1?p?.retryCount-we:-1,Qe=!I,pt={"--color-feedback-icon":Z,"--color-matching-feedback-bubble-bg":F,"--color-multiple-choice-complete-border":F,"--color-multiple-choice-correct-border":k,"--color-multiple-response-correct-border":k,"--color-multiple-response-incorrect-border":F,"--color-multiple-response-option-check":s?k:void 0,"--color-quiz-option-check":k,"--color-x-fill":F},nt=p?.revealCorrectAnswers==null||p?.revealCorrectAnswers?yt.iV.ALL:yt.iV.INCORRECT,Ce=M()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":s,"block-knowledge__retake-container--active-attempts-left":s&&!r&&_e>0}),Ne=M()("block-knowledge__retake",{"block-knowledge__retake--active":s&&!r&&Ae}),Ke=M()("block-knowledge__retake","block-knowledge__attempts-left",{"block-knowledge__retake--active":s&&!r&&Ae&&_e>0}),He=M()("block-knowledge__retake","block-knowledge__no-more-attempts",{"block-knowledge__retake--active":s&&!r&&!Ae});return(0,n.jsxs)(Df,{isActive:!0,style:pt,children:[p?.requireCorrectAnswer&&(s&&!I||!s)&&(0,n.jsxs)("div",{className:"quiz-card__require-correct-answer-disclaimer",children:[(0,n.jsx)(Lt,{className:"quiz-card__require-correct-answer-disclaimer-icon",name:"info-circle"}),xe]}),h(e),(0,n.jsx)(zf,{blockId:c,enableVideoPlaybackSpeed:d,labels:l,media:L,settings:b}),(0,n.jsx)(_f,{type:E,children:this.renderType({columnBehavior:_,correctAnswerColor:k,correctAnswerColorContrast:te,incorrectAnswerColor:F,incorrectAnswerColorContrast:K,isCorrect:I,item:e,onSubmit:j})}),(0,n.jsx)("div",{className:"quiz-card__validations",children:o&&(0,n.jsxs)("div",{children:[(0,n.jsx)(Lt,{className:"quiz-card__validation-icon",name:"alert-circle"}),(0,n.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:v})]})}),(0,n.jsx)(Mf,{isReduceMotion:kh,canProceed:s,canSubmit:N,onSubmit:j,quizSubmit:C}),(0,n.jsx)(Bf,{canProceed:this.state.forceShowFeedback||s,isActive:s,isComplete:s,isCorrect:I,item:e,feedbackValue:O,labels:l,quizCorrect:f,quizIncorrect:g,revealAnswers:nt,selection:B}),(0,n.jsxs)("div",{"aria-hidden":!s,className:Ce,children:[Qe&&(0,n.jsxs)(n.Fragment,{children:[Ae?(0,n.jsx)(Ia.ZH,{className:Ne,icon:(0,n.jsx)(Lt,{name:"arrow-rotate-left"}),onClick:this.handleRetake.bind(this,e),ref:this.takeAgainRef,size:"md",tabIndex:s?void 0:-1,text:x,variant:"secondary"}):null,_e>0&&(0,n.jsxs)("div",{className:Ke,children:[fe," ",_e]})]}),!Ae&&!I&&(0,n.jsx)("div",{className:He,children:oe})]})]},S)}getIsCorrect({item:e}){const{fillInValue:s,matches:o,selectedAnswer:r,selectedIndices:a}=this.state,{type:c}=e,d="answers"in e?e.answers:void 0,l="isCaseSensitive"in e?e.isCaseSensitive:!1;switch(c){case ka:return FM({answers:hh(d),fillInValue:s,isCaseSensitive:l,getL10nValue:this.props.getL10nValue});case Cl:return Object.entries(o).every(([u,h])=>u===h);case El:return zM({answers:d,selectedIndices:a});case xl:default:return r===HM(d)}}getType(){const{items:e}=this.props;return Yk(e)}getCanSubmit({item:e}){const s="answers"in e?e.answers:void 0,{answered:o,fillInValue:r,matches:a,selectedAnswer:c,selectedIndices:d}=this.state;switch(e.type){case ka:return gs()(Yt()(r))&&gs()(o);case Cl:return Object.keys(a).length===s.length;case El:return gs()(Yt()(d))&&gs()(o);case xl:default:return gs()(wt()(c))&&gs()(o)}}getFeedback({item:e,isCorrect:s,selectedAnswer:o}){const r="feedback"in e?e.feedback:void 0,a="feedbackCorrect"in e?e.feedbackCorrect:void 0,c="feedbackIncorrect"in e?e.feedbackIncorrect:void 0,d="feedbackType"in e?e.feedbackType:void 0,l="answers"in e?e.answers:void 0;if(this.state.forceShowFeedbackMessage)return this.state.forceShowFeedbackMessage;switch(d){case $k:return Ye()("",[o,"feedback"],l);case Qk:return this.state.forceShowFeedbackCorrect??s?a:c;case Kk:default:return r}}getTypeLabel(){const{labels:e}=this.props,s=this.getType(),o=Zk[s];return o?e?.[o]:e?.a11yBlockKnowledgeCheck}renderMultipleResponseOptionText(e,{title:s}){return(0,n.jsx)(Ms,{className:"cursorAuto",value:s})}renderMultipleChoiceOptionText(e,{title:s}){return(0,n.jsx)(Ms,{className:"quiz-multiple-choice-option__label cursorAuto",value:s})}renderType({columnBehavior:e,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isCorrect:c,item:d,onSubmit:l}){const{isHidden:u,labels:h,prefersKeyboardNavigation:p,renderMultipleResponseOptionText:f=this.renderMultipleResponseOptionText,renderMultipleChoiceOptionText:g=this.renderMultipleChoiceOptionText,settings:v}=this.props,{answered:C,fillInValue:x,matches:S,selectedAnswer:E,selectedIndices:b,questionHtmlId:L}=this.state,{type:I}=d,N="answers"in d?d.answers:[],{quizAcceptableResponses:R,quizAnswerPlaceholder:j}=h,B=v?.revealCorrectAnswers==null||v?.revealCorrectAnswers?yt.iV.ALL:yt.iV.INCORRECT,_=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(I){case ka:return(0,n.jsx)($f,{allowTabNavigation:!0,correctAnswerColor:s,correctAnswerColorContrast:o,errorMessageId:_,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:C,isCorrect:c,labels:h,onChange:this.handleFillIn,onEnterToSubmit:l,options:hh(N),revealAnswers:B,questionHtmlId:L,quizAcceptableResponses:R,quizAnswerPlaceholder:j,value:x});case Cl:return(0,n.jsx)(Xf,{answers:VM(I)(N),columnBehavior:e,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isActive:!u,isComplete:C,matches:S,onChange:this.handleMatchesChange,prefersKeyboardNavigation:p,revealAnswers:B});case El:return(0,n.jsx)(qf,{allowTabNavigation:!0,correctIds:uu(N),errorMessageId:_,isComplete:C,isCorrect:c,labels:h,onChange:this.handleMultipleResponseChange,onEnterToSubmit:l,options:N,questionHtmlId:L,renderOptionText:f.bind(this,d),revealAnswers:B,selectedIndices:b});case xl:default:return(0,n.jsx)(Jf,{allowTabNavigation:!0,correctId:WM(N)||GM(N),errorMessageId:_,isComplete:C,isCorrect:c,isReduceMotion:kh,labels:h,onChange:this.handleChoiceSelect,onEnterToSubmit:l,options:N,questionHtmlId:L,renderOptionText:g.bind(this,d),revealAnswers:B,selectedIndex:E})}}render(){const{animateBlockEntrance:e,isLearner:s,items:o,settings:r,variant:a}=this.props,{answered:c,retake:d}=this.state,{entranceAnimation:l,knowledgeCheckWidth:u=76}=r,h=y1(u),p=M()("block-knowledge",{"block-knowledge--no-animation":!l,"block-knowledge--answered":c,"block-knowledge--retake":d}),f=M()("block-knowledge__wrapper",`block-knowledge__wrapper--${a}`,{[`block-knowledge__container--custom-width-${h}`]:!0}),g=Array.isArray(o)&&o.length>0?o.slice(0,1):[];return(0,n.jsx)(qt,{className:p,style:this.getStyle(),ref:v=>{this.block=v},children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:s,children:(0,n.jsx)("div",{className:"block-knowledge__container",children:(0,n.jsx)("div",{className:"block-knowledge__row",children:(0,n.jsx)("div",{className:`block-knowledge__col--custom-width-${h}`,children:(0,n.jsx)(Rn,{"aria-label":this.getTypeLabel(),className:f,ref:v=>{this.wrapper=v},children:g.map(v=>this.renderQuestion(v))})})})})})})}getStyle(){const{backgroundColor:e,settings:s}=this.props;if(s?.cardMode===Lo.TRANSPARENT)switch(s?.backgroundType){case P.xj.ACCENT:case P.xj.COLOR:case P.xj.TINT:switch((0,ct.XC)(e)){case ct.lL.LIGHT:return{"--color-background-choice-hover":(0,ct.W8)(.5,e),"--color-background-feedback-frame":(0,ct.W8)(.5,e)};case ct.lL.MED:return{"--color-background-choice-hover":(0,ct.W8)(-.3,e),"--color-background-feedback-frame":(0,ct.W8)(-.3,e)};case ct.lL.DARK:return{"--color-background-choice-hover":(0,ct.W8)(-.6,e),"--color-background-feedback-frame":(0,ct.W8)(-.6,e)};case ct.lL.NEAR_BLACK:return{"--color-background-choice-hover":(0,ct.W8)(.15,e),"--color-background-feedback-frame":(0,ct.W8)(.15,e)}}}return null}}const Xk=t=>{const{blockId:e,items:[s]}=t,{drawCount:o,questions:r}=s,[a,c]=(0,m.useState)(()=>r?.length?F6({drawCount:o,questions:r,drawnQuestions:[]}):null);(0,m.useEffect)(()=>{if(!r)return;const l=u=>{const{path:h}=u.detail;if(h[h.indexOf("items")+1]?.id!==e)return;const f=h[h.lastIndexOf("questions")+1]?.id;if(f===a?.id)return;const g=r.find(({id:v})=>v===f);g&&c(g)};return window.addEventListener(ms,l),()=>window.removeEventListener(ms,l)},[e,a,r]);const d=(0,m.useMemo)(()=>a?{variant:Bk[a.type],items:[a]}:{},[a]);return a?(0,n.jsx)(W6,{...t,...d}):(0,n.jsx)("div",{})},Jk=t=>t.variant==="draw from question bank",Gi=t=>{const e=qn()??"",s=rn(),o=(0,It.gY)(),r={...t,backgroundColor:e,getL10nValue:o,blockSettings:s};return Jk(r)?(0,n.jsx)(Xk,{...r}):(0,n.jsx)(W6,{...r})};var qk=i(24905),ew=i.n(qk);class tw extends ie().Component{refWrap;refBubbleTitle;portal;contentRef;scrollRef;videoContainer;constructor(e){super(e),this.state={hasOverflow:!1},this.refWrap=(0,m.createRef)(),this.refBubbleTitle=(0,m.createRef)(),this.renderOverflowMask=this.renderOverflowMask.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleNextClick=this.handleNextClick.bind(this),this.handlePreviousClick=this.handlePreviousClick.bind(this),this.portal=kr()}static defaultProps={allowNav:!0,onClose:()=>{},onNextClick:()=>{},onPreviousClick:()=>{}};componentWillUnmount(){document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.contentRef.removeEventListener("scroll",this.scrollRef)}UNSAFE_componentWillReceiveProps(e){e.isActive&&setTimeout(this.renderOverflowMask,100)}componentDidUpdate(e){if(!e.isActive&&this.props.isActive){setTimeout(()=>{document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleDocumentKeyDown)},0),this.contentRef.scrollTop=0,this.refBubbleTitle.current?.focus?.();const o=this.props.getL10nValue(this.props.media)?.audio?.transcript;o&&this.props.dispatch(rl(o))}else e.isActive&&!this.props.isActive&&(document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.state.hasOverflow&&this.contentRef.removeEventListener("scroll",this.scrollRef))}render(){const{accentColor:e,allowNav:s,description:o,htmlId:r,isActive:a,media:c,title:d,x:l,y:u}=this.props,h=M()("bubble",{"bubble--active":a}),p=ow({x:l,y:u}),f=rw({hasOverflow:this.state.hasOverflow,x:l,y:u}),g={borderBottomColor:e},v=`${r}-title`,C=()=>{if(!c)return(0,n.jsx)(Nt,{allowTabNavigation:a,className:"bubble__description",value:o});const S=this.props.getL10nValue(c)??{},E=wi(S,this.props.audioPosition,this.props.hasAudioExpansionFlag,!0,"labeled-graphic"),b={blockId:this.props.blockId,hasPadding:!1,imageMaxHeight:1e3,item:this.props.item,labels:this.props.labels,lessonId:this.props.lessonId,enableVideoPlaybackSpeed:this.props.enableVideoPlaybackSpeed,opts:this.props.mediaOpts,shouldPause:!a},L={audio:{media:E.audioOnlyMedia||S,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-audio`},image:{media:E.imageOnlyMedia||S,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-image`},video:{media:E.videoOnlyMedia||S,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-video`},embed:{media:E.embedOnlyMedia||S,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-embed`},overlay:{media:S,isOverlayAudio:!0,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-overlay`}};return(0,n.jsx)(n.Fragment,{children:E.renderOrder.map((I,N)=>{if(I==="text")return(0,n.jsx)(Nt,{allowTabNavigation:a,className:"bubble__description",value:o},`text-${N}`);const R=L[I];return!R||I==="embed"&&!a?null:(0,n.jsx)("div",{className:"bubble__media",children:(0,n.jsx)("div",{className:"bubble__figure",children:(0,n.jsx)("div",{className:M()({"labeled-graphic-bubble-media-container--audio-bottom":I==="audio"&&this.props.audioPosition==="bottom"}),children:(0,n.jsx)(En,{...b,...R})})})},`${I}-${N}`)})})},x=(0,n.jsx)("div",{ref:this.refWrap,className:h,style:p,children:(0,n.jsxs)("dialog",{"aria-hidden":!a,"aria-labelledby":v,"aria-modal":"false",className:f,id:r,onKeyDown:this.handleKeyDown,style:g,children:[(0,n.jsx)("h2",{className:"bubble__title",id:v,tabIndex:-1,ref:this.refBubbleTitle,children:(0,n.jsx)(wn,{value:d})}),(0,n.jsx)("button",{"aria-label":"Close modal",className:"bubble__close",onClick:this.handleCloseClick,type:"button",children:(0,n.jsx)(QC,{className:"bubble__close-icon"})}),(0,n.jsx)("div",{className:"bubble__content",ref:S=>{this.contentRef=S},children:C()}),s&&this.renderControls()]})});return window.matchMedia("(max-width: 767px)").matches?(0,Yn.createPortal)((0,n.jsx)(y3,{children:x}),this.portal):x}renderControls(){const{accentColor:e,labels:s}=this.props,o={"--color-lg-accent":e};return(0,n.jsxs)("div",{className:"bubble__controls",style:o,children:[(0,n.jsx)("button",{"aria-label":s?.a11yCarouselPrevious,className:"bubble__prev",onClick:this.handlePreviousClick,type:"button",children:(0,n.jsx)("i",{className:"icon icon-chevron-left"})}),(0,n.jsx)("button",{"aria-label":s?.a11yCarouselNext,className:"bubble__next",onClick:this.handleNextClick,type:"button",children:(0,n.jsx)("i",{className:"icon icon-chevron-right"})})]})}renderOverflowMask(){if(!this.contentRef)return;const e=this.contentRef,s=e.offsetHeight;e.scrollHeight>s?(e.addEventListener("scroll",this.scrollRef=Vr()(this.handleScroll,50)),this.setState({hasOverflow:!0}),this.scrollRef()):(e.removeEventListener("scroll",this.scrollRef),this.setState({hasOverflow:!1}))}handleDocumentClick=e=>{const s=Array.from(document.querySelectorAll("dialog[open]"))?.reduce((o,r)=>r.contains(e.target)||o,!1);!this.props.isActive||s||this.props.onClose({shouldFocusMarker:!1})};handleDocumentKeyDown=e=>{yn(e)&&this.props.isActive&&this.props.onClose({shouldFocusMarker:!1})};handleKeyDown(e){const{allowNav:s,onNextClick:o,onPreviousClick:r}=this.props,a=wx(this.contentRef,this.state.hasOverflow),c=ew()(We()(s));Rs()([[c(_r),r],[c(Ur),o],[a2,a]])(e)}handleCloseClick=()=>{this.props.onClose()};handleNextClick(e){this.props.onNextClick(e)}handlePreviousClick(e){this.props.onPreviousClick(e)}handleScroll(){const e=this.contentRef,s=e.scrollTop,o=e.scrollHeight,r=e.offsetHeight;s>=o-r-10?this.setState({hasOverflow:!1}):this.state.hasOverflow||this.setState({hasOverflow:!0})}}const sw=cs(tw),nw=(0,Hs.Ls)()(sw),ow=({x:t,y:e})=>{const s={top:"initial",bottom:"initial",left:"0",right:"0"};return t>50?s.right=100-t+"%":s.left=t+"%",e>50?s.bottom=100-e+"%":s.top=e+"%",s},rw=({hasOverflow:t,x:e,y:s})=>{const o=e<50;let r="top";return s>33&&(r=s>66?"bottom":"middle"),M()("bubble__body","bg--range-light",{"bubble__body--has-overflow":t,"bubble__body--left":o,"bubble__body--right":!o,"bubble__body--top":r==="top","bubble__body--middle":r==="middle","bubble__body--bottom":r==="bottom"})},G6=({children:t,className:e,contentFocused:s=!1,...o})=>{const r=M()("authoring-tooltip",{[e]:e},{"content-focused":s});return(0,n.jsx)("div",{className:r,...o,children:t})},K6=({children:t,className:e="",side:s,...o})=>{const r=M()("authoring-tooltip__content",`authoring-tooltip__content--${s}`,{[e]:e});return(0,n.jsx)("span",{...o,className:r,children:t})},Ude=({children:t,className:e,content:s,direction:o="right",portalId:r="portal"})=>{const[a,c]=useState(!1),d=useRef(void 0),l=useRef(void 0),u=useCallback(()=>{s&&c(!0)},[c,s]),h=useCallback(()=>{c(!1)},[c]),p=useCallback(()=>{setTimeout(()=>{if(a){const f=l.current.getBoundingClientRect(),g=d.current.offsetParent.getBoundingClientRect(),{height:v,width:C}=f,x=f.left-g.left,S=f.top-g.top;Object.assign(d.current.style,{transform:`translate(${x}px, ${S}px)`,width:`${C}px`,height:`${v}px`})}},0)},[a]);return useLayoutEffect(()=>p(),[p]),useEvent("resize",p,window),jsxs("span",{className:e,ref:l,onMouseOver:u,onFocus:u,onMouseOut:h,onBlur:h,onWheel:h,children:[t,s&&jsx($6,{direction:o,portalId:r,ref:d,visible:a,children:s})]})},$6=(0,m.forwardRef)((t,e)=>{const{children:s,direction:o,portalId:r,visible:a}=t,c=J("portal-tooltip"),[d,l]=(0,m.useState)();(0,m.useEffect)(()=>{l(document.getElementById(r))},[r,l]);const u=(0,n.jsx)("div",{"aria-hidden":"true",ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,n.jsx)("div",{className:c("target"),style:{pointerEvents:"all"},children:(0,n.jsx)("div",{className:c({visible:a}).mix(o),children:(0,n.jsx)("div",{className:c("inner"),children:s})})})});return d?(0,Yn.createPortal)(u,d):(0,n.jsx)(n.Fragment,{})});$6.displayName="PortalTooltipContent";var aw=i(59288);const iw=t=>new URL(t).pathname.slice(1)+new URL(t).search;class cw extends aw.Component{imageEl;constructor(e){super(e),this.state={style:{}}}render(){const{canvasClassNames:e,children:s,editable:o,editingDisabled:r,getL10nValue:a,imageLoaded:c,media:d,onCreateMarker:l,onShowAltDialog:u}=this.props,{style:h}=this.state,p=a(d)?.image??{},{alt:f,dimensions:g,key:v,src:C}=p,x=!!p.alt,S=(0,gn.Ll)(f),E=(0,gn.Zd)(p),b=M()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":o&&!r,"labeled-graphic-canvas__figure--editing-disabled":o&&r}),L=v?(0,rs.ME)(p):(0,rs.ME)({key:iw(C),...p}),I=M()("labeled-graphic-canvas__image","labeled-graphic-canvas__image--flag-dimensions",{"labeled-graphic-canvas__image--svg":(0,gn.sg)(L)}),N=(0,n.jsx)(An,{alt:S,className:I,"data-l10n-id":(0,Pt.pP)(d),height:g?.height||g?.originalHeight,onClick:l,onLoad:()=>this.setState({style:E}),ref:R=>{this.imageEl=R},src:L,style:h,width:g?.width||g?.originalWidth});return(0,n.jsx)("div",{className:e||"labeled-graphic-canvas",children:(0,n.jsx)("div",{className:"labeled-graphic-canvas__item",children:(0,n.jsx)("div",{className:"labeled-graphic-canvas__bounds",children:(0,n.jsxs)("figure",{className:b,children:[x&&o?(0,n.jsxs)(G6,{className:"item-media__tooltip",children:[(0,n.jsx)("button",{onClick:u,className:"labeled-graphic-canvas__alt-tag",type:"button",children:"ALT"}),(0,n.jsx)(K6,{side:"top",children:"Edit alt text"})]}):[],c&&N,(0,n.jsx)("ol",{role:"list",children:s})]})})})})}}const lw=cs(cw),dw={"01":"a11yLabeledGraphicIconPlus","02":"a11yLabeledGraphicIconDot","03":"a11yLabeledGraphicIconInformation","04":"a11yLabeledGraphicIconQuestion","05":"a11yLabeledGraphicIconCheck","06":"a11yLabeledGraphicIconX","07":"a11yLabeledGraphicIconHeart","08":"a11yLabeledGraphicIconPin","09":"a11yLabeledGraphicIconArrowLeft",10:"a11yLabeledGraphicIconArrowRight",11:"a11yLabeledGraphicIconArrowUp",12:"a11yLabeledGraphicIconArrowDown",13:"a11yLabeledGraphicIconArrowUpLeft",14:"a11yLabeledGraphicIconArrowUpRight",15:"a11yLabeledGraphicIconArrowDownLeft",16:"a11yLabeledGraphicIconArrowDownRight",17:"1",18:"2",19:"3",20:"4",21:"5",22:"6",23:"7",24:"8",25:"9",26:"0"},uw=(t,e)=>{const s=dw[e];return s?.startsWith("a11y")?t?.[s]||"":s||""};var hw=i(59288);const Q6=J("labeled-graphic-marker");class mw extends hw.Component{marker;onMouseMove;onMouseLeave;constructor(e){super(e),this.state={dragging:!1,hovering:!1,isComplete:!1,isDragged:!1,offsetX:0,offsetY:0,wasDragged:!1},this.onClick=this.onClick.bind(this)}parentCanvasElement(){return this.marker.parentElement.parentElement.parentElement}componentDidMount(){const e=this.parentCanvasElement();e.addEventListener("mousemove",this.onMouseMove=s=>{this.onItemDrag(s)}),e.addEventListener("mouseleave",this.onMouseLeave=s=>{this.onItemRelease(s)})}componentWillUnmount(){const e=this.parentCanvasElement();e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseleave",this.onMouseLeave)}UNSAFE_componentWillReceiveProps(e){const{isSelected:s,useLocalStateForCompletion:o}=e;s&&o&&!this.state.isComplete&&this.setState({isComplete:!0})}buildMarkerLabel=({icon:e,label:s,title:o,viewed:r})=>{const{labels:a}=this.props;return[].concat(s||[]).concat(o||[]).concat(e||[]).concat(r?a?.a11yLabeledGraphicViewed:a?.a11yLabeledGraphicUnviewed).join(", ")};render(){const{accentColor:e,ariaControls:s,icon:o,isActive:r,isComplete:a,isLessonBlocksList:c,isSelected:d,isVisible:l,labels:u,markerColor:h,markerColorContrast:p,onFocus:f,styles:g,useLocalStateForCompletion:v}=this.props,C=this.props.getL10nValue(this.props.title),x=uw(u,o),S=v?this.state.isComplete:a,E=!!h,b=(0,ct.cP)(h)?P.Em.LIGHT:P.Em.DARK,I=jn({backgroundColor:h,contrast:p??b}),N=E?h:"#ffffff",R=E?I:e,j=this.buildMarkerLabel({icon:x,label:u&&u.a11yLabeledGraphicButtonMarker||"",title:C,viewed:S}),O=Q6({active:d,dragged:this.state.isDragged,visible:l,complete:S}),B={...g,"--color-lg-accent":N,"--color-lg-font":R},_=Q6("pin",{selected:d,disabled:c});return(0,n.jsx)("button",{"aria-expanded":r,"aria-label":j,"aria-controls":s,className:O,onClick:this.onClick,onContextMenu:this.onItemRelease.bind(this),onFocus:f,onMouseDown:this.onItemGrab.bind(this),onMouseEnter:this.onHover.bind(this),onMouseLeave:this.onLeave.bind(this),onMouseUp:this.onItemRelease.bind(this),ref:k=>{this.marker=k},style:B,type:"button",children:(0,n.jsx)("span",{className:_,children:(0,n.jsx)("i",{className:`icon icon-Master-${o}`})})})}focus(){this.marker&&this.marker.focus&&this.marker.focus()}onHover(){this.state.wasDragged&&this.props.onHover(),this.setState({hovering:!0})}onLeave(){this.props.onLeave(),this.setState({hovering:!1})}onClick(){const{editable:e,itemId:s,onClick:o,parentId:r}=this.props,a="labeledGraphicMarkerClick",c={detail:{itemId:s,parentId:r}},d=new CustomEvent(a,c);document.dispatchEvent(d),e||o()}onItemGrab(e){const{editable:s}=this.props;if(!s)return;const o=this.marker.getBoundingClientRect(),r=o.left-e.clientX+this.marker.offsetWidth/2,a=o.top-e.clientY+this.marker.offsetHeight/2;this.setState({posX:e.clientX,posY:e.clientY,offsetX:r,offsetY:a,isDragged:!0})}onItemDrag(e){if(this.state.isDragged){const s=e.clientX-this.state.posX,o=e.clientY-this.state.posY;this.marker.style.transform=`translate3d(${s}px, ${o}px, 0)`}}onItemRelease(e){const{editable:s}=this.props,o={isDragged:!1};this.marker.style.transform="translate3d(0, 0, 0)",this.state.isDragged&&this.state.posX===e.clientX&&this.state.posY===e.clientY?this.props.onClick():s&&e.currentTarget instanceof HTMLElement&&e.currentTarget.classList.contains("labeled-graphic-marker")?this.props.onSetPosition(e,this.state.offsetX,this.state.offsetY):this.state.isDragged&&(o.offsetX=0,o.offsetY=0),this.setState(o)}}const pw=cs(mw);class fw extends ie().Component{static get defaultProps(){return{animateBlockEntrance:!1,editable:!0,getL10nValue:e=>e,markerDelay:0,onClose:Function.prototype,onCreateMarker:Function.prototype,onItemClear:Function.prototype,onItemHint:Function.prototype,onItemSelected:Function.prototype,onNextClick:Function.prototype,onPreviousClick:Function.prototype,onSetMarkerPosition:Function.prototype,showBubbles:!0}}markerRefs;timeout;entranceDoneTimeout;canvas;constructor(e){super(e);const{isLearner:s}=e;this.afterAnimatedIn=this.afterAnimatedIn.bind(this),this.createMarker=this.createMarker.bind(this),this.onBubbleClose=this.onBubbleClose.bind(this),this.onMarkerFocus=this.onMarkerFocus.bind(this),this.markerRefs={},this.state={showMarkers:!s||Js()}}componentDidMount(){const{isBlock:e,isLearner:s,isPreview:o,markerDelay:r}=this.props;s&&!e&&(this.timeout=setTimeout(()=>this.setState({showMarkers:!0}),o?0:r))}componentWillUnmount(){clearTimeout(this.timeout),clearTimeout(this.entranceDoneTimeout)}render(){const{accentColor:e,animateBlockEntrance:s,blockId:o,color:r,canvasClassNames:a,disableCreateMarker:c,editable:d,getL10nValue:l,hasAudioExpansionFlag:u,imageLoaded:h=!0,isBlock:p,isLastBlock:f,isLearner:g,isLessonBlocksList:v,isPreview:C,items:x,labels:S,lessonId:E,media:b,onItemClear:L,onItemHint:I,onItemSelected:N,onNextClick:R,onPreviousClick:j,onShowAltDialog:O,parentId:B,progress:_,selected:k,settings:te={},showBubbles:F,enableVideoPlaybackSpeed:K}=this.props,{markerColor:Z,markerColorContrast:xe}=te,{showMarkers:fe}=this.state,we=Z||(e||r),Ae=M()("map-item",{"map-item--animated":!d}),_e=s?"fadeIn":"none",Qe=s?1:0,pt=x.length>1,ls=f?50:300;return(0,n.jsx)(m.Fragment,{children:(0,n.jsx)(zt,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!C,animateIn:_e,duration:C?0:Qe,initiallyVisible:!s,isLearner:g,offset:ls,children:(0,n.jsx)(lw,{canvasClassNames:a,editable:d,editingDisabled:c,imageLoaded:h,media:b,onCreateMarker:this.createMarker,onShowAltDialog:O,ref:nt=>{this.canvas=nt},children:x.map((nt,Ce)=>{const{description:Ne,id:Ke,icon:He,media:dt,title:lt}=nt,Ht=l(nt.x),Wt=l(nt.y),vs={top:Wt+"%",left:Ht+"%"},en=jt()(["items",Ke,"isComplete"],_),Pn=k===Ke,Bs=`bubble-${o}-${Ke}`;return(0,n.jsxs)("li",{className:Ae,role:"listitem",children:[(0,n.jsx)(pw,{accentColor:we,ariaControls:Bs,editable:d,icon:He,isActive:k===Ke,isComplete:en,isLessonBlocksList:v,isSelected:Pn,isVisible:fe,itemId:Ke,labels:S,markerColor:Z,markerColorContrast:xe,onClick:()=>{N(Ke)},onFocus:this.onMarkerFocus(Ke),onHover:()=>{I()},onLeave:()=>{L()},onSetPosition:this.onSetPosition.bind(this,nt),parentId:B,ref:Sn=>{this.markerRefs[Ke]=Sn},styles:vs,title:lt,useLocalStateForCompletion:p},Ke),!d&&F&&(0,n.jsx)(nw,{accentColor:we,allowNav:pt,audioPosition:te.audioPosition,blockId:o,description:Ne,hasAudioExpansionFlag:u,htmlId:Bs,isActive:Pn,labels:S,media:dt,item:nt,index:Ce,lessonId:E,enableVideoPlaybackSpeed:K,mediaOpts:{disableZoom:!te.zoomOnClick},onClose:this.onBubbleClose(Ke),onNextClick:()=>{R(Ce)},onPreviousClick:()=>{j(Ce)},title:lt,x:Number(Ht),y:Number(Wt)},Bs)]},Ke)})})})})}createMarker(e){const{disableCreateMarker:s,editable:o,isBlock:r,onCreateMarker:a}=this.props;if(!o||s)return;const{x:c,y:d}=this.findItemCoordinates({e}),{id:l,items:u}=this.props.lesson,h=r?u[0].items.length:u.length,f={description:"",hasMedia:!1,icon:"01",id:qd()(),isActive:!1,title:"",x:String(c),y:String(d)};a({index:h,lessonId:l,items:u,payload:f})}onBubbleClose(e){const{onClose:s}=this.props;return(o={shouldFocusMarker:!0})=>{const r=this.markerRefs[e];o.shouldFocusMarker&&r?.focus?.(),s()}}onMarkerFocus(e){return()=>{const{onClose:s,selected:o}=this.props;o&&o!==e&&s()}}onSetPosition(e,s,o,r){if(!this.props.editable)return;const{lesson:a,onSetMarkerPosition:c}=this.props,{id:d,items:l}=a,{x:u,y:h}=this.findItemCoordinates({e:s,offsetX:o,offsetY:r}),p={x:String(u),y:String(h)};(0,_s.uW)(e.x)&&(0,_s.uW)(e.y)?(this.props.updateL10n({l10n:e.x,value:p.x}),this.props.updateL10n({l10n:e.y,value:p.y})):c({itemId:e.id,lessonId:d,items:l,payload:p})}findItemCoordinates({e,offsetX:s=0,offsetY:o=0}){const r=this.canvas.imageEl.getBoundingClientRect(),a=20,c=this.findItemCoordinate({clientPos:e.clientX,clientOffset:s,rectSubtractor:r.left,rectDivisor:r.width,validOffsetAmount:a}),d=this.findItemCoordinate({clientPos:e.clientY,clientOffset:o,rectSubtractor:r.top,rectDivisor:r.height,validOffsetAmount:a});return{x:c,y:d}}findItemCoordinate({clientPos:e,clientOffset:s,rectSubtractor:o,rectDivisor:r,validOffsetAmount:a}){const c=a/r*100,d=100-c;let l=(e+s-o)/r*100;return l>d?l=d:l<c&&(l=c),l}afterAnimatedIn(){const{isBlock:e}=this.props;e&&this.setState({showMarkers:!0})}}const gw=cs(fw);var vw=i(59288);const Z6="page-wrap--noscroll";class Cw extends vw.Component{static get defaultProps(){return{onItemSelected:Function.prototype,onStep:Function.prototype,getL10nValue:()=>{}}}constructor(e){super(e),this.state={imageLoaded:!1},this.closeOpenedBubble=this.closeOpenedBubble.bind(this),this.handleMarkerClick=this.handleMarkerClick.bind(this),this.handleNavEvent=this.handleNavEvent.bind(this),this.onItemSelected=this.onItemSelected.bind(this),this.onNextClick=this.onNextClick.bind(this),this.onPreviousClick=this.onPreviousClick.bind(this),this.setImageLoaded=this.setImageLoaded.bind(this)}componentDidMount(){this.loadImage(),this.props.readOnly||document.addEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.addEventListener(ms,this.handleNavEvent)}handleNavEvent(e){const s=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;s===this.props.blockId&&this.state.selectedItemId!==o&&this.onItemSelected(o)}componentWillUnmount(){this.props.readOnly||document.removeEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.removeEventListener(ms,this.handleNavEvent)}render(){const{imageLoaded:e}=this.state,{hasAudioExpansionFlag:s,isLessonBlocksList:o,isPreview:r,items:a,labels:c,parentId:d,settings:l={}}=this.props,{mediaWidth:u="2"}=l,h=r?a[0].id:this.state.selectedItemId,p=M()("view-labeled-graphic",{"view-labeled-graphic--small":u==="0","view-labeled-graphic--medium":u==="1","view-labeled-graphic--full":u==="2"});return(0,n.jsx)("div",{"aria-label":c?.a11yLabeledGraphicBlock,className:p,role:"group",children:(0,n.jsx)(gw,{...this.props,canvasClassNames:this.getCanvasClassNames(),editable:!1,hasAudioExpansionFlag:s,isLessonBlocksList:o,imageLoaded:e,labels:c,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:d,selected:h})})}setImageLoaded(){this.setState({imageLoaded:!0})}loadImage(){const{image:e}=this.props.getL10nValue(this.props.media),{key:s,src:o}=e,r=setTimeout(this.setImageLoaded,1e3),a=new Image,c=s?(0,rs.ME)(e):o;a.src=c,a.onload=()=>{clearTimeout(r),this.setImageLoaded()}}getCanvasClassNames(){return M()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}onNextClick(e){const{blockId:s,items:o}=this.props,r=Pe()("id",o[Zt()(e)]||o[0]);document.querySelector(`dialog#bubble-${s}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onPreviousClick(e){const{blockId:s,items:o}=this.props,r=Pe()("id",o[fo()(e)]||o[fo()(us()(o))]);document.querySelector(`dialog#bubble-${s}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onItemSelected(e){const{editBlock:s,items:o,onItemSelected:r,onStep:a}=this.props,{selectedItemId:c}=this.state;s&&window.matchMedia("(max-width: 768px)").matches||(c===e?this.closeOpenedBubble():(this.openBubble(e),Se()(a,qe()(d=>d.id===e))(o)),r(e))}handleMarkerClick(e){const{itemId:s,parentId:o}=e.detail,{selectedItemId:r}=this.state;(o!==this.props.parentId||r!==s)&&this.closeOpenedBubble()}openBubble(e){const{blockId:s}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const r=document.querySelector(".page-wrap");r&&r.classList.add(Z6)}this.setState({selectedItemId:e}),document.getElementById(`bubble-${s}-${e}`).show()}closeOpenedBubble(){const{blockId:e}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const o=document.querySelector(".page-wrap");o&&o.classList.remove(Z6)}document.getElementById(`bubble-${e}-${this.state.selectedItemId}`)?.close(),this.setState({selectedItemId:void 0})}}const Y6=cs(Cw),xw=t=>{const{blockId:e,progress:s,isLessonBlocksList:o=!1}=t,r=jt()(["items",e],s),a=Ea("rise-audio-release");return(0,n.jsx)(qt,{className:"block-labeled-graphic",children:(0,n.jsx)(Y6,{...t,editable:!1,hasAudioExpansionFlag:!!a,isBlock:!0,isLessonBlocksList:o,parentId:e,progress:r})})},wh=J("block-process-card"),X6=({icon:t,isOverlayAudio:e=!1,onClick:s,text:o,variant:r})=>{const a=`${r}-btn`;return(0,n.jsxs)("button",{type:"button",className:wh(a,{"audio-overlay":e}),onClick:s,children:[(0,n.jsx)("span",{className:wh(`${a}-text`),children:o}),(0,n.jsx)(Lt,{classNameIcon:wh(`${a}-icon`),name:t})]})},Ew=J("block-process-card"),Tw=({activeIndex:t,enableVideoPlaybackSpeed:e,id:s,index:o,isIntroStep:r=!1,isOverlayAudio:a=!1,item:c,labels:d,lessonId:l,media:u,onMediaLoad:h,settingZoomOnClick:p})=>{const f=Ea("rise-audio-release"),{image:g,video:v}=u??{},C=a?g?.align??"center":"center",x=Ew("media",{legacy:!f&&!v,"audio-overlay":a,[`audio-overlay-${C}`]:a,"intro-step":r});return(0,n.jsx)("div",{className:x,children:(0,n.jsx)(En,{activeIndex:t,blockId:s,defaultAlign:"center",enableVideoPlaybackSpeed:e,hasPadding:!1,index:`${s}-${o}`,itemIndex:o,isOverlayAudio:f&&a,item:c,labels:d,lessonId:l,media:u,onLoad:h,opts:{disableZoom:!p},pauseOnLoad:!0})})};var Bh=i(59288);const Qr=J("block-process-card"),Sw=({text:t})=>{const e=Bh.useRef(null),{isInView:s}=Lw({ref:e,threshold:.75});return(0,n.jsxs)("div",{ref:e,className:Qr("swipe-badge",{animate:s}),children:[(0,n.jsx)("span",{className:Qr("swipe-badge-text"),children:t}),(0,n.jsx)(Lt,{className:Qr("swipe-badge-icon"),name:"chevron-right-solid"})]})};function Lw({ref:t,rootMargin:e="0px",threshold:s=.1}){const[o,r]=Bh.useState(!1);return Bh.useEffect(()=>{if(!t.current||o)return;const a=new IntersectionObserver(([c])=>{c.isIntersecting&&(r(!0),a.disconnect())},{rootMargin:e,threshold:s});return a.observe(t.current),()=>a.disconnect()},[o,t,e,s]),{isInView:o}}const bw=({activeIndex:t,className:e,description:s,enableVideoPlaybackSpeed:o,hasIntro:r,id:a,index:c,item:d,labels:l,lessonId:u,media:h,onClickRestart:p,onClickStart:f,settingAudioPosition:g,settingHeadingLevel:v=2,settingShowStepLabel:C=!0,settingStepLabel:x,settingZoomOnClick:S,showSwipeBadge:E,style:b,title:L,totalSteps:I,type:N})=>{const R=`h${v}`,j=N==="intro",O=N==="summary",B=N==="step",_=r?c:c+1,k=(0,It.QQ)(x)||l.processStepName,te=Ea("rise-audio-release"),F=(0,It.QQ)(Array.isArray(h)?{}:h),K=wi(F,g,te,!0,"process"),Z=()=>{if(!h)return null;const xe={activeIndex:t,enableVideoPlaybackSpeed:o,id:a,index:c,isIntroStep:j,labels:l,lessonId:u,media:h,onMediaLoad:()=>{},settingZoomOnClick:S,item:d},fe={audio:{media:K.audioOnlyMedia||F,isOverlayAudio:!1},image:{media:K.imageOnlyMedia||F,isOverlayAudio:!1},video:{media:K.videoOnlyMedia||F},embed:{media:K.embedOnlyMedia||F,isOverlayAudio:!1},overlay:{media:F,isOverlayAudio:!1}};return K.renderOrder.map((oe,we)=>{if(oe==="text")return(0,n.jsx)(Nt,{className:Qr("description"),value:s},`text-${we}`);const Ae=fe[oe];return Ae?(0,n.jsx)(Tw,{...xe,...Ae},`${oe}-${we}`):null})};return(0,n.jsxs)("div",{className:Qr(null,{[N]:!0}).mix(e),style:b,children:[B&&C&&(0,n.jsx)("div",{className:Qr("number"),children:`${k} ${_}`}),(0,n.jsx)("div",{className:Qr("title"),children:(0,n.jsx)(R,{children:(0,n.jsx)(Nt,{value:L})})}),Z(),!h&&(0,n.jsx)(Nt,{className:Qr("description"),value:s}),j&&I>1&&(0,n.jsx)(X6,{icon:"chevron-right-solid",isOverlayAudio:K.isOverlayAudio,onClick:f,text:l.processStart,variant:"start"}),O&&I>1&&(0,n.jsx)(X6,{icon:"arrow-rotate-left",isOverlayAudio:K.isOverlayAudio,onClick:p,text:l.processStartAgain,variant:"restart"}),E&&B&&(0,n.jsx)(Sw,{text:l.processSwipe})]})};var Jo=i(59288);const yw=J("block-process-carousel"),J6=t=>t?.type==="intro",_h=t=>t?.type==="summary",Uh=t=>t?.type==="step",q6=t=>t?.isHidden,Iw=({animateBlockEntrance:t,enableVideoPlaybackSpeed:e,id:s,isLearner:o,items:r,labels:a,lessonId:c,onStep:d,previewType:l,processRef:u,settings:{audioPosition:h,headingLevel:p,stepLabel:f,showStepLabel:g,zoomOnClick:v}})=>{const C=Xs(480),x=(0,Me.Wz)(),S=(0,It.gY)(),E=(0,Hs.y4)(),b=Jo.useRef(null),[L,I]=Jo.useState(0),[N,R]=Jo.useState(!1),j=Jo.useMemo(()=>l===$e.o4.MOBILE_PORTRAIT||l===$e.o4.MOBILE_LANDSCAPE,[l]),O=Jo.useMemo(()=>{const oe=r.filter(Qe=>!q6(Qe)),we=oe.find(J6),Ae=oe.find(_h),_e=oe.filter(Uh);return[we,..._e,Ae].filter(Boolean)},[r]),B=Jo.useMemo(()=>O.findIndex((oe,we)=>Uh(oe)&&(Uh(O[we+1])||_h(O[we+1]))),[O]),_=J6(O[0]),k=_h(O[O.length-1]),te=!!l;Jo.useEffect(()=>{d&&(r.forEach(oe=>q6(oe)&&d(oe)),O.length>0&&d(O[0]))},[]);const F=Jo.useCallback(()=>{b.current?.navigateToSlide?.(0)},[]),K=Jo.useCallback(()=>{b.current?.navigateToSlide?.(1)},[]),Z=Jo.useCallback(oe=>{I(oe),u.current?.scrollIntoView({behavior:"smooth",block:"start"}),oe!==B&&!N&&R(!0),d?.(O[oe]);const Ae=S(O[oe]?.media);Ae?.audio?.transcript&&E(rl(Ae.audio.transcript))},[O,E,B,S,N,d,u]),xe=({index:oe,isActive:we,onClick:Ae,onKeyDown:_e})=>{const Qe=_&&oe===0,pt=k&&oe===O.length-1,ls=_?oe:oe+1;let nt,Ce;Qe?(nt=a?.a11yBlockProcessSlideControlsIntroduction,Ce=(0,n.jsx)(Lt,{className:"carousel-controls-item-intro-icon",name:"chevron-right"})):pt?(nt=a?.a11yBlockProcessSlideControlsSummary,Ce=(0,n.jsx)(Lt,{name:"check-regular"})):(nt=ls.toString(),Ce=ls.toString());const Ne=`${a?.a11yBlockProcessSlideControlsGoToSlide} ${nt}`;return(0,n.jsx)(mf,{"aria-label":Ne,ariaLabel:Ne,className:"carousel-controls-item-btn",isActive:we,onClick:Ae,onKeyDown:_e,children:Ce},oe)},fe={animateBlockEntrance:te,animateIn:t?"fadeIn":"none",duration:te&&t?1:0,initiallyVisible:!t,isLearner:o,offset:100};return(0,n.jsx)(zt,{...fe,children:(0,n.jsx)("div",{className:yw(),children:(0,n.jsx)(Xd,{blockId:s,carouselRef:b,items:O,children:()=>(0,n.jsx)(Qd,{iconNameLeft:"chevron-left-solid",iconNameRight:"chevron-right-solid",isInfinite:!1,isRTL:x,labelCarousel:a?.a11yBlockProcessCarousel,labelCarouselRoleDesc:a?.a11yBlockProcessRoleDescription,labelSlideControls:a?.a11yBlockProcessSlideControls,labelSlideControlsGoToNext:a?.a11yBlockProcessSlideControlsGoToNext,labelSlideControlsGoToPrevious:a?.a11yBlockProcessSlideControlsGoToPrevious,labelSlideControlsGoToSlide:a?.a11yBlockProcessSlideControlsGoToSlide,labelSlidePreposition:a?.a11yBlockProcessSlidePreposition,labelSlideRoleDesc:a?.a11yBlockProcessSlideRoleDescription,onChange:Z,ref:b,renderSlideIndicator:xe,shouldMouseEmulateTouch:j,shouldUseCounter:!1,shouldUseGoToSlide:!0,children:O.map((oe,we)=>(0,n.jsx)(Rn,{activeIndex:L,description:oe.description,enableVideoPlaybackSpeed:e,hasIntro:_,id:s,index:we,isHidden:oe.isHidden,item:oe,labels:a,lessonId:c,media:oe.media,onClickRestart:F,onClickStart:K,settingAudioPosition:h,settingHeadingLevel:p,settingShowStepLabel:g,settingStepLabel:f,settingZoomOnClick:v,showSwipeBadge:C&&!N&&we===B,tag:bw,title:oe.title,totalSteps:O.length,type:oe.type},oe.id))})})})})};var Nw=i(59288);const jw=t=>{const{blockId:e,settings:s}=t,{paddingBottom:o,paddingTop:r}=s,a=Nw.useRef(null),c={paddingBottom:`${Number(o)*10}px`,paddingTop:`${Number(r)*10}px`};return(0,n.jsx)(qt,{className:"block-process",ref:a,style:c,children:(0,n.jsx)(Iw,{id:e,processRef:a,...t})})};var Aw=i(7906),Rt=i.n(Aw),Rw=i(18714),Ow=i.n(Rw),Pw=i(8849),Mw=i.n(Pw),Dw=i(8826),kw=i.n(Dw);const ww=La()(wt()),Bw=t=>{const e=e5(t)[0],{feedback:s}=e||{},o=St()(Ls()(["action","emotion","goTo","nextSlide"]),Rt()({description:s,type:"dialogue"}));return e?[e,o(e)]:[o(t)]},e5=t=>[t.responses[t.response]],_w=t=>{const e=mh()(ww,"response"),s=Ue()("hasFeedback",!0),o=a=>Se()(kw()(t),a);return Rs()([[s,o(Bw)],[e,o(e5)],[hn(),Mw()]])(t)},Uw=(t,e)=>{if(!e)return;const{scene:s,slide:o}=e,r=Ts()(Ue()("id",s),t),a=tt()([],"slides",t[r]),c=Ts()(Ue()("id",o),a);return{scene:r,slide:c}},t5=hr()(Uw);var Hw=i(40731),Hh=i.n(Hw);const Fw=St()(Pe()("filters"),Qt()(Ue()("name","rise_emotion")),La()(Yt())),zw=St()(Pe()("filters"),qe()(Ue()("name","rise_emotion")),Pe()("value")),s5=t=>new URL(t).pathname.slice(1),Vw=t=>St()(st()("key",s5(t.src)),st()("thumbnailKey",s5(t.thumbnail)))(t),Ww=St()(Pe()("poses"),Qt()(Fw),ws()(t=>[zw(t),t]),Hh(),Wr()(Vw));var qo=i(59288);const Fh=t=>t===-1?null:t,n5=t=>Fs()(wt(),Un(),t),vu=La()(Yt()),o5=La()(wt()),Ki=kn()(o5,vu),r5=t6()(Nn()),a5=ye.BI?n5(rs.dE):n5(rs.bX),zh=t=>As()(t);class Gw extends qo.Component{static get defaultProps(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}continueRef;feedbackRef;resetRef;buttonRef=qo.createRef();responseItemRef=qo.createRef();scenarioRef=qo.createRef();blockContentRef=qo.createRef();endRef=qo.createRef();textRef=qo.createRef();refs=qo.createRef();dynamicRefs=qo.createRef();shouldFocus=!1;constructor(e){super(e);const s={activeScene:0,activeSlide:0,initiated:!1,prevScene:0,prevSlide:0,resizes:0,slides:{}};this.refs.current={},this.state=e.initialState||s,this.fetchCharacters=this.fetchCharacters.bind(this),this.fetchCharacterPose=this.fetchCharacterPose.bind(this),this.getCharacterPose=this.getCharacterPose.bind(this),this.handleNavEvent=this.handleNavEvent.bind(this),this.onClick=this.onClick.bind(this),this.onFocus=this.onFocus.bind(this),this.onInit=this.onInit.bind(this),this.onResize=this.onResize.bind(this),this.onResponseClick=this.onResponseClick.bind(this),this.onTryAgainClick=this.onTryAgainClick.bind(this),this.renderBackground=this.renderBackground.bind(this),this.renderButton=this.renderButton.bind(this),this.renderDetails=this.renderDetails.bind(this),this.renderDialogues=this.renderDialogues.bind(this),this.renderEnd=this.renderEnd.bind(this),this.renderPose=this.renderPose.bind(this),this.renderResponse=this.renderResponse.bind(this),this.renderText=this.renderText.bind(this),this.resetSlide=this.resetSlide.bind(this),this.resetSlides=this.resetSlides.bind(this),this.setNextSlide=this.setNextSlide.bind(this),this.dynamicRefs.current={}}componentDidMount(){const{initialState:e,items:s}=this.props,o=Se()(ur()("poses"),tt()({},"character"),zh);Ki(s)&&!o(s)&&this.fetchCharacters(),e||this.resetSlides(),window.addEventListener("resize",this.onResize),window.addEventListener(ms,this.handleNavEvent)}handleNavEvent(e){const{path:s}=e.detail,{blockId:o,sceneId:r,slideId:a,responseId:c}=Pc(s,["block","scene"]),d=s.at(-1)==="feedback";if(o!==this.props.blockId)return;const l=Fh(this.props.items.findIndex(p=>p.id===r)),u=l!==null?Fh(this.props.items[l].slides.findIndex(p=>p.id===a)):null,h=u!==null?Fh(this.props.items[l].slides[u].responses.findIndex(p=>p.id===c)):null;this.setState({activeScene:l??0,activeSlide:u??0},()=>{l!==null&&u!==null&&this.setState({slides:{...this.state.slides,[`${l}.${u}`]:{...this.state.slides[`${l}.${u}`],hasFeedback:d,response:h}}})})}componentDidUpdate(){const{items:e,onStep:s}=this.props,{activeScene:o,activeSlide:r}=this.state,a=Ye()([],[o,"slides"],e),c=Ye()(null,[r,"goTo"],a),d=Ye()(null,[r,"type"],a);if(s&&(c==="end"&&d==="text"||!c&&!d)&&hu()(s,e),this.shouldFocus){this.shouldFocus=!1;const p=this.scenarioRef.current?.querySelector('[data-scenario-focus][tabindex="-1"]');p?p.focus():C1(this.scenarioRef.current)}}componentWillUnmount(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize),window.removeEventListener(ms,this.handleNavEvent)}fetchCharacterPose(e,s){const{items:o}=this.props,{character:r,slides:a}=o[e],c=a[s],d=`${e}.${s}`,l=[d,"response"],u=[d,"hasFeedback"],h=Ye()(null,l,this.state.slides),p=Ye()(!1,u,this.state.slides),f=tt()("neutral","emotion",c),g=Fs()(We()(p),Ye()(f,["responses",h,"emotion"]),We()(f)),v=St()(Ye()(r?.poses?.neutral,["poses",g(c)]),a5);return{name:r.name,pose:v(r)}}fetchCharacters(){const{getCharacter:e,items:s,onItemUpdate:o}=this.props,r=Ls()(["id","name","poses","src"]),a=d=>l=>o({itemId:d,payload:{character:l}}),c=({character:d,id:l})=>Ki(d)&&e(d.id).then(u=>st()("poses",Ww(u),u)).then(r).then(a(l));s.map(c)}getCharacterPose(){const{items:e}=this.props,{activeScene:s,activeSlide:o,prevScene:r,prevSlide:a}=this.state,c=Ye()([],[s,"slides"],e),d=Ye()(!0,[o,"hasCharacter"],c);return o5(r)&&gs()(d)?this.fetchCharacterPose(r,a):this.fetchCharacterPose(s,o)}onClick(e,s){const{items:o,onStep:r}=this.props,{activeScene:a,activeSlide:c}=this.state,{slides:d}=o[a],l=tt()(null,"type",d[c])==="dialogue",u=a===o.length-1,h=c===d.length-1,p={activeSlide:c+1},f={activeScene:a+1,activeSlide:0},g={activeSlide:null},v={activeScene:0,activeSlide:0},C=St()(t5(o),({scene:L,slide:I})=>({activeScene:L,activeSlide:I})),x=Rs()([[We()(h&&u),We()(g)],[We()(h&&!u),We()(f)],[hn(),We()(p)]]),S=Fs()(We()(l),We()(g),We()(v)),E=Rs()([[ps()("slide"),Hn()(C,[s])],[ps()("next"),x],[ps()("end"),S]]),b=()=>this.continueRef=setTimeout(this.setNextSlide,300);this.resetRef=setTimeout(this.resetSlide.bind(this,a,c),0),this.setState({prevScene:a,prevSlide:c}),this.setState(E(e),b),e==="end"&&this.resetSlides(),e==="end"&&r&&hu()(r,o)}onFocus(){this.shouldFocus=!0}onInit(){this.setState({initiated:!0})}onResize(){this.setState({resizes:this.state.resizes+1})}onResponseClick(e){const{activeScene:s,activeSlide:o,slides:r}=this.state,a=`${s}.${o}`,c=st()("response",e),d=st()("hasFeedback",!0),l=Jt()({[`${a}`]:c}),u=Jt()({[`${a}`]:d}),h=Se()(u,l);this.setState({slides:l(r)},()=>{this.shouldFocus=!0,this.setState({slides:h(r)})})}onTryAgainClick(){const{activeScene:e,activeSlide:s,slides:o}=this.state,r=`${e}.${s}`,a=Rt()({hasFeedback:null,response:null}),c=Jt()({[`${r}`]:a});this.setState({slides:c(o)})}render(){const{blockId:e,getL10nValue:s,isPDF:o,items:r,labels:a}=this.props,{activeScene:c,activeSlide:d,initiated:l}=this.state,{slides:u}=r[c]||{},h=u&&u[d],p=Se()(vu,tt()({},"character"),zh),f=Se()(ur()("poses"),tt()({},"character"),zh),g=Se()(yo(),Ye()({},["character","poses"])),v=Se()(cl(),yo(),ws()(g)),C=M()("scenario-block",{"scenario-block--initiated":l,"scenario-block--mobile":nn.isMobile,"scenario-block--loading":p(r)&&!f(r)}),x=`scenario-live-${e}`,S={"aria-label":a?.a11yGroupScenario,"aria-describedby":x,className:C,ref:this.scenarioRef,role:"group",style:window.innerWidth<480?{height:window.innerHeight}:null},E=(0,rs.ME)(s(r?.[0].background?.media)?.image),b=Rs()([[wt(),this.renderEnd],[Ue()("type","dialogue"),this.renderDialogues],[Ue()("type","text"),this.renderText],[hn(),We()(null)]]),L=h&&h.type==="text"&&!h.hasCharacter,I=M()("scenario-block__character",{"scenario-block__character--hidden":L}),N=`${c}.${d}`,R=this.state.slides[N],j=R?.hasFeedback?h?.responses?.[R?.response]?.alt:h?.alt,O=s(j);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{...S,"data-l10n-id":(0,Pt.pP)(j),children:[(0,n.jsx)("div",{"aria-live":"polite",className:"visually-hidden-always",id:x,children:O}),(0,n.jsx)("div",{className:"scenario-block__spinner"}),(0,n.jsx)("div",{className:"scenario-block__background-wrapper",children:Ki(r)&&r.map(this.renderBackground)}),(0,n.jsx)(An,{alt:"",onLoad:this.onInit,src:E}),(0,n.jsxs)("div",{className:"scenario-block__inner",children:[(0,n.jsx)("div",{className:I,children:f(r)&&v(r).map(this.renderPose)}),(0,n.jsx)(ys.F,{children:Ki(r)&&b(h)})]})]}),o&&h&&this.renderDetails(h)]})}renderBackground(e,s){const{activeScene:o}=this.state,{id:r}=e,a=this.props.getL10nValue(e?.background?.media)?.image,c=M()("scenario-block__background",{"scenario-block__background--active":o===s});return(0,n.jsx)(An,{alt:"",className:c,src:(0,rs.ME)(a)},r)}renderButton(e){const{labels:s}=this.props,{scenarioContinue:o,scenarioTryAgain:r}=s,{goTo:a,nextSlide:c}=e,d="action"in e?e.action:void 0,l={appear:!0,classNames:"scenario-block__dialogue__button-",nodeRef:this.buttonRef,timeout:{enter:0,exit:1e3}},u=d==="tryAgain"?(0,n.jsxs)("span",{children:[r," ",(0,n.jsx)("i",{className:"icon icon-reload"})]}):(0,n.jsx)("span",{children:o}),p={className:"scenario-block__dialogue__button",key:"button",onClick:d==="tryAgain"?Se()(this.onFocus,this.onTryAgainClick):Se()(this.onFocus,Hn()(this.onClick,[a,c]))};return(0,n.jsx)(ys.F,{children:(0,n.jsx)(ys.B1,{...l,children:(0,n.jsx)("button",{...p,type:"button",children:u})})})}renderDetails(e){const{items:s}=this.props,{activeScene:o,activeSlide:r}=this.state,{responses:a,type:c}=e,d=(p,f)=>(0,n.jsxs)("span",{children:[p," ",(0,n.jsx)(ZC,{})," ",f]},p),l=St()(t5(s),({scene:p,slide:f})=>`Scene ${p+1} Slide ${f+1}`),u=(p,{goTo:f,nextSlide:g})=>Rs()([[ps()("next"),Hn()(d,[p,"Next Slide"])],[ps()("end"),Hn()(d,[p,"End of Scenario"])],[hn(),Hn()(d,[p,l(g||{})])]])(f),h=c==="text"?u("Continue",e):a.map((p,f)=>u(f,p));return(0,n.jsxs)("div",{className:"scenario-block__pdf-details",children:[(0,n.jsxs)("h3",{children:["Scene ",o+1," Slide ",r+1]}),h]})}renderDialogue(e,s,o){const{description:r,id:a}=s,c="type"in s?s.type:void 0,{count:d,firstKey:l,hasFeedback:u}=e,h=o===0?a:o,p=o===1?l:o-1,f=o===0&&d===1,g=o===d,v=c==="dialogue"&&(f||g),C=this.dynamicRefs.current[`dialogue-${h}`],x=g&&this.dynamicRefs.current[`dialogue-${p}`],S=C&&C.offsetHeight,E=g&&x&&x.offsetHeight,b=u?30:0,L=window.innerWidth<480?20:30,I=L*2+60+E-b,N=L+60-b,R=Ow()(S+b-60),j=qo.createRef(),O=M()("scenario-block__dialogue",{"scenario-block__dialogue--response":wt()(c),"scenario-block__dialogue--done":o<d-1}),B=Rs()([[We()(f),We()(null)],[ps()(d),We()({top:`${I}px`})],[ps()(d-1),We()({top:`${N}px`})],[ps()(d-2),We()({top:`${R}px`})],[hn(),We()({top:`-${S+30}px`})]]),_={className:O,ref:F=>{this.dynamicRefs.current[`dialogue-${h}`]=F},style:B(o)},k={appear:!0,classNames:"scenario-block__dialogue-",nodeRef:j,key:o,timeout:{enter:400,exit:400}},te=(0,n.jsx)("div",{className:"scenario-block__dialogue__bubble","data-scenario-focus":v?"":void 0,tabIndex:v?-1:void 0,children:(0,n.jsx)(Nt,{value:r})});return(0,n.jsx)(ys.B1,{...k,children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{..._,children:Ki(r)&&te})})})}renderDialogues(e){const{activeScene:s,activeSlide:o,slides:r}=this.state,{id:a,responses:c}=e,d=`${s}.${o}`,l=r[d]||{},h=Se()(cl(),_w,mt()(l))(e),{hasFeedback:p,response:f}=l,{feedback:g}=c[f]||{},v=wt()(f)&&vu(c),C=p?h.length-1:h.length,x=(C===1&&Yt()(c)||C===2&&vu(c))&&p,S={count:C,firstKey:Ye()(null,[0,"id"],h),hasFeedback:p&&Ki(g)},E={classNames:"scenario-block__content-",key:a,nodeRef:this.blockContentRef,timeout:{enter:0,exit:1e3}},b=(0,n.jsx)("div",{className:"scenario-block__dialogues__bottom",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__bottom__inner",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__responses",children:(0,n.jsx)(ys.F,{component:"ol",role:"list",children:c.map(this.renderResponse)})})})});return(0,n.jsx)(ys.B1,{...E,children:(0,n.jsx)("div",{className:"scenario-block__dialogues scenario-block__content",children:(0,n.jsxs)("div",{className:"scenario-block__dialogues__inner",children:[(0,n.jsx)("div",{className:"scenario-block__dialogues__top",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__top__inner",children:(0,n.jsx)(ys.F,{children:h.map(this.renderDialogue.bind(this,S))})})}),v&&b,x&&this.renderButton(h[C-1])]})})})}renderEnd(){const{labels:e}=this.props,{scenarioComplete:s,scenarioStartOver:o}=e,r=Se()(this.onFocus,Hn()(this.onClick,["end",null])),a=M()(["scenario-block__text","scenario-block__text--end","scenario-block__content"]),c={classNames:"scenario-block__content-",key:"end",nodeRef:this.endRef,timeout:{enter:0,exit:400}};return(0,n.jsx)(ys.B1,{...c,children:(0,n.jsx)("div",{className:a,children:(0,n.jsxs)("div",{className:"scenario-block__text__inner","data-scenario-focus":"",tabIndex:-1,children:[(0,n.jsx)("div",{className:"scenario-block__text__title",children:(0,n.jsx)("h2",{children:s})}),(0,n.jsxs)("button",{className:"scenario-block__text__end",onClick:r,type:"button",children:[(0,n.jsx)("span",{children:o}),(0,n.jsx)("i",{className:"icon icon-reload"})]})]})},"end")})}renderPose(e,s){const{pose:o}=this.getCharacterPose(),{filters:r,id:a}=e,c=a5(e),d=kn()(Ue()("name","style")),l=d(Ue()("value","left_aligned")),u=d(Ue()("value","right_aligned")),h=M()("scenario-block__character__inner",{"scenario-block__character__inner--active":o===c,"scenario-block__character__inner--right":qe()(u,r),"scenario-block__character__inner--left":qe()(l,r)});return(0,n.jsx)("div",{className:h,"data-pose-id":a,children:(0,n.jsx)(An,{alt:"",src:c})},`pose-${s}-${a}`)}renderResponse({description:e},s){const{isPDF:o}=this.props,r=o?$w:Se()(this.onFocus,Hn()(this.onResponseClick,[s])),a=M()(["scenario-block__response",`scenario-block__response--${s}`]),c=M()("scenario-block__response-item",`scenario-block__response-item--${s}`),d={appear:!0,classNames:"scenario-block__response-item-",key:s,nodeRef:this.responseItemRef,timeout:{enter:0,exit:1e3}},l=(0,n.jsx)("button",{className:a,onClick:r,type:"button",children:(0,n.jsxs)("div",{className:"scenario-block__response__inner",children:[(0,n.jsx)("div",{className:"scenario-block__response__number",children:s+1}),(0,n.jsx)(Nt,{value:e})]})});return(0,n.jsx)(ys.B1,{...d,children:(0,n.jsx)("li",{className:c,role:"listitem",children:l})})}renderText(e){const{description:s,goTo:o,hasCharacter:r,id:a,nextSlide:c}=e,d=this.props.getL10nValue(e.title),{labels:l,settings:u}=this.props,{scenarioContinue:h,scenarioStartOver:p}=l,f=!s&&(d||"").length<22,g=M()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!r,"scenario-block__text--short":f}),v={classNames:"scenario-block__content-",key:a,nodeRef:this.textRef,timeout:{enter:0,exit:400}},C=u?.headingLevel,x=C?`h${C}`:"h2",S=(0,n.jsx)("div",{className:"scenario-block__text__title","data-l10n-id":(0,Pt.pP)(e.title),children:(0,n.jsx)(x,{children:d})}),E=(0,n.jsx)("div",{className:"scenario-block__text__description",children:(0,n.jsx)(Nt,{value:s})}),b=Se()(this.onFocus,Hn()(this.onClick,[o,c])),L=(0,n.jsx)("button",{className:"scenario-block__text__continue",onClick:b,type:"button",children:(0,n.jsx)("span",{children:h})}),I=(0,n.jsxs)("button",{className:"scenario-block__text__end",onClick:b,type:"button",children:[(0,n.jsx)("span",{children:p}),(0,n.jsx)("i",{className:"icon icon-reload"})]});return(0,n.jsx)(ys.B1,{...v,children:(0,n.jsx)("div",{className:g,children:(0,n.jsxs)("div",{className:"scenario-block__text__inner","data-scenario-focus":"",tabIndex:-1,children:[d&&S,s&&E,o==="end"?I:L]})},a)})}resetSlide(e,s){const{slides:o}=this.state,r=`${e}.${s}`,a={hasFeedback:!1,response:null};this.setState({slides:st()(r,a,o)})}resetSlides(){const{items:e}=this.props,s=r=>(a,c,d)=>st()(`${r}.${d}`,{hasFeedback:!1,response:null},a),o=(r,a,c)=>St()(Pe()("slides"),r5(s(c),{}),Rt()(r))(a);this.setState({slides:r5(o,{},e)})}setNextSlide(){const{items:e}=this.props,{activeScene:s,activeSlide:o,slides:r}=this.state,{slides:a}=e[s],{responses:c=[],type:d}=a[o]||{},l=`${s}.${o}`,u=st()("hasFeedback",!0),h=Jt()({[l]:u});d==="dialogue"&&Yt()(c)&&(this.shouldFocus=!0,this.setState({slides:h(r)}))}shouldComponentUpdate(e,s){return e.items!==this.props.items||e.settings!==this.props.settings||s.activeScene!==this.state.activeScene||s.activeSlide!==this.state.activeSlide||s.initiated!==this.state.initiated||s.resizes!==this.state.resizes||s.slides!==this.state.slides||e.labels!==this.props.labels}}const Kw=t=>{const e=(0,It.gY)();return(0,n.jsx)(Gw,{...t,getL10nValue:e})};function $w(){}var Qw=i(59288);class Zw extends Qw.Component{render(){const{animateBlockEntrance:e,isLearner:s,previewType:o}=this.props,r=!wt()(o),d={animateBlockEntrance:r,animateIn:e?"fadeIn":"none",duration:r&&e?1:0,initiallyVisible:!e,isLearner:s,offset:300};return(0,n.jsx)(qt,{className:"block-scenario",children:(0,n.jsx)(zt,{...d,children:(0,n.jsx)(Kw,{...this.props})})})}}var Yw=i(92824),Cu=i.n(Yw);function Xw(t){t&&(t.addEventListener("touchstart",Zr,!0),t.addEventListener("touchmove",Zr,!0),t.addEventListener("touchcancel",Zr,!0),t.addEventListener("touchend",Zr,!0))}function Jw(t){t&&(t.removeEventListener("touchstart",Zr,!0),t.removeEventListener("touchmove",Zr,!0),t.removeEventListener("touchcancel",Zr,!0),t.removeEventListener("touchend",Zr,!0))}function Zr(t){t?.stopPropagation?.()}var qw=i(59288);const $i=J("playing-card");class eB extends qw.Component{titleRef;card;onDragStartRef;onDragMoveRef;onDragEndRef;checkTitleSizeDebounced;resetTimeout;constructor(e){super(e),this.state={isMoving:!1,failed:!1,position:{x:0,y:0},reset:!0,isTooTall:!1,lastHighestOverflowScreenSize:0},this.titleRef=(0,m.createRef)()}componentDidMount(){setTimeout(()=>{this.setState({reset:!1})},300),Xw(this.card),Zo(this.card).draggable({inertia:!0,autoScroll:!1,modifiers:[Zo.modifiers.snap({targets:[(e,s)=>({x:e,y:s})],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]})]}).on("dragstart",this.onDragStartRef=this.onStartSortAttempt.bind(this)).on("dragmove",this.onDragMoveRef=this.onDragMove.bind(this)).on("dragend",this.onDragEndRef=this.onEndSortAttempt.bind(this)),this.checkTitleSize(),this.checkTitleSizeDebounced=au()(this.checkTitleSize,250),window.addEventListener("resize",this.checkTitleSizeDebounced.bind(this))}checkTitleSize(){const{titleRef:e,state:{lastHighestOverflowScreenSize:s}}=this,{innerWidth:o}=window,r=e.current&&e.current?.scrollHeight>e.current?.clientHeight,a=o<s;r&&o>s&&this.setState({lastHighestOverflowScreenSize:o}),this.setState({isTooTall:r||a})}componentWillUnmount(){clearTimeout(this.resetTimeout),Jw(this.card),Zo(this.card).off("dragstart",this.onDragStartRef).off("dragmove",this.onDragMoveRef).off("dragend",this.onDragEndRef),window.removeEventListener("resize",this.checkTitleSizeDebounced)}componentDidUpdate(e,s){s.isMoving&&!this.state.isMoving&&(this.setState({failed:!0}),this.resetTimeout=setTimeout(()=>{this.setState({position:{x:0,y:0},failed:!1}),delete this.resetTimeout},300)),e.id!==this.props.id&&this.checkTitleSize()}cardStyle(){const{position:{x:e,y:s}}=this.state,o=`translate3d(${e}px, ${s}px, 0)`;return{WebkitTransform:o,transform:o}}render(){const{isMoving:e,isTooTall:s,failed:o,reset:r}=this.state,{blockSettings:a,id:c,isDeckTopCard:d,title:l}=this.props,u=a?.backgroundType===P.xj.ACCENT||a?.backgroundType===P.xj.IMAGE,{titleRef:h}=this,p=$i("title",{"is-max-length":s}),f=$i({draggable:!0,moving:e,fail:o,reset:r}),g=u?$i("content"):$i("content").mix("brand--border");return(0,n.jsx)("div",{"aria-hidden":!d,className:f,id:c.toString(),ref:v=>{this.card=v},style:this.cardStyle(),onMouseDown:v=>{v.preventDefault()},children:(0,n.jsxs)(Rn,{className:g,children:[(0,n.jsx)(Nt,{ref:h,className:p,value:l}),(0,n.jsx)("div",{className:$i("handle")}),(0,n.jsx)("div",{className:$i("status"),children:(0,n.jsx)("i",{className:"icon icon-check"})})]})},`card-${c}`)}onStartSortAttempt(){this.setState({isMoving:!0,failed:!1})}onDragMove({dx:e,dy:s}){const{position:o}=this.state,r=o.x+e,a=o.y+s;this.setState({position:{x:r,y:a}})}onEndSortAttempt(){this.setState({isMoving:!1})}}const i5=yd("blockSettings")(eB),xu=J("restart-button"),Vh=({allowTabNavigation:t=!0,onClick:e,onFocus:s=Ft.lQ,text:o})=>{const r=xu({}).mix("button");return(0,n.jsx)("button",{"aria-hidden":!t,className:r,onClick:e,onFocus:s,tabIndex:Fr(t),type:"button",children:(0,n.jsxs)("div",{className:xu("content"),children:[(0,n.jsx)("span",{className:xu("text").mix("brand--ui"),children:o}),(0,n.jsx)("i",{"aria-hidden":"true",className:xu("icon").mix("icon").mix("icon-reload")})]})})};var tB=i(59288);const sB=t=>M()("deck",{"deck--complete":Ue()("percentViewed",100,t)}),nB=({progress:t,count:e})=>`${tt()(0,"correctlyAnswered",t)}/${e}`,oB=({item:t,progress:e})=>String(e.lastIncorrectCardId)===String(t.id),rB=Ue()("percentViewed",100);class aB extends tB.Component{static defaultProps={onReplay:Function.prototype};cardRefs;constructor(e){super(e),this.cardRefs=[]}startKeyDrop(){const e=As()(this.cardRefs);e&&e.onStartSortAttempt()}endKeyDrop(){const e=As()(this.cardRefs);e&&e.onEndSortAttempt()}render(){const{count:e,items:s,labels:o,id:r,progress:a,onReplay:c}=this.props,d=rB(a);return(0,n.jsxs)("div",{className:sB(a),children:[(0,n.jsx)("div",{className:"deck__spacer"}),(0,n.jsxs)("div",{"aria-hidden":!d,className:"deck__cardholder",children:[(0,n.jsxs)("div",{className:"deck__title brand--ui",children:[nB({progress:a,count:e})," ",o.sortingCardsCorrect]}),(0,n.jsx)(Vh,{allowTabNavigation:d,onClick:Hn()(c,[r]),text:o.sortingReplay})]}),(0,n.jsx)("div",{className:"deck__content",children:s.map((l,u)=>(0,n.jsx)(i5,{id:l.id,isDeckTopCard:this.cardRefs[u]===As()(this.cardRefs),isIncorrect:oB({item:l,progress:a}),ref:h=>{this.cardRefs[u]=h},title:l.title},l.id))})]})}}var iB=i(59288);class cB extends iB.Component{static get defaultProps(){return{onCardDrop:Function.prototype}}titleRef;pileContent;pile;checkTitleSizeDebounced;successTimer;focusOutlineTimer;constructor(e){super(e),this.state={isSuccess:!1,showFocusOutline:!0,isTooTall:!1,lastHighestOverflowScreenSize:0},this.handleDragEnter=this.handleDragEnter.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleMouseDrop=this.handleMouseDrop.bind(this),this.handleKeyboardDrop=this.handleKeyboardDrop.bind(this),this.titleRef=(0,m.createRef)()}focus(){this.pileContent.focus()}componentDidMount(){Zo(this.pile).dropzone({overlap:"pointer"}).on("dragenter",this.handleDragEnter).on("dragleave",this.handleDragLeave).on("drop",this.handleMouseDrop),this.checkTitleSize(),this.checkTitleSizeDebounced=au()(this.checkTitleSize,250),window.addEventListener("resize",this.checkTitleSizeDebounced.bind(this))}componentWillUnmount(){Zo(this.pile).off("dragenter",this.handleDragEnter).off("dragleave",this.handleDragLeave).off("drop",this.handleMouseDrop),clearTimeout(this.successTimer),clearTimeout(this.focusOutlineTimer),window.removeEventListener("resize",this.checkTitleSizeDebounced)}onKeyDown(e){const{onNavigateToNext:s,onNavigateToPrevious:o}=this.props,r=$0(this.handleKeyboardDrop),a=$0(o),c=$0(s);Rs()([[Hr,r],[_r,a],[Ur,c]])(e)}onKeyUp(e){Hr(e)&&this.props.onKeyDropEnd()}handleDragEnter(e){const s=Zo.getElementRect(e.target),o={x:s.left+s.width/2,y:s.top+s.height/2};e.draggable.draggable({snap:{targets:[o]}})}handleDragLeave(e){e.draggable.draggable({snap:{targets:[(s,o)=>({x:s,y:o})]}})}handleMouseDrop(e){e.draggable.draggable({snap:{targets:[(s,o)=>({x:s,y:o})]}}),this.handleDrop()}handleKeyboardDrop(){const{deckTopCard:e,onKeyDropStart:s}=this.props;e&&(s(),this.handleDrop())}handleDrop(){const{lessonId:e,id:s,deckTopCard:o,onCardDrop:r}=this.props,a=o.id.toString(),c=o.pileId===s;r({id:e,itemId:a,isCorrect:c}),c&&(this.setState({activeCard:o,isSuccess:!0,showFocusOutline:!1}),this.successTimer=setTimeout(function(){this.setState({activeCard:null,isSuccess:!1})}.bind(this),1500),this.focusOutlineTimer=setTimeout(function(){this.setState({showFocusOutline:!0})}.bind(this),1300))}checkTitleSize(){const{titleRef:e,state:{lastHighestOverflowScreenSize:s}}=this,{innerWidth:o}=window,r=e&&e.current?.scrollHeight>e.current?.offsetParent?.clientHeight,a=o<s;r&&o>s&&this.setState({lastHighestOverflowScreenSize:o}),this.setState({isTooTall:r||a})}render(){const{title:e}=this.props,{activeCard:s,isSuccess:o,isTooTall:r,showFocusOutline:a}=this.state,{titleRef:c}=this,d=M()("pile",{"drop-success":o}),l=M()("pile__content",{"drop-animating":!a}),u=M()("pile__title",{"pile__title--is-max-length":r});return(0,n.jsx)("div",{className:d,ref:h=>{this.pile=h},children:(0,n.jsx)("div",{className:"pile__wrapwrap",children:(0,n.jsxs)(Rn,{className:"pile__wrap",overrideBackground:!0,children:[(0,n.jsx)("div",{className:"pile__message",children:(0,n.jsx)(Nt,{ref:c,className:u,value:e})}),(0,n.jsx)("div",{className:l,onKeyDown:this.onKeyDown.bind(this),onKeyUp:this.onKeyUp.bind(this),ref:h=>{this.pileContent=h},tabIndex:el,children:s&&(0,n.jsx)(i5,{id:s.id,title:s.title})}),(0,n.jsx)("div",{className:"pile__background"})]})})})}}const lB=cB;var dB=i(59288);const uB=t=>e=>gs()(Ye()(!1,["items",e.id,"isViewed"],t)),hB=({items:t,progress:e})=>Qt()(uB(e),t);class c5 extends dB.Component{pileRefs;deck;constructor(e){super(e),this.state={items:Cu()(e.items)},this.pileRefs=[],this.handleReviewNav=this.handleReviewNav.bind(this)}componentDidMount(){window.addEventListener(ms,this.handleReviewNav)}componentWillUnmount(){window.removeEventListener(ms,this.handleReviewNav)}handleReviewNav(e){const{id:s}=this.props,{blockId:o,cardId:r}=Pc(e.detail.path,["block","card"]);s!==o||!r||this.setState({items:[this.state.items.find(a=>a.id===r),...this.state.items.filter(a=>a.id!==r)]})}UNSAFE_componentWillReceiveProps(e){const s=Pe()("retryAttempts",this.props.progress),o=Pe()("retryAttempts",e.progress);if(s!==o)this.setState({items:Cu()(e.items)});else{const r=e.items.filter(d=>!this.state.items.find(Ue()("id",d.id))),c=this.state.items.filter(d=>e.items.find(Ue()("id",d.id))).map(d=>{const l=e.items.find(u=>u.id===d.id);return{...d,...l}}).concat(r);this.setState({items:c})}}render(){const{items:e}=this.state,{id:s,labels:o,progress:r,onCardDrop:a,onReplay:c,piles:d}=this.props,{sortingLandmark:l}=o,u=hB({items:e,progress:r});return(0,n.jsxs)("div",{"aria-label":l,className:M()("sorting"),role:"group",children:[(0,n.jsx)("div",{className:"sorting__row",children:(0,n.jsx)(aB,{count:e.length,id:s,items:u,labels:o,onReplay:c,progress:r,ref:h=>{this.deck=h}})}),(0,n.jsx)("div",{className:"sorting__row",children:d.map((h,p)=>(0,n.jsx)(lB,{deckTopCard:u&&u[0],id:h.id,lessonId:s,onCardDrop:a,onNavigateToNext:()=>NS({list:this.pileRefs,currentIndex:p}),onNavigateToPrevious:()=>jS({list:this.pileRefs,currentIndex:p}),ref:f=>{this.pileRefs[p]=f},title:h.title,onKeyDropStart:()=>{this.deck.startKeyDrop()},onKeyDropEnd:()=>{this.deck.endKeyDrop()}},h.id))})]})}}const mB=({blockId:t,lessonId:e})=>({itemId:s,isCorrect:o})=>(0,X.JD)((0,pr.i$)({itemId:s,lessonId:e,blockId:t,isCorrect:o})),pB=({blockId:t,lessonId:e})=>()=>(0,X.JD)((0,pr.V9)({lessonId:e,blockId:t})),fB=t=>{const{animateBlockEntrance:e,blockId:s,items:o,labels:r,piles:a,progress:c}=t,d=t.onCardDrop||mB,l=t.onReplay||pB;return(0,n.jsx)(qt,{type:"sorting-activity",children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:!0,children:(0,n.jsx)(c5,{id:s,items:o,labels:r,onCardDrop:d(t),onReplay:l(t),piles:a,progress:Ye()({},["items",s],c)})})})};var l5=i(28079);class gB extends m.Component{static defaultProps={scope:"error-boundary"};constructor(e){super(e),this.state={hasError:!1,prevScope:e.scope}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}static getDerivedStateFromProps(e,s){return s.prevScope!==e.scope?{hasError:!1,error:void 0,prevScope:e.scope}:s}componentDidCatch(e){l5.L.addError(e,{scope:this.props.scope},"source")}render(){const{hasError:e,error:s}=this.state,{FallbackComponent:o}=this.props;return e||s?(0,n.jsx)(o,{}):this.props.children}}const vB=gB,CB=(0,m.lazy)(()=>i.e("webpack_container_remote_mondrian_learn-react").then(i.t.bind(i,4246,23)));function xB(t){const e={};return t.backgroundType==="IMAGE"&&(e["--color-background"]="var(--arc-color-neutral-200, #e6e6e6)"),e.maxWidth=(t.contentWidth??9999)+"rem",e.minWidth="0",e.margin="0 auto",e}function EB({blockumentId:t,manifest:e}){let s=920,o=600;try{const r=e.blockuments?.[t];if(r){const a=e.items?.[r.children[0]?.id];if(a){const c=a.states[a.initialState];if(c){const d=c.width.value,l=c.height.value;typeof d=="number"&&typeof l=="number"&&(s=d,o=l)}}}}catch{}return(0,n.jsx)("svg",{width:s,height:o,className:"block-mondrian__fallback","aria-hidden":"true"})}function TB({blockumentId:t,animateBlockEntrance:e=!0,isLearner:s=!1,offset:o,settings:r}){const a=yB(),c=(0,Me.SQ)();return(0,n.jsx)(qt,{children:(0,n.jsx)(vB,{FallbackComponent:bB,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:s,offset:o,children:(0,n.jsx)("div",{style:xB(r),children:(0,n.jsx)(m.Suspense,{fallback:(0,n.jsx)(EB,{blockumentId:t,manifest:a}),children:(0,n.jsx)(CB,{blockumentId:t,manifest:a,searchTerm:c.term})})})})})})}const SB=(0,m.memo)(TB,LB);function LB(t,e){return t.blockumentId===e.blockumentId&&t.settings.backgroundType===e.settings.backgroundType&&t.settings.contentWidth===e.settings.contentWidth}function bB(){return null}function yB(){return(0,Me.DX)().mondrian}var d5=i(67750),Vs=i(59288);const IB=J("block-html"),Wh=new Map;window.addEventListener("message",t=>{if(t.origin!==window.origin)return;const e=Wh.get(t.source);e!=null&&u5(t,e)});function u5(t,e){const s=h5(d5.parse(t.data));for(const o of s)switch(o.type){case"notification":e[o.method]?.(o.params);break;default:throw new Error(`Unsupported RPC type "${o.type}"`)}}function*h5(t){if(Array.isArray(t))for(const e of t)yield*h5(e);else yield t}function m5(t,e,s){return Vs.useEffect(()=>{if(t!=null)return Wh.set(t.contentWindow,e),()=>void Wh.delete(t.contentWindow)},[t,e]),Vs.useCallback(r=>{t?.contentWindow.postMessage(r,s)},[t,s])}const Gde=(t,e,s)=>m5(t,s,window.origin),NB=(t,e,s)=>m5(t,s,"*"),jB=(t,e,s)=>{const[o,r]=Vs.useState(()=>new BroadcastChannel(e));return Vs.useEffect(()=>()=>o.close(),[o]),Vs.useEffect(()=>{o.name!==e&&r(new BroadcastChannel(e))},[o,e]),Vs.useEffect(()=>{const c=new AbortController;return o.addEventListener("message",d=>u5(d,s),{signal:c.signal}),()=>c.abort()},[o,s]),Vs.useCallback(c=>{o.postMessage(c)},[o])},AB=nn.isLocalFilesystem?NB:jB;function RB(t){return typeof t=="number"?`${t/10}rem`:"-1px"}const OB={0:"small",1:"medium",2:"full"};function PB(t){const[e]=t.items,s=e.srcdoc,o=e.media?.sandbox?.src==null?void 0:`${e.media.sandbox.src}/index.html`,r=t.settings?.autoResize===!0,a=t.settings?.width??"0",[c,d]=Vs.useState("-1px");Vs.useEffect(()=>{r||d(RB(t.settings?.height))},[r,t.settings?.height]);const[l,u]=Vs.useState(null),[h,p]=Vs.useState(!1),[f,g]=Vs.useState(!1),[v]=Vs.useState(()=>`rise-frontend-sandbox-${window.crypto.randomUUID()}`),C=`lib/sandbox/sandbox.html#channel=${encodeURIComponent(v)}`,x=Vs.useCallback(({message:R})=>{console.error("Sandbox Error",R)},[]),S=Vs.useCallback(()=>{p(!0)},[]),E=Vs.useCallback(()=>{g(h)},[h]),b=Vs.useCallback(({height:R})=>{r&&d(`${R}px`)},[r]),L=Vs.useMemo(()=>({onerror:x,onload:E,onready:S,onresize:b}),[x,S,E,b]),I=AB(l,v,L),N=Vs.useCallback((R,j)=>{if(l==null&&!h)throw new Error("Attempted to send message to sandbox before it is ready");const O=d5.format.notification(R,j);I(O)},[h,l,I]);return Vs.useEffect(()=>{h&&N("onupdate",{autoResize:r,src:o,srcDoc:s})},[r,h,N,o,s]),(0,n.jsx)(qt,{children:(0,n.jsx)("iframe",{className:IB({"auto-resize":r,loaded:f,width:OB[a]}),ref:u,scrolling:r?"no":void 0,sandbox:"allow-popups allow-same-origin allow-scripts",src:C,style:{"--block-html-height":c}},v)})}const Yr=J("timeline-card"),MB=t=>{const{blockId:e,disableZoom:s,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:c,lessonId:d,lessonNumber:l,mediaType:u,audioPosition:h}=t,{settings:p}=a,f=(0,It.QQ)(a.media)??{},g=Ea("rise-audio-release"),v=u==="audio"&&f.audio,C=u==="embed"&&f.embed,x=u==="image"&&f.image,S=u==="video"&&f.video;if(!v&&!C&&!x&&!S&&!(u==="image-with-audio"&&r))return;const b=f.embed?ll(f.embed):void 0,L=!!f.image,I=!!f.audio,N=L?f.image.align:"center",R=Yr("media",{audio:I&&!r,"audio-and-embed":!!(f.audio&&f.embed),"image-with-audio":r,[`image-with-audio-${N}`]:r&&!!N,"audio-on-bottom":I&&!r&&h==="bottom",linkEmbed:b==="link",videoEmbed:b==="video",visual:!r&&L||!wt()(f.video)}),j=p||{};return(0,n.jsx)("div",{className:R,children:(0,n.jsx)(En,{blockId:e,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:g&&r,item:a,labels:c,lessonId:d,opts:{disableZoom:s,...j},media:f,pauseOnLoad:!0,lessonNumber:l,renderMediaType:r?void 0:u})})},p5=t=>{const{headingLevel:e,innerRef:s,item:o,isActive:r,loadMedia:a,audioPosition:c,onFocus:d}=t,{id:l}=o,u=Yr({active:r}),h=!!o.date,p=!!o.title,f=e||2,g=`h${f}`,v=`h${f+1}`,C=Ea("rise-audio-release"),x=(0,It.QQ)(o.media)??{},S=wi(x,c,C,!0,"timeline"),E=()=>{if(!x||!a)return null;const b={audio:{item:{...o,media:S.audioOnlyMedia||x},mediaType:"audio"},image:{item:{...o,media:S.imageOnlyMedia||x},mediaType:"image"},video:{item:{...o,media:S.videoOnlyMedia||x},mediaType:"video"},embed:{item:{...o,media:S.embedOnlyMedia||x},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,n.jsx)(n.Fragment,{children:S.renderOrder.map((L,I)=>{if(L==="text")return(0,n.jsx)(Nt,{className:Yr("description"),value:o.description},`text-${I}`);const N=b[L];return N?(0,m.createElement)(MB,{...t,...N,key:`${L}-${I}`}):null})})};return(0,n.jsx)("div",{className:u,"data-id":l,ref:s,children:(0,n.jsx)(Rn,{className:Yr("body"),onFocus:d,children:(0,n.jsx)("div",{className:Yr("main-wrap"),children:(0,n.jsxs)("div",{className:Yr("main"),children:[h&&(0,n.jsx)("div",{className:Yr("date"),children:(0,n.jsx)(g,{children:(0,n.jsx)(wn,{value:o.date})})}),p&&(0,n.jsx)("div",{className:Yr("title"),children:(0,n.jsx)(v,{children:(0,n.jsx)(wn,{value:o.title})})}),E()]})})})})};var Eu=i(7664);const Qi=(0,y.shape)({a11yAnswerLive:y.string,a11yAuthorPrefix:y.string,a11yBlockChartBar:y.string,a11yBlockChartLine:y.string,a11yBlockChartPie:y.string,a11yBlockCode:y.string,a11yBlockEmbed:y.string,a11yBlockFlashcardBack:y.string,a11yBlockFlashcardFront:y.string,a11yBlockFlashcardGrid:y.string,a11yBlockFlashcardStack:y.string,a11yBlockFlashcardStackRoleDescription:y.string,a11yBlockFlashcardStackSlideControls:y.string,a11yBlockFlashcardStackSlideControlsGoToNext:y.string,a11yBlockFlashcardStackSlideControlsGoToPrevious:y.string,a11yBlockFlashcardStackSlideControlsGoToSlide:y.string,a11yBlockFlashcardStackSlidePreposition:y.string,a11yBlockFlashcardStackSlideRoleDescription:y.string,a11yBlockKnowledgeCheck:y.string,a11yBlockKnowledgeCheckFIB:y.string,a11yBlockKnowledgeCheckM:y.string,a11yBlockKnowledgeCheckMC:y.string,a11yBlockKnowledgeCheckMR:y.string,a11yBlockProcessCarousel:y.string,a11yBlockProcessRoleDescription:y.string,a11yBlockProcessSlideControls:y.string,a11yBlockProcessSlideControlsGoToNext:y.string,a11yBlockProcessSlideControlsGoToPrevious:y.string,a11yBlockProcessSlideControlsGoToSlide:y.string,a11yBlockProcessSlideControlsIntroduction:y.string,a11yBlockProcessSlideControlsSummary:y.string,a11yBlockProcessSlidePreposition:y.string,a11yBlockProcessSlideRoleDescription:y.string,a11yBlockQuoteCarousel:y.string,a11yBlockQuoteCarouselRoleDescription:y.string,a11yBlockQuoteCarouselSlideControls:y.string,a11yBlockQuoteCarouselSlideControlsGoToNext:y.string,a11yBlockQuoteCarouselSlideControlsGoToPrevious:y.string,a11yBlockQuoteCarouselSlideControlsGoToSlide:y.string,a11yBlockQuoteCarouselSlidePreposition:y.string,a11yBlockQuoteCarouselSlideRoleDescription:y.string,a11yBlockStoryline:y.string,a11yBlockTimeline:y.string,a11yCarouselNext:y.string,a11yCarouselPrevious:y.string,a11yCertificateDownloadFailed:y.string,a11yCorrectLive:y.string,a11yCoverCourseCompleted:y.string,a11yCoverCourseLength:y.string,a11yCoverRequirementComplete:y.string,a11yCoverRequirementFailed:y.string,a11yCoverRequirementIncomplete:y.string,a11yExcelIcon:y.string,a11yFileIcon:y.string,a11yGroupAudioPlayer:y.string,a11yGroupScenario:y.string,a11yGroupVideoPlayer:y.string,a11yLabeledGraphicBlock:y.string,a11yLabeledGraphicButtonMarker:y.string,a11yLabeledGraphicIconPlus:y.string,a11yLabeledGraphicIconDot:y.string,a11yLabeledGraphicIconInformation:y.string,a11yLabeledGraphicIconQuestion:y.string,a11yLabeledGraphicIconCheck:y.string,a11yLabeledGraphicIconX:y.string,a11yLabeledGraphicIconHeart:y.string,a11yLabeledGraphicIconPin:y.string,a11yLabeledGraphicIconArrowLeft:y.string,a11yLabeledGraphicIconArrowRight:y.string,a11yLabeledGraphicIconArrowUp:y.string,a11yLabeledGraphicIconArrowDown:y.string,a11yLabeledGraphicIconArrowUpLeft:y.string,a11yLabeledGraphicIconArrowUpRight:y.string,a11yLabeledGraphicIconArrowDownLeft:y.string,a11yLabeledGraphicIconArrowDownRight:y.string,a11yLabeledGraphicUnviewed:y.string,a11yLabeledGraphicViewed:y.string,a11yMatchingItemMatchedWith:y.string,a11yMatchingItemMatchWith:y.string,a11yMatchingItemSelectableItem:y.string,a11yMediaPause:y.string,a11yMediaPlay:y.string,a11yMediaSeek:y.string,a11yNavigationMenuClose:y.string,a11yNavigationMenuOpen:y.string,a11yPDFIcon:y.string,a11yPPTIcon:y.string,a11yQuizFailed:y.string,a11yQuizFeedback:y.string,a11yQuizPassed:y.string,a11yQuizReviewCorrectlyChecked:y.string,a11yQuizReviewCorrectlySelected:y.string,a11yQuizReviewCorrectlyUnchecked:y.string,a11yQuizReviewCorrectlyUnselected:y.string,a11yQuizReviewIncorrectlyChecked:y.string,a11yQuizReviewIncorrectlySelected:y.string,a11yQuizReviewIncorrectlyUnchecked:y.string,a11yQuizReviewIncorrectlyUnselected:y.string,a11yRegionMainLesson:y.string,a11yRegionMainOverview:y.string,a11yRegionNavLesson:y.string,a11yRegionNavOverview:y.string,a11yRestrictedNav:y.string,a11yRTFIcon:y.string,a11ySearchClose:y.string,a11ySearchInput:y.string,a11ySearchOpen:y.string,a11yStatusAdditionalContent:y.string,a11yStatusContinued:y.string,a11yUnzoomImage:y.string,a11yWordIcon:y.string,a11yZipIcon:y.string,a11yZoomImage:y.string,courseStart:y.string,courseResume:y.string,courseExit:y.string,courseHome:y.string,courseSkipToLesson:y.string,lessonName:y.string,lessonPreposition:y.string,lessonComplete:y.string,lessonRestricted:y.string,quizStart:y.string,quizQuestion:y.string,quizSubmit:y.string,quizRequireAnswer:y.string,quizNext:y.string,quizIncorrect:y.string,quizCorrect:y.string,quizResults:y.string,quizScore:y.string,quizPassing:y.string,quizTakeAgain:y.string,quizTimerElapsed:y.string,quizTimerExpired:y.string,quizTimerExpiredAction:y.string,quizTimerExpiredMessage:y.string,quizTimerHide:y.string,quizTimerLimit:y.string,quizTimerMinute:y.string,quizTimerMinutePlural:y.string,quizTimerRemaining:y.string,quizTimerShow:y.string,quizAcceptableResponses:y.string,quizAnswerPlaceholder:y.string,quizRequirePassingScore:y.string,quizContinue:y.string,processStepName:y.string,processStepPreposition:y.string,processNextStep:y.string,processLessonName:y.string,processComplete:y.string,processStart:y.string,processStartAgain:y.string,processSwipe:y.string,sortingCardsCorrect:y.string,sortingReplay:y.string,embedViewOn:y.string,embedReadMore:y.string,blocksClickToFlip:y.string,blocksPreposition:y.string,salutation:y.string,exitMessage:y.string,overviewPageTitleSuffix:y.string,labeledGraphicMarkerLabel:y.string,seekSliderLabel:y.string,playButtonLabel:y.string,pauseButtonLabel:y.string,embedPlayerGroup:y.string,embedLinkGroup:y.string,numberedDividerGroup:y.string,processLandmark:y.string,sortingLandmark:y.string,search:y.string,result:y.string,results:y.string,noResults:y.string,scenarioTryAgain:y.string,scenarioContinue:y.string,scenarioComplete:y.string,scenarioStartOver:y.string,progressPieUnstarted:y.string,progressPieCompleted:y.string,progressPieClickToComplete:y.string,progressPieClickToReset:y.string,progressPieQuizFailed:y.string,certificateDownload:y.string,certificateDownloadInProgress:y.string,certificateRetryDownload:y.string,coverCompleteAllLessons:y.string,coverCompleteLessonsName:y.string,coverCompleteLessonsPreposition:y.string,coverCompleteLessonsInCourse:y.string,coverCompleted:y.string,coverCourseRequirements:y.string,coverHour:y.string,coverHours:y.string,coverLesson:y.string,coverLessons:y.string,coverMinute:y.string,coverMinutes:y.string,coverNoAttemptsRemaining:y.string,coverPublished:y.string,coverQuizScoreOf:y.string,coverQuizPercentOrHigher:y.string,progressSummary:y.string,progressSummaryBackToLearning:y.string,progressSummaryCompleted:y.string,progressSummaryCongratulations:y.string,progressSummaryNextUp:y.string,progressSummaryNoTitle:y.string,progressSummaryPercentComplete:y.string,progressSummaryRequirementsMet:y.string,progressSummaryStartOver:y.string,curtainLoading:y.string,curtainOffline:y.string,curtainOfflineReconnecting:y.string,curtainSessionTimedOut:y.string,curtainSessionTimedOutRestart:y.string,curtainSessionTimedOutRefresh:y.string,curtainSomethingWrong:y.string,curtainSomethingWrongTryAgain:y.string,curtainSomethingWrongRefresh:y.string});var DB=i(59288);class kB extends DB.Component{static get defaultProps(){return{onEnter:Function.prototype,onLeave:Function.prototype,progress:{}}}static propTypes={blockId:A().oneOfType([A().string,A().number]),enableVideoPlaybackSpeed:A().bool,id:A().any.isRequired,items:A().array.isRequired,labels:Qi.isRequired,lessonId:A().oneOfType([A().string,A().number]),onEnter:A().func.isRequired,onLeave:A().func.isRequired,progress:A().object.isRequired};onEnterMarker(e,s,{previousPosition:o}){const{id:r,onEnter:a}=this.props;o===Eu.A.below&&a({id:r,payload:{activeIndex:e,itemId:s}})}onMarkerLeave(e,{currentPosition:s,previousPosition:o}){const{id:r,items:a,onLeave:c}=this.props,d=e-1;if(s===Eu.A.below&&o===Eu.A.inside&&d>-1){const l=i3()(d,a);l&&c({id:r,payload:{activeIndex:d,itemId:l.id}})}}onFocus(e,s){const{id:o,onEnter:r}=this.props;r({id:o,payload:{activeIndex:e,itemId:s}})}isActive(e){const{progress:s}=this.props;return ps()(Pe()("activeIndex",s),e)}render(){const{blockId:e,enableVideoPlaybackSpeed:s,id:o,index:r,item:a,labels:c,lessonId:d}=this.props,l=this.onFocus.bind(this,r,a.id);return(0,n.jsx)(Eu.A,{bottomOffset:"60%",onEnter:this.onEnterMarker.bind(this,r,a.id),onLeave:this.onMarkerLeave.bind(this,r),topOffset:"30%",children:(0,n.jsx)(p5,{blockId:e,enableVideoPlaybackSpeed:s,headingLevel:a.settings?.headingLevel,isActive:this.isActive(r),item:a,labels:c,lessonId:d,loadMedia:!0,onFocus:l,lessonNumber:o})})}}const Tl=J("timeline"),wB=t=>{const{audioPosition:e,disableZoom:s,enableVideoPlaybackSpeed:o,headingLevel:r,id:a,isBlock:c,isLearner:d,item:l,labels:u,lessonId:h,onFocus:p}=t,f=(0,n.jsx)(p5,{blockId:a,disableZoom:s,enableVideoPlaybackSpeed:o,headingLevel:r,isActive:!0,item:l,labels:u,lessonId:h,loadMedia:!0,onFocus:p,lessonNumber:a,audioPosition:e});return c&&d?(0,n.jsx)(zt,{animateBlockEntrance:!0,animateIn:"fadeIn",className:Tl("animate").toString(),isLearner:!0,children:f}):c&&!d?f:(0,n.jsx)(kB,{...t})},f5=t=>{const{id:e,items:s,labels:o,onEnter:r=Function.prototype,settings:a={}}=t,c=(0,m.useRef)(null),d=(0,m.useCallback)((l,u)=>{r({id:e,payload:{activeIndex:l,itemId:u}})},[e,r]);return(0,m.useEffect)(()=>{function l(u){const{blockId:h,cardId:p}=Pc(u.detail.path,["block","card"]);if(h!==e)return;const f=c.current.querySelector(`[data-id="${p}"]`);f&&!u1(f,"center")&&f.scrollIntoView({behavior:"instant",block:"center"})}return window.addEventListener(ms,l),()=>{window.removeEventListener(ms,l)}}),(0,n.jsx)("div",{"aria-label":o?.a11yBlockTimeline,className:"page__content-container",role:"group",ref:c,children:(0,n.jsx)("div",{className:Tl("wrapper"),children:(0,n.jsx)("div",{className:Tl(),children:(0,n.jsx)("ul",{className:Tl("container"),role:"list",children:s.map((l,u)=>(0,n.jsx)("li",{className:Tl("card-wrapper"),role:"listitem",children:wB({index:u,item:l,onFocus:d,...t,disableZoom:!a.zoomOnClick,headingLevel:a.headingLevel,audioPosition:a.audioPosition})},u))})})})})},BB=t=>{const{animateBlockEntrance:e,blockId:s,enableVideoPlaybackSpeed:o,isLearner:r=!0,items:a,labels:c,lessonId:d,settings:l}=t;return(0,n.jsx)(qt,{type:"timeline",children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:!0,children:(0,n.jsx)(f5,{enableVideoPlaybackSpeed:o,id:s,isBlock:!0,isLearner:r,items:a,labels:c,lessonId:d,settings:l})})})};var g5=i(77726),_B=i(47707),v5=i.n(_B),mn=i(45129);const Gh=t=>t.displayName||t.name||"Component";var UB=i(41895),HB=i.n(UB);const FB=(t,e)=>(0,n.jsx)("mark",{children:t},e),zB=(t,e)=>HB()(new RegExp(ZM()(e),"igm"),FB,t),VB=hr()(zB),WB=(t,e)=>e.reduce((s,o)=>s+o[t],0),Yde=Es()(WB);var GB=i(69366),KB=i.n(GB),$B=i(64011),vr=i.n($B),QB=i(70477),ZB=i.n(QB),YB=i(58800),Kh=i.n(YB),XB=i(60708),JB=i.n(XB),qB=i(85772),C5=i.n(qB);const e_=t=>t===-1,t_=t=>t>=0,s_=vr()(3,(t,e,s)=>tu()(t,s,e)),$h=vr()(3,(t,e,s)=>s[t]==e),Xde=vr()(3,(t,e,s)=>St()(Ts()($h("id",e)),Fs()(e_,We()(s),s_(t,s)))(s)),Jde=t=>filter(complement($h("id",t))),qde=vr()(3,(t,e,s)=>ZB()(e,s[t],JB()(t,1,s))),n_=hr()((t,e,s)=>Object.assign([],s,{[t]:s[e],[e]:s[t]})),o_=([t,e])=>ps()(Number(t),Number(e)),eue=J3()(o_),tue=t=>(e,[s,o])=>{const r=indexOf(Number(s),e),a=indexOf(Number(o),t);return r===a?e:n_(r,a,e)};function r_(t,e){const s=[];for(const o of e)if(s.push(o),t(o))break;return s}const sue=vr()(2,(t,e)=>Se()(Hh(),ws()(tu()(t,1)),C5())(e)),a_=vr()(2,(t,e)=>Se()(Hh(),Qt()(KB()(t)),C5())(e)),x5=vr()(2,(t,e)=>Se()(uh(),a_((s,o)=>e(o)))(t)),E5=vr()(2,(t,e)=>Qt()(Se()(Eo()(on())(e),t))),i_=b1()(Kh()(Vi(),0)),T5=Se()(Array.from,Array),S5=hr()((t,e)=>T5(e).map(()=>t)),c_=hr()((t,e,s,o)=>T5(s).map((r,a)=>a===o?e:t)),nue=vr()(3,(t,e,s)=>St()(Ts()($h(t,e)),t_)(s));function oue(t,e,s){if(e>=s.length)return s.slice(0);const o=Math.floor(e/2),r=Math.ceil(e/2),a=t-o,c=t+r;return c>s.length?s.slice(s.length-e):a>=0?s.slice(a,c):s.slice(0,e)}const Tu=(t,e)=>{const s=Math.min(t.length,e.length),o=new Array(s);for(let r=0;r<s;r++)o[r]=[t[r],e[r]];return o};var L5=i(92886);const l_=matchMedia("(forced-colors: active)");function cn(){return l_.matches}const d_=({activeIndex:t,values:e,opts:s})=>{const{background:o,variant:r}=Dn(),{backgroundType:a,chartColor:c,lineCurve:d}=rn(),l=qn(),u=(0,Me.kJ)(),h=s?.defaultFontColor,p=a===P.xj.IMAGE,g=(0,It.QQ)(o?.media)?.image?.overlayColor??P.df.DARK,v=cn();let C=c??u,x=l||"#fff";!c&&a===P.xj.ACCENT||c===x?C=h:p&&(C=g===P.df.DARK?"#fff":"#000",x=g===P.df.DARK?"#000":"#fff"),v&&(C="Highlight",x="Canvas");let S=C,E=Array(e.length).fill(C);if(t!=null&&!v){const b=p&&g===P.df.LIGHT?.2:.7,L=(0,L5.A)(C,x,b);S=L,E=c_(L,C,e.length,t)}return r==="bar"?{backgroundColor:E,data:e,hoverBackgroundColor:E}:{borderColor:S,cubicInterpolationMode:d==="linear"?"default":"monotone",data:e,lineTension:d==="linear"?0:void 0,pointBackgroundColor:E,pointBorderColor:E,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:C,pointHoverBorderColor:C,pointHoverBorderWidth:0,pointRadius:4}};function u_({activeIndex:t,children:e,opts:s,values:o}){const r=d_({activeIndex:t,opts:s,values:o});return e(r)}class h_ extends m.PureComponent{constructor(e){super(e),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this)}handleMouseEnter(){const{index:e,onEvent:s}=this.props;s(e)}handleMouseLeave(){const{onEvent:e}=this.props;e(null)}render(){const{activeIndex:e,identifier:s,index:o,label:r,value:a}=this.props,c=e!=null&&e!==o,d=M()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":c});return(0,n.jsxs)("div",{className:d,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,n.jsxs)("dt",{className:"block-chart__cartesianLegendTerm",children:[s,"."]}),(0,n.jsxs)("dd",{className:"block-chart__cartesianLegendDefn","data-l10n-id":r.l10nId,children:[r.label,(0,n.jsx)("span",{className:"block-chart__cartesianLegendDefnPipe",children:"|"}),(0,n.jsx)("span",{className:"block-chart__cartesianLegendDefnVal",children:a})]})]})}}const m_=h_,p_=({activeIndex:t,labels:e,letters:s,onEvent:o,values:r})=>{const a=Tu(s,Tu(e,r));return a.length===0?null:(0,n.jsx)("dl",{"aria-hidden":"true",className:"block-chart__cartesianLegend",children:a.map(([c,[d,l]],u)=>(0,n.jsx)(m_,{activeIndex:t,identifier:c,index:u,label:d,onEvent:o,value:l},c))})},f_=(0,m.memo)(p_);var g_=i(79418),v_=i.n(g_);function C_(t){const e=this.getLabelForValue(t),s=15,o=e.split(" "),r=[];let a="";return o.forEach(c=>{(a+c).length>s?(r.push(a),a=c):a+=(a.length>0?" ":"")+c}),r.push(a),r}const x_={animation:{},barPercentage:.5,defaultFontFamily:'"lato", sans-serif',elements:{arc:{},bar:{},line:{borderWidth:2,fill:!1}},layout:{padding:{bottom:0,left:0,right:0,top:50}},maxBarThickness:60,plugins:{datalabels:{display:!1},legend:{display:!1,labels:{}},tooltip:{animation:!0,boxPadding:"14px 10px",callbacks:{label:()=>null,title:t=>{const{label:e,formattedValue:s}=t[0];return`${e}: ${s}`}},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom"}},responsive:!1,scales:{x:{border:{display:!1},grid:{display:!1,offset:!0},offset:!0,ticks:{autoSkip:!1,callback:C_,padding:10}},y:{beginAtZero:!0,border:{display:!1},grid:{drawTicks:!1},ticks:{maxTicksLimit:8,padding:15}}}};function E_({values:t,contrastColor:e}){const{backgroundType:s}=rn(),o=Dn(),r=s===P.xj.IMAGE,a=(0,m.useMemo)(()=>i_(t),[t]);let c,d;const u=(0,It.QQ)(o?.background?.media)?.image?.overlayColor??P.df.DARK,h=r&&u===P.df.LIGHT;switch(s){case P.xj.LIGHT:case P.xj.GRAY:case P.xj.TINT:[c,d]=["#e1e1e1","#c9c9c9"];break;case P.xj.DARK:case P.xj.BLACK:case P.xj.IMAGE:[c,d]=["#ffffff80","#ffffffe9"];break;case P.xj.ACCENT:case P.xj.COLOR:{[c,d]=e==="#000"?["#00000080","#0000001a"]:["#ffffff80","#ffffffe9"];break}}return r&&h&&([c,d]=["#00000080","#0000001a"]),a||(d=c),[c,d]}const T_=({onEvent:t,reduceMotion:e,shouldAnimate:s,values:o})=>{const r=qn(),{backgroundType:a,customBackgroundColorContrast:c}=rn(),d=(0,Me.DX)(),l=(0,Me.kJ)(),u=d?.theme?.accentContrast,h=a===P.xj.IMAGE,p=Dn(),f=cn(),g=(0,ct.cP)(r)?P.Em.LIGHT:P.Em.DARK,v=!c&&p?.family==="chart",C=c??P.Em.DARK,x=v?g:C,E=(0,It.QQ)(p?.background?.media)?.image?.overlayColor??P.df.DARK,b=h&&E===P.df.LIGHT,L=a===P.xj.ACCENT||a===P.xj.COLOR,I=a===P.xj.ACCENT?l:r,N=a===P.xj.ACCENT?u:x,R=jn({backgroundColor:I,contrast:N}),[j,O]=E_({values:o,contrastColor:R}),B=(0,m.useCallback)(k=>f&&h?b?"#000000":"#FFFFFF":k.tick.value===0?O:j,[j,f,O,h,b]);return(0,m.useMemo)(()=>{let k="#000";if(f)h?k=b?"#000000":"#FFFFFF":k="FieldText";else{switch(a){case P.xj.DARK:case P.xj.BLACK:case P.xj.IMAGE:k="#fff";break}L&&(k=R),h&&b&&(k="#000")}const te=s&&!e?1e3:0;let F,K;f?h?(F=k,K=b?"#FFFFFF":"#000000"):(F="Highlight",K="HighlightText"):(F=k,K=k==="#000"||k==="#000000"||k===P.Em.DARK?"#FFFFFF":"#000000");const Z=v_()(x_);return Z.animation.duration=te,Z.defaultFontColor=k,Z.onClick=t,Z.onHover=t,Z.plugins.tooltip.animation=!e,Z.plugins.tooltip.backgroundColor=F,Z.plugins.tooltip.titleColor=K,f&&!h?(Z.scales.x.grid.color="FieldText",Z.scales.y.grid.color="FieldText"):(Z.scales.x.grid.color=j,Z.scales.y.grid.color=B),Z.scales.x.ticks.color=k,Z.scales.y.ticks.color=k,f&&(h?Z.plugins.legend.labels.color=b?"#000000":"#FFFFFF":Z.plugins.legend.labels.color="FieldText"),Z},[a,R,j,L,f,h,b,t,e,B,s])};function S_(t){const{children:e,onEvent:s,reduceMotion:o,shouldAnimate:r,values:a}=t,c=T_({onEvent:s,reduceMotion:o,shouldAnimate:r,values:a});return e(c)}const b5=({caption:t,labels:e,values:s})=>{const o=(0,m.useMemo)(()=>Tu(e,s),[e,s]);return(0,n.jsxs)("table",{className:"visually-hidden-always",children:[(0,n.jsx)("caption",{children:t}),(0,n.jsx)("tbody",{children:o.map(([r,a],c)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"row",children:r.label}),(0,n.jsx)("td",{children:a})]},`row-${c}`))})]})};var L_=i(76063),Qh=i.n(L_);const b_=/<mark>|<\/mark>/gm,y_=t=>e=>{const s=t(e?.type).replace(b_,"")??"";return{label:Qh()(s,{length:30}),l10nId:(0,Pt.pP)(e?.type)}},I_=t=>parseFloat(t.value??"0"),y5=(t,e)=>({labels:t.map(y_(e)),values:t.map(I_)}),I5=(t,e,s)=>{const o=Qh()(e,{length:t});return s?VB(o,s):o},N5=t=>{class e extends m.PureComponent{static displayName=`ChartEvents(${Gh(t)})`;constructor(o){super(o),this.state={activeIndex:null}}handleEvent=o=>{this.setState({activeIndex:o})};render(){return(0,n.jsx)(t,{...this.props,activeIndex:this.state.activeIndex,onEvent:this.handleEvent})}}return e},j5=t=>{class e extends m.PureComponent{static displayName=`ChartUpdater(${Gh(t)})`;chartRef;constructor(o){super(o),this.chartRef=(0,m.createRef)()}componentDidMount(){this.resize(),this.update()}componentDidUpdate(){this.update()}handleResize=()=>{this.resize(),this.update()};resize=()=>{this.chartRef.current?.resize()};update=()=>{this.chartRef.current?.update()};render(){return(0,n.jsx)(t,{...this.props,onResize:this.handleResize,chartRef:this.chartRef})}}return e},N_="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");mn.t1.register(mn.A6,mn.E8,mn.PP,mn.s$,mn.ZT,mn.No,mn.kc,mn.FN,mn.hE,mn.m_);class j_ extends m.PureComponent{wrapRef;resizeObserver;constructor(e){super(e),this.wrapRef=(0,m.createRef)(),this.state={labelYTop:"50%"}}componentDidMount(){this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.wrapRef.current)}componentWillUnmount(){this.resizeObserver.unobserve(this.wrapRef.current)}handleEvent=(e,s)=>{const o=s.length?s[0].index:null;this.props.onEvent(o)};handleResize=()=>{requestAnimationFrame(()=>{this.props.onResize(),this.setLabelYTop()})};setLabelYTop=()=>{const e=this.props.chartRef.current;if(e){const{bottom:s,top:o}=e?.scales?.["y-axis-0"]??{};v5()(s)&&v5()(o)&&this.setState({labelYTop:`${(s+o)/2}px`})}};render(){const{props:{activeIndex:e,chartRef:s,getL10nValue:o,isDesktop:r,isVisible:a,items:c,itemsLabel:d,labels:l,onEvent:u,search:h,shouldAnimate:p,valuesLabel:f,variant:g},state:{labelYTop:v}}=this,C=I5(80,o(d),h),x=I5(30,o(f),h),S=y5(c,o),E=r?[]:N_.slice(0,c.length),b=r?S.labels:E.map(j=>({label:j})),L=a?S.values:S5(0,c.length),I=l?.[g==="bar"?"a11yBlockChartBar":"a11yBlockChartLine"],N=b.map(j=>j.label),R=b.map(j=>j.l10nId).join(",");return(0,n.jsxs)("div",{className:"block-chart__cartesian",children:[(0,n.jsxs)("div",{"aria-hidden":"true",className:"block-chart__cartesianChart",ref:this.wrapRef,children:[(0,n.jsx)(S_,{onEvent:this.handleEvent,reduceMotion:Js(),shouldAnimate:p,values:L,children:j=>(0,n.jsx)(u_,{activeIndex:e,values:L,opts:j,children:O=>(0,n.jsx)(g5.t1,{data:{labels:N,datasets:[O]},options:j,ref:s,type:g,updateMode:"default","data-l10n-id":R})})}),x&&Ma(x)&&(0,n.jsx)("div",{"data-l10n-id":(0,Pt.pP)(f),className:"block-chart__cartesianLabelY",style:{insetInlineEnd:v},children:x})]}),C&&Ma(C)&&(0,n.jsx)("div",{"data-l10n-id":(0,Pt.pP)(d),"aria-hidden":"true",className:"block-chart__cartesianLabelX",children:C}),!r&&(0,n.jsx)(f_,{activeIndex:e,labels:S.labels,letters:E,onEvent:u,values:L}),(0,n.jsx)(b5,{caption:I,labels:b,values:L})]})}}const A_=t=>({search:t?.search?.term??""});function R_(t){const e=cs(t),s=j5(e),o=z4(960,"isDesktop","Desktop")(s),r=N5(o);return(0,Hs.Ls)(A_)(r)}const O_=R_(j_);var P_=i(72624);const Zh=({valueType:t,value:e,values:s})=>t==="numeric"?String(e):gM(e/Wf(s)),M_=t=>{if(cn())return"FieldText";const e=t.dataset.backgroundColor[t.dataIndex]??"#000";return(0,ct.xD)(e)===P.Em.DARK?$e.S6.DARK:$e.S6.LIGHT},D_=(t,e,s)=>Zh({valueType:t,value:e,values:s.dataset.data}),k_=(t,e)=>{const{label:s,dataset:o,parsed:r}=e[0],a=Zh({valueType:t,value:r,values:o.data});return`${s}: ${a}`},w_=(t,e)=>{const s=e.dataIndex,o=e.dataset.data??[1],r=o[s],a=t==null&&r/Wf(o)>=.06;return t===s||a},B_=({activeIndex:t,onEvent:e,reduceMotion:s,settings:{valueType:o},shouldAnimate:r})=>{const a=cn();return{animation:{animateRotate:r&&!s,duration:r&&!s?1e3:0},defaultFontFamily:'"lato", sans-serif',onClick:e,onHover:e,maintainAspectRatio:!1,plugins:{datalabels:{color:M_,display:w_.bind(null,t),font:{size:12,weight:"bold"},formatter:D_.bind(null,o)},legend:{display:!1,labels:a?{color:"FieldText"}:void 0},tooltip:{animation:!s,boxPadding:"14px 10px",callbacks:{label:()=>null,title:k_.bind(null,o)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom",backgroundColor:a?"Highlight":$e.S6.LIGHT,titleColor:a?"HighlightText":$e.S6.DARK}},responsive:!1,rotation:130}},__=({activeIndex:t,colors:e,hasBorder:s,values:o})=>{const r=qn(),a=cn(),c=t==null?e:e.map((d,l)=>l===t?d:(0,L5.A)(d,r||"#fff",.5));return a?{backgroundColor:c,hoverBackgroundColor:c,borderWidth:.5,borderColor:"rgba(255, 255, 255, 0.3)",data:o}:{backgroundColor:c,hoverBackgroundColor:c,borderWidth:0,data:o,...s&&{borderWidth:1,borderColor:"#000"}}};function U_({activeIndex:t,children:e,colors:s,hasBorder:o,values:r}){const a=__({activeIndex:t,colors:s,hasBorder:o,values:r});return e(a)}class H_ extends m.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:e,backgroundColor:s,index:o,label:r}=this.props,a=e!=null&&e!==o,c=M()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":a});return(0,n.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,n.jsx)("svg",{"aria-hidden":"true",className:"block-chart__circleLegendSymbol","data-ignore":"contrast",fill:s,focusable:"false",viewBox:"0 0 10 10",children:(0,n.jsx)("rect",{width:"10",height:"10",rx:"1.5"})}),(0,n.jsx)("div",{className:"block-chart__circleLegendText","data-l10n-id":r.l10nId,children:r.label})]})}}const F_=H_,z_=({activeIndex:t,colors:e,hasBorder:s,labels:o,onEvent:r})=>{const a=Tu(o,e);if(a.length===0)return null;const c=M()("block-chart__circleLegend",{"block-chart__circleLegend--border":s});return(0,n.jsx)("div",{"aria-hidden":"true",className:c,children:a.map(([d,l],u)=>(0,n.jsx)(F_,{activeIndex:t,backgroundColor:l,index:u,onEvent:r,label:d},d.label))})},V_=(0,m.memo)(z_),W_=(t,e)=>{const s=t.filter(a=>Number(a.value)>=0),o=y5(s,e),r=s.map(a=>a.color);return{...o,colors:r}};mn.t1.register(mn.Bs,P_.A,mn.s$,mn.P$,mn.m_);class G_ extends m.PureComponent{wrapRef;resizeObserver;constructor(e){super(e),this.wrapRef=(0,m.createRef)()}componentDidMount(){this.resizeObserver=new ResizeObserver(this.props.onResize),this.resizeObserver.observe(this.wrapRef.current)}componentWillUnmount(){this.resizeObserver.unobserve(this.wrapRef.current)}buildOptions=()=>{const{activeIndex:e,settings:s,shouldAnimate:o}=this.props;return B_({activeIndex:e,onEvent:this.handleEvent,reduceMotion:Js(),settings:s,shouldAnimate:o})};handleEvent=(e,s)=>{const o=s.length?s[0].index:null;this.props.onEvent(o)};render(){const{activeIndex:e,backgroundColor:s,chartRef:o,getL10nValue:r,isVisible:a,items:c,labels:d,onEvent:l,settings:u}=this.props,{colors:h,labels:p,values:f}=W_(c,r),g=a?f:S5(0,c.length),v=this.buildOptions(),C=d?.a11yBlockChartPie,x=g.map(b=>Zh({valueType:u.valueType,value:b,values:g})),S=p.map(b=>b.label),E=h.includes(s);return(0,n.jsxs)("div",{className:"block-chart__circle",children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"block-chart__circleChart",ref:this.wrapRef,children:(0,n.jsx)(U_,{activeIndex:e,colors:h,hasBorder:E,values:g,children:b=>(0,n.jsx)(g5.t1,{data:{labels:S,datasets:[b]},options:v,ref:o,type:"pie",updateMode:"default"})})}),(0,n.jsx)(V_,{activeIndex:e,colors:h,hasBorder:E,labels:p,onEvent:l}),(0,n.jsx)(b5,{caption:C,labels:p,values:x})]})}}function K_(t){const e=lS()(t),s=j5(e),o=N5(s);return cs(o)}const $_=K_(G_),Q_=t=>(0,ct.cP)(t.backgroundColor);class Z_ extends m.PureComponent{constructor(e){super(e),this.state={isVisible:!1}}componentDidMount(){this.setState({isVisible:!this.props.animateBlockEntrance||Js()})}handleAnimationEnd=()=>{this.setState({isVisible:!0})};renderTitle=()=>{const{title:e}=this.props;return(0,n.jsx)(Nt,{value:e})};render(){const{props:{animateBlockEntrance:e,children:s,editable:o,isLearner:r,items:a,itemsLabel:c,labels:d,settings:l,title:u,valuesLabel:h,variant:p,renderTitle:f=this.renderTitle},state:{isVisible:g}}=this,v=Q_(l),C=l?.headingLevel,x=C?`h${C}`:"h2";return(0,n.jsx)(qt,{type:"chart",children:(0,n.jsx)(zt,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:!e||Js(),isLearner:r,children:(0,n.jsx)("div",{className:"block-chart__container",children:(0,n.jsx)("div",{className:"block-chart__row",children:(0,n.jsxs)("div",{className:"block-chart__rowInner",children:[(!o&&u||o)&&(0,n.jsx)(x,{className:"block-chart__title",children:f()}),(0,n.jsx)("div",{className:"block-chart__chart",children:ie().cloneElement(ie().Children.only(s),{hasDarkBgColor:v,isVisible:g,items:a,itemsLabel:c,labels:d,settings:l,shouldAnimate:e,valuesLabel:h,variant:p})})]})})})})})}}const Y_=Z_;function A5(t){const e=s=>(0,n.jsx)(Y_,{...s,children:(0,n.jsx)(t,{})});return e.displayName=`ChartWrap(${Gh(t)})`,e}const X_=A5(O_),J_=A5($_),q_=t=>(0,n.jsx)("div",{className:"unsupported-block",...t,children:(0,n.jsxs)("span",{children:["We no longer support this block, so you can safely delete it. If you have any questions, please ",(0,n.jsx)("a",{href:"https://access.articulate.com/support/contact",children:"contact Articulate Support."})]})});var eU=i(59288);const tU=Qt()(Ue()("variant","storyline")),sU=St()(tU,us(),ir()(1));class nU extends eU.Component{render(){const{dividerNumber:e,family:s,handleStorylineFullscreen:o,partnerContent:r,variant:a,enableVideoPlaybackSpeed:c}=this.props,l={...Ps()(["type","handleStorylineFullscreen","dividerNumber"],this.props),enableVideoPlaybackSpeed:c,partnerContent:r};return Ge("text","paragraph",l)||Ge("text","table",l)?(0,n.jsx)(cR,{...l}):Ge("text","heading paragraph",l)?(0,n.jsx)(pR,{...l}):Ge("text","subheading paragraph",l)?(0,n.jsx)(fR,{...l}):Ge("text","heading",l)?(0,n.jsx)(hR,{...l}):Ge("text","subheading",l)?(0,n.jsx)(mR,{...l}):Ge("text","two column",l)?(0,n.jsx)(lR,{...l}):Ge("text","three column",l)?(0,n.jsx)(dR,{...l}):Ge("text","four column",l)?(0,n.jsx)(uR,{...l}):Ge("text","code",l)?(0,n.jsx)(uf,{...l}):Ge("impact","a",l)?(0,n.jsx)(yR,{...l}):Ge("impact","b",l)?(0,n.jsx)(IR,{...l}):Ge("impact","c",l)?(0,n.jsx)(NR,{...l}):Ge("impact","d",l)?(0,n.jsx)(jR,{...l}):Ge("impact","note",l)?(0,n.jsx)(AR,{...l}):Ge("quote","a",l)?(0,n.jsx)(BR,{...l}):Ge("quote","b",l)?(0,n.jsx)(_R,{...l}):Ge("quote","c",l)?(0,n.jsx)(UR,{...l}):Ge("quote","d",l)?(0,n.jsx)(HR,{...l}):Ge("quote","background",l)?(0,n.jsx)(FR,{...l}):Ge("quote","carousel",l)?(0,n.jsx)(VR,{...l}):Ge("list","numbered",l)?(0,n.jsx)(KR,{...l}):Ge("list","checkboxes",l)?(0,n.jsx)($R,{...l}):Ge("list","bulleted",l)?(0,n.jsx)(QR,{...l}):Ge("image","hero",l)?(0,n.jsx)(YR,{...l}):Ge("image","full",l)?(0,n.jsx)(gf,{...l}):Ge("image","text aside",l)?(0,n.jsx)(qR,{...l}):Ge("image","text overlay",l)?(0,n.jsx)(tO,{...l}):Ge("gallery","centered",l)||Ge("gallery","full",l)?(0,n.jsx)(cO,{...l}):Ge("gallery","two column",l)?(0,n.jsx)(eh,{...l}):Ge("gallery","three column",l)?(0,n.jsx)(eh,{width:3,...l}):Ge("gallery","four column",l)?(0,n.jsx)(eh,{width:4,...l}):Ge("divider","divider",l)?(0,n.jsx)(dO,{...l}):Ge("divider","numbered divider",l)?(0,n.jsx)(uO,{number:e,...l}):Ge("divider","spacing divider",l)?(0,n.jsx)(hO,{...l}):Ge("360","storyline",l)?(0,n.jsx)($O,{...l,isLesson:!0,handleStorylineFullscreen:o,hasManySlBlocks:this.hasManySlBlocks.bind(this)}):Ge("interactive","accordion",l)?(0,n.jsx)(EO,{...l}):Ge("interactive","tabs",l)?(0,n.jsx)(MO,{...l}):Ge("interactive-fullscreen","labeledgraphic",l)?(0,n.jsx)(xw,{...l}):Ge("interactive-fullscreen","process",l)?(0,n.jsx)(jw,{...l}):Ge("interactive-fullscreen","scenario",l)?(0,n.jsx)(Zw,{...l}):Ge("interactive-fullscreen","sorting",l)?(0,n.jsx)(fB,{...l}):Ge("interactive-fullscreen","timeline",l)?(0,n.jsx)(BB,{...l}):Ge("buttons","button",l)?(0,n.jsx)(rP,{...l}):Ge("buttons","button stack",l)?(0,n.jsx)(aP,{...l}):Ge("flashcard","flashcard",l)?(0,n.jsx)(Pf,{...l}):Ge("flashcard","stack",l)?(0,n.jsx)(Pf,{stack:!0,...l}):Ge("knowledge","knowledge",l)?(0,n.jsx)(Gi,{...l}):Ge("continue","continue",l)?(0,n.jsx)(SP,{...l}):Ge("multimedia","audio",l)?(0,n.jsx)(hP,{...l}):Ge("multimedia","video",l)?(0,n.jsx)(Nf,{...l}):Ge("multimedia","custom video",l)?(0,n.jsx)(Nf,{...l,type:"customVideo"}):Ge("multimedia","embed",l)?(0,n.jsx)(fP,{...l}):Ge("multimedia","attachment",l)?(0,n.jsx)(EP,{...l}):Ge("multimedia","code",l)?(0,n.jsx)(uf,{...l}):Ge("knowledgeCheck","multiple choice",l)?(0,n.jsx)(Gi,{...l}):Ge("knowledgeCheck","multiple response",l)?(0,n.jsx)(Gi,{...l}):Ge("knowledgeCheck","fillin",l)?(0,n.jsx)(Gi,{...l}):Ge("knowledgeCheck","matching",l)?(0,n.jsx)(Gi,{...l}):Ge("knowledgeCheck","draw from question bank",l)?(0,n.jsx)(Gi,{...l}):Ge("chart","bar",l)||Ge("chart","line",l)?(0,n.jsx)(X_,{...l}):Ge("chart","pie",l)?(0,n.jsx)(J_,{...l}):Ge("mondrian","mondrian",l)?(0,n.jsx)(SB,{...l}):Ge("textToVideo","textToVideo",l)?(0,n.jsx)(q_,{}):Ge("html","inline",l)||Ge("html","cdn",l)?(0,n.jsx)(PB,{...l}):`Unknown type: ${s} ${a}`}hasManySlBlocks(){const{items:e}=this.props;return e&&sU(e)}}function oU(t){return(0,n.jsx)(c1,{block:t,children:(0,n.jsx)(nU,{...t})})}function Ge(t,e,s){return s.family===t&&s.variant===e}const rU=960;function aU(){return document.querySelector(".page-wrap")}function pue(){return window.innerWidth<rU}const Yh=(0,m.createContext)({isLessonEntering:!1,isLessonExiting:!1});Yh.displayName="LessonTransitionContext";function iU({isLessonEntering:t,isLessonExiting:e,children:s}){const o=(0,m.useMemo)(()=>({isLessonEntering:t,isLessonExiting:e}),[t,e]);return(0,n.jsx)(Yh.Provider,{value:o,children:s})}function R5(){return(0,m.useContext)(Yh)}function cU(t){function e(s){const o=R5();return(0,n.jsx)(t,{...s,...o})}return e.displayName=`withLessonTransitionState(${t.displayName||t.name})`,e}const O5=({children:t,onViewed:e,threshold:s=.1})=>{const{isLessonEntering:o,isLessonExiting:r}=R5(),a=(0,m.useRef)(null),[c,d]=(0,m.useState)(!1),l=(0,m.useCallback)(()=>{c||(d(!0),e())},[c,e]),u=(0,m.useCallback)(h=>{const p=h[0];!c&&!o&&!r&&p?.isIntersecting&&l()},[c,o,r,l]);return(0,m.useEffect)(()=>{const h=a.current;if(!h||o||r)return;const p=aU(),f=new IntersectionObserver(u,{root:p,threshold:s});return f.observe(h),()=>{f.disconnect()}},[s,u,o,r]),(0,n.jsx)("div",{ref:a,children:t})};var Xh=i(59288);class lU extends Xh.PureComponent{render(){return(0,n.jsx)(O5,{onViewed:this.handleViewed,children:Xh.cloneElement(Xh.Children.only(this.props.children),{onStep:this.handleStep})})}handleStep=e=>{e!=null&&"id"in e&&!e.isDone&&this.props.onStep(e.id)};handleViewed=()=>{const{block:e}=this.props;if(!e.requiresInteraction){this.props.onViewed();return}(dU.test(e.variant)||uU.test(e.family))&&e.items.length>0&&this.handleStep(e.items[0])}}const dU=/tabs|carousel/,uU=/gallery/,hU=["timeline"],mU=({family:t,variant:e})=>(/interactive|flashcard|knowledge|continue|360/.test(t)||/carousel|centered|checkboxes|audio|video|storyline/.test(e))&&!hU.includes(e),pU="draw from question bank",P5=t=>{const{animateBlockEntrance:e,block:s,className:o,color:r,courseId:a,courseTitle:c,defaultBackgroundColor:d,enableVideoPlaybackSpeed:l,handleNavigate:u,handleStorylineFullscreen:h,hideBlock:p,isLastBlock:f,isOnlyBlockInStep:g,labels:v,lessonId:C,lessonProgress:x,loadMedia:S,match:E,onContinue:b,partnerContent:L,prefersKeyboardNavigation:I,previewType:N,publishedAt:R,tenantId:j}=t,{blockId:O,family:B,items:_=[],settings:k,variant:te}=s,F=`block-${O}`,K=(0,X.wA)(),Z=wC({blockId:O,lessonId:C}),xe=B==="knowledgeCheck"&&k?.requireCorrectAnswer,fe=(0,m.useCallback)(nt=>{const Ce=te===pU?_[0]:qe()(Ue()("id",nt),_);K((0,pr.re)({blockId:O,lessonId:C,items:[Ce]})),B==="continue"&&b(O,nt)},[O,K,B,_,C,b,te]),oe=(0,m.useCallback)(()=>{xe||K((0,pr.re)({blockId:O,lessonId:C,items:_}))},[O,K,xe,_,C]),we=(0,m.useCallback)(nt=>{const Ce=_?.[0],Ne=Ce&&"id"in Ce?Ce.id:void 0;Ne&&K((0,pr.RA)({blockId:O,itemId:Ne,lessonId:C,playheadPercentage:nt}))},[O,K,C,_]),Ae=mt()(s,{animateBlockEntrance:e,className:o?.toString(),color:r,courseId:a,courseTitle:c,defaultBackgroundColor:d,dividerNumber:Z,enableVideoPlaybackSpeed:l,family:B,handleNavigate:u,handleStorylineFullscreen:h,isHidden:p,isLastBlock:f,isLearner:!0,isOnlyBlockInStep:g,labels:v,lessonId:C,loadMedia:S,match:E,originalVariant:void 0,partnerContent:L,prefersKeyboardNavigation:I,previewType:N,progress:x,publishedAt:R,recordMediaPlayheadPosition:we,tenantId:j}),Qe=mU({family:B,variant:te})?lU:O5,pt=H4(C,O),ls=M()("noOutline",o,{"blocks-lesson__block-wrapper--hidden":p});return(0,n.jsx)("div",{className:ls,"data-block-id":O,"data-change-path":pt,children:(0,n.jsx)(Qe,{block:s,onStep:fe,onViewed:oe,children:(0,n.jsx)(oU,{...Ae})})},F)},fU=({slides:t,currentSlide:e},s)=>(e.push(s),s.settings?.attachedToNextBlock||(t.push(e),e=[]),{slides:t,currentSlide:e}),gU=t=>{const{slides:e}=Nn()(fU,{slides:[],currentSlide:[]},t);return e};function Jh(t,e,s){if(t.length){const r=t.slice(-1)[0];if(!Sl(r.id,s))return t}const o=r_(vU(s),e.slice(t.length)).map(CU);return o.length?Jh(t.concat(o),e,s):t}const Sl=(t,e)=>Ye()(!1,["items",t,"isComplete"],e),vU=t=>({family:e,items:s})=>{const o=Ye()({},0,s);return e==="continue"&&!Sl(o.id,t)};function CU(t,e,s){const o=s.slice(-1)[0]||{},{family:r}=o,a=r==="continue"?Ye()(!1,["items",0,"type"],o):!1;return t.variant!=="continue"&&(!a||a==="completeBlock"&&e!==s.length-1&&e!==s.length-2)?t:mt()(t,{requiresInteraction:!0})}function M5({id:t,...e},s,o,r){if(e.family==="continue"){const a=Ye()("",["items",0,"type"],e);return mt()({blockId:t,...e},{skipContinue:r,canContinue:xU({continueType:a,blocks:s,progress:o}),lessonProgress:o,isComplete:Sl(t,o)})}return{blockId:t,...e}}const xU=({continueType:t,blocks:e,progress:s})=>{switch(t){case"completeAll":return ps()(us()(e),LU(s));case"completeBlock":return e.length===0?!0:Sl(bU(e),s);default:return!0}},EU=Se()(yo(),Pe()("items")),TU=t=>Se()(SU,EU)(t),SU=Qt()(Ue()("isComplete",!0)),LU=Se()(us(),TU),bU=Se()(Pe()("id"),Do()),yU=({family:t,variant:e,isComplete:s,requiresInteraction:o})=>t==="continue"&&e==="continue"&&o&&!s,IU=(t,e)=>!!t.find(o=>{if(o?.family==="knowledgeCheck"&&o?.settings?.requireCorrectAnswer)return!e?.items?.[o?.id]?.isComplete}),NU=t=>t.length===0?!1:b1()(yU,t),jU=(t,e)=>t.length===0?!1:IU(t,e),AU=({blocks:t,lessonProgress:e})=>t.findIndex(s=>{const o=e?.items?.[s?.id],r=o&&o?.isComplete==null;return s?.family==="knowledgeCheck"&&s?.settings?.requireCorrectAnswer&&r}),D5=({blocks:t,lessonProgress:e,currentBlockIndex:s})=>{const o=AU({blocks:t,lessonProgress:e});return o>-1&&s>o},RU=(t,e)=>{const s=["embed","video","full"];return["interactive","interactive-fullscreen","image","flashcard","gallery","chart","knowledgeCheck"].includes(t)||s.includes(e)};function OU(){const{pathname:t}=new URL(window.location.href);return t.split("/")[1]==="review"}class PU extends ie().Component{ref=ie().createRef();constructor(...e){super(...e),this.state={randomQuestions:{},transitioning:!1},this.handleContinue=this.handleContinue.bind(this),this.handleScrollToBlock=this.handleScrollToBlock.bind(this),window.addEventListener(ms,this.handleScrollToBlock)}componentDidUpdate(e){this.scrollIfContinued(),e.isLessonEntering&&!this.props.isLessonEntering&&this.scrollToBlockAfterEnter!=null&&this.scrollToBlock(this.scrollToBlockAfterEnter)}componentWillUnmount(){window.removeEventListener(ms,this.handleScrollToBlock)}render(){const{className:e,isOnePage:s}=this.props,o=M()("blocks-lesson",e,{"blocks-lesson--one-page":s});return(0,n.jsx)("section",{className:o,ref:this.ref,children:this.renderBlocks()})}renderBlocks(){const{blocks:e,isCourseLocalized:s,lessonProgress:o}=this.props,r=OU()&&s;return(r?e:Jh([],e,o)).map(this.buildBlock.bind(this,this.props.lessonProgress,r)).filter(x3.A)}handleContinue(e,s){const{blocks:o,history:r,lessonId:a,lessonProgress:c,nextLesson:d}=this.props;Sl(s,c)||(this.continueFromId=e),St()(Do(),Ue()("id",e))(o)&&d&&((0,X.JD)((0,pr.eQ)(a)),r.push(`/lessons/${encodeURIComponent(d)}`))}buildBlock(e,s,o,r,a){const{animateBlockEntrance:c,blocks:d,color:l,courseId:u,courseTitle:h,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:g,labels:v,lessonId:C,loadMedia:x,match:S,partnerContent:E,prefersKeyboardNavigation:b,previewType:L,publishedAt:I,tenantId:N}=this.props,R=M5(o,a.slice(0,-1),e,s),j=a.length-1,O=r===j,B=D5({blocks:d,lessonProgress:e,currentBlockIndex:r});return(0,n.jsx)(P5,{animateBlockEntrance:c,block:R,color:l,courseId:u,courseTitle:h,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:g,hideBlock:B,index:r,isFirstLesson:!0,isLastBlock:O,labels:v,lessonId:C,lessonProgress:e,loadMedia:x,match:S,onContinue:this.handleContinue,partnerContent:E,prefersKeyboardNavigation:b,previewType:L,publishedAt:I,tenantId:N},R.blockId)}scrollIfContinued(){if(this.continueFromId){const{blocks:e}=this.props,s=Ts()(Ue()("id",this.continueFromId),e),o=Zt()(s),r=Ye()(null,["blocks",o,"id"],this.props);if(r){const a=document.querySelector(".page-wrap"),c=a.querySelector(`[data-block-id="${r}"]`),d=c?c.getBoundingClientRect().top:0;tl.Ay.animateScroll.scrollTo(d+a.scrollTop,{smooth:!0,containerId:"page-wrap"})}delete this.continueFromId}}handleScrollToBlock(e){if(this.props.isLessonExiting||e.detail.lessonId!==this.props.lessonId)return;const s=e.detail.itemId;s==null?this.ref.current?.closest(".page").scrollIntoView({behavior:"smooth",block:"start"}):this.props.isLessonEntering?this.scrollToBlockAfterEnter=s:this.scrollToBlock(s)}scrollToBlock(e){const o=document.querySelector(".page-wrap").querySelector(`[data-block-id="${e}"]`);o?.scrollIntoView({behavior:"smooth",block:"nearest"})}}const MU=t=>({isOnePage:Bt(t),isCourseLocalized:$t(t)}),k5=Se()(a1.A,(0,X.Ng)(MU),cU)(PU);function er({children:t}){const e=(0,m.useRef)(),s=(0,m.useCallback)(()=>{e.current?.focus?.()},[]);return pT(s),(0,n.jsx)("main",{className:"lesson-main",ref:e,tabIndex:"-1",children:t})}const DU=J("page"),w5=({type:t,children:e})=>(0,n.jsx)("div",{className:DU({lessonTypeQuiz:t==="quiz"}),"data-type":t,"data-page":!0,children:e});w5.propTypes={type:A().string.isRequired,children:A().node.isRequired};const No=w5,no=({type:t,children:e})=>{const s=t==="video"||t==="embed"||t==="blocks"||t==="progress-summary",o=M()("page__wrapper",{"page__wrapper--white":s});return(0,n.jsx)("div",{className:o,children:e})};no.propTypes={type:A().string.isRequired,children:A().node.isRequired};const oo=({className:t,type:e,children:s})=>{const o=M()("page__content",t,{"page__content--timeline":e==="timeline"});return(0,n.jsx)("div",{className:o,children:s})};oo.propTypes={type:A().string,children:A().node.isRequired};const kU=({animateBlockEntrance:t,color:e,courseId:s,courseTitle:o,data:r,enableVideoPlaybackSpeed:a,handleNavigate:c,handleStorylineFullscreen:d,labels:l,lessonHeader:u,lessonHeaderWrapClasses:h,lessonHeaderWrapStyles:p,lessonProgress:f,loadMedia:g,match:v,nextLesson:C,partnerContent:x,prefersKeyboardNavigation:S,previewType:E,publishedAt:b,tenantId:L,hideLessonHeaders:I})=>{const{id:N,items:R,type:j}=r,O={animateBlockEntrance:t,blocks:R,color:e,courseId:s,courseTitle:o,enableVideoPlaybackSpeed:a,handleNavigate:c,handleStorylineFullscreen:d,isFirstLesson:!0,labels:l,lessonId:N,lessonProgress:f,loadMedia:g,match:v,nextLesson:C,partnerContent:x,previewType:E,prefersKeyboardNavigation:S,publishedAt:b,tenantId:L,type:j};return(0,n.jsx)(No,{type:j,children:(0,n.jsx)(no,{type:j,children:(0,n.jsxs)(er,{children:[(0,n.jsx)("div",{inert:I,className:h,style:p,children:u}),(0,n.jsx)(oo,{children:(0,n.jsx)(k5,{...O})})]})})})},wU=t=>({partnerContent:Ye()([],["partnerContent","content"],t)}),BU=(0,X.Ng)(wU)(kU);var _U=i(59288);class B5 extends _U.Component{constructor(e){super(e);const s=e.getL10nValue(e.items?.[0]?.media);this.type=nf(s),this.state={isLoaded:this.type!=="video"}}componentDidMount(){this.type==="video"&&setTimeout(()=>{this.setState({isLoaded:!0})},800)}render(){if(!this.state.isLoaded)return null;const{id:e,items:s,labels:o}=this.props,r=jt()([0,"media","embed"],s),a=jt()([0,"settings","showMetaData"],s);return(0,n.jsx)("section",{"aria-label":"URL/Embed Content",className:"embed-lesson",children:(0,n.jsx)("div",{className:"embed-lesson__item",children:(0,n.jsx)("div",{className:"embed-lesson__row",children:(0,n.jsx)("div",{className:"embed-lesson__main",children:(0,n.jsx)(K1,{data:r,isLesson:!0,labels:o,showMetaData:a})})})},e)})}}const UU=cs(B5),{any:HU,array:FU,object:_5}=A();B5.propTypes={id:HU.isRequired,items:FU.isRequired,labels:_5.isRequired,lessonProgress:_5.isRequired};const zU=({color:t,data:{id:e,items:s,type:o},labels:r,lessonHeader:a,lessonHeaderWrapClasses:c,lessonProgress:d})=>(0,n.jsx)(No,{type:o,children:(0,n.jsx)(no,{type:o,children:(0,n.jsxs)(er,{children:[(0,n.jsx)("div",{className:c,style:{color:t},children:a}),(0,n.jsx)(oo,{children:(0,n.jsx)(UU,{id:e,items:s,labels:r,lessonProgress:d})})]})})});var VU=i(59288);class WU extends VU.Component{static propTypes={accentColor:A().string,id:A().any.isRequired,image:A().object,items:A().array.isRequired,labels:Qi.isRequired,lessonProgress:A().object,readOnly:A().bool};render(){const{accentColor:e,id:s,image:o={},items:r,isPreview:a,labels:c,lessonProgress:d}=this.props,l=M()("page__content-container","labeled-graphic-lesson-content-container"),u={accentColor:e,animateBlockEntrance:!1,editable:!1,items:r,isPreview:a,isLearner:!0,labels:c,media:{image:o},onItemSelected:void 0,parentId:s,progress:d};return(0,n.jsx)("section",{"aria-label":"Labeled Graphic Content",className:"page__content",children:(0,n.jsx)("div",{className:l,children:(0,n.jsx)(Y6,{...u})})})}}const GU=({color:t,labels:e,lessonHeader:s,lessonHeaderWrapClasses:o,lessonProgress:r,data:{id:a,items:c,media:d,type:l}})=>(0,n.jsx)(No,{type:l,children:(0,n.jsx)(no,{type:l,children:(0,n.jsxs)(er,{children:[(0,n.jsx)("div",{className:o,style:{color:t},children:s}),(0,n.jsx)(oo,{children:(0,n.jsx)(WU,{id:a,items:c,labels:e,lessonProgress:r,image:d.image})})]})})});var KU=i(59288);class U5 extends KU.Component{constructor(e){super(e),this.state={hide:!1}}static propTypes={type:A().string.isRequired,onClick:A().func.isRequired};focus(){this.controlDiv.focus()}render(){const{allowTabNavigation:e,atStart:s,isTransitioning:o,labels:r,onClick:a,type:c}=this.props,{hide:d}=this.state,l=c==="next",u=l&&!o&&!s,h=M()("process__"+c,"brand--min768--background",{"brand--max768--color":s,"process__controls--hide":d,"process__controls--animating":o,"process__controls--clip":u}),p=l?"icon-chevron-right":"icon-chevron-left";return(0,n.jsx)("button",{"aria-hidden":!e,"aria-label":l?r?.a11yCarouselNext:r?.a11yCarouselPrevious,className:h,onClick:a,ref:f=>{this.controlDiv=f},tabIndex:Fr(e),type:"button",children:(0,n.jsx)("div",{className:"process__control-content","data-next-step":r?.processNextStep,children:(0,n.jsx)("div",{className:"process__control-animation",children:(0,n.jsx)("i",{className:p})})})})}}var $U=i(59288);const QU=({processStepName:t,index:e,processStepPreposition:s,steps:o})=>(0,n.jsx)("div",{className:"card__side",children:(0,n.jsxs)("div",{className:"card__step-label brand--background",children:[t," ",e," ",s," ",o]})}),ZU=t=>{const{allowTabNavigation:e,description:s,index:o,labels:r,loadMedia:a,media:c,onFullScreenChange:d,settings:l,title:u,lessonNumber:h}=t;return(0,n.jsxs)("div",{className:"card__main",children:[(0,n.jsx)("h1",{className:"card__title brand--afterBackground",tabIndex:-1,children:u}),(0,n.jsx)("div",{className:"card__media",children:a?(0,n.jsx)(En,{defaultAlign:"center",index:`${o}`,labels:r,media:c,opts:l,onFullScreenChange:d,allowTabNavigation:e,lessonNumber:h}):null}),(0,n.jsx)(Nt,{className:"card__description",value:s,allowTabNavigation:e})]})};class YU extends $U.Component{static get defaultProps(){return{settings:{}}}static propTypes={onClick:A().func,mediaSrc:A().string,mediaType:A().string,index:A().number.isRequired,title:A().string,description:A().string,loadMedia:A().bool.isRequired,allowTabNavigation:A().bool.isRequired};render(){const{index:e,labels:s,steps:o}=this.props,{processStepName:r,processStepPreposition:a}=s;return(0,n.jsx)("div",{className:"card",children:(0,n.jsx)("div",{className:"card__container",children:(0,n.jsxs)("div",{className:"card__row",children:[(0,n.jsx)(QU,{processStepName:r,index:e,processStepPreposition:a,steps:o}),(0,n.jsx)(ZU,{...this.props})]})})})}}const XU=({applySafariLandscapeHack:t,children:e,current:s,labels:o,onReplay:r})=>{const a=M()("process-end__footer",{"process-end__footer--mobile-safari-landscape":t});return(0,n.jsxs)("div",{className:"process-end",children:[(0,n.jsx)("div",{className:"process-end__container",children:(0,n.jsx)("div",{className:"process-end__message",children:(0,n.jsx)("h1",{className:"process-end__text brand--ui",tabIndex:-1,children:JU({current:s,labels:o})})})}),(0,n.jsx)(Vh,{onClick:r,text:o.processStartAgain}),(0,n.jsx)("div",{className:a,children:e})]})},JU=({current:t,labels:{processComplete:e,processLessonName:s}})=>`${s} ${t} ${e}`,qU=XU;var H5=i(59288);const eH=({lessonName:t,lessonNumber:e,lessonPreposition:s,totalLessons:o})=>(0,n.jsx)("div",{className:"process-header__counter",children:(0,n.jsx)("div",{className:"process-header__count",children:`${t} ${e} ${s} ${o}`})});class tH extends H5.Component{static propTypes={steps:A().number,avatar:A().string,authorName:A().string,title:A().string.isRequired,type:A().string.isRequired,description:A().string,allowTabNavigation:A().bool.isRequired};render(){const{allowTabNavigation:e,authorName:s,avatar:o,children:r,description:a,labels:c,lessonNumber:d,showLessonCount:l,title:u,totalLessons:h}=this.props,{lessonName:p,lessonPreposition:f}=c;return(0,n.jsx)("div",{className:"process-header",children:(0,n.jsx)("div",{className:"process-header__container",children:(0,n.jsxs)("div",{className:"process-header__limit",children:[(0,n.jsx)("div",{className:"process-header__row",children:(0,n.jsxs)("div",{className:"process-header__main",children:[(0,n.jsxs)("div",{className:"process-header__top-wrap brand--afterBackground",children:[(0,n.jsx)("h1",{className:"process-header__title",tabIndex:-1,children:u}),o&&s?(0,n.jsxs)("div",{className:"process-header__author brand--ui",children:[(0,n.jsx)(An,{alt:"",src:(0,de.o1)(`${o}`)}),(0,n.jsxs)("span",{className:"visually-hidden",children:[c?.a11yAuthorPrefix," ",s]}),(0,n.jsx)("span",{"aria-hidden":"true",children:s})]}):null,l&&eH({lessonName:p,lessonNumber:d,lessonPreposition:f,totalLessons:h})]}),H5.Children.map(r,g=>!g||g.type!==z1?null:(0,n.jsx)("div",{className:"process-header__audio",children:g})),(0,n.jsx)(Nt,{className:"process-header__description editor-text",value:a,allowTabNavigation:e})]})}),r]})})})}}const sH=t=>e=>{t.setState({xTouchDown:e.touches[0].clientX,yTouchDown:e.touches[0].clientY})},nH=t=>e=>{t.setState({xTouchMove:e.touches[0].clientX,yTouchMove:e.touches[0].clientY})},oH=(t,e,s,o)=>()=>{if(t.state.xTouchDown&&t.state.xTouchMove){const r=t.state.xTouchDown-t.state.xTouchMove,a=t.state.yTouchDown-t.state.yTouchMove,c=Eo()(ir()),d=Eo()(Kh()),l=F5(t);Math.abs(r)>Math.abs(a)&&(Rs()([[c(o),e],[d(-o),s],[hn(),We()(void 0)]])(r),l())}},rH=t=>()=>{F5(t)},F5=t=>()=>{t.setState({xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null})};function aH(t,e,s,o,r=0){const a={touchstart:sH(e),touchmove:nH(e),touchend:oH(e,s,o,r),touchcancel:rH(e)};return{addListeners(){t.addEventListener("touchstart",a.touchstart),t.addEventListener("touchmove",a.touchmove),t.addEventListener("touchend",a.touchend),t.addEventListener("touchcancel",a.touchcancel)},removeListeners(){t.removeEventListener("touchstart",a.touchstart),t.removeEventListener("touchmove",a.touchmove),t.removeEventListener("touchend",a.touchend),t.removeEventListener("touchcancel",a.touchcancel)}}}const iH=aH;var cH=i(59288);const z5=X2(".next-lesson__link"),lH=X2(".restart-button"),qh=Ye()(0,["lessonProgress","activeIndex"]);class dH extends cH.Component{constructor(e){super(e),this.state={xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null,resetContentFocus:!1,isTransitioning:!1},this.handleKeyDown=this.handleKeyDown.bind(this),this.handleScroll=this.handleScroll.bind(this),this.leftSwipe=this.nextSlide.bind(this),this.nextSlide=this.nextSlide.bind(this),this.previousSlide=this.previousSlide.bind(this),this.renderItem=this.renderItem.bind(this),this.rightSwipe=this.previousSlide.bind(this),this.handleAnimationEnd=this.handleAnimationEnd.bind(this),this.portal=kr()}static propTypes={authorName:A().string.isRequired,avatar:A().string.isRequired,description:A().string.isRequired,id:A().any.isRequired,items:A().array.isRequired,labels:Qi.isRequired,lessonNumber:A().number.isRequired,lessonProgress:A().object.isRequired,loadMedia:A().bool.isRequired,menuOpen:A().bool.isRequired,mobileMenuOpen:A().bool.isRequired,title:A().string.isRequired,totalLessons:A().number.isRequired,type:A().string.isRequired};handleScroll(){const e=window.pageYOffset,s=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(window.matchMedia("(min-width: 768px)").matches){const r=s/2+e-50;this.previousContainer.style.transform=`translate3d(-50px, ${r}px, 0)`,this.nextContainer.style.transform=`translate3d(50px, ${r}px, 0)`}else{this.previousContainer.style.transform="none",this.nextContainer.style.transform="none";const o=nn.isIphoneSafari?94:50,r=s+e-o;this.controls.style.transform=`translate3d(0, ${r}px, 0)`}}componentDidMount(){const e=this.controlsContainer;this.swipeEvents=iH(e,this,this.leftSwipe,this.rightSwipe),this.swipeEvents.addListeners(),document.addEventListener("keydown",this.handleKeyDown),nn.isSafari9&&(this.scrollRef=Vr()(this.handleScroll,10),window.addEventListener("scroll",this.scrollRef),this.handleScroll()),this.preventFocusOnOverflowElements(),this.controlsContainer.addEventListener("animationend",this.handleAnimationEnd)}componentWillUnmount(){this.swipeEvents.removeListeners(),document.removeEventListener("keydown",this.handleKeyDown),nn.isSafari9&&window.removeEventListener("scroll",this.scrollRef),this.controlsContainer.removeEventListener("animationend",this.handleAnimationEnd)}componentDidUpdate(e){this.handleSlideScroll(e)}render(){const e=this.isAtStart(),s=this.isAtEnd(),{processLandmark:o}=this.props.labels;return(0,n.jsxs)("section",{"aria-label":o,className:this.getClassName({isAtStart:e,isAtEnd:s}),ref:r=>{this.controlsContainer=r},children:[this.renderControls({isAtStart:e,isAtEnd:s}),(0,n.jsxs)("div",{className:"process__wrap",children:[this.renderStart(),this.props.items.map(this.renderItem),this.renderEnd()]})]})}renderControls({isAtStart:e,isAtEnd:s}){const{applySafariLandscapeHack:o,labels:r,safariLandscapeHackOffset:a}=this.props,c=this.getControlsClassName({isAtStart:e,isAtEnd:s}),d=o?{bottom:a}:{},{isTransitioning:l}=this.state;return(0,Yn.createPortal)((0,n.jsx)("div",{className:this.getMenuClassName(),children:(0,n.jsxs)("div",{ref:u=>{this.controls=u},className:c,style:d,children:[(0,n.jsx)("div",{ref:u=>{this.nextContainer=u},children:(0,n.jsx)(U5,{allowTabNavigation:!s,atStart:e,labels:r,onClick:this.nextSlide,ref:u=>{this.nextControl=u},isTransitioning:l,type:"next"})}),(0,n.jsx)("div",{ref:u=>{this.previousContainer=u},children:(0,n.jsx)(U5,{allowTabNavigation:!e,atStart:e,labels:r,onClick:this.previousSlide,ref:u=>{this.previousControl=u},isTransitioning:l,type:"previous"})})]})}),this.portal)}renderStart(){const{authorName:e,avatar:s,description:o,items:r,labels:a,lessonNumber:c,showLessonCount:d,title:l,totalLessons:u,type:h}=this.props,p=this.isAtStart();return(0,n.jsx)("div",{"aria-hidden":!p,className:this.getItemClassName(0),ref:f=>{this["item-0"]=f},children:(0,n.jsx)("div",{className:"process__item-wrap",children:(0,n.jsx)(tH,{allowTabNavigation:p,authorName:e,avatar:s,description:o,labels:a,lessonNumber:c,onFullScreenChange:this.handleFullScreenChange,showLessonCount:d,steps:r.length,title:l,totalLessons:u,type:h})})})}renderItem(e,s){const{items:o,labels:r,loadMedia:a,lessonNumber:c}=this.props,d=Zt()(s),l=qh(this.props),u=d===l;return(0,n.jsx)("div",{"aria-hidden":!u,className:this.getItemClassName(d),ref:h=>{this[`item-${d}`]=h},children:(0,n.jsx)("div",{className:"process__item-wrap",children:(0,n.jsx)(YU,{allowTabNavigation:u,description:e.description,id:e.id,index:d,labels:r,lessonNumber:c,loadMedia:a,media:e.media,onFullScreenChange:this.handleFullScreenChange,settings:e.settings,steps:o.length,title:e.title},e.id)})},`item-${e.id}`)}renderEnd(){const{applySafariLandscapeHack:e,items:s,labels:o,lessonNumber:r}=this.props,a=Zt()(s.length);return(0,n.jsx)("div",{"aria-hidden":!this.isAtEnd(),className:this.getItemClassName(a),ref:c=>{this[`item-${a}`]=c},children:(0,n.jsx)("div",{className:"process__item-wrap",children:(0,n.jsx)(qU,{applySafariLandscapeHack:e,current:r,labels:o,onReplay:this.handleReplay})})})}preventFocusOnOverflowElements(){const e=Fr(this.isAtEnd());Rd(z5(),e),Rd(lH(),e)}focusNextElement(){const{nextControl:e,previousControl:s}=this;if(this.isAtEnd()){const o=z5();o?o.focus():s.focus()}else this.isAtStart()&&e.focus()}updateFocusForActiveCard(){!IS(this[`item-${qh(this.props)}`])&&this.isAtStart()&&this.focusNextElement()}handleAnimationEnd({animationName:e}){const s=on()(e,["showcard","showcardUp"]);if(this.state.isTransitioning&&this.setState({isTransitioning:!1}),s&&this.state.resetContentFocus){const{prefersKeyboardNavigation:o}=this.props;o&&this.updateFocusForActiveCard(),this.setState({resetContentFocus:!1})}else e==="showFoot"&&this.focusNextElement()}getClassName({isAtStart:e,isAtEnd:s}){return M()("process",{"process--reverse-animation":this.props.lessonProgress.direction==="backwards","process--at-start":e,"process--at-end":s})}getControlsClassName({isAtStart:e,isAtEnd:s}){return M()("process__controls",{"process__controls--at-start":e,"process__controls--at-end":s})}getItemClassName(e){const s=qh(this.props);return M()("process__item",{"process__item--active":e===s,"process__item--done":e<s,"process__item--next":fo()(e)===s})}getMenuClassName(){const{menuOpen:e,mobileMenuOpen:s}=this.props,o=!!document.querySelector(".lesson--preview");return M()("lesson-controls-wrapper",{"lesson--open":e&&!o,"lesson--open-mobile":s&&!o})}previousSlide(){this.isAtStart()||(this.slidePrep(),this.setState({resetContentFocus:!0}))}nextSlide(){this.isAtEnd()||(this.isAtStart()&&this.setState({isTransitioning:!0}),this.slidePrep(),this.setState({resetContentFocus:!0}))}handleKeyDown(e){Rs()([[_r,this.previousSlide],[Ur,this.nextSlide]])(e)}slidePrep(){at.pause(),this.setState({xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null})}handleFullScreenChange(){const e=document.querySelector(".process__item--active");document.webkitFullscreenElement?e.style.animationDuration="0s":setTimeout(()=>{e.style.animationDuration=""},750)}handleSlideScroll(e){const s=Ye()(0,["lessonProgress","activeIndex"],e),o=Ye()(0,["lessonProgress","activeIndex"],this.props);if(s!==o){const r=document.querySelector(".page-wrap"),a=r.scrollTop;this[`item-${s}`].scrollTop=a,r.scrollTop=0,this.preventFocusOnOverflowElements()}}isAtStart(){return gs()(Pe()("activeIndex",this.props.lessonProgress))}isAtEnd(){const{items:e,lessonProgress:s}=this.props;return Ue()("activeIndex",Zt()(e.length),s)}}const em=Dt("Progress");var uH=i(59288);const hH=()=>{let t=window;for(;t.parent!=t;)t=t.parent;try{t.innerHeight}catch{return window}return t},V5=t=>class extends uH.Component{constructor(e){super(e),this.state={orientation:{},navigationHidden:{}},this.applySafariLandscapeHack=this.applySafariLandscapeHack.bind(this),this.root=hH()}componentDidMount(){nn.isIphoneSafari&&(this.applySafariLandscapeHack(),this.root.addEventListener("resize",this.resizeRef=Vr()(this.applySafariLandscapeHack,500)))}componentWillUnmount(){this.root.removeEventListener("resize",this.resizeRef)}applySafariLandscapeHack(){const e=this.root,s=window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape",r=(s==="landscape"?screen.width:screen.height)-e.innerHeight;(s!=this.state.orientation||r!=this.state.difference)&&(s==="landscape"&&r!==0&&setTimeout(()=>{e.document.body.scrollTop=0},0),this.setState({orientation:s,difference:r}))}render(){return(0,n.jsx)(t,{...this.props,applySafariLandscapeHack:this.state.orientation==="landscape"&&this.state.difference!==0,safariLandscapeHackOffset:this.state.difference})}},mH=V5(dH),pH=({authorName:t,avatar:e,data:{description:s,id:o,items:r,title:a,type:c},labels:d,lessonNumber:l,lessonProgress:u,loadMedia:h,prefersKeyboardNavigation:p,showLessonCount:f,totalLessons:g})=>(0,n.jsx)(No,{type:c,children:(0,n.jsx)(no,{type:c,children:(0,n.jsx)(er,{children:(0,n.jsxs)(oo,{type:c,items:r,children:[(0,n.jsx)(em,{id:o,items:r,lessonProgress:u,type:"process"}),(0,n.jsx)(mH,{authorName:t,avatar:e,description:s,id:o,items:r,labels:d,loadMedia:h,lessonNumber:l,lessonProgress:u,prefersKeyboardNavigation:p,showLessonCount:f,title:a,totalLessons:g,type:c})]})})})});var fH=i(16829);const gH=({"aria-label":t,title:e,desc:s,width:o="26",height:r="24",className:a,focusable:c="false",role:d="img"})=>(0,n.jsxs)("svg",{viewBox:"0 0 26 24",width:o,height:r,"aria-label":t,className:M()("i i-checkedbox",a),focusable:c,role:d,children:[e&&(0,n.jsx)("title",{children:e}),s&&(0,n.jsx)("desc",{children:s}),(0,n.jsx)("path",{fillRule:"nonzero",d:"M12.214 11.686L23.224.328a1.08 1.08 0 1 1 1.551 1.504L12.99 13.99a1.08 1.08 0 0 1-1.551 0L7.153 9.569a1.08 1.08 0 1 1 1.551-1.504l3.51 3.621zM2.58 21h18.197v-9.973a1.08 1.08 0 1 1 2.16 0V22.08a1.08 1.08 0 0 1-1.08 1.08H1.5a1.08 1.08 0 0 1-1.08-1.08v-21C.42.484.904 0 1.5 0h15a1.08 1.08 0 0 1 0 2.16H2.58V21z"})]}),vH=({percentComplete:t,trackingCompletionPercentage:e,labelCompletionRequirement:s="Completion Requirement",labelPercentCompletion:o="% Completion",labelYouCompleted:r="You completed:",labelA11yRequirementCompleted:a="Requirement completed, check mark",labelA11yRequirementNotCompleted:c="Requirement not completed, empty square"})=>wt()(e)?null:(0,n.jsxs)("div",{className:"progress-summary__requirement",children:[(0,n.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,n.jsx)("h2",{className:"progress-summary__requirement-title",children:s}),(0,n.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,n.jsxs)("div",{children:[e,o]}),(0,n.jsxs)("div",{children:[r,"\xA0",(0,n.jsxs)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:[t,"%"]})]})]})]}),(0,n.jsx)(W5,{requirementMet:e<=t,labelA11yRequirementCompleted:a,labelA11yRequirementNotCompleted:c})]}),CH=({outOfAttempts:t,quizPassed:e,quizPassingScore:s,quizScore:o,quizTitle:r,trackingQuizId:a,labelQuizRequirement:c="Quiz Requirement",labelScoreOf:d="Score of",labelScoreOfPreposition:l="% on",labelViewQuiz:u="View quiz",labelYouScored:h="You scored",labelNoAttemptsRemaining:p="No attempts remaining.",labelA11yRequirementCompleted:f="Requirement completed, check mark",labelA11yRequirementNotCompleted:g="Requirement not completed, empty square"})=>a?(0,n.jsxs)("div",{className:"progress-summary__requirement",children:[(0,n.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,n.jsx)("h2",{className:"progress-summary__requirement-title",children:c}),(0,n.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,n.jsxs)("div",{children:[d," ",s,l," ",r]}),wt()(o)?(0,n.jsx)("div",{children:(0,n.jsx)(Qn,{className:"progress-summary__requirement-stats-link brand--color",to:`/lessons/${a}`,children:u})}):(0,n.jsxs)("div",{children:[h,"\xA0",(0,n.jsxs)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:[o,"%"]})]})]}),t&&(0,n.jsx)("span",{className:"progress-summary__requirement-no-attempts",children:p})]}),(0,n.jsx)(W5,{requirementMet:e,labelA11yRequirementCompleted:f,labelA11yRequirementNotCompleted:g})]}):null,W5=({requirementMet:t,labelA11yRequirementCompleted:e,labelA11yRequirementNotCompleted:s})=>t?(0,n.jsx)(gH,{"aria-label":e,className:"progress-summary__requirement-checkbox-checked"}):(0,n.jsx)("div",{"aria-label":s,className:"progress-summary__requirement-checkbox-empty",role:"img"}),xH=({dueAt:t})=>t?(0,n.jsx)("div",{className:"progress-summary__header-due brand--color brand--border",children:L0(t)}):null;var EH=i(3361),TH=i.n(EH),SH=i(59288);const LH=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"];class bH extends SH.Component{constructor(...e){super(...e),this.state={run:!1,recycle:!0},this.startConfetti=this.startConfetti.bind(this)}startConfetti(){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setState({recycle:!1}),1e4),this.setState({run:!0})}componentDidMount(){clearTimeout(this.timeout),this.timeout=setTimeout(this.startConfetti,900)}shouldComponentUpdate(e,s){return s.recycle!==this.state.recycle||s.run!==this.state.run}componentWillUnmount(){clearTimeout(this.timeout)}render(){const{state:{recycle:e,run:s}}=this;return(0,n.jsx)("div",{className:"progress-summary__confetti",children:(0,n.jsx)(TH(),{width:window.innerWidth,height:window.innerHeight,recycle:e,run:s,numberOfPieces:500,gravity:.4,colors:LH})})}}const yH=bH;var IH=i(2592);const G5=J("progress-summary-card"),NH=({completeLabel:t,isComplete:e,isUrgent:s,completedDate:o,labelDue:r})=>e?(0,n.jsxs)("div",{className:"progress-summary-card__completed-label",children:[t,(0,n.jsx)("span",{className:"progress-summary-card__completed-date",children:o})]}):r?(0,n.jsx)("div",{className:M()("progress-summary-card__due-label",{"brand--color":s}),children:r}):null,jH=({cardImageKey:t=null,className:e,color:s="#ff6602",completedAt:o=null,coverImageKey:r=null,disable:a=!1,durationHidden:c=!1,enrolledAt:d=null,hidden:l=!1,imagesUri:u="",isLearningPath:h=!1,isUrgent:p=!1,labelAssignedToMe:f="",labelDue:g="",labelDuration:v="",labelLearningPath:C="",onClick:x=Ft.lQ,progress:S=0,title:E=""})=>{const b=(0,ze.useLabelsMap)(),L=o!==null,I=(0,m.useCallback)(()=>{a||x?.()},[a,x]),N=(0,m.useCallback)(te=>{ld(te)&&te.preventDefault(),!a&&va(te)&&x?.()},[a,x]),R=t||r,j=`${Math.round(S)}${b?.progressSummaryPercentComplete||"% Complete"}`,O=b?.progressSummaryCompleted||"Completed: ",B=`${$n()(new Date(o)).format("MM/DD/YY")}`,_=G5("card",{disabled:a}),k=G5("image-overlay",{"not-started":!(S||L),"in-progress-completed":S||L});return(0,n.jsxs)("div",{"aria-hidden":l,className:_,onClick:I,children:[(0,n.jsxs)("div",{className:"progress-summary-card__content",children:[(0,n.jsx)("button",{"aria-disabled":a,className:M()("progress-summary-card__title-button",{[e]:e}),tabIndex:l?-1:void 0,role:"link",type:"button",onKeyDown:N,children:(0,n.jsx)("span",{className:"progress-summary-card__title",children:E||b?.progressSummaryNoTitle||"(No Title)"})}),(0,n.jsxs)("div",{className:"progress-summary-card__course-info",children:[h&&(0,n.jsx)("div",{className:"progress-summary-card__hide",children:C}),d&&(0,n.jsx)("div",{className:"progress-summary-card__hide",children:f}),!!S&&!a&&!o&&(0,n.jsx)("span",{className:"progress-summary-card__hide",children:j}),!c&&!L&&(0,n.jsx)("div",{className:"progress-summary-card__duration",children:v}),(0,n.jsx)(NH,{isComplete:L,isUrgent:p,completedDate:B,labelDue:g,completeLabel:O})]})]}),(0,n.jsxs)("div",{className:"progress-summary-card__image-wrap",children:[(0,n.jsx)(IH.A,{alt:"","aria-hidden":"true",b:"fff",className:"progress-summary-card__image",f:"jpg",h:150,imageKey:R,imagesUri:u,s:"cover",style:{backgroundColor:s},w:300}),(0,n.jsx)("div",{className:k}),(0,n.jsx)("div",{className:"progress-summary-card__image-overlay-bottom-bar",children:!!S&&!a&&!L&&(0,n.jsx)("div",{"aria-hidden":"true",className:"progress-summary-card__progress-bar-wrap",children:(0,n.jsx)("div",{className:"progress-summary-card__wrap-light",children:(0,n.jsx)("div",{className:"progress-summary-card__progress-bar",style:{width:`${S}%`}})})})})]})]})},AH=(0,ye._$)("IMAGES_URI"),RH=["cardImageKey","color","coverImageKey","progress","score","title"],K5=(t,e)=>t===1?e:e.concat("s"),tm=Ye()([],["course","course","lessons"]),OH=t=>Se()(As(),Sa()(Jn()(Ue()("type","section"),mh()(on()(Vi(),t),"id"))),tm),PH=t=>{const e=tm(t),{trackingQuizId:s}=t,{score:o}=t;if(s&&e.length){const r=qe()(Ue()("id",s),e),{settings:{passingScore:a}={}}=r;return o<a?r:!1}},MH=Se()(qe()(La()(Ue()("type","section"))),tm),DH=Hc()(2,t=>Se()(tt()("","id"),qe()(Boolean),Ah()([OH(t),PH,MH]))),kH=t=>{const e=$n().duration(t),s=e.hours(),o=e.minutes(),r=`${s} ${K5(s,"hr")}`,a=`${o} min`;return s>=100?"100+ hrs":s>0&&o>0?[r,a].join(" "):s>0?r:a},wH=t=>{const{color:e,learningPathComplete:s,learningPathId:o,isSuccess:r,nextCourse:a,nextCourse:{dueAt:c,courseId:d="",lessonCount:l,lessonsCompleted:u=[],sourceType:h,timeToComplete:p}={}}=t,f=(0,ze.useLabelsMap)(),g=(0,m.useMemo)(()=>DH(u,a),[a,u]);wt()(a.color)&&(a.color=e);const v=Ls()(RH,a),C=(0,m.useCallback)(()=>{h==="PACKAGE"?(top.sessionStorage.setItem("upNextCourseId",d),top.location.assign(`/learning-path/${o}`)):(0,ht.kT)(`${d}/lessons/${g}`)},[d,o,g,h]);return r&&!s&&(0,n.jsx)("div",{className:"progress-summary__lp-next",children:(0,n.jsxs)("div",{className:"progress-summary__lp-next-inner",children:[(0,n.jsxs)("div",{className:"progress-summary__lp-next-label",children:[f?.progressSummaryNextUp||"Next up"," ",(0,n.jsx)(zC,{className:"progress-summary__lp-next-label-icon",decorative:!0})]}),(0,n.jsx)("div",{className:"progress-summary__lp-next-card",children:(0,n.jsx)(jH,{imagesUri:AH,labelCount:`${l} ${K5(l,"lesson")}`,labelDue:L0(c),labelDuration:kH(p),noFavoriteBtn:!0,noCertDownload:!0,onClick:C,...v})})]})})},BH=Pe()("learningPathUpNext"),_H=(0,X.Ng)(BH)(wH),UH=`${(0,ye._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,HH=Se()(us(),Qt()(Pe()("isComplete")),yo()),FH=t=>{const{color:e,course:s={},courseProgress:o={},fetchLpUpNext:r,lessons:a=[],learningPathComplete:c,lpHasFailedQuiz:d}=t,{lessons:l={},percentComplete:u}=o,{dueAt:h,certificateDownload:p,completionCelebration:f,lessonsOnly:g=[],riseComLearningPathId:v,trackingCompletionPercentage:C,trackingQuizId:x}=s,S=Mo(),E=(0,ze.useLabelsMap)(),b=wt()(C)&&wt()(x),L=b?u===100:(0,de.As)(),I=g.length,N=HH(l);(0,m.useEffect)(()=>{v&&r()},[]);const R=(0,m.useMemo)(()=>L?s.completedAt?s.completedAt:new Date:null,[s.completedAt,L]),j=(0,m.useMemo)(()=>qe()(kn()(Ue()("type","quiz"),Ue()("id",x)),a),[x,a]),O=Us(j?.title),B=(0,m.useMemo)(()=>Ye()(100,["settings","passingScore"],j),[j]),_=Ye()(null,["lessons",x,"passed"],o),k=(0,m.useMemo)(()=>Se()(Fs()(Ue()("percentComplete",100),Pe()("score"),We()(null)),Ye()({},["lessons",x]))(o),[o,x]),{outOfAttempts:te}=qa(o,j,x);let F=x?_:!0,K=Js();const Z=M()("progress-summary",{"progress-summary__no-req":b}),xe=s.type===$e.y4,fe=`You've completed ${N} of ${I} lessons.`,we=xe?L?"Complete":"Incomplete":fe;return(0,n.jsx)(Ta,{title:Yc(S+" - Progress Summary"),children:(0,n.jsxs)("div",{className:Z,children:[L&&f&&F&&!K&&(0,n.jsx)(yH,{}),(0,n.jsxs)("header",{className:"progress-summary__header",children:[(0,n.jsx)("h1",{className:"progress-summary__header-title",tabIndex:-1,children:L&&!b&&F?E?.progressSummaryCongratulations||"Congratulations!":E?.progressSummary||"Progress Summary"}),b?(0,n.jsx)("div",{className:"progress-summary__lessons-completed",children:we}):L?(0,n.jsxs)("div",{className:"progress-summary__header-completion-date",children:[F&&(0,n.jsx)("img",{className:"progress-summary__header-trophy",src:UH,alt:"trophy"}),$n()(R).format("MMMM Do, YYYY")]}):(0,n.jsx)(xH,{dueAt:h})]}),(0,n.jsxs)("section",{className:"progress-summary__section",children:[!b&&L&&(0,n.jsx)("div",{className:"progress-summary__requirements-met",children:E?.progressSummaryRequirementsMet||"You've met all the requirements."}),b?!v&&(0,n.jsxs)(Qn,{to:"/",className:"progress-summary__start-over",children:[E?.progressSummaryStartOver||"Start Over",(0,n.jsx)("i",{className:"progress-summary__start-over-icon icon icon-reload"})]}):(0,n.jsxs)("div",{className:"progress-summary__requirements",children:[(0,n.jsx)(vH,{percentComplete:u,trackingCompletionPercentage:C,labelCompletionRequirement:E?.progressSummaryCompletionRequirement,labelPercentCompletion:E?.progressSummaryPercentCompletion,labelYouCompleted:E?.progressSummaryYouCompleted,labelA11yRequirementCompleted:E?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:E?.a11yProgressSummaryRequirementNotCompleted}),(0,n.jsx)(CH,{outOfAttempts:te,quizPassed:_,quizPassingScore:B,quizScore:k,quizTitle:O,trackingQuizId:x,labelQuizRequirement:E?.progressSummaryQuizRequirement,labelScoreOf:E?.progressSummaryScoreOf,labelScoreOfPreposition:E?.progressSummaryScoreOfPreposition,labelViewQuiz:E?.progressSummaryViewQuiz,labelYouScored:E?.progressSummaryYouScored,labelNoAttemptsRemaining:E?.progressSummaryNoAttemptsRemaining,labelA11yRequirementCompleted:E?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:E?.a11yProgressSummaryRequirementNotCompleted})]}),(L||b)&&(0,n.jsxs)("div",{className:"progress-summary__completion-controls",children:[(0,n.jsx)("button",{role:"link",className:"progress-summary__btn-back progress-summary__completion-control",onClick:ht.NS,type:"button",children:E?.progressSummaryBackToLearning||"Back to my learning"}),L&&(!v&&p||v&&c)&&p&&F&&!d&&(0,n.jsx)("span",{className:"progress-summary__completion-control",children:(0,n.jsx)(uo,{})})]})]}),L&&!!v&&(0,n.jsx)(_H,{color:e,learningPathId:v})]})})},zH=(t,{course:{riseComCourseId:e,riseComLearningPathId:s}})=>({fetchLpUpNext:Se()(t,fH.R,We()({courseId:e,learningPathId:s}))}),VH=Se()(Ls()(["learningPathComplete","lpHasFailedQuiz"]),Pe()("learningPathUpNext")),WH=(0,X.Ng)(VH,zH)(FH),$5=({contentClassName:t,...e})=>(0,n.jsx)(No,{type:Su.type,children:(0,n.jsx)(no,{type:Su.type,children:(0,n.jsx)(er,{children:(0,n.jsx)(oo,{className:t,type:Su.type,children:(0,n.jsx)(WH,{...e})})})})}),Su={id:"progress-summary",type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"};var GH=i(28507),sm=i.n(GH),KH=i(77778),Zi=i.n(KH),$H=i(81587),Q5=i.n($H),QH=i(48701),ZH=i.n(QH),YH=i(82638),Lu=i.n(YH),XH=i(45787),Z5=i.n(XH);const JH=Se()(ma(),Oa()),qH=Ye()(!1,["settings","isCaseSensitive"]),Y5=t=>Fs()(We()(qH(t)),ma(),JH),eF=({item:t,itemProgress:e,getL10nValue:s})=>(0,Ft.Ve)(t,tt()([],"answers"),ws()(Se()(Y5(t),s,Pe()("title"))),on()((0,Ft.rq)(Y5(t),Pe()("text"),e))),tF=({item:t,itemProgress:e,getL10nValue:s})=>Pe()("text",e)&&eF({item:t,itemProgress:e,getL10nValue:s}),sF=({itemProgress:t})=>{const e=t?.matches??{};return Object.entries(e).every(([s,o])=>s===o)},nF=({answers:t,correct:e})=>Ts()(Ue()("id",e),t),oF=({item:t,itemProgress:e})=>ps()(Pe()("selectedIndex",e),nF(t)),X5=pl()(Un()),rF=Eo()(Ts()),aF=t=>(0,Ft.Ve)(t,tt()([],"corrects"),ws()(Se()(rF(tt()([],"answers",t)),Ue()("id"))),Qt()(ZH()(0)),Yo()(X5)),iF=t=>Yo()(X5,tt()([],"selectedIndices",t)),cF=({item:t,itemProgress:e})=>ps()(iF(e),aF(t)),lF=({item:t,itemProgress:e})=>Pe()("selectedIndices",e)&&cF({item:t,itemProgress:e}),dF=t=>e=>{const s=!t.progress?.items?.[e.id]?.isComplete;return Ye()(!1,["settings","shuffleAnswerChoices"],t)&&s},uF=t=>Rs()([[dF(t),Jt()({answers:Cu()})],[hn(),Un()]]),hF=t=>Jt()({items:ws()(uF(t))})(t),mF=t=>{const{items:e,progress:s}=t,{items:o}=s||{},r=Se()(String,Pe()("id")),a=x5(o,Pe()("isComplete")),d=E5(r,a)(e),l=Se()(gs(),Pe()("isComplete")),u=x5(o,l),p=E5(r,u)(e);return d.concat(Cu()(p))},pF=bo()("items",mF),fF=t=>Se()(il()(qe(),t),Ue()("id"),Pe()("id")),J5=Es()(t=>Q5()(fF(t),Un())),gF=t=>Se()(Lu()(Rt()),J5(t)),vF=St()(Xp()(Pe()("answers"),Pe()("answers")),Lu()(Es()(t=>ws()(gF(t)))),Br()("answers")),CF=t=>St()(J5(t),Q5()(vF,Lu()(Rt())),Lu()(Rt())),xF=il()(t=>ws()(CF(t))),EF=Qt()(Ue()("drawn",!0)),bu=Ts()(Ue()("type",yt.Ay.DRAW_FROM_QUESTION_BANK)),TF=({items:t,currentItems:e,progress:s})=>{let o=[...t],r=bu(o);for(;r!==-1;){const[c,d]=Z5()(r,o),l=s6()(d),u=EF(e);o=[...c,...u,...l],r=bu(o)}const a=q5({items:o,progress:s});return{items:o,progress:a}},SF=t=>(e,{id:s},o)=>{const{originalItemProgress:r}=t;let a={};r&&(a=r[o]||{});const c=Se()(qe()(Ue()("index",o)),yo())(t.items);return e[s]={...a,...c,id:s,index:o},e},q5=({questionIndexList:t,items:e,progress:s})=>({...s,questionsDrawn:!0,questionList:t,items:e.reduce(SF(s),{})}),eg=t=>{const{id:e,items:s,progress:o,initializeDrawnQuizQuestions:r}=t;let a=[...s],c=bu(a);const d=[];let l=0;for(;c!==-1;){const[h,p]=Z5()(c,a),[f,...g]=p,{drawCount:v,questions:C}=f,x=[],S=[],E=[];for(;x.length<v;)if(o.questionsDrawn){const b=o.questionList[l];hu()(L=>{const I=C[L];x.push({...I,drawn:!0,id:`${f.id}-${I.id}`})},b),E.push(...b)}else{const b=F6({drawCount:v,questions:C,drawnQuestions:S});x.push({...b,drawn:!0,id:`${f.id}-${b.id}`}),S.push(b.id),E.push(b.index)}a=[...h,...x,...g],d.push(E),l++,c=bu(a)}const u=q5({questionIndexList:d,items:a,progress:o});return r({lessonId:e,lessonProgress:u}),{items:a,progress:u}},LF=Ye()(!1,["settings","randomizeQuestionOrder"]),tg=St()(sn()(LF,pF),hF,Pe()("items")),nm=(0,y.shape)({image:(0,y.shape)({key:y.string,originalUrl:y.string,sourcedFrom:(0,y.oneOf)(["DEFAULT","USER","LIBRARY","AI"]),src:y.string,thumbnail:y.string,type:y.string,useCrushedKey:y.bool})}),bF=(0,y.shape)({themeId:y.string,coverImage:y.string,navigation:y.bool,showAuthor:y.bool,allowSearch:y.bool,colorAccent:y.string,blockCorners:y.string,buttonScheme:y.string,uiTypefaceId:y.string,coverPageType:y.string,bodyTypefaceId:y.string,navigationType:y.string,blockPaddingTop:y.number,coverImageAlpha:y.number,navigationStyle:y.string,showLessonCount:y.bool,lessonHeaderSize:y.string,buttonInlineStyle:y.string,coverImageDefault:y.string,headingTypefaceId:y.string,lessonHeaderColor:y.string,lessonHeaderImage:y.string,lessonHeaderStyle:y.string,sidebarStartsOpen:y.bool,blockPaddingBottom:y.number,markLessonsComplete:y.bool,animateBlockEntrance:y.bool,navigationRestricted:y.bool,buttonNavigationStyle:y.string,showNavigationButtons:y.bool,compactShowLessonCount:y.bool,lessonHeaderImageAlpha:y.number,lessonHeaderImageColor:y.string,enableVideoPlaybackSpeed:y.bool,blockNavigationType:y.string,blockNavigationStyle:y.string,progressIndicatorStyle:y.string}),yF=(0,y.shape)({activeEdition:y.number,activeLMS:y.number,completeWith:(0,y.oneOf)(["reporting","quiz","storyline"]),completionPercentage:y.number,enableExitCourse:y.bool,exportType:(0,y.oneOf)(["lms","pdf","raw","business-content"]),format:(0,y.oneOf)(["zip"]),identifier:y.string,quizId:y.string,quizComplete:y.bool,reporting:(0,y.oneOf)(["passed-incomplete"]),shareId:y.string,storylineId:y.string,storylineComplete:y.bool,target:(0,y.oneOf)(["scorm12","scorm2004","aicc","xapi","cmi5"]),targetName:(0,y.oneOf)(["SCORM 1.2","SCORM 2004","AICC","xAPI","cmi5"]),title:(0,y.oneOfType)([y.string,(0,y.shape)({l10nId:y.string})]),resetLearnerData:y.bool}),om=y.string,On=y.string,rm=t=>(0,y.oneOfType)([t,(0,y.shape)({l10nId:y.string})]),Iue=(0,y.shape)({id:On,originalId:On,author:On,selectedAuthorId:On,color:y.string,navigationMode:y.string,title:rm(y.string),sharePassword:y.string,description:rm(y.string),shareId:On,copyOf:y.string,order:y.string,fonts:y.object,media:nm,coverImage:(0,y.shape)({alpha:y.number,displaySidebar:y.bool,media:nm}),lessons:(0,y.arrayOf)(On),jobs:(0,y.arrayOf)(On),labelSetId:On,deleted:y.bool,createdAt:om,updatedAt:om,markComplete:y.bool,isDefault:y.bool,ready:y.bool,reviewId:On,exportSettings:yF,headingTypefaceId:On,bodyTypefaceId:On,uiTypefaceId:On,sidebarMode:y.string,tenantId:On,showLessonCount:y.bool,showNavigationButtons:y.bool,allowSearch:y.bool,authorPermissions:(0,y.arrayOf)(y.string),animateBlockEntrance:y.bool,transferredAt:om,allowCopy:y.bool,enableVideoPlaybackSpeed:y.bool,jobType:y.string,partnerContentId:On,cardImage:nm,theme:bF,lessonHeaderImage:y.object,overlayNavigationImage:y.object,type:y.string,features:y.object,courseId:y.string,typefaces:(0,y.objectOf)(y.string)}),{FILL_IN_THE_BLANK:Yi,MATCHING:Xi,MULTIPLE_CHOICE:Ll,MULTIPLE_RESPONSE:bl}=yt.Ay,{ANY:IF,CHOICE:NF,CORRECT_INCORRECT:jF}=Kf,AF=3,sg=ot()("quiz-item__"),Ji=Ye()(0,["progress","activeIndex"]),RF=Se()(us(),uh(),tt()({},"matches"));class OF extends ie().Component{constructor(e){super(e),this.getSelection=this.getSelection.bind(this),this.submitAndSetNextIndex=this.submitAndSetNextIndex.bind(this),this.onChoiceSelect=this.onChoiceSelect.bind(this),this.onFillInChange=this.onFillInChange.bind(this),this.onMatchSet=this.onMatchSet.bind(this),this.onNextClick=this.onNextClick.bind(this),this.onResponseToggle=this.onResponseToggle.bind(this),this.onSubmit=this.onSubmit.bind(this),this.state={errorIncomplete:!1,startTime:Date.now(),matches:{}},this.wrapper=ie().createRef(),this.id=rt()("qi-")}componentDidUpdate(e){const{isReduceMotion:s}=this.props;this.isNewlyActive({prevProps:e})&&(this.scrollTop(),this.setState({startTime:Date.now()})),s||this.scrollActionsIfComplete({prevProps:e})}componentWillUnmount(){clearTimeout(this.timeoutScrollActionsIfComplete)}static propTypes={enableVideoPlaybackSpeed:A().bool,getClassName:A().func,hasStart:A().bool,id:A().string.isRequired,index:A().number,isReduceMotion:A().bool.isRequired,isTimedQuiz:A().bool,item:A().object.isRequired,items:A().arrayOf(A().object),labels:Qi,onChoiceSelect:A().func,onFillInChange:A().func,onMatchSet:A().func,onResponseToggle:A().func,prefersKeyboardNavigation:A().bool,progress:A().object,quizTop:A().number,reportAnswer:A().func,retryAttempts:A().number,scrollId:A().string,setNextIndex:A().func,settings:A().object,showNextButton:A().bool,submitAction:A().func,title:rm(A().string.isRequired)};static get defaultProps(){return{getClassName:()=>{},labels:{},onChoiceSelect:()=>{},onFillInChange:()=>{},onMatchSet:()=>{},onResponseToggle:()=>{},reportAnswer:()=>{},retryAttempts:0,setNextIndex:()=>{},settings:{revealAnswers:yt.iV.ALL},showNextButton:!0,submitAction:()=>[]}}getCanSubmit({itemProgress:e}){const{item:s}=this.props;switch(s.type){case Yi:return ch(Pe()("text",e));case Xi:return RF(e)===us()(Pe()("answers",s));case bl:return Se()(kn()(ch,Ma),Pe()("selectedIndices"))(e);case Ll:default:return ch(Pe()("selectedIndex",e))}}getFeedback({isCorrect:e,selectedIndex:s}){const{item:o}=this.props,{answers:r,feedback:a,feedbackCorrect:c,feedbackIncorrect:d,feedbackType:l}=o;switch(l){case NF:return Ye()("",[s,"feedback"],r);case jF:return e?c:d;case IF:default:return a}}getIndex(){return this.props.hasStart?Zt()(this.props.index):this.props.index}getIsComplete({itemProgress:e}){return tt()(!1,"isComplete",e)}getIsDoneCard(){const e=this.getIndex(),s=Ji(this.props);return e<s}getIsCorrect({itemProgress:e}){const{item:s,getL10nValue:o}=this.props;switch(s.type){case Yi:return tF({item:s,itemProgress:e,getL10nValue:o});case Xi:return sF({itemProgress:e});case bl:return lF({item:s,itemProgress:e});case Ll:default:return oF({item:s,itemProgress:e})}}getItemProgress({props:e}){return Ye()({},["items",e.item.id],e.progress)}getSelection({itemProgress:e}){const{type:s}=this.props.item;switch(s){case Yi:return e.text;case Xi:return e.matches;case bl:return e.selectedIndices;case Ll:default:return e.selectedIndex}}hasNoBorder(){return on()(this.props.item.type,[Yi,Xi])}submitAndSetNextIndex(e=()=>[],s={}){const{id:o,setNextIndex:r}=this.props;e(s),r(o)}isNewlyActive({prevProps:e}){const s=Ji(this.props),o=Ji(e),r=this.getIndex();return o!==s&&r===s}onChoiceSelect({selectedIndex:e}){const{id:s,item:o,onChoiceSelect:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:s,itemId:a,selectedIndex:e})}onFillInChange(e){const{id:s,item:o,onFillInChange:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:s,itemId:a,text:e})}onMatchSet(e){const{id:s,item:o,onMatchSet:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:s,itemId:a,matches:e})}onNextClick(e=()=>[],s={}){at.pause(),this.submitAndSetNextIndex(e,s)}onNextFeedbackClick(e){e&&this.onNextClick()}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}onResponseToggle({optionIndex:e}){const{id:s,item:o,onResponseToggle:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:s,itemId:a,selectedIndex:e})}onSubmit({canSubmit:e,isCorrect:s,itemProgress:o}){return r=>{r.preventDefault();const{getL10nRecursive:a,id:c,item:d,reportAnswer:l,retryAttempts:u,settings:h,submitAction:p,title:f}=this.props;if(!e){switch(this.setState({errorIncomplete:!0}),d.type){case Yi:this.wrapper.current?.querySelector("input")?.focus();break;case bl:case Ll:this.wrapper.current?.querySelector("input")?.focus();break;case Xi:this.wrapper.current?.querySelector("button")?.focus();break;default:break}return}const{startTime:g}=this.state,{id:v}=d,{revealAnswers:C,passToContinue:x}=h,S={startTime:g,stopTime:Date.now()},E=tt()(-1,"retryCount",h),b=parseInt(E,10),L=parseInt(u,10),I=ps()(b,L),N=a({duration:S,id:c,isCorrect:s,item:d,itemProgress:o,retryAttempts:u,title:f});l(N);const R={finalRetryAttempt:I,lessonId:c,isCorrect:s,itemId:v,passToContinue:x,revealAnswers:C};if(C===yt.iV.ALL||C===yt.iV.INCORRECT)return p(R);this.onNextClick(p,R)}}render(){return this.props.isCard?this.renderCard():this.renderDefault()}renderCard(){const{getClassName:e,settings:s}=this.props,{correctAnswerColor:o,incorrectAnswerColor:r}=s,a=this.getIndex(),c=Ji(this.props),d=a===c,l=this.getItemProgress({props:this.props}),u=this.getIsComplete({itemProgress:l}),h=this.getIsCorrect({itemProgress:l}),p=this.props.isTimedQuiz,f=e(a),v={"--color-feedback-icon":h?o:r,"--color-matching-feedback-bubble-bg":r,"--color-multiple-choice-complete-border":r,"--color-multiple-choice-correct-border":o,"--color-multiple-response-correct-border":o,"--color-multiple-response-incorrect-border":r,"--color-multiple-response-option-check":u?o:void 0,"--color-quiz-option-check":o,"--color-x-fill":r};return(0,n.jsx)("div",{inert:d?void 0:!0,className:f,children:(0,n.jsx)("div",{className:sg("card-wrap"),children:(0,n.jsx)(Df,{isActive:d,isComplete:u,isTimedQuiz:p,style:v,children:(0,n.jsx)("div",{style:d||u?void 0:{display:"none"},children:this.renderItem()})})})})}renderDefault(){return(0,n.jsx)("div",{className:sg("wrap"),children:this.renderItem()})}renderItem(){const{enableVideoPlaybackSpeed:e,hasStart:s,isReduceMotion:o,isQuestionBankQuiz:r,item:a,items:c,labels:d,onTakeAgain:l,progress:u,settings:h,showNextButton:p}=this.props,{errorIncomplete:f}=this.state,{quizAcceptableResponses:g,quizAnswerPlaceholder:v,quizCorrect:C,quizIncorrect:x,quizNext:S,quizRequireAnswer:E,quizRestart:b,quizQuestion:L,quizSubmit:I}=d,{id:N,media:R,title:j,settings:O}=a,{correctAnswerColor:B,correctAnswerColorContrast:_,incorrectAnswerColor:k,incorrectAnswerColorContrast:te,revealAnswers:F=yt.iV.NONE}=h,K=this.getIndex(),Z=Ji(this.props),xe=K===Z,fe=this.getItemProgress({props:this.props}),oe=this.getIsComplete({itemProgress:fe}),we=this.getIsCorrect({itemProgress:fe}),Ae=F==yt.iV.ALL||F==yt.iV.INCORRECT,_e=xe&&oe&&Ae,Qe=xe&&!oe&&this.getCanSubmit({itemProgress:fe}),pt=this.onSubmit({canSubmit:Qe,isCorrect:we,itemProgress:fe,item:a}),ls=Pe()("selectedIndex",fe),nt=this.getFeedback({isCorrect:we,selectedIndex:ls}),Ce=`q-${N}`,Ne=this.getSelection({itemProgress:fe}),Ke=M()("quiz-card__retake-container",{"quiz-card__retake-container--active":oe}),He=M()("quiz-card__retake","brand--hoverColor",{"quiz-card__retake--active":oe});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(vM,{isActive:xe,labels:d,num:s?K:K+1,quizQuestion:L,total:us()(c)}),(0,n.jsx)(CM,{allowTabNavigation:xe,id:Ce,value:j}),(0,n.jsx)(zf,{allowTabNavigation:xe,enableVideoPlaybackSpeed:e,index:String(K),labels:d,media:R,settings:O}),(0,n.jsx)(_f,{hasNoBorder:this.hasNoBorder(),children:(0,n.jsx)("div",{ref:this.wrapper,children:this.renderType({columnBehavior:O?.columnBehavior,correctAnswerColor:B,correctAnswerColorContrast:_,incorrectAnswerColor:k,incorrectAnswerColorContrast:te,isActive:xe,isComplete:oe,isCorrect:we,itemProgress:fe,labels:d,onSubmit:pt,revealAnswers:F,questionHtmlId:Ce,quizAcceptableResponses:g,quizAnswerPlaceholder:v})})}),(0,n.jsx)("div",{"aria-live":"assertive",className:"quiz-card__validations",children:f&&(0,n.jsxs)("div",{children:[(0,n.jsx)(Lt,{className:"quiz-card__validation-icon",name:"alert-circle"}),(0,n.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:E})]})}),(0,n.jsx)(Bf,{canProceed:this.state.forceShowFeedback||_e,feedbackRef:dt=>{this.feedback=dt},feedbackValue:this.state.forceFeedbackMessage||nt,isActive:xe,isComplete:oe,isCorrect:this.state.forceShowFeedbackCorrect||we,item:a,labels:d,progress:fe,quizCorrect:C,quizIncorrect:x,revealAnswers:F,selection:Ne}),(0,n.jsx)(Mf,{allowNext:!l,canProceed:_e,canSubmit:Qe,isReduceMotion:o,item:a,onNext:p?this.onNextFeedbackClick.bind(this,xe):null,onSubmit:pt,quizNext:u.percentComplete===100&&r?b:S,quizSubmit:I}),l&&(0,n.jsx)("div",{className:Ke,children:(0,n.jsx)("button",{className:He,onClick:l,type:"button",children:(0,n.jsxs)("div",{className:"quiz-card__retake-content",children:[(0,n.jsx)("div",{className:"quiz-card__retake-text brand--ui",children:"TAKE AGAIN"}),(0,n.jsx)("i",{className:"quiz-card__retake-icon icon icon-reload"})]})})})]})}renderMCOptionText(e,{title:s}){return(0,n.jsx)(Nt,{allowTabNavigation:e,className:"quiz-multiple-choice-option__label",value:s})}renderMROptionText(e,{title:s}){return(0,n.jsx)(Nt,{allowTabNavigation:e,component:"span",value:s})}renderType(e){const{columnBehavior:s,correctAnswerColor:o,correctAnswerColorContrast:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:c,isActive:d,isComplete:l,isCorrect:u,isReduceMotion:h,itemProgress:p,labels:f,onSubmit:g,revealAnswers:v,questionHtmlId:C,quizAcceptableResponses:x,quizAnswerPlaceholder:S}=e,{color:E,item:b,prefersKeyboardNavigation:L}=this.props,{answers:I,correct:N,corrects:R,type:j}=b,O=d&&!l,B=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(j){case Yi:return(0,n.jsx)($f,{allowTabNavigation:d,correctAnswerColor:o,correctAnswerColorContrast:r,errorMessageId:B,incorrectAnswerColor:a,incorrectAnswerColorContrast:c,isComplete:l,isCorrect:u,labels:f,onChange:this.onFillInChange,onEnterToSubmit:g,options:I,revealAnswers:v,questionHtmlId:C,quizAcceptableResponses:x,quizAnswerPlaceholder:S,value:tt()("","text",p)});case Xi:return(0,n.jsx)(Xf,{answers:I,columnBehavior:s,correctAnswerColor:o,correctAnswerColorContrast:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:c,isActive:d,isComplete:l,matches:p?.matches??{},onChange:this.onMatchSet,prefersKeyboardNavigation:L,revealAnswers:v});case bl:return(0,n.jsx)(qf,{allowTabNavigation:d,correctAnswerColor:o,correctIds:R,errorMessageId:B,incorrectAnswerColor:a,isComplete:l,isCorrect:u,labels:f,onChange:this.onResponseToggle,onEnterToSubmit:g,options:I,questionHtmlId:C,renderOptionText:this.renderMROptionText.bind(this,d),revealAnswers:v,selectedIndices:Pe()("selectedIndices",p)});case Ll:default:return(0,n.jsx)(Jf,{allowTabNavigation:O,color:E,correctAnswerColor:o,correctId:N,errorMessageId:B,incorrectAnswerColor:a,isComplete:l,isCorrect:u,isReduceMotion:h,labels:f,onChange:this.onChoiceSelect,onEnterToSubmit:g,options:I,questionHtmlId:C,renderOptionText:this.renderMCOptionText.bind(this,d),revealAnswers:v,selectedIndex:Pe()("selectedIndex",p)})}}scrollActionsIfComplete({prevProps:e}){const{isReduceMotion:s,scrollId:o,settings:r}=this.props,{revealAnswers:a=yt.iV.NONE}=r,c=this.getIndex(),d=Ji(this.props);if(!(c===d)||a===yt.iV.NONE)return;const u=this.getItemProgress({props:e}),h=this.getIsComplete({itemProgress:u}),p=this.getItemProgress({props:this.props}),f=this.getIsComplete({itemProgress:p}),g=()=>{const{offsetHeight:v,offsetTop:C}=this.feedback,x=v+C;document.getElementById(o||"page-wrap")?.scrollTo({top:x,behavior:s?"instant":"smooth"})};!h&&f&&(this.timeoutScrollActionsIfComplete=setTimeout(g,750))}scrollTop(){const{isReduceMotion:e,quizTop:s,scrollId:o}=this.props,r=s||AF;document.getElementById(o||"page-wrap")?.scrollTo({top:r,behavior:e?"instant":"smooth"})}}const PF=Se()(cf)(OF),ng=(0,m.createContext)({handleExpiredQuiz:Ft.lQ,hideTimer:Ft.lQ,quizTime:0,resetQuizTimer:Ft.lQ,timerDuration:0,timerHidden:!1,timerRunning:!1});function MF({children:t,handleExpiredQuiz:e=()=>{},isTimedQuiz:s,courseProgress:o,setQuizLessonTimeRemaining:r=()=>{},timerDuration:a=10}){const c=(0,m.useRef)(void 0),[d,l]=(0,m.useState)(),[u,h]=(0,m.useState)(!1),[p,f]=(0,m.useState)(!1),[g,v]=(0,m.useState)(),C=(0,m.useMemo)(()=>Number(a),[a]),{activeIndex:x,endIndex:S,lessonId:E,lessonProgress:b,startIndex:L}=(0,m.useMemo)(()=>{const Z=o?.currentLesson,xe=o?.lessons?.[Z],fe=xe?.activeIndex||0,oe=Object.keys(xe?.items||{}).length+1;return{activeIndex:fe,lessonId:Z,endIndex:oe,lessonProgress:xe,startIndex:0}},[o]),I=(0,as.A)(E),N=(0,as.A)(x),R=(0,m.useCallback)(()=>{l(C*60)},[C]),j=(0,m.useCallback)(()=>{l(Z=>Z-1)},[l]),O=(0,m.useCallback)(()=>{h(!0),c.current||(c.current=setInterval(j,1e3))},[j,h]),B=(0,m.useCallback)(Z=>{f(Z!==void 0?Z:!p)},[p]),_=(0,m.useCallback)(()=>{h(!1),c.current&&(c.current=clearInterval(c.current))},[h]),k=(0,m.useCallback)(()=>{d&&g!==void 0&&r({lessonId:g,timeRemaining:d})},[g,d,r]),te=(0,m.useCallback)(()=>{k(),l(void 0)},[l,k]),F=(0,m.useCallback)(()=>l(b.timeRemaining||C*60),[b,C,l]);(0,m.useEffect)(()=>{if(!s)return;const Z=I!==E,xe=Z&&d,fe=Z&&s;s&&!Z&&g!==E&&v(E),xe&&te(),fe&&F()},[s,g,E,I,d,F,te]),(0,m.useEffect)(()=>{if(s)switch(x){case L:_();break;case S:R(),_();break;default:O(),N!==x&&I===E&&k()}},[x,S,s,E,N,I,R,L,O,_,k]),(0,m.useEffect)(()=>{s&&d<1&&_()},[s,d,_]);const K=(0,m.useMemo)(()=>({handleExpiredQuiz:e,hideTimer:B,quizTime:d,resetQuizTimer:R,timerDuration:C,timerHidden:p,timerRunning:u}),[e,B,d,R,C,p,u]);return(0,n.jsx)(ng.Provider,{value:K,children:t})}const og=()=>(0,m.useContext)(ng),DF=t=>t.isTimedQuiz?(0,n.jsx)(MF,{...t,children:t.children}):(0,n.jsx)(n.Fragment,{children:t.children}),Tn=J("quiz-timer"),am=(t,e)=>`${t.toString().padStart(2,"0")}:${e.toString().padStart(2,"0")}`,kF=t=>{const e=Math.floor(t/60),s=t%60;return am(e,s)},rg=t=>{const e=Math.floor(t/60),s=t%60;return am(e,s)},wF=t=>am(t,0),ag=({area:t,exitCourseEnabled:e=!1,isStartScreenActive:s=!1,isEndScreenActive:o=!1,labelQuizTimerElapsed:r,labelQuizTimerExpired:a,labelQuizTimerExpiredAction:c,labelQuizTimerExpiredMessage:d,labelQuizTimerHide:l,labelQuizTimerLimit:u,labelQuizTimerMinute:h,labelQuizTimerMinutePlural:p,labelQuizTimerRemaining:f,labelQuizTimerShow:g,timerDisplay:v=yt.sS.REMAINING,timerEnabled:C=!1})=>{const[x,S]=(0,m.useState)(!1),{hideTimer:E,quizTime:b,timerDuration:L,timerHidden:I,timerRunning:N,handleExpiredQuiz:R}=og(),j=(0,m.useMemo)(()=>L*60,[L]),{isCover:O,isHeader:B,isHidden:_}=(0,m.useMemo)(()=>({isCover:t==="cover",isHeader:t==="header",isHidden:v===yt.sS.HIDE_TIMER}),[t,v]),k=(0,m.useMemo)(()=>s&&!O,[s,O]),te=()=>{S(!1),R()};if((0,m.useEffect)(()=>{N&&b===0&&S(!0)},[N,b]),!C||k||o)return null;const F={"header-area":B,"cover-area":O,"hide-timer":_,"exit-course":e},K={display:[O,B&&!s].some(Un())?null:"none"},Z=()=>({[yt.sS.SUMMARY]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:Tn("label"),children:[u,":"]}),(0,n.jsxs)("div",{className:Tn("value"),children:[L," ",L===1?h:p]})]}),[yt.sS.REMAINING]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:Tn("label"),children:[f,":"]}),(0,n.jsx)("div",{className:Tn("value"),children:kF(b)})]}),[yt.sS.ELAPSED]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:Tn("label"),children:[r,":"]}),(0,n.jsx)("div",{className:Tn("value"),children:rg(j-b)})]}),[yt.sS.ELAPSED_TOTAL]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:Tn("label"),children:[r,":"]}),(0,n.jsxs)("div",{className:Tn("value"),children:[rg(j-b)," / ",wF(L)]})]})})[O?yt.sS.SUMMARY:v];return(0,n.jsxs)("div",{className:Tn(F),style:K,children:[B&&I?(0,n.jsxs)("button",{type:"button",className:Tn("hide"),onClick:()=>E(!1),children:[(0,n.jsx)(Lt,{className:Tn("icon"),name:"stopwatch-regular"}),g]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:Tn("time"),children:[(0,n.jsx)(Lt,{className:Tn("icon"),name:"stopwatch-regular"}),(0,n.jsx)("div",{className:Tn("desc"),children:Z()})]}),B&&(0,n.jsx)("button",{type:"button",className:Tn("hide"),onClick:()=>E(!0),children:l})]}),!O&&x&&Yn.createPortal((0,n.jsxs)(x1,{className:"quiz-timer-modal",disableBackgroundScroll:!0,heading:a,hideCloseButton:!0,onCancel:te,onClose:te,onOverlayClick:()=>{},children:[(0,n.jsx)("p",{children:d}),(0,n.jsx)("button",{type:"button",onClick:te,children:c})]}),kr({childType:"dialog"}))]})};var BF=i(59288);const _F=t=>({start:t<2?0:t-2,end:t+2}),yu=Ye()(0,["progress","activeIndex"]),im=t=>e=>M()("quiz-item__card",{"quiz-item__card--active":e===t,"quiz-item__card--done":e<t,"quiz-item__card--next":e===t+1,"quiz-item__card--penultimate":e===t+2,"quiz-item__card--future":e>t+2}),cm=Ye()(0,["progress","retryAttempts"]),UF=Js();class HF extends BF.Component{constructor(e){super(e);const{initializeDrawnQuizQuestions:s}=e,o=eg({...e,initializeDrawnQuizQuestions:s}),r={...e,...o};this.state={items:tg(r),progress:r.progress,isQuizCover:!1,hasNavMenu:!1,course:e.course,lesson:e.course?.lessons?.find(a=>a.id===e.lessonProgress?.id)}}UNSAFE_componentWillReceiveProps(e){const s=cm(this.props),o=cm(e);if(s!==o){const r=eg({...e}),a={...e,...r};this.setState({items:tg(a),progress:a.progress})}else{const{items:r,progress:a}=TF({...e,currentItems:this.state.items}),c=xF(this.state.items,r);this.setState({items:c,progress:a})}}static get defaultProps(){return{initializeDrawnQuizQuestions:Ft.lQ}}componentDidUpdate(e,s){}render(){const{labels:e,quizEnd:s,quizHeader:o,settings:r,isQuestionBankQuiz:a}=this.props,{course:c,items:d}=this.state,l=yu(this.state),{start:u,end:h}=_F(l),p=d.slice(u,h),f=!a&&l===0,g=!a&&l===d.length+1;return(0,n.jsxs)("section",{className:"quiz","data-quiz":!0,children:[r?.timer&&(0,n.jsx)(ag,{area:"header",exitCourseEnabled:c?.lmsOptions?.enableExitCourse,isStartScreenActive:f,isEndScreenActive:g,labelQuizTimerElapsed:e?.quizTimerElapsed,labelQuizTimerExpired:e?.quizTimerExpired,labelQuizTimerExpiredAction:e?.quizTimerExpiredAction,labelQuizTimerExpiredMessage:e?.quizTimerExpiredMessage,labelQuizTimerHide:e?.quizTimerHide,labelQuizTimerLimit:e?.quizTimerLimit,labelQuizTimerMinute:e?.quizTimerMinute,labelQuizTimerMinutePlural:e?.quizTimerMinutePlural,labelQuizTimerRemaining:e?.quizTimerRemaining,labelQuizTimerShow:e?.quizTimerShow,timerDisplay:r?.timerDisplay,timerEnabled:r?.timer}),(0,n.jsxs)("div",{className:"quiz__wrap",children:[o&&l<2?this.renderStart():null,p.map(this.renderItem.bind(this,u)),s&&this.renderEnd()]})]})}renderEnd(){const{quizEnd:e}=this.props,{items:s}=this.state,o=yu(this.state),r=im(o),a=s.length+1;return(0,n.jsx)("div",{inert:a===o?void 0:!0,className:r(a),children:(0,n.jsx)("div",{className:"quiz__item-wrap",children:e(s)})})}getQuizTop(){return document.querySelector(".lesson-nav--previous")?.clientHeight}renderItem(e,s,o){const{color:r,enableVideoPlaybackSpeed:a,id:c,isQuestionBankQuiz:d,labels:l,reportAnswer:u,onChoiceSelect:h,onFillInChange:p,onMatchSet:f,onResponseToggle:g,onSetIndex:v,onSubmit:C,prefersKeyboardNavigation:x,progress:S,quizHeader:E,settings:b,title:L}=this.props,{items:I}=this.state,N=yu(this.state),R=im(N),j=this.getQuizTop();return(0,n.jsx)(PF,{color:r,enableVideoPlaybackSpeed:a,getClassName:R,hasStart:!!E,id:c,index:o+e,isCard:!0,isQuestionBankQuiz:d,isReduceMotion:UF,isTimedQuiz:b?.timer,item:s,items:I,labels:l,onChoiceSelect:h,onFillInChange:p,onMatchSet:f,onResponseToggle:g,prefersKeyboardNavigation:x,progress:S,quizTop:j,reportAnswer:u,retryAttempts:cm({progress:S}),scrollId:"page-wrap",setNextIndex:v,settings:b,submitAction:C,title:L},`item-${s.id}`)}renderStart(){const{quizHeader:e}=this.props,{items:s}=this.state,o=yu(this.state),r=im(o);return(0,n.jsx)("div",{className:r(0),children:(0,n.jsx)("div",{className:"quiz__item-wrap",children:e(s)})})}}const FF=HF;var Iu=i(36704),Qs=i(6408),zF=i(59288);class qi extends zF.PureComponent{constructor(e){super(e),this.animationTimeout=null,this.state={counted:!1}}static get defaultProps(){return{canvasWidth:590,canvasHeight:500,onAnimationDone:Ft.lQ,score:0}}static easeInOutCubic(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}static easeInOutQuad(e){return e<.5?2*e*e:-1+(4-2*e)*e}componentWillUnmount(){this.resetCanvas(),this.resetAnimationTimeout()}componentDidMount(){this.props.atEnd&&this.props.complete&&(this.odo(),this.animationTimeout=setTimeout(()=>{this.setState({counted:!0}),this.props.onAnimationDone()},4e3))}componentDidUpdate(e,s){e.atEnd&&!this.props.atEnd?(this.resetCanvas(),this.resetAnimationTimeout(),this.setState({counted:!1})):!e.atEnd&&this.props.atEnd&&!this.state.counted&&this.props.complete&&(this.odo(),this.animationTimeout=setTimeout(()=>{this.setState({counted:!0}),this.props.onAnimationDone()},4e3)),!s.counted&&this.state.counted&&(this.props.isPass?this.pass():this.fail())}render(){const{canvasHeight:e,canvasWidth:s,passingScore:o,isPass:r,isRTL:a,quizPassing:c,quizScore:d,scoreLabel:l}=this.props,{counted:u}=this.state,h=a?`%${o}`:`${o}%`,p=M()("odometer__score brand--ui",{"odometer__score--pass":u&&r,"odometer__score--fail":u&&r===!1}),f=M()("odometer__score-percent",{"odometer__score-percent--hidden":u});return(0,n.jsxs)("div",{className:"odometer",children:[(0,n.jsx)("canvas",{className:"odometer__canvas",id:"odometer",width:s,height:e}),(0,n.jsx)("canvas",{className:"odometer__fail",id:"fail",width:"170",height:"170"}),(0,n.jsx)("canvas",{className:"odometer__pass",id:"pass",width:"170",height:"170"}),(0,n.jsxs)("div",{className:p,children:[(0,n.jsx)("div",{className:"odometer__score-label",children:d}),(0,n.jsx)("div",{className:"odometer__pass-label brand--color",children:l}),(0,n.jsx)("div",{className:"odometer__fail-label",children:l}),(0,n.jsx)("div",{ref:g=>{this.scorePercent=g},className:f})]}),(0,n.jsxs)("div",{ref:g=>{this.passmark=g},className:"odometer__passmark",children:[(0,n.jsx)("div",{className:"odometer__passlabel brand--ui",children:c}),(0,n.jsx)("div",{className:"odometer__passpercent brand--ui",children:h})]})]})}resetAnimationTimeout(){clearTimeout(this.animationTimeout),this.animationTimeout=null}resetCanvas(){const e=document.getElementById("pass"),s=document.getElementById("fail");e&&s&&(e.getContext("2d").clearRect(0,0,170,170),s.getContext("2d").clearRect(0,0,170,170))}odo(){const{passingScore:e,atEnd:s,canvasWidth:o,canvasHeight:r,color:a,isRTL:c}=this.props,l=document.getElementById("odometer").getContext("2d"),u=new Image,h=210,p=Math.PI/.8,f=Math.PI*.25,g=(x,S)=>{let E=qi.easeInOutCubic(Math.min(x,1));const L=(225+270*(E*S)-90)*Math.PI/180,I=o*.5+h*Math.cos(L),N=r*.5+h*Math.sin(L),j=(225+270*(e/100)-90)*Math.PI/180,O=o*.5+h*Math.cos(j),B=r*.5+h*Math.sin(j),_=O+3,k=B+3;this.passmark&&!c?(this.passmark.style.insetInlineStart=`${O/o*100}%`,this.passmark.style.insetBlockStart=`${B/r*100}%`):this.passmark&&c&&(this.passmark.style.insetInlineEnd=`${O/o*100}%`,this.passmark.style.insetBlockStart=`${B/r*100}%`,this.passmark.style.paddingInline="8.5rem"),l.clearRect(0,0,o,r),l.beginPath(),l.arc(o/2,r/2,h+9,f,Math.PI*1.52*(e/100-.03)-p,!0),l.lineWidth=16,l.strokeStyle=l.createPattern(u,"repeat"),l.stroke(),l.closePath(),l.beginPath(),l.moveTo(_,k),l.lineTo(_+38,k-38),l.lineTo(_-38,k-38),l.lineTo(_-38,k+38),l.fillStyle=cn()?"transparent":"#f5f5f5",l.fill(),l.closePath(),l.beginPath(),l.moveTo(O,B),l.lineTo(O+35,B-35),l.strokeStyle=cn()?"CanvasText":"#c2c3c4",l.lineWidth=1,l.stroke(),l.closePath(),l.beginPath(),l.moveTo(O+35,B-35),l.lineTo(O+70,B-35),l.strokeStyle=cn()?"CanvasText":"#c2c3c4",l.lineWidth=1,l.stroke(),l.closePath(),l.beginPath(),l.strokeStyle=cn()?"CanvasText":"#dcdcdc",l.globalAlpha=cn()?.5:1,l.arc(o/2,r/2,h,-p,Math.PI*1.5-p,!1),l.lineWidth=3,l.stroke(),l.closePath(),cn()&&(l.globalAlpha=1),s&&(l.beginPath(),l.arc(o/2,r/2,h,-p,Math.PI*1.5*E*S-p,!1),l.lineWidth=3,l.strokeStyle=cn()?"CanvasText":"#000",Math.floor(E*S*100)>=e&&(l.strokeStyle=a),l.stroke(),l.closePath(),l.beginPath(),l.arc(I,N,6,0,2*Math.PI,!1),l.fillStyle=cn()?"CanvasText":"#000",Math.floor(E*S*100)>=e&&(l.fillStyle=cn()?"CanvasText":a),l.fill(),l.closePath())};u.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDFBQzM3NTBGMDA2MTFFNThENDVCMjlGQjVCNUU3OTQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDFBQzM3NTFGMDA2MTFFNThENDVCMjlGQjVCNUU3OTQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMUFDMzc0RUYwMDYxMUU1OEQ0NUIyOUZCNUI1RTc5NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMUFDMzc0RkYwMDYxMUU1OEQ0NUIyOUZCNUI1RTc5NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pq3YZDIAAAA6SURBVHjaYjQ0NVdiYGC4D8T/GRCAEYgVmXBJADEzEy4JIL7DhEsCpIkJlwRIkAmXBEwSqwQIAAQYABZQDs+U1J1TAAAAAElFTkSuQmCC";let v=null;const C=x=>S=>{!v&&x&&(v=S);const b=x?(S-v)/2e3:0;g(b,this.props.score/100),b<1&&x&&window.requestAnimationFrame(C(!0))};window.requestAnimationFrame(C(!1)),setTimeout(()=>{window.requestAnimationFrame(C(!0)),this.score()},1e3)}score(){const{isRTL:e}=this.props,s=(c,d)=>{const l=qi.easeInOutQuad(Math.min(c,1));let u=Math.round(l*d*100)+"";if(this.scorePercent){const h=e?`%${u}`:`${u}%`;for(;u.length<2;)u="0"+u;this.scorePercent.innerHTML=h}};let o=null;const r=c=>{o||(o=c);const l=(c-o)/2e3;s(l,this.props.score/100),l<1&&window.requestAnimationFrame(r)};function a(){o=null,window.requestAnimationFrame(r)}a()}pass(){const{color:e}=this.props,o=document.getElementById("pass").getContext("2d"),r=95,a=95,c=h=>{const p=qi.easeInOutCubic(Math.min(h,1));o.clearRect(0,0,170,170),o.beginPath(),o.moveTo(r-65,a-25),o.lineTo(r-65+40*Math.min(p,.5)*2,a-25+45*Math.min(p,.5)*2),p>=.5&&o.lineTo(r-25+90*(p-.5)*2,a+15-85*(p-.5)*2),o.strokeStyle=cn()?"CanvasText":e,o.lineWidth=20,o.stroke(),o.closePath()};let d=null;const l=h=>{d||(d=h);const f=(h-d)/750;c(f,this.props.score/100),f<1&&window.requestAnimationFrame(l)};function u(){d=null,window.requestAnimationFrame(l)}u()}fail(){const s=document.getElementById("pass").getContext("2d"),o=85,r=75,a=u=>{const h=qi.easeInOutCubic(Math.min(u,1));s.clearRect(0,0,170,170),s.beginPath(),s.moveTo(o-45,r-45),s.lineTo(o-45+90*Math.min(h,.5)*2,r-45+90*Math.min(h,.5)*2),s.strokeStyle=cn()?"CanvasText":"#000",s.lineWidth=20,s.stroke(),s.closePath(),h>=.5&&(s.beginPath(),s.moveTo(o+45,r-45),s.lineTo(o+45-90*(h-.5)*2,r-45+90*(h-.5)*2),s.strokeStyle=cn()?"CanvasText":"#000",s.lineWidth=20,s.stroke(),s.closePath())};let c=null;const d=u=>{c||(c=u);const p=(u-c)/750;a(p,this.props.score/100),p<1&&window.requestAnimationFrame(d)};function l(){c=null,window.requestAnimationFrame(d)}l()}}const VF=Yd(qi);function WF({color:t,continueType:e,currentPassingScore:s,id:o,length:r,mode:a,nextLesson:c,nextLessonRestrictions:d,onNextClick:l,onResultsDisplayed:u,passingScore:h,retryAttempts:p,retryCount:f,showNavigationButtons:g,sidebarEnabled:v}){const[C,x]=(0,m.useState)(!1),{activeIndex:S,reportResults:E,score:b}=De(o)??{},[L,I]=(0,m.useState)(r+1===S),N=(0,as.A)(L),R=(0,m.useRef)(),j=(0,m.useRef)(),O=(0,ze.useLabelsMap)(),{a11yQuizFailed:B,a11yQuizPassed:_,quizPassing:k,quizResults:te,quizScore:F}=O,K=b>=h,Z=`${F} ${b}%`,xe=(0,m.useCallback)(()=>{R.current=setTimeout(()=>{x(!0),u()},500)},[u]),fe=(0,m.useCallback)(()=>{clearTimeout(R.current),R.current=null,x(!0)},[]);return(0,Iu.A)(()=>{clearTimeout(R.current)}),(0,m.useEffect)(()=>{I(r+1===S)},[r,S]),(0,m.useLayoutEffect)(()=>{L!==N&&(L?j.current?.focus?.():x(!1))},[L,N]),(0,n.jsxs)("div",{className:GF({isAtEnd:L}),children:[(0,n.jsxs)("div",{className:"quiz-results__header",children:[(0,n.jsx)("h1",{className:"quiz-results__label noOutline brand--ui",ref:j,tabIndex:-1,children:te}),(0,n.jsxs)("div",{className:"quiz-results__passing",children:[(0,n.jsx)("div",{className:"odometer__passlabel brand--ui",children:k}),(0,n.jsx)("div",{className:"odometer__passpercent brand--ui",children:`${h}%`})]})]}),(0,n.jsxs)("div",{className:"visually-hidden",children:[(0,n.jsx)("div",{children:Z}),(0,n.jsx)("div",{children:`${K?_:B}`}),(0,n.jsx)("div",{children:`${k} ${h}%`})]}),(0,n.jsx)("div",{"aria-hidden":"true",className:"quiz-results__results",children:(0,n.jsx)(VF,{atEnd:L,color:t,complete:E,isPass:K,onAnimationDone:xe,quizScore:F,quizPassing:k,score:b,scoreLabel:Z,passingScore:h})}),(0,n.jsx)($F,{allowTabNavigation:L,continueType:e,currentPassingScore:s,id:o,isAtEnd:L,labels:O,mode:a,nextLesson:c,nextLessonRestrictions:d,onNextClick:l,onTryAgainFocus:fe,retryAttempts:p,retryCount:f,showFooter:C,showNavigationButtons:g,sidebarEnabled:v})]})}const GF=({isAtEnd:t})=>M()("quiz-results",{"quiz-results--active":t}),KF=({isAtEnd:t,showFooter:e})=>M()("quiz-results__footer",{"quiz-results__footer--active":t,"quiz-results__footer--hidden":!e}),$F=({allowTabNavigation:t,continueType:e,id:s,isAtEnd:o,labels:r,mode:a,nextLesson:c,nextLessonRestrictions:d,onNextClick:l,onTryAgainFocus:u,retryAttempts:h,retryCount:p,showFooter:f,showNavigationButtons:g,sidebarEnabled:v})=>{const{isRestricted:C}=d,{courseFinish:x="Finish",quizContinue:S,quizTakeAgain:E}=r,{resetQuizTimer:b}=og(),L=(0,m.useCallback)(R=>()=>{b(),(0,X.JD)((0,Qs.FU)(R))},[b]),I=e==="continue"&&a!=="preview-lesson"&&!(v&&!g),N=I&&ye.BI&&!c&&g&&!(0,de.Hm)();return(0,n.jsxs)("div",{className:KF({isAtEnd:o,showFooter:f}),children:[(p===-1||h<p)&&(0,n.jsx)(Vh,{allowTabNavigation:t,onClick:L(s),onFocus:u,text:E}),I&&C&&c&&(0,n.jsx)(jf,{bgType:"transparent",text:go({labels:r,restrictions:d})}),I&&!C&&c&&(0,n.jsx)(rh,{href:`/lessons/${encodeURIComponent(c)}`,onClick:l,text:S}),N&&(0,n.jsx)(rh,{href:"/lessons/progress-summary",onClick:l,text:x})]})};var QF=i(59288);const ZF=t=>{const e=QF.useCallback(()=>{window.dispatchEvent(new CustomEvent(xd))},[]);return(0,n.jsx)("div",{"aria-hidden":!t.allowTabNavigation,className:"quiz-end",children:(0,n.jsx)("div",{className:"quiz-end__container",children:(0,n.jsx)(WF,{...t,onResultsDisplayed:e})})})},ig=Se()(il()(ir(),0),tt()(0,"retryAttempts")),YF=({authorName:t,avatar:e,course:s,description:o,id:r,isAtStart:a,isLesson:c,labels:{a11yAuthorPrefix:d,lessonName:l,lessonPreposition:u,quizStart:h,quizTakeAgain:p,quizTimerElapsed:f,quizTimerExpired:g,quizTimerExpiredAction:v,quizTimerExpiredMessage:C,quizTimerHide:x,quizTimerLimit:S,quizTimerMinute:E,quizTimerMinutePlural:b,quizTimerRemaining:L,quizTimerShow:I},lessonNumber:N,lessonProgress:R,showAuthor:j,showLessonCount:O,title:B,totalLessons:_})=>{const k=(0,m.useRef)(),te=Us(B),F=a&&ig(R),Z=s?.lessons?.find(fe=>fe.id===r)?.settings?.timer;(0,m.useEffect)(()=>{F&&k&&k.current&&zc()(k.current.focus)&&k.current.focus()},[F,k]);const xe=fe=>()=>{(0,X.JD)((0,Qs.QI)(fe))};return(0,n.jsx)("div",{"aria-hidden":!a,className:"quiz-header",children:(0,n.jsx)("div",{className:"quiz-header__container",children:(0,n.jsx)("div",{className:"quiz-header__limit",children:(0,n.jsx)("div",{className:"quiz-header__row",children:(0,n.jsxs)("div",{className:"quiz-header__main",children:[(0,n.jsxs)("div",{className:"quiz-header__top-wrap brand--afterBackground",children:[(0,n.jsx)("div",{className:"quiz-header__counter",children:c&&O&&JF({lessonName:l,lessonNumber:N,lessonPreposition:u,totalLessons:_})}),(0,n.jsx)("h1",{ref:k,tabIndex:-1,children:(0,n.jsx)(Nt,{className:"quiz-header__title",value:(0,xo.aj)(te)})}),j&&e&&t?(0,n.jsxs)("div",{className:"quiz-header__author brand--ui",children:[(0,n.jsx)("img",{src:(0,de.o1)(`${e}`),alt:""}),(0,n.jsxs)("span",{className:"visually-hidden",children:[d," ",t]}),(0,n.jsx)("span",{"aria-hidden":"true",children:t})]}):null]}),Z&&(0,n.jsx)(ag,{area:"cover",exitCourseEnabled:s?.lmsOptions?.enableExitCourse,isStartScreenActive:a,labelQuizTimerElapsed:f,labelQuizTimerExpired:g,labelQuizTimerExpiredAction:v,labelQuizTimerExpiredMessage:C,labelQuizTimerHide:x,labelQuizTimerLimit:S,labelQuizTimerMinute:E,labelQuizTimerMinutePlural:b,labelQuizTimerRemaining:L,labelQuizTimerShow:I,timerEnabled:Z}),(0,n.jsx)(Nt,{className:"quiz-header__description",value:o,allowTabNavigation:a}),(0,n.jsxs)("button",{className:"quiz-header__start-quiz brand--color",onClick:a?xe(r):Ft.lQ,tabIndex:Fr(a),type:"button",children:[(0,n.jsx)("span",{className:"brand--ui",children:XF({lessonProgress:R,quizStart:h,quizTakeAgain:p})}),(0,n.jsx)("i",{className:"icon icon-chevron-right"})]})]})})})})})},XF=({lessonProgress:t,quizStart:e,quizTakeAgain:s})=>ig(t)?s:e,JF=({lessonName:t,lessonNumber:e,lessonPreposition:s,totalLessons:o})=>(0,n.jsx)("div",{className:"quiz-header__count",children:`${t} ${e} ${s} ${o}`}),qF=YF,ez=t=>{const e=t.findIndex(s=>s==="answers");return e===-1?null:t[e+1]?.id},tz=t=>{const e=t.findIndex(s=>s==="questions");return e===-1?null:t[e+1]?.id},sz=t=>{const e=t.at(-1);return typeof e=="string"&&e.startsWith?.("feedback")},nz=({itemId:t,questionBankId:e},s)=>{const o=s.find(({id:a})=>a===t);if(!o)return null;const r={progressId:o.id,item:o,question:null};return e?(r.question=o.questions.find(({id:a})=>a===e),r.progressId=r.item.id+"-"+e):r.question=o,r},oz=(t,e,s)=>{const o=s==="feedbackCorrect";return t?[t]:s==="feedback"?e.answers.slice(0,1):s==="feedbackIncorrect"&&e.type==="FILL_IN_THE_BLANK"?[{title:""}]:e.answers.filter(r=>"correct"in r?r.correct===o:"corrects"in e?e.corrects.includes(r.id)===o:e.answers)},rz=({lessonId:t,items:e})=>{const s=(0,X.wA)(),o=({lessonId:a,progressId:c,question:d,answer:l},u=!0)=>{switch(d.type){case"MULTIPLE_CHOICE":s((0,Qs.Yu)({lessonId:a,itemId:c,selectedIndex:d.answers.indexOf(l)}));break;case"MULTIPLE_RESPONSE":s((0,Qs.mg)({lessonId:a,itemId:c,selectedIndex:d.answers.indexOf(l)}));break;case"FILL_IN_THE_BLANK":s((0,Qs.Nj)({lessonId:a,itemId:c,text:l.title}));break;case"MATCHING":s((0,Qs.NC)({lessonId:a,itemId:c,matches:u?d.answers.reduce((h,p)=>(h[p.id]=p.id,h),{}):{}}));break}},r=({detail:a})=>{const{lessonId:c,itemId:d,path:l}=a;if(c!==t)return;const u=tz(l),{item:h,question:p,progressId:f}=nz({itemId:d,questionBankId:u},e);if(h&&(s((0,Qs.QI)(t)),sz(l))){const g=ez(l),v=g?p.answers.find(({id:E})=>E===g)??null:null,C=l.at(-1),x=C==="feedbackCorrect",S=oz(v,p,C);p.type==="MULTIPLE_RESPONSE"&&s((0,Qs.RW)({lessonId:t,itemId:f})),S.forEach(E=>{o({lessonId:t,question:p,progressId:f,answer:E},x)}),s((0,Qs.kK)({finalRetryAttempt:!1,lessonId:t,isCorrect:x,itemId:f,passToContinue:!0}))}};(0,m.useEffect)(()=>(window.addEventListener(ms,r),()=>{window.removeEventListener(ms,r)}))},az=Ye()(0,["lessonProgress","activeIndex"]),iz=Ye()(0,["lessonProgress","retryAttempts"]),cz=t=>{const{advanceQuizLessonStep:e,color:s,course:o,id:r,items:a,labels:c,lessonProgress:d,prefersKeyboardNavigation:l,setQuizAnswerText:u,selectQuizAnswer:h,setQuizAnswerMatches:p,settings:f,submitQuizAnswer:g,title:v,toggleQuizAnswerSelection:C,initializeDrawnQuizQuestions:x}=t;return rz({lessonId:r,items:a}),(0,n.jsx)(FF,{color:s,course:o,id:r,items:a,labels:c,onChoiceSelect:h,onFillInChange:u,onMatchSet:p,onResponseToggle:C,onSetIndex:e,onSubmit:g,prefersKeyboardNavigation:l,progress:d,quizEnd:lz(t),quizHeader:dz(t),reportAnswer:de.bb,settings:f,title:v,initializeDrawnQuizQuestions:x})},lz=t=>e=>{const{color:s,currentPassingScore:o,id:r,lessonNumber:a,lessonProgress:c,mode:d,nextLesson:l,nextLessonRestrictions:u,onNextClick:h,settings:{continueType:p,passingScore:f,retryCount:g},showNavigationButtons:v,sidebarEnabled:C}=t;return(0,n.jsx)(ZF,{color:s,continueType:p,current:a,currentPassingScore:o,id:r,length:e.length,mode:d,nextLesson:l,nextLessonRestrictions:u,onNextClick:h,passingScore:f,retryAttempts:iz({lessonProgress:c}),retryCount:Number(g),showNavigationButtons:v,sidebarEnabled:C})},dz=t=>e=>{const{authorName:s,avatar:o,description:r,id:a,isLesson:c,labels:d,lessonNumber:l,lessonProgress:u,showAuthor:h,showLessonCount:p,title:f,totalLessons:g,settings:v,course:C}=t,S=az(t)===0;return(0,n.jsx)(qF,{authorName:s,avatar:o,description:r,id:a,isAtStart:S,isLesson:c,items:e,labels:d,lessonNumber:l,lessonProgress:u,showAuthor:h,showLessonCount:p,title:f,totalLessons:g,settings:v,course:C})},uz={advanceQuizLessonStep:Qs.QI,initializeDrawnQuizQuestions:Qs.x6,selectQuizAnswer:Qs.Yu,setQuizAnswerMatches:Qs.NC,setQuizAnswerText:Qs.Nj,submitQuizAnswer:Qs.kK,toggleQuizAnswerSelection:Qs.mg},hz=(0,X.Ng)(null,uz)(cz),mz=({id:t,passingScore:e})=>il()(S0(),(0,de.GJ)({id:t,passingScore:e})),pz=({id:t,settings:e,lessonProgress:s={}})=>Zi()(sm()(["passingScore"]),mz({id:t,...s}),e),fz=({authorName:t,avatar:e,color:s,data:{description:o,id:r,items:a,settings:c,title:d,type:l},enableVideoPlaybackSpeed:u,isLesson:h,labels:p,lessonNumber:f,lessonProgress:g,mode:v,nextLesson:C,nextLessonRestrictions:x,onNextClick:S,prefersKeyboardNavigation:E,showAuthor:b,showLessonCount:L,showNavigationButtons:I,sidebarEnabled:N,totalLessons:R,course:j})=>(0,n.jsx)(No,{type:l,children:(0,n.jsx)(no,{type:l,children:(0,n.jsx)(er,{children:(0,n.jsxs)(oo,{type:l,items:a,children:[(0,n.jsx)(em,{id:r,lessonProgress:g,type:"quiz"}),(0,n.jsx)(hz,{authorName:t,avatar:e,color:s,currentPassingScore:c.passingScore,description:o,enableVideoPlaybackSpeed:u,id:r,isLesson:h,items:a,labels:p,lessonNumber:f,lessonProgress:g,mode:v,nextLesson:C,nextLessonRestrictions:x,onNextClick:S,prefersKeyboardNavigation:E,settings:pz({id:r,lessonProgress:g,settings:c}),showAuthor:b,showLessonCount:L,showNavigationButtons:I,sidebarEnabled:N,title:d,totalLessons:R,course:j})]})})})});var gz=i(27702),vz=i.n(gz);function Cz({authors:t,author:e,selectedAuthorId:s}){return vz()(t,{id:s||e})||{}}const xz=t=>(0,n.jsx)("section",{"aria-label":"Sorting Activity Content",className:"sorting-lesson",children:(0,n.jsx)(c5,{...t,onCardDrop:Function.prototype,onReplay:Function.prototype})}),Ez=({data:{id:t,items:e,piles:s,type:o},labels:r,lessonHeader:a,lessonHeaderWrapClasses:c,lessonHeaderWrapStyles:d,lessonProgress:l})=>(0,n.jsx)(No,{type:o,children:(0,n.jsx)(no,{type:o,children:(0,n.jsxs)(er,{children:[(0,n.jsx)("div",{className:c,style:d,children:a}),(0,n.jsx)(oo,{type:o,children:(0,n.jsx)(xz,{id:t,items:e,labels:r,progress:l,piles:s})})]})})});var Tz=i(59288);const Sz=St()(Pe()("linePosition"),parseFloat),Lz=n6()(Sz);class bz extends Tz.Component{render(){const{items:e}=this.props;return(0,n.jsx)("section",{"aria-label":"Timeline Content",className:"timeline-lesson",children:(0,n.jsx)(f5,{...this.props,isLearner:!0,items:Lz(e),progress:Pe()("lessonProgress",this.props),onEnter:Function.prototype,onLeave:Function.prototype})})}}const yz=({data:{id:t,items:e,type:s},labels:o,lessonHeader:r,lessonHeaderWrapClasses:a,lessonHeaderWrapStyles:c,lessonProgress:d,loadMedia:l})=>(0,n.jsx)(No,{type:s,children:(0,n.jsx)(no,{type:s,children:(0,n.jsxs)(er,{children:[(0,n.jsx)("div",{className:a,style:c,children:r}),(0,n.jsx)(oo,{type:s,children:(0,n.jsx)(bz,{id:t,items:e,labels:o,lessonProgress:d,loadMedia:l})})]})})}),cg={addEventListeners(t,e){t.addEventListener("animationend",e,!1)},removeEventListeners(t,e){t.removeEventListener("animationend",e,!1)}};var Iz=i(59288);class Nz extends Iz.Component{static propTypes={id:A().any,labels:Qi,lessonProgress:A().object.isRequired,media:A().object,recordMediaPlayheadPosition:A().func};constructor(e){super(e),this.state={load:!1}}componentDidMount(){setTimeout(()=>{this.setState({load:!0})},800)}static get defaultProps(){return{lessonProgress:{audioVideoPlayhead:0,currentTime:0,percentComplete:0}}}render(){const{enableVideoPlaybackSpeed:e,labels:s,lessonProgress:o}=this.props,{id:r,media:a,settings:c}=this.props.data,d=Ye()(0,["audioVideoPlayhead"],o),l=Pe()("currentTime",o),u=jt()(["video","key"],a),h=jt()(["lessonProgress","percentComplete"],o),p=jt()(["video","poster"],a),f=M()("video-lesson",{"video-lesson--visible":this.state.load});return(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"page__content-container",children:(0,n.jsx)("section",{"aria-label":"Video Content",className:f,children:this.state.load?(0,n.jsx)("div",{className:"video-lesson__item",children:(0,n.jsx)(Q1,{audioVideoPlayhead:d,canAdjustPlaybackSpeed:e,canRestrictSeek:c.forwardSeekRestricted&&!o?.isComplete,currentTime:l,id:r,labels:s,percentComplete:h,poster:p,progressChanged:Function.prototype,recordMediaPlayheadPosition:Function.prototype,src:u})}):null})})})}}const jz=({color:t,data:e,labels:s,lessonHeader:o,lessonHeaderWrapClasses:r,lessonProgress:a,prefersKeyboardNavigation:c,enableVideoPlaybackSpeed:d})=>(0,n.jsx)(No,{type:e.type,children:(0,n.jsx)(no,{type:e.type,children:(0,n.jsxs)(er,{children:[(0,n.jsx)("div",{className:r,style:{color:t},children:o}),(0,n.jsx)(oo,{children:(0,n.jsx)(Nz,{data:e,labels:s,lessonProgress:a,prefersKeyboardNavigation:c,enableVideoPlaybackSpeed:d})})]})})}),Az=Dt("LessonHeader"),Rz=J("lesson-header"),Oz=({authorName:t,avatar:e,children:s,color:o,description:r,labels:{lessonName:a,lessonPreposition:c},lessonHeaderColor:d,lessonHeaderImageColor:l,lessonHeaderSize:u,lessonHeaderStyle:h,partnerContentAuthors:p,totalLessons:f,lessonNumber:g,showAuthor:v,showLessonCount:C,title:x})=>{const S=yr(),E=Go(),b=S===$e.y4,L=h===P.xj.IMAGE,I=Rz("top-wrap"),{alpha:N,ariaLabel:R,media:j,role:O}=pa("lessonHeaderImage"),B=j?.image,_=(0,m.useMemo)(()=>{if(B&&L){const k=l===P.df.LIGHT?P.qH:P.KJ;return(0,N1.A)({alpha:N,color:k,url:(0,rs.ME)(B)})}},[B,L,l,N]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e8,{ariaLabel:L?R:void 0,imgRole:L?O:void 0,sectionStyles:_,topWrapClassName:I,children:(0,n.jsx)(Az,{authorName:t,avatar:e,color:o,description:r,lessonName:a,lessonNumber:g,lessonHeaderColor:d,lessonHeaderSize:u,lessonHeaderStyle:h,lessonId:E,lessonPreposition:c,partnerContentAuthors:p,showAuthor:v,showLessonCount:C&&!b,title:x,totalLessons:f})}),s]})},ec=J("one-page-authors");function lg({className:t}){const e=(0,Me.vU)(),s=(0,Me._z)(),o=(0,Me.$H)(),r=(0,Me.PH)();if(o?.id==="none")return null;const a=s?.isPartnerContentAuthor&&r!=null,c=ec({}).mix(t);return a?(0,n.jsx)("div",{className:c,children:(0,n.jsx)("ul",{className:ec("list"),role:"list",children:r.map((d,l)=>(0,n.jsxs)("li",{className:ec("item"),role:"listitem",children:[(0,n.jsx)(lm,{avatarUrl:(0,rs.ny)({width:"76",height:"76",imageKey:d?.image})}),(0,n.jsx)(dm,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:d?.name})]},l))})}):(0,n.jsxs)("div",{className:c,children:[(0,n.jsx)(lm,{avatarUrl:(0,ye.o1)(o?.avatar)}),(0,n.jsx)(dm,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:o?.authorName})]})}lg.propTypes={className:A().string};function lm({avatarUrl:t}){return t?(0,n.jsx)("div",{className:ec("avatar"),style:{backgroundImage:`url(${t})`}}):(0,n.jsx)("div",{className:ec("avatar-fallback"),children:(0,n.jsx)(E0,{decorative:!0})})}lm.propTypes={avatarUrl:A().string};function dm({a11yAuthorPrefix:t,name:e}){const s=e||"Unknown User",o=ec("name");return(0,n.jsxs)("div",{className:o.toString(),children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:t}),(0,n.jsx)("span",{children:s})]})}dm.propTypes={a11yAuthorPrefix:A().string.isRequired,name:A().string};const dg=Dt("OnePageAuthors",lg),Pz=J("one-page-title"),ug=({className:t,htmlId:e})=>{const s=(0,Me.DX)(),o=(0,It.QQ)(s.title),r=ci("title"),a=(0,_s.uW)(s.title)?{"data-l10n-id":s.title.l10nId}:{"data-change-path":r},c=Pz({}).mix(t);return(0,n.jsx)("h1",{...a,className:c,id:e,tabIndex:-1,children:o})};ug.propTypes={className:A().string,htmlId:A().string.isRequired};const hg=Dt("OnePageTitle",ug),um=J("one-page-lesson-header-info");function Mz(){const t=(0,Me.DX)(),e=um({}),{accentContrast:s,coverImageColor:o,coverPageType:r}=t?.theme??{},d=r===P.BL.IMAGE&&o===P.df.LIGHT||s===P.Em.DARK||r===P.BL.WHITE||r===P.BL.ACCENT&&!(0,ct.Wn)(t?.color);return(0,n.jsxs)("div",{className:e,children:[(0,n.jsx)(hg,{className:um("title").toString(),hasDarkText:d}),(0,n.jsx)(dg,{className:um("authors").toString(),hasDarkText:d})]})}const Dz=Dt("OnePageCoverInfo",Mz),kz=Dt("CoverSVG"),hm=J("one-page-lesson-header"),wz=J("page"),Bz=hm("main").mix("lesson-header__main"),_z=hm("container").mix(wz("header-container")),mg=()=>{const t=Mt(),{alpha:e,media:s}=pa("coverImage"),o=t?.theme?.coverImageColor,r=t?.coverPageType===P.BL.WHITE,a=t?.coverPageType===P.BL.IMAGE,c=t?.coverPageType===P.BL.ACCENT,d=o===P.df.LIGHT,l=hm({accent:c,image:a,white:r,"overlay-light":a&&d}),u=a?(0,At.b9)({alpha:e,color:o,media:s}):{};return(0,n.jsxs)("header",{className:l,style:u,children:[(0,n.jsx)("div",{className:_z,children:(0,n.jsx)("div",{className:Bz,children:(0,n.jsx)(Dz,{})})}),(0,n.jsx)(kz,{coverPageType:"LEFT"})]})},mm=(0,m.createContext)({visibleLessons:[],registerLesson:()=>{},unregisterLesson:()=>{}});mm.displayName="LessonContentContext";function Uz({children:t}){const[e,s]=(0,m.useState)(()=>[]),o=(0,m.useCallback)(c=>{s(d=>d.concat(c))},[]),r=(0,m.useCallback)(c=>{s(d=>d.filter(l=>l!==c))},[]),a=(0,m.useMemo)(()=>({visibleLessons:e,registerLesson:o,unregisterLesson:r}),[e,o,r]);return(0,n.jsx)(mm.Provider,{value:a,children:t})}function Hz(){return(0,m.useContext)(mm)}function Fz(t){function e(s){const o=Hz();return(0,n.jsx)(t,{...s,...o})}return e.displayName=`withLessonContentState(${t.displayName||t.name})`,e}var pg=i(59288);const{LARGE:zz,SMALL:Vz}=P.OX,{ACCENT:Wz,BLACK:Gz,COLOR:fg,DARK:Kz,GRAY:$z,IMAGE:gg,LIGHT:Qz,TINT:Zz}=P.xj,Yz=J("lesson-header-wrap");class Xz extends pg.Component{ref=pg.createRef();static propTypes={match:A().object.isRequired,navigateDirection:A().func,partnerContent:A().object,previewType:A().string,sidebarEnabled:A().bool};constructor(e){super(e);const{course:s,isProgressSummary:o,lessonProgress:r,match:{params:a}}=e,c=tt()(null,"index",r),d=o?Su:Ye()({},["lessons",c],s),l={course:s,lesson:d},u=o?null:jr(l);this.state={hasTransitioned:!1,lessonNumber:o?0:Xa(l),mode:a.mode||"",model:d,next:u,nextNumber:Xa({course:s,lesson:u}),scrollPosition:0,totalLessons:Sc(s)}}componentDidMount(){const e=this.props.match.params.id;this.setState({hasTransitioned:!0}),this.props.isProgressSummary||(0,de.no)(e),this.props.isProgressSummary||(0,X.JD)((0,v3.B)(e)),this.props.registerLesson(e)}componentWillUnmount(){const e=this.props.match.params.id;this.props.unregisterLesson(e)}UNSAFE_componentWillReceiveProps(e){if(!this.props.isProgressSummary){const{course:s,lessonProgress:o}=e,r=tt()(null,"index",o),a=Ye()(null,["lessons",r],s),d=jr({course:s,lesson:a});a&&this.setState({model:a,next:d})}}componentDidUpdate(e,s){this.props.didNavigate&&!s.hasTransitioned&&this.state.hasTransitioned&&this.props.onPageReady()}displayFlex(e){e.css({display:"flex"})}componentWillEnter(e){this.transition("enter",e)}componentDidEnter(){this.setState({hasTransitioned:!0})}componentWillExit(e){const s=document.getElementById("page-wrap"),o=s.scrollTop;s.scrollTop=0,this.lastScrollPosition=o,this.transition("leave",e),window.dispatchEvent(new CustomEvent(M2)),this.ref.current.scrollTop=this.lastScrollPosition}transitionComplete(){const e=this.ref.current;if(!e)return!1;const{classList:s}=e;return s&&(s.contains("page-transition-complete")||s.contains("page-transition-back-complete")||s.length===1&&s.contains("page"))}transition(e,s){const{onNavigateTransitionEnd:o,navigateDirection:r}=this.props,a=r(),c=this.ref.current;if(!c){s();return}const d=`page ${a}-${e}`,l=()=>{e==="enter"?c.className=`page ${a}-complete`:c.className="page",cg.removeEventListeners(c,l),window.dispatchEvent(new CustomEvent(D2)),o(),s()};c.className=d,cg.addEventListeners(c,l)}renderLessonType({type:e,props:s,course:o,model:r}){if(this.props.isProgressSummary)return(0,n.jsx)($5,{...this.props,...s});switch(e){case"blocks":return(0,n.jsx)(BU,{...s,handleNavigate:this.props.handleNavigate,animateBlockEntrance:o.animateBlockEntrance,isFirstLesson:ra({course:o,lesson:r})});case"map":return(0,n.jsx)(GU,{...s});case"process":return(0,n.jsx)(pH,{...s});case"timeline":return(0,n.jsx)(yz,{...s});case"quiz":return(0,n.jsx)(fz,{...s,course:o});case"sorting":return(0,n.jsx)(Ez,{...s});case"screencast":case"slidecast":case"video":return(0,n.jsx)(jz,{...s});case"embed":return(0,n.jsx)(zU,{...s});default:return null}}calculateLessonHeaderContrastColor(){const{course:e}=this.props,{theme:s}=e,o=s?.customColorLessonHeaderContrast,r=s?.lessonHeaderColor,a=(0,ct.xD)(r),c=!(0,ct.Wn)(r),d=o===P.Em.DARK||o===P.Em.AUTO&&a===P.Em.DARK;return!o&&c||d?$e.S6.DARK:$e.S6.LIGHT}render(){const{lessonNumber:e,mode:s,model:o,next:r,scrollPosition:a,totalLessons:c}=this.state,{course:d,courseProgress:l,handleStorylineFullscreen:u,isMobileHeader:h,isProgressSummary:p,labels:f,lessonProgress:g,location:v,match:C,previewType:x,getL10nValue:S,sessionPreferences:{prefersKeyboardNavigation:E},sidebarEnabled:b,themeId:L}=this.props,{author:I,selectedAuthorId:N,type:R}=o,{authors:j,color:O,enableVideoPlaybackSpeed:B,id:_,lessonHeaderImage:k,lessonHeaderSize:te,lessonHeaderStyle:F,publishedAt:K,showAuthor:Z,showLessonCount:xe,showNavigationButtons:fe,tenantId:oe,theme:we,type:Ae}=d,{hideLessonHeaders:_e,lessonHeaderColor:Qe,lessonHeaderImageColor:pt,navigationType:ls}=we,nt=Ye()([],["partnerContent","content"],this.props),Ce=!Yt()(nt),Ne=Ce?qe()(Ue()("id",N),nt):{},Ke=Ce?Ye()(void 0,["data","authors"],Ne):void 0,{avatar:He,authorName:dt}=Cz({authors:j,author:I,selectedAuthorId:N}),lt=Mn({course:d,courseProgress:l}),Ht=p?{}:aa({course:d,courseProgress:l,lesson:r,restrictingQuiz:lt}),Wt=C3(o),vs=Ae===$e.y4?mg:Oz,en=(0,n.jsx)(vs,{authorName:dt,avatar:He,color:O,course:d,description:o.description,labels:f,lessonHeaderColor:Qe,lessonHeaderImage:k,lessonHeaderImageColor:pt,lessonHeaderStyle:F,lessonHeaderSize:te,lessonNumber:e,partnerContentAuthors:Ke,showAuthor:Z,showLessonCount:xe,themeId:L,title:o.title,totalLessons:c,children:!p&&(0,n.jsx)(em,{id:o.id,items:o.items,lessonProgress:g,navigationType:ls,scrollPosition:a,type:o.type})}),Bs=`image-${(pt??P.df.DARK)?.toLowerCase()}`,Sn=Yz({[Bs]:F===gg,accent:F===Wz,black:F===Gz,collapsed:_e,custom:F===fg,dark:F===Kz,gray:F===$z,image:F===gg,large:te===zz&&!h,light:F===Qz,mobile:h,small:te===Vz&&!h,tint:F===Zz}),lo=F===fg?{"--lesson-header-contrast-color":this.calculateLessonHeaderContrastColor(),"--color-background":Qe}:{},Sr={authorName:dt,avatar:He,color:O,courseId:_,courseTitle:S(d.title),data:o,enableVideoPlaybackSpeed:B,handleStorylineFullscreen:u,hideLessonHeaders:_e,isLesson:(0,At.GG)(o),labels:f,lessonHeader:en,lessonHeaderImage:k,lessonHeaderWrapClasses:Sn,lessonHeaderWrapStyles:lo,lessonHasContinues:Wt,lessonNumber:e,lessonProgress:g,loadMedia:this.props.match.params.id===this.props.visibleLessons[0],location:v,match:C,mode:s,nextLesson:tt()(null,"id",r),nextLessonRestrictions:Ht,partnerContent:nt,publishedAt:K,prefersKeyboardNavigation:E,previewType:x,scrollPosition:a,showAuthor:Z,showLessonCount:xe,showNavigationButtons:fe,sidebarEnabled:b,tenantId:oe,totalLessons:c};return(0,n.jsx)(Ta,{title:Yc(`${S(o.title)} - ${Sr.courseTitle}`),children:(0,n.jsx)("div",{"data-lesson-id":C.params.id,ref:this.ref,children:this.renderLessonType({type:R,props:Sr,course:d,model:o})})})}}const Jz=Se()(cs,Me.x4,Fz)(Xz),Nu=J("lesson-nav"),qz=({allowTooltip:t,className:e,courseHomeLabel:s,lessonNameLabel:o,lessonPrepositionLabel:r,onFocus:a,previousLesson:c,previousLessonNumber:d,totalLessons:l},u)=>{const h=c?.id,p=ga(),f=fi(p),v=(0,At.GG)(c)&&h,C=Us(c?.title)||s,x=v?`${d} ${r} ${l} \u2014 ${C}`:C,S=f&&v?`${o} ${d}`:x;return(0,n.jsx)(gi,{allowTooltip:t,className:e,direction:"previous",navLessonId:h,onFocus:a,ref:u,children:f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Nu("link-text"),children:S}),(0,n.jsx)(L2,{className:Nu("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L2,{className:Nu("link-icon")}),(0,n.jsx)("span",{className:Nu("link-text"),children:S})]})})},eV=Dt("LessonNavPrevious",ie().forwardRef(qz));function tV(){const t=rp(),e=OC();return(s,{lessonId:o,currentLocale:r})=>{const a=Ut(s),c=t(o,s)||{},d=e(o,s),l=(0,ze.selectLabelsMap)(r,s),u=wo(s);return{buttonNavigationStyle:a.buttonNavigationStyle,courseHomeLabel:l.courseHome,lessonNameLabel:l.lessonName,lessonPrepositionLabel:l.lessonPreposition,previousLesson:c,previousLessonNumber:d,totalLessons:u}}}const pm=Se()(xs.wZ,(0,X.Ng)(tV,null,null,{forwardRef:!0}))(eV);var fm=i(9647),sV=i(74788),nV=i.n(sV);const ju=J("lesson-nav"),oV=({allowTooltip:t,lessonNameLabel:e,lessonPrepositionLabel:s,nextLesson:o,nextLessonNumber:r,onFocus:a,restrictionData:c,restrictionType:d,totalLessons:l},u)=>{const h=o?.id,p=ga(),f=fi(p),v=(0,At.GG)(o)&&h,C=(0,It.QQ)(o?.title)||"",x=v?`${r} ${s} ${l} \u2014 ${C}`:C,S=f&&v?`${e} ${r}`:x;return(0,n.jsx)(gi,{allowTooltip:t,direction:"next",navLessonId:h,onFocus:a,ref:u,restrictionData:c,restrictionType:d,children:f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:ju("link-text"),children:S}),(0,n.jsx)(pd,{className:ju("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(pd,{className:ju("link-icon")}),(0,n.jsx)("span",{className:ju("link-text"),children:S})]})})},vg=Dt("LessonNavNext",(0,m.forwardRef)(oV)),rV=nV()(0,1,.01),aV=t=>{const{dispatch:e}=t,s=(0,m.useRef)(),o=(0,fm.A)(s,{threshold:rV}),r=Go();return(0,m.useLayoutEffect)(()=>{const a=s.current.closest("[data-lesson-id]");a&&r===a.dataset.lessonId&&e((0,Qc.fc)({intersectionRect:o?.intersectionRect}))},[r,e,o]),(0,Iu.A)(()=>e((0,Qc.fc)(null))),(0,n.jsx)(vg,{ref:s,...t})};function Cg(){const t=ap(),e=RC(),s=Mr();return(o,{lessonId:r,currentLocale:a})=>{const c=Ut(o),d=t(r,o)||{},l=e(r,o),u=(0,ze.selectLabelsMap)(a,o),h=s(d.id,o),p=wo(o);return{buttonNavigationStyle:c.buttonNavigationStyle,lessonNameLabel:u.lessonName,lessonPrepositionLabel:u.lessonPreposition,nextLesson:d,nextLessonNumber:l,restrictionData:h?.data,restrictionType:h?.type,totalLessons:p}}}const Fue=Se()(xs.wZ,(0,X.Ng)(Cg))(aV),xg=Se()(xs.wZ,(0,X.Ng)(Cg,null,null,{forwardRef:!0}))(vg),Au=J("lesson-nav"),iV=({allowTooltip:t,courseFinishLabel:e,onFocus:s,restrictionData:o,restrictionType:r},a)=>{const c=ga(),d=fi(c);return(0,n.jsx)(gi,{allowTooltip:t,direction:"next",finish:!0,onFocus:s,ref:a,restrictionData:o,restrictionType:r,children:d?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Au("link-text"),children:e}),(0,n.jsx)(pd,{className:Au("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(pd,{className:Au("link-icon")}),(0,n.jsx)("span",{className:Au("link-text"),children:e})]})})},cV=Dt("LessonNavFinish",(0,m.forwardRef)(iV));function lV(t,e){const{currentLocale:s}=e,o=Ut(t),r=(0,ze.selectLabelsMap)(s,t);return{buttonNavigationStyle:o.buttonNavigationStyle,courseFinishLabel:r?.courseFinish||"Finish"}}const gm=Se()(xs.wZ,(0,X.Ng)(lV))(cV),dV={threshold:0},Ru=(t,e)=>{const[s,o]=(0,m.useState)(!1),r=(0,m.useRef)(null);return(0,m.useEffect)(()=>{r.current&&r.current.disconnect(),r.current=new IntersectionObserver(([c])=>{o(c.isIntersecting)},e||dV);const{current:a}=r;return t.current?a.observe(t.current):o(!1),()=>{a.disconnect()}},[t,e]),s},Eg=J("navButtonsFull"),uV=()=>{const[t,e]=(0,m.useState)(!1);return(0,bs.A)(M2,()=>e(!0)),(0,bs.A)(D2,()=>e(!1)),t},hV=({isVisible:t})=>{(0,Iu.A)(()=>window.dispatchEvent(new CustomEvent(e1))),(0,m.useEffect)(()=>{const e=t?k2:e1;window.dispatchEvent(new CustomEvent(e))},[t])},mV=({isVisible:t})=>{(0,Iu.A)(()=>window.dispatchEvent(new CustomEvent(t1))),(0,m.useEffect)(()=>{const e=t?w2:t1;window.dispatchEvent(new CustomEvent(e))},[t])},pV=({children:t,hideNavToHome:e,navNextEnabled:s,navFinishEnabled:o})=>{const r=(0,m.useRef)(null),a=(0,m.useRef)(null),c=(0,m.createRef)(null),d=(0,m.useRef)(),l=Go(),u=Ru(a),h=Ru(c),p=uV(),f=(0,m.useCallback)(()=>{r.current?.scrollTo({top:0,behavior:"smooth"})},[]),g=(0,m.useCallback)(()=>{const C=r.current?.scrollHeight;r.current?.scrollTo({top:C,behavior:"smooth"})},[]);(0,bs.A)(Cd,f),(0,bs.A)(xd,g),hV({isVisible:u}),mV({isVisible:h}),(0,m.useEffect)(()=>{if(!p&&a.current){const x=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:x})}},[p,a]);const v=Eg("navPrev",{visible:u,hide:p});return(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:r,children:(0,n.jsxs)("div",{className:Eg(),children:[!e&&(0,n.jsx)("div",{className:v,children:(0,n.jsx)(pm,{lessonId:l,ref:a})}),t,s&&(0,n.jsx)(xg,{lessonId:l,ref:c}),o&&(0,n.jsx)(gm,{lessonId:l,ref:d})]})})},yl=J("navButtonsFloating"),Tg=({transitionIn:t,buttonType:e,children:s})=>{const o=(0,m.useRef)(),r={entered:yl(e,{entered:!0}),exiting:yl(e,{exiting:!0}),exited:yl(e,{exited:!0})};return(0,n.jsx)(ys.eB,{in:t,nodeRef:o,timeout:250,children:a=>(0,n.jsx)("div",{className:r[a],ref:o,children:s})})},fV=250,Sg={threshold:.2},gV=({topRef:t,bottomRef:e,pageWrapRef:s,currentLessonId:o})=>{const r=Ru(t,Sg),a=Ru(e,Sg),[c,d]=(0,m.useState)(!1),[l,u]=(0,m.useState)(!1),[h,p]=(0,m.useState)(!1),f=(0,m.useCallback)(()=>{s.current?.scrollTo({top:2,behavior:"smooth"})},[s]);return(0,R1.A)(f),(0,m.useEffect)(()=>{d(!0);const g=setTimeout(()=>{f(),d(!1)},fV);return()=>{clearTimeout(g)}},[o,f]),(0,m.useEffect)(()=>{u(a&&!c),p(r&&!c)},[a,r,c]),{showPrev:h,showNext:l}},vV=({children:t,isCurrentLessonQuiz:e,navNextEnabled:s,hideNavToHome:o,navFinishEnabled:r})=>{const a=(0,m.useRef)(),c=(0,m.useRef)(),d=(0,m.useRef)(),l=(0,m.useRef)(),u=(0,m.useRef)(),h=(0,m.useRef)(),p=Go(),{showNext:f,showPrev:g}=gV({topRef:u,bottomRef:h,pageWrapRef:a,currentLessonId:p}),v=(0,m.useCallback)(()=>{a.current?.scrollTo({top:0,behavior:"smooth"})},[]),C=(0,m.useCallback)(()=>{const x=a.current?.scrollHeight;a.current?.scrollTo({top:x,behavior:"smooth"})},[]);return(0,bs.A)(Cd,v),(0,bs.A)(xd,C),(0,m.useEffect)(()=>{e&&(s||r)&&C()},[e,s,r,C]),(0,n.jsxs)("div",{className:"page-wrap",id:"page-wrap",ref:a,children:[(0,n.jsx)("div",{ref:u,className:yl("top")}),!o&&(0,n.jsx)(Tg,{transitionIn:g,buttonType:"prev",children:(0,n.jsx)(pm,{lessonId:p,onFocus:v,ref:c})}),t,(0,n.jsx)(Tg,{transitionIn:f&&(s||r),buttonType:"next",children:s?(0,n.jsx)(xg,{lessonId:p,onFocus:C,ref:d}):r?(0,n.jsx)(gm,{lessonId:p,onFocus:C,ref:l}):null}),(0,n.jsx)("div",{ref:h,className:yl("bottom")})]})},{FULL:CV,FLOATING:Lg}=P.AY,xV=J("lessonNavigation"),EV=({children:t})=>{const e=(0,m.createRef)();return(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:e,children:t})},TV=(t,e)=>t+(e?.drawCount??1),SV=(t=[])=>t.reduce(TV,0),LV=({children:t,isPreviewLesson:e})=>{const{buttonNavigationStyle:s}=(0,Me.DX)(),{pathname:o}=(0,ke.zy)(),r=(0,Me.DX)(),{showNavigationButtons:a,lessonsOnly:c,lmsOptions:d={}}=r,l=(0,m.useRef)(),u=Xs(480),h=Go(),p=Co(h)||{},f=De(h)||{},[g,v]=(0,m.useState)(s),C=c[0].id,x=d?.disableCoverPage&&C===h,S=d?.disableCoverPage,E=d?.disableCoverPage?x:S;(0,m.useEffect)(()=>{s!==g&&(v(s),window.dispatchEvent(new CustomEvent(Cd)))},[s,g]);const b=C3(p)?f.isComplete:!0,L=f.activeIndex===SV(p.items)+1,I=p.type==="quiz"&&!L||p.settings?.continueType==="continue",N=p&&jr({course:r,lesson:p}),R=h==="progress-summary",j=window.isPublicShare,O=N&&!e&&b&&!I&&!R,B=!N&&b&&ye.BI&&!j&&!R&&!e&&!(0,de.Hm)()&&!I,_=xV("wrapper",{full:s===CV||u,floating:s===Lg&&!u}),te=!a||e?EV:s===Lg&&!u?vV:pV;return(0,m.useEffect)(()=>{const F=document.querySelector(".page__content");F&&F.classList.add("page__content--preview-nav")},[te]),(0,n.jsx)("div",{className:_,ref:l,children:(0,n.jsx)(te,{hideNavToHome:E,navNextEnabled:O,navFinishEnabled:B,children:(0,n.jsx)(Uz,{children:(0,n.jsx)(ys.F,{component:"div",children:(0,n.jsx)(T1,{children:t},o)})})})})},bg=J("courseExit");function vm(t){const e=(0,ze.useLabelsMap)(),{className:s,lmsOptions:o,style:r}=t;return o?.enableExitCourse?(0,n.jsx)("div",{className:bg("wrapper"),children:(0,n.jsx)("button",{className:bg("button").mix(s),onClick:ye.NS,style:r,type:"button",children:e?.courseExit})}):null}vm.propTypes={className:A().string};const Cm=J("nav-control"),bV=()=>{const[t,e]=(0,m.useState)(!1);return(0,bs.A)(k2,()=>e(!0)),(0,bs.A)(e1,()=>e(!1)),t},yV=({"aria-controls":t,isNavOpen:e,toggleNav:s,hideNav:o})=>{const{buttonNavigationStyle:r,lmsOptions:a,showNavigationButtons:c,...d}=(0,Me.DX)(),l=(0,m.useRef)(null),[u,h]=(0,m.useState)(0),p=(0,ze.useLabelsMap)(),f=Uc(),g=Wl(),v=bV(),x=!!(0,m.useMemo)(()=>d.lessons?.find(N=>N.id===g),[d.lessons,g])?.settings?.timer,S=a?.enableExitCourse,E=x||S,b=d.navigationType===P.br.COMPACT,L=b?"fixed-course-exit":void 0;(0,m.useEffect)(()=>{l.current=document.querySelector(".page-wrap");const R=document.querySelector(".lesson-nav--previous")?.clientHeight??60,j=!c||r===P.AY.FLOATING&&!f;function O({target:B}){const _=B?.scrollTop??0,k=R-_;h(k)}return v&&!j?l.current.scrollTop===0?h(R):l.current.addEventListener("scroll",O):h(0),()=>l.current.removeEventListener("scroll",O)},[r,f,v,c]);const I=(0,m.useCallback)(()=>{const N=document.getElementsByClassName("nav-control__menu--top-nav-bar")?.item(0);if(l.current&&N){const R=l.current.offsetWidth-l.current.clientWidth||0;N.style.maxWidth=`calc(100% - ${R}px)`}},[]);return(0,m.useLayoutEffect)(()=>{E&&I()},[E,I]),(0,n.jsx)("div",{className:Cm("wrapper"),children:(0,n.jsxs)("div",{className:Cm("menu",{"is-timed-quiz":x,"nav-off":o,"top-nav-bar":E}),style:{marginTop:u},children:[!o&&(!b||f)&&(0,n.jsx)("button",{className:Cm("button"),"aria-controls":t,"aria-expanded":e,"aria-label":e?p?.a11yNavigationMenuClose:p?.a11yNavigationMenuOpen,onClick:s,type:"button",children:(0,n.jsx)(o4,{className:"page-menu-toggle__icon"})}),(0,n.jsx)(vm,{lmsOptions:a,className:L})]})})};var Ws=i(2316);function xm(t){return t?.search}function Il(){return(0,X.d4)(t=>xm(t))}function IV(t){return xm(t)?.activeLessons}const NV=(0,Ot.Mz)(IV,t=>t.reduce((e,s)=>(s?.id&&(e[s.id]=s),e),{}));function jV(){return(0,Ot.Mz)(t=>t,(t,e)=>NV(e),(t,e)=>e?.[t])}function AV(t){const e=(0,m.useMemo)(()=>jV(),[]);return(0,X.d4)(s=>e(t,s))}const yg=J("nav-compact"),RV=Dt("NavCompactHeaderCounter",t=>{const{lessonPosition:e,labelLessonName:s,labelLessonPreposition:o,totalLessons:r}=t;return e<=0?null:(0,n.jsx)("div",{className:yg("header-counter"),children:`${s} ${e} ${o} ${r}`})}),OV=Dt("NavCompactHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:s,classProgressTrack:o,percentComplete:r,percentCompleteText:a,navExpanded:c}=t;return(0,n.jsxs)("div",{className:yg("header-progress"),children:[(0,n.jsx)("div",{className:s,children:a}),(0,n.jsx)(vd,{"aria-hidden":c,"aria-label":a,progress:r,runnerClass:e,trackClass:o})]})}),PV=({a11yNavigationMenuClose:t,a11yNavigationMenuOpen:e,a11ySearchOpen:s,allowSearch:o,lmsOptions:r={},closeNav:a,coverImageColor:c,dispatch:d,isExpanded:l,labelLessonComplete:u,labelLessonName:h,labelLessonPreposition:p,lessonPosition:f,lessonsOnlyIds:g,navigationMode:v,navigationStyle:C,openNav:x,percentComplete:S,searchActive:E,title:b})=>{const L=(0,m.useMemo)(()=>(0,At.FH)(C),[C]),I=(0,m.useCallback)(()=>{l?a():x()},[l,x,a]),N=r?.disableCoverPage,O=`${(0,Me.Wz)()?`%${S}`:`${S}%`} ${u}`,{alpha:B,ariaLabel:_,media:k,role:te}=pa("coverImage"),F=(0,At.b9)({alpha:B,color:c,media:k}),K=M()("nav-compact__header",{"nav-compact__header--collapsed":!l}),Z=M()("nav-compact__header-image",{"nav-compact__header-image--collapsed":!l}),xe="nav-compact__header-inner",fe="nav-compact__header-control",oe=M()("nav-compact__header-title-link",{"nav-compact__header-title-link--collapsed":!l}),we=M()("nav-compact__header-progress-text",{"nav-compact__header-progress-text--collapsed":!l}),Ae=M()("nav-compact__header-progress-track",{"nav-compact__header-progress-track--collapsed":!l}),_e=M()("nav-compact__header-progress-runner",{"nav-compact__header-progress-runner--collapsed":!l}),Qe="nav-compact__header-strip",pt=(0,m.useCallback)(()=>{d((0,Ws.ts)(!E))},[d,E]);return(0,n.jsxs)("section",{"aria-label":"Course Information",className:K,children:[L&&F&&(0,n.jsx)("div",{className:Z,style:F,"aria-label":_,role:te}),(0,n.jsxs)("div",{className:xe,children:[(0,n.jsxs)("div",{className:Qe,children:[(0,n.jsxs)("div",{className:"nav-compact__header-controls",children:[o&&v!=="restricted"&&l&&(0,n.jsx)("button",{"aria-label":s,className:`${fe} nav-compact__header-search`,onClick:pt,type:"button",children:(0,n.jsx)(Kc,{className:"nav-compact__header-control-icon nav-compact__header-search-icon"})}),(0,n.jsxs)("button",{"aria-controls":"nav-compact-outline","aria-label":l?t:e,"aria-expanded":l,className:`${fe} nav-compact__header-toggle`,onClick:I,type:"button",children:[l&&(0,n.jsx)(mE,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"}),!l&&(0,n.jsx)(pE,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"})]})]}),(0,n.jsx)(RV,{lessonPosition:f,labelLessonName:h,labelLessonPreposition:p,totalLessons:g.length})]}),(0,n.jsx)("div",{className:"nav-compact__header-title",children:N?(0,n.jsx)("span",{className:oe,children:b}):(0,n.jsx)(Qn,{className:oe,to:"/",children:b})}),(0,n.jsx)(OV,{classProgressRunner:_e,classProgressText:we,classProgressTrack:Ae,percentComplete:S,percentCompleteText:O,navExpanded:l})]})]})};function MV(){const t=Ic();return(e,s)=>{const{currentLocale:o}=s,r=Ut(e),a=br(o,e),c=ca(e),d=(0,ze.selectLabelsMap)(o,e),l=Ct(e),u=t(e),h=xm(e);return{a11yNavigationMenuClose:d.a11yNavigationMenuClose,a11yNavigationMenuOpen:d.a11yNavigationMenuOpen,a11ySearchOpen:d.a11ySearchOpen,allowSearch:r.allowSearch,lmsOptions:r.lmsOptions,coverImageColor:r.theme?.coverImageColor,labelLessonComplete:d.lessonComplete,labelLessonName:d.lessonName,labelLessonPreposition:d.lessonPreposition,lessonPosition:u,lessonsOnlyIds:l,navigationMode:r.navigationMode,navigationStyle:r.navigationStyle,percentComplete:c,searchActive:h.active,themeId:r.themeId,title:a}}}const DV=Se()(xs.wZ,(0,X.Ng)(MV))(PV);function Ig({id:t,isEnabled:e,isSectionLesson:s,last:o}){const{navigationStyle:r}=Mt(),a=ko(t),c=Go(),d=Rc(t),l=(0,m.useMemo)(()=>(0,At.I8)(r),[r]),u=t===c,h=su(a||"",45),[p,f]=(0,m.useState)(!1),g=(0,m.useCallback)(()=>f(!0),[]),v=(0,m.useCallback)(()=>f(!1),[]),C=s?"nav-compact__outline-section-item":"nav-compact__outline-item",x=(0,n.jsx)(Dd,{canComplete:d,isDark:l,id:t,isEnabled:e,isTooltipVisible:p,onShowTooltip:g,onHideTooltip:v,scope:$e.by.COMPACT});return(0,n.jsxs)("li",{className:"nav-compact__outline-list-item",role:"listitem",children:[(0,n.jsxs)(Zc,{className:C,dark:l,isCurrentLesson:u,isTooltipEnabled:!d,last:o,lessonId:t,onHideProgressTooltip:v,onShowProgressTooltip:g,showProgressDelay:0,tooltipClassName:`${C}-tooltip`,children:[h,!d&&x]}),d&&x]})}const kV=J("nav-compact"),wV=({id:t})=>{const e=Co(t),s=Us(e?.title),o=kV("outline-section-empty");return(0,n.jsx)("div",{className:o,children:(0,n.jsx)("span",{children:s})})},BV=({index:t,isEnabled:e,lessonIds:s,themeId:o,title:r})=>{const[a,c]=(0,m.useState)(!0),[d,l]=(0,m.useState)(),u=(0,m.useRef)(),h=`sublistCompact-${t}`,p=M()("nav-compact__outline-section-toggle-icon",{"nav-compact__outline-section-toggle-icon--collapsed":!a}),f=M()("nav-compact__outline-section-list",{"nav-compact__outline-section-list--collapsed":!a}),g=M()("nav-compact__outline-section-toggle",{"nav-compact__outline-section-toggle--collapsed":!a}),v=(0,m.useCallback)(()=>{c(C=>!C)},[]);return(0,m.useLayoutEffect)(()=>{const C=setTimeout(()=>{u.current&&l(u.current.scrollHeight)},0);return()=>{clearTimeout(C)}},[s.length,o]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{"aria-controls":h,"aria-expanded":a,className:g,onClick:v,tabIndex:e?void 0:-1,type:"button",children:[(0,n.jsx)("span",{className:"nav-compact__outline-section-toggle-text",children:r}),(0,n.jsx)(b2,{className:p})]}),(0,n.jsx)(Td,{inert:!a,children:(0,n.jsx)("ol",{"aria-hidden":a?void 0:!0,className:f,id:h,ref:u,role:"list",style:{maxHeight:d},children:s.map((C,x)=>(0,n.jsx)(Ig,{id:C,isEnabled:e&&a,isSectionLesson:!0,last:x===s.length-1},C))})})]})};function _V(){const t=vo(),e=ho();return(s,o)=>{const{currentLocale:r}=o,a=Ut(s),c=t(o.id,s),d=e(c.title,r,s);return{navigationStyle:a.navigationStyle,themeId:a.themeId,title:d}}}const UV=Se()(xs.wZ,(0,X.Ng)(_V))(BV),HV=({index:t,isEnabled:e,lessonIds:s})=>{const[o,...r]=s,a="nav-compact__outline-item nav-compact__outline-section";return Yt()(r)?(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(wV,{id:o})}):(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(UV,{id:o,index:t,isEnabled:e,lessonIds:r})})},FV=({index:t,isEnabled:e,lessonIds:s})=>oi(s)?(0,n.jsx)(HV,{index:t,isEnabled:e,lessonIds:s}):s.map((r,a)=>(0,n.jsx)(Ig,{id:r,isEnabled:e,isSectionLesson:!1,last:a===s.length-1},r)),zV=Dt("NavCompactOutline",({className:t="",isEnabled:e,lessonIdGroups:s})=>{const o=(0,ze.useLabelsMap)(),r=M()(t,"nav-compact__outline",{"nav-compact__outline--collapsed":!e});return(0,n.jsx)("section",{"aria-label":o?.a11yRegionNavOverview,className:r,id:"nav-compact-outline",children:Ma(s)&&(0,n.jsx)("ol",{className:"nav-compact__outline-list",role:"list",children:s.map((a,c)=>Yt()(a)?null:(0,n.jsx)(FV,{index:c,isEnabled:e,lessonIds:a},c))})})});function VV(t){const e=Ut(t);return{lessonIdGroups:Ac(t),navigationStyle:e.navigationStyle}}const WV=(0,X.Ng)(VV)(zV),s0e=()=>{const[t,e]=useState(!1);return useEvent(EVENT_LESSON_NAV_PREV_VISIBLE,()=>e(!0)),useEvent(EVENT_LESSON_NAV_PREV_HIDDEN,()=>e(!1)),t},GV=()=>{const[t,e]=(0,m.useState)(!1);return(0,bs.A)(w2,()=>e(!0)),(0,bs.A)(t1,()=>e(!1)),t},Ng=J("nav-compact"),jg="nav-content-compact",KV=({closeNav:t,coverImageColor:e,isExpanded:s,navigationStyle:o,openNav:r,progressIndicatorStyle:a,translateY:c},d)=>{const l=(0,m.useMemo)(()=>(0,At.I8)(o),[o]),u=(0,m.useMemo)(()=>o===P.Py.LIGHT_ACCENT||o===P.Py.DARK_ACCENT,[o]),h=GV(),p=(0,m.useMemo)(()=>(0,At.FH)(o),[o]),f=a===P.Y2.CIRCULAR_FILL,g=a===P.Y2.INCOMPLETE_COMPLETE,v=(0,m.useMemo)(()=>p&&e===P.df.LIGHT,[p,e]),C=Ng({accent:u,dark:l,light:!l,"image-dark-overlay":p&&!v,"image-light-overlay":p&&v,"progress-circular-fill":f,"progress-incomplete-complete":g,collapsed:!s,navNextIsVisible:h}),x=Ng("wrap",{collapsed:!s}),S={transform:`translateY(${c}px)`};return(0,n.jsx)("div",{className:C,id:jg,ref:d,style:S,children:(0,n.jsxs)("div",{className:x,children:[(0,n.jsx)(DV,{isExpanded:s,openNav:r,closeNav:t}),(0,n.jsx)(Td,{inert:!s,children:(0,n.jsx)(WV,{isEnabled:s})})]})})};function $V(t){return Ut(t).buttonNavigationStyle==="FULL"?Math.round(-(t.ui.lessonNavNextButton?.intersectionRect?.height??0)):0}function QV(t){const{color:e,navigationStyle:s,theme:o}=Ut(t),r=o?.coverImageColor,a=o?.progressIndicatorStyle,c=$V(t);return{color:e,coverImageColor:r,navigationStyle:s,progressIndicatorStyle:a,translateY:c}}const ZV=Se()((0,X.Ng)(QV,null,null,{forwardRef:!0}),m.forwardRef)(KV),Em=Object.assign((0,m.createContext)(null),{displayName:"OverlayNavControlContext"});function YV(t){const{children:e,closeNav:s,openNav:o}=t,[r,a]=(0,m.useState)(!1),c=(0,m.useCallback)(()=>{a(!0)},[]),d=(0,m.useCallback)(()=>{a(!1)},[]);return(0,n.jsx)(Em.Provider,{value:{closeNav:s,openNav:o,openSearch:c,closeSearch:d,searchActive:r},children:e})}const o0e=Em.Consumer,Ou=m.useContext.bind(null,Em),Pu=J("nav-overlay"),XV=({className:t})=>{const{navigationStyle:e}=Mt(),{lessonComplete:s}=(0,ze.useLabelsMap)(),o=(0,Me.Wz)(),r=si(),c=`${o?`%${r}`:`${r}%`} ${s}`,d=e!==P.qB.ACCENT,l=Pu("header-progress-runner"),u=Pu("header-progress-text"),h=Pu("header-progress-track");return(0,n.jsxs)("div",{className:Pu("header-progress").mix(t),children:[(0,n.jsx)(vd,{"aria-hidden":!0,background:!0,disabled:d,progress:r,runnerClass:l,trackClass:h}),(0,n.jsx)("div",{className:u,children:c})]})},Cr=J("nav-overlay"),JV=()=>{const t=Mt(),e=Mo(),{allowSearch:s,navigationMode:o,lmsOptions:r={}}=t,a=(0,ze.useLabelsMap)(),c=Ou(),d=(0,m.useRef)(),l=Cr("header-control-btn"),u=r?.disableCoverPage;return(0,n.jsx)("section",{"aria-label":"Course Information",children:(0,n.jsxs)("div",{className:Cr("header-container"),children:[(0,n.jsxs)("div",{className:Cr("header-controls"),children:[(0,n.jsx)("button",{"aria-label":a?.a11yNavigationMenuClose,className:l,onClick:c.closeNav,ref:d,type:"button",children:(0,n.jsx)(fd,{className:Cr("header-close-icon")})}),s&&o!=="restricted"&&(0,n.jsx)("button",{"aria-label":a?.a11ySearchOpen,className:l,onClick:c.openSearch,type:"button",children:(0,n.jsx)(Kc,{className:Cr("header-search-icon")})})]}),(0,n.jsxs)("div",{className:Cr("header-title-progress-container"),children:[(0,n.jsx)("h1",{className:Cr("header-title"),id:"nav-overlay-title",children:u?(0,n.jsx)("span",{className:Cr("header-title"),children:e}):(0,n.jsx)(Qn,{className:Cr("header-title-link"),to:"/",children:e})}),(0,n.jsx)(XV,{})]})]})})},Tm=({icon:t,...e})=>{switch(t){case $e.xA.INTERACTION:return(0,n.jsx)(TE,{...e});case $e.xA.QUIZ:return(0,n.jsx)(vE,{...e});case $e.xA.VIDEO:return(0,n.jsx)(SE,{...e});default:return(0,n.jsx)(uE,{...e})}},tc=J("nav-overlay"),Ag=Dt("NavOverlayOutlineLesson",({first:t,id:e,isEnabled:s,isSectionLesson:o,last:r})=>{const{navigationStyle:a}=Mt(),{icon:c}=Co(e),d=ko(e),l=Ou(),u=Rc(e),h=(0,At.I8)(a),p=tc("outline-item",{section:o}),f=tc("outline-item-link-icon",{quiz:c==="Quiz"}),g=(0,m.useCallback)(()=>{l.closeNav()},[l]),[v,C]=(0,m.useState)(!1),x=(0,m.useCallback)(()=>C(!0),[]),S=(0,m.useCallback)(()=>C(!1),[]),E=(0,n.jsx)(Dd,{canComplete:u,id:e,isDark:h,isEnabled:s,isTooltipVisible:v,onHideTooltip:S,onShowTooltip:x,scope:$e.by.OVERLAY});return(0,n.jsxs)("li",{className:tc("outline-list-item",{first:t,last:r}),role:"listitem",children:[(0,n.jsxs)(Zc,{className:p.toString(),dark:h,isTooltipEnabled:!u,lessonId:e,onHideProgressTooltip:S,onNavigate:g,onShowProgressTooltip:x,showProgressDelay:null,tooltipClassName:tc("outline-item-tooltip").toString(),children:[(0,n.jsx)("span",{className:tc("outline-icon-wrap"),children:(0,n.jsx)(Tm,{className:f,icon:c})}),(0,n.jsx)("span",{className:tc("outline-lesson-title"),children:d}),!u&&E]}),u&&E]})}),qV=J("nav-overlay"),eW=({id:t})=>{const e=Co(t),s=Us(e.title);return(0,n.jsx)("span",{className:qV("outline-section-text"),children:s})},Rg=J("nav-overlay"),tW=({isEnabled:t,lessonIds:e})=>{const s=(0,m.useRef)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:Rg("outline-section-divider")}),(0,n.jsx)("ol",{className:Rg("outline-section-list"),ref:s,role:"list",children:e.map((o,r)=>(0,n.jsx)(Ag,{id:o,isEnabled:t,isSectionLesson:!0,last:r===e.length-1},o))})]})},sW=J("nav-overlay"),nW=({index:t,isEnabled:e,lessonIds:s})=>{const[o,...r]=s,a=sW("outline-item").mix("nav-overlay__outline-section");return Yt()(r)?(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(eW,{id:o})}):(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(tW,{isEnabled:e,index:t,lessonIds:r})})},oW=({index:t,isEnabled:e,lessonIds:s})=>{const o=oi(s),r=ko(s[0]),a=J("nav-overlay");return o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:a("outline-section-text"),children:r}),(0,n.jsx)("ol",{className:a("outline-list"),role:"list",children:(0,n.jsx)(nW,{index:t,isEnabled:e,lessonIds:s})})]}):s.map((c,d)=>(0,n.jsx)(Ag,{id:c,isEnabled:e,isSectionLesson:!1,first:d===0,last:d===s.length-1},c))},rW=J("nav-overlay"),aW=Dt("NavOverlayOutline",({isEnabled:t})=>{const e=cp(),s=(0,ze.useLabelsMap)();return(0,n.jsx)("section",{"aria-label":s?.a11yRegionNavOverview,className:rW("outline"),id:"nav-compact-outline",children:Ma(e)&&(0,n.jsx)(n.Fragment,{children:e.map((o,r)=>Yt()(o)?null:(0,n.jsx)(oW,{index:r,isEnabled:t,lessonIds:o},`lessonIdGroup-${r}`))})})});var iW=i(32696),Mu=i.n(iW),cW=i(18403),Du=i.n(cW);const Sm=Array.isArray,lW=t=>typeof t=="number",ku=t=>!wt()(t)&&typeof t=="object",Lm=t=>typeof t=="string",dW=(t,e,s)=>(o,r)=>{const a=on()(r,t);if((0,_s.uW)(o)){const c=s[o.l10nId];return typeof c!="string"?!1:!Yt()(Du()(e,(0,ja.htmlDecode)(c)))}else return ku(o)?Og(t,e,s)(o):a&&Lm(o)?!Yt()(Du()(e,(0,ja.htmlDecode)(o))):!1},Og=(t,e,s)=>o=>St()(Wr(),yo(),on()(!0))(dW(t,e,s),o),uW=Og,hW=(t,e,s)=>(o,r)=>{const a=on()(r,t);return Sm(o)?yo()(bm(t,e,s)(o)):(0,_s.uW)(o)?typeof s[o.l10nId]!="string"?0:us()(Du()(e,(0,ja.htmlDecode)(s[o.l10nId]))):ku(o)?bm(t,e,s)(o):a&&Lm(o)?us()(Du()(e,(0,ja.htmlDecode)(o))):0},bm=(t,e,s)=>o=>Wr()(hW(t,e,s),o),ym=t=>{if(Sm(t))return ws()(ym,t);if(ku(t))return ym(yo()(t));if(lW(t))return t},mW=(t,e,s)=>o=>St()(bm(t,e,s),yo(),ws()(ym),cl(),Nn()(Bi(),0),r=>st()("results",r,o))(o),pW=(t,e,s)=>(o,r)=>{const a=on()(r,t);return Sm(o)?yo()(Im(t,e,s)(o)):ku(o)?Im(t,e,s)(o):a&&Lm(o)?td()(e,s,o):o},Im=(t,e,s)=>o=>Wr()(pW(t,e,s),o),Pg=Im,Mg=(t,e,s,o,r)=>{const a=["caption","code","description","heading","message","name","paragraph","title","type"];if(Yt()(t))return!1;const c=t.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),d=new RegExp(`(${c})(?![^<]*>)`,"ig"),l=S=>`<mark>${S}</mark>`,u=Pg(a,d,l),h=Pg(Object.keys(s),d,l),p=ws()(u,e),f=o(t),g=h(s),v=S=>f[S.id]>0||uW(a,d,s)(S),C=mW(a,d,s),x=St()(Qt()(v),ws()(C))(e);x.forEach(S=>{S.results+=f[S.id]??0}),r(t,x,g,p)};var fW=i(83760);const gW=tl.Ay.animateScroll,ro=J("nav-overlay"),vW=()=>{const t=(0,X.wA)(),e=vt(),s=Ou(),{lessons:o,mondrian:r}=Mt(),[a,c]=(0,m.useState)(""),[d,l]=(0,m.useState)(null),u=(0,m.useRef)(),h=(0,ze.useLabelsMap)(),p=ro("search-close-btn"),f=ro("search-clear-btn"),g=(0,m.useCallback)(()=>{s.closeSearch(),s.closeNav(),t([(0,Ws.Se)(!0),(0,Ws.ts)(!1),(0,Ws.NM)(null)])},[t,s]),v=(0,m.useCallback)(()=>{c(""),u.current?.focus?.()},[]);(0,m.useEffect)(()=>{u.current?.focus?.()},[]),(0,m.useEffect)(()=>{i.e("webpack_container_remote_mondrian_learn-react").then(i.t.bind(i,4246,23)).then(({searchItemsByLesson:E})=>{l(()=>b=>E(b,o,r))})},[o,r]);const C=(0,m.useCallback)(E=>{yn(E)&&!Mu()(a)?(E.preventDefault(),c(""),t((0,Ws.NM)(null))):yn(E)&&Mu()(a)&&g()},[t,g,a]);(0,fW.A)("keydown",C);const x=(0,m.useCallback)(E=>{c(E.target.value)},[]),S=(0,m.useCallback)(E=>{if(E.preventDefault(),a&&d){const b=(L,I,N,R)=>{t([(0,Ws.NM)(L),(0,Ws.gA)(I),(0,Ws.D2)(N),(0,Ws.u)(R),(0,Ws.ts)(!0)]),gW.scrollToTop({duration:500,smooth:!0})};s.closeNav(),s.closeSearch(),Mg(a,o,e??{},d,b)}},[t,s,o,e,a,d]);return(0,n.jsxs)("div",{className:ro("search"),children:[(0,n.jsx)("div",{className:ro("search-header"),children:(0,n.jsx)("button",{"aria-label":h?.a11ySearchClose,className:p,onClick:g,type:"button",children:(0,n.jsx)(fd,{className:ro("search-close-icon")})})}),(0,n.jsx)("div",{className:ro("search-body"),children:(0,n.jsxs)("form",{autoComplete:"off",onSubmit:S,children:[(0,n.jsxs)("div",{className:ro("search-container"),children:[(0,n.jsx)(Kc,{className:ro("search-icon")}),(0,n.jsx)("input",{"aria-label":h?.a11ySearchInput,className:ro("search-input").mix("brand--ui"),name:"search",onChange:x,placeholder:h?.search,ref:u,type:"input",value:a}),a&&(0,n.jsx)("button",{"aria-label":h?.a11ySearchInputClear,className:f,onClick:v,type:"button",children:(0,n.jsx)(fd,{className:ro("search-clear-icon").toString()})})]}),(0,n.jsx)("div",{className:ro("search-actions"),children:(0,n.jsx)("button",{className:ro("search-submit-btn").mix("brand--ui"),type:"submit",children:h?.search})})]})})]})},Nm=J("nav-overlay"),Dg="nav-content-overlay",CW=({isExpanded:t,outlineRef:e})=>{const o=cp()[0],r=oi(o),a=Nm("body",{section:r});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(JV,{}),(0,n.jsx)("div",{className:a,ref:e,children:(0,n.jsx)(aW,{isEnabled:t})})]})},xW=({children:t,isImage:e,hasStickyHeader:s})=>{const o=Nm("content",{graphic:e,"has-sticky-header":s});return(0,n.jsxs)("div",{className:o,"data-nav-scrollable":!0,children:[t,e&&(0,n.jsx)(_0,{})]})},EW=({isExpanded:t})=>{const e=(0,m.useRef)(null),s=(0,m.useRef)(),o=Mt(),r=Ou(),a=(0,as.A)(t),{navigationStyle:c,theme:{progressIndicatorStyle:d}}=o,l=o?.theme?.coverImageColor,u=c===P.qB.ACCENT,h=c===P.qB.TINT,p=(0,At.I8)(c),f=c===P.qB.GRAY,g=c===P.qB.LIGHT,v=(0,At.FH)(c),C=d===P.Y2.CIRCULAR_FILL,x=d===P.Y2.INCOMPLETE_COMPLETE,[S,E]=(0,m.useState)(!0),{isIntersecting:b=!1}=(0,fm.A)(s,{root:e?.current,threshold:1})||{},L=(0,as.A)(b),I=(0,m.useMemo)(()=>v&&l===P.df.LIGHT,[v,l]),N=Nm({"accent-tint":h,accent:u,dark:p,gray:f,"image-dark-overlay":v&&!I,"image-light-overlay":v&&I,light:g,"progress-circular-fill":C,"progress-incomplete-complete":x,closing:a&&!t});return(0,m.useEffect)(()=>{t?e.current?.showModal():setTimeout(()=>{e.current?.close()},500)},[t]),(0,m.useEffect)(()=>{const R=j=>{yn(j)&&!r.searchActive&&(j.preventDefault(),r.closeNav())};return t?document.addEventListener("keydown",R):document.removeEventListener("keydown",R),()=>{document.removeEventListener("keydown",R)}},[t,r]),(0,m.useEffect)(()=>{!S&&b?E(!0):L&&!b&&E(!1)},[b,S,L,E]),(0,n.jsx)("dialog",{"aria-labelledby":"nav-overlay-title","aria-modal":"true",className:N,id:Dg,ref:e,children:(0,n.jsx)(xW,{hasStickyHeader:S,isImage:v,children:r.searchActive?(0,n.jsx)(vW,{}):(0,n.jsx)(CW,{isExpanded:t,outlineRef:s})})})},Nl=J("nav-sidebar-search"),TW=Dt("NavSidebarSearch",({className:t="",isEnabled:e})=>{const s=(0,X.wA)(),o=vt(),r=(0,as.A)(e),{lessons:a,mondrian:c}=Mt(),d=Il(),l=(0,ze.useLabelsMap)(),u=(0,m.useRef)(),h=Nl({disabled:!e}).mix(t),p=Nl("icon"),f=Nl("input"),g=Nl("close"),v=Nl("close-icon"),C=d?.term,x=e?void 0:"disabled",[S,E]=(0,m.useState)(""),[b,L]=(0,m.useState)(null);(0,m.useEffect)(()=>{i.e("webpack_container_remote_mondrian_learn-react").then(i.t.bind(i,4246,23)).then(({searchItemsByLesson:O})=>{L(()=>B=>O(B,a,c))})},[a,c]);const I=(0,m.useCallback)(()=>{s([(0,Ws.Se)(!0),(0,Ws.ts)(!1),(0,Ws.NM)(null)]),E("")},[s]),N=(0,m.useCallback)(O=>{yn(O)&&!Mu()(S)?(O.preventDefault(),E(""),s((0,Ws.NM)(null))):yn(O)&&Mu()(S)&&I()},[s,I,S]),R=(0,m.useCallback)(O=>{C!=null&&s((0,Ws.NM)(null)),E(O.target.value)},[s,C]),j=(0,m.useCallback)(O=>{O.preventDefault(),Mg(S,a,o??{},b,(_,k,te,F)=>s([(0,Ws.NM)(_),(0,Ws.gA)(k),(0,Ws.D2)(te),(0,Ws.u)(F)]))},[s,a,o,S,b]);return(0,m.useEffect)(()=>{!r&&e&&setTimeout(()=>{u.current.focus()},50)},[e,r]),(0,m.useEffect)(()=>{C&&C!==S&&E(C)},[S,C]),(0,n.jsxs)("form",{autoComplete:"off",className:h,onSubmit:j,children:[(0,n.jsx)(Kc,{className:p}),(0,n.jsx)("input",{"aria-label":l?.a11ySearchInput,className:f,disabled:x,name:"search",onChange:R,onKeyDown:N,placeholder:l?.search,ref:u,type:"search",value:S}),(0,n.jsx)("button",{"aria-label":l?.a11ySearchClose,className:g,onClick:I,type:"reset",children:(0,n.jsx)(fd,{className:v})})]})}),ao=J("nav-sidebar-header"),SW=J("nav-sidebar-header-ghost"),LW=()=>(0,X.d4)(t=>t.ui.skipToNavButton?.offsetHeight??0),bW=Dt("NavSidebarHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:s,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:c}=t;return(0,n.jsxs)("div",{className:ao("progress"),children:[(0,n.jsx)(vd,{"aria-hidden":"true",color:r,progress:a,runnerClass:e,trackClass:o}),(0,n.jsx)("div",{className:s,children:c})]})}),yW=Dt("NavSidebarHeader",({className:t,isCompact:e,isEnabled:s,navRefWidth:o,setIsCompact:r})=>{const a=(0,X.wA)(),[c,d]=(0,m.useState)(""),[l,u]=(0,m.useState)({height:0,width:0}),[h,p]=(0,m.useState)(l),[f,g]=(0,m.useState)(l),v=LW(),C=(0,m.useRef)(),x=(0,m.useRef)(),S=(0,m.useRef)(),[E,b]=(0,m.useState)(null),L=Mt(),I=Mo(),N=(0,ze.useLabelsMap)(),R=si(),j=Il(),O=P0(),B=(0,Me.Wz)(),_=L?.lmsOptions?.disableCoverPage,k=L?.allowSearch&&L?.navigationMode!=="restricted",te=L?.color,F=L?.theme?.coverImageColor,K=L?.navigationStyle,Z=(0,m.useMemo)(()=>(0,At.FH)(K),[K]),xe=A8(),fe=(0,as.A)(j),oe=(j?.active||xe)??!1,[we,Ae]=(0,m.useState)(!0),[_e,Qe]=(0,m.useState)(null),pt=ao({compact:e,searching:oe,transition:we}).mix(t),ls=ao("inner",{compact:e}),nt=ao("content",{compact:e,hidden:oe}),Ce=ao("graphic",{image:Z}),Ne=ao("progress-runner"),Ke=ao("progress-text",{compact:e}),He=ao("progress-track"),dt=ao("search-area",{hidden:!oe}),lt=ao("search-btn",{hidden:oe}),Ht=ao("search-icon"),Wt=ao("title",{compact:e}),vs=SW({compact:e,searching:oe}),Pn=`${B?`%${R}`:`${R}%`} ${N?.lessonComplete}`,Bs=s&&!oe?void 0:-1,Sn=s&&!oe?void 0:-1,{alpha:lo,media:Sr}=pa("coverImage"),kl=(0,m.useMemo)(()=>{let Ns={};return Z&&Object.assign(Ns,(0,At.b9)({alpha:lo,color:F,media:Sr})),oe&&(Ns.height=h.height),Ns},[lo,F,Sr,Z,oe,h.height]),ic=(0,m.useMemo)(()=>{let Ns={};return e&&(Ns.bottom=`calc(100% - ${v}px)`,Ns.width=o||0,Ns.transition="width 0.3s",s||(Ns.transition="width 0.3s",Ns.width="0rem")),l.height&&(Ns.height=l.height,Ns.overflow="hidden",e&&(Ns.transition="height 0.3s ease .1s, transform 0.3s ease .1s")),Ns},[e,s,o,l.height,v]);(0,m.useEffect)(()=>{d(e&&O?su(I,45):I)},[I,e,O]);const sp=oe?void 0:{height:f.height},d0=(0,m.useCallback)(()=>{p(l),a((0,Ws.ts)(!0))},[a,l]);(0,m.useLayoutEffect)(()=>{Qe(document.querySelector("[data-nav-scrollable]"))},[]);const{isIntersecting:qr=!1}=(0,fm.A)(C,{root:_e,threshold:0})||{},wl=(0,as.A)(qr);(0,m.useEffect)(()=>{const Ns=E!=null&&window.innerHeight*.4>=E.offsetHeight;wl&&!qr&&Ns?r(!0):!wl&&qr&&r(!1)},[qr,wl,E,r]);const np=(0,m.useCallback)(({target:Ns})=>{const Ln={height:Ns?.scrollHeight??0,width:o??0};u(Ln),p(Ln),e||g(Ln)},[e,o]);Ed(E,np),(0,m.useLayoutEffect)(()=>{const Ns=_e?.scrollTop;(_e||Ns>0)&&(_e.scrollTop=0);const Ln={height:E?.scrollHeight??0,width:o??0};u(Ln),p(Ln),g(Ln)},[_e,o,E]),(0,m.useEffect)(()=>{k&&fe?.active&&!j.active&&x?.current?.focus()},[k,j,fe]),(0,m.useEffect)(()=>{oe?Ae(!0):e&&Ae(!1)},[oe,e]);const op=(0,m.useCallback)(Ns=>{if(Ns.target.getAttribute("data-link")!=="lesson-link-item"||!e)return;const Ln=E.getBoundingClientRect(),za=Ns.target.getBoundingClientRect();Ln.bottom>za.top&&(_e.scrollTop-=Ln.height-za.top+5)},[_e,e,E]);return(0,bs.A)("focusin",op,_e),(0,m.useEffect)(()=>d(I),[I]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:vs,ref:C,style:sp}),(0,n.jsx)("div",{className:pt,ref:S,style:ic,children:(0,n.jsxs)("div",{className:ls,ref:b,children:[(0,n.jsx)("div",{className:Ce,style:kl}),k&&(0,n.jsx)("button",{"aria-label":N?.a11ySearchOpen,className:lt,onClick:d0,tabIndex:Bs,type:"button",children:(0,n.jsx)(Kc,{className:Ht})}),(0,n.jsx)("div",{className:dt,children:(0,n.jsx)(TW,{isEnabled:s&&oe})}),(0,n.jsxs)("div",{className:nt,children:[_?(0,n.jsx)("span",{className:Wt,tabIndex:Sn,children:c}):(0,n.jsx)(Qn,{className:Wt,tabIndex:Sn,to:"/",children:c}),(0,n.jsx)(bW,{classProgressRunner:Ne,classProgressText:Ke,classProgressTrack:He,color:te,percentComplete:R,percentCompleteText:Pn})]})]})})]})}),IW=J("nav-sidebar");function kg({closeNav:t,id:e,isEnabled:s,isSectionLesson:o,last:r}){const{navigationStyle:a}=Mt(),{icon:c}=Co(e)??{},d=ko(e),l=Go(),u=Uc(),h=Rc(e),p=e===l,f=(0,m.useMemo)(()=>(0,At.I8)(a),[a]),g=o?"nav-sidebar__outline-section-item":"nav-sidebar__outline-item",v=M()(`${g}-link-icon`),C=(0,n.jsx)(Tm,{className:v,icon:c}),[x,S]=(0,m.useState)(!1),E=(0,m.useCallback)(()=>S(!0),[]),b=(0,m.useCallback)(()=>S(!1),[]),L=(0,n.jsx)(Dd,{canComplete:h,id:e,isDark:f,isEnabled:s,isTooltipVisible:x,onHideTooltip:b,onShowTooltip:E,scope:$e.by.SIDEBAR}),I=()=>{t&&u&&t()};return(0,n.jsxs)("li",{className:IW("outline-list-item",{last:r}),role:"listitem",children:[(0,n.jsxs)(Zc,{className:g,dark:f,isCurrentLesson:p,isTooltipEnabled:!h,lessonId:e,onHideProgressTooltip:b,onNavigate:I,onShowProgressTooltip:E,showProgressDelay:0,tooltipClassName:`${g}-tooltip`,children:[C,d,!h&&L]}),h&&L]})}const NW=({title:t})=>(0,n.jsx)("span",{className:"nav-sidebar__outline-section-text",children:t});function jW(){const t=vo(),e=ho();return(s,o)=>{const{currentLocale:r}=o,a=Ut(s),c=t(o.id,s),d=e(c.title,r,s);return{navigationStyle:a.navigationStyle,title:d}}}const AW=Se()(xs.wZ,(0,X.Ng)(jW))(NW),RW=({closeNav:t,id:e,index:s,isEnabled:o,lessonIds:r})=>{const{themeId:a}=Mt(),c=ko(e),[d,l]=(0,m.useState)(!0),[u,h]=(0,m.useState)(),p=(0,m.useRef)(),f=`sidebar-sublist-${s}`,g=p.current?.clientWidth,v=M()("nav-sidebar__outline-section-toggle-icon",{"nav-sidebar__outline-section-toggle-icon--collapsed":!d}),C=M()("nav-sidebar__outline-section-list",{"nav-sidebar__outline-section-list--collapsed":!d}),x=(0,m.useCallback)(()=>{l(S=>!S)},[]);return(0,m.useLayoutEffect)(()=>{const S=setTimeout(()=>{p.current&&h(p.current.scrollHeight)},0);return()=>{clearTimeout(S)}},[r.length,g,a]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{"aria-controls":f,"aria-expanded":d,className:"nav-sidebar__outline-section-toggle",onClick:x,tabIndex:o?void 0:-1,type:"button",children:[(0,n.jsx)("span",{className:"nav-sidebar__outline-section-toggle-text",children:c}),(0,n.jsx)(b2,{className:v})]}),(0,n.jsx)(Td,{inert:!d,children:(0,n.jsx)("ol",{"aria-hidden":d?void 0:!0,className:C,id:f,ref:p,role:"list",style:{maxHeight:u},children:r.map((S,E)=>(0,n.jsx)(kg,{closeNav:t,id:S,isEnabled:o&&d,isSectionLesson:!0,last:E===r.length-1},S))})})]})},OW=({closeNav:t,index:e,isEnabled:s,lessonIds:o})=>{const[r,...a]=o,c="nav-sidebar__outline-item nav-sidebar__outline-section";return Yt()(a)?(0,n.jsx)("li",{className:c,role:"listitem",children:(0,n.jsx)(AW,{id:r})}):(0,n.jsx)("li",{className:c,role:"listitem",children:(0,n.jsx)(RW,{closeNav:t,id:r,index:e,isEnabled:s,lessonIds:a})})},PW=({closeNav:t,index:e,isEnabled:s,lessonIds:o})=>oi(o)?(0,n.jsx)(OW,{closeNav:t,index:e,isEnabled:s,lessonIds:o}):o.map((a,c)=>(0,n.jsx)(kg,{closeNav:t,id:a,isEnabled:s,isSectionLesson:!1,last:c===o.length-1},a)),MW=Dt("NavSidebarOutline",({className:t="",closeNav:e,isEnabled:s,lessonIdGroups:o})=>{const r=(0,as.A)(s),[a,c]=(0,m.useState)(!s),d=(0,ze.useLabelsMap)(),l=(0,m.useRef)(),u=M()(t,"nav-sidebar__outline",{"nav-sidebar__outline--hidden":a,"nav-sidebar__outline--safari":nn.isSafari}),h=M()("nav-sidebar__outline-list",{"nav-sidebar__outline-list--disabled":!s,"nav-sidebar__outline-list--hidden":a});return(0,m.useEffect)(()=>{let p;return r&&!s?p=setTimeout(()=>{c(!0)},350):!r&&s&&a&&c(!1),()=>{clearTimeout(p)}},[s,a,r]),(0,n.jsx)("section",{"aria-label":d?.a11yRegionNavOverview,className:u,id:"nav-sidebar-outline",children:Ma(o)&&(0,n.jsx)("ol",{className:h,ref:l,role:"list",children:o.map((p,f)=>Yt()(p)?null:(0,n.jsx)(PW,{closeNav:e,index:f,isEnabled:s,lessonIds:p},f))})})});function DW(t){const e=Ut(t),s=Ac(t);return{isLegacyCourse:e.isLegacyCourse,lessonIdGroups:s,navigationStyle:e.navigationStyle}}const kW=(0,X.Ng)(DW)(MW);var wW=i(8433),BW=i(83827);const sc=J("nav-sidebar-result"),wg=({result:t})=>{const e=(0,ze.useLabelsMap)(),s=t?.icon,o=Us(t?.title),r=t?.results??0,a=r===1?e?.result:e?.results,c=sc("icon"),d=sc("title"),l=sc("count");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Tm,{className:c,icon:s}),(0,n.jsx)("span",{className:d,children:o}),(0,n.jsx)("span",{className:l,children:`${r} ${a}`})]})},_W=({id:t,index:e,isEnabled:s,onSelectResult:o})=>{const r=Mt(),a=(0,ke.W5)(),c=AV(t),d=a?.params?.id===t,l=d?"page":void 0,u=r?.color,h=r?.navigationStyle,p=s?void 0:-1,f={animationDelay:`${e/10}s`},g=Dr(c?.id),v=(0,m.useMemo)(()=>(0,At.I8)(h),[h]),C=sc(),x=sc("inner",{active:d}),S=sc("link",{dark:v,light:!v});return(0,n.jsx)("li",{className:C,role:"listitem",style:f,children:(0,n.jsx)("div",{className:x,style:{color:u},children:s&&g==null?(0,n.jsx)(Qn,{"aria-current":l,className:S,tabIndex:p,onClick:o,to:(0,_t.p1)(t),children:(0,n.jsx)(wg,{result:c})}):(0,n.jsx)(H2,{className:S,restriction:g,tooltipClassName:"lesson-nav-link-tooltip",children:(0,n.jsx)(wg,{result:c})})})})},wu=J("nav-sidebar-results"),UW=[],HW=({closeNav:t,isEnabled:e})=>{const{announcePolite:s}=Je(),o=Mt(),r=Il(),a=(0,ze.useLabelsMap)(),d=(r?.activeLessons??UW).filter(Za),l=r?.term,u=(0,wW.A)(d),h=(0,BW.A)(l),p=a?.noResults??"",f=o?.navigationStyle,g=(0,m.useMemo)(()=>(0,At.I8)(f),[f]),v=wu(),C=wu("message",{dark:g,light:!g}),x=wu("term"),S=wu("list"),E=Xs(W0),b=ie().useCallback(()=>{E&&t()},[t,E]);return(0,m.useEffect)(()=>{if(h){const L=d.length===1?a?.result:a?.results,I=u?`${d.length} ${L}`:`${a?.noResults} ${l}`;s?.(I)}},[s,u,h,d,a,l]),(0,n.jsxs)("div",{className:v,children:[!u&&h&&(0,n.jsxs)("div",{className:C,children:[p," ",(0,n.jsxs)("span",{className:x,children:['"',l,'"']})]}),u&&h&&(0,n.jsx)("ol",{className:S,role:"list",children:d.map((L,I)=>(0,n.jsx)(_W,{isEnabled:e,id:L.id,index:I,onSelectResult:b},L.id))})]})},Bu=J("nav-sidebar"),Bg="nav-content-sidebar",FW=({isExpanded:t,closeNav:e})=>{const s=Mt(),o=Il(),[r,a]=(0,m.useState)(!1),[c,d]=(0,m.useState)(0),l=(0,m.useRef)(null),u=(0,m.useRef)(null),h=s?.color,p=s?.theme?.coverImageColor,f=s?.isLegacyCourse,g=s?.navigationStyle,v=s?.theme?.accentContrast,C=s?.theme?.progressIndicatorStyle,x=o?.active??!1,S=x||t?void 0:"true";(0,m.useLayoutEffect)(()=>{l&&l?.current&&d(l.current?.scrollWidth)},[r,t,l,x,d]);const E=(0,m.useMemo)(()=>(0,At.zH)(g),[g]),b=(0,m.useMemo)(()=>(0,At.I8)(g),[g]),L=(0,m.useMemo)(()=>(0,At.FH)(g),[g]),I=(0,m.useMemo)(()=>L&&p===P.df.LIGHT,[L,p]),N=!(0,ct.Wn)(h),R=(0,ct.xD)(h),j=C===P.Y2.CIRCULAR_FILL,O=C===P.Y2.INCOMPLETE_COMPLETE,B=v===P.Em.AUTO&&R===P.Em.DARK,_=(0,m.useMemo)(()=>v?v===P.Em.DARK||B:N,[B,N,v]),k=Bu("header"),te=Bu("body"),F=Bu("content"),K=Bu({accent:E,"dark-contrast":!L&&_,"light-contrast":!L&&!_,"legacy-pre-themes":f,"image-dark-overlay":L&&!I,"image-light-overlay":L&&I,"progress-circular-fill":j,"progress-incomplete-complete":O,collapsed:!t,dark:b,light:!b,searching:x});return(0,n.jsx)(Td,{inert:!t,children:(0,n.jsx)(ys.F,{children:(0,n.jsx)(ys.eB,{in:t,mountOnEnter:!0,nodeRef:u,unmountOnExit:!0,timeout:300,children:(0,n.jsx)("div",{"aria-hidden":S,className:K,ref:u,children:(0,n.jsxs)("div",{className:F,"data-nav-scrollable":!0,id:Bg,children:[(0,n.jsx)(yW,{className:k,isCompact:r,isEnabled:t,navRefWidth:c,setIsCompact:a}),(0,n.jsxs)("div",{className:te,ref:l,children:[(0,n.jsx)(kW,{closeNav:e,isEnabled:t&&!x}),(0,n.jsx)(HW,{closeNav:e,isEnabled:t&&x})]})]})})})})})},wa={x:null,y:null},_u={passive:!0};function _g({children:t,onSwipeDown:e,onSwipeLeft:s,onSwipeRight:o,onSwipeUp:r,onShouldRecognizeGesture:a=()=>!0,thresholdX:c=100,thresholdY:d=100}){const l=(0,m.useRef)(),[u,h]=(0,m.useState)(wa),[p,f]=(0,m.useState)(wa),g=(0,m.useCallback)(S=>{const E=S.touches?.length??0,b=S.targetTouches[0],L=a?a():!0;E==1&&b&&L?h({x:b.clientX,y:b.clientY}):h(wa)},[a]),v=(0,m.useCallback)(S=>{const E=S.targetTouches[0];E&&f({x:E.clientX,y:E.clientY})},[]),C=(0,m.useCallback)(()=>{h(wa),f(wa)},[]),x=(0,m.useCallback)(S=>{const E=S.touches?.length??0;if(u.x==null||u.y==null||p.x==null||p.y==null||E>0)return;const b=p.x-u.x,L=p.y-u.y;Math.abs(b)>Math.abs(L)?Math.abs(b)>c&&(b<0?s?.():o?.()):Math.abs(L)>d&&(L<0?r?.():e?.()),h(wa),f(wa)},[e,s,o,r,c,d,p,u]);return(0,bs.A)("touchstart",g,l.current,_u),(0,bs.A)("touchcancel",C,l.current,_u),(0,bs.A)("touchmove",v,l.current,_u),(0,bs.A)("touchend",x,l.current,_u),(0,n.jsx)("div",{ref:l,children:t})}_g.propTypes={children:A().oneOfType([A().arrayOf(A().element),A().element]).isRequired,onShouldRecognizeGesture:A().func,onSwipeDown:A().func,onSwipeLeft:A().func,onSwipeRight:A().func,onSwipeUp:A().func,thresholdX:A().number.isRequired,thresholdY:A().number.isRequired};function Uu({isEnabled:t=!0,...e}){return t?(0,n.jsx)(_g,{...e}):(0,n.jsx)("div",{children:e.children})}Uu.propTypes={children:A().oneOfType([A().arrayOf(A().element),A().element]).isRequired,isEnabled:A().bool.isRequired};const Hu={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},zW=[Hu.TABLET_PORTRAIT,Hu.TABLET_LANDSCAPE,Hu.MOBILE_PORTRAIT,Hu.MOBILE_LANDSCAPE],Fu=t=>zW.includes(t),Ug=t=>(0,m.useMemo)(()=>{const e=window.matchMedia("(pointer: coarse)").matches,s=Fu(t);return e||s},[t]),Hg=J("course-navigation"),{COMPACT:zu,OVERLAY:jm,SIDEBAR:Ba}=P.br,VW={[zu]:jg,[Ba]:Bg,[jm]:Dg},WW=({hasSearchResults:t,courseNavType:e,openNav:s,closeNav:o})=>{const[r,a]=(0,m.useState)(t);return(0,m.useEffect)(()=>{r&&!t&&!(e===Ba)?(o(),a(!1)):r&&e===jm?s():a(t)},[t,e,s,o,r]),r},GW=t=>{const[e,s]=(0,m.useState)();(0,m.useEffect)(()=>{const{activeNavType:o,beginWithSidebarOpen:r,isNavOpen:a,isTablet:c,openNav:d,closeNav:l}=t;o===Ba&&r&&(!e&&c&&a?l():e&&!c&&!a&&d(),s(c))},[e,t])},KW=({beginWithSidebarOpen:t,children:e,closeNav:s,courseNavType:o,isNavOpen:r,isTablet:a,lessonNavType:c,openNav:d,previewType:l,toggleNav:u,hideNav:h})=>{const p=(0,m.useRef)(),f=(0,m.useRef)(),{active:g}=Il(),v=(0,ze.useLabelsMap)(),C=WW({hasSearchResults:g,courseNavType:o,openNav:d,closeNav:s}),x=(0,m.useMemo)(()=>C||o===zu&&a?Ba:o,[o,C,a]);GW({activeNavType:x,beginWithSidebarOpen:t,closeNav:s,openNav:d,isNavOpen:r,isTablet:a}),(0,m.useEffect)(()=>{const N=j=>{f.current?.contains(j.relatedTarget)&&s()},R=()=>{f.current?.removeEventListener("click",s),f.current?.removeEventListener("keypress",s),f.current?.removeEventListener("blur",N,!0)};return x===zu&&r?(f.current?.addEventListener("click",s),f.current?.addEventListener("keypress",s),f.current?.addEventListener("blur",N,!0)):R(),R},[x,r,f,s]);const S=Ug(l),E=(0,m.useCallback)(()=>{const N=x===P.br.SIDEBAR;S&&N&&r&&s()},[s,r,S,x]),b=(0,m.useMemo)(()=>VW[x],[x]),L=Hg(x?.toLowerCase(),{"nav-open":r,"search-open":g&&r,"course-nav-type":o?.toLowerCase()}),I=Hg("lessonNav",{type:c?.toLowerCase()});return(0,n.jsx)(b8,{isCourseNavOpen:r,children:(0,n.jsx)("div",{className:L,children:(0,n.jsx)(Uu,{isEnabled:x===P.br.SIDEBAR,onSwipeLeft:E,children:(0,n.jsxs)("div",{className:I,children:[(0,n.jsxs)("nav",{"aria-label":v?.a11yRegionNavLesson,children:[(0,n.jsx)(yV,{"aria-controls":b,toggleNav:u,isNavOpen:r,hideNav:h}),x===Ba&&(0,n.jsx)(FW,{isExpanded:r,closeNav:s}),x===zu&&(0,n.jsx)(ZV,{openNav:d,closeNav:s,isExpanded:r,ref:p}),x===jm&&(0,n.jsx)(YV,{closeNav:s,openNav:d,children:(0,n.jsx)(EW,{isExpanded:r})})]}),(0,n.jsx)("div",{ref:f,children:e})]})})})})},$W=({children:t,isPreviewLesson:e,...s})=>{const{buttonNavigationStyle:o,navigationType:r,lmsOptions:a,...c}=(0,Me.DX)(),d=Uc(),l=(0,At.zh)(c),u=!d,h=c.sidebarMode===P.RE.OPEN,p=l&&r===Ba&&h&&u,f=c.type===$e.y4,g=f&&c?.theme?.blockNavigationType===P.HC.CONTINOUS,[v,C]=(0,m.useState)(p),x=(0,m.useCallback)(()=>{C(!0)},[]),S=(0,m.useCallback)(()=>{C(!1)},[]),E=(0,m.useCallback)(()=>v?S():x(),[v,S,x]);(0,bs.A)(O2,x),(0,bs.A)(P2,S);const b=f||e?"fixed-course-exit":void 0,L=g?{marginInlineEnd:"2rem"}:void 0,I=l?r:"";return f||e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(vm,{className:b,lmsOptions:a,style:L}),t]}):(0,n.jsx)(KW,{...s,beginWithSidebarOpen:h,closeNav:S,courseNavType:I,enableExitCourse:a?.enableExitCourse||!0,isNavOpen:v,isTablet:d,lessonNavType:o,openNav:x,toggleNav:E,hideNav:!l,children:t})};var QW=i(67715),Fg=i(56838);const ZW=ot()("rise-api/people/")("SEARCH_USERS"),YW={admin:[],author:[]},XW=ws()(Br()("profile")),JW=(t,{role:e,data:s})=>mt()(t,{[e]:XW(s)}),qW={[ZW]:(0,he.onSuccess)(JW)},eG=(0,he.handle)(YW,qW),D0e="rise/ai/GET_AI_SUBSCRIPTION",tG="rise/ai/SET_AI_ASSISTANT_CONTEXT",sG="rise/ai/SET_AI_SUBSCRIPTION",nG="rise/ai/CLEAR_AI_ASSISTANT_BLOCK_SELECTION",oG="rise/ai/SET_AI_ASSISTANT_PENDING_JOB",rG="rise/ai/SET_AI_SETTING_TAB",aG="rise/ai/SET_AI_CONNECT_COURSE",iG="rise/ai/SET_AI_CONNECT_COURSE_SOURCE",cG="rise/ai/SET_AI_CONNECT_COURSE_SOURCES",lG="rise/ai/SET_AI_CONNECT_COURSE_SOURCE_NOTIFICATION",dG="rise/ai/UPDATE_AI_CONNECT_COURSE_SOURCE_NOTIFICATION",uG="rise/ai/REMOVE_AI_CONNECT_COURSE_SOURCE_NOTIFICATION",hG="rise/ai/SET_AI_CONNECT_COURSE_METADATA",mG="rise/ai/SET_AI_IMAGE_STYLES",pG="rise/ai/SET_AI_CONNECT_COURSE_IMAGE_STYLE",fG="rise/ai/TOGGLE_AI_SETTINGS",gG="rise/ai/TOGGLE_AI_CONTENT_PREVIEW",vG="rise/ai/DELETE_AI_CONNECT_SOURCE",CG="rise/ai/OPEN_MODAL",xG="rise/ai/CLOSE_MODAL",EG="rise/ai/INITIALIZE_QUICK_CONVERT",TG="rise/ai/CLOSE_QUICK_CONVERT",SG=ot()("rise/sidePanel/"),k0e={COMMENTS:"COMMENTS"},zg=SG("TOGGLE_SIDE_PANEL");var Am=(t=>(t.Source="Source content",t.Outline="Course outline",t))(Am||{}),Vg=(t=>(t.BLOCK_GENERATOR="BLOCK_GENERATOR",t.NEW_BLOCK_FROM_EXISTING="NEW_BLOCK_FROM_EXISTING",t.BLOCK_KNOWLEDGE_CHECK_GENERATOR="BLOCK_KNOWLEDGE_CHECK_GENERATOR",t.BLOCK_EDITOR="BLOCK_EDITOR",t.BLOCK_CONVERT="BLOCK_CONVERT",t.QUIZ_GENERATOR="QUIZ_GENERATOR",t.QUIZ_EDITOR="QUIZ_EDITOR",t.COURSE_OUTLINE="COURSE_OUTLINE",t.LESSON_GENERATOR="LESSON_GENERATOR",t.CONCEPT_TO_COURSE="CONCEPT_TO_COURSE",t))(Vg||{});const Wg={aiConnectCourse:{imageStyles:[],lessons:[],sources:[]},assistant:{contextType:"course"},subscription:{subscriptionId:void 0,isEnabled:!1,status:"inactive"},settings:{isOpen:!1,activeTab:Am.Source,isLoading:!0},contentPreview:{isOpen:!1,mode:Vg.BLOCK_CONVERT},quickConvert:{block:null,content:null,workflowKey:null,toWorkflowKey:null},notifications:[]},LG=(t,e)=>{const s=e.isOpen!==void 0?e.isOpen:!t.settings.isOpen;return{...t,settings:{...t.settings,isOpen:s,activeTab:Am.Source}}},bG=(t,e)=>({...t,settings:{...t.settings,activeTab:e.tab}}),yG=(t,e)=>{const s=Array.isArray(e.lessons)?e.lessons:[];return{...t,aiConnectCourse:{...e,sources:e.sources||[],imageStyleId:e.imageStyleId,imageStyles:e.imageStyles||[],lessons:s,hasGeneratedCourseOutline:s.length>0},settings:{...t.settings,isLoading:!1}}},IG=(t,e)=>({...t,aiConnectCourse:{...t.aiConnectCourse,audience:e.audience,topics:e.topics,learningObjectives:e.learningObjectives}}),NG=(t,e)=>({...t,aiConnectCourse:{...t.aiConnectCourse,imageStyles:e}}),jG=(t,e)=>({...t,aiConnectCourse:{...t.aiConnectCourse,imageStyleId:e}}),AG=(t,e)=>{const s=t.aiConnectCourse.sources.findIndex(r=>r.id===e.id),o=t.aiConnectCourse.sources[s];return s!==-1&&o?{...t,aiConnectCourse:{...t.aiConnectCourse,sources:[...t.aiConnectCourse.sources.slice(0,s),{...o,...e},...t.aiConnectCourse.sources.slice(s+1)]}}:{...t,aiConnectCourse:{...t.aiConnectCourse,sources:[...t.aiConnectCourse.sources,e]}}},RG=(t,e)=>({...t,aiConnectCourse:{...t.aiConnectCourse,sources:e}}),OG=(t,e)=>({...t,aiConnectCourse:{...t.aiConnectCourse,sources:t.aiConnectCourse.sources.filter(s=>s.id!==e.sourceId)}}),PG=(t,e)=>({...t,subscription:{...t.subscription,...e}}),MG=(t,e)=>{const s=!!(e.contextType&&t.assistant.contextType!==e.contextType),o=e.pendingJob||t.assistant.pendingJob;return{...t,assistant:{...t.assistant,...e,pendingJob:s?void 0:o}}},DG=(t,e)=>{const{pendingJob:s,...o}=t.assistant;return{...t,assistant:{...o,pendingJob:e}}},kG=t=>t,wG=t=>({...t,assistant:{...t.assistant,blockId:void 0}}),BG=(t,e)=>({...t,contentPreview:{...t.contentPreview,isOpen:e.isOpen!==void 0?e.isOpen:!t.contentPreview.isOpen,mode:e.mode||t.contentPreview.mode}}),_G=(t,e)=>({...t,modal:e}),UG=t=>({...t,modal:void 0}),HG=(t,e)=>({...t,modal:"quickConvert",quickConvert:e}),FG=t=>({...t,modal:void 0,quickConvert:Wg.quickConvert}),zG=(t,e)=>({...t,notifications:[...t.notifications,e]}),VG=(t,e)=>{const s=t.notifications.map(o=>o.id===e.id?{...o,...e}:o);return{...t,notifications:s}},WG=(t,e)=>({...t,notifications:t.notifications.filter(s=>e!==s.id)}),GG={[nG]:wG,[vG]:OG,[tG]:MG,[oG]:DG,[aG]:yG,[iG]:AG,[cG]:RG,[lG]:zG,[dG]:VG,[uG]:WG,[hG]:IG,[sG]:PG,[rG]:bG,[mG]:NG,[pG]:jG,[zg]:kG,[fG]:LG,[gG]:BG,[CG]:_G,[xG]:UG,[EG]:HG,[TG]:FG},KG=(0,he.handle)(Wg,GG),jl=ot()("rise/aiImageGenUI/"),$G=jl("HIDE_GEN_DIALOG"),QG=jl("SHOW_GEN_DIALOG"),ZG=jl("SET_GENERATED_OPTIONS"),YG=jl("SET_ERROR"),XG=jl("CLEAR_ERROR"),JG={error:null,generatedOptions:[],isVisible:!1,itemId:null,lessonId:null,defaultAspectRatio:"landscape"},qG=(t,e)=>({...t,isVisible:!0,generatedOptions:[],image:e.image,insertBeforeItemId:e.insertBeforeItemId,itemId:e.itemId,l10n:e.l10n,lessonId:e.lessonId,refs:e.refs,onImageSelect:e.onImageSelect,defaultAspectRatio:e.defaultAspectRatio??"landscape"}),eK=t=>({...t,isVisible:!1}),tK=(t,e)=>({...t,generatedOptions:e.generatedOptions}),sK=(t,e)=>({...t,error:e.error}),nK=t=>({...t,error:null}),oK={[QG]:qG,[$G]:eK,[ZG]:tK,[YG]:sK,[XG]:nK},rK=(0,he.handle)(JG,oK),aK="rise/asset-manager/START_UPLOAD",iK="rise/asset-manager/FINISH_UPLOAD",cK="rise/asset-manager/ABORT_UPLOAD",lK={jobs:{}};function dK(t,e){return{...t,jobs:{...t.jobs,[e.jobId]:{abort:e.abort,status:"uploading"}}}}function uK(t,e,s){return{...t,jobs:{...t.jobs,[e.jobId]:{...t.jobs[e.jobId],...e,status:s?"error":"finished"}}}}function hK(t,e){return e.jobId in t.jobs?{...t,jobs:{...t.jobs,[e.jobId]:{...t.jobs[e.jobId],status:"aborted"}}}:t}const mK=(0,he.handle)(lK,{[aK]:dK,[iK]:uK,[cK]:hK});var pK=i(15241),Vu=i.n(pK);const nc=ot()("rise/blockTemplates/"),fK=nc("CREATE_BLOCK_TEMPLATE"),gK=nc("CREATE_BLOCK_TEMPLATE_SUCCESS"),vK=nc("DELETE_BLOCK_TEMPLATE"),CK=nc("FETCH_BLOCK_TEMPLATES"),xK=nc("PROCESS_BLOCK_TEMPLATE"),EK=nc("UPDATE_BLOCK_TEMPLATE");var TK=i(82294),oc=i.n(TK);const SK=Eo()(Wo()),pn=t=>(e,s)=>(0,Ft.Ve)(e,Fs()(We()(d6()(Array,t)),oc()(t,s),st()(t,s))),Wu=t=>(e,s)=>(0,Ft.Ve)(s,Pe()(t),SK(e)),LK=(t,e)=>Zi()(Vu()("templates"),Sa()(Ue()("id",e)),t),bK=Se()(wt(),Pe()("templates")),yK=t=>e=>Zi()(Vu()("templates"),ws()(sn()(Ue()("id",t.id),Rt()(t))),e),Rm=(t,e)=>(0,Ft.Ve)(t,Fs()(bK,We()(t),yK(e))),IK=(t,e)=>({...t,templates:[e,...t.templates||[]]}),NK=(t,e)=>e.templates?.find(s=>s.id===t),Gg=(t,e)=>NK(e.id,t)?Rm(t,e):IK(t,e),jK={[fK]:(0,he.onSuccess)(Gg),[gK]:(0,he.onSuccess)(Gg),[vK]:(0,he.onSuccess)(LK),[CK]:(0,he.onSuccess)(pn("templates")),[xK]:(0,he.onSuccess)(Rm),[EK]:(0,he.onSuccess)(Rm)},AK=(0,he.handle)({templates:null},jK);var RK=i(13855),OK=i.n(RK);const PK=(0,ye._$)("SESSION_COOKIE_DOMAIN"),Om=(()=>{try{const t="__pay_no_attention_to_that_man_behind_the_curtain__",e=window.localStorage;return e.setItem(t,t),e.removeItem(t),!0}catch{return!1}})(),Pm=t=>Om?window.localStorage.getItem(t):null,Mm=(t,e)=>{if(!Om)return null;window.localStorage.setItem(t,e)},MK=t=>{if(!Om)return null;window.localStorage.removeItem(t)},DK=Es()((t,e)=>(Mm(t,e),OK().save(t,e,{domain:PK}),e)),B0e=t=>{const e=JSON.parse(cookie.load(t)||null)||JSON.parse(Pm(t)||null);return e&&DK(t,e),e},_0e="A-Z",kK="Recent",Kg="blockTemplateSortPreference",wK=()=>Pm(Kg)||kK,BK=t=>Mm(Kg,t),Fn=ot()("rise/blockTemplateUI/"),_K=Fn("HIDE_BLOCK_SELECTION_UI"),UK=Fn("HIDE_DELETE_BLOCK_TEMPLATE_DIALOG"),HK=Fn("HIDE_EDIT_BLOCK_TEMPLATE_DIALOG"),FK=Fn("RESET_STATE"),zK=Fn("SET_AUTHOR_QUERY"),VK=Fn("SET_QUERY"),WK=Fn("SET_SELECTED_AUTHOR"),GK=Fn("SET_SELECTED_INDEX"),KK=Fn("SET_SORT_TYPE"),$K=Fn("SHOW_BLOCK_SELECTION_UI"),QK=Fn("SHOW_DELETE_BLOCK_TEMPLATE_DIALOG"),ZK=Fn("SHOW_EDIT_BLOCK_TEMPLATE_DIALOG"),YK=Fn("TOGGLE_BLOCK_SELECTED"),$g={authorQuery:"",editBlockTemplate:null,query:"",selectedAuthorId:null,selectedAuthorName:null,selectedIndex:-1},XK=Rt()($g,{selectedBlockIds:[],showBlockSelection:!1,showDeleteDialog:!1,showEditDialog:!1,sortType:wK()}),JK=Rt()({showBlockSelection:!1,showEditDialog:!1}),qK=(t,e)=>mt()(t,Ls()(["selectedAuthorId","selectedAuthorName"],e)),e$=(t,e)=>(BK(e),st()("sortType",e,t)),t$=Rt()({selectedBlockIds:[],showBlockSelection:!0}),s$=(t,e)=>mt()(t,{showDeleteDialog:!0,editBlockTemplate:e}),n$=(t,e)=>mt()(t,{showEditDialog:!0,editBlockTemplate:e}),o$=(t,e)=>Zi()(Vu()("selectedBlockIds"),Fs()(on()(e),ah()([e]),Qo()(e)),t),r$={[_K]:Rt()({showBlockSelection:!1}),[UK]:Rt()({showDeleteDialog:!1}),[HK]:JK,[FK]:Rt()($g),[zK]:pn("authorQuery"),[VK]:pn("query"),[WK]:qK,[GK]:pn("selectedIndex"),[KK]:e$,[$K]:t$,[QK]:s$,[ZK]:n$,[YK]:o$},a$=(0,he.handle)(XK,r$),xr="bridge/publish/",i$=`${xr}SET_LOADING`,c$=`${xr}FETCH_BRIDGE_COURSES`,l$=`${xr}FETCH_CATEGORIES`,d$=`${xr}FETCH_LIBRARIES`,u$=`${xr}FETCH_ORCA_USER`,h$=`${xr}PUBLISH_SUCCESS`,m$=`${xr}PUBLISH_FAILURE`,p$=`${xr}SET_MODAL_STATE`,f$=`${xr}SET_VERSION_ID`;var g$=(t=>(t.FORMAT="FORMAT",t.LESSON_MISMATCH="LESSON_MISMATCH",t.COURSE_MISMATCH="COURSE_MISMATCH",t))(g$||{}),v$=(t=>(t.editing="editing",t.submitting="submitting",t.success="success",t.submitError="submit-error",t.undoError="undo-error",t))(v$||{});const C$={courses:[],categories:[],libraries:[],loading:!0},x$=(t,e)=>t.modal?.state==="submitting"&&t.modal?.versionId===e.versionId?{...t,modal:{...t.modal,state:"submit-error"}}:t,E$=(t,e)=>t.modal?.state==="submitting"&&t.modal?.versionId===e.versionId?{...t,modal:{...t.modal,state:"success",manageUrl:e.manageUrl,bridgeCourseId:e.bridgeCourseId}}:t,T$=(0,he.handle)(C$,{[c$]:(t,e)=>({...t,courses:e}),[l$]:(t,e)=>({...t,categories:e}),[d$]:(t,e)=>({...t,libraries:e}),[u$]:(t,e)=>({...t,user:e}),[m$]:x$,[h$]:E$,[i$]:(t,e)=>({...t,loading:e}),[p$]:(t,e)=>({...t,modal:{...t.modal,state:e}}),[f$]:(t,e)=>({...t,modal:{...t.modal,versionId:e}})}),Qg=ot()("rise/bulkExport/"),S$=Qg("SET_EXPORT_IDS"),L$=Qg("CLEAR_EXPORT_SETTINGS"),b$=(t,e)=>({...t,exportIds:e}),Zg={exportIds:[]},y$={[S$]:(0,he.onSuccess)(b$),[L$]:()=>Zg},I$=(0,he.handle)(Zg,y$),Xr=ot()("rise/businessContent/"),U0e=Xr("EXPORT_BUSINESS_CONTENT_LESSON"),H0e=Xr("EXPORT_BUSINESS_CONTENT_COURSE"),N$=Xr("HIDE_EXPORT_DIALOG"),Yg=Xr("IMPORT_BUSINESS_CONTENT_LESSON"),j$=Xr("IMPORT_BUSINESS_CONTENT_LESSON_UPDATE"),A$=Xr("RESET_STATE"),R$=Xr("SET_LOADING_STATE"),O$=Xr("SHOW_EXPORT_DIALOG"),Gu={showExportDialog:!1,loading:!1},P$=(t,{courseId:e,lessonId:s})=>Rt()({showExportDialog:!0,courseId:e,lessonId:s},Gu),M$={[N$]:We()(Gu),[A$]:We()(Gu),[R$]:Rt()({loading:!0}),[O$]:P$},D$=(0,he.handle)(Gu,M$),Xg=ot()("rise/captionsUI/"),k$=Xg("SHOW_CAPTIONS_UI"),w$=Xg("HIDE_CAPTIONS_UI"),B$={showDialog:!1},_$=(t,{lessonId:e,blockId:s,itemId:o})=>Rt()({showDialog:!0,lessonId:e,blockId:s,itemId:o},t),U$={[k$]:_$,[w$]:Rt()({showDialog:!1})},H$=(0,he.handle)(B$,U$),F$={[ot()("rise-api/categories/")("FETCH_CATEGORIES")]:(0,he.onSuccess)(w6()(1))},z$=(0,he.handle)({},F$),V$="rise/changesets/HAS_CHANGESETS",W$="rise/changesets/RESET_CHANGESETS",Dm="rise/changesets/APPLY_PENDING_CHANGES",G$="rise/changesets/APPLY_PENDING_CHANGES_CLEAR",K$="rise/changesets/APPLY_PENDING_CHANGES_START",Jg={numPendingChanges:-1},$$=(0,he.handle)(Jg,{[Dm]:J$,[G$]:X$,[K$]:Y$,[V$]:Q$,[W$]:Z$});function Q$(t,{numPendingChanges:e}){return{...t,applyChangesetsStatus:void 0,numPendingChanges:e}}function Z$(){return Jg}function Y$(t){return st()("applyChangesetsStatus","pending",t)}function X$(t){return St()(Wo()("applyChangesetsStatus"),st()("numPendingChanges",0))(t)}function J$(t,e,s){return{...t,applyChangesetsStatus:s?"error":"complete",numPendingChanges:s?t.numPendingChanges:0}}var q$=i(82738),eQ=i.n(q$);const ln=ot()("rise/courses/"),V0e=ln("DELETE_COURSE"),jo=ln("GET_COURSE"),tQ=ln("GET_TRACKED_QUIZZES"),W0e=ln("GET_COURSE_VERSION"),sQ=ln("GET_COURSE_SHARE_DISABLED"),km=ln("IMPORT_TRANSLATION"),nQ=ln("SET_OWNER"),qg=ln("UPDATE_COURSE"),ev=ln("UPDATE_COURSE_DEBOUNCE"),wm=ln("UPDATE_COURSE_FIELD"),Bm=ln("UPDATE_COURSE_FIELD_THROTTLE"),tv=ln("UPDATE_LESSON_ORDER"),oQ=ln("UPDATE_LESSON_ORDER_CLIENT"),rQ=ln("SET_PARTNER_CONTENT_ID"),aQ=ln("SET_COURSE_TRANSLATIONS"),iQ=ln("DELETE_PARTNER_CONTENT_ID"),sv=ln("IMPORT_TRANSLATION_UPDATES"),_m=ot()("rise/collaborators/"),nv=_m("CREATE_COLLABORATOR"),ov=_m("DELETE_COLLABORATOR"),cQ=_m("SET_COLLABORATOR_ROLE"),lQ=jt()(["profile","first_name"]),dQ=jt()(["profile","last_name"]),uQ=Se()(ma(),ha()(" "),Ah()([lQ,dQ])),hQ=(t,{collaborators:e})=>Nn()(rv,{},e),rv=(t,e)=>{const s=st()("name",uQ(e),e);return st()(e.author,s,t)},mQ=(t,{author:e,roleId:s})=>eQ()(sm()([e,"roleId"]),s,t),pQ={[nv]:(0,he.onSuccess)(rv),[ov]:(0,he.onSuccess)(Wu("author")),[jo]:(0,he.onSuccess)(hQ),[cQ]:(0,he.onSuccess)(mQ)},fQ=(0,he.handle)({},pQ),Al=ot()("rise/collaboratorsUI/"),gQ=Al("CHOOSE_AUTHOR"),vQ=Al("PENDING"),CQ=Al("SET_EMAIL"),xQ=Al("SHOW_CONFIRM"),EQ=Al("SHOW_TRANSFER"),TQ={email:"",error:"",pending:!1,showConfirmId:null,showTransfer:!1,transferAuthor:null},SQ=Ue()("statusCode",409),LQ="This user is already a collaborator.",bQ="This user either doesn\u2019t have a Teams account, or their team is in a different regional data center.",yQ=(t,e,s)=>s?{...t,error:SQ(e)?LQ:bQ,pending:!1}:{...t,email:"",error:"",pending:!1},IQ=(t,e)=>mt()(t,{email:e,error:""}),NQ={[gQ]:pn("transferAuthor"),[nv]:yQ,[ov]:(0,he.onSuccess)(st()("showConfirmId",null)),[vQ]:st()("pending",!0),[CQ]:IQ,[xQ]:pn("showConfirmId"),[EQ]:pn("showTransfer")},jQ=(0,he.handle)(TQ,NQ),AQ={[ot()("rise/connection/")("SET_STATUS")]:(0,he.onSuccess)(mt())},RQ=(0,he.handle)({status:null},AQ),av=ot()("rise/contentLibrary/"),OQ=av("CLOSE_LIBRARY"),PQ=av("OPEN_LIBRARY"),iv={blockId:"",existingMediaType:"",isVisible:!1,itemId:"",lessonId:"",refs:""},MQ={[OQ]:()=>iv,[PQ]:mt()},DQ=(0,he.handle)(iv,MQ),Ku=ot()("rise/copyLessonUI/"),kQ=Ku("HIDE_COPY_LESSON_DIALOG"),wQ=Ku("SET_SEARCH_QUERY"),BQ=Ku("SET_SELECTED_COURSE_INDEX"),_Q=Ku("SHOW_COPY_LESSON_DIALOG"),cv={query:"",selectedCourseIndex:0,selectedUsingKeyboard:!1,show:!1},UQ=(t,e)=>mt()(t,{query:e,selectedCourseIndex:0,selectedUsingKeyboard:!1}),HQ=(t,e)=>mt()(t,{lesson:e,show:!0}),FQ={[kQ]:We()(cv),[wQ]:UQ,[BQ]:mt(),[_Q]:HQ},zQ=(0,he.handle)(cv,FQ),Gs=ot()("rise/lessons/"),VQ=Gs("COPY_LESSON"),WQ=Gs("COPY_LESSON_SUCCESS"),Um=Gs("CREATE_LESSON"),lv=Gs("CREATE_BULK_LESSONS"),Hm=Gs("CREATE_LESSON_CLIENT"),dv=Gs("DELETE_LESSON"),GQ=Gs("DELETE_LESSON_CLIENT"),uv=Gs("DUPLICATE_LESSON"),KQ=Gs("FETCH_BLOCK_BACKGROUND_IMAGE"),$Q=Gs("INSERT_BLOCK_TEMPLATE"),hv=Gs("INSERT_BLOCK_TEMPLATE_SUCCESS"),$0e=Gs("INSERT_QUESTION_BANK_QUESTIONS"),mv=Gs("INSERT_QUESTION_BANK_QUESTIONS_SUCCESS"),QQ=Gs("UPDATE_BLOCK_ITEM"),Q0e=Gs("UPDATE_BLOCK_ITEM_DEBOUNCE"),ZQ=Gs("UPDATE_COURSE_LESSONS"),pv=Gs("UPDATE_LESSON"),fv=Gs("UPDATE_LESSON_DEBOUNCE"),YQ=Gs("UPDATE_LESSON_TITLE"),XQ=Gs("UPDATE_LESSON_TITLE_THROTTLE"),$u=ot()("rise/typefaces/"),JQ=$u("CREATE_TYPEFACE"),gv=$u("DELETE_TYPEFACE"),vv=$u("FETCH_TYPEFACES"),qQ=$u("UPDATE_TYPEFACE"),Ao=ot()("rise/courseSnapshots/"),Z0e=Ao("COURSE_CREATED_FROM_SNAPSHOT"),Y0e=Ao("CREATE_COURSE_FROM_SNAPSHOT"),X0e=Ao("CREATE_SNAPSHOT"),J0e=Ao("CREATE_SNAPSHOT_ON_REACH_SUBMIT"),q0e=Ao("DELETE_SNAPSHOT"),e1e=Ao("RENAME_SNAPSHOT"),eZ=Ao("RESTORE_SNAPSHOT"),tZ=Ao("SAVE_AND_RESTORE_SNAPSHOT"),sZ=Ao("SNAPSHOT_CREATED"),nZ=Ao("SNAPSHOT_UPDATED"),t1e=Ao("UNDELETE_SNAPSHOT");var oZ=i(33897);const Fm=(t,e,s)=>{const o=(0,oZ.Kj)(e?.course),r=e?.authorPermissions;return(s?t:{...t,authorPermissions:r,...o})??{}},Ro=(t,{course:e})=>mt()(t,e),rZ=(t,e)=>mt()(t,{associatedLearningPaths:e}),Cv=(t,{course:e})=>mt()(t,{lessons:e.lessons,updatedAt:e.updatedAt}),aZ=(t,{author:e,courseId:s})=>t.id===s?st()("author",e,t):t,iZ=(t,e)=>({...t,translations:e}),cZ=["bodyTypefaceId","headingTypefaceId","typefaces","updatedAt"],xv=(t,e,s)=>(0,Ft.Ve)(e,Fs()(We()(s),Se()(We()(t),ad()(console.error)),Se()(mt()(t),Ls()(cZ)))),lZ=(t,e)=>st()("partnerContentId",e,t),dZ=Wo()("partnerContentId"),uZ=(t,e)=>e&&t.isShareDisabled===void 0?st()("isShareDisabled",!0,t):t,hZ={[Um]:(0,he.onSuccess)(Ro),[Hm]:Ro,[lv]:(0,he.onSuccess)(Ro),[dv]:(0,he.onSuccess)(Ro),[uv]:(0,he.onSuccess)(Ro),[tQ]:(0,he.onSuccess)(rZ),[jo]:Fm,[sQ]:(0,he.onSuccess)(uZ),[km]:(0,he.onSuccess)(Ro),[tZ]:(0,he.onSuccess)(Fm),[eZ]:(0,he.onSuccess)(Fm),[nQ]:(0,he.onSuccess)(aZ),[qg]:(0,he.onSuccess)(mt()),[ev]:xv,[wm]:(0,he.onSuccess)(Ro),[Bm]:xv,[tv]:(0,he.onSuccess)(Cv),[oQ]:Cv,[iQ]:(0,he.onSuccess)(dZ),[aQ]:(0,he.onSuccess)(iZ),[rQ]:(0,he.onSuccess)(lZ),[sv]:Ro,[Yg]:Ro,[gv]:(0,he.onSuccess)(Ro),[Dm]:(0,he.onSuccess)(Ro)},mZ=(0,he.handle)({},hZ),pZ=ot()("rise/courseCopies/")("FETCH_COURSE_COPIES"),fZ={courses:[],loaded:!1},gZ=(t,e)=>mt()(t,{courses:e,loaded:!0}),vZ={[pZ]:(0,he.onSuccess)(gZ)},CZ=(0,he.handle)(fZ,vZ),zm=ot()("rise/courseMedia/"),xZ=zm("HIDE_MEDIA_DIALOG"),EZ=zm("SHOW_MEDIA_DIALOG"),n1e=zm("SHOW_EDIT_TRANSCRIPT_DIALOG"),Ev={initialData:{"ai-image":{prompt:void 0,style:void 0}},initialSelectedTab:void 0,isVisible:!1,tabs:{},uploadTypes:void 0},TZ=(t,e)=>({...Ev,...e,isVisible:!0}),SZ=t=>(t.onClose?.(),{...t,isVisible:!1}),LZ={[EZ]:TZ,[xZ]:SZ},bZ=(0,he.handle)(Ev,LZ),Qu=ot()("rise/courseReviewItems/"),yZ=Qu("DELETE_COURSE_REVIEW_ITEM"),IZ=Qu("SET_CURRENT_COURSE_REVIEW_ITEM_FOR_COMMENTS"),NZ=Qu("SET_REVIEW_STACK"),jZ=Qu("SET_REVIEW_ITEMS"),AZ=(t,{reviewId:e})=>t?.reviewIds.includes(e)?{...t,reviewIds:t?.reviewIds.filter(s=>s!==e)}:{...t},RZ=(t,{courseReviewItems:e})=>({...t,reviewIds:e}),OZ=(t,{reviewId:e})=>({...t,currentReviewIdForComments:e}),PZ=(t,{payload:e})=>({...t,reviewStack:e}),MZ=(t,{payload:e})=>({...t,reviewItems:e}),DZ={[yZ]:(0,he.onSuccess)(AZ),[IZ]:(0,he.onSuccess)(OZ),[NZ]:(0,he.onSuccess)(PZ),[jZ]:(0,he.onSuccess)(MZ),[jo]:(0,he.onSuccess)(RZ)},kZ=(0,he.handle)([],DZ),Vm=ot()("rise/courseTheme/"),wZ=Vm("FETCH_THEME_CONSTANTS"),BZ=Vm("SET_CANCEL"),_Z=Vm("SET_PREVIEW_LOADED"),UZ=(t,e)=>st()(e.id,e,t),HZ=Se()(Nn()(UZ,{}),Pe()("themeDefaults")),FZ=(t,e)=>(0,Ft.Ve)(e,bo()("themeDefaultsObj",HZ)),zZ={cancel:Function.prototype,constants:{},isPreviewLoaded:!1,isTypefacesLoaded:!1},VZ={[wZ]:bo()("constants",FZ),[vv]:st()("isTypefacesLoaded",!0),[BZ]:pn("cancel"),[_Z]:pn("isPreviewLoaded")},WZ=(0,he.handle)(zZ,VZ);var GZ=i(45404),Zu=i.n(GZ),KZ=i(74221),Wm=i.n(KZ);const Oo=ot()("rise-api/courses/"),$Z=Oo("GET_PUBLISH_SETTINGS"),o1e=Oo("SUBMIT_AND_PUBLISH_COURSE"),QZ=Oo("SUBMIT_AND_PUBLISH_COURSE_ERROR"),r1e=Oo("SUBMIT_COURSE"),a1e=Oo("SUBMIT_COURSE_AND_VERSION"),ZZ=Oo("SUBMIT_COURSE_ERROR"),YZ=Oo("SUBMIT_COURSE_SUCCESS"),i1e=Oo("SUBMIT_COURSE_UPDATE"),c1e=Oo("SUBMIT_COURSE_AND_VERSION_UPDATE"),l1e=Oo("UPDATE_VERSION"),XZ=Oo("UNDO_COURSE_SUBMISSION"),hs=ot()("rise/courseUI/"),JZ=hs("ADD_CATEGORY_TO_COURSE"),qZ=hs("HIDE_ALT_DIALOG"),eY=hs("HIDE_RESET_LEARNER_DATA_DIALOG"),tY=hs("HIDE_TAKE_CONTROL_DIALOG"),sY=hs("ON_CATEGORY_SEARCH"),nY=hs("SUBMIT_AND_PUBLISH_COURSE_PROCESSING"),oY=hs("REMOVE_CATEGORY_FROM_COURSE"),rY=hs("SET_ADD_CONTENT_DIALOG"),aY=hs("SET_COMPLETION_PERCENTAGE"),iY=hs("SET_LESSON_OPTIONS_MENU"),cY=hs("SET_NEW_SUBMISSION"),lY=hs("SET_QUIZ_RESULT"),dY=hs("SET_SETTING"),uY=hs("SET_SETTINGS"),hY=hs("SET_TIME_TO_COMPLETE"),mY=hs("SHOW_ALT_DIALOG"),pY=hs("SHOW_RESET_LEARNER_DATA_DIALOG"),fY=hs("SHOW_TAKE_CONTROL_DIALOG"),gY=hs("SUBMIT_COURSE_EDITING"),vY=hs("SUBMIT_COURSE_PROCESSING"),CY=hs("TOGGLE_CUSTOM_FONTS_DIALOG"),d1e=hs("UNDO_COURSE_SUBMISSION"),xY=hs("RESET_UNDO_COURSE_SUBMISSION_PROCESSING"),EY=hs("UNDO_COURSE_SUBMISSION_PROCESSING"),TY=hs("UNSET_QUIZ_REQUIREMENT"),SY=hs("UPDATE_ALT_DIALOG"),LY=hs("UPDATE_CUSTOM_FONTS_DIALOG"),bY=hs("UPDATE_SUBMIT_COURSE_DIALOG"),Tv=(t,e)=>Jt()({[e]:S0()(t)}),Rl="trackingCompletionPercentage",Yu="trackingQuizId",zn={editing:"editing",publishError:"publishError",publishing:"publishing",submitting:"submitting",success:"success",error:"error"},Gm="userToNotify",Km={altDialog:{blockId:null,itemId:null,lessonId:null,show:!1,text:"",type:null},customFontsDialog:{show:!1,uploadView:!1},overview:{addContentId:null,optionsId:null},resetLearnerDataDialog:{show:!1},takeControlDialog:{lessonId:null,show:!1},submitCourse:{admin:null,categories:[],categorySearch:"",certificateDownload:!0,completion:!0,completionCelebration:!0,hasRequirement:!0,loading:!0,newSubmission:!1,note:null,quizResult:!1,showTimeToComplete:!0,status:zn.editing,timeToComplete:null,[Yu]:null,[Rl]:80,undoSubmission:{loading:!1,status:zn.editing,willBeNewSubmission:!1}}},yY=pn(["submitCourse","categorySearch"]),IY=pn(["overview","addContentId"]),NY=pn(["overview","optionsId"]),jY=pn(["submitCourse",Rl]),AY=pn(["submitCourse",Yu]),RY=pn(["submitCourse","timeToComplete"]),OY=pn(["submitCourse","quizResult"]),PY=(t,e)=>xi()(t,{submitCourse:e}),MY=(t,e)=>Jt()({submitCourse:{categories:Qo()(e)}},t),_a=t=>e=>e[t]!==null&&e[t]!==void 0,Sv=Fs()(wt(),We()({newSubmission:!0,[Rl]:80,completion:!0}),Se()(Tv(null,Yu),Tv(80,Rl),bo()("showTimeToComplete",_a("showTimeToComplete")),bo()("certificateDownload",_a("certificateDownload")),bo()("completionCelebration",_a("completionCelebration")),bo()("hasRequirement",_a("hasRequirement")),bo()("isPublic",_a("publicAt")),sn()(_a(Rl),st()("completion",!0)),sn()(_a(Yu),st()("quizResult",!0)))),DY=Se()(Br()("admin"),Br()("profile")),kY=lf()(Rt(),[Se()(DY,Pe()(Gm)),Ps()([Gm])]),wY=(t,e)=>St()(Sv,Rt()({loading:!1}),sn()(Pe()(Gm),kY),Br()("submitCourse"),xi()(t))(e),BY=st()("altDialog",{blockId:null,itemId:null,lessonId:null,show:!1,text:"",type:null}),_Y=(t,e)=>Jt()({submitCourse:{categories:Sa()(Ue()("id",e))}},t),UY=(t,{setting:e,value:s})=>xi()(t,{submitCourse:{[e]:s}}),HY=(t,e)=>xi()(t,{submitCourse:e}),FY=(t,e)=>mt()(t,{altDialog:mt()(e,{show:!0})}),Ol=t=>Wm()({submitCourse:{status:t}}),zY=Wm()({submitCourse:{newSubmission:!1,status:zn.success}}),VY=(t,e)=>mt()(t,{customFontsDialog:mt()(e,{show:!t.customFontsDialog.show})}),WY=(t,e)=>mt()(t,{takeControlDialog:mt()(e,{show:!0})}),GY=t=>mt()(t,{takeControlDialog:Km.takeControlDialog}),KY=(t,e)=>mt()(t,{altDialog:mt()(t.altDialog,e)}),$Y=(t,e)=>mt()(t,{customFontsDialog:mt()(t.customFontsDialog,e)}),QY=(t,e)=>mt()(t,{resetLearnerDataDialog:mt()(e,{show:!0})}),ZY=t=>mt()(t,{resetLearnerDataDialog:Km.resetLearnerDataDialog}),YY=Jt()({submitCourse:{undoSubmission:{loading:Zu(),status:We()(zn.success),willBeNewSubmission:hn()}}}),XY=Hc()(2,t=>St()(Sv,Br()("submitCourse"),xi()(t),Jt()({submitCourse:{undoSubmission:{loading:Zu(),status:We()(zn.success)}}}))),JY=(t,e)=>wt()(e)?YY(t):XY(t,e),qY=Jt()({submitCourse:{undoSubmission:{status:We()(zn.error),loading:Zu()}}}),eX=Jt()({submitCourse:{undoSubmission:{loading:hn()}}}),tX=Jt()({submitCourse:{undoSubmission:{status:We()(zn.editing)}}}),sX=Jt()({submitCourse:{newSubmission:hn(),undoSubmission:{willBeNewSubmission:Zu(),status:We()(zn.editing)}}}),nX={[cY]:sX,[JZ]:MY,[$Z]:(0,he.onSuccess)(wY),[qZ]:BY,[sY]:yY,[nY]:Ol(zn.publishing),[oY]:_Y,[rY]:IY,[aY]:jY,[iY]:NY,[lY]:AY,[TY]:OY,[dY]:UY,[uY]:HY,[hY]:RY,[mY]:FY,[QZ]:Ol(zn.errorPublishing),[gY]:Ol(zn.editing),[ZZ]:Ol(zn.error),[vY]:Ol(zn.submitting),[YZ]:zY,[CY]:VY,[fY]:WY,[pY]:QY,[eY]:ZY,[tY]:GY,[SY]:KY,[LY]:$Y,[bY]:PY,[XZ]:(t,e,s)=>s?qY(t):JY(t,e),[xY]:tX,[EY]:eX},oX=(0,he.handle)(Km,nX),rX=(t,{courseSnapshots:e})=>e,aX=(t,{snapshot:e})=>[e,...t],iX=(t,{snapshot:e})=>t.map(s=>s.id===e.id?e:s),cX={[jo]:(0,he.onSuccess)(rX),[sZ]:(0,he.onSuccess)(aX),[nZ]:(0,he.onSuccess)(iX)},lX=(0,he.handle)([],cX),$m=ot()("rise/cropUI/"),dX=$m("HIDE_CROP_DIALOG"),uX=$m("SHOW_CROP_DIALOG"),hX=$m("SET_CROP_IMAGE"),mX={error:!1,media:null,itemId:null,lessonId:null,showDialog:!1,refs:null},pX=(t,e)=>Rt()({showDialog:!0,...e},t),fX={[dX]:Rt()({showDialog:!1}),[uX]:pX,[hX]:mt()},gX=(0,he.handle)(mX,fX),vX=(t,e)=>e?.defaultLabelSets??{},CX={[jo]:(0,he.onSuccess)(vX)},xX=(0,he.handle)({},CX),Lv=ot()("rise/errorUI/"),EX=Lv("HIDE_ERROR_DIALOG"),TX=Lv("SHOW_ERROR_DIALOG"),SX={action:null,showDialog:!1,tryAgain:!1},LX=(t,{action:e,message:s,title:o,tryAgain:r})=>Rt()({action:e,message:s,showDialog:!0,title:o,tryAgain:r},t),bX={[EX]:Rt()({showDialog:!1}),[TX]:LX},yX=(0,he.handle)(SX,bX),bv=ot()("rise/externalItems/"),IX=bv("FETCH_EXTERNAL_ITEMS"),NX=bv("CLEAR_EXTERNAL_ITEMS"),jX={peek:"video",preso:"video",replay:"video",video:"video",rise:"rise",storyline:"storyline"},AX={fetched:!1,rise:[],storyline:[],video:[]},RX=(t,e)=>W1()([t,{fetched:!0},e]),OX={[IX]:(0,he.onSuccess)(RX),[NX]:t=>W1()([t,{fetched:!1},Wr()(()=>[],jX)])},PX=(0,he.handle)(AX,OX),MX=(0,he.handle)({},{["rise/features/SET_FEATURE_FLAGS"]:(t,e)=>e}),yv=ot()("rise/jobs/"),h1e=yv("AI_JOB_UPDATE"),DX=yv("SET_COURSE_JOBS"),kX={},wX=(t,e)=>e.reduce((s,o)=>(s[o.jobId]=o,s),t),BX={[DX]:wX},_X=(0,he.handle)(kX,BX),Xu=ot()("rise/l10n/"),m1e=Xu("UPDATE_L10N_BATCH"),UX=Xu("UPDATE_L10N_BATCH_FRONTEND"),HX=Xu("UPDATE_LOCALE"),FX=Xu("UPDATE_PENDING_TRANSLATIONS"),zX=(t,{l10n:e,translationUpdates:s})=>({translationUpdates:s,...e}),tr=(t,{translationChanges:e})=>e?.length?Iv(t,{changes:e}):t,VX=(t,{lesson:e})=>tr(t,e),WX=(t,{locale:e,...s})=>{const o=t.locales.findIndex(r=>r.locale===e);return o<0?t:{...t,locales:(0,Gr.set)((0,Gr.lensIndex)(o),{...t.locales[o],...s},t.locales)}},GX=(t,{updates:e})=>({...t,translationUpdates:e}),Iv=(t,{changes:e})=>!e||!e.length?t:e.reduce((o,r)=>{const{action:a,l10nId:c,locale:d,value:l}=r;if(a==="add"||a==="update")return(0,Gr.assocPath)(["translations",d,c],l,o);if(a==="delete"){if(d)return(0,Gr.dissocPath)(["translations",d,c],o)}else if(a==="copy")return(0,Pt._Y)({l10nId:c},{l10n:t}).reduce((u,{locale:h,value:p})=>(0,Gr.assocPath)(["translations",h,r.newL10nId],p,u),o);return o},t),KX={[jo]:(0,he.onSuccess)(zX),[qg]:tr,[ev]:tr,[wm]:tr,[Bm]:tr,[pv]:tr,[fv]:tr,[Um]:tr,[hv]:tr,[mv]:tr,[Hm]:VX,[UX]:Iv,[HX]:(0,he.onSuccess)(WX),[FX]:GX},$X=(0,he.handle)({},KX),Pl=ot()("rise/labelSets/"),QX=Pl("CREATE_LABEL_SET"),ZX=Pl("DELETE_LABEL_SET"),YX=Pl("IMPORT_LABEL_SET"),XX=Pl("UPDATE_LABEL_SET"),JX=Pl("UPDATE_LABELS"),Ju=(t,e)=>st()(e.id,e,t),qX=(t,{labelSets:e})=>Nn()(Ju,{},e),Nv=(t,e)=>e.id in t?Jt()({[e.id]:Rt()(e)},t):Ju(t,e),eJ={[QX]:(0,he.onSuccess)(Ju),[ZX]:(0,he.onSuccess)(Wu("id")),[jo]:(0,he.onSuccess)(qX),[YX]:(0,he.onSuccess)(Ju),[XX]:(0,he.onSuccess)(Nv),[JX]:(0,he.onSuccess)(Nv)},tJ=(0,he.handle)({},eJ),Qm=St()(Qt()(Pe()("pending")),Tt()("id"),yo()),sJ=Ls()(["duration","lastUpdatedBy","updatedAt"]),nJ=vi()(Se()(wt(),jt()(["settings","revealAnswers"])),Zi()(sm()(["settings","revealAnswers"]),yt.x8)),oJ=sn()(_t.vm,_t.Ww),rJ=Se()(nJ,oJ),jv=(t,e)=>st()(e.id,rJ(e),t),Zm=(t,{lesson:e})=>(0,Ft.Ve)(t,Ps()(Qm(t)),st()(e.id,e)),aJ=(t,{lessons:e})=>(0,Ft.Ve)(t,Ps()(Qm(t)),Nn()((s,o)=>st()(o.id,o,s),Vi(),e)),iJ=(t,{lesson:e})=>jv(t,e),cJ=(t,e)=>Zm(t,{lesson:e}),lJ=(t,{lesson:e})=>(0,Ft.Ve)(t,Ps()(Qm(t)),Wo()(e.id)),qu=(t,{lessons:e})=>Nn()(jv,{},e),dJ=(t,{lesson:e})=>Ml(t,e),uJ=(t,{lessons:e})=>e.reduce(cJ,t),hJ=Ps()(["translationChanges"]),Ml=(t,e)=>Jt()({[e.id]:Rt()(hJ(e))},t),Av=(t,e)=>(0,Ft.Ve)(t,Fs()(()=>Kh()(new Date(e.updatedAt),new Date(t[e.id]?.updatedAt||0)),We()(t),()=>Jt()({[e.id]:Rt()(e)},t))),mJ=(t,e,s)=>(0,Ft.Ve)(t,Fs()(We()(s),ad()(()=>console.error(s)),Jt()({[e.id]:Rt()(sJ(e))}))),pJ=(t,{lesson:e},s)=>(0,Ft.Ve)(t,Fs()(We()(s),ad()(console.error),Jt()({[e.id]:Rt()(e)}))),fJ=(t,{lesson:e},s)=>s?(console.error(s),t):Jt()({[e.id]:Rt()({updatedAt:e.updatedAt})},t),gJ=(t,e,s)=>{if(s)return console.error(s),t;const{blockId:o,imageKey:r,lessonId:a}=e,c=t[a]?.items,d={media:{image:{key:r,type:"image",useCrushedKey:!1,sourcedFrom:"DEFAULT"}}},l=c?.map(u=>u.id===o?{...u,background:d}:u);return oc()([a,"items"],l,t)},vJ=(t,{lessonId:e,change:s})=>{const o=t[e],r=(0,I0.TJ)(["lessons"],[s],[o]);if(r.discarded.length>0)return console.error(r.discarded[0]),t;const a=r.result[0].items;return Jt()({[e]:st()("items",a)},t)},Rv=(t,e)=>e.lessons.reduce((s,o)=>Jt()({[o.id]:Rt()(o)},s),t),CJ={[VQ]:(0,he.onSuccess)(Un()),[WQ]:Ml,[Um]:(0,he.onSuccess)(Zm),[Hm]:iJ,[lv]:(0,he.onSuccess)(aJ),[dv]:(0,he.onSuccess)(lJ),[GQ]:Ml,[uv]:(0,he.onSuccess)(Zm),[KQ]:gJ,[jo]:(0,he.onSuccess)(qu),[j$]:dJ,[Yg]:uJ,[km]:(0,he.onSuccess)(qu),[$Q]:Av,[hv]:Av,[mv]:Ml,[ZQ]:(0,he.onSuccess)(qu),[pv]:(0,he.onSuccess)(Ml),[fv]:mJ,[tv]:(0,he.onSuccess)(qu),[YQ]:(0,he.onSuccess)(pJ),[XQ]:fJ,[Dm]:(0,he.onSuccess)(Rv),[sv]:Rv,[QQ]:vJ},xJ=(0,he.handle)({},CJ),Ov=ot()("rise/lessonBlocksListUI/"),EJ=Ov("SHOW_LESSON_BLOCKS_LIST_MODAL"),TJ=Ov("HIDE_LESSON_BLOCKS_LIST_MODAL"),SJ={isMultiSelect:!1,isOpen:!1,isEditBlockMode:!1},LJ=(t,{isMultiSelect:e,isEditBlockMode:s=!1})=>Rt()({isEditBlockMode:s,isMultiSelect:e,isOpen:!0},t),bJ={[TJ]:Rt()({isMultiSelect:!1,isOpen:!1,isEditBlockMode:!1}),[EJ]:LJ},yJ=(0,he.handle)(SJ,bJ),IJ=ot()("rise-api/libraries/")("FETCH_EXTERNAL_COURSE_LIBRARIES"),NJ=(t,{libraries:e})=>e,jJ={[IJ]:(0,he.onSuccess)(NJ)},AJ=(0,he.handle)([],jJ),Pv=ot()("rise/locks/"),RJ=Pv("DEL_LOCK"),OJ=Pv("PUT_LOCK"),PJ=Ls()(["author","courseId","id","session","ttl","updatedAt"]),MJ=(t,{locks:e})=>Nn()(e0,{},e),e0=(t,e)=>st()(e.id,PJ(e),t),DJ={[RJ]:(0,he.onSuccess)(Wu("id")),[jo]:(0,he.onSuccess)(MJ),[wm]:(0,he.onSuccess)(e0),[Bm]:(0,he.onSuccess)(e0),[OJ]:(0,he.onSuccess)(e0)},kJ=(0,he.handle)({},DJ),Mv=ot()("rise/notification/"),wJ=Mv("CLEAR"),BJ=Mv("NOTIFY"),_J=(t=[],e)=>Qo()(st()("key",e.key||`notify-${Date.now()}`,e))(t),UJ=(t,e)=>e&&t?.length?[...t.filter(o=>o.key!==e)]:[],HJ={[wJ]:UJ,[BJ]:_J},FJ=(0,he.handle)(null,HJ);var zJ=i(70405),VJ=i.n(zJ);const Dv=ot()("rise/partnerContent/"),WJ=Dv("SET_ALL_PARTNER_CONTENT"),GJ=Dv("SET_PARTNER_CONTENT_TYPES"),KJ=(t,e)=>{const s=Ts()(Ue()("id",e.id),t.content),o=s===-1?Qo()(e):VJ()(s,e);return Jt()({content:o},t)},$J=(t,e)=>Nn()(KJ,t,e),QJ=(t,e)=>st()("types",e,t),ZJ={[WJ]:$J,[GJ]:QJ},YJ=(0,he.handle)({content:[]},ZJ),io=ot()("rise/question-banks/"),XJ=io("CLEAR_SEARCH"),JJ=io("CLOSE_ADD_TO_QUESTION_BANK_DIALOG"),qJ=io("CLOSE_DRAW_DIALOG"),kv=io("FETCH_QUESTION_BANKS"),eq=io("SEARCH_QUESTION_BANK"),f1e=io("SEARCH_QUESTION_BANKS_CLIENT"),tq=io("SET_DRAW_DIALOG_VIEW"),sq=io("SET_SEARCH_TERM"),nq=io("SHOW_ADD_TO_QUESTION_BANK_DIALOG"),oq=io("SHOW_DRAW_DIALOG"),g1e=io("UPDATE"),rq=io("UPDATE_CLIENT"),aq={drawDialog:{active:!1,modalView:null,questionBank:null},addToBankDialog:{active:!1},folders:{personal:null,team:null},profiles:null,questionBanks:null,results:null,searchTerm:null},wv=t=>e=>(0,Ft.Ve)(e,Ts()(Ue()("id",t.id)),s=>tu()(Rt()(t),s,e)),iq=({id:t,questionBank:e})=>St()(Pe()("questionBanks"),wv({...e,id:t,updatedAt:new Date})),cq=(t,e)=>sn()(jt()(["results","questionBanks"]),St()(jt()(["results","questionBanks"]),wv({...e,updatedAt:new Date}),Br()("questionBanks"),mt()(t.results))),lq=St()(Ls()(["privateFolders","sharedFolders"]),G1()("privateFolders",Da),G1()("sharedFolders",vl)),dq=St()(Pe()("profiles"),ph()(Pe()("aid"))),Bv=t=>Jt()({[t]:Rt()({active:!1})}),uq=(t,e)=>(0,Ft.Ve)(e,li()({folders:lq,profiles:dq,questionBanks:Pe()("questionBanks")}),mt()(t)),hq=(t,e)=>st()("results",e,t),mq=(t,e)=>(0,Ft.Ve)(t,st()("searchTerm",e),Wo()("results")),_v=t=>(e,s)=>st()(t,{active:!0,...s},e),pq=(t,e)=>(0,Ft.Ve)(t,li()({questionBanks:iq(e),results:cq(t,e)}),mt()(t)),fq=(t,e)=>(0,Ft.Ve)(t,Zi()(Vu()("drawDialog"),Wm()(e))),Uv=Rt()({results:null,searchTerm:null}),gq=t=>(0,Ft.Ve)(t,Uv,Bv("drawDialog")),vq=(0,he.handle)(aq,{[XJ]:Uv,[JJ]:Bv("addToBankDialog"),[qJ]:gq,[kv]:(0,he.onSuccess)(uq),[eq]:hq,[tq]:fq,[sq]:mq,[nq]:_v("addToBankDialog"),[oq]:_v("drawDialog"),[rq]:pq});var Hv=(t=>(t.COMMENTS="COMMENTS",t))(Hv||{});const Cq=Object.values(Hv),Fv=Pm("riseFrontendSidePanelMode"),zv=Cq.includes(Fv),xq={isOpen:zv,mode:zv?Fv:void 0},Eq=(t,e)=>{const s=e.isOpen??!t.isOpen,o=t.isOpen;return!o&&s?Mm("riseFrontendSidePanelMode",e.mode??t.mode):o&&!s&&MK("riseFrontendSidePanelMode"),t.mode===e.mode||e.mode===void 0?{...t,isOpen:e.isOpen??!t.isOpen}:{...t,isOpen:!0,mode:e.mode}},Tq={[zg]:Eq},Sq=(0,he.handle)(xq,Tq),t0=ot()("rise/status/"),Lq=t0("SET_FONTS_LOADED"),bq=t0("SET_IDLE"),yq=t0("SET_PARTNER_CONTENT_LOADED"),Iq=t0("SET_COURSE_RESTORING"),Nq=st()("courseLoaded",!0),jq=(t,e)=>mt()(t,{idle:e}),Aq=st()("questionBanksLoaded",!0),Vv=t=>st()("courseRestoring",t),Rq={[jo]:(0,he.onSuccess)(Se()(Nq,Vv(!1))),[Iq]:Vv(!0),[Lq]:st()("fontsLoaded",!0),[bq]:jq,[yq]:st()("partnerContentLoaded",!0),[kv]:(0,he.onSuccess)(Aq)},Oq={courseLoaded:!1,fontsLoaded:!1,idle:!1,partnerContentLoaded:!1,questionBanksLoaded:!1,courseRestoring:!1},Pq=(0,he.handle)(Oq,Rq),s0=ot()("rise/statusTray/"),Mq=s0("INIT_JOBS"),Dq=s0("FINISH_JOB"),kq=s0("FAIL_JOB"),wq=s0("CLEAR_JOBS"),Bq=t=>t.some(e=>e.status==="loading"),_q=t=>t.some(e=>e.status==="error"),Wv=t=>Bq(t)?"loading":_q(t)?"error":"success",Gv={title:null,status:null,jobs:[],initTimestamp:null},Uq=(t,{title:e,jobs:s})=>({title:e,status:"loading",jobs:s,initTimestamp:Date.now()}),Hq=(t,{id:e,url:s})=>{const o=t.jobs.map(r=>r.id===e?{...r,status:"success",url:s}:r);return{...t,status:Wv(o),jobs:o}},Fq=(t,{id:e,error:s})=>{const o=t.jobs.map(r=>r.id===e?{...r,status:"error",error:s}:r);return{...t,status:Wv(o),jobs:o}},zq={[Mq]:Uq,[Dq]:Hq,[kq]:Fq,[wq]:()=>Gv},Vq=(0,he.handle)(Gv,zq),Kv=ot()("rise/storyline/"),Wq=Kv("CLOSE_STORIES"),Gq=Kv("OPEN_STORIES"),Kq={[Wq]:st()("isVisible",!1),[Gq]:mt()},$q=(0,he.handle)({isVisible:!1},Kq),Qq=(t,{tenant:e})=>mt()(e||{},t),Zq={[jo]:(0,he.onSuccess)(Qq)},Yq=(0,he.handle)({},Zq),Xq=ot()("rise/time/")("SYNC_CLOCK"),Jq=(t,e)=>st()("delta",e-Date.now()+2e3,t),qq={[Xq]:Jq},eee=(0,he.handle)({delta:0},qq),tee="rise/transitionKeys/SET_TRANSITION_KEY";function see(t,e){return st()(e,rt()(e),t)}const nee=(0,he.handle)({},{[tee]:see}),Is=ot()("rise/uploads/"),C1e=Is("CANCEL_JOB"),x1e=Is("CANCEL_JOB_SEND"),oee=Is("CANCEL_UPLOAD"),E1e=Is("CHECK_STATUS"),T1e=Is("CHECK_STATUS_SEND"),$v=Is("CLEAR_UPLOAD"),S1e=Is("CROP_IMAGE"),ree=Is("CROPPING"),L1e=Is("CRUSH_IMAGE"),b1e=Is("CRUSH_IMAGE_SEND"),aee=Is("CRUSHING"),Qv=Is("END_UPLOAD"),Zv=Is("ERROR_UPLOAD"),y1e=Is("GET_YURL"),I1e=Is("GET_YURL_SEND"),iee=Is("PROCESSING"),cee=Is("REPLAY_UPLOADS"),N1e=Is("RESOLVE_ASSET"),j1e=Is("SELECT_STOCK_PHOTO"),A1e=Is("SELECT_STOCK_PHOTO_SEND"),lee=Is("START_UPLOAD"),dee=Is("TRANSCODE_ASSET"),R1e=Is("TRANSCODE_ASSET_SEND"),Yv=Is("UPDATE_UPLOAD");var uee=(t=>(t.FORMAT="FORMAT",t.LESSON_MISMATCH="LESSON_MISMATCH",t.COURSE_MISMATCH="COURSE_MISMATCH",t))(uee||{});const hee={jobs:{}},mee=(0,he.handle)(hee,{[km]:gee,[Yv]:pee,[$v]:fee,[Zv]:Cee,[Qv]:vee});function pee(t,{id:e,data:s}){return/\.((xliff)|(xlf)|(xml))$/.test(s?.filename)?oc()(["jobs",e],{status:"pending"},t):t}function fee(t){return Wo()("importError",t)}function gee(t,e){return st()("importError",e.error?e:void 0,t)}function vee(t,{id:e}){return t.jobs[e]==null?t:oc()(["jobs",e],{status:"complete"},t)}function Cee(t,{id:e}){return t.jobs[e]==null?t:oc()(["jobs",e],{status:"error"},t)}const xee=(t,e)=>({...t,[e.id]:e}),Ym=(t,e)=>{const s=e.fonts?.reduce(xee,{});return{...t,[e.id]:{...e,fonts:s}}},Eee=(t,{typefaces:e})=>e.reduce(Ym,{}),Tee={[JQ]:(0,he.onSuccess)(Ym),[gv]:(0,he.onSuccess)(Wu("id")),[vv]:(0,he.onSuccess)(Eee),[qQ]:(0,he.onSuccess)(Ym)},See=(0,he.handle)({},Tee),Lee="rise/ui/SET_SPARKLE_BLOCK",bee="rise/ui/UNSET_SPARKLE_BLOCK",yee={sparkleBlocks:[]},Iee=(0,he.handle)(yee,{[Lee]:Nee,[bee]:jee});function Nee(t,e){const s=new Set(t.sparkleBlocks);return s.add(e),{...t,sparkleBlocks:Array.from(s)}}function jee(t,e){const s=new Set(t.sparkleBlocks);return s.delete(e),{...t,sparkleBlocks:Array.from(s)}}const Xv={progress:0,status:"uploading"},n0=st()("status"),Aee=(t,{id:e})=>Jt()({[e]:n0("canceled")},t),Ree=(t,{id:e,status:s})=>st()(e,{id:e,progress:100,status:s},t),Oee=(t,{id:e})=>Jt()({[e]:n0("crushing")},t),Pee=(t,e)=>Jt()({[e.id]:Se()(Rt()(e),n0("complete"))},t),Mee=(t,{data:e})=>st()(e.id,{data:e,id:e.id,status:"errored"},t),Dee=(t,{id:e})=>Jt()({[e]:n0("processing")},t),kee=(t,e)=>{const s=e.filter(o=>o.uploadId&&!["COMPLETE","CANCELED","ERROR"].includes(o.state));return{...t,...s.reduce((o,r)=>{const{uploadId:a,jobId:c,metadata:d}=r;return{...o,[a]:{id:a,jobId:c,status:"processing",metadata:d}}},{})}},wee=(t,{id:e,mediaType:s})=>st()(e,Rt()({id:e,mediaType:s},Xv),t),Bee=(t,{id:e,jobId:s})=>oc()([e,"jobId"],s,t),_ee=(t,{id:e,data:s},o)=>o?Jt()({[e]:Rt()({data:s,status:"errored"})},t):Jt()({[e]:Rt()(s)},t),Uee={[oee]:Aee,[$v]:Eo()(Wo()),[ree]:Ree,[aee]:Oee,[Qv]:Pee,[Zv]:Mee,[iee]:Dee,[cee]:kee,[lee]:wee,[dee]:(0,he.onSuccess)(Bee),[Yv]:_ee},Hee=(0,he.handle)(Xv,Uee),o0=ot()("rise/user/"),Fee=o0("GET_SESSION"),zee=o0("GET_STATUS"),Vee=o0("LOAD_PROFILE"),Wee=o0("UPDATE_REACH_STATUS"),Gee={author:null,features:{},profile:{},roles:(0,Re.O0)(),session:null,subscription:{}},Kee=(t,{session:e})=>st()("session",e,t),$ee=(t,e)=>{const s={...t.subscription};return s.has_reach=e,{...t,subscription:s}},Qee={[Fee]:Kee,[zee]:(0,he.onSuccess)(mt()),[Vee]:mt(),[Wee]:$ee},Zee=(0,he.handle)(Gee,Qee),Yee=(0,Hs.HY)({accounts:eG,ai:KG,aiImageGenUI:rK,assetManager:mK,blockTemplates:AK,blockTemplateUI:a$,bridgePublish:T$,bulkExport:I$,businessContent:D$,captionsUI:H$,categories:z$,changesets:$$,collaborators:fQ,collaboratorsUI:jQ,connection:RQ,contentLibrary:DQ,copyLessonUI:zQ,course:mZ,courseCopies:CZ,courseMedia:bZ,courseReviewItems:kZ,courseTheme:WZ,courseUI:oX,courseSnapshots:lX,cropUI:gX,defaultLabelSets:xX,errorUI:yX,externalItems:PX,features:MX,jobs:_X,l10n:$X,labelSets:tJ,lessonBlocksListUI:yJ,lessons:xJ,libraries:AJ,locks:kJ,notification:FJ,partnerContent:YJ,questionBanks:vq,sidePanel:Sq,status:Pq,statusTray:Vq,storyline:$q,tenant:Yq,time:eee,transitionKeys:nee,translations:mee,typefaces:See,ui:Iee,uploads:Hee,user:Zee}),{Provider:O1e,connect:P1e,dispatch:M1e,store:D1e,useDispatch:k1e,useSelector:Xee}=(0,Hs.Nv)(Yee);function Er(t){return t.course}function Jee(){return Xee(t=>Er(t))}function w1e(){return useSelector(t=>t.lessons)}function qee(t){return Er(t)?.id}function B1e(){return useSelector(t=>qee(t))}function ete(t){const e=Er(t);return e.theme?.colorAccent??e.color}function _1e(){return useSelector(t=>ete(t))}function tte(t){return Er(t)?.type}function U1e(){return useSelector(t=>tte(t))}function ste(t){return Er(t)?.type===COURSE_TYPE_ONE_PAGE}function nte(t){const e=Er(t);return isCourseLocalized(e)}function H1e(){return useSelector(t=>nte(t))}function F1e(){return useSelector(t=>ste(t))}function z1e(t){return Jv(t)?.blockNavigationType}function Jv(t){return Er(t)?.theme}function V1e(){return useSelector(Jv)}function ote(t){return{colors:Er(t)?.theme?.colors}}function W1e(){return useSelector(ote)}function G1e(t){return new Date(Er(t)?.updatedAt??0)}function K1e(t){return t?.course?.labelSetId}var Jr=i(19509);function rte(t){return t?.slidesUI?.slideDirection??Jr.f.UP}function ate(){return(0,X.d4)(t=>rte(t))}function ite(t){return t?.slidesUI?.exitingSlideOffset??0}function cte(){return(0,X.d4)(t=>ite(t))}const Ua=J("blocks-lesson-slide"),qv="#fff",lte=["image full","image text overlay","quote background"],eC=({className:t})=>{const e=qn()||qv;return(0,n.jsx)("div",{className:t,style:{background:e}})},dte=({block:t})=>(0,n.jsx)(c1,{block:t,children:(0,n.jsx)(eC,{className:Ua("background-top")})}),ute=({block:t})=>(0,n.jsx)(c1,{block:t,children:(0,n.jsx)(eC,{className:Ua("background-bottom")})});function hte(t,e){const s=e.blocks?.length??1,o=s==1,r=s==2,a=e.blocks?.[0],c=e.blocks?.find(O=>O.settings.backgroundType===P.xj.IMAGE),d=t.settings.backgroundType===P.xj.IMAGE,l=t.id===a?.id,u=t.family==="multimedia",h=t.family==="buttons",f=t.variant==="accordion"&&document.querySelector(`[data-block-id="${t.id}"] [data-accordion-status="closed"]`)!=null,g=document.querySelector(`[data-block-id="${t.id}"] [data-block-text]`)?.clientHeight>300,v=RU(t.family,t.variant)||g,C=document.querySelector("[data-continue-sr]")!=null,x=!v&&r&&C&&document.querySelector("[data-continue-btn]")==null,S=o&&d&&!x,E=d&&!x&&!v,b=u||h;return Ua("connected-blocks",{"min-half-height":c&&(r&&!x&&!v||f||E),"full-height":x||S,"top-block":l&&!o&&!v&&!b,"top-block-centered":l&&!o&&b})}const mte=({hasTransitioned:t,onContinue:e,prefersKeyboardNavigation:s,previewType:o,slide:r,transitionState:a},c)=>{const d=Jee(),l=Go(),u=(0,ze.useLabelsMap)(),h=S1(),p=De(l),f=!0,{animateBlockEntrance:g,color:v,id:C,title:x,enableVideoPlaybackSpeed:S,publishedAt:E,tenantId:b}=d;(0,m.useImperativeHandle)(c,()=>L.current);const L=(0,m.useRef)(),I=ate(),N=cte(),R=`${a}-${I}`,j=Ua("wrapper",{exiting:a==="exiting"}),{blocks:O,lastBlock:B}=r,_=(0,m.useCallback)(nt=>{nt===B?.id&&e()},[B,e]),k=Ua("inner",{[R]:!0}),te=Ua("lesson",{slides:f}).toString(),F=r.blocks.length==1,{settings:K,type:Z,variant:xe}=r.blocks?.[0]??{},fe=F&&K.backgroundType===P.xj.IMAGE,oe=F&&!fe&&on()(`${Z} ${xe}`,lte),we=oe||fe,Ae=r.blocks?.[0],_e=r.blocks?.[r.blocks.length-1],Qe=Ae?.settings?.backgroundType!==P.xj.IMAGE,pt=_e?.settings?.backgroundType!==P.xj.IMAGE,ls=Ua("full-width-image",{legacy:oe,background:fe});return(0,n.jsx)("div",{className:j,style:{top:N},children:(0,n.jsxs)("div",{className:k,children:[Qe&&(0,n.jsx)(dte,{block:Ae}),pt&&(0,n.jsx)(ute,{block:_e}),(0,n.jsx)("div",{className:te,ref:L,children:O.map((nt,Ce)=>{const Ne=F?!1:D5({blocks:r.blocks,lessonProgress:p,currentBlockIndex:Ce}),Ke=we?ls:hte(nt,r);return(0,n.jsx)(P5,{animateBlockEntrance:g,block:nt,className:Ke,color:v,courseId:C,courseTitle:x,defaultBackgroundColor:qv,enableVideoPlaybackSpeed:S,hideBlock:Ne,index:Ce,isFirstLesson:!0,isOnlyBlockInStep:F,labels:u,lessonId:l,lessonProgress:p,loadMedia:t,onContinue:_,partnerContent:h,prefersKeyboardNavigation:s,previewType:o,publishedAt:E,tenantId:b},nt.blockId)})})]})})},pte=(0,m.forwardRef)(mte);var fte=i(37520),gte=i.n(fte),tC=i(72209);const sC=J("blocks-slide-indicator-tooltip"),vte=({disabled:t,left:e,text:s,top:o,visible:r},a)=>{let c=(0,n.jsx)("span",{"aria-hidden":"true",children:s});return t&&(c=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r4,{className:sC("icon")}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"(locked content)"})]})),(0,n.jsx)("div",{"aria-hidden":!r,className:sC("wrapper",{disabled:t,visible:r}),ref:a,role:"tooltip",style:{left:e,top:o},children:c})},nC=(0,m.forwardRef)(vte);nC.propTypes={disabled:A().bool.isRequired,left:A().number,text:A().string.isRequired,top:A().number,visible:A().bool.isRequired};const Cte=nC;function xte(t){const e=(0,m.useRef)();return e.current||=t(),e}const r0=J("blocks-slide-indicator"),Ete=({active:t,blockNavigationStyle:e,disabled:s,numberOfSlides:o,onKeyDown:r,onClick:a,slideIndex:c},d)=>{const{prefersKeyboardNavigation:l}=U2()??{},[u,h]=(0,m.useState)(!1),[p,f]=(0,m.useState)(),g=(0,m.useRef)(),v=(0,m.useRef)(),C=(0,m.useRef)(),x=e===P.Dw.NUMBERS,S=c+1,E=`${S} / ${o}`,b=xte(()=>document.getElementById("portal")),L=(0,m.useCallback)(()=>{if(g.current&&v.current){const Z=g.current.getBoundingClientRect(),xe=v.current.getBoundingClientRect(),fe=Z.left-xe.width-18,oe=Math.round(Z.top-xe.height/2+Z.height/2);f({left:fe,top:oe})}},[]),I=(0,m.useCallback)(()=>{C.current=setTimeout(()=>{L(),h(!0)},300)},[L]),N=(0,m.useCallback)(()=>{clearTimeout(C.current),h(!1)},[]),R=(0,m.useCallback)(()=>{a(c)},[a,c]),j=(0,m.useCallback)(Z=>{yn(Z)&&h(!1),r(Z)},[r]),O=(0,m.useCallback)(()=>{I()},[I]),B=(0,n.jsx)(Cte,{disabled:s,left:p?.left,ref:v,text:E,top:p?.top,visible:u}),_=r0("button",{active:t,disabled:s,numbers:x}),k=r0("wrapper"),te=r0("circle",{active:t,disabled:s}),F=r0("number",{active:t,disabled:s}),K=x?(0,n.jsx)("span",{"aria-hidden":"true",className:F,children:S}):(0,n.jsx)(dp,{className:te});return(0,n.jsxs)("div",{className:k,ref:d,children:[(0,n.jsxs)("button",{"aria-disabled":s,className:_,"data-control":"",onBlur:N,onClick:s?void 0:R,onFocus:l?O:void 0,onMouseEnter:I,onMouseLeave:N,onKeyDown:j,ref:g,tabIndex:t?0:-1,type:"button",children:[K,(0,n.jsx)("span",{className:"visually-hidden-always",children:E}),t&&(0,n.jsx)("span",{className:"visually-hidden-always",children:"(current)"}),s&&(0,n.jsx)("span",{className:"visually-hidden-always",children:"(disabled until content is completed)"})]}),(0,Yn.createPortal)(B,b.current)]})},Tte=(0,m.forwardRef)(Ete),Ha=J("blocks-slide-controls"),oC=38,Ste=8,Lte=t=>{const{activeSlideIndex:e,blockNavigationStyle:s,numberOfSlides:o,onGoToCover:r,onSlideClick:a,slideDisabledState:c,previewType:d}=t,l=(0,m.useRef)(),u=(0,m.useRef)(),[h,p]=(0,m.useState)(!1),[f,g]=(0,m.useState)(!1),v=(0,m.useCallback)(E=>{let b=!1,L=-1;if(Li(E)||_r(E)){if(e-1>=0)L=e-1;else{r();return}b=!0}else bi(E)||Ur(E)?(e+1<=o-1&&(L=e+1),b=!0):Mx(E)?(L=0,b=!0):Px(E)&&(L=o-1,c[L]&&(L=c.findLastIndex(I=>!I)),b=!0);L>=0&&!c[L]&&a(L),b&&(E.stopPropagation(),E.preventDefault())},[e,o,r,a,c]);(0,m.useEffect)(()=>{const E=l.current,b=u.current;if(E&&b){const L=E.getBoundingClientRect(),I=b.getBoundingClientRect(),N=L.bottom-oC,R=L.top+oC;I.bottom>N?E.scrollBy({top:I.bottom-N,left:0,behavior:"smooth"}):I.top<R&&E.scrollBy({top:I.top-R,left:0,behavior:"smooth"})}},[e]);const C=(0,m.useCallback)(()=>{const E=l.current;E&&(p(E.scrollTop>Ste),g(E.clientHeight+E.scrollTop<E.scrollHeight))},[]);(0,tC.A)(C);const x=(0,m.useCallback)(au()(C,100),[C]);Ed(l.current,C);const S=Ha({"touch-preview":Fu(d)});return(0,n.jsx)("div",{className:S,children:(0,n.jsx)("div",{className:Ha("page-control-wrapper"),children:(0,n.jsxs)("div",{className:Ha("page-control-inner-wrapper"),children:[(0,n.jsx)("div",{className:Ha("page-control"),onScroll:x,ref:l,children:(0,n.jsx)("div",{className:Ha("slide-dot-wrapper"),children:gte()(E=>{const b=E===e;return(0,n.jsx)(Tte,{active:b,disabled:c[E],blockNavigationStyle:s,numberOfSlides:o,onKeyDown:v,onClick:a,ref:b?u:null,slideIndex:E},E)},o)})}),(0,n.jsx)("div",{className:Ha("overlay-top",{visible:h})}),(0,n.jsx)("div",{className:Ha("overlay-bottom",{visible:f})})]})})})},rC=100,bte=50,yte=1e3,Ite=(t,e,s,o=yte)=>{const[r,a]=(0,m.useState)(!1),c=(0,m.useRef)(),d=(0,m.useCallback)(()=>{clearTimeout(c.current),c.current=setTimeout(()=>a(!1),o)},[o]),l=(0,m.useCallback)(u=>{const h=Math.abs(u.deltaY);if(r)h<bte?(clearTimeout(c.current),a(!1)):d();else if(h>rC){const p=u.deltaY>0?s:e;a(!0),d(),p()}},[d,r,s,e]);(0,m.useEffect)(()=>{if(!(!t||!e||!s))return t.addEventListener("wheel",l,{passive:!0}),()=>{clearTimeout(c.current),t?.removeEventListener?.("wheel",l,{passive:!0})}},[s,e,l,t])};var Fa=i(29249);const co=J("lesson-one-page-slides"),Nte=J("page-wrap"),aC=100;function iC(t){if(t==null)return!1;const e=t.tagName.toLowerCase(),s=t.getAttribute("type"),o=t.getAttribute("role"),r=t.tabIndex,a=e==="button"||["div","span"].includes(e)&&(o==="button"||r===0),c=e==="input"&&["radio","text"].includes(s)||e==="textarea"||o==="radio",d=["audio","video"].includes(e),l=o==="tab",u=document.querySelector(".quiz-card__interactive")?.contains?.(t)??!1;return a||c||d||l||u}const jte=t=>(e,s,o)=>M5(e,o.slice(0,-1),t),Ate=(t,e)=>({disabled:s,slides:o},r)=>{const a=St()(Qt()(u=>t[u.id]),ws()(u=>mt()(u,t[u.id])))(r),c=r[r.length-1],d=s||NU(a)||jU(a,e),l={blocks:a,lastBlock:c,disabled:s};return{disabled:d,slides:Qo()(l,o)}},a0=t=>{let e=!1,s=!1;if(t){const{clientHeight:o,scrollHeight:r,scrollTop:a}=t,c=Math.max(0,a),d=r-c;e=d===r,s=d-5<=o}return{isAtTop:e,isAtBottom:s}},Rte=/,? +/,Ote=[],Pte=({lessonProgress:t,prefersKeyboardNavigation:e,previewType:s},o)=>{(0,m.useImperativeHandle)(o,Function.prototype,[]);const{announcePolite:r,clearAnnouncements:a}=Je(),c=(0,m.useRef)(),d=(0,m.useRef)(),l=(0,m.useRef)(),u=(0,m.useRef)(),h=(0,m.useRef)(),p=(0,m.useRef)(),f=(0,m.useRef)(),g=(0,m.useRef)(),v=(0,Oi.W)(),C=(0,X.wA)(),[x,S]=(0,m.useState)(0),[E,b]=(0,m.useState)(!0),[L,I]=(0,m.useState)(!1),N=(0,as.A)(E),R=(0,as.A)(L),j=(0,m.useRef)(),O=Js(),B=O?.01:600,_=Ug(s),k=_?WC:VC,te=_?FC:HC,F=_?u4:pp,{lessons:K,...Z}=(0,Me.DX)(),xe=Z.theme?.blockNavigationStyle||P.Dw.DOTS,fe=K[0],oe=fe?.items||Ote,we=(0,m.useCallback)(()=>{const ns=l.current?.scrollHeight>l.current?.clientHeight,{isAtBottom:Vn}=a0(l.current),Wn=ns&&!E&&!Vn;Wn!=L&&I(Wn)},[L,E]);Ed(c.current,we),(0,m.useLayoutEffect)(we,[E]);const Ae=(0,m.useCallback)(()=>{l.current?.scrollTo({top:0})},[]),_e=(0,m.useMemo)(()=>(0,Ft.Ve)(Jh([],oe,t).map(jte(t)),Qt()(x3.A),ph()(Pe()("blockId"))),[oe,t]),Qe=(0,m.useCallback)(ns=>{const Vn={disabled:!1,slides:[]},{slides:Wn}=Nn()(Ate(_e,t),Vn,ns);return Wn},[_e,t]),pt=(0,m.useMemo)(()=>(0,Ft.Ve)(oe,gU,Qe),[oe,Qe]),ls=(0,m.useMemo)(()=>Tt()("disabled",pt),[pt]),nt=pt.length,Ce=pt[x],Ne=Fu(s),Ke=xe!==P.Dw.NONE,He=x===nt-1,dt=t?.isComplete,lt=L||He?!dt||!ye.BI||window.isPublicShare:ls[x+1],Ht=!L&&!He,Wt=He&&!ye.BI,vs=(0,as.A)(Wt),en=L&&!He,Pn=(0,m.useCallback)(Vr()(we,100),[we]);(0,m.useEffect)(()=>{const ns=l.current;return ns?.addEventListener("scroll",Pn,{passive:!0}),()=>ns?.removeEventListener("scroll",Pn,{passive:!0})},[Pn]),(0,m.useEffect)(()=>{document.activeElement===p.current?!R&&L?h.current?.focus({preventScroll:!0}):!vs&&Wt&&f.current?.focus({preventScroll:!0}):document.activeElement===h.current&&R&&!L&&p.current?.focus({preventScroll:!0})},[L,R,vs,N,Wt,E]),(0,QW.A)(()=>{n3(),j.current=setTimeout(()=>{b(!1),l.current?.focus?.()},B+aC)},()=>{clearTimeout(j.current)});const Bs=(0,m.useCallback)(ns=>{const Vn=c.current?.getBoundingClientRect()?.top??0;C((0,Fa.ty)(Vn)),S(ns),Ae()},[C,Ae]),Sn=(0,m.useCallback)(()=>{E||(b(!0),v.push("/"))},[v,E]),lo=Z?.lmsOptions?.disableCoverPage,Sr=(0,m.useCallback)(lo?()=>{C((0,Fa.zP)(Jr.f.DOWN)),Bs(0)}:Sn,[lo,Bs,Sn,C,Fa.zP]),kl=(0,m.useCallback)(()=>{E||(x>0?(C((0,Fa.zP)(Jr.f.DOWN)),Bs(x-1)):Sn())},[Bs,C,x,E,Sn]),ic=(0,m.useCallback)(()=>{E||(He&&ye.BI?v.push("/lessons/progress-summary"):(C((0,Fa.zP)(Jr.f.UP)),Bs(x+1)))},[Bs,C,v,He,x,E]),sp=(0,m.useCallback)(()=>{(x<nt-1||He&&ye.BI)&&ic()},[He,x,nt,ic]),d0=(0,m.useCallback)(()=>{const ns=l.current?.scrollTop??0,Vn=l.current?.clientHeight??0,Wn=O?"instant":"smooth";l.current?.scrollTo({top:ns+Vn,behavior:Wn})},[O]),qr=(0,m.useCallback)(()=>{ic()},[ic]),wl=(0,m.useCallback)(()=>{d0()},[d0]),np=(0,m.useCallback)(ns=>{if(ns===x||E)return;const Vn=ns<x?Jr.f.DOWN:Jr.f.UP;C((0,Fa.zP)(Vn)),Bs(ns),queueMicrotask(()=>{u.current?.querySelectorAll("[data-control]")?.[ns]?.focus?.()})},[Bs,C,x,E]),op=(0,m.useCallback)(()=>b(!0),[]),Ns=(0,m.useCallback)(()=>{b(!1),setTimeout(()=>{if(d.current&&u.current?.contains?.(document.activeElement)){const ns=Qh()(d.current.innerText,{length:75,separator:Rte});a(),r(`Content preview: ${ns}`)}else l.current?.focus?.()},0)},[r,a]),Ln=(0,m.useCallback)(()=>{if(Ne)return;const{isAtTop:ns}=a0(l.current);if(ns){x===0?Sr():kl();return}},[Ne,kl,x,Sr]),za=(0,m.useCallback)(()=>{if(Ne||He&&!ye.BI||lt)return;const{isAtBottom:ns}=a0(l.current);if(ns){qr();return}},[He,lt,Ne,qr]),jC=(0,m.useCallback)(()=>{const{isAtBottom:ns,isAtTop:Vn}=a0(l.current),Wn=document.documentElement.clientWidth===window.innerWidth;return(ns||Vn)&&Wn},[]),zse=(0,m.useCallback)(ns=>{!u.current?.contains?.(document.activeElement)&&!iC(ns.target)&&Ln()},[Ln]),Vse=(0,m.useCallback)(ns=>{!u.current?.contains?.(document.activeElement)&&!iC(ns.target)&&za()},[za]),AC=(0,m.useCallback)(ns=>{const{itemId:Vn}=ns.detail,Wn=oe.findIndex(Gse=>Gse.id===Vn);Wn===-1||Wn===x||(C((0,Fa.zP)(Wn>x?Jr.f.UP:Jr.f.DOWN)),Bs(Wn))},[Bs,C,x,oe]);(0,m.useEffect)(()=>(window.addEventListener(ms,AC),()=>{window.removeEventListener(ms,AC)})),(0,Fg.A)("ArrowUp",Un(),zse),(0,Fg.A)("ArrowDown",Un(),Vse),Ite(l.current,Ln,za,B+aC);const Wse=co("gradient",{visible:L});return(0,n.jsx)("div",{className:co({}),children:(0,n.jsx)("div",{className:Nte({transitioning:E}),id:"page-wrap",ref:l,tabIndex:"-1",children:(0,n.jsx)(No,{type:$e.y4,children:(0,n.jsx)(no,{type:$e.y4,children:(0,n.jsx)(oo,{children:(0,n.jsx)(Ta,{children:(0,n.jsxs)("div",{"data-lesson-id":fe?.id,children:[(0,n.jsxs)("div",{"aria-label":"Step controls",className:co("controls",{"touch-preview":Ne}),ref:u,role:"region",children:[(0,n.jsxs)("button",{"aria-hidden":x===0&&lo,"aria-disabled":x===0&&lo,className:co("prev-btn",{"touch-preview":Ne}),onClick:kl,type:"button",children:[(0,n.jsx)(k,{className:co("arrow-icon",{"touch-preview":Ne})}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),Ke&&(0,n.jsx)(Lte,{activeSlideIndex:x,blockNavigationStyle:xe,numberOfSlides:nt,onGoToCover:Sn,onSlideClick:np,previewType:s,slideDisabledState:ls}),(0,n.jsxs)("div",{className:co("next-btns"),children:[(0,n.jsxs)("button",{"aria-hidden":!en,"aria-disabled":!en,className:co("page-down-btn",{"touch-preview":Ne}),onClick:en?wl:void 0,ref:h,tabIndex:en?void 0:-1,type:"button",children:[(0,n.jsx)(te,{className:co("arrow-icon",{"touch-preview":Ne})}),(0,n.jsxs)("span",{className:"visually-hidden-always",children:["Scroll page down",!L&&(0,n.jsx)("span",{children:"(disabled because this is the bottom of the page)"}),He&&(0,n.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,n.jsxs)("button",{"aria-hidden":!Ht,"aria-disabled":lt,className:co("next-btn",{"touch-preview":Ne}),onClick:lt?void 0:qr,ref:p,tabIndex:He?-1:void 0,type:"button",children:[(0,n.jsx)(te,{className:co("arrow-icon",{"touch-preview":Ne})}),(0,n.jsxs)("span",{className:"visually-hidden-always",children:["Go to next step",lt&&(0,n.jsx)("span",{children:"(disabled until content is completed)"}),He&&(0,n.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,n.jsxs)("button",{"aria-hidden":!Wt,"aria-disabled":!Wt,className:co("restart-btn",{"touch-preview":Ne}),onClick:Wt?Sr:void 0,ref:f,tabIndex:He?void 0:-1,type:"button",children:[(0,n.jsx)(F,{className:co("restart-icon",{"touch-preview":Ne})}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Restart"})]})]})]}),(0,n.jsxs)(Uu,{onShouldRecognizeGesture:jC,onSwipeDown:Ln,onSwipeUp:za,children:[(0,n.jsx)("main",{"aria-describedby":"step-counter",ref:d,tabIndex:"0",children:(0,n.jsx)(ys.F,{children:(0,n.jsx)(ys.eB,{mountOnEnter:!0,nodeRef:g,onExited:Ns,onExiting:op,timeout:B,unmountOnExit:!0,children:ns=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{id:"step-counter",className:"visually-hidden-always",ref:g,children:`Step ${x+1} of ${nt}`}),(0,n.jsx)(pte,{onContinue:sp,prefersKeyboardNavigation:e,previewType:s,ref:c,slide:Ce,transitionState:ns,hasTransitioned:!E})]})},x)})}),(0,n.jsx)("div",{className:Wse})]})]})})})})})})})},Mte=(0,m.forwardRef)(Pte),cC=J("blocks-lesson-restart-button"),Dte=({className:t,onClick:e})=>{const s=cC.mix(t);return(0,n.jsx)("button",{className:s,onClick:e,type:"button",children:(0,n.jsx)(pp,{className:cC("icon")})})},kte=J("lesson-one-page-scroll"),wte=({previewType:t,prefersKeyboardNavigation:e,lessonProgress:s})=>{const o=(0,m.useRef)(),{lessons:r,...a}=(0,Me.DX)(),{lmsOptions:c={}}=a,d=(0,Me.d_)(),l=(0,ze.useLabelsMap)(),{match:u}=(0,ke.zy)(),h=(0,Oi.W)(),p=r[0],f=p?.id,g=S1(),v=p?.items||[],C=s?.isComplete&&!ye.BI,x=s?.isComplete&&ye.BI,S=c?.disableCoverPage,E=(0,m.useCallback)(()=>S?o.current?.scrollTo({top:0,behavior:Js()?"instant":"smooth"}):h.push("/"),[h,S]);return(0,n.jsx)("div",{className:kte(),children:(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:o,children:(0,n.jsx)(No,{type:$e.y4,children:(0,n.jsx)(no,{type:"blocks",children:(0,n.jsxs)(er,{children:[(0,n.jsx)(mg,{}),(0,n.jsx)(oo,{children:(0,n.jsx)(Ta,{children:(0,n.jsxs)("div",{"data-lesson-id":p?.id,children:[(0,n.jsx)(k5,{animateBlockEntrance:a.animateBlockEntrance,blocks:v,color:a.color,courseId:a.id,courseTitle:d,enableVideoPlaybackSpeed:a.enableVideoPlaybackSpeed,isFirstLesson:!0,isNavTypeStepped:!1,labels:l,lessonId:f,lessonProgress:s,loadMedia:!0,match:u,partnerContent:g,previewType:t,prefersKeyboardNavigation:e,publishedAt:a.publishedAt,tenantId:a.tenantId,type:a.type}),C&&(0,n.jsx)(Dte,{onClick:E}),x&&(0,n.jsx)(gm,{lessonId:f})]})})})]})})})})})},lC=J("microlearning-progress-summary"),Bte=J("page-wrap"),_te=({course:t,courseProgress:e,isStepped:s,lesson:o})=>{const r=(0,m.useRef)(),a=(0,m.useRef)(),[c,d]=(0,m.useState)(!1),l=lC("content",{stepped:s,mounted:c}).toString();return(0,tC.A)(()=>{const u=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:u}),d(!0)}),(0,n.jsxs)("div",{className:Bte(),id:"page-wrap",ref:r,children:[(0,n.jsx)(pm,{className:lC("previous").toString(),lessonId:o?.id,ref:a}),(0,n.jsx)($5,{contentClassName:l,course:t,courseProgress:e})]})},Ute=t=>{const{isProgressSummary:e,courseProgress:s,lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}=t,c=Mt(),d=(0,X.wA)(),u=(0,At.Vu)(c)?.id,h=c?.theme?.blockNavigationType===P.HC.STEPPED;return(0,R1.A)(()=>{e||((0,de.no)(u),d((0,v3.B)(u)))}),e?(0,n.jsx)(_te,{course:c,courseProgress:s,isStepped:h}):h?(0,n.jsx)(Mte,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}):(0,n.jsx)(wte,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a})},Hte=960,Xm=J("transcript-panel");function Fte(){const t=(0,X.wA)(),{transcript:e}=M1(),s=(0,m.useId)(),o=!!e,r=Xs(Hte),[a,c]=(0,m.useState)(0),[d,l]=(0,m.useState)(!1),[u,h]=(0,m.useState)(!1),p=(0,m.useRef)(!1),f=(0,m.useRef)(null),g=(0,m.useRef)(null),{announcePolite:v,clearAnnouncements:C}=Je(),x=(0,m.useRef)(null),S=(0,m.useRef)({panelHeight:0,startY:null,startHeight:null,startTime:null,velocity:null}),E=j=>{t(O3({})),j.stopPropagation(),j.preventDefault()},b=(0,m.useCallback)(j=>{const B=S.current.panelHeight,_=performance.now();h(!0);const k=te=>{const F=te-_,K=Math.min(F/300,1),Z=1-Math.pow(1-K,3),xe=B+(j-B)*Z;c(xe),S.current.panelHeight=xe,K<1?requestAnimationFrame(k):(h(!1),l(!1),S.current={startY:null,startHeight:null,startTime:null,panelHeight:null,velocity:null})};requestAnimationFrame(k)},[l,h,c]),L=(0,m.useCallback)(j=>{const{startTime:O,startY:B,startHeight:_}=S.current;if(!r||B===null)return;const k=B-(j?.clientY??j?.touches?.[0]?.clientY??0),te=_+k;if(c(te),S.current.panelHeight=te,O!==null){const F=performance.now()-O,K=k/F;S.current.velocity=K}},[r]),I=(0,m.useCallback)(j=>{const{velocity:O}=S.current;if(!O)return;Object.assign(S.current,{startY:null,startHeight:null,startTime:null}),l(!1);const B=window.innerHeight*.66;let _;Math.abs(O)>.5?_=O>0?window.innerHeight:150:_=a>=B?window.innerHeight:150,b(_),j instanceof MouseEvent&&(window.removeEventListener("mousemove",L),window.removeEventListener("mouseup",I))},[b,a,L]),N=(0,m.useCallback)(j=>{!r||g.current.contains(j.target)||f.current.contains(j.target)||(Object.assign(S.current,{startY:j?.clientY??j?.touches?.[0]?.clientY??null,startHeight:x.current?.clientHeight??0,startTime:performance.now()}),l(!0),j.nativeEvent instanceof MouseEvent&&(window.addEventListener("mousemove",L),window.addEventListener("mouseup",I)))},[L,I,r,l]);(0,m.useEffect)(()=>{let j;const O=()=>{x?.current?.style&&(x.current.style.transition="none",x.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(k=>{k.style.transition="none"}))},B=()=>{clearTimeout(j),j=setTimeout(()=>{x?.current?.style&&(x.current.style.transition="",x.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(k=>{k.style.transition=""}))},200)};return window.addEventListener("resize",O),window.addEventListener("resize",B),()=>{window.removeEventListener("resize",O),window.removeEventListener("resize",B),clearTimeout(j)}},[]),(0,m.useEffect)(()=>{!o&&p.current&&c(0),p.current=o},[o]),(0,m.useEffect)(()=>(v(e),()=>{C()}),[v,C,e]);const R={role:"button",tabIndex:0,onMouseDown:N,onTouchStart:N,onTouchEnd:I,onTouchMove:L};return(0,n.jsx)(ys.B1,{unmountOnExit:!0,in:o,timeout:300,classNames:"transcript-panel",nodeRef:x,children:(0,n.jsxs)("aside",{ref:x,className:M()(Xm({isOpen:o,isAnimatingMobileSwipe:u,isDragging:d})),style:r&&o?{height:`${a/10}rem`,minHeight:a>0?"33vh":void 0}:{},role:"region","aria-labelledby":s,"aria-hidden":!o,tabIndex:-1,children:[(0,n.jsxs)("header",{...r?R:{},children:[(0,n.jsx)("h3",{ref:f,id:s,children:"Audio transcript"}),(0,n.jsx)(Ia.ZH,{ref:g,className:Xm("close-button"),icon:(0,n.jsx)(Lt,{name:"close"}),layout:"icon",variant:"tertiary",onClick:E,"aria-label":"Close audio transcript panel"})]}),(0,n.jsx)("section",{className:Xm("transcript-text"),children:e})]})})}const i0=Hc()(2,t=>t==="progress-summary"?We()(1/0):YI(t)),zte=Sa()(Ue()("type","section")),Vte=({course:t,search:e})=>St()(st()("lessons",e.lessons),st()("lessonsOnly",zte(e.lessons)))(t);class Wte extends ie().Component{static propTypes={children:A().node,course:A().object,courseProgress:A().object,labels:Qi.isRequired,lessons:A().array,location:A().object.isRequired,match:A().object.isRequired};static get defaultProps(){return{course:{},lessons:[]}}constructor(e){super(e);const{lessons:s,match:{params:o}}=e;this.state={activeSections:s.filter(r=>r.type==="section").map(r=>r.id),isProgressSummary:ye.BI&&o.id==="progress-summary",isPreviewLesson:o.mode==="preview-lesson",lastScreen:null,menuDisabled:!1,selectedIndex:i0(o.id)(s)},this.root=window,this.handleNavHover=this.handleNavHover.bind(this),this.handleNavigate=this.handleNavigate.bind(this),this.getNavigateDirection=this.getNavigateDirection.bind(this),this.handleNavigateTransitionEnd=this.handleNavigateTransitionEnd.bind(this),this.handleStorylineFullscreen=this.handleStorylineFullscreen.bind(this),this.handleExpiredQuiz=this.handleExpiredQuiz.bind(this),this.getLessonProgress=this.getLessonProgress.bind(this)}UNSAFE_componentWillReceiveProps(e){if(e.match.params.id!==this.props.match.params.id){const s=ot()(ZI(e.lessons,e.match.params.id),this.state.activeSections),o=ye.BI&&e.match.params.id==="progress-summary";this.setState({activeSections:s,isProgressSummary:o})}}componentWillUnmount(){this.root.removeEventListener("resize",this.resizeRef)}getNavigateDirection(){const{match:{params:e}}=this.props,{selectedIndex:s}=this.state;return i0(e.id)(this.props.lessons)<s?"page-transition-back":"page-transition"}handleFocusNewPage=()=>{const{course:e}=this.props;e.type===$e.y4||document.querySelector("h1")?.focus({preventScroll:!0})};handleNavigate(e){const{lessons:s}=this.props,{isProgressSummary:o,selectedIndex:r}=this.state,a=i0(e)(s);o?this.forwardTransition=!1:e==="progress-summary"?this.forwardTransition=!0:this.forwardTransition=r<a,this.setState({selectedIndex:a})}handleNavigateTransitionEnd(){const{match:{params:e}}=this.props,s=i0(e.id)(this.props.lessons);this.setState({selectedIndex:s})}handleStorylineFullscreen(e){this.setState({menuDisabled:e,menuIsOpen:!e})}handleNavHover(e){this.setState({isRestrictedNavHovering:e})}getLessonProgress(){const{courseProgress:e,match:s}=this.props;return e?.lessons?.[s.params.id]||{}}isCurrentItem(e,s){return e.type==="DRAW_FROM_QUESTION_BANK"?e.id===s.id.split("-")[0]:e.id===s.id}handleExpiredQuiz(){const{getL10nRecursive:e,lesson:s,advanceQuizLessonToEnd:o,submitQuizAnswer:r}=this.props,a=s?.settings||{},{passToContinue:c}=a,d=tt()(-1,"retryCount",a),l=this.getLessonProgress(),u=Object.values(l?.items)?.filter(v=>v.isComplete!==!0),h=tt()(0,"retryAttempts",l),p=parseInt(d,10),f=parseInt(h,10),g=p===f;u.map(v=>{let C=s?.items?.find(S=>this.isCurrentItem(S,v));if(C.type==="DRAW_FROM_QUESTION_BANK"){const S=v.id.split("-")[1];C=C.questions.find(E=>E.id===S)}const x=e({duration:0,id:s.id,isCorrect:!1,isUnfinished:!0,item:C,itemProgress:v,retryAttempts:h,title:s.title});(0,de.bb)(x),r({finalRetryAttempt:g,isCorrect:!1,itemId:v.id,lessonId:s.id,passToContinue:c})}),o(s.id)}render(){const{course:e,courseProgress:s,didNavigate:o,isEntering:r,isExiting:a,labels:c,isMobileHeader:d,lessons:l,lesson:u,location:h,match:p,partnerContent:f,previewType:g,search:v,sessionPreferences:C,setQuizLessonTimeRemaining:x,themeId:S}=this.props,{isPreviewLesson:E,isProgressSummary:b,isRestrictedNavHovering:L}=this.state,I=Vte({course:e,search:v}),N=e.type===$e.y4,j=N&&e.theme.blockNavigationType===P.HC.STEPPED?"-slide":"",O=`lesson--entering${j}`,B=`lesson--exiting${j}`,_=M()("lesson",{[O]:r,[B]:a,"lesson--preview":E}),k=this.getLessonProgress(),te={allowRestrictedTooltip:!L,course:v.active&&!Yt()(v.lessons)?I:e,courseProgress:s,didNavigate:o,handleNavigate:this.handleNavigate,handleStorylineFullscreen:this.handleStorylineFullscreen,isMobileHeader:d,isProgressSummary:b,labels:c,lessonProgress:k,match:p,navigateDirection:this.getNavigateDirection,onPageReady:this.handleFocusNewPage,onNavMouse:this.handleNavHover,onNavigateTransitionEnd:this.handleNavigateTransitionEnd,partnerContent:f,previewType:g,sessionPreferences:C,themeId:S},F=b?{courseProgress:s,lessons:l}:{},K=u?.settings?.timer;return(0,n.jsxs)(DF,{currentLessonId:s.currentLesson,handleExpiredQuiz:this.handleExpiredQuiz,isTimedQuiz:K,courseProgress:s,setQuizLessonTimeRemaining:x,timerDuration:u?.settings?.timerDuration,children:[(0,n.jsxs)("div",{className:"page-lesson-wrap",children:[!N&&(0,n.jsx)(mT,{}),(0,n.jsxs)("div",{className:"page-lesson",children:[(0,n.jsx)(Fte,{}),(0,n.jsx)(tj,{mode:"readonly",children:(0,n.jsx)("div",{className:_,"data-lesson":!0,ref:Z=>this.node=Z,children:(0,n.jsx)("div",{className:"lesson__content",children:(0,n.jsx)("div",{className:"page-view page-view--visible",children:(0,n.jsx)($W,{isPreviewLesson:E,children:N?(0,n.jsx)(Ute,{courseProgress:s,isProgressSummary:b,lessonProgress:k,prefersKeyboardNavigation:C.prefersKeyboardNavigation,previewType:g}):(0,n.jsx)(LV,{isPreviewLesson:E,children:(0,n.jsx)(Jz,{...te,...F},h.pathname)})})})})})})]})]}),(0,n.jsx)(L1,{})]})}}function Gte(){const t=vo();return(e,s)=>{const o=jt()(["match","params","id"],s);return{lesson:t(o,e)}}}const Kte={advanceQuizLessonToEnd:Qs.YC,submitQuizAnswer:Qs.kK,setQuizLessonTimeRemaining:Qs.hy},$te=Se()((0,X.Ng)(null,Kte),(0,X.iE)(Gte),O0(480,"isMobileHeader","Mobile"),cf)(Wte),Jm=t=>{window.parent.postMessage({type:"preview:lessonChange",data:t})},Qte=V5($te);class Zte extends ie().Component{constructor(e){super(e),this.state={isEntering:!1,isExiting:!1}}displayFlex(e){e.style.display="flex"}componentDidMount(){const e=document.querySelector(".page__content");e&&e.classList.add("page__content--appear");const s=this.props.match.params.id;Jm(s)}componentDidUpdate(e){const s=this.props.match.params.id,o=e.match.params.id;s!==o&&Jm(s)}componentDidEnter(){this.setState({isEntering:!1})}componentWillEnter(e){this.setState({isEntering:!0},()=>{this.willEnterTimeout=setTimeout(e,P.WQ)})}componentWillExit(e){this.setState({isExiting:!0},()=>{this.willExitTimeout=setTimeout(e,P.WQ)}),Jm(null)}componentWillUnmount(){clearTimeout(this.willEnterTimeout),clearTimeout(this.willExitTimeout),clearTimeout(this.navButtonTimeout)}render(){const{isEntering:e,isExiting:s}=this.state;return(0,n.jsx)(iU,{isLessonEntering:e,isLessonExiting:s,children:(0,n.jsx)(Qte,{isEntering:e,isExiting:s,...this.props})})}}const qm=Zte;var Yte=i(59288);class Xte extends Yte.Component{render(){return(0,n.jsx)(ke.rd,{to:`${this.props.to}`})}}const Jte=t=>{const{location:e,course:s}=t,{path:o}=(0,ke.W5)(),r=e.pathname.split("/")[1],{lmsOptions:a={}}=s,c=a?.disableCoverPage,d=s.lessonsOnly[0]?.id;return(0,n.jsx)(ys.F,{component:"div",className:"transition-group",children:(0,n.jsx)(T1,{children:(0,n.jsxs)(p3,{location:e,children:[(0,n.jsx)(ya,{exact:!0,path:"/lessons/:id",component:qm,childProps:t}),(0,n.jsx)(ya,{path:"/lessons/:id/:mode",component:qm,childProps:t}),c?(0,n.jsx)(Xte,{to:`${o}lessons/${d}`}):(0,n.jsx)(ya,{exact:!0,path:"/",component:g3,childProps:t}),(0,n.jsx)(ya,{exact:!0,path:"/:mode",component:g3,childProps:t})]})},r)})},ep=J("one-page-cover-info");function dC({htmlIdTitle:t}){const e=ci("title");return(0,n.jsxs)("div",{className:ep(),"data-change-path":e,children:[(0,n.jsx)(hg,{className:ep("title").toString(),htmlId:t}),(0,n.jsx)(dg,{className:ep("authors").toString()})]})}dC.propTypes={htmlIdTitle:A().string.isRequired};const qte=Dt("OnePageCoverInfo",dC);function ese(t){const e=(0,a1.A)(({forwardedRef:o,...r})=>(0,n.jsx)(t,{...r,ref:o})),s=(0,m.forwardRef)((o,r)=>(0,n.jsx)(e,{...o,forwardedRef:r}));return s.displayName=`withRouterRef(${t.displayName||t.name})`,s}const c0=J("one-page-cover"),tse=J("cover");class sse extends m.Component{constructor(e){super(e),this.state={entering:!1,exiting:!1},this.refLink=(0,m.createRef)(),this.refMain=(0,m.createRef)()}componentDidMount(){n3(),this.refMain.current?.focus?.(),document.addEventListener("keyup",this.onKeyUp),document.addEventListener("wheel",this.onWheel,{passive:!0})}componentDidEnter(){this.setState({entering:!1}),this.refMain.current?.focus?.()}componentWillEnter(e){this.setState({entering:!0},()=>{const s=Js()?.01:P.WQ;this.willEnterTimeout=setTimeout(e,s)})}componentWillExit(e){this.setState({exiting:!0},()=>{const s=Js()?.01:P.WQ;this.willExitTimeout=setTimeout(e,s)})}componentWillUnmount(){clearTimeout(this.willEnterTimeout),clearTimeout(this.willExitTimeout),document.removeEventListener("keyup",this.onKeyUp),document.removeEventListener("wheel",this.onWheel,{passive:!0})}getLessonPath=()=>{const e=this.props.lesson?.id;return e?(0,_t.p1)(e):null};transitionToLessonContent=()=>{const e=this.getLessonPath();e!=null&&this.props.history.push(e)};onClickStartArea=e=>{this.refLink.current?.contains?.(e.target)||this.props.history.push(this.getLessonPath())};onKeyUp=e=>{const{entering:s,exiting:o}=this.state;s||o||(e.key==="ArrowDown"||e.key==="ArrowRight")&&(document.removeEventListener("keyup",this.onKeyUp),this.transitionToLessonContent())};onWheel=e=>{const{entering:s,exiting:o}=this.state;Fu(this.props.previewType)||s||o||e.deltaY>rC&&(document.removeEventListener("wheel",this.onWheel,{passive:!0}),this.transitionToLessonContent())};render(){const{props:{course:e},state:{entering:s,exiting:o}}=this,r=e?.coverPageType===P.BL.WHITE,a=e?.coverPageType===P.BL.IMAGE,c=e?.coverPageType===P.BL.ACCENT,d=e?.theme?.blockNavigationType===P.HC.STEPPED,l=e?.theme?.coverImageColor??P.df.DARK,u="title",h=d?"slide":"fade",p=`entering-${h}`,f=`exiting-${h}`,v=`overlay-${l?.toLowerCase()}`,C=c0("wrapper",{[p]:s,[f]:o,[v]:a,accent:c,image:a,white:r}).mix(tse("header-content"));return(0,n.jsxs)(Uu,{onSwipeUp:this.transitionToLessonContent,children:[(0,n.jsxs)("main",{className:C,ref:this.refMain,tabIndex:"-1",children:[(0,n.jsx)(qte,{htmlIdTitle:u}),d&&(0,n.jsx)("div",{className:"visually-hidden-always",children:"To quickly navigate between steps, use the up and down arrow keys or the step controls region found on subsequent steps."}),(0,n.jsx)("div",{className:c0("start-wrapper"),onClick:this.onClickStartArea,children:(0,n.jsx)(Qn,{"aria-label":"Start",className:c0("start-link"),ref:this.refLink,to:this.getLessonPath(),children:(0,n.jsx)(Lt,{className:c0("start-icon"),name:"arrow-down"})})}),a&&(0,n.jsx)(_0,{})]}),(0,n.jsx)(L1,{})]})}}function nse(t){const e=Ut(t),s=(0,At.Vu)(e);return{course:e,lesson:s}}const uC=Se()(ese,(0,X.Ng)(nse,null,null,{forwardRef:!0}))(sse);var ose=i(59288);class hC extends ose.Component{render(){return(0,n.jsx)(ke.rd,{to:`${this.props.to}`})}}const rse=t=>{const{location:e,course:s}=t,o=e.pathname.split("/")[1],a={history:(0,Oi.W)(),...t},{path:c}=(0,ke.W5)(),{lmsOptions:d={}}=s,l=d?.disableCoverPage,u=s.lessonsOnly[0].id;return(0,n.jsx)(ys.F,{component:"div",className:"transition-group",children:(0,n.jsx)(T1,{children:(0,n.jsxs)(p3,{location:e,children:[(0,n.jsx)(ya,{exact:!0,path:"/lessons/:id",component:qm,childProps:a}),l?(0,n.jsx)(hC,{to:`${c}lessons/${u}`}):(0,n.jsx)(ya,{exact:!0,path:"/",component:uC}),l?(0,n.jsx)(hC,{to:`${c}lessons/${u}/`}):(0,n.jsx)(ya,{exact:!0,path:"/:mode",component:uC})]})},o)})};class ase extends ie().Component{constructor(e){super(e),this.passwordRef=(0,m.createRef)(),this.state={failAttempt:!1,shouldShake:!1}}static propTypes={onSubmit:A().func.isRequired,failAttempt:A().bool.isRequired};componentDidMount(){this.dialog.addEventListener("animationend",this.handleRemoveAnimationEnd.bind(this))}UNSAFE_componentWillReceiveProps({failAttempt:e}){const{shouldShake:s}=this.state;this.setState({failAttempt:e&&s})}componentWillUnmount(){this.dialog.removeEventListener("animationend",this.handleRemoveAnimationEnd.bind(this))}handleRemoveAnimationEnd(){this.setState({failAttempt:!1,shouldShake:!1})}onSubmitPassword(e){e.preventDefault();const{onSubmit:s}=this.props;this.setState({shouldShake:!0},()=>{s(this.passwordRef.current)})}render(){const{isOnePage:e}=this.props,{failAttempt:s}=this.state,o=M()("brand--border","share-password-dialog",{"fail-password":s}),r=e?"You need a password to view this microlearning. If you don\u2019t know it, ask the person who shared this with you.":"You need a password to view this course. If you don\u2019t know it, ask the person who shared this with you.";return(0,n.jsxs)("div",{className:o,ref:a=>{this.dialog=a},children:[(0,n.jsx)("h1",{className:"heading",children:"Enter Password"}),(0,n.jsx)("p",{className:"instructions",children:r}),(0,n.jsxs)("form",{onSubmit:this.onSubmitPassword.bind(this),children:[(0,n.jsx)("label",{htmlFor:"share-password",className:"label",children:"password"}),(0,n.jsx)("input",{id:"share-password",ref:this.passwordRef,type:"password",className:"input"}),(0,n.jsx)("div",{className:"dialog__toolbar",children:(0,n.jsx)("input",{type:"submit",className:"button brand--background",value:"View"})})]})]})}}const ise=t=>({isOnePage:Bt(t)}),cse=(0,X.Ng)(ise)(ase),Dl=J("app-header"),lse=({children:t,className:e="",isAIAssistantEnabled:s=!1,localesDropdown:o=null,menuButton:r=null,snapshotDropdown:a=null,title:c})=>{const d=Dl({v2:s}).mix(e),l=!!(a||o);return(0,n.jsx)("div",{children:(0,n.jsxs)("div",{id:"app-header",className:d,dir:"ltr",children:[r,(0,n.jsxs)("div",{className:Dl("title-dropdowns"),children:[c&&(0,n.jsx)("div",{className:Dl("title"),"data-testid":"AppHeaderTitle",children:(0,n.jsx)(wn,{value:c})}),l&&(0,n.jsxs)("div",{className:Dl("dropdowns"),children:[a,o]})]}),(0,n.jsx)("div",{className:Dl("btn-group"),"data-testid":"AppHeaderButtonGroup",children:t})]})})},Tr=J("app-header"),nhe=({children:t})=>jsx("div",{className:Tr("btn-group"),children:t}),dse=({disabled:t,onClick:e})=>(0,n.jsx)("button",{className:Tr("promo-btn"),disabled:t,onClick:e,type:"button",children:"New"}),mC=({children:t,disabled:e=!1,done:s=!1,onClick:o=()=>{},tooltipText:r="",icon:a=null,isNewPromo:c=!1,el:d="button",href:l=void 0,external:u=!1,capitalize:h=!0,...p})=>{const f=(0,Oi.W)(),g=(0,m.useCallback)(async C=>{e||(o&&await o(C),l&&(u?window.location.href=l:f.push(l)))},[f,l,o,e,u]),v=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Od,{el:l?"a":d,disabled:e,header:!s,headerDone:s,onClick:g,style:h?null:{textTransform:"none",fontWeight:600,fontSize:"1.4rem",letterSpacing:0},...p,children:t}),c&&(0,n.jsx)(dse,{disabled:e,onClick:g}),a]});return e&&r?(0,n.jsxs)(G6,{"data-testid":"AppHeaderButtonTooltipContainer",children:[v,(0,n.jsx)(K6,{className:"app-header__tooltip-button",side:"left",children:r})]}):v};mC.propTypes={children:A().node,disabled:A().bool,done:A().bool,el:A().string,href:A().string,onClick:A().func,tooltipText:A().string,dataBa:A().string};const ohe=({title:t})=>jsx("div",{className:Tr("title"),children:t}),rhe=()=>jsx("div",{className:Tr("divider")}),ahe=({href:t,label:e,onClick:s,xhref:o,...r})=>{const a=useNavigate(),c=useCallback(async d=>{if(o||d.preventDefault(),s)return s();t&&a.push(t)},[t,o,a,s]);return jsx("div",{className:Tr("menu-btn"),...r,children:jsx("a",{className:Tr("menu-close"),"aria-label":e,onClick:c,href:o,children:jsx(ChevronLeft,{})})})},ihe=({onClick:t,label:e,...s})=>jsx("div",{className:Tr("menu-btn"),children:jsx(Button,{icon:"up-level-2",onClick:t,ariaLabel:e,...s})}),che=({children:t,...e})=>jsx("div",{className:Tr("owner-label"),...e,children:t}),lhe=({children:t,className:e})=>jsx("div",{className:Tr("button-spacer").mix(e),children:t}),dn=J("curtain");let pC;const use=({loadingText:t,showHeader:e,status:s,labelCurtainLoading:o="Your content is loading.",labelCurtainOffline:r="Your computer is offline.",labelCurtainOfflineReconnecting:a="Attempting to reconnect\u2026",labelCurtainSessionTimedOut:c="Your session has timed out.",labelCurtainSessionTimedOutRestart:d="Click refresh to restart your session.",labelCurtainSessionTimedOutRefresh:l="Refresh",labelCurtainSomethingWrong:u="Something went wrong.",labelCurtainSomethingWrongTryAgain:h="Click to refresh and try again.",labelCurtainSomethingWrongRefresh:p="Refresh"})=>{const[f,g]=(0,m.useState)(!1),v=()=>g(!0),C=Ue()("status","error"),x=Ue()("status","fatalError"),S=kn()(C,Ue()("reconnectFailed",!0));return(0,m.useEffect)(()=>(pC=setTimeout(v,1e4),()=>{clearTimeout(pC)}),[]),(0,m.useEffect)(()=>{if(s==="error"){const b=new Error("There was a socket connection error. The renderReconnect curtain was displayed");l5.y.logger.error(b.message,b)}},[s]),Rs()([[x,mse],[S,fse],[C,pse],[hn(),hse(t)]])({showHeader:e,status:s,reconnectFailed:f,labelCurtainLoading:o,labelCurtainOffline:r,labelCurtainOfflineReconnecting:a,labelCurtainSessionTimedOut:c,labelCurtainSessionTimedOutRestart:d,labelCurtainSessionTimedOutRefresh:l,labelCurtainSomethingWrong:u,labelCurtainSomethingWrongTryAgain:h,labelCurtainSomethingWrongRefresh:p})},fC=()=>window.location.reload(!0),hse=t=>({showHeader:e,labelCurtainLoading:s})=>(0,n.jsx)("div",{className:dn("container",{"show-header":e}),children:(0,n.jsxs)("div",{className:dn(),children:[(0,n.jsx)("div",{className:dn("spinner")}),(0,n.jsx)("div",{className:dn("text"),children:t||s})]})}),mse=({showHeader:t,labelCurtainSomethingWrong:e,labelCurtainSomethingWrongTryAgain:s,labelCurtainSomethingWrongRefresh:o})=>(0,n.jsx)("div",{className:dn("container",{"show-header":t}),children:(0,n.jsxs)("div",{className:dn(),children:[(0,n.jsx)("div",{className:dn("title"),children:e}),(0,n.jsx)("div",{className:dn("description"),children:s}),(0,n.jsx)(Od,{headerDone:!0,onClick:fC,children:o})]})}),pse=({showHeader:t,labelCurtainOffline:e,labelCurtainOfflineReconnecting:s})=>(0,n.jsx)("div",{className:dn("container",{"show-header":t}),children:(0,n.jsxs)("div",{className:dn(),children:[(0,n.jsx)("div",{className:dn("spinner",{reconnect:!0})}),(0,n.jsx)("div",{className:dn("title"),children:e}),(0,n.jsx)("div",{className:dn("description"),children:s})]})}),fse=({showHeader:t,labelCurtainSessionTimedOut:e,labelCurtainSessionTimedOutRestart:s,labelCurtainSessionTimedOutRefresh:o})=>(0,n.jsx)("div",{className:dn("container",{"show-header":t}),children:(0,n.jsxs)("div",{className:dn(),children:[(0,n.jsx)("div",{className:dn("title"),children:e}),(0,n.jsx)("div",{className:dn("description"),children:s}),(0,n.jsx)(Od,{headerDone:!0,onClick:fC,children:o})]})}),gC=(0,m.memo)(use);var gse=i(61170);function vse({children:t,locale:e,...s}){const o=(0,ke.zy)(),r=(0,It.D_)(),a=(0,m.useMemo)(()=>{const c=e===r?"":e,d=new URLSearchParams(o.search);return d.set("locale",c),{...o,search:d.toString()}},[r,e,o]);return(0,n.jsx)(Qn,{...s,to:a,children:t})}const sr=J("locales-dropdown"),Cse=({backToStackCourseId:t,currentLocale:e,defaultLocale:s,locales:o,message:r,onChange:a,optionType:c,showMessageIndicator:d})=>{const l=(0,m.useRef)(null),u=(0,m.useRef)(null),[h,p]=(0,m.useState)(!1),[f,g]=(0,m.useState)(!1),v=(0,m.useMemo)(()=>o.filter(E=>E!==s),[s,o]);(0,m.useLayoutEffect)(()=>{h&&f&&(l.current?.querySelector(`[data-locale="${e}"]`)?.focus(),g(!1))},[h,f,e]),(0,m.useEffect)(()=>{const E=b=>{yn(b)&&(u.current?.focus(),p(!1)),cd(b)&&setTimeout(()=>{l.current.contains(document.activeElement)||p(!1)},0)};return h&&document.addEventListener("keydown",E),()=>{document.removeEventListener("keydown",E)}},[h]);const C=(0,m.useCallback)(E=>{!h&&document.activeElement===E.currentTarget&&g(!0),p(!h)},[h]),x=(0,m.useCallback)(E=>{h&&!u.current?.contains(E?.target)&&p(!1)},[h]);(0,gse.A)(l,x),(0,m.useEffect)(()=>{const E=()=>setTimeout(()=>{document.activeElement.tagName==="IFRAME"&&x()},0);return window.addEventListener("blur",E),()=>window.removeEventListener("blur",E)},[x]);const S=(0,m.useCallback)(E=>{document.activeElement===E.currentTarget&&u.current?.focus(),p(!1),a?.(E.currentTarget.getAttribute("data-locale"))},[a]);return(0,n.jsxs)("div",{className:sr({isOpen:h}),children:[(0,n.jsx)("div",{className:sr("trigger-wrap"),children:(0,n.jsxs)("button",{className:sr("trigger"),onClick:C,ref:u,type:"button",children:[d&&(0,n.jsx)("div",{className:sr("message-indicator")}),(0,n.jsx)(Lt,{name:"globe"}),kd(e),(0,n.jsx)(Lt,{name:"chevron-down"})]})}),(0,n.jsxs)("div",{className:sr("contents"),ref:l,children:[r,(0,n.jsx)("div",{className:sr("grouping-header"),children:"Source"}),(0,n.jsx)(vC,{checked:s===e,locale:s,onClick:S,type:c}),(0,n.jsx)("div",{className:sr("grouping-header"),children:"Translations"}),v.map(E=>(0,n.jsx)(vC,{checked:E===e,locale:E,onClick:S,type:c},E)),t&&(0,n.jsx)("a",{className:sr("stack-button"),href:`/manage/locales/${t}`,children:"Back to Stack"})]})]})},vC=({checked:t,locale:e,onClick:s,type:o})=>o==="link"?(0,n.jsx)(vse,{className:sr("option",{checked:t}),"data-locale":e,locale:e,onClick:s,children:kd(e)},e):(0,n.jsx)("button",{className:sr("option",{checked:t}),"data-locale":e,onClick:s,type:"button",children:kd(e)},e),xse=({hideBackToStack:t,...e})=>{const s=(0,Me.DX)(),{currentLocale:o}=(0,xs.nY)(),r=(0,It.jc)(),a=(0,It.D_)(),c=t?void 0:s?.id,d=(0,m.useMemo)(()=>r.map(({locale:l})=>l),[r]);return(0,n.jsx)(Cse,{backToStackCourseId:c,currentLocale:o,defaultLocale:a,locales:d,optionType:"link",...e})},CC=window.location.origin,Ese=1e3,Tse="course:ready",xC="localizedSharePreview:ready",Sse="preview:selectLocale",tp="localizedSharePreview:toggleCurtain",EC="localizedSharePreview:togglePreview",rc=J("localized-share-preview"),ac=!!window.frameElement,TC=t=>(0,_s.HX)(t)&&(0,de.GS)(),Lse=t=>TC(t)&&!ac,bse=(t,e)=>window.parent?.postMessage({type:t,data:e});let SC=null;const yse=({children:t})=>{const e=(0,X.wA)(),s=(0,Oi.W)(),o=(0,ke.zy)(),{currentLocale:r,setCurrentLocale:a}=(0,xs.nY)(),c=(0,It.D_)(),d=Kn(),{hasPassword:l}=Mt()??{},u=!!l||(0,de.og)(),h=(0,m.useRef)(null),[p,f]=(0,m.useState)(!1),[g,v]=(0,m.useState)(!1),[C,x]=(0,m.useState)(!u),S=(0,m.useMemo)(()=>`${CC}/share/${window.shareId}#/?locale=${r}`,[]),[E,b]=(0,m.useState)(null),[L,I]=(0,m.useState)(r),[N,R]=(0,m.useState)(!1),[j,O]=(0,m.useState)(!ac),B=(k,te)=>h.current?.contentWindow.postMessage({type:k,data:te});(0,m.useEffect)(()=>{ac||B(Sse,r)},[r]),(0,m.useEffect)(()=>{ac&&(bse(xC),setTimeout(()=>R(!0),0))},[]),(0,m.useEffect)(()=>{const k=te=>{if(te.origin!==CC)return;const K=te.data?.type,Z=te.data?.data;if(ac)switch(K){case tp:{O(Z);break}case EC:{Z?(I(r),b(o),e((0,sl.Wp)(!0)),a(c),s.replace("/")):(e((0,sl.Wp)(!1)),a(L),s.replace(E)),document.querySelector(".cover")?.scrollTo(0,0),document.querySelector(".page-wrap")?.scrollTo(0,0);break}}else switch(K){case Tse:{O(!1);break}case xC:{x(!0);break}}};return window.addEventListener("message",k),()=>{window.removeEventListener("message",k)}},[c,e,s,r,o,L,E,a]);const _=(0,m.useCallback)(()=>{const k=!p;clearTimeout(SC),v(!0),B(tp,!0),SC=setTimeout(()=>{v(!1),B(tp,!1),f(k)},Ese),setTimeout(()=>{B(EC,k)},0)},[p]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:rc("curtain",{hide:!j}),children:(0,n.jsx)(gC,{})}),ac?N&&t:(0,n.jsxs)("div",{className:rc(),children:[C&&(0,n.jsx)(lse,{className:rc("header"),localesDropdown:!p&&!g&&(0,n.jsx)(xse,{hideBackToStack:!0}),title:d,children:(0,n.jsx)(mC,{capitalize:!1,className:rc("preview-button"),disabled:g,done:!0,onClick:_,children:p?"Close Learner Preview":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Lt,{className:rc("preview-button-icon"),name:"play-regular"}),"Preview as Learner"]})})}),(0,n.jsx)("iframe",{"aria-label":"Course preview",allowFullScreen:!0,className:rc("iframe"),ref:h,src:S})]})]})},LC=Object.assign(document.createElement("div"),{id:"portal"});function bC(t){(t??document.body).appendChild(LC),LC.style.display=t?"":"none"}bC();const Ise=(t,e)=>!(t==="firstLesson"&&e.includes("/lessons/"))&&!(t==="cover"&&(e==="/"||e==="/preview")),Nse=t=>["preview:navigate","preview:overlayNavClose","preview:scrollto","preview:showLessonNavNext","preview:showLessonNavPrev","preview:themeUpdate","preview:update","preview:navOpen","preview:navClose","preview:replace","preview:changeset","preview:selectLocale",bn.FOCUS,bn.TOGGLE,bn.CLEAR,bn.TRANSLATION_HOVERED,bn.TRANSLATION_HOVER_CLEAR].includes(t),jse=t=>t===window.location.origin||t==="articulate.com"||t.endsWith(".articulate.com"),Ase=({course:t,fonts:e,l10n:s})=>()=>((0,X.JD)((0,Mc.V7)({course:t,fonts:e,l10n:s})),Ci().Resolved()),Rse=()=>(window.parent.postMessage({type:"preview:themeUpdateComplete"},window.location.origin),Ci().Resolved()),Ose=({course:t,fonts:e,l10n:s})=>Ci()((o,r)=>{(0,uS.U)(e,r)}).chain(Ase({course:t,fonts:e,l10n:s})).chain(Rse);class yC extends m.Component{constructor(e){super(e),this.state={didNavigate:!1,previewType:"",failAttempt:!1,scrollTo:null,isInvalidPassword:!0},this.onSharePasswordSubmit=this.onSharePasswordSubmit.bind(this),this.onFavoriteAdded=this.onFavoriteAdded.bind(this),this.onFavoriteRemoved=this.onFavoriteRemoved.bind(this),this.isRTLEnabled=this.isRTLEnabled.bind(this),this.updateRTL=this.updateRTL.bind(this),this.handleMessage=this.handleMessage.bind(this),window.targetMode=D4({locale:e.currentLocale})}UNSAFE_componentWillMount(){const{l10n:e}=this.props;nn.isIe11&&document.documentElement.classList.add("ie11"),nn.isSafari9&&document.documentElement.classList.add("safari9"),nn.isIphoneSafari&&document.documentElement.classList.add("iphone-safari"),nn.isSafari&&this.props.match.params.mode==="iframe"&&BT().enable(),window.addEventListener("message",this.handleMessage),window.parent.postMessage({type:"ready"},"*"),window.parent.postMessage({type:bn.STATUS,data:!!window.targetMode},"*"),(0,de.xr)()&&window.parent.postMessage({type:"preview:snapshotLoaded",data:{defaultLocale:e?.defaultLocale,locales:e?.locales?.map(({locale:s})=>s)}}),bS(),this.updateRTL()}componentDidMount(){const{currentLocale:e,languageCode:s}=this.props;document.documentElement.lang=e??s,this.removeRouteListener=this.props.history.listen(()=>{this.setState({didNavigate:!0})}),(0,ht.on)("favoriteAdded",this.onFavoriteAdded),(0,ht.on)("favoriteRemoved",this.onFavoriteRemoved),document.addEventListener("click",()=>{window.parent.postMessage("coursePreviewIframeClicked","*")})}updateConnectionStatus(e){(0,X.JD)((0,Y2.zq)(e))}componentDidUpdate(){const{currentLocale:e,languageCode:s}=this.props;document.documentElement.lang=e??s,this.updateRTL(),this.state.didNavigate&&setTimeout(()=>{this.setState({didNavigate:!1})},0)}componentWillUnmount(){this.removeRouteListener(),window.removeEventListener("message",this.handleMessage),(0,ht.AU)("favoriteAdded",this.onFavoriteAdded),(0,ht.AU)("favoriteRemoved",this.onFavoriteRemoved)}isRTLEnabled(){const{course:e,l10n:s,currentLocale:o}=this.props;return(0,dS.V)({course:e,locales:s?.locales,locale:o})}updateRTL(){this.isRTLEnabled()?document.documentElement.dir="rtl":document.documentElement.dir=""}handleMessage(e){const{data:s,origin:o}=e;if(!jse(o))return;const{history:r,location:{pathname:a},setCurrentLocale:c}=this.props,{course:{lessonsOnly:d}}=this.props;(0,MT.A)(s).forEach(({type:l,data:u})=>{if(Nse(l)){if(l===bn.TOGGLE&&window.targetMode(u,h=>{window.parent.postMessage({type:bn.HOVERED,data:h},"*")}).then(h=>{window.parent.postMessage({type:bn.SELECTED,data:h},"*")}).catch(()=>{window.parent.postMessage({type:bn.SELECTED,data:[]},"*")}),l==="preview:update"&&this.setState({previewType:u}),l==="preview:themeUpdate"&&this.handleThemePreviewUpdate(u),l==="preview:navigate"){let{type:h,lessonId:p,itemId:f,path:g,replace:v}=u;const C=v?r.replace.bind(r):r.push.bind(r);if(Ise(h,a)){if(Array.isArray(g)&&({type:h,lessonId:p,itemId:f}=(0,I0.Ce)(g)),h==="firstLesson")C(`/lessons/${d[0].id}`);else if(h==="cover"||h==="course")C("/");else if(h==="lesson"&&d.find(({id:S})=>S===p)!=null){const S=()=>{window.dispatchEvent(new CustomEvent(ms,{detail:{lessonId:p,itemId:f,path:g}}))};`/lessons/${p}`!==a?(C(`/lessons/${p}`),setTimeout(S,1500)):S()}}}if(l===bn.CLEAR&&window.dispatchEvent(new CustomEvent(q0)),l==="preview:navOpen"&&window.dispatchEvent(new CustomEvent(O2)),l==="preview:navClose"&&window.dispatchEvent(new CustomEvent(P2)),l==="preview:showLessonNavPrev"&&window.dispatchEvent(new CustomEvent(Cd)),l==="preview:showLessonNavNext"&&window.dispatchEvent(new CustomEvent(xd)),l==="preview:scrollto"&&typeof u.target=="string"){const h=document.querySelector(u.target);h&&(0,_T.A)(h,{behavior:"smooth",block:"start"})}l==="preview:replace"&&(0,X.JD)((0,Mc.HC)(u)),l==="preview:changeset"&&(0,X.JD)((0,Mc.TJ)(u)),l==="preview:selectLocale"&&c(u,"replace"),l===bn.FOCUS&&B4(u.path),l===bn.TRANSLATION_HOVERED&&w4(u.path),l===bn.TRANSLATION_HOVER_CLEAR&&M4()}})}handleThemePreviewUpdate({course:e,l10n:s,fonts:o,theme:r}){this.cancelThemePreviewUpdate();const{course:a}=this.props,c=st()("theme",r,e),d=(0,UT.MT)(a,c);this.cancelThemePreviewUpdate=Ose({course:d,fonts:o,l10n:s}).fork(console.warn,fS)}onSharePasswordSubmit(e){return(0,de.m5)(e.value).then(({isValid:s})=>{s?this.setState({isInvalidPassword:!1}):(e.value="",this.setState({failAttempt:!0,isInvalidPassword:!0}))}).catch(s=>console.error("Verify password error",s))}onFavoriteAdded(){(0,X.JD)((0,$2.nF)())}onFavoriteRemoved(){(0,X.JD)((0,$2.pp)())}renderAppLayout(){if(!this.props.course)return null;const{easterEggClassNames:e,course:s,course:{bodyTypeface:o,color:r,headingTypeface:a,themeId:c,theme:d,type:l,uiTypeface:u},courseProgress:h,currentLocale:p,l10n:f,labels:g,lessons:v,location:C,partnerContent:x,search:S,sessionPreferences:E}=this.props,{didNavigate:b,previewType:L}=this.state,I=f?.localeLabelSets?.[p]?.labels||g,N={course:s,courseProgress:h,didNavigate:b,labels:I,lessons:v,location:C,partnerContent:x,previewType:L,search:S,sessionPreferences:E,themeId:c},R=d?.accentContrast,j=l===$e.y4,O={accentContrast:R,bodyTypeface:o,color:r,headingTypeface:a,isLegacyCourse:s?.isLegacyCourse,uiTypeface:u},B=M()("theme",e,c,{"one-page":j}),_=TC(s)?yse:m.Fragment;return(0,n.jsx)(Me.rv,{course:s,courseProgress:h,l10n:f,labels:I,partnerContent:x,search:S,children:(0,n.jsx)(YE,{themeId:c,children:(0,n.jsx)(K2,{courseColor:r,children:(0,n.jsx)(S9,{i18n:(0,de.Rc)(),children:(0,n.jsx)(Ta,{children:(0,n.jsxs)("div",{id:"innerApp",className:B,ref:bC,children:[(0,n.jsx)(_S,{...O}),(0,n.jsx)(a3,{env:"runtime",children:(0,n.jsxs)(_,{children:[j?(0,n.jsx)(rse,{...N}):(0,n.jsx)(Jte,{...N}),(0,n.jsx)(rI,{})]})})]})})})})})})}showPasswordDialog(){const{isInvalidPassword:e}=this.state;if((0,de.oO)())return e&&(0,de.og)();const{course:s}=this.props,{hasPassword:o}=s;return e&&(0,de.GS)()&&!Lse(s)&&(!!o||(0,de.og)())}render(){const{failAttempt:e}=this.state,{onSharePasswordSubmit:s}=this;return this.showPasswordDialog()?(0,n.jsx)(cse,{failAttempt:e,onSubmit:s}):this.renderAppLayout()}}yC.prototype.cancelThemePreviewUpdate=Function.prototype;const Pse=Se()(RS,a1.A,xs.wZ)(yC),Mse=()=>(0,n.jsx)(Ta,{title:Yc(),children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"not-found",children:(0,n.jsxs)("div",{className:"not-found__copy",children:[(0,n.jsx)("h1",{className:"not-found__copy--heading",tabIndex:-1,children:"Hmm..."}),(0,n.jsx)("div",{children:"We can't seem to find the page you're looking for."})]})})})});var Dse=i(94983);function IC(){return(0,X.d4)(t=>{const{course:e,courseLabels:s,courseProgress:o,fonts:r,l10n:a,partnerContent:c,search:d,sessionPreferences:l,status:u}=t;return{course:e,courseProgress:o,fonts:r,l10n:a,labels:s.labels,languageCode:e?.locale??s.iso639Code,lessons:e&&e.lessons,partnerContent:c,search:d,sessionPreferences:l,status:u}})}function kse(){const t=(0,X.wA)();(0,m.useEffect)(()=>{t((0,Mc.EL)()),t((0,h1.pb)())},[t])}function wse(){const t=(0,X.wA)(),e=(0,m.useCallback)(()=>{t((0,Y2.$2)(!0))},[t]),s=IC(),{courseLoaded:o,coverLoaded:r}=s.status;if(o&&!r){const{course:{coverImage:a={}}}=s,{media:c={}}=a,{image:d={}}=c,{key:l,src:u}=d;if(l||u){const h=l?(0,rs.ME)(d):u,p=setTimeout(e,5e3),f=new Image;f.src=h,f.onload=()=>{clearTimeout(p),e()}}else e()}}function Bse(){kse(),wse();const t=IC(),e=(0,X.wA)(),{fonts:s,labels:o,status:{courseLoaded:r,coverLoaded:a,fontsLoaded:c,notFound:d,partnerContentLoaded:l}}=t,u=(0,as.A)(r),h=r&&c&&a&&l,p=!h;return(0,m.useEffect)(()=>{!u&&r&&!c&&(s??[]).length>0&&e((0,Dse.r)(s))},[e,u,r,c,s]),(0,m.useEffect)(()=>{h&&window.parent!==window&&window.parent.postMessage({type:"course:ready"},window.location.origin)},[h]),d?(0,n.jsx)(Mse,{}):p?(0,n.jsx)(gC,{status,labelCurtainLoading:o?.curtainLoading,labelCurtainOffline:o?.curtainOffline,labelCurtainOfflineReconnecting:o?.curtainOfflineReconnecting,labelCurtainSessionTimedOut:o?.curtainSessionTimedOut,labelCurtainSessionTimedOutRestart:o?.curtainSessionTimedOutRestart,labelCurtainSessionTimedOutRefresh:o?.curtainSessionTimedOutRefresh,labelCurtainSomethingWrong:o?.curtainSomethingWrong,labelCurtainSomethingWrongTryAgain:o?.curtainSomethingWrongTryAgain,labelCurtainSomethingWrongRefresh:o?.curtainSomethingWrongRefresh}):(0,n.jsx)(Pse,{...t})}const _se=Bse,l0=document.createElement("style");l0.innerHTML=`
  @layer rise-reset, art-theme, art-utils;

  :root {
    --arc-font-size-base: 1;
  }
`;function Use(){(0,m.useEffect)(()=>(l0.parentElement!==document.head&&document.head.prepend(l0),()=>{l0.remove()}),[])}const NC=(0,Ie.TM)();(0,de.IV)(NC);const Hse=(0,je.createRoot)(document.getElementById("app")),Fse=({children:t})=>(Use(),t);Hse.render((0,n.jsx)(m.Suspense,{fallback:null,children:(0,n.jsx)(X.Kq,{store:X.M_,children:(0,n.jsx)(Fse,{children:(0,n.jsx)(bT,{children:(0,n.jsx)(ds,{children:(0,n.jsx)(PT,{children:(0,n.jsx)(ke.Ix,{history:NC,children:(0,n.jsx)(xs.fH,{children:(0,n.jsx)(ke.qh,{path:"/",component:_se})})})})})})})})}))},28239:(Ze,Ee,i)=>{"use strict";i.r(Ee),i.d(Ee,{selectLabelsMap:()=>V,useLabelsMap:()=>re});var D=i(18391),U=i(38286);function V(W,se){return se?.l10n?.localeLabelSets?.[W]?.labels||se?.courseLabels?.labels}function re(){const{currentLocale:W}=(0,U.nY)();return(0,D.d4)(se=>V(W,se))}},16832:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Ay:()=>ge,BW:()=>z,En:()=>D,Ig:()=>$,Ko:()=>U,M$:()=>le,Pz:()=>G,S$:()=>ae,WY:()=>se,Wj:()=>Q,Ze:()=>ne,ce:()=>Le,eZ:()=>V,fd:()=>H,ft:()=>W,jw:()=>ue,l7:()=>re,mj:()=>n,p3:()=>ce,pd:()=>pe,qX:()=>w,sZ:()=>q,w5:()=>Be});const D="a",U="n",V="t",re="c",W="ps",se="p",ne="v",q="r",ue="s",n="rr",ce="pq",pe="qd",Le="ql",le="qt",ge="vp",Be="k",Q="v",H="i",z="pv",w="m",G="s",$="x",ae="t"},19509:(Ze,Ee,i)=>{"use strict";i.d(Ee,{f:()=>D});const D={UP:"up",DOWN:"down"}},61140:(Ze,Ee,i)=>{"use strict";i.d(Ee,{AU:()=>ne,G7:()=>ce,NS:()=>W,RR:()=>Le,gj:()=>n,kT:()=>q,on:()=>se});const{RiseDotCom:D}=window,U=le=>D&&D[le],V=()=>{U("addFavorite")&&Promise.resolve().then(D.addFavorite).catch(console.error)},re=()=>{U("removeFavorite")&&Promise.resolve().then(D.removeFavorite).catch(console.error)},W=()=>{U("exit")&&D.exit()},se=(...le)=>{U("on")&&D.on(...le)},ne=(...le)=>{U("off")&&D.off(...le)},q=(...le)=>{U("goToLearn")&&D.goToLearn(...le)},ue=(...le)=>{U("closeCourseOverviewModal")&&D.closeCourseOverviewModal(...le)},n=(...le)=>{if(U("downloadCertificate"))return D.downloadCertificate(...le)},ce=(...le)=>{if(U("downloadCertificateCancel"))return D.downloadCertificateCancel(...le)},pe=(...le)=>{U("resizeCourseOverviewIframe")&&D.resizeCourseOverviewIframe(...le)},Le=(...le)=>{if(U("fetchLpUpNext"))return D.fetchLpUpNext(...le)}},88747:(Ze,Ee,i)=>{"use strict";i.d(Ee,{MJ:()=>Cs,MT:()=>Gn,uK:()=>Zs});var D=i(61556),U=i(77541),V=i(10789),re=i.n(V),W=i(27905),se=i.n(W),ne=i(46687),q=i.n(ne),ue=i(34198),n=i.n(ue),ce=i(36104),pe=i.n(ce),Le=i(75800),le=i.n(Le),ge=i(40966),Be=i.n(ge),Q=i(91794),H=i.n(Q),z=i(56401),w=i.n(z),G=i(4322),$=i.n(G),ae=i(41260),Te=i.n(ae),ee=i(53970),me=i.n(ee),ve=i(7827),m=i.n(ve),ie=i(74674),je=i.n(ie),ke=i(37953),X=i.n(ke),Ie=i(84929),Re=i.n(Ie),gt=i(34552),ft=i.n(gt),bt=i(84136),kt=i.n(bt),xt=i(69872),Gt=i.n(xt),Xe=i(37600),ds=i.n(Xe),Je=i(97886),ut=i.n(Je),de=i(5181);const it=["bodyTypeface","coverImage","experiments","headingTypeface","lessonHeaderImage","media","theme","uiTypeface"],Et=pe()(Be(),m()(["color"]),m()(["theme","colorAccent"])),rt=({theme:{navigationRestricted:os}})=>os?de.b$.RESTRICTED:de.b$.FREE,Kt=({theme:{sidebarStartsOpen:os}})=>(w()(os)?!0:os)?de.RE.OPEN:de.RE.CLOSED,Fe=pe()(Be(),m()(["showLessonCount"]),m()(["theme","showLessonCount"])),M=({sidebarMode:os})=>os!==de.RE.HIDDEN,ze=({navigationMode:os})=>os===de.b$.RESTRICTED,ht=({sidebarMode:os})=>os===de.RE.OPEN,ye=H()(m()(["coverImage","media","image"]),re()(de.kY.LIGHT_IMAGE),re()(de.kY.LIGHT)),Ss=H()(m()(["coverImage","media","image"]),re()(de.BL.LEFT_OVERLAY),re()(de.BL.LEFT)),fs={allowSearch:!0,animateBlockEntrance:!0,compactShowLessonCount:!0,enableVideoPlaybackSpeed:!0,markLessonsComplete:!1,navigation:!0,navigationRestricted:!1,showAuthor:!0,showLessonCount:!0,showNavigationButtons:!0,sidebarStartsOpen:!0},Oe=os=>ft()(fs[os],os),Ds={blockCorners:de.rE.ROUNDED,blockPaddingBottom:de.S$,blockPaddingTop:de.S$,buttonInlineStyle:de.qu.ROUNDED,buttonNavigationStyle:de.jq.FULL,buttonScheme:de.LE.LIGHT,colorAccent:de.Zs,coverImageAlpha:de.HU,coverPageType:de.BL.SPLIT_LEFT_IMAGE,lessonHeaderImageColor:de.df.DARK,lessonHeaderColor:null,lessonHeaderImage:null,lessonHeaderImageAlpha:de._g,lessonHeaderSize:de.OX.MEDIUM,lessonHeaderStyle:de.xj.LIGHT,navigationStyle:de.kY.LIGHT,navigationType:de.br.SIDEBAR,progressIndicatorStyle:de.Y2.THEME_DEFAULT,themeId:de.V7.RISE_CLASSIC},Zs=Gt()($(),n()(se()("isLegacyCourse",!0),me()("theme"),Te()(Ds),q()({allowSearch:Oe("allowSearch"),animateBlockEntrance:Oe("animateBlockEntrance"),bodyTypefaceId:Re()("bodyTypefaceId"),colorAccent:n()(ds(),ft()("","color")),compactShowLessonCount:Oe("compactShowLessonCount"),coverImageDefault:null,coverPageType:Ss,enableVideoPlaybackSpeed:Oe("enableVideoPlaybackSpeed"),headingTypefaceId:Re()("headingTypefaceId"),markLessonsComplete:Oe("markComplete"),navigation:M,navigationRestricted:ze,navigationStyle:ye,showAuthor:Oe("showAuthor"),showLessonCount:Oe("showLessonCount"),showNavigationButtons:Oe("showNavigationButtons"),sidebarStartsOpen:ht,uiTypefaceId:Re()("uiTypefaceId")}))),Cs=ut()(kt()(w(),"theme"),Gt()($(),q()({allowSearch:m()(["theme","allowSearch"]),animateBlockEntrance:je()(!0,["theme","animateBlockEntrance"]),buttonNavigationStyle:m()(["theme","buttonNavigationStyle"]),buttonScheme:m()(["theme","buttonScheme"]),color:Et,colorAccentTint:n()(D.FB,Et),coverImage:os=>(0,U.dM)(os),coverPageType:m()(["theme","coverPageType"]),enableVideoPlaybackSpeed:je()(!0,["theme","enableVideoPlaybackSpeed"]),lessonHeaderImage:os=>(0,U.LI)(os),lessonHeaderSize:m()(["theme","lessonHeaderSize"]),lessonHeaderStyle:m()(["theme","lessonHeaderStyle"]),markComplete:je()(!1,["theme","markLessonsComplete"]),navigation:je()(!0,["theme","navigation"]),navigationMode:rt,navigationRestricted:je()(!1,["theme","navigationRestricted"]),navigationStyle:m()(["theme","navigationStyle"]),navigationType:je()(de.br.SIDEBAR,["theme","navigationType"]),progressIndicatorStyle:je()(de.Y2.THEME_DEFAULT,["theme","progressIndicatorStyle"]),themeId:je()("classic",["theme","themeId"]),showAuthor:je()(!0,["theme","showAuthor"]),showLessonCount:Fe,sidebarMode:Kt,sidebarStartsOpen:je()(!0,["theme","sidebarMode"]),showNavigationButtons:je()(!0,["theme","showNavigationButtons"])}))),Gn=le()(os=>n()(Cs,$()(os),X()(it)))},41481:(Ze,Ee,i)=>{"use strict";i.d(Ee,{A:()=>re});var D=i(50635),U=i(26058),V=i(98228);function re(W){const se=(0,U.y)(ne=>{const q=(0,V.W)();return(0,D.jsx)(W,{...ne,history:q})});return se.displayName=`withRouter(${W.displayName||W.name})`,se}},41820:(Ze,Ee,i)=>{"use strict";i.d(Ee,{gf:()=>Or,Em:()=>Pr});var D={};i.r(D),i.d(D,{callbackComponent:()=>Cc,callbackPath:()=>Pe,errorPath:()=>Nr,getToken:()=>Ue,initAuth:()=>$a,login:()=>Ka,logout:()=>Mn,onFetchTokensThunk:()=>xc,refreshSession:()=>fc,request:()=>Ks.Em});var U={};i.r(U),i.d(U,{callbackComponent:()=>zl,callbackPath:()=>Vl,getToken:()=>bc,initAuth:()=>ti,login:()=>qa,logout:()=>cr,refreshSession:()=>ei,request:()=>Ks.Em});var V=i(83416),re=i(10789),W=i.n(re),se=i(34198),ne=i.n(se),q=i(56401),ue=i.n(q),n=i(95017),ce=i.n(n),pe=i(56552),Le=i.n(pe),le=i(50107),ge=i.n(le),Be=i(59288),Q=i(41481),H=i(29226),z=i.n(H),w=i(15045),G=i(47474),$=i.n(G),ae=i(54996),Te=i.n(ae),ee=i(68971),me=i.n(ee),ve=i(312),m=i.n(ve),ie=i(45949),je=i.n(ie),ke=i(55414),X=i.n(ke),Ie=i(91794),Re=i.n(Ie),gt=i(4322),ft=i.n(gt),bt=i(37953),kt=i.n(bt),xt=i(53970),Gt=i.n(xt),Xe=i(78324),ds=i.n(Xe),Je=i(84929),ut=i.n(Je),de=i(23366),it=i(28079);const Et={"Content-Type":"application/json"},rt=[(De,Ve)=>(Ve.Authorization=`Bearer ${Or()}`,JSON.stringify(De))],Kt=Re()(ue(),X(),kt()(["data","status","statusText"])),Fe=ds()(kt()(["name","message","response"]),je()({response:Kt})),M=({baseURL:De,...Ve})=>ne()(ft()({headers:Et,transformRequest:rt}),ft()(Ve),je()({url:m()(De)})),ze=({data:De,method:Ve,url:Tt})=>fetch(Tt,{body:JSON.stringify(De),headers:{...Et,Authorization:`Bearer ${Or()}`},keepalive:!0,method:Ve}).then(ks=>ks.json()).then(Gt()("data")),ht=$().fromPromise(ze),ye=De=>({method:Ve,url:Tt})=>`${Ve}:${De}${Tt}`,Ss=De=>{const Ve=new Error("Nil token detected");return it.L.addError(Ve,De),$().Rejected(Ve)},fs=De=>Ve=>De.preRequest?De.preRequest(Ve):Ve,Oe=De=>Ve=>De.postRequest?De.postRequest(Ve):Ve,Ds=()=>!V.BI&&ue()(Or()),Zs=De=>(Ve,Tt)=>Te()(Ve,ye(Tt),Cs(Pr,De)),Cs=(De,Ve)=>Tt=>(0,de.Ve)(Tt,fs(Ve),M(Ve),Re()(Ds,Ss,De),me()(Fe,ut()("data")),Oe(Ve)),os=De=>({debounce:Zs(De),send:Cs(Pr,De),sendWithKeepAlive:Cs(ht,De)});var uo=i(86484),nr=i.n(uo);const _s=()=>document.visibilityState==="visible",$e=De=>nr()(_s,()=>De()),Pt=De=>{document.addEventListener("visibilitychange",$e(De)),window.addEventListener("focus",()=>De())};var Ot=i(63036),xs=i.n(Ot),ho=i(72970),Us=i.n(ho),or=i(30001),vt=i.n(or),Os=i(3638),Kn=i.n(Os),Ut=i(88457);const Mt=De=>(0,Ut.Em)({method:"POST",url:`${(0,V._$)("RISE_RUNTIME_URI")}/analytics`,json:!0,data:De}),Lr=(0,V._$)("SUBSCRIPTIONS_ENDPOINT"),Po=(0,V._$)("THREESIXTY_FRONTEND_URI"),mo=vt()(["error","status"],404),br=ne()(Gt()("error"),ut()("response")),Mo=()=>window.location.href=Po,Va=[(De,Ve)=>(Ve.Authorization=`Bearer ${Or()}`,De)],Bt=async De=>{const Ve=`${Lr}/users/authorized_status`,Tt=await Pr({transformRequest:Va,url:Ve}).toPromise().catch(br),ks=ne()(De,ge()(_t=>Mt({event:"Unexpected Logout",payload:{category:"auth",data:_t,detail:"Subscription Error"}})));return xs()([[mo,Mo],[Us()("error"),ks],[Kn(),ut()("data")]])(Tt)};var $t=i(52988),js=i.n($t),po=i(53625),Se=i.n(po),rr=i(17247),Es=i.n(rr),Wa=i(63545);const fo=Es()("status","active"),cc=Es()("status","inactive"),Bl=Es()("plan","individual"),_l=De=>pathEq(["features","enable_review"],!0)(De),Qt=vt()(["features","enable_rise"],!0),Ul=Es()("plan","trial"),qe=js()([Es()("plan","trial"),Es()("status","inactive"),Es()("is_retrial_eligible",!1)]),Hl=Se()(Es()("plan","team"),Es()("plan","individual")),Ts=js()([Es()("plan","team"),Es()("is_team_admin",!0)]),Fl=js()([Es()("plan","trial"),Es()("is_team_admin",!0)]),As=De=>{const Ve=new Date(De.end_date);Ve.setUTCHours(0,0,0,0);const Tt=Ve.setDate(Ve.getDate()+1);return Tt&&(Tt.valueOf()-new Date().setUTCHours(0,0,0,0))/MILLISECONDS_IN_A_DAY};var Ks=i(20441),Zt=i(52439),lc=i(20817),Yt=i.n(lc),dc=i(46687),Do=i.n(dc),uc=i(23444),us=i.n(uc),hc=i(34552),gs=i.n(hc);const ar=(De,Ve)=>`${(0,V._$)("ID_MAPPER_URI")}/v1/avatars/${encodeURIComponent(De)}?size=${Ve}`,jt=De=>({large:ar(De,"large"),medium:ar(De,"medium"),micro:ar(De,"micro"),mini:ar(De,"mini"),small:ar(De,"small")}),mc=Do()({features:gs()({},"features"),subscription:ce()(["features"])}),Ye=Yt()([qe,cc,us()(Qt)]),pc="/auth-callback",Ls="/auth-error",Ir=()=>new Promise(De=>{if(!window.Osano)return De();if(window.Osano.cm.dialogOpen){const Ve=setTimeout(()=>{De()},1e4);window.Osano.cm.addEventListener("osano-cm-ui-changed",(Tt,ks)=>{Tt==="dialog"&&ks==="hide"&&(De(),clearTimeout(Ve))})}else De()}),Pe=pc,Nr=Ls,Ue=Zt.rS,Ga=()=>window.location.pathname===Pe;let ea=!1,ta=!1;const ir=De=>{if(ea)return;const Ve=(0,w.A)();ea=!0,window.localStorage.setItem(Ve,De);const Tt=(0,Ks.xQ)({client_id:(0,V._$)("OKTA_CLIENT_ID"),issuer:(0,V._$)("OIDC_ISSUER_URI"),redirect_uri:`${window.location.origin}${Pe}`,response_mode:"fragment",scope:(0,V._$)("OIDC_SCOPE"),state:Ve,prompt:null});Ir().then(()=>{window.location.href=Tt})},Ka=()=>{const De=new URLSearchParams(window.location.search),Ve=De.has("redirect_url")?De.get("redirect_url"):window.location.href;return ir(Ve)},fc=()=>(0,Ks.uI)().catch(De=>{De.response?.status===404&&Mn({onLogout:()=>window.location.reload(!0),reason:"Session expired"})}),sa=()=>{if(ta)return;const De=(0,Zt.mA)(),Ve=(0,Zt.kn)();ue()(De)?(Mt({event:"Unexpected Logout",payload:{category:"auth",userId:Ve,detail:"id from cookie was null"}}),it.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:Ve,idFromCookie:De,detail:"id from cookie was null"}),ta=!0,Mn({onLogout:()=>window.location.reload(!0),reason:"Unexpected logout: user id/session cookie missing"})):De!==Ve&&(Mt({event:"Unexpected Logout",payload:{category:"auth",userId:De,idFromToken:Ve,detail:"Session/Token ID Mismatch"}}),it.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:Ve,idFromCookie:De,detail:"Session/Token ID Mismatch"}),ta=!0,(0,Ks.wD)().then(()=>window.location.reload(!0)))},na=async De=>{try{const[,Ve,Tt,ks]=await(0,Ks.wD)(),{aid:tt,content_team_admin:_t}=ks;if(Mt({event:"Setting Session Cookie",payload:{category:"auth",userId:tt,detail:"Resuming existing session"}}),(0,Zt.ac)(tt),Ga()){De();return}const{first_name:P,last_name:da,launchdarkly:ua,staff:Kl}=Ve,Co={avatars:jt(tt),first_name:P,user_id:tt,last_name:da,staff:Kl,content_team_admin:_t},ko={author:tt,profile:Co},yc=()=>Mn({onLogout:W()(null)}),Ic=Dr=>De({...ko,...mc(Dr),launchdarkly:ua,token:Tt}),Mr=await Bt(yc).then(ge()(Ic)).catch(()=>De({...ko,token:Tt}));if(Ye(Mr)){Mt({event:"Unexpected Logout",payload:{category:"auth",userId:(0,Zt.mA)(),subscription:Mr,detail:"Invalid Subscription"}}),it.L.addError(new Error("Unexpected Logout"),{type:"User Meta",userId:(0,Zt.mA)(),detail:"Invalid Subscription"}),Mn({onLogout:()=>window.location=`${(0,V._$)("THREESIXTY_FRONTEND_URI")}/rise`});return}Pt(sa)}catch(Ve){Mt({event:"Unexpected Logout",payload:{category:"auth",userId:(0,Zt.mA)(),error:Ve,detail:"Error Resuming Session"}}),it.L.addError(Ve,{type:"User Meta",userId:(0,Zt.mA)(),detail:"Error Resuming Session"}),Mn({onLogout:()=>window.location.reload(!0)})}},$a=({onFetchTokens:De})=>{if(Ga()){na(De);return}const Ve=(0,Zt.mA)(),Tt=(0,Zt.kn)();if(ue()(Ve)||Ve!==Tt){Ir().then(Ka);return}na(De)},Mn=({onLogout:De,reason:Ve})=>{Ve&&Mt({event:"Logout",payload:{category:"auth",userId:(0,Zt.mA)(),detail:Ve}});const Tt=(0,V._$)("RISE_AUTHORING_URI"),ks=()=>V.BI?Promise.resolve():os({baseURL:Tt}).send({method:"DELETE",url:"/logout"}),tt=()=>{(0,Zt.sm)(),(0,Zt.gZ)(),(0,Ks.Vu)().then(De)};ks().fork(_t=>{console.error("Failed to log out of rise-authoring-api",_t),tt()},tt)},gc=ne()(z().parse,Le()(1,1/0)),At=(De,Ve)=>{Ir().then(()=>{const Tt="/",ks=window.localStorage.getItem(Ve)||Tt,tt=ks===De?Tt:ks;window.localStorage.removeItem(Ve),window.location.href=tt})},vc=De=>()=>window.location.href=`${Ls}?description=${De}`,Qa=({location:De})=>()=>{const{hash:Ve,pathname:Tt}=De,{state:ks,error:tt,error_description:_t}=gc(Ve);tt?(it.L.addError(tt,{type:"Logout Error",reason:"Error encountered when parsing auth callback.",error_description:_t}),Mn({onLogout:vc(_t),reason:`Error encountered when parsing auth callback. Error: ${tt}; description: ${_t}`})):$a({onFetchTokens:()=>At(Tt,ks)})},oa=De=>((0,Be.useEffect)(Qa(De),[]),null),Cc=(0,Q.A)(oa),xc=({dispatch:De,loadProfileOKTA:Ve})=>Tt=>{const ks=ce()(["token"],Tt);ne()(De,Ve)(ks)};var ra=i(82298),Ec=i.n(ra),Za=i(45005),Ya=i.n(Za),aa=i(72168),go=i.n(aa),ia=i(74674),Xa=i.n(ia),jr=i(24308),Tc=i.n(jr),Sc=i(97886),Ja=i.n(Sc);const Ar=async()=>{await Ir();const[De,Ve]=go()(encodeURIComponent,Tc()(["hash","pathname"],window.location));window.location.href=`/login#c=${Ve}${De}`},Lc=()=>{window.location.href="/"},zl=null,Vl=null,bc=Zt.rS,qa=Ar,cr=Ks.Vu,ei=()=>(0,Ks.uI)().catch(()=>cr()),ca=ds()(gs()([],"roles"),Ja()(Ya()("author"),Lc)),lr=ds()(Xa()("",["subscription","status"]),Ja()(Ya()(Ec(),["active","in_trial","non_renewing"]),Lc)),et=()=>window.location.reload(),ti=async({onFetchTokens:De})=>{try{const[Ve,Tt]=await(0,Ks.wD)(),{launchdarkly:ks,riseId:tt,sub:_t,staff:P,subscription:da}=Tt,ua={staff:P,user_id:tt||_t};return lr(Tt),De({author:ua.user_id,launchdarkly:ks,profile:ua,subscription:da,token:Ve}),(0,Ks.on)("change:roles",ca),(0,Ks.on)("change:status",lr),(0,Ks.on)("change:subdomain",et),(0,Ks.on)("unauthorized",Ar),(0,Ks.on)("session:closed",Ar),Ve}catch{Ar()}},{callbackComponent:Rr,callbackPath:la,getToken:Or,initAuth:Wl,login:si,logout:Gl,refreshSession:ni,request:Pr}=V.BI?U:D},41021:(Ze,Ee,i)=>{"use strict";i.d(Ee,{A:()=>V});var D=i(3786);const V=({alpha:re,color:W,url:se})=>{const ne=(0,D.A)(W,re);return{backgroundImage:`linear-gradient(0deg,${ne},${ne}), url("${se}")`}}},52439:(Ze,Ee,i)=>{"use strict";i.d(Ee,{EO:()=>G,O0:()=>w,QJ:()=>ae,W5:()=>q,Xl:()=>ge,ac:()=>n,gZ:()=>pe,kn:()=>z,l6:()=>Te,mA:()=>Le,rS:()=>le,sm:()=>ce});var D=i(13855),U=i.n(D),V=i(87836),re=i.n(V),W=i(83416);const se="_articulate_user_id",ne="_rise_authoring_api_session",q=()=>W.BI?(0,W._$)("SESSION_COOKIE_NAME"):"_articulate_rise_",ue=(ee,me)=>`${ee}=${me}; domain=${(0,W._$)("SESSION_COOKIE_DOMAIN")}; path=/; secure=true`,n=ee=>document.cookie=ue(se,ee),ce=()=>document.cookie=`${ue(se,"")}; Max-Age=-99999999`,pe=()=>document.cookie=`${ue(ne,"")}; Max-Age=-99999999`,Le=()=>U().load(se),le=()=>U().load(q()),ge=()=>le()?re()(le()).staff:!1,Be=()=>le()?decode(le())?.staffRoles||[]:[],Q=()=>le()?decode(le())?.content_team_admin:!1,H=()=>Be().includes("content-team")||Q(),z=()=>le()?re()(le()).riseId||re()(le()).sub||re()(le()).aid:"",w=()=>le()?re()(le()).roles:[],G=()=>le()?re()(le()).tenantId:"",$=()=>le()?re()(le()).subscription||{}:{},ae=()=>$().plan_id||"",Te=()=>$().status||""},61556:(Ze,Ee,i)=>{"use strict";i.d(Ee,{FB:()=>uo,FH:()=>Gn,GG:()=>it,I8:()=>rt,IO:()=>Zs,L3:()=>Ds,Vu:()=>Fe,b9:()=>Et,bQ:()=>M,jI:()=>or,yL:()=>nr,zH:()=>os,zh:()=>Oe});var D=i(10789),U=i.n(D),V=i(34198),re=i.n(V),W=i(23444),se=i.n(W),ne=i(40966),q=i.n(ne),ue=i(53625),n=i.n(ue),ce=i(2353),pe=i.n(ce),Le=i(83799),le=i.n(Le),ge=i(67711),Be=i.n(ge),Q=i(8466),H=i.n(Q),z=i(91794),w=i.n(z),G=i(34379),$=i.n(G),ae=i(56401),Te=i.n(ae),ee=i(64104),me=i.n(ee),ve=i(78324),m=i.n(ve),ie=i(84929),je=i.n(ie),ke=i(17247),X=i.n(ke),Ie=i(84136),Re=i.n(Ie),gt=i(85772),ft=i.n(gt),bt=i(63064),kt=i.n(bt),xt=i(37322),Gt=i(41021),Xe=i(5181),ds=i(63545),Je=i(52706);const ut=se()(X()("sidebarMode","hidden")),de=X()("sidebarMode","open"),it=({type:vt,settings:Os})=>vt!=="quiz"||Os.asLesson||Os.asLesson===void 0,Et=({alpha:vt,color:Os,hasOverlay:Kn=!0,media:Ut={}})=>{const{image:Mt={}}=Ut,{key:Lr,src:Po}=Mt,mo=Lr?(0,xt.ME)(Mt):Po,br=Os===Xe.df.LIGHT?Xe.qH:Xe.KJ;return mo?Kn?(0,Gt.A)({alpha:vt/100,color:br,url:mo}):{backgroundImage:`url("${mo}")`}:null},rt=vt=>[Xe.Py.DARK,Xe.Py.DARK_ACCENT,Xe.Py.DARK_IMAGE,Xe.qB.DARK,Xe.kY.DARK,Xe.kY.DARK_IMAGE].includes(vt),Kt=vt=>["DARK","IMAGE"].includes(vt),Fe=m()(je()("lessons"),H()),M=X()("navigationMode",Xe.b$.RESTRICTED),ze=X()("sidebarMode",Xe.RE.OPEN),ht=se()(X()("sidebarMode",Xe.RE.HIDDEN)),ye=X()("navigationType",Xe.br.SIDEBAR),Ss=X()("navigationType",Xe.br.OVERLAY),fs=X()("navigationType",Xe.br.COMPACT),Oe=w()(Re()(Te(),"navigation"),ht,X()("navigation",!0)),Ds=({course:vt,search:Os,isMobile:Kn})=>vt.type===ds.y4?!1:(ye(vt)||fs(vt)&&!!Kn)&&Oe(vt)||Os.active,Zs=({course:vt,isMobile:Os})=>fs(vt)&&Oe(vt)&&!Os,Cs=({course:vt})=>Ss(vt)&&Oe(vt),Gn=vt=>[Xe.Py.DARK_IMAGE,Xe.Py.LIGHT_IMAGE,Xe.qB.DARK_IMAGE,Xe.qB.IMAGE,Xe.kY.DARK_IMAGE,Xe.kY.LIGHT_IMAGE].includes(vt),os=vt=>[Xe.kY.DARK,Xe.kY.LIGHT].includes(vt),uo=Je.WA,nr=(vt,Os)=>{if(vt===Xe.V7.RISE_CLASSIC||vt===Xe.V7.HORIZON)switch(Os){case Xe.BL.SPLIT_LEFT_IMAGE:case Xe.BL.SPLIT_RIGHT_IMAGE:case Xe.BL.TWO_THIRDS_LEFT_IMAGE:case Xe.BL.TWO_THIRDS_RIGHT_IMAGE:return!0;default:return!1}else if(vt===Xe.V7.APEX)switch(Os){case Xe.BL.SPLIT_LEFT_IMAGE:case Xe.BL.SPLIT_RIGHT_IMAGE:return!0;default:return!1}return!1},_s=(vt,Os)=>{switch(vt){case THEME_IDS.RISE_CLASSIC:case THEME_IDS.APEX:case THEME_IDS.HORIZON:return Os===COVER_PAGE_LAYOUT_TYPES.CENTERED_OVERLAY||Os===COVER_PAGE_LAYOUT_TYPES.LEFT_OVERLAY||Os===COVER_PAGE_LAYOUT_TYPES.IMAGE;default:return!1}},$e=n()(Te(),$()),Pt=n()(Te(),pe()(!1)),Ot=Re()(Pt,"isComplete"),xs=n()(Re()(pe()(!1),"passed"),Re()(Pt,"isComplete")),ho=kt()(2,vt=>le()(w()(re()(pe()(vt),H()),re()(xs,me()),re()(Ot,me())))),Us=kt()(2,vt=>m()(ft(),ho(vt),q()([]),H())),or=Be()(kt()(2,vt=>w()($e,U()(vt),Us(vt))))},28079:(Ze,Ee,i)=>{"use strict";i.d(Ee,{L:()=>U.L,y:()=>D.yf});var D=i(35490),U=i(48004),V=i(83416);const re="datadoghq.com",W=(0,V._$)("SERVICE_ENV"),se=(0,V._$)("RISE_FRONTEND_SHA"),ne=V.BI?[/https:\/\/.*(\.dev)?\.rise\.(com|zone).*/,location.origin]:[/https:\/\/(rise(\.dev)?|360)\.articulate\.(com|zone).*/]},49345:(Ze,Ee,i)=>{"use strict";i.d(Ee,{QZ:()=>H,R9:()=>Q,aj:()=>Be});var D=i(10789),U=i.n(D),V=i(67711),re=i.n(V),W=i(55414),se=i.n(W),ne=i(91794),q=i.n(ne),ue=i(95206),n=i.n(ue);const ce=re()(n()),pe=["a","b","blockquote","br","div","em","h1","h2","h3","h4","h5","h6","i","img","li","mark","ol","p","table","td","th","tbody","thead","tr","s","strong","span","sub","sup","u","ul","details","summary","rise-image","rise-math"],Le=["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","title","width"],le=ce({allowedAttributes:{"*":["aria-*","class","colspan","id","rowspan","slot","style"],a:["data-external","href","target","rel"],img:["alt","src"],ol:["start"],span:["data-*"],"rise-image":["key","src","width","height","originalwidth","originalheight"],"rise-math":["data-translate-attrs","long-description","short-description","tex"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:pe}),ge=ce({allowedAttributes:{iframe:Le},allowedTags:["iframe"],allowedSchemes:["http","https"]}),Be=q()(se(),le,U()("")),Q=q()(se(),ge,U()("")),H=ce({allowedTags:[],allowedAttributes:[]}),z=ce({allowedTags:["mark"],allowedAttributes:[]}),w=ce({allowedAttributes:{"*":["aria-*","class","colspan","rowspan","style"],a:["data-external","href","target","rel"],ol:["start"],span:["data-*"],"rise-image":["key","src","width","height","originalwidth","originalheight"],"rise-math":["tex"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:pe.filter($=>$!=="img")}),G=$=>{const ae=$.replace(/((<br>)|(<\/[a-z]*>))+/g," ");return H(ae).replace(/\s{2,}/g," ")}},95172:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Mz:()=>Be,Sg:()=>z,Ww:()=>$,XQ:()=>Le,d9:()=>pe,dg:()=>H,gL:()=>Q,p1:()=>le,vm:()=>G});var D=i(79418),U=i.n(D),V=i(92348),re=i.n(V),W=i(30001),se=i.n(W),ne=i(17247),q=i.n(ne),ue=i(52706),n=i(61556),ce=i(5181);const pe={LESSON:"lesson",QUIZ:"quiz",SECTION:"section"},Le=re()({KNOWLEDGE_CHECK:null,ORDER:null,QUIZ:null}),le=Te=>`/lessons/${encodeURIComponent(Te)}`,ge=q()("type"),Be=ge(pe.SECTION),Q=ge(pe.QUIZ),H=se()(["settings","passToContinue"],!0),z=Te=>Te?.items?.find(ee=>ee.family==="knowledgeCheck"&&ee?.settings?.requireCorrectAnswer),w=({colorAccent:Te,lessonHeaderColor:ee,lessonHeaderStyle:me})=>{switch(me){default:case BACKGROUND_TYPES.DARK:case BACKGROUND_TYPES.BLACK:case BACKGROUND_TYPES.IMAGE:return TEXT_COLOR.LIGHT;case BACKGROUND_TYPES.LIGHT:case BACKGROUND_TYPES.GRAY:return TEXT_COLOR.DARK;case BACKGROUND_TYPES.TINT:return getTextColorFromBackground(getCourseTint(Te));case BACKGROUND_TYPES.ACCENT:return getTextColorFromBackground(Te);case BACKGROUND_TYPES.COLOR:return getTextColorFromBackground(ee??Te)}},G=Te=>Te!=null&&Te.type==="blocks",$=Te=>{const ee=U()(Te);return ee!=null&&Array.isArray(ee.items)&&(ee.items=ee.items.reduce((me,ve)=>(ve!=null&&me.push(ae(ve)),me),[])),ee},ae=Te=>{const ee=U()(Te);return ee!=null&&Array.isArray(ee.items)&&(ee.items=ee.items.filter(Boolean)),ee}},4663:(Ze,Ee,i)=>{"use strict";i.d(Ee,{U:()=>ve});var D=i(34198),U=i.n(D),V=i(312),re=i.n(V),W=i(67711),se=i.n(W),ne=i(65992),q=i.n(ne),ue=i(58488),n=i.n(ue),ce=i(72168),pe=i.n(ce),Le=i(77170),le=i.n(Le),ge=i(11366),Be=i.n(ge),Q=i(58995),H=i.n(Q),z=i(83416);const w=5e3,$=pe()(se()(re())(":n3,n4,i4,n7,n9")),ae=U()(q()(","),n()),Te=(ie,je)=>{const ke=new FontFace(je.name,ie,{family:je.name,style:je.style,weight:je.weight});return ke.load().then(()=>document.fonts.add(ke))},ee=(ie,je)=>{const ke=document.createElement("style");return ke.innerText=`@font-face { font-family: '${je.name}'; src: ${ie}; font-weight: ${je.weight}; font-style: ${je.style}; }`,document.head.appendChild(ke),new(Be())(je.name,{style:je.style,weight:je.weight}).load()},me=ie=>{const je=`url(${(0,z.PJ)(ie)}) format('woff')`;return("fonts"in document?Te:ee)(je,ie)},ve=(ie,je)=>{const ke=Promise.all(ie.map(me));let X;const Ie=new Promise(Re=>{X=setTimeout(Re,w)});return Promise.race([ke,Ie]).finally(()=>{clearTimeout(X),je()})},m=({baseUri:ie,typefaces:je,onLoad:ke})=>WebFont.load({active:ke,timeout:w,custom:{families:$(values(je)),urls:[`${ie}/course_fonts.css?typefaceIds=${ae(je)}`]}})},86415:(Ze,Ee,i)=>{"use strict";i.d(Ee,{$H:()=>X,Bd:()=>Ie,DX:()=>G,Ge:()=>kt,MT:()=>ke,PH:()=>gt,SQ:()=>ft,Sd:()=>ie,UG:()=>ae,Uj:()=>Gt,Wz:()=>Je,_z:()=>je,cN:()=>me,dT:()=>ds,d_:()=>$,hM:()=>Re,kJ:()=>Xe,qm:()=>w,rv:()=>H,v1:()=>bt,vU:()=>ee,x4:()=>xt});var D=i(50635),U=i(59288),V=i.n(U),re=i(83799),W=i.n(re),se=i(17247),ne=i.n(se),q=i(5181),ue=i(63545),n=i(61556),ce=i(52706),pe=i(84728),Le=i(42006),le=i(38286),ge=i(20387),Be=i.n(ge);const Q=(0,U.createContext)(null);Q.displayName="CourseContext";function H({children:de,course:it,courseProgress:Et,l10n:rt,labels:Kt,partnerContent:Fe,search:M}){const ze=(0,U.useMemo)(()=>({course:it,courseProgress:Et,l10n:rt,labels:Kt,partnerContent:Fe,search:M}),[it,rt,Kt,Et,Fe,M]),ht=(0,U.useMemo)(()=>({l10n:(0,ge.omit)(["locales","defaultLocale"],rt)}),[rt]),ye=(0,U.useMemo)(()=>({l10n:{locales:rt?.locales,defaultLocale:rt?.defaultLocale,localeSelectorOptions:rt?.localeSelectorOptions}}),[rt?.defaultLocale,rt?.locales,rt?.localeSelectorOptions]);return(0,D.jsx)(Q.Provider,{value:ze,children:(0,D.jsx)(pe.xr.Provider,{value:ht,children:(0,D.jsx)(pe.zE.Provider,{value:ye,children:de})})})}const z=Q.Consumer;function w(){return(0,U.useContext)(Q)}function G(){return w()?.course}function $(){return(0,pe.QQ)(G()?.title)}function ae(){const de=G();return de.selectedAuthorId==="none"||!("authors"in de)?null:de.selectedAuthorId?de.authors?.find(it=>it.id===de.selectedAuthorId):de.authors?.find(it=>it.id===de.author)}function Te(){return G().trackingQuizId}function ee(){const{labels:de}=w()??{};return de}const me=({isCourseComplete:de,percentCourseComplete:it})=>{const Et=ee(),{courseResume:rt,courseStart:Kt,processStartAgain:Fe}=Et;return{courseCTALabel:de?Fe:it>0?rt:Kt}};function ve(){const{courseProgress:de}=w();return de}function m(){return ve()?.lessons}function ie(){return ve()?.percentComplete}function je(){return G().lessonsOnly?.[0]}function ke(){const de=m(),it=Te();return(0,n.jI)(de,it)}function X(){const de=G(),{selectedAuthorId:it}=de?.lessons?.[0]??{};return it==="none"?{id:"none"}:de?.authors?.find?.(Et=>Et.id===it)}function Ie(){const{course:de,partnerContent:it}=w();return W()(ne()("id",de.selectedAuthorId),it.content)}function Re(){return Ie()?.data?.authors??null}function gt(){const{partnerContent:de}=w();return de?.content?.[0]?.data?.authors}function ft(){return w().search}function bt(){const{lessons:de}=G();return(0,U.useMemo)(()=>Array.isArray(de)?de.filter(({type:Et})=>Et!=="section").length:0,[de])}function kt(de){const rt=G()?.theme?.accentContrast;return typeof rt!="string"?q.Em.LIGHT:rt===q.Em.AUTO?(0,ce.xD)(de):rt}function xt(de){const it=(0,U.forwardRef)(({bgColor:Et,...rt},Kt)=>{const Fe=kt(Et);return(0,D.jsx)(de,{...rt,ref:Kt,accentContrast:Fe})});return it.displayName=`withAccentContrast(${de.displayName||de.name})`,it}function Gt(de){const it=(0,U.forwardRef)((Et,rt)=>{const{offset:Kt,...Fe}=Et,M=ut();return(0,D.jsx)(de,{...Fe,offset:M?0:Kt,ref:rt})});return it.displayName=`withEntranceAnimationOffset(${de.displayName||de.name})`,it}function Xe(){const de=G();return de?.theme?.colorAccent??de?.color}function ds(){return G()?.theme?.coverImageColor??q.df.DARK}function Je(){const{currentLocale:de}=(0,le.nY)(),it=(0,pe.jc)(),Et=G();return(0,Le.V)({course:Et,locales:it,locale:de})}function ut(){const de=G();return de?.type===ue.y4&&de?.theme?.blockNavigationType===q.HC.STEPPED}},84728:(Ze,Ee,i)=>{"use strict";i.d(Ee,{D_:()=>le,NB:()=>ue,QQ:()=>n,bs:()=>Q,gY:()=>q,jc:()=>Le,xr:()=>se,zE:()=>ne});var D=i(82719),U=i(86415),V=i(59288),re=i.n(V),W=i(38286);const se=(0,V.createContext)(null);se.displayName="TranslationContext";const ne=(0,V.createContext)(null);ne.displayName="LocalesContext";function q(){const{currentLocale:H}=(0,W.nY)(),z=le(),w=ge();return(0,V.useCallback)(G=>(0,D.Dh)(G,H,z,w),[H,z,w])}function ue(){const{currentLocale:H}=(0,W.nY)(),z=le(),w=ge();return(0,V.useCallback)(G=>(0,D.UR)(G,H,z,w),[H,z,w])}function n(H){const{currentLocale:z}=(0,W.nY)(),w=le();let G=ge();const $=Be();return $&&Object.keys($).length&&z&&G&&(G={...G,[z]:$}),(0,D.Dh)(H,z,w,G)}function ce(H){const{currentLocale:z}=useCurrentLocale(),w=le(),G=ge();return useMemo(()=>selectL10nRecursive(H,z,w,G),[z,w,H,G])}function pe(){return(0,V.use)(ne)}function Le(){const H=pe();return(0,D.S)(H)}function le(){const H=pe();return(0,D.HH)(H)}function ge(){const H=(0,V.use)(se);return(0,D.fF)(H)}function Be(){return(0,U.qm)()?.search?.translations}function Q(){const H=(0,V.use)(se);return(0,D.cP)(H)}},38286:(Ze,Ee,i)=>{"use strict";i.d(Ee,{fH:()=>ce,nY:()=>pe,wZ:()=>Le});var D=i(50635),U=i(59288),V=i(26058),re=i(72147);function W({defaultLocale:le,locales:ge}={},Be=(0,re.Rr)(window.location.hash.slice(1))){let H=new URLSearchParams(Be.search).get("locale");const z=new URL(window.location.href);return z.pathname.startsWith("/view_pdf/")&&(H=z.searchParams.get("locale")),ge?.find(G=>G.locale===H)?.locale||le}var se=i(84728),ne=i(98228),q=i(82719),ue=i(61708);const n=(0,U.createContext)({currentLocale:void 0,setCurrentLocale:()=>{}});function ce({children:le}){const ge=(0,ne.W)(),Be=(0,V.zy)(),Q=(0,ue.LY)(q.HH),H=(0,se.D_)(),z=Q||H,w=(0,ue.LY)(q.S),G=(0,se.jc)(),$=w||G,ae=(0,U.useMemo)(()=>W({defaultLocale:z,locales:$},Be),[z,$,Be]),Te=(0,U.useCallback)((me,ve="replace")=>{const m=me===z?"":me,ie=new URLSearchParams(Be.search);ie.set("locale",m);const je={...Be,search:ie.toString()};ve==="push"?ge.push(je):ge.replace(je)},[z,ge,Be]),ee=(0,U.useMemo)(()=>({currentLocale:ae,setCurrentLocale:Te}),[ae,Te]);return(0,D.jsx)(n.Provider,{value:ee,children:le})}function pe(){return(0,U.useContext)(n)}function Le(le){const ge=Be=>{const Q=pe();return(0,D.jsx)(le,{...Be,...Q})};return ge.displayName=`withCurrentLocale(${le.displayName||le.name})`,ge}},17862:(Ze,Ee,i)=>{"use strict";i.d(Ee,{Ay:()=>$,iV:()=>ge,sS:()=>Le,x8:()=>Be});var D=i(10789),U=i.n(D),V=i(20817),re=i.n(V),W=i(63036),se=i.n(W),ne=i(2353),q=i.n(ne),ue=i(3638),n=i.n(ue);const ce={DRAW_FROM_QUESTION_BANK:"DRAW_FROM_QUESTION_BANK",FILL_IN_THE_BLANK:"FILL_IN_THE_BLANK",MATCHING:"MATCHING",MULTIPLE_CHOICE:"MULTIPLE_CHOICE",MULTIPLE_RESPONSE:"MULTIPLE_RESPONSE"},pe=10;var Le=(ae=>(ae.SUMMARY="SUMMARY",ae.REMAINING="REMAINING",ae.ELAPSED="ELAPSED",ae.ELAPSED_TOTAL="ELAPSED_TOTAL",ae.HIDE_TIMER="HIDE_TIMER",ae))(Le||{}),le=(ae=>(ae.SUBMIT="SUBMIT",ae.REDO_QUIZ="REDO_QUIZ",ae.REDO_COURSE="REDO_COURSE",ae.NOTHING="NOTHING",ae))(le||{});const ge={ALL:"all",NONE:"none",INCORRECT:"incorrect"},Be=se()([[re()([q()(!0),q()(ge.ALL)]),U()(ge.ALL)],[re()([q()(!1),q()(ge.NONE)]),U()(ge.NONE)],[q()(ge.INCORRECT),U()(ge.INCORRECT)],[n(),U()(ge.ALL)]]),Q="draw from question bank",H="fillin",z="matching",w="multiple choice",G="multiple response",$=ce},33733:(Ze,Ee,i)=>{"use strict";i.d(Ee,{B1:()=>pe,BN:()=>le,F:()=>ue,R6:()=>ne,eB:()=>ce,q2:()=>q});var D=i(50635),U=i(59288),V=i.n(U),re=i(23643),W=i(12786),se=i(20998);const ne=V().createContext(null),q=V().createContext(!1),ue=ge=>(0,D.jsx)(q.Provider,{value:!0,children:(0,D.jsx)(re.A,{...ge})});function n(ge){return class extends V().Component{static displayName=`withStaleTransitionState(${ge.displayName||ge.name})`;static defaultProps={onEnter:()=>{},onEntering:()=>{},onEntered:()=>{},onExit:()=>{},onExiting:()=>{},onExited:()=>{}};nodeRef=V().createRef();onEnterDelegate;onEnteringDelegate;onEnteredDelegate;onExitDelegate;onExitingDelegate;onExitedDelegate;constructor(Q){super(Q),this.state={transitionState:null},this.onEnterDelegate=this.onTransition.bind(this,"enter"),this.onEnteringDelegate=this.onTransition.bind(this,"entering"),this.onEnteredDelegate=this.onTransition.bind(this,"entered"),this.onExitDelegate=this.onTransition.bind(this,"exit"),this.onExitingDelegate=this.onTransition.bind(this,"exiting"),this.onExitedDelegate=this.onTransition.bind(this,"exited")}onTransition=(Q,...H)=>{this.setState({transitionState:Q});const z="on"+Q[0].toUpperCase()+Q.slice(1),w=this.props[z];typeof w=="function"&&w(...H)};render(){return(0,D.jsx)(ne.Provider,{value:this.state.transitionState,children:(0,D.jsx)(ge,{nodeRef:this.nodeRef,...this.props,onEnter:this.onEnterDelegate,onEntering:this.onEnteringDelegate,onEntered:this.onEnteredDelegate,onExit:this.onExitDelegate,onExiting:this.onExitingDelegate,onExited:this.onExitedDelegate})})}}}const ce=n(W.Ay),pe=n(se.A);function Le(ge){const Be=V().useContext(q),Q=V().useContext(ne),H=V().useRef(ge);return Be&&Q?.startsWith?.("exit")||(H.current=ge),H.current}function le(ge){const Be=Q=>{const H=Le(Q);return(0,D.jsx)(ge,{...H,ref:Q.ref,nodeRef:Q.ref})};return Be.displayName=`withTransitionableState(${ge.displayName||ge.name||"Component"})`,Be}},31926:(Ze,Ee,i)=>{var D={"./en-au":76645,"./en-au.js":76645,"./en-ca":97135,"./en-ca.js":97135,"./en-gb":67702,"./en-gb.js":67702,"./en-ie":6813,"./en-ie.js":6813,"./en-il":3766,"./en-il.js":3766,"./en-in":8364,"./en-in.js":8364,"./en-nz":8335,"./en-nz.js":8335,"./en-sg":82813,"./en-sg.js":82813};function U(re){var W=V(re);return i(W)}function V(re){if(!i.o(D,re)){var W=new Error("Cannot find module '"+re+"'");throw W.code="MODULE_NOT_FOUND",W}return D[re]}U.keys=function(){return Object.keys(D)},U.resolve=V,Ze.exports=U,U.id=31926},54357:()=>{},70872:()=>{},38954:()=>{},73059:()=>{},43611:()=>{},94800:()=>{},566:()=>{},82988:()=>{}}]);
