PageSourceSearch

https://eformation-dgddi-rc-rhum.netlify.app/lib/rise/c43faa34.js

js eformation-dgddi-rc-rhum.netlify.app collected 2026-10-03 10:41:19 UTC 945,526 bytes, 184 lines download raw bytes

1(globalThis.wpRiseJsonp=globalThis.wpRiseJsonp||[]).push([["learn_main_tsx-node_modules_pnpm_moment_2_30_1_node_modules_moment_locale_sync_recursive_en"],{30349(Xe){Xe.exports=function(Le){Le||(Le={});var __t,__p="";with(Le)__p+=`<style>
2  :root {
3    --color-theme-contrast-complementary-rgb: `+((__t=colorThemeContrastComplementaryRGB)==null?"":__t)+`;
4    --color-theme-contrast-complementary: `+((__t=colorThemeContrastComplementary)==null?"":__t)+`;
5    --color-theme-contrast-rgb: `+((__t=colorThemeContrastRGB)==null?"":__t)+`;
6    --color-theme-contrast: `+((__t=colorThemeContrast)==null?"":__t)+`;
7    --color-theme-rgb: `+((__t=colorThemeRGB)==null?"":__t)+`;
8    --color-theme-tint: `+((__t=colorThemeTint)==null?"":__t)+`;
9    --color-theme-transparent: `+((__t=colorThemeTransparent)==null?"":__t)+`;
10    --color-theme: `+((__t=colorTheme)==null?"":__t)+`;
11    --font-family-body: `+((__t=bodyTypeface)==null?"":__t)+`, 'Noto Sans Myanmar', sans-serif;
12    --font-family-head: `+((__t=headingTypeface)==null?"":__t)+`, 'Noto Sans Myanmar', sans-serif;
13    --font-family-ui: `+((__t=uiTypeface)==null?"":__t)+`, 'Noto Sans Myanmar', sans-serif;
14
15    --mon-theme-font-body: var(--font-family-body);
16    --mon-theme-font-heading: var(--font-family-head);
17  }
18
19  .brand--ui, .brand--ui * {
20    font-family: var(--font-family-ui) !important;
21  }
22
23  .brand--beforeHead:before {
24    font-family: var(--font-family-ui) !important;
25  }
26
27  .brand--afterHead:after {
28    font-family: var(--font-family-ui) !important;
29  }
30
31  .brand--background {
32    background-color: var(--color-theme) !important;
33  }
34
35  .brand--background-all * {
36    background-color: var(--color-theme) !important;
37  }
38
39  .brand--border {
40    border-color: var(--color-theme) !important;
41
42    @media (forced-colors: active) {
43      border-color: transparent !important;
44    }
45  }
46
47  .brand--color {
48    color: var(--color-theme) !important;
49  }
50
51  .brand--color-all * {
52    color: var(--color-theme) !important;
53  }
54
55  .brand--shadow {
56    box-shadow: 0 0 0 0.2rem var(--color-theme) !important;
57  }
58
59  .brand--shadow-all * {
60    box-shadow: 0 0 0 0.2rem var(--color-theme) !important;
61  }
62
63  .brand--fill {
64    fill: var(--color-theme) !important;
65  }
66
67  .brand--stroke {
68    stroke: var(--color-theme) !important;
69  }
70
71  .brand--beforeBackground:before {
72    background-color: var(--color-theme) !important;
73  }
74
75  .brand--beforeBorder:before {
76    border-color: var(--color-theme) !important;
77  }
78
79  .brand--beforeColor:before {
80    color: var(--color-theme) !important;
81  }
82
83  .brand--afterBackground:after {
84    background-color: var(--color-theme) !important;
85  }
86
87  .brand--afterBorder:after {
88    border-color: var(--color-theme) !important;
89  }
90
91  .brand--afterColor:after {
92    color: var(--color-theme) !important;
93  }
94
95  /* should be applied to containers where links
96     need to appear in brand color */
97  .brand--linkColor a {
98    color: var(--color-theme) !important;
99    fill: var(--color-theme) !important;
100  }
101
102  /* should be applied to containers where links
103     need to change to brand color on hover */
104  .brand--linkColorHover a:hover {
105    color: var(--color-theme) !important;
106    fill: var(--color-theme) !important;
107  }
108
109  /* should be applied to any single element that
110     needs to change color on hover */
111  .brand--hoverColor:hover {
112    color: var(--color-theme) !important;
113  }
114
115  .button.brand--background:hover { opacity: .65 !important; }
116
117  .brandHover:hover {
118    fill: var(--color-theme) !important;
119  }
120
121
122  @media (min-width: 47.9375em) { /* 768px */
123    .brand--min768--background {
124      background-color: var(--color-theme) !important;
125    }
126
127    .brand--min768--border {
128      border-color: var(--color-theme) !important;
129    }
130
131    .brand--min768--color {
132      color: var(--color-theme) !important;
133    }
134  }
135
136  @media (max-width: 47.9375em) { /* 768px */
137    .brand--max768--background {
138      background-color: var(--color-theme) !important;
139    }
140
141    .brand--max768--border {
142      border-color: var(--color-theme) !important;
143    }
144
145    .brand--max768--color {
146      color: var(--color-theme) !important;
147    }
148  }
149</style>
150`;return __p}},70963(Xe,Le,c){"use strict";c.d(Le,{cF:()=>ke,LK:()=>vs,LM:()=>Cn,TJ:()=>Fr,Ay:()=>Wo,EL:()=>Br,HC:()=>cs,V7:()=>Hr,YB:()=>ur});var A=c(8653),$=c(81783),D=c.n($),K=c(12100),J;function Y(){return K.action}function ge(){return J}var ne=c(88498),te=c(46044),s=c(33532),ye=c(91541),Te=c(84098),he=c(40069);const G=(Fe=[],ft)=>ft?.partnerContentId?Fe.concat(ft.partnerContentId):Fe,Z=(Fe,ft)=>ft?.items?.reduce(G,Fe)??Fe,ue=(Fe,ft)=>ft?.items?.reduce(Z,Fe)??Fe,be=({course:Fe,lessons:ft})=>{const Gt=ft?.reduce(ue,[])||[],Xt=Fe?.partnerContentId||null,oo=Xt?[Xt]:[],_o=new Set([...Gt,...oo]);return Array.from(_o)};var Q=c(48831),_=c.n(Q),V,ee;const F=null,ie=_()({ACTIVE:null,PREVIEW:null}),me=({themeId:Fe,themeCoverImage:ft,coverImageDefault:Gt})=>Fe==="classic"&&ee(Gt)?Gt:ft,je=Fe=>({...Fe,theme:{...Fe?.theme,hideLessonHeaders:Fe?.theme?.hideLessonHeaders??!1,showStartButton:Fe?.theme?.showStartButton??!0}});var Ie=c(44914),ve=c.n(Ie),h=c(68692),ae=c.n(h),ce=c(48819),X=c.n(ce),Ve=c(33182),Ce=c.n(Ve),De=c(89239),We=c.n(De),pe=c(22737),Re;const Ze=X()([[ae()([Ce()(!0),Ce()(pe.iV.ALL)]),ve()(pe.iV.ALL)],[ae()([Ce()(!1),Ce()(pe.iV.NONE)]),ve()(pe.iV.NONE)],[Ce()(pe.iV.INCORRECT),ve()(pe.iV.INCORRECT)],[We(),ve()(pe.iV.ALL)]]),Ye="draw from question bank",Ke="fillin",vt="matching",Je="multiple choice",Pe="multiple response",He=null;var ht=c(47302),bt=c(94992),Bt=c(12396),_t=c.n(Bt);const fs="^1.0.0";class rs extends Error{}function wn(Fe){try{if(Fe==null)return;if(typeof Fe!="object"||!("version"in Fe)||typeof Fe.version!="string")throw new rs("Missing Runtime.version");if(!_t()(Fe.version,fs))throw new rs(`Runtime.version ${Fe.version} does not satisfy ${fs}`)}catch(ft){console.warn(ft)}}const vs="rise/course/LOAD_COURSE",Jn="rise/course/UPDATE_COMPLETED_AT",Cn="rise/course/UPDATE_COURSE_PREVIEW",Ns="rise/course/UPDATE_LESSON_PREVIEW",ke="rise/course/APPLY_CHANGESET";let qn;(async()=>{try{({applyReviewDataToManifest:qn}=await c.e("webpack_container_remote_mondrian_learn-react").then(c.t.bind(c,4246,23)))}catch{}})();const oe=Y(),mt=Fe=>{if("settings"in Fe&&Fe.settings&&(0,bt.Gv)(Fe.settings)&&"revealAnswers"in Fe.settings){const Gt=Fe.settings;return{...Fe,settings:{...Fe.settings,revealAnswers:Ze(Gt.revealAnswers)}}}return Fe},Ps=Fe=>(0,ht.vm)(Fe)?(0,ht.Ww)(Fe):Fe,Ge=Fe=>Ps(mt(Fe)),eo=Fe=>({...Fe,lessons:Fe.lessons?.map(Ge)||[]}),yo=Fe=>
150{const ft=Fe.lessons?.filter(Gt=>Gt.type!=="section")||[];return{...Fe,lessonsOnly:ft}},dr=Fe=>Fe.theme==null,ln=Fe=>(0,te.MJ)((0,te.uK)(Fe)),xn=Fe=>dr(Fe)?ln(Fe):(0,te.MJ)(Fe),Xs=Fe=>je(xn(Fe)),to=(Fe,ft)=>{let Gt=(0,A.TJ)(["course"],ft,Fe).result;const Xt=(0,A.TJ)(["lessons"],ft,Gt.lessons).result;return ft.some(oo=>oo.path[0]==="mondrian")&&Gt.mondrian&&qn&&(Gt={...Gt,mondrian:qn(Gt.mondrian,ft)}),{...Gt,lessons:Xt}},St=Fe=>({...Fe,lessons:Fe.lessons?.map(s.K)||[]}),ys=(Fe,{completedAt:ft,course:Gt,favoritedAt:Xt,riseComCurrentUser:oo,riseComCourseId:_o,riseComEnrollmentType:Na,riseComLearningPathId:ja})=>{const Kt=eo(Gt),gt=yo(Kt),Vr={...gt,theme:gt.theme??(0,te.uK)(gt).theme};return{...Xs(Vr),completedAt:ft,favoritedAt:Xt,riseComCourseId:_o,riseComEnrollmentType:Na,riseComCurrentUser:oo,riseComLearningPathId:ja}},so=Fe=>({...Fe,favoritedAt:new Date}),Nt=Fe=>({...Fe,favoritedAt:null}),as=Fe=>({...Fe,completedAt:new Date().toISOString()}),is={[ye._q]:so,[ye.ut]:Nt,[vs]:ys,[Jn]:as,[Cn]:(Fe,{course:ft})=>ft,[Ns]:(Fe,{lessons:ft})=>({...Fe,lessons:ft.map(Ge)}),[ke]:to},Wo=(0,K.handle)({},is),bn=Fe=>ft=>{const{statusCode:Gt}=ft;Gt===404?Fe((0,he.cX)(!0)):ft instanceof rs&&(Fe((0,he.ZR)(!0)),console.error(ft))},no=Fe=>ft=>ft([{type:Te.O,payload:Fe},(0,he.$d)(!0)]),w=D().fromPromise(async(...Fe)=>await(0,ne.qO)(...Fe)),wt=Fe=>Fe.length===0?(0,he.$d)(!0):w(Fe).map(no),Lt=Fe=>ft=>{const{course:Gt}=ft,Xt=St(Gt),oo=be({course:Xt,lessons:Xt.lessons});Fe([oe(vs,{...ft,course:Xt,_originalLessons:Gt.lessons}),(0,he.LW)(!0),wt(oo)])},Br=()=>async Fe=>{try{wn(window.Runtime);const ft=await(0,ne.hd)();Lt(Fe)(ft),(0,ne.wW)(ft)}catch(ft){await bn(Fe)(ft)}},cs=oe(vs),Hr=oe(Cn),ur=oe(Ns),Fr=oe(ke)},61254(Xe,Le,c){"use strict";c.d(Le,{Kl:()=>D,Om:()=>J,RA:()=>Z,Sw:()=>ye,V9:()=>he,Zp:()=>ne,bf:()=>K,eQ:()=>s,i$:()=>ue,re:()=>G,sq:()=>ge,ss:()=>Te,w8:()=>Y,y1:()=>te});var A=c(12100);const $=be=>`rise/course/${be}`,D=$("BLOCKS_LESSON_COMPLETE"),K=$("BLOCKS_LESSON_INCREMENT_RETRY_ATTEMPT"),J=$("BLOCKS_LESSON_RESET"),Y=$("BLOCKS_LESSON_RETRY_SORTING_ACTIVITY"),ge=$("BLOCKS_LESSON_SET_ITEMS_PROGRESS"),ne=$("BLOCKS_LESSON_SET_MEDIA_PLAY_PROGRESS"),te=$("BLOCKS_LESSON_SET_SORTING_ITEM_RESULT"),s=(0,A.action)(D),ye=(0,A.action)(K),Te=(0,A.action)(J),he=(0,A.action)(Y),G=(0,A.action)(ge),Z=(0,A.action)(ne),ue=(0,A.action)(te)},5233(Xe,Le,c){"use strict";c.d(Le,{$Z:()=>ne,Ew:()=>J,GL:()=>K,UZ:()=>Y,_Y:()=>s,aM:()=>Te,jS:()=>te,tc:()=>ge});var A=c(16547),$=c(18849),D=c(94992);function K(V,ee){const F=V.lessons[ee];if(!(0,A.rV)(F))return V;const ie={...Te(F),id:ee},me=(0,A.b5)({courseProgress:V,lessonId:ee,updatedLessonProgress:ie});return(0,A.bo)({lessonId:ee,prevCourseProgress:V,nextCourseProgress:me})}function J(V,ee){const{lessonId:F,blockId:ie,itemId:me}=ee,je=V.lessons[F];if(!(0,A.rV)(je))return V;const Ie=je.items[ie],ve=G({blockProgress:Ie,itemId:me}),h=ue({lessonProgress:je,blockId:ie,updatedProgressBlock:ve}),ae=(0,$.hh)(h),ce=(0,A.b5)({courseProgress:V,lessonId:F,updatedLessonProgress:ae});return(0,A.bo)({lessonId:F,prevCourseProgress:V,nextCourseProgress:ce})}function Y(V,ee){const F=V.lessons[ee];if(!(0,A.rV)(F))return V;const ie=be(F),me=(0,A.b5)({courseProgress:V,lessonId:ee,updatedLessonProgress:ie});return(0,A.bo)({lessonId:ee,prevCourseProgress:V,nextCourseProgress:me})}function ge(V,{blockId:ee,lessonId:F}){const ie=V.lessons[F];if(!(0,A.rV)(ie))return V;const me=Q(ie.items[ee]),je=ue({lessonProgress:ie,blockId:ee,updatedProgressBlock:me}),Ie=(0,A.b5)({courseProgress:V,lessonId:F,updatedLessonProgress:je});return(0,A.bo)({lessonId:F,prevCourseProgress:V,nextCourseProgress:Ie})}function ne(V,ee){const{lessonId:F,blockId:ie,items:me}=ee,je=V.lessons[F];if(!(0,A.rV)(je))return V;const Ie=he({blockId:ie,lessonProgress:je,items:me}),ve=(0,A.b5)({courseProgress:V,lessonId:F,updatedLessonProgress:Ie});return(0,A.bo)({lessonId:F,prevCourseProgress:V,nextCourseProgress:ve})}function te(V,ee){const{lessonId:F,blockId:ie,itemId:me,audioVideoPlayhead:je}=ee,Ie=V.lessons[F],ve=Ie?.items?.[ie];if(!(0,A.rV)(Ie)||!ve||!("items"in ve)||!ve.items||!ve.items[me])return V;const ae={...ve.items[me],audioVideoPlayhead:je}
150,ce={...ve,items:{...ve.items,[me]:ae}},X=ue({lessonProgress:Ie,blockId:ie,updatedProgressBlock:ce}),Ve=(0,A.b5)({courseProgress:V,lessonId:F,updatedLessonProgress:X});return(0,A.bo)({lessonId:F,prevCourseProgress:V,nextCourseProgress:Ve})}function s(V,ee){const{lessonId:F,blockId:ie,itemId:me,isCorrect:je}=ee,Ie=V.lessons[F];if(!(0,A.rV)(Ie))return V;const ve=_({itemId:me,isCorrect:je,blockProgress:Ie.items[ie]}),h=(0,$.hh)(ue({lessonProgress:Ie,blockId:ie,updatedProgressBlock:ve})),ae=(0,A.b5)({courseProgress:V,lessonId:F,updatedLessonProgress:h});return(0,A.bo)({lessonId:F,prevCourseProgress:V,nextCourseProgress:ae})}const ye=V=>Object.values(V).length>0&&Object.values(V).every(ee=>ee.isComplete),Te=V=>{const ee=(0,D.s0)(V.items,(F,ie)=>{const me=(0,D.s0)(ie.items??{},(je,Ie)=>[je,{...Ie,isComplete:!0,id:Ie.id,index:Ie.index}]);return[F,{...ie,items:me,isComplete:!0}]});return{...V,isComplete:!0,items:ee,percentComplete:100}},he=({blockId:V,items:ee,lessonProgress:F})=>{const ie=F.items?.[V]??{items:{}},me=new Set(ee.map(ae=>String(ae.id))),je=(0,D.s0)(ie.items??{},(ae,ce)=>{const X=me.has(ae);return[ae,{...ce,isComplete:ce.isComplete||X,id:ce.id,index:ce.index}]}),ve=Object.keys(je).length===0||ye(je),h={...ie,id:V,items:je,...ve&&{isComplete:!0}};return Z(ue({lessonProgress:F,blockId:V,updatedProgressBlock:h}))},G=({blockProgress:V,itemId:ee})=>{if(!V.items)return V;const F=V.items[ee];return{...V,items:{...V.items,[ee]:{...F,retryAttemptCount:(F?.retryAttemptCount??0)+1}}}},Z=V=>{const ee=(0,$.hh)(V);return ee.percentComplete===100?{...ee,isComplete:!0}:ee},ue=({blockId:V,lessonProgress:ee,updatedProgressBlock:F})=>({...ee,items:{...ee.items,[V]:F}}),be=V=>{const ee=(0,D.s0)(V.items,(F,ie)=>{const me=(0,D.s0)(ie.items??{},(je,Ie)=>[je,(0,D.QD)(Ie,["isComplete","isCorrect","isViewed"])]);return[F,{id:ie.id,index:ie.index,items:me}]});return{...(0,D.QD)(V,["isComplete","percentComplete"]),items:ee}},Q=V=>({...(0,D.QD)(V,["percentViewed","correctlyAnswered"]),id:V.id,index:V.index,items:(0,D.s0)(V.items??{},(ee,F)=>[ee,(0,D.QD)(F,["isViewed","isCorrect"])]),retryAttempts:(V.retryAttempts??0)+1}),_=({isCorrect:V,itemId:ee,blockProgress:F})=>{if(!F.items)return F;const ie=F.items[ee],me={...ie,isComplete:V,isViewed:V,...ie?.isCorrect===void 0&&{isCorrect:V}},je={...F.items,[ee]:me},Ie=Object.values(je).filter(X=>X.isCorrect).length,ve={...F,items:je,correctlyAnswered:Ie,...!V&&{lastIncorrectCardId:ee}},h=(0,$.f5)(ve),ae=(0,$.QI)(h),ce=ae.percentComplete===100;return{...ae,...ce&&{isComplete:!0}}}},16547(Xe,Le,c){"use strict";c.d(Le,{Zn:()=>K,b5:()=>Y,bo:()=>ge,rV:()=>J});var A=c(82010),$=c.n(A),D=c(88498);const K=he=>!!he&&he.type==="quiz",J=he=>!!he&&he.type==="blocks",Y=({courseProgress:he,lessonId:G,updatedLessonProgress:Z})=>({...he,lessons:{...he.lessons,[G]:Z}});function ge({lessonId:he,nextCourseProgress:G,prevCourseProgress:Z}){const ue=G.lessons[he],be=Z.lessons[he];if(ue&&!$()(ue,be)&&((0,D.C2)(ue),ne({lessonId:he,courseProgress:G,prevCourseProgress:Z})),te({lessonId:he,prevCourseProgress:Z,nextCourseProgress:G})){const Q=ye(Z),_=ye(G),V=_!==Q,ee={...G,percentComplete:_};return V&&(Te({courseProgress:ee,lessonProgress:ue}),ee.percentComplete!=null&&(0,D.O9)(ee.percentComplete)),ee}return G}function ne({courseProgress:he,prevCourseProgress:G,lessonId:Z}){const ue=he.lessons?.[Z],be=G.lessons?.[Z];if(ue?.percentComplete===100&&be?.percentComplete!==100){const Q=s(ue);Q&&(0,D.aM)(Q)}}function te({lessonId:he,nextCourseProgress:G,prevCourseProgress:Z}){const ue=G.lessons?.[he];if(!ue)return!1;const be=Z.lessons?.[he]?.percentComplete===100,Q=ue.percentComplete===100,_=be!==Q,V=G.currentLesson!=null&&K(G.lessons[G.currentLesson])&&G.lessons[G.currentLesson]?.percentComplete===100;return _||V}function s(he){const{id:G}=he;if(!G)throw new Error("Cannot create lesson payload: lesson.id is missing");if(K(he)){const{passed:Z,score:ue,passingScore:be=0}=he;return{id:G,...Z!==void 0&&{passed:Z},...ue!==void 0&&{score:ue},passingScore:be}}return{id:G}}function ye(he){const{lessons:G={}}=he,Z=Object.keys(G).length;if(Z===0)return 0;const ue=Object.values(G).filter(be=>be.isComplete).length;return Math.round(ue/Z*100)}function Te({courseProgress:he,lessonProgress:G}
150){if(!he||!G)return;const Z=s(G);Z&&(0,D.vb)(he,Z)}},66350(Xe,Le,c){"use strict";c.d(Le,{B:()=>F,A:()=>me});var A=c(12100),$=c(88498),D=c(61254),K=c(5233),J=c(26481),Y=c(63230),ge=c(18849),ne=c(22737),te=c(33532),s=c(76906);const ye=Ce=>Ce&&typeof Ce=="object"&&Ce.type&&s.fT.includes(Ce.type),Te=(Ce,De)=>{const We=new Map;return Ce.forEach(pe=>{if((0,te.c)(pe)){const Re=De.find(Ze=>String(Ze.id)===String(pe.id));Re&&Re.type==="blocks"&&We.set(String(pe.id),String(Re.id))}}),We},he=(Ce,De)=>{const We={id:String(Ce.id),index:Ce.index,type:"blocks",items:{}};return typeof Ce.isComplete=="boolean"&&(We.isComplete=Ce.isComplete),typeof Ce.percentComplete=="number"&&(We.percentComplete=Ce.percentComplete),De.type==="blocks"&&De.items&&De.items.forEach((pe,Re)=>{if(pe?.id!=null&&(We.items[pe.id]={id:pe.id,index:Re,isComplete:Ce.isComplete===!0&&Re===0,items:pe.items?{}:void 0},pe.items&&Array.isArray(pe.items))){const Ze={};pe.items.forEach((Ye,Ke)=>{Ye?.id!=null&&(Ze[Ye.id]={id:Ye.id,index:Ke,isComplete:Ce.isComplete===!0})}),Object.keys(Ze).length>0&&(We.items[pe.id].items=Ze)}}),We},G=(Ce,De)=>{const We=new Set(De.map(Re=>String(Re.id))),pe=[];
150return Object.values(Ce.lessons).forEach(Re=>{ye(Re)&&(We.has(String(Re.id))||pe.push(Re))}),pe},Z=(Ce,De,We)=>{const pe={totalLegacyLessons:0,successfulMigrations:0,failedMigrations:0},Re={...Ce,lessons:{...Ce.lessons}},Ze=G(Ce,We);pe.totalLegacyLessons=Ze.length;const Ye=Te(De,We),Ke=[];return Ze.forEach(vt=>{try{const Je=Ye.get(String(vt.id))||String(vt.id),Pe=We.find(He=>String(He.id)===Je);if(Pe&&Pe.type==="blocks"){const He=he(vt,Pe);Re.lessons[String(Pe.id)]=He,String(vt.id)!==String(Pe.id)&&delete Re.lessons[String(vt.id)],pe.successfulMigrations++}else Ke.push(String(vt.id)),pe.failedMigrations++}catch(Je){console.warn(`Failed to migrate legacy lesson progress for lesson ${vt.id}:`,Je),Ke.push(String(vt.id)),pe.failedMigrations++}}),{migratedProgress:Re,orphanedLessonIds:Ke,migrationSummary:pe}},ue=Ce=>Object.values(Ce.lessons).some(ye),be=Ce=>{let De=0,We=0;const pe=[];return Object.values(Ce.lessons).forEach(Re=>{We++,ye(Re)&&(De++,pe.includes(Re.type)||pe.push(Re.type))}),{legacyCount:De,totalCount:We,legacyTypes:pe,hasLegacyProgress:De>0}},Q=(Ce,De,We)=>{if(!ue(Ce))return Ce;const pe=Z(Ce,De,We);return pe.orphanedLessonIds.length>0&&console.warn("Some legacy lessons could not be migrated:",pe.orphanedLessonIds),pe.migratedProgress},_=Ce=>`rise/course/${Ce}`,V=_("BOOKMARK_LESSON"),ee=_("LOAD_COURSE"),F=(0,A.action)(V),ie={lessons:{},percentComplete:0},me=(0,A.handle)(ie,{[D.Kl]:K.GL,[D.bf]:K.Ew,[D.Om]:K.UZ,[D.w8]:K.tc,[D.sq]:K.$Z,[D.Zp]:K.jS,[D.y1]:K._Y,[J.z_]:Y.Qv,[J.Eg]:Y.Ki,[J.be]:Y.ZL,[J.jZ]:Y.Jx,[J.Ck]:Y.pl,[J.fV]:Y.Ux,[J.jo]:Y.NZ,[J.V8]:Y.uR,[J.Z8]:Y.XW,[J.Dh]:Y.yi,[J.ug]:Y.bu,[V]:Ie,[ee]:je});function je(Ce,De){const We=De.course?.lessons??[],pe=De._originalLessons??We,Re=(0,$.y4)(ae(We));if(typeof Re!="object"||Re===null)return Ce;const Ze={...Ce,...Re};return ue(Ce)&&pe!==We?Q(Ze,pe,We):Ze}function Ie(Ce,De){return(0,$.Fc)(De),{...Ce,currentLesson:De}}const ve=({index:Ce,lessonId:De,settings:We,type:pe})=>pe==="quiz"?{id:De,index:Ce,type:pe,items:{},passingScore:Number(We?.passingScore??ne.hB)}:{id:De,index:Ce,type:"blocks",items:{}};function h(Ce){return Ce.type==="quiz"&&"settings"in Ce}function ae(Ce){return{lessons:Ce.reduce((We,pe,Re)=>h(pe)?ce({index:Re,items:pe.items,lessonId:pe.id,lessonProgress:We,settings:pe.settings,type:pe.type}):pe.type==="blocks"?ce({index:Re,items:pe.items,lessonId:pe.id,lessonProgress:We,type:pe.type}):We,{})}}function ce(Ce){const{lessonId:De,index:We,items:pe,lessonProgress:Re={},settings:Ze,type:Ye}=Ce,Ke=ve({lessonId:De,index:We,settings:Ze,type:Ye});if(pe.length===0)return{...Re,[De]:Ke};const vt=Ye==="quiz"?Ve(pe):X(pe);return{...Re,[De]:{...Ke,items:vt}}}function X(Ce){return Ce.reduce((De,We,pe)=>{const Re=We.id,Ze=We.items??[],Ye=(0,ge.BC)(Ze);return De[Re]={id:Re,index:pe,items:Ye},De},{})}function Ve(Ce){return Ce.reduce((De,We,pe)=>(De[We.id]={id:We.id,index:pe},De),{})}},26481(Xe,Le,c){"use strict";c.d(Le,{Ck:()=>Y,Dh:()=>Te,Eg:()=>s,FU:()=>ue,NC:()=>ee,Nj:()=>Q,QI:()=>G,RW:()=>ie,V8:()=>te,YC:()=>Z,Yu:()=>be,Z8:()=>ye,be:()=>K,fV:()=>ge,hy:()=>V,jZ:()=>J,jo:()=>ne,kK:()=>F,mg:()=>_,ug:()=>he,x6:()=>me,z_:()=>D});var A=c(12100);const $=je=>`rise/course/${je}`,D=$("QUIZ_LESSON_ADVANCE_STEP"),K=$("QUIZ_LESSON_CLEAR_ANSWER_SELECTION"),J=$("QUIZ_LESSON_INITIALIZE_DRAWN_QUESTIONS"),Y=$("QUIZ_LESSON_RESTART"),ge=$("QUIZ_LESSON_SELECT_QUIZ_ANSWER"),ne=$("QUIZ_LESSON_SET_ANSWER_MATCHES"),te=$("QUIZ_LESSON_SET_ANSWER_TEXT"),s=$("QUIZ_LESSON_ADVANCE_TO_END"),ye=$("QUIZ_LESSON_SET_TIME_REMAINING"),Te=$("QUIZ_LESSON_SUBMIT_ANSWER"),he=$("QUIZ_LESSON_TOGGLE_ANSWER_SELECTION"),G=(0,A.action)(D),Z=(0,A.action)(s),ue=(0,A.action)(Y),be=(0,A.action)(ge),Q=(0,A.action)(te),_=(0,A.action)(he),V=(0,A.action)(ye),ee=(0,A.action)(ne),F=(0,A.action)(Te),ie=(0,A.action)(K),me=(0,A.action)(J)},63230(Xe,Le,c){"use strict";c.d(Le,{Jx:()=>s,Ki:()=>ne,NZ:()=>G,Qv:()=>ge,Ux:()=>he,XW:()=>Z,ZL:()=>te,bu:()=>be,oO:()=>_,pl:()=>Te,uR:()=>ye,yi:()=>ue});var A=c(16547),$=c(5233),D=c(94992),K=c(15107),J=c(88498),Y=c(22737);function ge(F,{lessonId:ie,progressId:me}){const je=F.lessons[ie];if(!(0,A.Zn)(je))return F;const Ie=je.activeIndex??0,ve=me?(je.items[me]?.index??Ie)+1:Ie+1,h={...je,activeIndex:ve},ae=(0,A.b5)({courseProgress:F,lessonId:ie,updatedLessonProgress:h});return(0,A.bo)({lessonId:ie,prevCourseProgress:F,nextCourseProgress:ae})}function ne(F,ie){const me=F.lessons[ie];if(!(0,A.Zn)(me))return F;const je=Object.keys(me?.items)?.length,Ie={...me,activeIndex:je+1},ve=(0,A.b5)({courseProgress:F,lessonId:ie,updatedLessonProgress:Ie});return(0,A.bo)({lessonId:ie,prevCourseProgress:F,nextCourseProgress:ve})}function te(F,{lessonId:ie,itemId:me}){const je=F.lessons[ie];if(!(0,A.Zn)(je))return F;const Ie=je.items[me];if(!Ie)return F;const ve={...Ie,selectedIndices:[]},h=Q({lessonProgress:je,itemId:me,updatedProgressQuizItem:ve}),ae=(0,A.b5)({courseProgress:F,lessonId:ie,updatedLessonProgress:h});return(0,A.bo)({lessonId:ie,prevCourseProgress:F,nextCourseProgress:ae})}function s(F,{lessonId:ie,lessonProgress:me}){return{...F,lessons:{...F.lessons,[ie]:me}}}function ye(F,{lessonId:ie,itemId:me,text:je}){const Ie=F.lessons[ie];if(!(0,A.Zn)(Ie))return F;const ve=Ie.items[me];if(!ve)return F;const h=typeof je=="string"&&(0,K.h)(je)?(0,D.QD)(ve,["text"]):{...ve,text:je},ae=Q({lessonProgress:Ie,itemId:me,updatedProgressQuizItem:h}),ce=(0,A.b5)({courseProgress:F,lessonId:ie,updatedLessonProgress:ae});return(0,A.bo)({lessonId:ie,prevCourseProgress:F,nextCourseProgress:ce})}function Te(F,ie){const me=F.lessons[ie];if(!(0,A.Zn)(me))return F;const je=(0,D.s0)(me.items,(ae,ce)=>{const X={id:ce.id,index:ce.index};return[ae,X]}),ve={...(0,D.QD)(me,["activeIndex","originalItemProgress","passed","percentComplete","questionList","questionsDrawn","reportResults","score"]),...me.passed!==!1&&{passed:me.passed},...me.isComplete!==!1&&{isComplete:me.isComplete},retryAttempts:(me.retryAttempts??0)+1,items:je},h=(0,A.b5)({courseProgress:F,lessonId:ie,updatedLessonProgress:ve});return(0,A.bo)({lessonId:ie,prevCourseProgress:F,nextCourseProgress:h})}function he(F,{lessonId:ie,itemId:me,selectedIndex:je,shuffledAnswerIndices:Ie}){const ve=F.lessons[ie];if(!(0,A.Zn)(ve))return F;const h=ve.items[me];if(!h)return F;const ae=Ie??h.shuffledAnswerIndices;if(je==null)return F;const ce=Array.isArray(ae)&&ae[je]!=null?ae[je]:je,X={...h,selectedIndex:ce,...Array.isArray(ae)&&{shuffledAnswerIndices:ae}},Ve=Q({lessonProgress:ve,itemId:me,updatedProgressQuizItem:X}),Ce=(0,A.b5)({courseProgress:F,lessonId:ie,updatedLessonProgress:Ve});return(0,A.bo)({lessonId:ie,prevCourseProgress:F,nextCourseProgress:Ce})}function G(F,{lessonId:ie,itemId:me,matches:je}){const Ie=F.lessons[ie];if(!(0,A.Zn)(Ie))return F;const ve=Ie.items[me];if(!ve)return F;const h={...ve,matches:je},ae=Q({lessonProgress:Ie,itemId:me,updatedProgressQuizItem:h}),ce=(0,A.b5)({courseProgress:F,lessonId:ie,updatedLessonProgress:ae});return(0,A.bo)({lessonId:ie,prevCourseProgress:F,nextCourseProgress:ce})}function Z(F,{lessonId:ie,timeRemaining:me}){const je=F.lessons[ie];if(!(0,A.Zn)(je))return F;const Ie={...je,timeRemaining:me},ve=(0,A.b5)({courseProgress:F,lessonId:ie,updatedLessonProgress:Ie});return(0,A.bo)({lessonId:ie,prevCourseProgress:F,nextCourseProgress:ve})}function ue(F,{lessonId:ie,itemId:me,isCorrect:je,finalRetryAttempt:Ie,passToContinue:ve,skipLessonsIfPassed:h,skipToLessonId:ae}){const ce=F.lessons[ie];if(!(0,A.Zn)(ce))return F;const X=ce.passingScore??Y.hB,Ve=ce.items[me];if(!Ve)return F;const Ce={...Ve,isCorrect:je,isComplete:!0},De={...ce.items,[me]:Ce},We=Object.keys(De).length,pe=Object.values(De).filter(Je=>Je.isCorrect).length,Re=Object.values(De).filter(Je=>
150Je.isComplete).length,Ze=Math.round(pe/We*100),Ye=Math.round(Re/We*100);let Ke={...ce,items:De,score:Ze,percentComplete:Ye};if(Ye===100){const Je=Ze>=X,Pe=ve?Je:!0;if((0,J.X_)(Je,Ze,ie,Ie),Ke={...Ke,passed:Je,isComplete:Pe,reportResults:!0},h&&ae&&Je)return V(F,{quizId:ie,destinationId:ae,updatedLessonProgress:Ke})}const vt=(0,A.b5)({courseProgress:F,lessonId:ie,updatedLessonProgress:Ke});return(0,A.bo)({lessonId:ie,prevCourseProgress:F,nextCourseProgress:vt})}function be(F,{lessonId:ie,itemId:me,selectedIndex:je,shuffledAnswerIndices:Ie}){const ve=F.lessons[ie];if(!(0,A.Zn)(ve))return F;const h=ve.items[me];if(!h)return F;const ae=Ie??h.shuffledAnswerIndices;if(je==null)return F;const ce=Array.isArray(ae)&&ae[je]!=null?ae[je]:je,X=h.selectedIndices??[],Ce=X.includes(ce)?X.filter(Ye=>Ye!==ce):[...X,ce],{selectedIndices:De,...We}=h,pe=Ce.length>0?{...We,selectedIndices:Ce,...Array.isArray(ae)&&{shuffledAnswerIndices:ae}}:{...We,...Array.isArray(ae)&&{shuffledAnswerIndices:ae}},Re=Q({lessonProgress:ve,itemId:me,updatedProgressQuizItem:pe}
150),Ze=(0,A.b5)({courseProgress:F,lessonId:ie,updatedLessonProgress:Re});return(0,A.bo)({lessonId:ie,prevCourseProgress:F,nextCourseProgress:Ze})}function Q({itemId:F,lessonProgress:ie,updatedProgressQuizItem:me}){return{...ie,items:{...ie.items,[F]:me}}}function _(F,ie){const{id:me,passed:je,passingScore:Ie,score:ve,retryAttempts:h}=ie,ae=[je,h,ve];if(!(ae.length===3&&ae.every(pe=>pe!=null)))return F;const X=F.lessons?.[me]?.items??{},Ve=Object.keys(X).length+1,Ce=F.lessons?.[me];if(!Ce)return F;const De={...Ce,isComplete:!0,activeIndex:Ve,reportResults:!0,passed:je,passingScore:Ie,percentComplete:100,retryAttempts:h,score:ve};return{...F,lessons:{...F.lessons,[me]:De}}}function V(F,{quizId:ie,destinationId:me,updatedLessonProgress:je}){const Ie=(0,A.b5)({courseProgress:F,lessonId:ie,updatedLessonProgress:je}),ve=(0,A.bo)({lessonId:ie,prevCourseProgress:F,nextCourseProgress:Ie}),h=Object.keys(ve.lessons),ae=h.findIndex(Ve=>Ve===ie),ce=h.findIndex(Ve=>Ve===me);return ae===-1||ce===-1||ce<=ae?ve:h.slice(ae+1,ce).reduce((Ve,Ce)=>{const De=Ve.lessons[Ce];if(!De)return Ve;let We;(0,A.Zn)(De)?We=ee(De):We=(0,$.aM)(De);const pe=(0,A.b5)({courseProgress:Ve,lessonId:Ce,updatedLessonProgress:We});return(0,A.bo)({lessonId:Ce,prevCourseProgress:Ve,nextCourseProgress:pe})},ve)}function ee(F){const ie=Object.fromEntries(Object.entries(F.items||{}).map(([me,je])=>[me,{...je,isComplete:!0,isCorrect:!0}]));return(0,J.X_)(!0,100,F.id,!1),{...F,items:ie,isComplete:!0,passed:!0,percentComplete:100,reportResults:!0,score:100}}},74724(Xe,Le,c){"use strict";c.d(Le,{A:()=>D,G:()=>K});var A=c(12100);const $="rise/features/SET_FEATURE_FLAGS",D=(0,A.handle)({},{[$]:(J,Y)=>Y}),K=(0,A.action)($)},39801(Xe,Le,c){"use strict";c.d(Le,{A:()=>ge,r:()=>ne});var A=c(12100),$=c(70963),D=c(93949),K=c(40069);const J=(te,{fonts:s})=>[...te,...s],Y=(te,{fonts:s})=>s,ge=(0,A.handle)([],{[$.LK]:J,[$.LM]:Y}),ne=te=>s=>{(0,D.U2)(te,()=>{s((0,K.m7)(!0))})}},29046(Xe,Le,c){"use strict";c.d(Le,{Ay:()=>te,Wp:()=>ge});var A=c(12100),$=c(70963),D=c(8653);const K="rise/l10n/TOGGLE_LOCALE_SELECTOR",J=(s,{l10n:ye})=>ye?{...s,...ye}:s,Y=(s,ye)=>(0,D.TJ)(["l10n"],ye,s).result,ge=(0,A.action)(K),ne=(s,ye)=>s&&{...s,...!ye&&{localeSelectorOptions:void 0},showLocaleSelector:ye},te=(0,A.handle)(null,{[$.LK]:J,[$.LM]:J,[$.cF]:Y,[K]:ne})},53166(Xe,Le,c){"use strict";c.d(Le,{A:()=>be,R:()=>Q});var A=c(12100),$=c(81783),D=c.n($),K=c(9391),J=c.n(K),Y=c(7334),ge=c.n(Y);const te=J()(2,_=>ge()((0,A.error)(_),(0,A.action)(_)));var s=c(13578);const ye="rise/learningPathUpNext/FETCH_LP_UP_NEXT",Te="rise/learningPathUpNext/FETCH_LP_UP_NEXT_PENDING",he={isPending:!1,isSuccess:!1,learningPathComplete:!1,nextCourse:{}},G=_=>!("id"in _),Z=(_,V)=>{const ee=G(V);return{..._,isPending:!1,isSuccess:!0,learningPathComplete:ee,lpHasFailedQuiz:V.lpHasFailedQuiz,nextCourse:ee?{}:V}},ue=_=>({..._,isPending:!0}),be=(0,A.handle)(he,{[ye]:(0,A.onSuccess)(Z),[Te]:ue}),Q=_=>[(0,A.action)(Te),te(ye)(D().fromPromise(s.RR)(_))]},84098(Xe,Le,c){"use strict";c.d(Le,{O:()=>$});const $=(D=>`rise/partnerContent/${D}`)("SET_ALL_PARTNER_CONTENT")},91541(Xe,Le,c){"use strict";c.d(Le,{_q:()=>D,nF:()=>J,pp:()=>Y,ut:()=>K});var A=c(12100);const $=ge=>`rise/rise-com/${ge}`,D=$("FAVORITE_ADDED"),K=$("FAVORITE_REMOVED"),J=()=>(0,A.action)(D,void 0),Y=()=>(0,A.action)(K,void 0)},18235(Xe,Le,c){"use strict";c.d(Le,{Ay:()=>Z,D2:()=>V,NM:()=>F,Se:()=>be,gA:()=>_,ts:()=>Q,u:()=>ee});var A=c(12100);const $="rise/search/RESET_SEARCH",D="rise/search/SET_SEARCH_ACTIVE",K="rise/search/SET_SEARCH_ACTIVE_LESSONS",J="rise/search/SET_SEARCH_TRANSLATIONS",Y="rise/search/SET_SEARCH_LESSONS",ge="rise/search/SET_SEARCH_TERM",ne={active:!1,activeLessons:[],translations:{},lessons:[],term:null},te=(ie,me)=>me?{...ne,active:ie.active}:ie,s=(ie,me)=>({...ie,active:me}),ye=(ie,me)=>({...ie,activeLessons:me}),Te=(ie,me)=>({...ie,translations:me}),he=(ie,me)=>({...ie,lessons:me}),G=(ie,me)=>({...ie,term:me}),Z=(0,A.handle)(ne,{[$]:te,[D]:s,[K]:ye,[J]:Te,[Y]:he,[ge]:G}),ue=ie=>(0,A.action)(ie),be=ue($),Q=ue(D),_=ue(K),V=ue(J),ee=ue(Y),F=ue(ge)},23077(Xe,Le,c){"use strict";c.d(Le,{Ay:()=>te,pb:()=>s,xi:()=>ye});var A=c(12100);const $=Te=>`rise/sessionPreferences/${Te}`,D=$("LOAD_SESSION_PREFERENCES"),K=$("SET_PREFERS_KEYBOARD_NAVIGATION"),J=$("SET_STARTING_COURSE_LESSON_SELECTED"),Y={prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},ge=(Te,he)=>({...Te,prefersKeyboardNavigation:he}),ne=(Te,he)=>({...Te,startedCourseWithLessonSelected:he}),te=(0,A.handle)(Y,{[D]:(Te,he)=>({...Te,...he}),[K]:ge,[J]:ne}),s=()=>(0,A.action)(D,null),ye=(0,A.action)(K)},70695(Xe,Le,c){"use strict";c.d(Le,{Ay:()=>Y,ty:()=>ne,zP:()=>ge});var A=c(76906),$=c(12100);const D="rise/slidesUI/SET_SLIDE_DIRECTION",K="rise/slidesUI/SET_EXITING_SLIDE_OFFSET",J={slideDirection:A.fY.UP,exitingSlideOffset:0},Y=(0,$.handle)(J,{[D]:(te,s)=>({...te,slideDirection:s}),[K]:(te,s)=>({...te,exitingSlideOffset:s})}),ge=(0,$.action)(D),ne=(0,$.action)(K)},40069(Xe,Le,c){"use strict";c.d(Le,{$2:()=>s,$d:()=>he,Ay:()=>Y,LW:()=>ne,ZR:()=>Te,cX:()=>ye,m7:()=>ge,zq:()=>te});var A=c(12100);const D=(G=>`rise/status/${G}`)("SET_LOADED"),K=(G,Z)=>({...G,...Z}),J={connection:"connected",courseLoaded:!1,fatalError:!1,fontsLoaded:!1,notFound:!1,partnerContentLoaded:!1},Y=(0,A.handle)(J,{[D]:K}),ge=(G=!1)=>(0,A.action)(D,{fontsLoaded:G}),ne=(G=!1)=>(0,A.action)(D,{courseLoaded:G}),te=(G="connected")=>(0,A.action)(D,{connection:G}),s=(G=!1)=>(0,A.action)(D,{coverLoaded:G}),ye=(G=!1)=>(0,A.action)(D,{notFound:G}),Te=(G=!1)=>(0,A.action)(D,{fatalError:G}),he=(G=!1)=>(0,A.action)(D,{partnerContentLoaded:G})},10605(Xe,Le,c){"use strict";c.d(Le,{A:()=>J,s:()=>Y});var A=c(12100);const D=(ge=>`rise/ui/${ge}`)("SET_SKIP_TO_NAV_BUTTON_UI"),K={skipToNavButton:null},J=(0,A.handle)(K,{[D]:(ge,ne)=>({...ge,skipToNavButton:ne})}),Y=(0,A.action)(D)},35873(Xe,Le,c){"use strict";c.r(Le),c.d(Le,{selectLabelsMap:()=>D,useLabelsMap:()=>K});var A=c(82486),$=c(47543);function D(J,Y){return Y?.l10n?.localeLabelSets?.[J]?.labels||Y?.courseLabels?.labels}function K(){const{currentLocale:J}=(0,$.nY)();return(0,A.d4)(Y=>D(J,Y))}},82486(Xe,Le,c){"use strict";c.d(Le,{Kq:()=>Ce,Ng:()=>De,JD:()=>We,M_:()=>pe,wA:()=>Re,d4:()=>Ze});var A=c(7927),$=c(70963),D=c(12100);const K=(Ye,{labelSet:Ke})=>({...Ye,...Ke}),J=(0,D.handle)({},{[$.LK]:K});var Y=c(66350),ge=c(74724),ne=c(39801);const te={isPreview:window.viewType==="preview"},s=((Ye=te)=>Ye);var ye=c(29046),Te=c(53166),he=c(84098);const G=(Ye,Ke)=>{const vt=Ye.content.findIndex(Pe=>Pe.id===Ke.id),Je=[...Ye.content];return vt===-1?Je.push(Ke):Je[vt]=Ke,{...Ye,content:Je}},Z=(Ye,Ke)=>Ke.reduce(G,Ye),ue={[he.O]:Z},be=(0,D.handle)({content:[]},ue);var Q=c(18235),_=c(23077),V=c(70695),ee=c(40069),F=c(22562);const ie={audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null},me=(Ye,Ke)=>Ke.audioPlayerId?{...Ye,audioPlayerIdOpen:Ke.audioPlayerId,focusing:Ke.focusing??!1,refocusTarget:Ke.refocusTarget??null,transcriptMedia:Ke.transcriptMedia??null}:Ye,je=()=>({audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null}),Ie=(Ye,Ke)=>Ye.audioPlayerIdOpen?Ke.audioPlayerId?{...Ye,audioPlayerIdOpen:Ke.audioPlayerId,focusing:Ke.focusing??Ye.focusing,transcriptMedia:Ke.transcriptMedia??Ye.transcriptMedia}:je():Ye,ve={[F.l6]:me,[F.ju]:je,[F.Y8]:Ie},h=(0,D.handle)(ie,ve);var ae=c(10605),ce=c(7507);const X=ce.BI?{learningPathUpNext:Te.A}:{},Ve=(0,A.HY)({course:$.Ay,courseLabels:J,courseProgress:Y.A,features:ge.A,fonts:ne.A,global:s,l10n:ye.Ay,partnerContent:be,search:Q.Ay,sessionPreferences:_.Ay,slidesUI:V.Ay,status:ee.Ay,transcriptPanel:h,ui:ae.A,...X}),{Provider:Ce,connect:De,dispatch:We,store:pe,useDispatch:Re,useSelector:Ze}=(0,A.Nv)(Ve)},33532(Xe,Le,c){"use strict";c.d(Le,{K:()=>ve,c:()=>Ie});var A=c(76906);const $={padding:"medium",alignment:"left"},D={embed:{aspectRatio:"16:9"},video:{},labeledgraphic:{hotspotStyle:"numbers"},process:{navigation:"stepped"},sorting:{feedback:"immediate"},timeline:{orientation:"vertical"},paragraph:{fontSize:"medium"}},K=(h,ae=0)=>`item_${h}_${ae}`,J=(h,ae)=>[{id:K(`${ae}_placeholder`,0),placeholder:!0,type:h,title:`Add ${h} content`}],Y=h=>({...$,...D[h]??{}}),ge=h=>typeof h=="string"?h.replace(/<p><br><\/p>/g,""):h,ne=h=>h.map(ae=>{if(ae&&typeof ae=="object"&&!Array.isArray(ae)){const ce={};for(const[X,Ve]of Object.entries(ae))ce[X]=ge(Ve);return ce}return ae}),te=h=>["Introduction","Summary"].map((ae,ce)=>({id:K(`${h}_process`,ce),title:ae,type:ae.toLowerCase(),description:null,isHidden:!0})),s=(h,ae)=>[{id:K(`${ae}_text`,0),paragraph:h}],ye=(h,ae)=>[...te(ae),...h],Te=(h,ae)=>[{id:K(`${ae}_video`,0),caption:"",media:h}],he=(h=[],ae)=>({family:"multimedia",id:K(`${ae}_embed`,0),items:h.length?h:J("embed",ae),media:{},settings:Y("embed"),type:"multimedia",variant:"embed"}),G=(h,ae,ce)=>({family:"interactive-fullscreen",id:K(`${ce}_labeledgraphic`,0),items:h,media:ae,settings:Y("labeledgraphic"),type:"interactive",variant:"labeledgraphic"}),Z=(h,ae)=>({family:"interactive-fullscreen",id:K(`${ae}_process`,0),items:ne(h),media:{},settings:Y("process"),type:"interactive",variant:"process"}),ue=({items:h,piles:ae},ce)=>({family:"interactive-fullscreen",id:K(`${ce}_sorting`,0),items:h,media:{},piles:ae,settings:Y("sorting"),type:"interactive",variant:"sorting"}),be=(h,ae)=>({family:"text",id:K(`${ae}_text`,0),items:ne(h),settings:Y("paragraph"),type:"text",variant:"paragraph"}),Q=(h,ae)=>({family:"interactive-fullscreen",id:K(`${ae}_timeline`,0),items:h,media:{},settings:Y("timeline"),type:"interactive",variant:"timeline"}),_=(h,ae={},ce)=>({family:"multimedia",id:K(`${ce}_video`,0),items:h?.video?Te(h,ce):J("video",ce),media:{},settings:{...ae,...Y("video")},type:"multimedia",variant:"video"}),V=({items:h=[]},ae)=>he(h.map(({icon:ce,...X})=>X),ae),ee=({items:h=[],media:ae},ce)=>G(h.map(({hasMedia:X,...Ve})=>Ve),ae,ce),F=({items:h=[]},ae)=>{const ce=h.map(X=>({...X,isHidden:!1,type:"step"}));return Z(ye(ce,ae),ae)},ie=({items:h=[]},ae)=>Q(h.map(({linePosition:ce,...X})=>X),ae),me=(h,ae)=>be(s(h,ae),ae),je=(h,ae)=>{switch(h.type){case"embed":return V(h,ae);case"map":return ee(h,ae);case"process":return F(h,ae);case"sorting":return ue(h,ae);case"timeline":return ie(h,ae);case"screencast":case"slidecast":case"video":return _(h.media,h.settings,ae);default:throw new Error(`Unknown legacy lesson type: ${h.type}`)}},Ie=h=>typeof h?.type=="string"&&A.fT.includes(h.type),ve=h=>{if(!Ie(h))return h;const ae=String(h.id),ce={description:"",icon:"Article",type:"blocks"}
150,X=[je(h,ae)],Ve=typeof h.description=="string"?h.description.trim():"";return Ve&&X.unshift(me(Ve,`${ae}_desc`)),{...h,...ce,items:X,media:{}}}},88498(Xe,Le,c){"use strict";c.d(Le,{Fc:()=>_e,hd:()=>fr,qO:()=>Se,O9:()=>vr,X_:()=>io,jr:()=>On,_$:()=>jl,JK:()=>s0,GJ:()=>kl,y4:()=>kt,As:()=>za,Hm:()=>Zr,Wk:()=>gr,og:()=>ic,GS:()=>Ua,xr:()=>Yr,IV:()=>Al,bb:()=>Rl,o1:()=>un,wW:()=>Os,vb:()=>Js,aM:()=>ds,C2:()=>us,xS:()=>Pl,no:()=>t0,m5:()=>Cr});var A=c(23655),$=c(16323),D=c(44914),K=c.n(D),J=c(31735),Y=c.n(J),ge=c(49034),ne=c.n(ge),te=c(95353),s=c.n(te),ye=c(97285),Te=c.n(ye),he=c(19892),G=c.n(he),Z=c(65301),ue=c.n(Z),be=c(16997),Q=c.n(be),_=c(5651),V=c.n(_),ee=c(73333),F=c.n(ee),ie=c(37262),me=c.n(ie),je=c(58862),Ie=c.n(je),ve=c(77592),h=c.n(ve),ae=c(98757),ce=c.n(ae);const X=le=>Y()($.QZ,le),Ve=le=>ne()({[le]:$.QZ}),Ce=({startTime:le,stopTime:ze})=>ze-le,De=le=>{switch(le.type){case"FILL_IN_THE_BLANK":return Pe(le);case"MATCHING":return Jn(le);default:return Ze(le)}},We=le=>{switch(le.type){case"FILL_IN_THE_BLANK":return Pe(le);case"MATCHING":return Jn(le);case"MULTIPLE_CHOICE":return ht(le);case"MULTIPLE_RESPONSE":return Bt(le);default:return ht(le)}},pe=({isUnfinished:le,item:ze,itemProgress:dt})=>{switch(ze.type){case"FILL_IN_THE_BLANK":return He(le)(dt);case"MATCHING":return Cn(ze,le)(dt);case"MULTIPLE_CHOICE":return bt(ze,le)(dt);case"MULTIPLE_RESPONSE":return _t(ze,le)(dt);default:return bt(ze,le)(dt)}},Re=le=>[le],Ze=le=>{const ze=le.answers||[];if(le.shuffledAnswerIndices&&Array.isArray(le.shuffledAnswerIndices)){const dt=[];return ze.forEach((Ct,es)=>{const zs=le.shuffledAnswerIndices[es];dt[zs]=Ct}),dt.map(Ve("title"))}return ze.map(Ve("title"))},Ye=X(Ie()("id")),Ke=X(Ie()("title")),vt=le=>ze=>s()(h()("id",ze),Ze(le)),Je=le=>G()(F())(Ze(le)),Pe=Y()(me()("title"),Ze),He=le=>ue()(K()(le),K()(""),X(Ie()("text"))),ht=le=>Y()(vt(le),Ie()("correct"))(le),bt=(le,ze)=>ue()(K()(ze),K()([]),dt=>{const Ct=Ie()("selectedIndex",dt);return Ct===void 0?[]:Re(Je(le)(Ct))}),Bt=le=>Y()(Te(),Q()(vt(le)),Ie()("corrects"))(le),_t=(le,ze)=>ue()(K()(ze),K()([]),dt=>{const Ct=Ie()("selectedIndices",dt)||[];return Te()(Ct.map(es=>Re(Je(le)(es))))}),fs=({sourceId:le,sourceTitle:ze,targetId:dt,targetTitle:Ct})=>({source:{id:`source_${le}`,title:ze},target:{id:`target_${dt}`,title:Ct}}),rs=X(Ie()("matchTitle")),wn=le=>{const ze=Ye(le);return fs({sourceId:ze,sourceTitle:Ke(le),targetId:ze,targetTitle:rs(le)})},vs=le=>(ze,dt)=>{const Ct=Ze(le),es=Ct.find(Yo=>Yo.id===dt),zs=Ct.find(Yo=>Yo.id===ze);return fs({sourceId:Ye(es),sourceTitle:Ke(es),targetId:Ye(zs),targetTitle:rs(zs)})},Jn=Y()(Q()(wn),Ze),Cn=(le,ze)=>ue()(K()(ze),K()([]),Y()(ce(),V()(vs(le)),Ie()("matches")));var Ns=c(42662),ke=c(78638),qn=c(5233),oe=c(63230),mt=c(7507),Ps=c(6898),Ge=c(50283),eo=c.n(Ge);const yo=le=>le!==void 0,ln=eo()(yo,Y()(JSON.parse,Ps.Base64.decode)),Xs=(le,ze)=>window.courseData?le(window.courseData):window.course?{course:le(window.course),media:[]}:ze;var to=c(54811),St=c.n(to),ys=c(45976),so=c.n(ys),Nt=c(2396),as,is;const bn=`${(0,mt._$)("RBC_URI")}/api/partner_content`,no=null,w=St()(`${bn}/`),Lt={transformRequest:[(le,ze)=>(ze.Authorization=`Bearer ${(0,Nt.gf)()}`,le)],headers:{"Content-Type":"application/json"}},Br=()=>is({...Lt,url:no}).toPromise().then(as(["data","types"])),cs=le=>is({...Lt,url:w(le)}).toPromise().then(as(["data","content"])),Hr=le=>(0,Nt.Em)({method:"POST",url:bn,data:JSON.stringify({ids:le}),...Lt}).map(so()(["data","content"]));var ur=c(36087),Fr=c.n(ur),Fe=c(98283),ft=c.n(Fe);const Gt=(0,mt._$)("SERVICE_ENV")==="prod",Xt=Gt?"com":"zone",_o=Fr()(JSON.stringify,ft()(new RegExp(`https://images.riseusercontent.${Xt}/`,"g"),`${(0,mt._$)("IMAGES_URI")}/`),ft()(new RegExp(`https://riseusercontent.${Xt}/`,"g"),`${(0,mt._$)("CDN_USER_CONTENT_URI")}/`),ft()(new RegExp(`https://video.rise.${Xt}/`,"g"),`https://video.riseusercontent.${Xt}/`),eo()(K()(!Gt),ft()(new RegExp("https://video.rise.com/","g"),"https://video.riseusercontent.zone/")),JSON.parse);var Na=c(11253),ja=c.n(Na),Kt=c(1404),gt=c.n(Kt),Vr=c(88747),ka=c.n(Vr),hr=c(54425),zr=c.n(hr),Sl=c(17193),it=c.n(Sl),ws=c(84134),Lo=c.n(ws),Aa=c(5832),Go=c.n(Aa),Ra=c(2639),Eo=c.n(Ra),$i=c(79443),st=c.n($i),Pa=c(3770),Ko=c.n(Pa),Wi=c(51335),wa=c.n(Wi),_i=c(35224),Ls=c.n(_i),Ma=c(97110),gs=c.n(Ma),Ur=c(57819),Qo=c.n(Ur),Gi=c(81619),dn=c.n(Gi),Oa=c(15509),Ms=c.n(Oa);const mr=le=>!!le,ls={[ke.En]:["activeIndex",it()],[ke.Ay]:["audioVideoPlayhead",Number],[ke.l7]:["isComplete",mr],[ke.Ko]:["correctlyAnswered",it()],[ke.WY]:["percentComplete",it()],[ke.sZ]:["retryAttempts",it()],[ke.jw]:["score",it()],[ke.eZ]:["currentTime",it()],[ke.Ze]:["percentViewed",it()],[ke.mj]:["reportResults",it()],[ke.p3]:["passed",it()],[ke.ft]:["passingScore",it()],[ke.pd]:["questionsDrawn",it()],[ke.ce]:["questionList",Q()(Q()(it()))],[ke.M$]:["timeRemaining",Number]},Ki=le=>(ze,dt)=>
150gt()([zr()(ls[dt])],st()(ls[dt])(ze),le),$r=le=>(ze,dt)=>{let Ct=st()(Es[dt])(ze);return dt===ke.fd&&(Ct=Ct(Ie()("items",le))),{[zr()(Es[dt])]:Ct}},Da=le=>ze=>{const dt=le?.[ze.index];return Ms()(()=>Go()(dt),()=>Y()(wa()(ze),Ls(),ce(),V()($r(ze)))(dt))(ze)},Cs=le=>Q()(Da(le)),ro=Y()(Ls(),ce(),V()($r(null))),To=le=>ze=>{const dt=Ie()(ke.fd,le),Ct=Ie()("items",ze);return Y()(eo()(()=>ja()([ka()(ke.ce),h()(ke.pd,!0),()=>!Go()(dt)])(le),es=>{const zs=Q()(ro,dt);return gt()("originalItemProgress",zs,es)}),wa()(ze),Ms()(()=>Lo()(dt),dn()(Ko()("items"),Cs(dt)(Ct))),Ls(),ce(),V()(Ki(ze)))(gs()(Eo()(ls),le))};function Qi(le,ze){const dt=Ie()("lessons",ze),Ct=es=>{const zs=Ie()(es.index,dt);return Ms()(()=>Go()(zs),To(zs))(es)};return Ms()(()=>Lo()(dt),Y()(gt()("percentComplete",Qo()(0,ke.WY,ze)),ne()({lessons:Q()(Ct)})))(le)}const Es={[ke.Ay]:["audioVideoPlayhead",Number],[ke.Ko]:["correctlyAnswered",it()],[ke.l7]:["isComplete",mr],[ke.w5]:["isCorrect",mr],[ke.Wj]:["isViewed",mr],[ke.fd]:["items",Cs],[ke.BW]:["percentViewed",it()],[ke.qX]:["matches",it()],[ke.sZ]:["retryAttemptCount",Number],[ke.Pz]:["selectedIndex",it()],[ke.Ig]:["selectedIndices",it()],[ke.JG]:["shuffledAnswerIndices",it()],[ke.S$]:["text",it()]};var Zi=c(8486),Rt=c.n(Zi),Yi=c(41211),Mn=c.n(Yi),Xi=c(95932),Qt=c.n(Xi);const Wr={activeIndex:[ke.En,it()],audioVideoPlayhead:[ke.Ay,Number],correctlyAnswered:[ke.Ko,it()],currentTime:[ke.eZ,it()],isComplete:[ke.l7,Number],passingScore:[ke.ft,it()],percentComplete:[ke.WY,it()],percentViewed:[ke.Ze,it()],retryAttempts:[ke.sZ,it()],score:[ke.jw,it()],questionsDrawn:[ke.pd,it()],questionList:[ke.ce,Q()(Q()(it()))],reportResults:[ke.mj,it()],passed:[ke.p3,it()],timeRemaining:[ke.M$,Number]},Mt=(le,ze)=>({[zr()(jt[ze])]:st()(jt[ze])(le)}),Ji=le=>Y()(Ms()(Lo(),Mn()(Ie()("index",le))),Ls(),ce(),V()(Mt))(Qt()(Lo(),gs()(Eo()(jt),le))),Ba=Y()(Ls(),ce(),Q()(Ji)),_r=(le,ze)=>({[zr()(Wr[ze])]:st()(Wr[ze])(le)});function qi(le){const ze=Ie()("items",le),dt=Ie()("index",le),Ct=Ms()(Rt()(Go(),Lo()),Ba)(ze);return Y()(Mn()(dt),Ms()(()=>Rt()(Go(),Lo())(Ct),gt()(ke.fd,Ct)),Ls(),ce(),V()(_r))(gs()(Eo()(Wr),le))}const $t=Y()(Mn()(ke.WY),Qo()(0,"percentComplete")),jt={audioVideoPlayhead:[ke.Ay,Number],correctlyAnswered:[ke.Ko,it()],isComplete:[ke.l7,Number],isCorrect:[ke.w5,Number],isViewed:[ke.Wj,Number],items:[ke.fd,Ba],matches:[ke.qX,it()],percentViewed:[ke.BW,it()],retryAttemptCount:[ke.sZ,Number],selectedIndex:[ke.Pz,it()],selectedIndices:[ke.Ig,Q()(Number)],shuffledAnswerIndices:[ke.JG,Q()(Number)],text:[ke.S$,it()]},ao=le=>window.env?.[le],Gr=le=>`${ao("CDN_USER_CONTENT_URI")}/${le}`,pr=()=>!!window.shareId,Kr=()=>!!window.contentId,Ha=()=>!!window.snapshotId,ec=()=>!!window.shareId&&!!window.hasPassword,tc=Kr()&&!mt.BI?_o:le=>le,rc={fetch:()=>{if(Va.isExport||window.courseData||window.course)return Xs(ln,{});{const le=()=>window.shareId?`${ao("RISE_RUNTIME_URI")}/boot/share/${window.shareId}`:Kr()?`${ao("RISE_RUNTIME_URI")}/boot/businessContent/${window.contentId}`:Ha()?`${ao("RISE_RUNTIME_URI")}/boot/snapshot/${window.snapshotId}`:`${ao("RISE_RUNTIME_URI")}/boot/${window.courseId}`;return(0,Ns.Em)({method:"GET",url:le(),json:!0,withCredentials:!0,timeout:3e4}).then(Ns.lZ).then(ze=>typeof ze=="object"?ze:ln(ze)).then(tc)}},fetchPartnerContent:le=>Va.isExport||window.partnerContent?window.partnerContent.content:Hr(le).toPromise(),getEnv:ao,isPasswordProtected:ec,isShare:pr,isSnapshotPreview:Ha,resolvePath:Gr,verifySharePassword:le=>(0,Ns.Em)({method:"POST",url:`${ao("RISE_RUNTIME_URI")}/password`,data:{shareId:window.shareId,password:le},json:!0}).then(ze=>ze.body)},Qr=(le,{id:ze,type:dt,...Ct})=>dt==="quiz"?(0,oe.oO)(le,{id:ze,...Ct}):(0,qn.GL)(le,ze),ac=(le,ze)=>le+((ze||{})[ke.l7]||0),Fa=(le,ze)=>(dt,{id:Ct,type:es,...zs})=>ze.lessons[Ct]?{...dt,...le(Qr(ze,{id:Ct,type:es,...zs}).lessons[Ct])}:dt;function Nl(le,ze,dt){const Ct=ze.reduce(Fa(le,dt),{}),es=Object.keys(dt.lessons||{}).length,zs=Object.values(Ct).reduce(ac,0),Yo=Math.round(zs/es*100);return{lessons:Ct,p:Yo}}window.Rise=Object.assign(window.Rise||{},{completeLessons:Nl,decodeCourseProgress:Qi,encodeCourseProgress:$t,encodeLessonProgress:qi});const Va={...rc,...window.Runtime??{}},nt=Va,jl=le=>window.env?.[le],kl=le=>nt.getMasteryScore!=null?nt.getMasteryScore(le):le.passingScore,Al=le=>{if(nt.onCreateHistory!=null)return nt.onCreateHistory(le)},fr=(le={})=>nt.fetch!=null?Promise.resolve(nt.fetch()):Promise.resolve(le),Se=(le=[])=>{if(nt.fetchPartnerContent!=null)return nt.fetchPartnerContent(le)},_e=le=>{if(nt.bookmark!=null)return nt.bookmark(le)},kt=le=>nt.getProgress!=null?nt.getProgress(le):le,ds=le=>nt.setLessonComplete!=null?nt.setLessonComplete(le):le,us=le=>nt.setLessonProgress!=null?nt.setLessonProgress(le):le,Js=(le,ze)=>nt.setCourseProgress!=null?nt.setCourseProgress(le,ze):le,vr=le=>{if(nt.finish!=null)return nt.finish(le)},io=(le,ze,dt,Ct)=>{nt.finishQuiz!=null&&nt.finishQuiz(le,ze,dt,Ct)},On=(le,ze,dt,Ct)=>{nt.finishStoryline!=null&&nt.finishStoryline(le,ze,dt,Ct)},za=()=>nt.isComplete!=null?nt.isComplete():null,Zr=()=>nt.isExport!=null?nt.isExport():!1;
150function gr(){if(nt.isExport!=null){const le=window.partnerContent?.content;return nt.isExport()&&!!le}return!1}const Ua=()=>nt.isShare!=null?nt.isShare():!1,Yr=()=>nt.isSnapshotPreview!=null?nt.isSnapshotPreview():!1,ic=()=>nt.isPasswordProtected!=null?nt.isPasswordProtected():!1,un=le=>{const ze=le||"";return nt.resolvePath!=null?ze.startsWith("http")||ze.startsWith("data:")||ze.startsWith("//")?ze:nt.resolvePath(ze):ze.startsWith("data:")||ze.startsWith("http")||ze.startsWith("//")?ze:`/${ze}`},Cr=le=>nt.verifySharePassword!=null?nt.verifySharePassword(le):Promise.resolve({isValid:!0}),Rl=le=>{if(nt.reportAnswer!=null){const{id:ze,isCorrect:dt,isUnfinished:Ct=!1,item:es,itemProgress:zs,duration:Yo,retryAttempts:Ml,title:o0}=le,{id:Ol,title:cc,type:Dl}=es;return nt.reportAnswer({id:ze,type:Dl,isCorrect:dt,itemId:Ol,questionTitle:(0,$.QZ)(cc),quizTitle:(0,$.QZ)(o0),retryAttempts:Ml,answers:De(es),correctResponse:We(es),response:pe({isUnfinished:Ct,item:es,itemProgress:zs}),isUnfinished:Ct,latency:Ce(Yo)})}return!1},t0=le=>{if(nt.startLesson!=null)return nt.startLesson(le)},s0=()=>{if(nt.getLocale!=null)return nt.getLocale()},Pl=le=>{if(nt.setLocale!=null)return nt.setLocale(le)},{browser:Xr,os:wl}=new A.UAParser(window.navigator.userAgent).getResult(),n0=[Xr.name,Xr.version].filter(Boolean).join(" "),Zo=[wl.name,wl.version].filter(Boolean).join(" "),Os=le=>{if(nt.sendTelemetry!=null)return nt.sendTelemetry({...le,browser:n0,os:Zo})}},22562(Xe,Le,c){"use strict";c.d(Le,{Y8:()=>Y,ju:()=>J,l6:()=>K});var A=c(54811),$=c.n(A);const D=$()("rise/transcriptPanel/"),K=D("OPEN_TRANSCRIPT_PANEL"),J=D("CLOSE_TRANSCRIPT_PANEL"),Y=D("UPDATE_TRANSCRIPT_PANEL")},68902(Xe,Le,c){"use strict";c.d(Le,{Z:()=>K});var A=c(26372),$=c(94036),D=c(78933);function K(){const J=(0,$.Zp)(),Y=(0,$.zy)();return(0,A.useCallback)((ge,ne)=>{if(typeof ge=="number")return J(ge);const te=(0,D.B)(ge,Y),s=te.pathname+(te.search?`?${te.search}`:"")+(te.hash||"");return J(s,ne)},[J,Y])}},57898(Xe,Le,c){"use strict";c.d(Le,{Dh:()=>K,HH:()=>ye,S:()=>s,UR:()=>J,Zn:()=>_,cP:()=>be,fF:()=>he,pP:()=>ue,uQ:()=>Te,vC:()=>Q,xp:()=>D});var A=c(8653),$=c(49094);const D=(V,ee,F)=>(0,$.uW)(V)&&ee?F?.[ee]?.[V.l10nId]:void 0,K=(V,ee,F,ie)=>{if(!(0,$.uW)(V))return V;if(!ee||!F||!ie)return;const me=D(V,ee,ie);if(me!==void 0)return me;const je=D(V,F,ie);if(je!==void 0)return je;const Ie=G(V,ie);return Ie.length>0?Ie[0].value:void 0},J=(V,ee,F,ie)=>!ee||!F||!ie?V:(0,A.v9)(V).reduce((me,{l10nId:je,path:Ie})=>{const ve=K({l10nId:je},ee,F,ie),h=(0,A.re)(Ie,ve,me);return h.type==="accepted"?h.result:me},V),Y=(V,ee,F)=>J(V,ee,ye(F),he(F)),ge=(V,ee,F)=>K(V,ee,ye(F),he(F)),ne=(V,ee,F)=>D(V,ee,he(F));function te(V,ee){return ee?.find(F=>F.locale===V)}function s(V){return V?.l10n?.locales??[]}function ye(V){return V?.l10n?.defaultLocale}function Te(V,ee){const F=ye(ee);return!!(V&&F&&V!==F)}function he(V){return V?.l10n?.translations??{}}function G(V,ee){return(0,$.uW)(V)?Object.keys(ee).flatMap(F=>{const ie=D(V,F,ee);return ie?{locale:F,value:ie}:[]}):[]}const Z=(V,ee)=>G(V,he(ee)),ue=V=>(0,$.uW)(V)?V.l10nId:void 0;function be(V){return V?.l10n?.localeSelectorOptions}function Q(V){return V?.l10n?.languageCodeMetadata}function _(V){return V?.l10n?.showLocaleSelector}},31155(Xe,Le,c){"use strict";c.d(Le,{DB:()=>je,H5:()=>me,ME:()=>V,bX:()=>Ie,dE:()=>ee,ny:()=>ie,xm:()=>_});var A=c(88747),$=c.n(A),D=c(64943),K=c.n(D),J=c(7507);const Y=(0,J._$)("CDN_USER_CONTENT_URI"),ge=(0,J._$)("CDN_URI"),ne=$()("useCrushedKey"),te=(0,J._$)("IMAGES_URI"),s=K()(/-stock[-_]image.jpg/),ye=(0,J._$)("RBC_IMAGES_URI"),Te=(0,J._$)("ASSETS_URI"),he=K()(new RegExp(`^${Y}/review`)),G=(0,J._$)("CDN_US_URI"),Z=ve=>{const{crushedKey:h,key:ae,useCrushedKey:ce,src:X}=ve;return ne(ve)?ce&&h?(0,J.o1)(h):(0,J.o1)(ae):(0,J.o1)(X)},ue=ve=>`${Y}/${ve}`,be=ve=>!ve||!ve.key?"":`${ye}/b:fff,f:jpg,s:cover,w:550,h:296/${ve.key}`,Q=ve=>{if(!ve||!ve.key)return"";const{crushedKey:h,key:ae,useCrushedKey:ce}=ve;return ne(ve)&&ce?h?`${te}/f:jpg,b:fff,s:cover,w:340/${h}`:"":`${te}/f:jpg,b:fff,s:cover,w:340/${ae}`},_=ve=>{if(!ve||!ve.key)return"";const{crushedKey:h,key:ae,useCrushedKey:ce}=ve;return te?ne(ve)&&ce&&h?`${te}/f:png,a:retain,s:cover,t:true,w:340/${h}`:`${te}/f:png,a:retain,s:cover,t:true,w:340/${ae}`:Z(ve)},V=ve=>{if(!ve||!ve.key)return"";const{crushedKey:h,key:ae,useCrushedKey:ce,sourcedFrom:X}=ve;if(!te)return Z(ve);const Ve=X==="AI",Ce=X==="LIBRARY";return s(ae)||Ve||Ce?`${te}/f:jpg,a:retain,b:fff,w:1680,q:90/${ae}`:ne(ve)?ce&&h?`${Y}/${h}`:`${Y}/${ae}`:he(ve.src)?ve.src:`${te}/f:jpg|png,a:retain,b:fff/${ae}`},ee=(ve,h="src")=>{const{key:ae,src:ce,thumbnail:X,thumbnailKey:Ve}=ve,Ce=Y?`${Y}/${ae}`:Z({key:ae,src:ce}),De=Y?`${Y}/${Ve}`:Z({key:Ve,src:X});return h==="src"?Ce:De},F=ve=>{if(!ve||!ve.key)return"";const{crushedKey:h,key:ae,useCrushedKey:ce}=ve;return ne(ve)&&ce&&h?`${te}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${h}`:`${te}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${ae}`},ie=({height:ve,imageKey:h,width:ae})=>
150{if(ye){const ce=encodeURIComponent(h);return`${ye}/b:fff,f:jpg,s:cover,w:${ae},h:${ve}/${ce}`}return(0,J.o1)(`partnerContent/${h}`)},me=()=>{const ve=Te||te,h="NBIC_logo_light_bulb.png";return ve?`${ve}/f:png,a:retain,s:cover,w:276,h:160/assets/rise/assets/partner-content/${h}`:(0,J.o1)(`partnerContent/${h}`)},je=()=>{const ve="NBIC_logo_blue.svg";return ge?`${ge}/assets/rise/assets/partner-content/${ve}`:(0,J.o1)(`partnerContent/${ve}`)},Ie=ve=>{const{key:h,src:ae}=ve;return G?`${G}/${h}`:Z({key:h,src:ae})}},38870(Xe,Le,c){"use strict";c.d(Le,{Em:()=>s,Vu:()=>ne,on:()=>te,uI:()=>ye,wD:()=>Te,xQ:()=>he});var A=c(78478),$=c(51335),D=c.n($),K=c(7507),J=c(63557);const Y=K.BI?window.env:D()(window.env,{ACCESS_COOKIE_NAME:(0,J.W5)(),REDIRECT_URI:window.location.origin+"/auth-callback"}),ge=(0,A.A)(Y),ne=ge.closeSession,te=ge.on,s=ge.request,ye=ge.refreshSession,Te=ge.resetSession,he=ge.getAuthorizationUrl,G=ge.fetch},26842(Xe,Le,c){"use strict";c.d(Le,{lL:()=>me,t9:()=>Pe,XC:()=>De,xD:()=>Je,cP:()=>ve,Wn:()=>h,W8:()=>X,WA:()=>Ce});var A=c(2998),$=c(48831),D=c.n($),K=c(31735),J=c.n(K),Y=c(11748),ge=c.n(Y),ne=c(21863),te=c.n(ne),s=c(12907),ye=c.n(s),Te=c(37541),he=c.n(Te),G=c(50283),Z=c.n(G),ue=c(42900),be=c(631),Q=c(40313),_=c(8045),V=c(23932);be.A.register(Q.A),be.A.register(_.A);var ee;const F="#ff631e";function ie(He){if(He==null)return null;try{return(0,V.to)((0,V.qg)(He),"srgb")}catch{return null}}const me=D()({NEAR_BLACK:null,DARK:null,MED:null,LIGHT:null}),je=[[32,me.NEAR_BLACK],[64,me.DARK],[128,me.MED],[256,me.LIGHT]],Ie=He=>{const ht=ie(He);if(ht==null)return 0;const[bt,Bt,_t]=ht.coords.map(rs=>rs*255);return .2126*bt+.7152*Bt+.0722*_t},ve=He=>He?1-Ie(He)/255>.4:!1,h=He=>He?1-Ie(He)/255>.25:!1,ae=He=>{if(!He)return null;const ht=parseInt(He.substr(1),16);return Number.isNaN(ht)?null:ht.toString(16).padStart(6,"0").padStart(7,"#")},ce=(He,ht)=>{const bt=ae(ht);return!bt||bt.length!==7?He:bt},X=ge()((He,ht)=>{const bt=(0,A.A)(ht).slice(0,3),Bt=He>=0?bt.map(_t=>(1-He)*_t+He*255):bt.map(_t=>(1+He)*_t);return Ve(Bt)}),Ve=(He=[])=>"#"+He.slice(0,3).map(ht=>Math.min(255,Math.max(0,Math.round(ht))).toString(16).padStart(2,"0")).join(""),Ce=X(.9),De=He=>{const ht=Ie(He);return je.find(([Bt])=>Bt>ht)?.[1]},We=He=>He.toString(16).padStart(6,"0").padStart(7,"#"),pe=Z()(ye()(Number),J()(he(),We)),Re=J()(pe,te()(F));function Ze(He,ht){if(He==="none"||!He||!ht)return{};const bt=Ye(He,ht),Bt=`${bt.toFixed(2)}:1`;let _t=!1,fs=!1,rs=!1,wn=!1,vs=!1;return bt>=7?(_t=!0,fs=!0,rs=!0,wn=!0,vs=!0):bt>=4.5?(_t=!0,rs=!0,vs=!0):bt>=3&&(rs=!0,vs=!0),{ratio:Bt,bodyTextAA:_t,bodyTextAAA:fs,largeTextAA:rs,largeTextAAA:wn,graphicalUiComponentsAA:vs}}function Ye(He,ht){return(0,V.v2)(ie(He),ie(ht),"WCAG21")}function Ke(He){const[ht,bt,Bt]=ee(He).slice(0,3).map(vt);return .2126*ht+.7152*bt+.0722*Bt}function vt(He){const ht=He/255;return ht<=.04045?ht/12.92:((ht+.055)/1.055)**2.4}const Je=He=>Ze("#fff",He)["bodyTextAA"]?ue.Em.LIGHT:ue.Em.DARK,Pe={[me.NEAR_BLACK]:X(.1),[me.DARK]:X(-.4),[me.MED]:X(-.2),[me.LIGHT]:X(.3)}},76906(Xe,Le,c){"use strict";c.d(Le,{CY:()=>he,C_:()=>X,S6:()=>ce,Yq:()=>je,by:()=>Ie,fT:()=>Ve,fY:()=>me,o4:()=>ve,xA:()=>ge,y4:()=>ie,yG:()=>Y});var A,$,D=c(48831),K=c.n(D),J=c(63656);const Y={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*)?$/}
150,ge={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"},ne={EDITOR:1,MANAGER:2,OWNER:3},te={[ne.EDITOR]:"Author",[ne.MANAGER]:"Admin",[ne.OWNER]:"Owner"},s=Object.values(ne).map(Ce=>({id:Ce,title:te[Ce]})),ye=({name:Ce,isOnePage:De,outputType:We})=>{const pe=De?$(We):null,Re={Admin:pe?`${pe} manager`:"Manager",Author:pe?`${pe} editor`:"Editor",Owner:pe?`${pe} owner`:"Owner"},Ze={Admin:pe?`${pe} manager`:"Course manager",Author:pe?`${pe} collaborator`:"Course collaborator",Owner:pe?`${pe} owner`:"Course owner"};return A?Re[Ce]:Ze[Ce]},Te="questionBanks",he="2% 0px 2% 0px",G=9,Z=13,ue=27,be=32,Q=38,_=40,ee=864e5*3,F=100,ie="onePage",me={UP:"up",DOWN:"down"},je={PREVIEW:"preview-lesson"},Ie=K()({COMPACT:null,COVER:null,OVERLAY:null,SIDEBAR:null}),ve={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},h=Object.values(ve),ae={PORTRAIT:"portrait",LANDSCAPE:"landscape"},ce={DARK:"#000",LIGHT:"#fff"},X={SMALL:{label:"Small",value:1},MEDIUM:{label:"Medium",value:1.5},LARGE:{label:"Large",value:2}},Ve=["embed","map","process","sorting","timeline","video","screencast","slidecast"]},18849(Xe,Le,c){"use strict";c.d(Le,{BC:()=>A,QI:()=>D,f5:()=>K,hh:()=>$});const A=ne=>ne.reduce((te,s,ye)=>("id"in s&&(te[s.id]={id:s.id,index:ye}),te),{}),$=ne=>({...ne,percentComplete:Y({items:ne.items,key:"isComplete"})}),D=ne=>({...ne,percentComplete:Y({items:ne.items,key:"isComplete"})}),K=ne=>({...ne,percentViewed:Y({items:ne.items,key:"isViewed"})});function J({itemId:ne,isCorrect:te,progress:s}){const ye={...s,items:{...s.items,[ne]:{...s.items?.[ne],id:ne,index:s.items?.[ne]?.index??0,isComplete:te,isViewed:te,...s.items?.[ne].isCorrect===void 0?{isCorrect:te}:{}}}};ye.items[ne]?.isCorrect===!1&&(ye.lastIncorrectCardId=ne);const Te=ge(ye),he=Te.percentComplete!==100?D(Te):Te,G=K(he);return G.percentComplete===100?{...G,isComplete:!0}:G}function Y({items:ne,key:te}){const s=ne??{},ye=Object.keys(s).length,Te=Object.values(s).filter(he=>he?.[te]).length;return ye===0?0:Math.round(Te/ye*100)}function ge(ne){const s=Object.values(ne.items||{}).filter(ye=>ye.isCorrect===!0).length;return{...ne,correctlyAnswered:s}}},24177(Xe,Le,c){"use strict";c.d(Le,{L:()=>$.L,y:()=>A.yf});var A=c(50462),$=c(7311),D=c(7507);const K="datadoghq.com",J=(0,D._$)("SERVICE_ENV"),Y=(0,D._$)("RISE_FRONTEND_SHA"),ge=(0,D._$)("RISE_FRONTEND_LOCAL_DEV")==="true"||window.location.hostname==="rise.dev.articulate.zone",ne=window.Cypress!=null,te=D.BI?[/https:\/\/.*(\.dev)?\.rise\.(com|zone).*/,location.origin]:[/https:\/\/(rise(\.dev)?|360)\.articulate\.(com|zone).*/]},57893(Xe,Le,c){"use strict";c.d(Le,{$t:()=>he,NO:()=>s,Pf:()=>ye,WE:()=>Te,c:()=>ne});var A=c(23655),$=c.n(A);const D=()=>{if(!navigator.userAgent)return"unknown";const Z=new A.UAParser(navigator.userAgent).getResult();return Z.device?.model?Z.device.model:Z.os?.name?Z.os.name:Z.browser?.name?Z.browser.name:"unknown"},K=()=>
150{if(!navigator.userAgent)return"unknown";const Z=new A.UAParser(navigator.userAgent).getResult();return Z.device?.model&&Z.os?.version?Z.os.version:Z.browser?.version?Z.browser.version:"unknown"},J=()=>{if(!navigator.userAgent)return"desktop";const Z=new A.UAParser(navigator.userAgent).getResult();return Z.device?.type==="mobile"?"mobile":Z.device?.type==="tablet"?"tablet":"desktop"},Y=()=>{if(!navigator.userAgent)return"unknown";const Z=new A.UAParser(navigator.userAgent).getResult();if(Z.device?.vendor)return Z.device.vendor;if(Z.os?.name)switch(Z.os.name){case"Mac OS":case"iOS":return"Apple";case"Windows":return"Microsoft";case"Android":return"Google"}return"unknown"},ge=()=>{if(!navigator.userAgent)return"unknown";const Z=new A.UAParser(navigator.userAgent).getResult();return Z.device?.model?Z.device.model:"unknown"},ne=()=>{if(!navigator.userAgent)return"browser";const Z=new A.UAParser(navigator.userAgent).getResult();return Z.device?.type==="mobile"?"mobile":Z.device?.type==="tablet"?"tablet":"browser"};function te(G){return"userAgentData"in G}const s=()=>
150{if(te(navigator))return{platform:navigator.userAgentData.platform,mobile:navigator.userAgentData.mobile,brands:navigator.userAgentData.brands}},ye=()=>({name:D(),version:K(),type:J(),manufacturer:Y(),model:ge()}),Te=()=>{const Z=new URLSearchParams(window.location.search).get("query");return{referrer:document.referrer||null,search:Z||null,url:window.location.href,path:window.location.pathname+window.location.search+window.location.hash}},he=()=>navigator.userAgent||null},57487(Xe,Le,c){"use strict";c.d(Le,{Ve:()=>he,lQ:()=>Z,rq:()=>Te});var A,$=c(31735),D=c.n($),K=c(29390),J=c.n(K),Y=c(79443),ge=c.n(Y),ne=c(36087),te=c.n(ne),s=c(61039),ye=c.n(s);function Te(...ue){return D()(...J()(1,ue))(ge()(ue))}function he(ue,...be){return te()(...be)(ue)}function G(ue,...be){return A(...be)(ue)}const Z=()=>{}},78933(Xe,Le,c){"use strict";c.d(Le,{B:()=>K});var A=c(94036);const $=["fromDashboard","locale"];function D(J,Y){const ge=typeof J=="function"?J(Y):J;return typeof ge=="string"?(0,A.Rr)(ge):ge}function K(J,Y){const ge=D(J,Y),ne=new URLSearchParams(Y?.search||""),te=new URLSearchParams(ge?.search||"");for(const s of $){const ye=ne.get(s);ye&&!te.has(s)?te.set(s,ye):te.has(s)&&!te.get(s)&&te.delete(s)}return{...ge,search:te.toString()}}},42662(Xe,Le,c){"use strict";c.d(Le,{Em:()=>ye,lZ:()=>Te});var A=c(50748),$=c.n(A),D=c(63557),K=c(38870),J=c(7311);const Y=(Q,_)=>((...V)=>{try{return Q(...V)}catch(ee){window.env?.SERVICE_ENV&&window.env?.SERVICE_ENV!=="prod"&&console.error(ee),J.L.addError(ee),_(ee)}}),ge=Q=>{const _=Q.getResponseHeader("content-type")||"",V=_.includes("application/json");if(!(V||_.includes("text/")))return Q.response;try{const F=new TextDecoder("utf-8").decode(Q.response);try{return V?JSON.parse(F):F}catch{return F}}catch{return Q.response}};function ne(Q,_){const V=_.indexOf(":"),ee=_.substr(0,V).trim().toLowerCase(),F=_.substr(V+1).trim();return ee&&(Q[ee]=Q[ee]?Q[ee]+", "+F:F),Q}function te(Q){return Q?Q.split(`
151`).reduce(ne,{}):{}}function s(Q){const _=[];for(const V in Q){const ee=Q[V];if(!Array.isArray(ee)){_.push(encodeURIComponent(V)+"="+encodeURIComponent(ee));continue}for(const F of ee)_.push(s(F))}return _.join("&")}function ye(Q){let _,V=!1;const ee=new Promise(function F(ie,me){const je=Q.signal;if(je?.aborted){me(new DOMException("Aborted","AbortError"));return}const Ie=Pe=>{throw me(Pe),Pe},ve=()=>{_.abort(),me(new DOMException("Aborted","AbortError"))},h=Q.data;let ae=Y(Q.deserialize??$(),Ie);const ce=Q.headers??{},X=Q.json??!1,Ve=Q.jwt??!1,Ce=Q.token??null,De=Q.method??"GET",We=Q.reviewEnv??!1,pe=Q.onUploadProgress;let Re=Y(Q.serialize??$(),Ie),Ze=Q.url;const Ye=Q.withCredentials??!1,Ke=Q.file,vt=Q.timeout??3e3;_=new XMLHttpRequest;const Je=setTimeout(()=>{_.abort(),me({error:"request timed out"})},vt);if(X&&(ae=Y(JSON.parse,me),Re=Y(JSON.stringify,me),ce["Content-Type"]="application/json"),De==="GET"&&h&&(Ze+="?"+s(h)),Ve){const Pe=Ce||(0,D.rS)();ce.Authorization="Bearer "+Pe}je?.addEventListener("abort",ve),_.withCredentials=Ye,_.addEventListener("abort",me),_.addEventListener("error",me),_.addEventListener("load",function(){_.status>=400?[401,403].includes(_.status)?V?me({error:"Unable to resume session",status:_.status}):(0,K.wD)().then(()=>{F(ie,me),V=!0}).catch(Pe=>{J.L.addError(Pe),me({error:"Unable to resume session",status:_.status})}):Q.arrayBuffer?me(ge(_)):me(ae(_.response)):(ie({body:_.status===204?void 0:ae(_.response),headers:te(_.getAllResponseHeaders()),status:_.status}),je?.removeEventListener("abort",ve)),clearTimeout(Je)}),_.upload&&typeof pe=="function"&&_.upload.addEventListener("progress",pe),_.open(De,Ze),Q.arrayBuffer&&(_.responseType="arraybuffer");for(const Pe in ce)_.setRequestHeader(Pe,ce[Pe]);De!=="GET"&&h?_.send(Re(h)):Ke?_.send(Ke):_.send()});return ee.abort=(...F)=>_.abort(...F),ee}function Te(Q){return Q.status===200||Q.status===201?Q.body:Promise.reject(Q.body)}const he=(Q,_=!0)=>_?`${Q}s`:Q;var G=(Q=>(Q[Q.KB=1024]="KB",Q[Q.MB=1048576]="MB",Q[Q.GB=1073741824]="GB",Q[Q.TB=1099511627776]="TB",Q))(G||{});const Z={KB:(Q=1)=>1024*Q,MB:(Q=1)=>1048576*Q,GB:(Q=1)=>1073741824*Q,TB:(Q=1)=>1099511627776*Q},ue={KB:{short:"KB",long:"Kilobyte"},MB:{short:"MB",long:"Megabyte"},GB:{short:"GB",long:"Gigabyte"},TB:{short:"TB",long:"Terabyte"}},be=(Q,_="short")=>{const ee=Object.keys(G).reverse().find(je=>Q>=G[je]);if(!ee)return`${Q} ${he("byte",Q>1)}`;const F=Q/G[ee],ie=F%1===0?F.toFixed(0):F.toFixed(2),me=_==="long"?he(ue[ee].long,F>1):ue[ee].short;return`${ie} ${me}`}},25726(Xe,Le,c){"use strict";c.d(Le,{$D:()=>h,I6:()=>je,LI:()=>vt,Ll:()=>me,Vx:()=>Ie,Zd:()=>ie,dM:()=>Ke,sg:()=>X});var A=c(44914),$=c.n(A),D=c(31735),K=c.n(D),J=c(56438),Y=c.n(J),ge=c(33182),ne=c.n(ge),te=c(65301),s=c.n(te),ye=c(79443),Te=c.n(ye),he=c(83408),G=c.n(he),Z=c(36087),ue=c.n(Z),be=c(57819),Q=c.n(be),_=c(47971),V=c.n(_),ee=c(49094);const F=K()(Y()(".svg"),Q()("","originalUrl")),ie=s()(F,$()({width:"500rem"}),$()({})),me=Pe=>{if(Pe){const He=Pe.trim();if(He!==""&&He!=='""')return Pe}return""},je=Pe=>me(Pe)||void 0,Ie=Pe=>Pe?"img":void 0,ve=Pe=>
151ue()(Q()("","originalUrl"),V()("."),Te(),ne()(Pe)),h=ve("svg"),ae=ve("gif"),ce=/\.svg$/i,X=Pe=>ce.test(Pe),Ve={process:"center",timeline:"left"},Ce=Pe=>Ve[Pe]||"left",De=(Pe,He)=>{const ht=G()(Pe,He);return ht.media.image.key===He.media.image.key&&Object.assign(ht.media.image,{crushedKey:He.media.image.key,useCrushedKey:!0}),ht},We=({src:Pe,alpha:He})=>({alpha:He,media:{image:{key:pe(Pe),src:Pe}}}),pe=Pe=>typeof Pe!="string"?"":Pe.startsWith("http")?new URL(Pe).pathname.slice(1):Pe,Re=(({coverImageAlpha:Pe,coverImage:He})=>({alpha:Pe,src:He})),Ze=(({lessonHeaderImageAlpha:Pe,lessonHeaderImage:He})=>({alpha:Pe,src:He})),Ye=(Pe,He)=>(ht,bt)=>{const Bt=ht[He];if(ht?.theme){const _t=bt?bt(Bt?.media):Bt?.media;if((0,ee.uW)(_t))return Bt;const fs={...Bt,media:{..._t}},rs=We(Pe(ht.theme));return De(fs,rs)}else return Bt},Ke=Ye(Re,"coverImage"),vt=Ye(Ze,"lessonHeaderImage"),Je=async Pe=>{const He=new Image;return He.src=Pe,await He.decode(),He}},47302(Xe,Le,c){"use strict";c.d(Le,{GG:()=>ye,Mz:()=>ge,Sg:()=>s,Ww:()=>he,X1:()=>Y,XQ:()=>K,d9:()=>D,dg:()=>te,gL:()=>ne,p1:()=>J,vm:()=>Te});var A=c(78285),$=c.n(A);const D={LESSON:"lesson",QUIZ:"quiz",SECTION:"section"},K={KNOWLEDGE_CHECK:"KNOWLEDGE_CHECK",ORDER:"ORDER",QUIZ:"QUIZ"},J=Z=>`/lessons/${encodeURIComponent(Z)}`,Y="/lessons/progress-summary",ge=Z=>Z.type===D.SECTION,ne=Z=>Z.type===D.QUIZ,te=Z=>Z.settings?.passToContinue===!0,s=Z=>Z?.items?.find(ue=>ue.family==="knowledgeCheck"&&ue.settings?.requireCorrectAnswer),ye=Z=>Z.type!=="quiz"||Z.settings?.asLesson!==!1,Te=Z=>Z!=null&&Z.type==="blocks",he=Z=>{const ue=$()(Z);return ue!=null&&Array.isArray(ue.items)&&(ue.items=ue.items.reduce((be,Q)=>(Q!=null&&be.push(G(Q)),be),[])),ue},G=Z=>{const ue=$()(Z);return ue!=null&&Array.isArray(ue.items)&&(ue.items=ue.items.filter(Boolean)),ue}},94992(Xe,Le,c){"use strict";c.d(Le,{Gv:()=>J,QD:()=>Z,s0:()=>ue});var A,$,D=c(85429),K=c.n(D);const J=be=>!!be&&Object.prototype.toString.call(be)==="[object Object]",Y=Array.isArray,ge=(be,Q)=>Object.fromEntries(Object.entries(Q).map(be)),ne=(be,Q,_)=>{const V={};for(const ee in _)V[be(ee)]=Q(_[ee]);return V},te=be=>be.map(he),s=be=>be.map(G),ye=be=>ne(A,he,be),Te=be=>ne($,G,be),he=be=>J(be)?ye(be):Y(be)?te(be):be,G=be=>J(be)?Te(be):Y(be)?s(be):be,Z=(be,Q)=>{const _=new Set(Q),V={};for(const ee in be)_.has(ee)||(V[ee]=be[ee]);return V},ue=(be,Q)=>Object.fromEntries(Object.entries(be).map(([_,V])=>Q(_,V)))},63656(Xe,Le,c){"use strict";c.d(Le,{No:()=>ge,VJ:()=>Y,c3:()=>D,cZ:()=>ne,qg:()=>$});var A=c(76906);const $=G=>G===A.y4,D=G=>$(G?.type),K=(G,Z)=>ue=>D(ue)?G:Z,J=(G,Z)=>G===A.y4&&Z!==void 0,Y=G=>J(G?.type,G?.experiments?.outputType)&&G?.experiments?.outputType==="guide",ge=G=>J(G?.type,G?.experiments?.outputType)&&G?.experiments?.outputType==="presentation",ne=G=>J(G?.type,G?.experiments?.outputType)&&G?.experiments?.outputType==="video",te=null,s={guide:"Guide",presentation:"Presentation",video:"Video to Training",microlearning:"Microlearning"},ye=G=>Object.prototype.hasOwnProperty.call(s,G),Te=G=>typeof G=="string"&&ye(G)?s[G]:s.microlearning,he=G=>G?te.includes(G):!1},15107(Xe,Le,c){"use strict";c.d(Le,{h:()=>A});function A($){return $.trim()===""}},22737(Xe,Le,c){"use strict";c.d(Le,{IK:()=>D,R8:()=>ge,UQ:()=>A,hB:()=>Y,iV:()=>K,sS:()=>$});const A={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"},$={SUMMARY:"SUMMARY",REMAINING:"REMAINING",ELAPSED:"ELAPSED",ELAPSED_TOTAL:"ELAPSED_TOTAL",HIDE_TIMER:"HIDE_TIMER"},D={CONTINUE:"continue",NONE:""},K={ALL:"all",NONE:"none",INCORRECT:"incorrect"},J=10,Y=80,ge=500},7927(Xe,Le,c){"use strict";c.d(Le,{HY:()=>$.HY,Nv:()=>Z,Ls:()=>ee,GF:()=>me,LY:()=>ie});var A=c(41088),$=c(18398),D=c(37617),K=c(84980);const J=h=>h!=null&&typeof h=="object"&&"map"in h&&typeof h.map=="function",Y=h=>h!=null&&typeof h=="object"&&"run"in h&&typeof h.run=="function",ge=h=>h!=null&&typeof h=="object"&&"then"in h&&typeof h.then=="function",ne=h=>h!=null&&typeof h=="object"&&"fork"in h&&typeof h.fork=="function",te=h=>h!=null&&typeof h=="function",s=(h,ae)=>{const ce=X=>s(X,ae);if(typeof h=="object"&&"type"in h&&typeof h.type=="string"){const X="meta"in h&&typeof h.meta=="object"?h.meta:void 0;return{...h,meta:{...X,origin:ae}}}if("bimap"in h&&typeof h.bimap=="function")return h.bimap(ce,ce);if(J(h))return h.map(ce);if(ge(h))return h.then(ce);if(te(h))return function(Ve,Ce){return h(De=>Ve(ce(De)),Ce)}};function ye(){return({dispatch:h,getState:ae})=>ce=>X=>{if(te(X))return X(h,ae);if(ge(X))return X.then(h);if(ne(X)){X.fork(h,h);return}return Y(X)?h(X.run()):J(X)?X.map(h):ce(X)}}function Te(){return[ye()]}var he=c(26372);const G=$.Zz;function Z(h,ae){const ce=(0,$.y$)(h,ae,G((0,$.Tw)(...Te()))),X=ue(),Ve=be(),Ce=Q(),De=_(),We=V();return{Provider:D.Kq,connect:X,connectBase:Ve,dispatch:ce.dispatch,store:ce,useDispatch:Ce,useDispatchWithOrigin:De,useSelector:We}}function ue(){return function(ae,ce,X,Ve){return function(Ce){return(0,D.Ng)(ae,ce,X,Ve)((0,K.BN)(Ce))}}}function be(){return function(ae,ce,X,Ve){return function(Ce){return(0,D.Ng)(ae,ce,X,Ve)(Ce)}}}function Q(){return D.wA}function _(){return function(ae){const ce=(0,D.wA)();return he.useCallback(Ve=>ce(s(Ve,ae)),[ce,ae])}}function V(){return function(ae,ce=D.bN){const X=he.useContext(K.q2),Ve=he.useContext(K.R6),Ce=he.useRef(void 0),De=(0,A.S)(),We=(0,D.d4)(ae,ce),pe=!De&&X&&Ve?.startsWith?.("exit");return pe||(Ce.current=We),pe&&Ce.current!==void 0?Ce.current:We}}const ee=ue(),F=Q(),ie=V(),me=V;var je=c(12100),Ie;const ve=()=>Ie(()=>location.href="/")},45857(Xe,Le,c){"use strict";c.d(Le,{V:()=>A});const A=({locales:$,course:D,locale:K})=>!!($?.find(ge=>ge.locale===K)?.rightToLeft||D?.features?.["rise-rtl"]&&D?.experiments?.rtl)},7507(Xe,Le,c){"use strict";c.d(Le,{As:()=>s,BI:()=>D,Hm:()=>ye,NS:()=>te,PJ:()=>ne,Wk:()=>Te,_$:()=>$,ih:()=>he,mZ:()=>J,o1:()=>ge});const{Runtime:A}=window,$=G=>window.env?.[G],D=!1,K=null,J="Rise 360",Y=G=>`${$("CDN_USER_CONTENT_URI")}/${G}`,ge=G=>{const Z=G||"",ue=A?.resolvePath!=null?A.resolvePath.bind(A):Y;return Z.startsWith("http")||Z.startsWith("data:")||Z.startsWith("//")?Z:ue(Z)||Z},ne=G=>A?.resolveFontPath!=null?A.resolveFontPath(G):`${G.default?$("CDN_URI"):$("CDN_USER_CONTENT_URI")}/${G.key}`,te=()=>{A?.exit!=null&&A.exit()},s=()=>A?.isComplete!=null?A.isComplete():null,ye=()=>A?.isExport!=null?A.isExport():!1;function Te(){if(A?.isExport!=null){const G=window.partnerContent?.content;return A.isExport()&&!!G}return!1}const he=()=>
151{if(A?.sendTouch!=null)return A.sendTouch()}},42900(Xe,Le,c){"use strict";c.d(Le,{xj:()=>me,rE:()=>Pe,Dw:()=>ve,HC:()=>Ie,qu:()=>He,LE:()=>De,BL:()=>pe,Zs:()=>te,S$:()=>s,Ty:()=>ye,Bj:()=>Te,pL:()=>he,Ht:()=>ue,zV:()=>be,HU:()=>G,_g:()=>Z,df:()=>bt,KJ:()=>ee,qH:()=>F,OX:()=>je,AY:()=>We,Py:()=>ce,b$:()=>X,qB:()=>Ve,kY:()=>ae,br:()=>h,jq:()=>ht,Y2:()=>Ce,RE:()=>vt,Em:()=>Je,V7:()=>ne});var A=c(48831),$=c.n(A),D=c(37262),K=c.n(D);function J(_t){return $()(_t)}class Y extends Error{constructor(fs="Assert Error",rs){super(fs,rs)}}function ge(_t,fs="Assertion Error"){if(!_t)throw new Y(fs)}const ne={RISE_CLASSIC:"classic",APEX:"organic",HORIZON:"imaginative"},te="#ff631e",s=3,ye=17,Te=32,he=24,G=50,Z=.6,ue="right",be="rounded",Q=[{color:"#4baaf4",name:"Sky"},{color:"#285f9f",name:"Blueberry"},{color:"#7837a8",name:"Jelly"},{color:"#d84738",name:"Cherry"},{color:"#ff631e",name:"Tangerine"},{color:"#25bb64",name:"Basil"}],_="#ffffff",V=K()("color",Q),ee="#000",F="#fff",ie="Rise",me=J({ACCENT:null,BLACK:null,COLOR:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),je=J({LARGE:null,MEDIUM:null,SMALL:null}),Ie=J({STEPPED:null,CONTINOUS:null}),ve=$()({NUMBERS:null,DOTS:null,NONE:null}),h=J({COMPACT:null,OVERLAY:null,SIDEBAR:null}),ae=$()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),ce=$()({DARK:null,DARK_ACCENT:null,DARK_IMAGE:null,LIGHT:null,LIGHT_ACCENT:null,LIGHT_IMAGE:null}),X={FREE:"free",RESTRICTED:"restricted"},Ve=$()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),Ce=$()({THEME_DEFAULT:null,CIRCULAR_FILL:null,INCOMPLETE_COMPLETE:null}),De=J({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),We=J({FULL:null,FLOATING:null,FLOATING_FULL:null}),pe=J({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,VIDEO:null,WHITE:null}),Re={default:[{text:"Centered",type:pe.CENTERED},{text:"Centered overlay",type:pe.CENTERED_OVERLAY},{text:"Left",type:pe.LEFT},{text:"Left overlay",type:pe.LEFT_OVERLAY},{text:"Split left image",type:pe.SPLIT_LEFT_IMAGE},{text:"Split right image",type:pe.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:pe.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:pe.TWO_THIRDS_RIGHT_IMAGE}],classic:[{text:"Centered",type:pe.CENTERED},{text:"Centered overlay",type:pe.CENTERED_OVERLAY},{text:"Left",type:pe.LEFT},{text:"Left overlay",type:pe.LEFT_OVERLAY},{text:"Split left image",type:pe.SPLIT_LEFT_IMAGE},{text:"Split right image",type:pe.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:pe.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:pe.TWO_THIRDS_RIGHT_IMAGE}],organic:[{text:"Centered",type:pe.CENTERED},{text:"Centered overlay",type:pe.CENTERED_OVERLAY},{text:"Left",type:pe.LEFT},{text:"Left overlay",type:pe.LEFT_OVERLAY},{text:"Split left",type:pe.SPLIT_LEFT},{text:"Split right",type:pe.SPLIT_RIGHT},{text:"Split left image",type:pe.SPLIT_LEFT_IMAGE},{text:"Split right image",type:pe.SPLIT_RIGHT_IMAGE}],imaginative:[{text:"Centered",type:pe.CENTERED},{text:"Centered overlay",type:pe.CENTERED_OVERLAY},{text:"Centered image",type:pe.CENTERED_IMAGE},{text:"Centered accent tint",type:pe.CENTERED_ACCENT_TINT},{text:"Split left image",type:pe.SPLIT_LEFT_IMAGE},{text:"Split right image",type:pe.SPLIT_RIGHT_IMAGE},{text:"Two-thirds left image",type:pe.TWO_THIRDS_LEFT_IMAGE},{text:"Two-thirds right image",type:pe.TWO_THIRDS_RIGHT_IMAGE}]},Ze=null,Ye=null,Ke=[{text:"Image",type:pe.IMAGE},{text:"Accent",type:pe.ACCENT},{text:"White",type:pe.WHITE}],vt={CLOSED:"closed",HIDDEN:"hidden",OPEN:"open"},Je=J({AUTO:null,BLACK:null,LIGHT:null,DARK:null}),Pe=J({ROUNDED:null,SQUARED:null}),He=$()({ROUNDED:null,SQUARED:null}),ht=$()({FLOATING:null,FULL:null}),bt=$()({ACCENT:null,DARK:null,LIGHT:null}),Bt=[{value:Je.AUTO,label:"Auto"},{value:Je.DARK,label:"Dark"},{value:Je.LIGHT,label:"Light"}]},84557(Xe,Le,c){"use strict";var A={};c.r(A),c.d(A,{CoverDescription:()=>ax,CoverDetailsContentHeading:()=>cb,CoverDueDate:()=>ix,CoverHeader:()=>jx,CoverLayout:()=>Px,LessonHeader:()=>
151$x,LessonNavFinish:()=>Wx,LessonNavNext:()=>_x,LessonNavPrevious:()=>Kx,LessonProgressGraphic:()=>tb,NavCompactHeaderCounter:()=>lb,NavCompactHeaderProgress:()=>db,NavCompactOutline:()=>ub,OverviewListItem:()=>hb,OverviewListSectionTitle:()=>mb,Progress:()=>ib});var $={};c.r($),c.d($,{AlignLeft:()=>vb,ArrowDown:()=>S1,ArrowLeft:()=>pb,ArrowRight:()=>fb,ArrowUp:()=>Lp,Category:()=>TC,ChevronDown:()=>gb,ChevronUp:()=>Cb,Favorite:()=>O0,LessonsComplete:()=>Ld,LessonsRequirement:()=>M2,QuestionBox:()=>xb,QuizFailed:()=>Sp,QuizPassed:()=>Ld,QuizRequirement:()=>k0,Search:()=>bb,ToggleDown:()=>yb,Touch:()=>Lb,VideoCamera:()=>Eb,X:()=>Tb});var D={};c.r(D),c.d(D,{components:()=>A,icons:()=>$});var K={};c.r(K),c.d(K,{CoverCourseInfo:()=>xy,CoverDetailsSection:()=>Ty,CoverHeader:()=>By,CoverLayout:()=>Vy,LessonHeader:()=>Wy,LessonProgressGraphic:()=>Zy,NavSidebarHeader:()=>Yy,OverviewListItemLinkContent:()=>IL,Progress:()=>SL});var J={};c.r(J),c.d(J,{ArrowDown:()=>zp,ArrowLeft:()=>jL,ArrowRight:()=>NL,ArrowUp:()=>zp,ChevronDown:()=>Up,ChevronUp:()=>Up,Favorite:()=>O0,LessonsComplete:()=>$p,LessonsRequirement:()=>Wp,QuizFailed:()=>AL,QuizPassed:()=>$p,QuizRequirement:()=>Wp,Search:()=>kL,ToggleDown:()=>RL,X:()=>PL});var Y={};c.r(Y),c.d(Y,{components:()=>K,icons:()=>J});var ge={};c.r(ge),c.d(ge,{CoverDescription:()=>OL,CoverDetails:()=>BL,CoverGraphic:()=>Dc,CoverHeader:()=>GL,CoverLayout:()=>ZL,CoverProgress:()=>lE,CoverSVG:()=>ia,LessonHeader:()=>mE,LessonProgressGraphic:()=>CE,NavSidebarHeaderProgress:()=>bE});var ne={};c.r(ne),c.d(ne,{AlignLeft:()=>IE,ArrowDown:()=>yE,ArrowLeft:()=>LE,ArrowRight:()=>EE,ArrowUp:()=>TE,ChevronDown:()=>sf,ChevronUp:()=>SE,Favorite:()=>O0,LessonsComplete:()=>Ld,LessonsRequirement:()=>M2,QuestionBox:()=>NE,QuizFailed:()=>Sp,QuizPassed:()=>Ld,QuizRequirement:()=>k0,Search:()=>jE,ToggleDown:()=>sf,Touch:()=>kE,VideoCamera:()=>AE,X:()=>RE});var te={};c.r(te),c.d(te,{components:()=>ge,icons:()=>ne});var s=c(16881),ye=c(94864),Te=c(16188),he=c(92566),G=c(12140),Z=c(86347),ue=c(57561),be=c(57129),Q=c(45151),_=c(67406),V=c(305),ee=c(66883),F=c(31975),ie=c(50371),me=c(78451),je=c(88402),Ie=c(83988),ve=c(48607),h=c(26372),ae=c(75762),ce=c(94036),X=c(82486),Ve=c(63557);const Ce="_course_token",De=new URLSearchParams(window.location.hash.substr(1)),We=De.get(Ce);We&&(De.delete(Ce),window.history.replaceState(null,null,`#${De.toString()}`));const pe=t=>{const{data:{method:e,id:n,jsonrpc:o}}=t;if(o==="2.0"&&e==="getBearerToken"){const r=We||(0,Ve.rS)();navigator.serviceWorker.ready.then(a=>{a.active.postMessage({id:n,jsonrpc:"2.0",method:e,result:{token:r}})})}};navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",pe);const Re=(0,h.createContext)({});function Ze(t,{type:e,message:n}){switch(e){case"polite":return{...t,politeMessage1:t.alternatePolite?n:"",politeMessage2:t.alternatePolite?"":n,alternatePolite:!t.alternatePolite};case"assertive":return{...t,assertiveMessage1:t.alternatePolite?n:"",assertiveMessage2:t.alternatePolite?"":n,alternateAssertive:!t.alternateAssertive};default:return{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}}}function Ye({ariaLive:t,message:e}){return(0,s.jsx)("div",{"aria-atomic":"true","aria-live":t,"aria-relevant":"additions text",className:"visually-hidden-always",role:"log",children:e})}function Ke({children:t}){const[{politeMessage1:e,politeMessage2:n,assertiveMessage1:o,assertiveMessage2:r},a]=(0,h.useReducer)(Ze,{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}),i=(0,h.useMemo)(()=>({announcePolite:l=>{a({type:"polite",message:l})},announceAssertive:l=>{a({type:"assertive",message:l})},clearAnnouncements:()=>{a({type:"clear"})}}),[a]);return(0,s.jsxs)(Re.Provider,{value:i,children:[(0,s.jsx)(Ye,{ariaLive:"polite",id:"polite-announcer1",message:e}),(0,s.jsx)(Ye,{ariaLive:"polite",id:"polite-announcer2",message:n}),(0,s.jsx)(Ye,{ariaLive:"assertive",id:"assertive-announcer1",message:o}),(0,s.jsx)(Ye,{ariaLive:"assertive",id:"assertive-announcer2",message:r}),t]})}function vt(){return(0,h.useContext)(Re)}var Je=c(88498),Pe=c(68902),He=c(25726),ht=c(26372);function bt(t,e){const n=(0,He.sg)(t.src),o=t.width&&t.height&&!n,r=o?"async":void 0,a=o?"lazy":void 0,i=o?t.width:void 0,l=o?t.height:void 0;return(0,s.jsx)("img",{...t,decoding:r,height:l,loading:a,ref:e,width:i})}const Bt=ht.forwardRef(bt),_t={ImageEagerOrLazy:Bt},fs=Object.assign((0,h.createContext)(_t),{displayName:"BundleContext"});function rs({children:t,...e}){return(0,s.jsx)(fs.Provider,{value:e,children:t})}function wn(){return null}function vs(t){function e(n){const r=(0,h.useContext)(fs)[t]??wn;return(0,s.jsx)(r,{...n})}return e.displayName=`BundleComponent(${t})`,e}var Jn=c(54051),Cn=c(43418),Ns=c.n(Cn),ke=c(47615),qn=c(82031),oe=c.n(qn),mt=c(35873),Ps=c(13578),Ge=c(7507);const eo=`${(0,Ge._$)("CDN_URI")}/assets/rise/assets/certificate-icon.svg`,yo=`${(0,Ge._$)("CDN_URI")}/assets/rise/assets/error_x.svg`,dr=`${(0,Ge._$)("CDN_URI")}/assets/rise/assets/loading_spinner.svg`,ln="downloading",xn="error",Xs="ok",to="contained",St=({type:t})=>{const[e]=(0,h.useState)(()=>Ns()("certdownload-")),[n,o]=(0,h.useState)(Xs),r=(0,ke.A)(n),a=(0,h.useRef)(),i=(0,mt.useLabelsMap)(),l=`${e}-live`,u=oe()("certificateDownload",{certificateDownloadContained:t===to}),d=(0,h.useCallback)(()=>{o(ln)},[]);return(0,h.useEffect)(()=>(n===ln&&r!==ln&&(0,Ps.gj)().then(()=>{o(Xs)}).catch(m=>{(0,Jn.FZ)(m)?o(Xs):o(xn)}),()=>{(0,Ps.G7)()}),[r,n]),(0,h.useEffect)(()=>{a.current&&(n===xn&&r!==xn||n===Xs&&(r===xn||r===ln))&&a.current.focus()},[r,n]),(0,s.jsxs)("div",{className:u,children:[(0,s.jsxs)("div",{"aria-live":"polite",id:l,role:"status",children:[n===ln&&(0,s.jsxs)("span",{className:"certificateDownload__downloading",children:[(0,s.jsx)("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:dr,width:"15"}),i?.certificateDownloadInProgress||"Downloading..."]}),n===xn&&(0,s.jsxs)("span",{className:"certificateDownload__error",children:[(0,s.jsx)("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:yo,width:"15"}),(0,s.jsx)("span",{className:"visually-hidden",children:i?.a11yCertificateDownloadFailed||"Failed to download certificate"})]})]}),(n===Xs||n===xn)&&(0,s.jsxs)("button",{"aria-controls":l,className:"certificateDownload__btn",onClick:d,ref:a,type:"button",children:[n===Xs&&t===to&&(0,s.jsx)("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:eo,width:"15"}),n===Xs?i?.certificateDownload||"Download certificate":i?.certificateRetryDownload||"Retry download"]})]})},ys=()=>(0,s.jsx)(St,{type:to}),so=(0,h.memo)(St);var Nt=c(47296),as=c(49094),is=c(63656);const Wo={BLOCKS:"blocks",QUIZ:"quiz",SECTION:"section"},bn=t=>t?.type===Wo.QUIZ,no=t=>t?.type===Wo.QUIZ;var w=c(42900),wt=c(47543),Lt=c(57898);const Br=()=>(0,Nt.Mz)(e=>e,(e,n)=>n,(e,n,o)=>(0,Lt.HH)(o),(e,n,o)=>(0,Lt.fF)(o),Lt.Dh);function cs(t){const{currentLocale:e}=(0,wt.nY)(),n=(0,h.useMemo)(()=>Br(),[]);return(0,X.d4)(o=>n(t,e,o))}const Hr=(0,Nt.Mz)(t=>t,(t,e)=>(0,Lt.fF)(e),(t,e)=>e?.[t]);function ur(){const{currentLocale:t}=(0,wt.nY)();return(0,X.d4)(e=>Hr(t,e))}const Fr=(0,Nt.Mz)(t=>t.course?.title,Lt.HH,Lt.fF,(t,e,n)=>{if(t)return(0,Lt.xp)(t,e,n)});function Fe(){return(0,X.d4)(Fr)}var ft=c(26372);function Gt(t){return t?.search}function Xt(){return(0,X.d4)(Gt)}function oo(t){return Gt(t)?.activeLessons}const _o=(0,Nt.Mz)(oo,t=>t?t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{}):{});function Na(){return(0,Nt.Mz)(t=>t,(t,e)=>_o(e),(t,e)=>e?.[t])}function ja(t){const e=ft.useMemo(()=>Na(),[]);return(0,X.d4)(n=>e(t,n))}function Kt(t){return t?.course}function gt(){return(0,X.d4)(t=>Kt(t))}function Vr(t){return Kt(t)?.navigationMode}function ka(t){return Kt(t)?.trackingQuizId}function hr(){const t=gt();
151return cs(t?.title)}function zr(t){return Kt(t)?.type}function Sl(){return(0,X.d4)(t=>zr(t))}function it(t){const e=Kt(t);return(0,is.c3)(e)}function ws(t){const e=Kt(t);return(0,as.HX)(e)}const Lo=t=>t.filter(e=>e.type!=="section");function Aa(){const t=gt(),e=Xt();return(0,h.useMemo)(()=>e?.active&&e?.lessons?.length>0?{...t,lessons:e.lessons,lessonsOnly:Lo(e.lessons)}:t,[t,e?.active,e?.lessons])}const Go=(0,Nt.Mz)(Kt,t=>(t?.lessons??[]).filter(bn).some(e=>e.settings?.skipLessonsIfPassed&&e.settings?.skipToLessonId));function Ra(t){const e=Vr(t);return Go(t)?w.b$.RESTRICTED:e??w.b$.FREE}function Eo(){return(0,X.d4)(Ra)}var $i=c(31735),st=c.n($i),Pa=c(41133),Ko=c.n(Pa),Wi=c(62915),wa=c.n(Wi),_i=c(95353),Ls=c.n(_i),Ma=c(54708),gs=c.n(Ma),Ur=c(84046),Qo=c.n(Ur),Gi=c(54425),dn=c.n(Gi),Oa=c(71023),Ms=c.n(Oa),mr=c(84134),ls=c.n(mr),Ki=c(79443),$r=c.n(Ki),Da=c(8695),Cs=c.n(Da),ro=c(5822),To=c.n(ro),Qi=c(45976),Es=c.n(Qi),Zi=c(89837),Rt=c.n(Zi),Yi=c(97110),Mn=c.n(Yi),Xi=c(58862),Qt=c.n(Xi),Wr=c(77592),Mt=c.n(Wr),Ji=c(5006),Ba=c.n(Ji);const _r=({course:t,courseProgress:e})=>!t||!e?{}:t.lessons.filter(r=>!!r.settings?.passToContinue).filter(r=>!e.lessons[String(r.id)]?.passed)[0]??{},qi=({courseProgress:t,lesson:e,restrictingQuiz:n})=>{if(!t)return{};const o=l=>t.lessons[String(l)]?.index,r=o(e.id),a="id"in n?n.id:void 0,i=a!=null?o(a):void 0;return r!==void 0&&i!==void 0&&r>i?n:{}};var $t=c(78570),jt=c(47302);const ao=st()(To(),ls()),Gr=st()(Ls()(jt.GG),Qt()("lessonsOnly")),pr=({course:t,courseProgress:e})=>gs()(Kr(e))(t.lessonsOnly),Kr=t=>e=>To()(Es()(["lessons",e.id,"isComplete"],t)),Ha=({lesson:t,currentLesson:e})=>t&&Mt()("id",t.id,e),ec=({course:t,lesson:e})=>Mt()("id",e.id,dn()(Qt()("lessonsOnly",t))),tc=({course:t,lesson:e})=>Mt()("id",e.id,$r()(Qt()("lessonsOnly",t))),sc=st()(To(),Mt()("type","section")),nc=({lesson:t,courseProgress:e})=>Rt()(!1,["lessons",t.id,"isComplete"],e),oc=({course:t,courseProgress:e,lesson:n,restrictingQuiz:o})=>{const r=qi({courseProgress:e,lesson:n,restrictingQuiz:o}),a=(0,$t.bQ)(t),i=a||ao(r),l=pr({course:t,courseProgress:e}),u=sc(n)&&To()(nc({lesson:n,courseProgress:e}));return{isRestricted:i&&u&&To()(Ha({lesson:n,currentLesson:l})),restrictingQuiz:r,isRestrictedCourse:a,currentLesson:l}},rc=({labels:t,restrictions:e})=>{const{lessonRestricted:n,quizRequirePassingScore:o}=t,{isRestrictedCourse:r,restrictingQuiz:a,currentLesson:i}=e,l=i&&wa()("id",a,i);return!r||r&&l?a.title?o.replace("quiz",`"${a.title}"`):o:n},Qr=Ko()(t=>Qo()(Ba()(Mn()(["id"],t||{})))),ac=({course:t,lesson:e})=>st()(Ms(),Qr(e),Gr)(t),Fa=({course:t,lesson:e})=>!tc({course:t,lesson:e})&&t.lessonsOnly[Ms()(Qr(e,t.lessonsOnly))],Nl=st()(Cs(),Gr),Va=t=>typeof t=="object"&&Object.keys(t).length>0,nt=t=>t===void 0||t===!1,jl=t=>nt(t?.isComplete),kl=t=>t.find(([e,n])=>jl(n)),Al=t=>{const e=Object.entries(t),[n]=kl(e)||[];return n},fr=t=>Va(t)?Al(t):void 0,Se=(t,e,n)=>{if(!n)return{outOfAttempts:!1,quizPassed:!0};const o=Es()(["lessons",n],t),r=Rt()(-1,["settings","retryCount"],e),a=Rt()(0,["retryAttempts"],o),i=Es()(["passed"],o);return{outOfAttempts:Es()(["isComplete"],o)&&r>-1&&Number(a)===Number(r),quizPassed:i}};function _e(t){return t.courseProgress}function kt(t){return t.courseProgress?.currentLesson??""}function ds(t){return t.courseProgress?.percentComplete??0}const us=(0,Nt.Mz)(ka,Kt,(t,e)=>{const{lessons:n}=e;return Array.isArray(n)?n.find(({id:o,type:r})=>r==="quiz"&&o===t)??null:null}),Js=(0,Nt.Mz)(_e,us,(t,e)=>e?Se(t,e,e.id):null);function vr(t){const e=_e(t);return(0,Je.Wk)()?e?.percentComplete===100:!!(0,Je.As)()}function io(t){return t.courseProgress?.lessons}function On(t,e){if(t!=null)return io(e)?.[t]}function za(){return(0,X.d4)(_e)}function Zr(){return(0,X.d4)(kt)}function gr(){return(0,X.d4)(ds)}function Ua(){return(0,X.d4)(us)}function Yr(){return(0,X.d4)(Js)??{outOfAttempts:!1,quizPassed:!1}}function ic(){return(0,X.d4)(vr)}function un(t){return(0,X.d4)(e=>On(t,e))}function Cr(t){const e=un(t);if(e?.type==="quiz")return e}const Rl=t=>t>9999?1:t,t0=({current:t,restart:e,restartValue:n})=>{const o=Number(n),r=Rl(Number.isInteger(o)&&o>0?o:1),a=e?r:t+1;return Rl(a)},s0=(t,e)=>{if(e.family==="divider"&&e.variant==="numbered divider"){const n=e.settings??{},o=t0({current:t.currentNumber,restart:n.restartNumbering,restartValue:n.restartNumberingValue});return{map:{...t.map,[e.id]:o},currentNumber:o}}return t},Pl=t=>(0,jt.Mz)(t),Xr=t=>(0,jt.gL)(t),wl=t=>(0,jt.dg)(t),n0=t=>!!(0,jt.Sg)(t);function Zo(){return(0,Nt.Mz)(t=>t,(t,e)=>Dl(e),(t,e)=>e[String(t)])}function Os(t){const e=(0,h.useMemo)(()=>Zo(),[]);return(0,X.d4)(n=>e(t,n))}function le(t){const e=Os(t);return cs(e?.title)}function ze(){const t=Zo();return(0,Nt.Mz)(t,e=>Pl(e))}function dt(){const t=es();return(0,Nt.Mz)(e=>e,(e,n)=>t(n),(e,n)=>Ra(n),(e,n)=>R5(n),(e,n)=>P5(n),(e,n)=>io(n),(e,n,o,r,a,i)=>{const l=i?.[e],u=i?.[n];if(e!==n&&!l?.isComplete&&l?.index>u?.index){const d=i?.[r?.id]?.index??1/0,m=o==="restricted"?u?.index??1/0:i?.[a?.id]?.index??1/0;if(l?.index>Math.min(d,m))return m<d?o==="restricted"?{type:jt.XQ.ORDER}:{type:jt.XQ.KNOWLEDGE_CHECK}:{type:jt.XQ.QUIZ,data:r.title}}return null})}function Ct(t){const e=(0,h.useMemo)(()=>dt(),[]);return(0,X.d4)(n=>e(t,n))}function es(){return(0,Nt.Mz)(io,t=>t?fr(t):void 0)}function zs(){const t=es();return(0,Nt.Mz)(e=>e,(e,n)=>t(n),(e,n)=>Dl(n),(e,n)=>(0,Lt.HH)(n),(e,n)=>(0,Lt.fF)(n),(e,n,o,r,a)=>{if(n)return(0,Lt.UR)(o[n],e,r,a)})}function Yo(){const t=Zo();return(0,Nt.Mz)(t,On,(e,n)=>{const o=n?.percentComplete??0,r=n?.isComplete??!1,a=n?.passed??!1;return o===100&&(!r||Xr(e)&&!a)})}function Ml(t){const e=(0,h.useMemo)(()=>Yo(),[]);return(0,X.d4)(n=>e(t,n))}function o0(){const t=Zo();return(0,Nt.Mz)(t,On,(e,n)=>{const o=n?.percentComplete??0,r=n?.isComplete??!1,a=n?.passed??!1;return o===100&&r&&(!Xr(e)||a)})}function Ol(t){const e=(0,h.useMemo)(()=>o0(),[]);return(0,X.d4)(n=>e(t,n))}const cc=(0,Nt.Mz)(Kt,t=>t?.lessons??[]),Dl=(0,Nt.Mz)(cc,t=>t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{})),$a=(0,Nt.Mz)(Kt,t=>t?.lessonsOnly??[]),A5=(0,Nt.Mz)($a,t=>t.reduce((e,n,o)=>(e[n.id]=o+1,e),{}));function Zm(){return(0,X.d4)(t=>A5(t))}const Ym=(0,Nt.Mz)($a,t=>t.filter(e=>(0,jt.GG)(e))),r0=(0,Nt.Mz)(Ym,t=>t.length),a0=(0,Nt.Mz)(cc,t=>t.reduce((e,n)=>{const o=e[e.length-1];return Pl(n)||o==null?e.push([n.id]):o.push(n.id),e},[])),R5=(0,Nt.Mz)($a,io,(t,e)=>t.find(n=>Xr(n)&&wl(n)&&!e?.[n.id]?.isComplete)),P5=(0,Nt.Mz)($a,io,(t,e)=>t.find(n=>!Xr(n)&&n0(n)&&!e?.[n.id]?.isComplete));function Bl(t){const e=(0,h.useMemo)(ze,[]);return(0,X.d4)(n=>e(t[0],n))}function i0(t){const e=(0,h.useMemo)(()=>Zo(),[]),n=(0,h.useMemo)(()=>dt(),[]),o=Eo();return(0,X.d4)(r=>{const a=Kt(r),i=e(t,r),l=On(t,r),d=n(t,r)?.type!=null;return o!==w.b$.RESTRICTED&&a?.markComplete&&!d&&i?.type!==jt.d9.QUIZ&&!(Ge.BI&&l?.percentComplete===100)})}const c0=(t,e)=>e.findIndex(n=>n.id===t);function Xm(){return(0,Nt.Mz)(t=>t,(t,e)=>$a(e),(t,e)=>{if(t==="progress-summary")return e[e.length-1];const o=c0(t,e)-1;return e[o]})}function Jm(){return(0,Nt.Mz)(t=>t,(t,e)=>$a(e),(t,e)=>{const o=c0(t,e)+1;return e[o]})}function qm(t){return(0,Nt.Mz)(t,(e,n)=>Ym(n),(e,n)=>c0(e?.id||"",n)+1)}function w5(){return qm(Jm())}function M5(){return qm(Xm())}function O5(t){const e=(0,h.useMemo)(()=>Jm(),[]);return(0,X.d4)(n=>e(String(t),n))}function D5(t){const e=(0,h.useMemo)(()=>w5(),[]);return(0,X.d4)(n=>e(String(t),n))}function B5(){return(0,X.d4)(r0)}function e2(){return(0,X.d4)(t=>a0(t))}function H5(){const t=es();return(0,Nt.Mz)(vr,t,ka,(e,n,o)=>{const r=!!n,a=o!=null;return e||!r&&!a})}function F5(){const t=(0,h.useMemo)(()=>H5(),[]);return(0,X.d4)(e=>t(e))}const V5=t=>t?.items?.reduce?.(s0,{map:{},currentNumber:0})?.map||{},z5=t=>{const e=(0,h.useMemo)(()=>Zo(),[]),n=(0,X.d4)(o=>e(t,o));return(0,h.useMemo)(()=>V5(n),[n])},U5=({blockId:t,lessonId:e})=>z5(e)?.[t];function $5(t){const n=gt()?.lessonsOnly??[],o=n.findIndex(a=>a.id===t);return(o>=0?n[o+1]:void 0)?.id??null}function W5(t){const e=Os(t),n=gt(),o=e?.settings,r=n?.lessonsOnly;return(0,h.useMemo)(()=>{const a=o?.skipToLessonId,i=a&&r?.some(l=>l.id===a)?a:void 0;return{continueType:o?.continueType??"",retryCount:Number(o?.retryCount??-1),skipLessonsIfPassed:o?.skipLessonsIfPassed??!1,skipToLessonId:i}},[o,r])}function Qs(t){return(0,s.jsx)("svg",{"aria-hidden":"true",fill:"
151currentColor",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...t})}var t2,_5;const xQ=t=>t2(_5,{...t,viewBox:"0 0 8 8",children:t2("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 "})}),bQ=null;var l0,G5,K5;const yQ=t=>l0(K5,{viewBox:"0 0 10 10",...t,children:G5("g",{fillRule:"evenodd",children:[l0("path",{d:"M0 4.107h10v2H0z"}),l0("path",{d:"M4 0h2v10H4z"})]})}),LQ=null;var d0,Q5;const EQ=({width:t="18",height:e="18",className:n})=>d0("svg",{"aria-hidden":"true",className:Q5("i i-alert",n),focusable:"false",height:e,viewBox:"0 0 18 18",width:t,children:d0("g",{fill:"none",fillRule:"evenodd",stroke:"#DE1D1D",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:d0("path",{d:"M9 1a8 8 0 1 1 0 16A8 8 0 0 1 9 1zM9 5.364V9.53M9 11.91v.726"})})}),TQ=null;function Z5(t){return(0,s.jsxs)(Qs,{viewBox:"0 0 16 12",...t,children:[(0,s.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,s.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,s.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"})]})}var Y5,Hl;const IQ=({width:t="20",height:e="20"})=>
151Y5("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:e,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[Hl("path",{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",fillRule:"evenodd"}),Hl("path",{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",fillRule:"evenodd"}),Hl("path",{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",fillRule:"evenodd"}),Hl("path",{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.666
1515 15.4602 1.6665 15Z",fill:"currentColor",fillRule:"evenodd"})]}),SQ=null;var s2,X5;const NQ=({width:t="15",height:e="15",className:n})=>s2("svg",{"aria-hidden":"true",className:X5("i i-all-blocks",n),focusable:"false",height:e,viewBox:"0 0 15 15",width:t,children:s2("path",{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",fillRule:"evenodd"})}),jQ=null;var n2,J5;const kQ=t=>n2(J5,{...t,viewBox:"0 0 15 15",children:n2("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"})}),AQ=null;var q5,o2,eC;const RQ=({width:t="24",height:e="16",leftMovement:n="0",className:o})=>q5("svg",{"aria-hidden":"true",className:eC("i i-alt",o),focusable:"false",height:e,style:{marginLeft:n},viewBox:"0 0 24 16",width:t,children:[o2("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"}),o2("path",{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",fillRule:"nonzero"})]}),PQ=null;var tC,r2;const wQ=({className:t,width:e="20",height:n="20",focusable:o="false"})=>
151tC("svg",{className:t,fill:"none",focusable:o,height:n,viewBox:"0 0 20 20",width:e,xmlns:"http://www.w3.org/2000/svg",children:[r2("path",{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",fillRule:"evenodd"}),r2("path",{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",fillRule:"evenodd"})]}),MQ=null;var sC,u0,nC;const OQ=({title:t="Export",desc:e="An arrow bending itself to the right",width:n="16",height:o="13",className:r,focusable:a="false"})=>sC("svg",{className:nC("i",r),focusable:a,height:o,viewBox:"0 0 16 13",width:n,children:[u0("title",{children:t}),u0("desc",{children:e}),u0("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"})]}),DQ=null;var a2,oC;function BQ(t){return a2(oC,{viewBox:"0 0 384 512",...t,children:a2("path",{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",fill:"currentColor"})})}var rC,i2,aC;function HQ(t){return rC(aC,{viewBox:"0 0 22 22",...t,children:[i2("path",{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",fillRule:"evenodd"}),i2("path",{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",fillRule:"evenodd"})]})}var iC,h0,cC;const FQ=({title:t="Export",desc:e="An arrow pointing right",width:n="16",height:o="8",className:r,focusable:a="false",decorative:i})=>iC("svg",{"aria-hidden":i?"true":"false",className:cC("i",r),focusable:a,height:o,viewBox:"0 0 16 8",width:n,children:[h0("title",{children:t}),h0("desc",{children:e}),h0("path",{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",fill:"#444",fillRule:"evenodd"})]}),VQ=null;var c2,lC;function zQ(t){return c2(lC,{viewBox:"0 0 384 512",...t,children:c2("path",{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",fill:"currentColor"})})}var dC,l2,uC;function UQ(t){return dC(uC,{viewBox:"0 0 22 22",...t,children:[l2("path",{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",fillRule:"evenodd"}),l2("path",{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",fillRule:"evenodd"})]})}var d2,hC;const $Q=t=>d2(hC,{viewBox:"0 0 10 12",...t,children:d2("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 
1511.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"})}),WQ=null;var u2,lc,mC;const _Q=({title:t="Background Image",desc:e="Background Image",width:n="18",height:o="18",className:r,focusable:a="false"})=>u2("svg",{className:mC("i i-background-image",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[lc("title",{children:t}),lc("desc",{children:e}),u2("g",{children:[" ",lc("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"})," ",lc("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"})," ",lc("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"})," "]})]}),GQ=null;var pC,m0,fC;const KQ=({title:t="Bank",desc:e="A building with four columns",width:n="16",height:o="16",className:r,focusable:a="false"})=>pC("svg",{className:fC("i i-bank",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[m0("title",{children:t}),m0("desc",{children:e}),m0("path",{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",fillRule:"evenodd"})]}),QQ=null;var vC,h2,gC;function ZQ(t){return vC(gC,{fill:"none",viewBox:"0 0 14 14",...t,children:[h2("rect",{height:"8.3",stroke:"currentColor",strokeWidth:"1.5",width:"8.3",x:"0.75",y:"0.75"}),h2("rect",{height:"8.3",rx:"1.35",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",width:"8.3",x:"4.9502",y:"4.9502"})]})}var CC,dc,xC;function YQ(t){return CC(xC,{viewBox:"0 0 14 15",...t,children:[dc("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"}),dc("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"}),dc("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"}),dc("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"}),dc("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"})]})}var bC,Fl,yC;const XQ=({title:t="All Authors",desc:e="A circle with the outline of the head and shoulders of two peo
151ple inside",width:n="30",height:o="30",className:r,focusable:a="false"})=>bC("svg",{className:yC("i i-blockTemplateAllAuthors",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[Fl("title",{children:t}),Fl("desc",{children:e}),Fl("circle",{cx:"14.963",cy:"14.963",fill:"#E9E9E9",r:"14.963"}),Fl("path",{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",fill:"#8894A3"})]}),JQ=null;var Vl,co,LC;const qQ=({title:t="Check Mark",desc:e="A circle with a check mark inside",width:n="112",height:o="112",className:r,focusable:a="false"})=>Vl("svg",{className:LC("i i-blockTemplateCheckMark",r),focusable:a,height:o,viewBox:"0 0 112 112",width:n,children:[co("title",{children:t}),co("desc",{children:e}),co("defs",{children:Vl("filter",{filterUnits:"objectBoundingBox",height:"186.1%",id:"a",width:"186.1%",x:"-43.1%",y:"-40.3%",children:[co("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),co("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"10"}),co("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"}),Vl("feMerge",{children:[co("feMergeNode",{in:"shadowMatrixOuter1"}),co("feMergeNode",{in:"SourceGraphic"})]})]})}),Vl("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(20 18)",children:[co("path",{className:"outer",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",fillRule:"nonzero"}),co("circle",{className:"inner",cx:"36",cy:"36",r:"30"}),co("path",{className:"check",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",fillRule:"nonzero"})]})]}),eZ=null;var m2,zl,EC;const tZ=({title:t="Folder Outline",desc:e="Outline of a folder",width:n="42",height:o="42",className:r,focusable:a="false"})=>m2("svg",{className:EC("i i-blockTemplateFolder",r),focusable:a,height:o,viewBox:"0 0 42 42",width:n,children:[zl("title",{children:t}),zl("desc",{children:e}),m2("g",{fill:"#ADAEAF",fillRule:"nonzero",stroke:"#ADAEAF",strokeWidth:".3",children:[zl("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"}),zl("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"})]})]}),sZ=null,TC=({width:t="17",height:e="15",title:n="Book",desc:o="Book",focusable:r="false",className:a})=>(0,s.jsxs)("svg",{className:a,focusable:r,height:e,viewBox:"0 0 17 15",width:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:n}),(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{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",fill:"#FFF",fillRule:"nonzero"})]});var IC,p0,SC;const oZ=({title:t="Building",desc:e="Building with windows",width:n="18",height:o="18",className:r,focusable:a="false"})=>IC("svg",{className:SC("icon",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[p0("title",{children:t}),p0("desc",{children:e}),p0("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.
15166663 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"})]}),rZ=null;var f0,uc,NC;const aZ=({title:t="Captions",desc:e="Two capital letter C inside a square",width:n="24",height:o="16",className:r,focusable:a="false"})=>f0("svg",{className:NC("i i-captions",r),focusable:a,height:o,viewBox:"0 0 24 16",width:n,children:[uc("title",{children:t}),uc("desc",{children:e}),f0("g",{fill:"none",fillRule:"evenodd",transform:"translate(-.355)",children:[uc("rect",{height:"13.25",rx:"1",stroke:"#000",strokeWidth:"1.75",width:"18.25",x:"1.447",y:"1.402"}),f0("text",{fill:"#000",fontFamily:"Lato-Black, Lato",fontSize:"9",fontWeight:"700",letterSpacing:".75",children:[uc("tspan",{x:"4.222",y:"11.5",children:"C"})," ",uc("tspan",{x:"10.885",y:"11.5",children:"C"})]})]})]}),iZ=null;var jC,v0;const cZ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:l="16"})=>jC("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&v0("title",{children:i}),o&&v0("desc",{children:o}),v0("path",{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",fill:"currentColor",fillRule:"evenodd"})]}),lZ=null;var kC,g0,AC;const dZ=({title:t="Character",desc:e="Character",width:n="13",height:o="16",className:r,focusable:a="false"})=>kC("svg",{className:AC("i i-character",r),focusable:a,height:o,viewBox:"0 0 13 16",width:n,children:[g0("title",{children:t}),g0("desc",{children:e}),g0("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"})]}),uZ=null;function p2(t){return(0,s.jsx)(Qs,{viewBox:"0 0 11 8",...t,children:(0,s.jsx)("path",{d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"})})}var RC,C0,PC;const hZ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="21",role:a="img",title:i,width:l="21"})=>RC("svg",{"aria-hidden":t,"aria-label":e,className:PC("i i-checkMarkFilled",n),focusable:"false",height:r,role:a,viewBox:"0 0 21 21",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&C0("title",{children:i}),o&&C0("desc",{children:o}),C0("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"})]}),mZ=null;var f2,wC;function pZ(t){return f2(wC,{viewBox:"0 0 7 5",...t,children:f2("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"})})}var v2,MC;const fZ=({width:t="16",height:e="16",className:n,focusable:o="false"})=>v2("svg",{"aria-hidden":"true",className:MC("i i-chevronLeft",n),focusable:o,height:e,viewBox:"0 0 16 16",width:t,children:v2("polygon",{points:"11.1,15.7 3.4,8 11.1,0.3 12.6,1.7 6.3,8 12.6,14.3 "})}),vZ=null;var g2,OC;const gZ=t=>g2(OC,{viewBox:"0 0 6 10",...t,children:g2("path",{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",fillRule:"nonzero"})}),CZ=null,DC=({className:t,dataTestId:e})=>(0,s.jsx)("svg",{"aria-hidden":"true",className:t,"data-testid":e,fill:"
151currentColor",focusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("circle",{cx:"5",cy:"5",r:"5"})});var C2,Ul,BC;const bZ=({title:t="Clock",desc:e="Image of a clock with two hands",width:n="14",height:o="13",className:r,focusable:a="false"})=>C2("svg",{className:BC("i",r),focusable:a,height:o,viewBox:"0 0 14 13",width:n,children:[Ul("title",{children:t}),Ul("desc",{children:e}),C2("g",{children:[Ul("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"}),Ul("path",{d:"M7.81299 3.25H6.18799V7.313H10.25V5.688H7.81199L7.81299 3.25Z"})]})]}),yZ=null,HC=({className:t})=>(0,s.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,s.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"})});var FC,x2,VC;function EZ(t){return FC(VC,{viewBox:"0 0 16 16",...t,children:[x2("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"}),x2("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"})]})}var zC,Dn;const TZ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="18",role:a="img",title:i,width:l="18"})=>zC("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focu
151sable:"false",height:r,role:a,viewBox:"0 0 18 18",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&Dn("title",{children:i}),o&&Dn("desc",{children:o}),Dn("path",{d:"M9 9V1a8 8 0 015.657 2.343L9 9z",fill:"red",stroke:"#fff",strokeLinejoin:"round"}),Dn("path",{d:"M9 9l5.657-5.656A8 8 0 0117 9H9z",fill:"#F90",stroke:"#fff",strokeLinejoin:"round"}),Dn("path",{d:"M9 9h8a8 8 0 01-2.343 5.657L9 9z",fill:"#FFF500",stroke:"#fff",strokeLinejoin:"round"}),Dn("path",{d:"M9 9l5.657 5.657A8 8 0 019 17V9z",fill:"#ADFF00",stroke:"#fff",strokeLinejoin:"round"}),Dn("path",{d:"M9 9v8a8 8 0 01-5.657-2.343L9 9z",fill:"#00FF94",stroke:"#fff",strokeLinejoin:"round"}),Dn("path",{d:"M9 9l-5.657 5.657A8 8 0 011 9h8z",fill:"#06F",stroke:"#fff",strokeLinejoin:"round"}),Dn("path",{d:"M9 9H1a8 8 0 012.343-5.656L9 9z",fill:"#8000FF",stroke:"#fff",strokeLinejoin:"round"}),Dn("path",{d:"M9 9L3.343 3.343A8 8 0 019 1v8z",fill:"#EB00FF",stroke:"#fff",strokeLinejoin:"round"}),Dn("path",{d:"M9 6a3 3 0 110 6 3 3 0 010-6z",fill:"#fff"}),Dn("path",{d:"M9 17A8 8 0 109 1a8 8 0 000 16z",stroke:"#EAEAEB"})]}),IZ=null;var UC,x0,$C;const SZ=({title:t="Continue Block",desc:e="Continue Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>UC("svg",{className:$C("i i-continue-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[x0("title",{children:t}),x0("desc",{children:e}),x0("path",{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",fillRule:"evenodd"})]}),NZ=null;var WC,b0,_C;const jZ=({title:t="Convert",desc:e="Convert to block",width:n="14",height:o="12",className:r,focusable:a="false"})=>WC("svg",{className:_C("i i-convert",r),focusable:a,height:o,viewBox:"0 0 14 12",width:n,children:[b0("title",{children:t}),b0("desc",{children:e}),b0("path",{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.
151143c0-.473.392-.857.875-.857H7c.483 0 .875.384.875.857A.867.867 0 0 1 7 12z",fillRule:"evenodd"})]}),kZ=null;var GC,b2,KC;function AZ(t){return GC(KC,{...t,viewBox:"0 0 16 16",children:[b2("path",{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",fillRule:"evenodd"}),b2("path",{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",fillRule:"evenodd"})]})}var QC,y0,ZC;const RZ=({title:t="Copy",desc:e="A document stacked on top of another one",width:n="15",height:o="18",className:r=null,focusable:a="false"})=>QC("svg",{className:ZC("i i-stack",r),focusable:a,height:o,viewBox:"0 0 15 18",width:n,children:[y0("title",{children:t}),y0("desc",{children:e}),y0("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"})]}),PZ=null;var YC,L0,XC;const wZ=({title:t="Copy lesson",desc:e="Copy lesson",width:n="15",height:o="15",className:r,focusable:a="false"})=>YC("svg",{className:XC("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[L0("title",{children:t}),L0("desc",{children:e}),L0("path",{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",fillRule:"evenodd"})]}),MZ=null;var JC,$l;const OZ=({title:t="Corner up-right",desc:e="An arrow moving up & to the right",width:n="16",height:o="16",className:r,focusable:a="false"})=>
151JC("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:n,xmlns:"http://www.w3.org/2000/svg",children:[$l("title",{children:t}),$l("desc",{children:e}),$l("path",{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",fillRule:"evenodd"}),$l("path",{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",fillRule:"evenodd"})]}),DZ=null;var qC,E0,e4;const BZ=t=>{const{className:e,desc:n="Crop",focusable:o="false",height:r="19",title:a="Crop",width:i="19"}=t,l={className:e4("i i-crop",e),focusable:o,height:r,viewBox:`0 0 ${i} ${r}`,width:i};return qC("svg",{...l,children:[E0("title",{children:a}),E0("desc",{children:n}),E0("path",{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",fillRule:"evenodd"})]})},HZ=null;var t4,T0,s4;const FZ=({"aria-hidden":t,"aria-label":e="Dash mark",className:n,desc:o,height:r="3",role:a="img",title:i,width:l="7"})=>t4("svg",{"aria-hidden":t,"aria-label":e,className:s4("i i-dashMark",n),focusable:"false",height:r,role:a,viewBox:"0 0 7 3",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&T0("title",{children:i}),o&&T0("desc",{children:o}),T0("rect",{height:"3",width:"7"})]}),VZ=null;var n4,y2;const zZ=({width:t="20",height:e="20",focusable:n="false"})=>
151n4("svg",{fill:"none",focusable:n,height:e,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[y2("path",{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",fillRule:"evenodd"}),y2("path",{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",fillRule:"evenodd"})]}),UZ=null,o4=({title:t="DestinationArrow",desc:e="DestinationArrow",width:n="13",height:o="10",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:oe()("i i-destinationArrow",r),focusable:a,height:o,viewBox:"0 0 13 10",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.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"})]});var r4,I0,a4;const WZ=({title:t="Dialogue Slide",desc:e="Dialogue Slide",width:n="16",height:o="16",className:r,focusable:a="false"})=>r4("svg",{className:a4("i i-dialogue-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[I0("title",{children:t}),I0("desc",{children:e}),I0("path",{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",fillRule:"evenodd"})]}),_Z=null;var i4,hc;const GZ=({title:t="Disk",desc:e="An old floppy disk",width:n="16",height:o="16",className:r,focusable:a="false"})=>
151i4("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:n,xmlns:"http://www.w3.org/2000/svg",children:[hc("title",{children:t}),hc("desc",{children:e}),hc("path",{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",fillRule:"evenodd"}),hc("path",{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",fillRule:"evenodd"}),hc("path",{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",fillRule:"evenodd"})]}),KZ=null;var c4,QZ;class ZZ extends null{render(){return c4("svg",{"aria-hidden":this.props.decorative,"aria-label":this.props.title,className:this.props.className,focusable:"false",height:this.props.height,role:this.props.role,version:"1.1",viewBox:this.props.viewBox,width:this.props.width,xmlns:"http://www.w3.org/2000/svg",children:this.props.children})}}const YZ=null;var L2,l4;const XZ=({width:t=20,height:e=20,...n})=>L2(l4,{height:e,width:t,...n,viewBox:"0 0 20 20",children:L2("path",{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",fillRule:"evenodd"})}),JZ=null;var d4,S0,u4;const qZ=({title:t="Vertical Dots",desc:e="Vertical Dots",width:n="4",height:o="24",className:r=null,focusable:a="false"})=>d4("svg",{className:u4("i i-dotsVertical",r),focusable:a,height:o,viewBox:"0 0 4 24",width:n,children:[S0("title",{children:t}),S0("desc",{children:e}),S0("path",{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",fillRule:"evenodd"})]}),eY=null,h4=({title:t="Download",desc:e="Arrow down with horizontal line beneath it",width:n="16",height:o="19",className:r,focusable:a="false"},i)=>(0,s.jsxs)("svg",{className:oe()("i i-download",r),focusable:a,height:o,ref:i,viewBox:"0 0 16 19",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("rect",{height:"2",rx:"1",width:"16",y:"17"}),(0,s.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,s.jsx)("path",{d:"M7 0h2v12H7z"})]}),m4=(0,h.forwardRef)(h4);var p4,mc,f4;const tY=({title:t="Download Circle",desc:e="Arrow down with horizontal line beneath it wrapped up in a circle",width:n="51",height:o="51",className:r,focusable:a="false"})=>p4("svg",{className:f4("i i-downloadCircle",r),focusable:a,height:o,viewBox:"0 0 51 51",width:n,children:[mc("title",{children:t}),mc("desc",{children:e}),mc("g",{fill:"none",stroke:"none",children:mc("g",{fill:"#000",transform:"translate(-695, -227)",children:mc("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"})})})]}),sY=null;var v4,E2,g4;function nY(t){return v4(g4,{viewBox:"0 0 13 13",...t,children:[E2("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 
1510.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"}),E2("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"})]})}var C4,Wl,x4;const oY=({title:t="Draw",desc:e="Arrow down with horizontal line beneath it",width:n="15",height:o="15",className:r,focusable:a="false"})=>C4("svg",{className:x4("i i-drawFromQuestionBank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[Wl("title",{children:t}),Wl("desc",{children:e}),Wl("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"}),Wl("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"})]}),rY=null;var b4,N0,y4;const aY=t=>b4(y4,{height:"16",viewBox:"0 0 16 4",width:"4",...t,children:[N0("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"}),N0("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"}),N0("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"})]}),iY=null;var L4,pc,E4;const cY=({title:t="More",desc:e="Three dots next to one another",width:n="16",height:o="4",className:r=null,focusable:a="false"})=>L4("svg",{className:E4("i",r),focusable:a,height:o,viewBox:"0 0 16 4",width:n,children:[pc("title",{children:t}),pc("desc",{children:e}),pc("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"}),pc("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"}),pc("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"})]}),lY=null;var T2,fc,T4;const dY=({title:t="Draggable",desc:e="Three dots stacked on top of one another",width:n="4",height:o="14",className:r,focusable:a="false"})=>T2("svg",{className:T4("i i-ellipsis--vert",r),focusable:a,height:o,viewBox:"0 0 4 14",width:n,children:[fc("title",{children:t}),fc("desc",{children:e}),T2("g",{transform:"translate(.158 .445)",children:[fc("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),fc("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),fc("circle",{cx:"1.5",cy:"1.5",r:"1.5"})]})]}),uY=null;var I4,j0,S4;const hY=({title:t="Embed",desc:e="Embed icon",width:n="16",height:o="15",className:r,focusable:a="false"})=>I4("svg",{className:S4("i i-embed",r),focusable:a,height:o,viewBox:"0 0 16 15",width:n,children:[j0("title",{children:t}),j0("desc",{children:e}),j0("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 
1510-.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"})]}),mY=null;var N4,_l,j4;const pY=({title:t="Empty folder",desc:e="Empty folder",width:n="46",height:o="46",className:r,focusable:a="false"})=>N4("svg",{className:j4("i i-emptyFolder",r),focusable:a,height:o,viewBox:"0 0 46 46",width:n,children:[_l("title",{children:t}),_l("desc",{children:e}),_l("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"}),_l("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"})]}),fY=null;var k4,Gl,A4;const vY=({title:t="End Slide",desc:e="End Slide",width:n="16",height:o="14",className:r,focusable:a="false"})=>k4("svg",{className:A4("i i-end-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[Gl("title",{children:t}),Gl("desc",{children:e}),Gl("path",{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",fillRule:"evenodd"}),Gl("rect",{fillRule:"evenodd",height:"14",width:"2",x:"14"})]}),gY=null;var I2,Kl,R4;const CY=({title:t="Envelope",desc:e="Envelope",width:n="17",height:o="14",className:r,focusable:a="false"})=>I2("svg",{className:R4("i i-envelope",r),focusable:a,height:o,viewBox:"0 0 17 14",width:n,xmlns:"http://www.w3.org/2000/svg",children:[Kl("title",{children:t}),Kl("desc",{children:e}),I2("g",{fillRule:"nonzero",children:[Kl("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"}),Kl("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"})]})]}),xY=null;var P4,Ql,w4;const bY=({title:t="Error",desc:e="An x with a circle",width:n="50",height:o="50",className:r,focusable:a="false"})=>P4("svg",{className:w4("i i-error",r),focusable:a,height:o,viewBox:"0 0 50 50",width:n,children:[Ql("title",{children:t}),Ql("desc",{children:e}),Ql("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"}),Ql("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"})]}),yY=null;var M4,Zl,O4;const LY=({title:t="Error Alert",desc:e="A red circle with a white exclamation point in the middle",width:n="18",height:o="18",className:r,focusable:a="false"})=>M4("svg",{className:O4("i i-errorAlert",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[Zl("title",{children:t}),Zl("desc",{children:e}),Zl("circle",{cx:"9",cy:"9",r:"9"}),Zl("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"})]}),EY=null,S2=({"aria-hidden":t,"aria-label":e="X mark",className:n,dataTestId:o="x-mark",desc:r,height:a="10",overrideStyle:i=!1,role:l="img",title:u,width:d="10"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:oe()(n,{"i i-exMark":!i}),"data-testid":o,focusable:"false",height:a,role:l,viewBox:"0 0 10 10",width:d,xmlns:"http://www.w3.org/2000/svg",children:[u&&(0,s.jsx)("title",{children:u}),r&&(0,s.jsx)("desc",{children:r}),(0,s.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"})]});var D4,Yl,B4;const IY=({title:t="Export",desc:e="Export",width:n="12",height:o="15",className:r,focusable:a="false"})=>D4("svg",{className:B4("i i-export",r),focusable:a,height:o,viewBox:"0 0 12 15",width:n,children:[Yl("title",{children:t}),Yl("desc",{children:e}),Yl("polygon",{points:"7,6.4 7,1 5,1 5,6.4 2.3,6.4 6,10.8 9.7,6.4"}),Yl("rect",{height:"2",width:"10",x:"1",y:"12"})]}),SY=null,N2=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",he
151ight:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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:"#DFE1E2",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#C7CACC",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M13.534 22.9863V24.4163H10.245V26.4458H12.984V27.8813H10.245V30.9998H8.375V22.9863H13.534Z",fill:"#414448"}),(0,s.jsx)("path",{d:"M17.533 30.9998H15.663V22.9863H17.533V30.9998Z",fill:"#414448"}),(0,s.jsx)("path",{d:"M21.8805 29.5148H24.8505V30.9998H20.0215V22.9863H21.8805V29.5148Z",fill:"#414448"}),(0,s.jsx)("path",{d:"M31.8846 22.9863V24.4163H28.5956V26.2863H31.1146V27.6613H28.5956V29.5698H31.8846V30.9998H26.7256V22.9863H31.8846Z",fill:"#414448"})]}),H4=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focu
151sable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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:"#C3CEED",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#96A9E0",fillRule:"evenodd"}),(0,s.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,s.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,s.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.5
151589C30.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"})]});var F4,Xl,V4;const kY=({title:t="No File",desc:e="Paper icon with one corner bent inwards",width:n="40",height:o="50",className:r,focusable:a="false"})=>F4("svg",{className:V4("i i-fileNone",r),focusable:a,height:o,viewBox:"0 0 40 50",width:n,children:[Xl("title",{children:t}),Xl("desc",{children:e}),Xl("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"}),Xl("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"})]}),AY=null,z4=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focu
151sable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#EDADA9",fillRule:"evenodd"}),(0,s.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,s.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,s.jsx)("path",{d:"M31.3465 22.9863V24.4163H28.0575V26.4458H30.7965V27.8813H28.0575V30.9998H26.1875V22.9863H31.3465Z",fill:"#771D18"})]}),U4=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focu
151sable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#F8BFA6",fillRule:"evenodd"}),(0,s.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,s.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,s.jsx)("path",{d:"M31.2008 22.9863V24.4603H28.9458V30.9998H27.0868V24.4603H24.8318V22.9863H31.2008Z",fill:"#7C2B0E"})]}),$4=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focu
151sable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,s.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.
1516738ZM11.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,s.jsx)("path",{d:"M23.6162 22.9865V24.4605H21.3612V31H19.5022V24.4605H17.2472V22.9865H23.6162Z",fill:"#144E6C"}),(0,s.jsx)("path",{d:"M30.5411 22.9865V24.4165H27.2521V26.446H29.9911V27.8815H27.2521V31H25.3821V22.9865H30.5411Z",fill:"#144E6C"})]}),W4=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#AFD1AE",fillRule:"evenodd"}),(0,s.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,s.jsx)("path",{d:"M20.6017 29.5149H23.5717V30.9999H18.7427V22.9864H20.6017V29.5149Z",fill:"#265026"}),(0,s.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"})]}
151),_4=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,s.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,s.jsx)("path",{d:"M20.7826 30.9998H18.9126V22.9863H20.7826V30.9998Z",fill:"#124F6E"}),(0,s.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"})]});var G4,Jl,K4;const DY=({title:t="More",desc:e="Filled caret pointing right",width:n="7",height:o="5",className:r,focusable:a="false"})=>G4("svg",{className:K4("i i-filledChevronRight",r),focusable:a,height:o,viewBox:"0 0 5 7",width:n,children:[Jl("title",{children:t}),Jl("desc",{children:e}),Jl("g",{children:Jl("path",{d:"M4 3.625L1 1v5.25z",strokeLinecap:"round",strokeLinejoin:"round"})})]}),BY=null,k0=({title:t="Fill in the Blank",desc:e="Pencil writing on a surface",width:n="15",height:o="15",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:oe()("i i-fillInTheBlank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.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"})]});var Q4,A0;const FY=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:l="16"})=>Q4("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&A0("title",{children:i}),o&&A0("desc",{children:o}),A0("path",{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",fill:"currentColor",fillRule:"evenodd"})]}),VY=null;var Z4,R0,Y4;const zY=({title:t="Flashcard Block",desc:e="Flashcard Block",width:n="16",height:o="15",className:r,focusable:a="false"})=>Z4("svg",{className:Y4("i i-flashcard-block",r),focusable:a,height:o,viewBox:"0 0 16 15",width:n,children:[R0("title",{children:t}),R0("desc",{children:e}),R0("path",{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.572
151c.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",fillRule:"nonzero"})]}),UY=null;var j2,X4;const $Y=t=>j2(X4,{viewBox:"0 0 15 15",...t,children:j2("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"})}),WY=null;var J4,k2,q4;function _Y(t){return J4(q4,{...t,viewBox:"0 0 16 14",children:[k2("path",{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",fillRule:"evenodd"}),k2("path",{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",fillRule:"evenodd"})]})}var e9,ql,t9;const GY=({title:t="Folder Empty",desc:e="Folder outline empty",width:n="47",height:o="47",className:r,focusable:a="false"})=>e9("svg",{className:t9("i i-folder--empty",r),focusable:a,height:o,viewBox:"0 0 47 47",width:n,children:[ql("title",{children:t}),ql("desc",{children:e}),ql("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"}),ql("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"})]}),KY=null;var s9,P0,n9;const QY=({title:t="Folder Outline",desc:e="Outline of a folder",width:n="24",height:o="24",className:r,focusable:a="false"})=>s9("svg",{className:n9("i",r),focusable:a,height:o,viewBox:"0 0 24 24",width:n,children:[P0("title",{children:t}),P0("desc",{children:e}),P0("path",{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",fillRule:"nonzero"})]}),ZY=null;var o9,w0,r9;const YY=({title:t="FolderSort",desc:e="Sort by Folders",width:n="13",height:o="13",className:r,focusable:a="false"})=>o9("svg",{className:r9("i",r),focusable:a,height:o,viewBox:"0 0 13 13",width:n,children:[w0("title",{children:t}),w0("desc",{children:e}),w0("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"})]}),XY=null;var a9,M0,i9;const JY=({title:t="Font",desc:e="A capital letter T with a second smaller capital T to the right",width:n="35",height:o="27",className:r,focusable:a="false"})=>a9("svg",{className:i9("i",r),focusable:a,height:o,viewBox:"0 0 35 27",width:n,children:[M0("title",{children:t}),M0("desc",{children:e}),M0("path",{d:"M1 1v5h8.333v20h5V6h8.334V1H1zm32.667 10.333h-15v5h5V26h5v-9.667h5v-5z",fill:"none",fillRule:"nonzero",stroke:"#adaeaf",strokeWidth:"2"})]}),qY=null;var c9,ed,l9;const eX=t=>c9(l9,{...t,viewBox:"0 0 16 16",children:[ed("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"}),ed("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"}),ed("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"}),ed("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"})]}),tX=null;var d9,td,u9;
151const sX=({title:t="Group",desc:e="Silhouettes of two people",width:n="18",height:o="17",className:r,focusable:a="false"})=>d9("svg",{className:u9("i",r),focusable:a,height:o,viewBox:"0 0 18 17",width:n,children:[td("title",{children:t}),td("desc",{children:e}),td("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"}),td("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.
15111055 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"})]}),nX=null;var A2,h9;function oX(t){return A2(h9,{viewBox:"0 0 20 14",...t,children:A2("path",{d:"M0 0H20V2H0V0Z M0 6H20V8H0V6Z M20 12H0V14H20V12Z"})})}const O0=({className:t,decorative:e=!0,desc:n="Heart",focusable:o="false",height:r="16",isFilled:a=!0,title:i="Heart",width:l="16"})=>(0,s.jsxs)("svg",{"aria-hidden":e,className:oe()(`i i-heart${a?"Filled":"Outline"}`,t),focusable:o,height:r,viewBox:"0 0 16 16",width:l,children:[(0,s.jsx)("title",{children:i}),(0,s.jsx)("desc",{children:n}),(0,s.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"})]});var m9,D0,p9;const aX=({title:t="Hidden",desc:e="Eye crossed out",width:n="16",height:o="14",className:r=null,focusable:a="false"})=>m9("svg",{className:p9("i i-hidden",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[D0("title",{children:t}),D0("desc",{children:e}),D0("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"})]}),iX=null;var f9,B0,v9;const cX=({title:t="Image Block",desc:e="Image Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>f9("svg",{className:v9("i i-image-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[B0("title",{children:t}),B0("desc",{children:e}),B0("path",{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",fillRule:"evenodd"})]}),lX=null;var g9,H0,C9;const dX=({title:t="Labeled Graphic Block",desc:e="Labeled Graphic Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>g9("svg",{className:C9("i i-labeled-graphic-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[H0("title",{children:t}),H0("desc",{children:e}),H0("path",{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",fillRule:"evenodd"})]}),uX=null;var x9,sd,b9;const hX=({title:t="Label Set",desc:e="Label Set",width:n="17",height:o="17",className:r,focusable:a="false"})=>x9("svg",{className:b9("i i-labelSet",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[sd("title",{children:t}),sd("desc",{children:e}),sd("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"}),sd("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"})]}),mX=null;var y9,F0,L9;function pX(t){return y9(L9,{fill:"none",stroke:"currentColor",viewBox:"0 0 13 14",...t,children:[F0("path",{clipRule:"evenodd",d:"M6.57031 1 L1 3.85715 L6.57031 6.71431 L12.1406 3.85715 L6.57031 1 Z",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}),F0("path",{d:"M1 6.71431 L6.57031 9.57147 L12.1406 6.71431",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}
151),F0("path",{d:"M1 9.57147 L6.57031 12.42863 L12.1406 9.57147",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"})]})}var E9,V0;const fX=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:l="16"})=>E9("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&V0("title",{children:i}),o&&V0("desc",{children:o}),V0("path",{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",fill:"currentColor",fillRule:"evenodd"})]}),vX=null;var T9,z0,I9;const gX=({title:t="Lesson",desc:e="Lesson Icon",width:n="23",height:o="17",className:r,focusable:a="false"})=>T9("svg",{className:I9("i i-lesson",r),focusable:a,height:o,viewBox:"0 0 23 17",width:n,children:[z0("title",{children:t}),z0("desc",{children:e}),z0("path",{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",fillRule:"nonzero"})]}),CX=null;var S9,U0,N9;const xX=t=>S9(N9,{...t,viewBox:"0 0 16 16",children:[U0("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"}),U0("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"}),U0("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"})]}),bX=null;var j9,$0,k9;const yX=({title:t="List Block",desc:e="List Block",width:n="16",height:o="13",className:r,focusable:a="false"})=>j9("svg",{className:k9("i i-list-block",r),focusable:a,height:o,viewBox:"0 0 16 13",width:n,children:[$0("title",{children:t}),$0("desc",{children:e}),$0("path",{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",fillRule:"evenodd"})]}),LX=null;var A9,nd;const EX=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r,role:a="img",title:i,width:l})=>A9("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focu
151sable:"false",height:r,role:a,viewBox:"0 0 40 40",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&nd("title",{children:i}),o&&nd("desc",{children:o}),nd("path",{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",fillRule:"evenodd"}),nd("path",{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",fillRule:"evenodd"})]}),TX=null;var R2,R9;function IX(t){return R2(R9,{viewBox:"0 0 20 22",...t,children:R2("path",{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",fillRule:"evenodd"})})}var P9,od,w9;const SX=({title:t="Mail",desc:e="Mail",width:n="14",height:o="12",className:r,focusable:a="false"})=>P9("svg",{className:w9("i",r),focusable:a,height:o,viewBox:"0 0 14 12",width:n,children:[od("title",{children:t}),od("desc",{children:e}),od("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"}),od("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"})]}),NX=null,M9=({title:t="Matching",desc:e="Two rows of stacked squares",width:n="15",height:o="15",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:oe()("i i-matching",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.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"})]});var O9,vc,D9;const kX=({title:t="Move to Folder",desc:e="Folder with an arrow",width:n="15",height:o="15",className:r,focusable:a="false"})=>O9("svg",{className:D9("i i-move",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[vc("title",{children:t}),vc("desc",{children:e}),vc("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"}),vc("path",{d:"M4.795 7.973a.583.583 0 0 0 0 1.167h5.834a.583.583 0 1 0 0-1.167H4.795z"}),vc("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"})]}),AX=null,B9=({title:t="Multiple Choice",desc:e="Stacked circles to the left of stacked lines",width:n="16",height:o="16",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:oe()("i i-multipleChoice",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.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,s.jsx)("circle",{cx:"7.904",cy:"7.904",r:"1.904"})]}),H9=({title:t="Multiple Response",desc:e="A box with a checkmark in it",width:n="16",height:o="16",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:oe()("i i-multipleResponse",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{d:"M15.142.332c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14
151c0-.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"})]});var F9,W0,V9;const wX=({"aria-hidden":t,title:e="New Folder",desc:n="Folder with plus sign",width:o="14",height:r="14",className:a,focusable:i="false"})=>F9("svg",{"aria-hidden":t,className:V9("i i-newFolder",a),focusable:i,height:r,viewBox:"0 0 14 14",width:o,children:[e&&W0("title",{children:e}),W0("desc",{children:n}),W0("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"})]}),MX=null;var z9,rd,U9;const OX=({title:t="New Slide",desc:e="New Slide",width:n="16",height:o="16",className:r,focusable:a="false"})=>z9("svg",{className:U9("i i-new-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[rd("title",{children:t}),rd("desc",{children:e}),rd("path",{d:"M7,12h2V9h3V7H9V4H7v3H4v2h3V12z",fillRule:"evenodd"}),rd("path",{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",fillRule:"evenodd"})]}),DX=null;var $9,_0,W9;const BX=({title:t="Next Slide",desc:e="Next Slide",width:n="16",height:o="13.4",className:r,focusable:a="false"})=>$9("svg",{className:W9("i i-next-slide",r),focusable:a,height:o,viewBox:"0 0 16 13.4",width:n,children:[_0("title",{children:t}),_0("desc",{children:e}),_0("path",{d:"M9.3,0L7.9,1.4l4.3,4.3H0v2h12.2L7.9,12l1.4,1.4L16,6.7L9.3,0",fillRule:"evenodd"})]}),HX=null;var _9,G0,G9;const FX=({title:t="Not Allowed",desc:e="A circle with a slanted line through it",width:n="12",height:o="12",className:r,focusable:a="false"})=>_9("svg",{className:G9("i i-notAllowed",r),focusable:a,height:o,viewBox:"0 0 12 12",width:n,children:[G0("title",{children:t}),G0("desc",{children:e}),G0("path",{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",fill:"#FFF",fillRule:"evenodd"})]}),VX=null;var K9,P2;const zX=({className:t})=>K9("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",children:[P2("path",{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",fillRule:"evenodd"}),P2("path",{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",fillRule:"evenodd"})]}),UX=null;var Q9,gc,Z9;const $X=({title:t="Hide",desc:e="Shape of an eye with a stroke through it",width:n="20",height:o="16",className:r,focusable:a="false"})=>Q9("svg",{className:Z9("i",r),focusable:a,height:o,viewBox:"0 0 20 16",width:n,children:[gc("title",{children:t}),gc("desc",{children:e}),gc("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"}),gc("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"}),gc("rect",{height:"1.41",transform:"translate(9.992148, 7.999769) rotate(-45.000000) translate(-9.992148, -7.999769) ",width:"21.21",x:"-0.61285173",y:"7.29476926"})]}),WX=null;var Y9,w2,X9;const _X=t=>Y9(X9,{viewBox:"0 0 16 16",...t,children:[w2("path",{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",fillRule:"evenodd"}),w2("path",{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",fillRule:"evenodd"})]}),GX=null;var J9,K0,q9;const KX=({title:t="Edit",desc:e="Pencil",width:n="11",height:o="11",className:r,focusable:a="false"})=>J9("svg",{className:q9("i i-pencil",r),focusable:a,height:o,viewBox:"0 0 10 10",width:n,children:[K0("title",{children:t}),K0("desc",{children:e}),K0("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"})]}),QX=null;var e8,Q0;const ZX=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:l="16"})=>e8("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focu
151sable:"false",height:r,role:a,viewBox:"0 0 16 16",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&Q0("title",{children:i}),o&&Q0("desc",{children:o}),Q0("path",{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",fillRule:"evenodd"})]}),YX=null;var t8,ad,s8;const XX=({title:t="Person",desc:e="Person outline",width:n="16",height:o="18",className:r,focusable:a="false"})=>t8("svg",{className:s8("i",r),focusable:a,height:o,viewBox:"0 0 16 18",width:n,children:[ad("title",{children:t}),ad("desc",{children:e}),ad("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"}),ad("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"})]}),JX=null;class Z0 extends h.Component{constructor(...e){super(...e),this.maskId=`person-unknown-mask-${Ns()()}`,this.pathId=`person-unknown-path-${Ns()()}`}render(){const{title:e="Person Unknown",desc:n,width:o="38",height:r="38",className:a,decorative:i,focusable:l="false"}=this.props;return(0,s.jsxs)("svg",{"aria-hidden":i,className:oe()("i i-person-unknown",a),focusable:l,height:r,viewBox:"0 0 38 38",width:o,children:[e&&(0,s.jsx)("title",{children:e}),n&&(0,s.jsx)("desc",{children:n}),(0,s.jsx)("defs",{children:(0,s.jsx)("circle",{cx:"19",cy:"19",id:this.pathId,r:"19"})}),(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,s.jsx)("mask",{fill:"#fff",id:this.maskId,children:(0,s.jsx)("use",{href:`#${this.pathId}`})}),(0,s.jsx)("use",{fill:"#D8D8D8",href:`#${this.pathId}`}),(0,s.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 M2=({title:t="Pick One",desc:e="Pick One",width:n="16",height:o="14",className:r,focusable:a="false","aria-hidden":i})=>(0,s.jsxs)("svg",{"aria-hidden":i,className:oe()("i i-pickOne",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsxs)("g",{fillRule:"evenodd",children:[(0,s.jsx)("path",{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",fillRule:"nonzero"}),(0,s.jsx)("path",{d:"M8.862 1.324h7v2h-7zM8.862 4.324h7v2h-7zM8.862 8.324h7v2h-7zM8.862 11.324h7v2h-7z"})]})]});var n8,id,o8;const eJ=({title:t="Play",desc:e="Triangle facing right that will play the media",width:n="16",height:o="22",className:r,focusable:a="false"})=>n8("svg",{className:o8("i",r),focusable:a,height:o,viewBox:"0 0 16 22",width:n,children:[id("desc",{children:e}),id("title",{children:t}),id("g",{transform:"translate(-124 -107)",children:id("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"})})]}),tJ=null;var r8,Y0,a8;const sJ=({title:t="Process Block",desc:e="Process Block",width:n="29",height:o="17",className:r,focusable:a="false"})=>r8("svg",{className:a8("i i-process-block",r),focusable:a,height:o,viewBox:"0 0 29 17",width:n,children:[Y0("title",{children:t}),Y0("desc",{children:e}
151),Y0("path",{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",fillRule:"evenodd"})]}),nJ=null;function i8(t){return(0,s.jsxs)(Qs,{viewBox:"0 0 16 16",...t,children:[(0,s.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,s.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,s.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"})]})}var c8,X0,l8;const oJ=({title:t="Quiz",desc:e="Quiz Icon",width:n="25",height:o="25",className:r,focusable:a="false"})=>c8("svg",{className:l8("i i-quiz",r),focusable:a,height:o,viewBox:"0 0 25 25",width:n,children:[X0("title",{children:t}),X0("desc",{children:e}),X0("path",{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",fillRule:"nonzero"})]}),rJ=null;var O2,d8;const aJ=t=>O2(d8,{...t,viewBox:"0 0 10 13",children:O2("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"})}),iJ=null;var u8,D2,h8;function cJ(t){return u8(h8,{viewBox:"0 0 15 14",...t,children:[D2("path",{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",fillRule:"evenodd"}),D2("path",{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",fillRule:"evenodd"})]})}var B2,m8;function lJ(t){return B2(m8,{viewBox:"0 0 28 28",...t,children:B2("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.8072
151V9.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"})})}var p8,J0;const dJ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:l="16"})=>p8("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&J0("title",{children:i}),o&&J0("desc",{children:o}),J0("path",{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",fill:"currentColor",fillRule:"evenodd"})]}),uJ=null;function f8(t){return(0,s.jsx)(Qs,{viewBox:"0 0 23 17",...t,children:(0,s.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"})})}var H2,v8;const hJ=({width:t="16",height:e="16",className:n})=>H2("svg",{"aria-hidden":"true",className:v8("i i-search",n),fill:"currentColor",focusable:"false",height:e,viewBox:"0 0 15.6 14.7",width:t,children:H2("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"})}),mJ=null;var F2,g8;const pJ=t=>F2(g8,{...t,viewBox:"0 0 15 15",children:F2("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"})}),fJ=null;var C8,Cc,x8;const vJ=({title:t="Share Folder",desc:e="Share folder",width:n="14",height:o="14",className:r,focusable:a="false"})=>C8("svg",{className:x8("i",r),focusable:a,height:o,viewBox:"0 0 14 14",width:n,children:[Cc("title",{children:t}),Cc("desc",{children:e}),Cc("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"}),Cc("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"}),Cc("path",{d:"M10.9804 10.9804V9.1503H12.1699V10.9804H14V12.1699H12.1699V14H10.9804V12.1699H9.1503V10.9804H10.9804Z"})]}),gJ=null;var V2,b8;const CJ=t=>V2(b8,{viewBox:"0 0 16 16",...t,children:V2("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"})}),xJ=null;var y8,xc,L8;const bJ=({title:t="Sortable",desc:e="Three horizontal lines stacked on top of each other",width:n="22",height:o="7",className:r,focusable:a="false"})=>y8("svg",{className:L8("i i-sortable",r),focusable:a,height:o,viewBox:"0 0 22 7",width:n,children:[xc("title",{children:t}),xc("desc",{children:e}
151),xc("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"0"}),xc("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"3"}),xc("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"6"})]}),yJ=null;var E8,q0,T8;const LJ=({title:t="Sorting Block",desc:e="Sorting Block",width:n="22",height:o="15",className:r,focusable:a="false"})=>E8("svg",{className:T8("i i-sorting-block",r),focusable:a,height:o,viewBox:"0 0 22 15",width:n,children:[q0("title",{children:t}),q0("desc",{children:e}),q0("path",{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",fillRule:"nonzero"})]}),EJ=null;var z2,Wa,I8;const TJ=({title:t="Spinner",desc:e="Hollow circle fading from transparent to gray",width:n="21",height:o="20",className:r,focusable:a="false"})=>z2("svg",{className:I8("i i-spinner",r),focusable:a,height:o,viewBox:"0 0 21 20",width:n,children:[Wa("title",{children:t}),Wa("desc",{children:e}),Wa("defs",{children:z2("radialGradient",{cx:"89.364%",cy:"24.157%",fx:"89.364%",fy:"24.157%",gradientTransform:"rotate(69.991 .842 .205) scale(1 .69785)",id:"spinner-radial-gradient",r:"45.607%",children:[Wa("stop",{offset:"0%",stopColor:"#C8C8C8",stopOpacity:"0"}),Wa("stop",{offset:"100%",stopColor:"#979797"})]})}),Wa("path",{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",fill:"url(#spinner-radial-gradient)",fillRule:"nonzero",transform:"rotate(-159 42.222 17.43)"})]}),IJ=null;var U2,cd,S8;const SJ=({title:t="SquareIcon",desc:e="Outline of a square",width:n="30",height:o="30",className:r,focusable:a="false"})=>U2("svg",{className:S8("i i-square-outline",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[cd("title",{children:t}),cd("desc",{children:e}),U2("g",{fill:"none",fillRule:"evenodd",children:[cd("rect",{className:"overlay",fill:"none",fillRule:"evenodd",height:"28",rx:"2",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"}),cd("rect",{fill:"none",fillRule:"evenodd",height:"28",rx:"2",stroke:"#FFF",strokeOpacity:"0.63",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"})]})]}),NJ=null;var $2,Jr,N8;const e1="overlay",jJ=({title:t="Stack",desc:e="Three horizontal bars stacked",width:n="30",height:o="30",className:r,focusable:a="false"})=>$2("svg",{className:N8("i i-stack",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[Jr("title",{children:t}),Jr("desc",{children:e}),$2("g",{fill:"none",fillRule:"evenodd",children:[Jr("rect",{className:e1,height:"8.824",rx:"1",width:"30"}),Jr("rect",{className:e1,height:"8.824",rx:"1",width:"30",y:"10.588"}),Jr("rect",{className:e1,height:"8.824",rx:"1",width:"30",y:"21.176"}),Jr("rect",{fill:"#FFF",fillOpacity:"0.63",height:"8.824",rx:"1",width:"30"}),Jr("rect",{fill:"#FFF",fillOpacity:"0.4",height:"8.824",rx:"1",width:"30",y:"10.588"})]})]}),kJ=null;var W2,j8;function AJ(t){return W2(j8,{viewBox:"0 0 16 16",...t,children:W2("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 k8,ld,A8;const RJ=({title:t="Success",desc:e="Checkmark with a circle",width:n="51",height:o="51",className:r=null,focusable:a="false"})=>k8("svg",{className:A8("i",r),focusable:a,height:o,viewBox:"0 0 51 51",width:n,children:[ld("title",{children:t}),ld("desc",{children:e}),ld("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"}),ld("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"})]}),PJ=null;var R8,t1,P8;const wJ=({title:t="Text Block",desc:e="Text Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>R8("svg",{className:P8("i i-text-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[t1("title",{children:t}),t1("desc",{children:e}),t1("path",{d:"M15.747.5c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14
151c0-.6.4-1 1-1h14zm-13 2v12h12v-12h-12zm2 1h8v3h-1l-1-1h-1v6l1 1v1h-4v-1l1-1v-6h-1l-1 1h-1v-3z",fillRule:"evenodd"})]}),MJ=null;var _2,dd,w8;const OJ=({title:t="Text Slide",desc:e="Text Slide",width:n="16",height:o="14",className:r,focusable:a="false"})=>_2("svg",{className:w8("i i-text-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[dd("title",{children:t}),dd("desc",{children:e}),_2("g",{fillRule:"evenodd",children:[dd("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"}),dd("path",{d:"M4 8h8v2H4z"})]})]}),DJ=null;var M8,s1,O8;const BJ=({title:t="TitleSort",desc:e="Letters A and Z next to a downard arrow",width:n="17",height:o="11",className:r,focusable:a="false"})=>M8("svg",{className:O8("i",r),focusable:a,height:o,viewBox:"0 0 17 11",width:n,children:[s1("title",{children:t}),s1("desc",{children:e}),s1("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"})]}),HJ=null;function D8(t){return(0,s.jsxs)(Qs,{viewBox:"0 0 15 16",...t,children:[(0,s.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,s.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.23974
15102,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"})]})}var B8,n1,H8;const FJ=({title:t="Remove",desc:e="Trash can",width:n="10",height:o="13",className:r=null,focusable:a="false"})=>B8("svg",{className:H8("i i-trash",r),focusable:a,height:o,viewBox:"0 0 10 13",width:n,children:[n1("title",{children:t}),n1("desc",{children:e}),n1("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"})]}),VJ=null;var F8,o1,V8;const zJ=({title:t="Trash Folder",desc:e="Solid trash can",width:n="16",height:o="17",className:r,focusable:a="false"})=>F8("svg",{className:V8("i i-trashFolder",r),focusable:a,height:o,viewBox:"0 0 16 17",width:n,children:[o1("title",{children:t}),o1("desc",{children:e}),o1("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"})]}),UJ=null;var z8,_a;const $J=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:l="14"})=>z8("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focu
151sable:"false",height:r,role:a,viewBox:"0 0 14 16",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&_a("title",{children:i}),o&&_a("desc",{children:o}),_a("path",{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",fillRule:"evenodd"}),_a("path",{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",fillRule:"evenodd"}),_a("path",{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",fillRule:"evenodd"}),_a("path",{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",fillRule:"evenodd"})]}),WJ=null;var U8,r1,$8;const _J=({title:t="Remove",desc:e="Trash can",width:n="13.3",height:o="16",className:r,focusable:a="false"})=>U8("svg",{className:$8("i",r),focusable:a,height:o,viewBox:"0 0 13.3 16",width:n,children:[r1("title",{children:t}),r1("desc",{children:e}),r1("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"})]}),GJ=null;var W8,ud,_8;const KJ=({title:t="Upload",desc:e="Upload icon",width:n="15",height:o="15",className:r="",focusable:a="false"})=>W8("svg",{className:_8("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[ud("title",{children:t}),ud("desc",{children:e}),ud("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"}),ud("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"})]}),QJ=null;var G8,bc;const ZJ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="14",role:a="img",title:i,width:l="14"})=>G8("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focu
151sable:"false",height:r,role:a,viewBox:"0 0 14 14",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&bc("title",{children:i}),o&&bc("desc",{children:o}),bc("path",{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",fillRule:"evenodd"}),bc("path",{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",fillRule:"evenodd"}),bc("path",{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",fillRule:"evenodd"})]}),YJ=null;var K8,hd,Q8;const XJ=({title:t="UploadXml",desc:e="UploadXml",width:n="18",height:o="21",className:r,focusable:a="false"})=>K8("svg",{className:Q8("i i-uploadXml",r),focusable:a,height:o,viewBox:"0 0 18 21",width:n,children:[hd("title",{children:t}),hd("desc",{children:e}),hd("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"}),hd("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"})]}),JJ=null;var Z8,a1,Y8;const qJ=({title:t="Video Block",desc:e="Video Block",width:n="17",height:o="13",className:r,focusable:a="false"})=>Z8("svg",{className:Y8("i i-video-block",r),focusable:a,height:o,viewBox:"0 0 17 13",width:n,children:[a1("title",{children:t}),a1("desc",{children:e}),a1("path",{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",fillRule:"evenodd"})]}),eq=null;function X8(t){return(0,s.jsx)(Qs,{viewBox:"0 0 16 12",...t,children:(0,s.jsx)("g",{transform:"translate(-1 -2)",children:(0,s.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"})})})}var J8,G2,q8;function tq(t){return J8(q8,{...t,viewBox:"0 0 14 10",children:[G2("path",{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.39
151102L8.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",fillRule:"evenodd"}),G2("path",{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",fillRule:"evenodd"})]})}var K2,md,e7;const sq=({title:t="Visible",desc:e="Eye",width:n="16",height:o="12",className:r=null,focusable:a="false"})=>K2("svg",{className:e7("i i-visible",r),focusable:a,height:o,viewBox:"0 0 16 12",width:n,children:[md("title",{children:t}),md("desc",{children:e}),K2("g",{children:[md("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"}),md("path",{d:"M8 4a2 2 0 1 1 .001 3.999A2 2 0 0 1 8 4"})]})]}),nq=null,t7=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="20",role:a="img",title:i="",style:l,width:u="20"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:oe()("i i-xMarkFilled",n),focusable:"false",height:r,role:a,style:l,viewBox:"0 0 20 20",width:u,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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 s7=c(21863),n7=c.n(s7),o7=c(57955),yc=c.n(o7),r7=c(36087),Ds=c.n(r7),a7=c(34597),i7=c.n(a7),c7=c(53095),l7=c.n(c7);const d7=Ds()(n7()({}),i7()(["first_name","last_name"]),yc()(" "),l7()),u7=({className:t,decorative:e,size:n,...o})=>{const r=Es()(["avatars","medium"],o),a=e?"":d7(o)||"Unknown User";return r?(0,s.jsx)("img",{alt:a,className:t||"user-avatar",src:r,style:{height:n,width:n}}):(0,s.jsx)(Z0,{decorative:e,height:n,title:a,width:n})};var h7=c(19245);const q=(0,h7.setup)({el:"__",mod:"--",modValue:"-"}),m7=`${(0,Je._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,pd=q("cover");function p7(){const{certificateDownload:t,riseComCurrentUser:e}=gt(),n=(0,mt.useLabelsMap)(),o=F5(),a=Yr()?.quizPassed??!0;return!(o&&a&&!(0,Je.Wk)())||window.viewType==="preview"?null:(0,s.jsxs)("div",{className:pd("completed-info"),children:[(0,s.jsxs)("div",{className:pd("completed-info-avatar"),children:[(0,s.jsx)(u7,{...e,decorative:!0}),(0,s.jsx)("img",{alt:"",className:pd("completed-info-trophy"),src:m7})]}),(0,s.jsxs)("div",{className:pd("completed-info-label"),children:[(0,s.jsx)("span",{"aria-hidden":"true",children:n?.coverCompleted||"Completed"}),(0,s.jsx)("span",{className:"visually-hidden",children:n?.a11yCoverCourseCompleted||"Course Completed"})]}),t&&(0,s.jsx)(so,{})]})}var f7=c(74083),lo=c.n(f7);const i1=t=>{if(!t)return"";const e=lo()(t),n=lo()(),o=lo()(n).add(24,"hours");return e.isBefore(n)?"Overdue":e.isBefore(o)?`Due in ${n.to(e,!0)}`:`Due ${e.format("MMM D")}`},Q2=t=>lo()(t).isSameOrBefore(lo()().add(3,"d"),"days");function v7(t){return function({Default:n,className:o,...r}){const a=`brand--${t}`,i=o?`${o} ${a}`:a;return(0,s.jsx)(n,{...r,className:i})}}const Ga=v7("ui"),c1=t=>t==="<p><br></p>"?"":t;var Z2=c(8653);const l1="data-change-path",d1="data-l10n-id",Y2=(t,e)=>{if(t)return e?["l10n","translations",e,t.getAttribute(d1)]:JSON.parse(t.getAttribute(l1))};let Xo;const g7=()=>{const t=Ka();t&&t.classList.add("selected")},fd=()=>{Ka()&&Xo&&Lc(Xo)},C7=(t,e)=>n=>{const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(d1)):o.find(a=>a.getAttribute(l1));r!=null&&(t&&Xo!==r&&(Xo=r,t(Y2(r,e))),Lc(r))},x7=(t,e)=>n=>{n.stopPropagation(),n.preventDefault();const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(d1)):o.find(a=>a.getAttribute(l1));if(r){Lc(r),J2();const a=Y2(r,e);a&&(t(a),g7())}},u1=()=>document.getElementById("target-container"),Ka=()=>document.getElementById("target-highlight"),X2=()=>{if(u1())return;const e=document.createElement("div");e.classList.add("target-container"),e.id="target-container",document.body.appendChild(e);const n=document.createElement("div");n.classList.add("target-highlight"),n.id="target-highlight",e.appendChild(n)},J2=()=>{const t=Ka();t&&t.classList.add("selected")},b7=({top:t,left:e,width:n,height:o})=>{const r=document.querySelector("[data-page=true]")?.getBoundingClientRect().width??window.innerWidth-20;return n<r&&(t=t-10,o=o+20,e=e-20,n=n+40),{top:t,left:e,width:n,height:o}},Lc=t=>{const{top:e,left:n,width:o,height:r}=b7(t.getBoundingClientRect()),a=Ka();a&&(t!==Xo&&a.classList.contains("selected")&&a.classList.remove("selected"),a.classList.add("active"),Object.assign(a.style,{top:`${e}px`,left:`${n}px`,width:`${o}px`,height:`${r}px`}),Xo=t)},y7=()=>{window.removeEventListener("scroll",fd,{capture:!0}),vd()},vd=()=>{Ka()?.classList?.remove("active"),Ka()?.classList?.remove("selected")};let Qa,gd;const L7=({locale:t})=>({isActive:e},n)=>{const o=!!u1();
151if(e){if(Qa)return Qa;X2();const r=C7(n,t);let a;return Qa=new Promise((i,l)=>{a=x7(i,t),gd=l,document.body.classList.add("target-mode"),window.addEventListener("mousemove",r,!0),window.addEventListener("click",a,!0),window.addEventListener("resize",vd,!0),window.addEventListener("scroll",fd,!0)}).finally(()=>{Qa=null,gd=null,document.body.classList.remove("target-mode"),window.removeEventListener("mousemove",r,!0),window.removeEventListener("click",a,!0),window.removeEventListener("resize",vd,!0),window.removeEventListener("scroll",fd,!0)}),Qa}else vd(),u1()?.remove(),Xo=null;return o&&gd!=null&&gd(new Error("cancelled")),Promise.resolve()},E7=t=>{let e=t.findIndex(n=>n==="items");return e===-1?t:t.slice(0,e+2)},q2=t=>{const e=(0,Z2.Ce)(t);return e?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(E7(t))}']`):null},T7=t=>{X2(),window.addEventListener("scroll",fd,{capture:!0}),document.body.classList.add("target-mode");const e=q2(t);e&&Lc(e)},I7=t=>{if(!Qa)return;const e=q2(t);e&&(Xo!==e&&(Xo=e),Lc(e),J2(),e.scrollIntoView({behavior:"smooth",block:"center"}))},S7=t=>["course",t],ep=(t,e)=>["lessons",{id:t},e],N7=(t,e)=>[...ep(t,"items"),{id:e}],Za=t=>JSON.stringify(S7(t)),tp=(t,e)=>JSON.stringify(ep(t,e)),j7=(t,e)=>JSON.stringify(N7(t,e)),hn={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"},Ya=(t,e)=>{const n={};for(let o=0;o<t.length;o++){const r=t[o];if(typeof r=="object"&&r.id){const a=t[o-1],i=a==="items"?e.shift():a.replace(/s$/,"");n[`${i??"item"}Id`]=r.id}}return n};var xe=c(88254),et=c(18154);function h1(t,e){const n=(0,h.useMemo)(()=>matchMedia(`(${t}: ${e*.0625}em)`),[t,e]),[o,r]=(0,h.useState)(n.matches);return(0,h.useEffect)(()=>{const a=n.addEventListener??n.addListener,i=n.removeEventListener??n.removeListener;return a.call(n,"change",l),()=>i.call(n,"change",l);function l(){r(n.matches)}},[n]),o}const k7="matches";function A7(t,e,n,o="withPxToEmMedia"){return r=>{function a(i){const l=h1(t,e);return(0,s.jsx)(r,{...i,[n??k7]:l})}return a.displayName=`${o}(${r.displayName||r.name})`,a}}function js(t){return h1("max-width",t-1)}function aq(t){return h1("min-width",t)}function R7(t,e,n){return A7("min-width",t,e,n)}const P7=()=>js(1200),w7=()=>js(768),m1=()=>js(480),p1=q("cover");function M7(t,e,n){return t===1?e:n}function O7(){const t=(0,xe.v1)(),e=(0,xe.vU)(),n=M7(t,e?.coverLesson||"Lesson",e?.coverLessons||"Lessons");return(0,s.jsxs)("li",{className:p1("num-lessons"),role:"listitem",children:[(0,s.jsx)("span",{className:p1("num-lessons-value"),children:t}),"\xA0",(0,s.jsx)("span",{className:p1("num-lessons-units"),children:n})]})}const D7=36e5,f1=q("cover");function B7(t){return Math.round(10*t)/10}function sp(t,e,n){return t===1?e:n}function H7(){const{showTimeToComplete:t,timeToComplete:e}=(0,xe.DX)(),n=(0,xe.vU)();if(!t)return null;const o=e>=D7,r=o?B7(lo().duration(e).asHours()):lo().duration(e).asMinutes(),a=o?sp(r,n?.coverHour||"Hour",n?.coverHours||"Hours"):sp(r,n?.coverMinute||"Minute",n?.coverMinutes||"Minutes");
151return(0,s.jsxs)("li",{className:f1("time-to-complete"),role:"listitem",children:[(0,s.jsx)("span",{className:f1("time-to-complete-value"),children:r}),"\xA0",(0,s.jsx)("span",{className:f1("time-to-complete-units"),children:a})]})}const v1=q("cover");function g1(){const t=(0,xe.vU)();return Ge.BI?(0,s.jsxs)("section",{className:v1("course-length-section"),children:[(0,s.jsx)("h2",{className:v1("course-length-title"),children:t?.a11yCoverCourseLength||"Course Length"}),(0,s.jsxs)("ul",{className:v1("course-length-list"),role:"list",children:[(0,s.jsx)(O7,{}),(0,s.jsx)(H7,{})]})]}):null}const F7=q("cover"),V7="MMMM D, YYYY";function np({format:t=V7}){const{publishedAt:e}=(0,xe.DX)(),n=(0,xe.vU)(),o=F7("details-content-published-at");if(!e)return null;const r=lo()(e);return r.isValid()?(0,s.jsxs)("div",{className:o,children:[n?.coverPublished||"Published"," ",r.format(t)]}):null}var z7=c(58443),Ec=c.n(z7);const op=Ec()(async()=>(await c.e("math").then(c.bind(c,6338))).browserAdaptor(),{promise:!0}),rp=Ec()(async()=>{const[{TeX:t},{AllPackages:e}]=await Promise.all([c.e("math").then(c.t.bind(c,85274,23)),c.e("math").then(c.bind(c,71923))]);return new t({packages:e})}),ap=Ec()(async()=>{const t=await c.e("math").then(c.t.bind(c,89826,23));return new t.SVG({fontCache:"local"})},{promise:!0}),ip=Ec()(async()=>{const[t,e,n,{RegisterHTMLHandler:o},{mathjax:r}]=await Promise.all([op(),rp(),ap(),c.e("math").then(c.bind(c,27475)),c.e("math").then(c.bind(c,56605))]);return o(t),r.document(document,{InputJax:e,OutputJax:n})},{promise:!0}),U7=Ec()(async t=>{const e=new CSSStyleSheet;t.adoptedStyleSheets.push(e);const[n,o]=await Promise.all([ap(),ip()]),r=n.styleSheet(o);r instanceof HTMLStyleElement&&await e.replace(r.innerText)},{promise:!0});class $7 extends HTMLElement{static observedAttributes=["long-description","short-description","tex"];_ready;_anchor=this;_renderController;constructor(){super(),this._ready=U7(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,[n,o,r]=await Promise.all([ip(),op(),rp(),this._ready]);if(e.signal.aborted)return;r.reset();const{tex:a}=this,i=a.includes("begin{")?a:String.raw`\begin{align*}${a}\end{align*}`,l=n.convert(i),u=o.firstChild(l),d=document.evaluate("//@data-mjx-error",u,null,XPathResult.STRING_TYPE).stringValue;if(d.length>0){let m=d;if(d===String.raw`Missing \begin{align*} or extra \end{align*}`){const p=n.convert(a),f=o.firstChild(p);m=document.evaluate("//@data-mjx-error",f,null,XPathResult.STRING_TYPE).stringValue??"An error occured"}this.dispatchEvent(new W7("matherror",{bubbles:!1,composed:!1,detail:{errorMessage:m}})),this._anchor.replaceChildren()}else this._anchor.replaceChildren(u);await this._renderAria()}async _renderAria(){if(await this._ready,this._renderController?.signal.aborted||this.firstElementChild==null)return;const e=[this.shortDescription,this.longDescription].filter(n=>(n?.length??0)>0).join(`
152
153`);this.firstElementChild.ariaLabel=e.trim().length===0?null:e}}customElements.define("rise-math",$7);class W7 extends CustomEvent{}var uo=c(45869);function C1(t){if(t==null)return{value:t};let e;if(typeof t=="string"?e=t:e=t.innerHTML,!e.includes("data-editor-id"))return{value:t};const n=e.match(/^<[^>]+data-editor-id=["']([^"']+)["'][^>]*>/);if(n){const o=n[1],r=e.match(/^<[^>]*>(.*)<\/[^>]*>$/s),a=r?r[1]:e;return{editorId:o,value:typeof t=="string"?a:t}}return{value:t}}var Io=c(16323);const cp=(t="")=>t.split(".").slice(-2).join("."),lp=st()(cp,Ge._$),_7=t=>t.includes("#/lessons/"),Bn=t=>{if(!t||G7(t)||_7(t))return!1;t.slice(0,2)==="//"&&(t=`https:${t}`);try{const{hostname:e}=new URL(t),n=cp(e);return n!==lp("ARTICULATE_DOMAIN")&&n!==lp("RISE_DOMAIN")}catch{return!1}},G7=t=>t?t.slice(0,7)==="mailto:":!1,K7=t=>t.includes("rise.articulate")&&t.includes("/authoring/")&&t.includes("/lesson");var Et=c(34234);const x1=q("external-link-disabled-popover");function Cd(t={}){const{delay:e=200}=t,n=h.useRef(new Map),o=h.useCallback(l=>{const u=n.current.get(l);u&&clearTimeout(u);const d=setTimeout(()=>{const m=`trial-external-link-popover-${l}`;Et.ArcPopover.handlePopover(m,"show"),n.current.delete(l)},e);n.current.set(l,d)},[e]),r=h.useCallback(l=>{const u=n.current.get(l);u&&clearTimeout(u);const d=setTimeout(()=>{const m=`trial-external-link-popover-${l}`;Et.ArcPopover.handlePopover(m,"hide"),n.current.delete(l)},e);n.current.set(l,d)},[e]),a=h.useCallback(l=>{const u=`trial-external-link-popover-${l}`;Et.ArcPopover.handlePopover(u,"show")},[]),i=h.useCallback(l=>{const u=`trial-external-link-popover-${l}`;Et.ArcPopover.handlePopover(u,"hide")},[]);return h.useEffect(()=>{const l=n.current;return()=>{l.forEach(u=>clearTimeout(u)),l.clear()}},[]),{handleMouseEnter:o,handleMouseLeave:r,handleFocus:a,handleBlur:i}}function Q7(t){return e=>{const{handleMouseEnter:n,handleMouseLeave:o,handleFocus:r,handleBlur:a}=Cd(),i=h.useId();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t,{...e,attachmentId:i,onLinkBlur:a,onLinkFocus:r,onLinkMouseEnter:n,onLinkMouseLeave:o}),e.externalLinksDisabled&&(0,s.jsx)(xd,{anchorId:i})]})}}const xd=({anchorId:t})=>{const e=`trial-external-link-popover-${t}`;return h.useEffect(()=>{const n=o=>{o.key==="Escape"&&Et.ArcPopover.handlePopover(e,"hide")};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[e]),(0,s.jsx)(Et.ArcPopover,{alternateAnchorId:t,anchorAt:"top-center",boundary:"flip",className:x1(),hasTail:!0,headerSlot:(0,s.jsx)("div",{className:x1("header"),children:"Subscribe to unlock full access"}),hidePopoverButton:!0,id:e,offset:8,popover:"manual",variant:"common",children:(0,s.jsx)("div",{className:x1("content"),children:"To protect learners from phishing, scams, or malicious redirects, external links are disabled 
153when sharing with Quick Share during your trial."})})},Z7=({allowTabNavigation:t=!0,className:e="","data-testid":n,id:o,ref:r,tagName:a="div",value:i})=>{const l=(0,xe.DX)(),u=l&&"externalLinksDisabled"in l?l.externalLinksDisabled:!1,d=(0,xe.vU)(),m=(0,h.useRef)(null),p=(0,et.QQ)(i),[f,g]=(0,h.useState)([]),{handleMouseEnter:v,handleMouseLeave:C,handleFocus:x,handleBlur:y}=Cd(),{currentLocale:b}=(0,wt.nY)(),E=(0,et.D_)(),L=(0,h.useMemo)(()=>{const T=(0,Io.aj)(p),I=Array.prototype.concat(ox,rx,q7,X7,J7(b,E),u?ex:[],t?sx:tx,nx(d?.a11yNoticeLinkNewTab));return Y7(I,T)},[t,b,E,u,d,p]);return(0,h.useLayoutEffect)(()=>{if(!u||!m.current){g([]);return}const T=[];m.current.querySelectorAll("[data-tooltip-target]").forEach((S,N)=>{const k=S.nextElementSibling;if(k?.hasAttribute("data-external")){const B=k.getAttribute("data-external-text")||"",M=k.getAttribute("data-external-id")||`link-${N}`;T.push({placeholder:S,text:B,id:M})}}),g(T)},[L,u]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{"aria-hidden":t?void 0:!0,className:`${e} brand--linkColor`,"data-l10n-id":(0,Lt.pP)(i),"data-testid":n,id:o,ref:T=>{m.current=T,typeof r=="function"?r(T):r&&(r.current=T)},children:(0,h.createElement)(a,{className:"fr-view rise-tiptap",dangerouslySetInnerHTML:(0,h.useMemo)(()=>({__html:L}),[L])})}),f.map(({placeholder:T,text:I,id:S})=>(0,s.jsxs)(h.Fragment,{children:[(0,uo.createPortal)((0,s.jsx)("span",{id:S,onBlur:()=>y(S),onFocus:()=>x(S),onMouseEnter:()=>v(S),onMouseLeave:()=>C(S),role:"button",style:{cursor:"pointer",color:"var(--arc-color-text-disabled)",textDecoration:"underline"},tabIndex:0,children:I}),T),(0,s.jsx)(xd,{anchorId:S})]},S))]})};function Y7(t,e){const n=document.createElement("div");n.innerHTML=e;for(const o of t)o(n);return n.innerHTML}const dp=t=>t.getAttribute("data-link-type")==="lesson"?!0:(t.getAttribute("href")??"").startsWith("#/lessons/");function X7(t){for(const e of t.querySelectorAll("a")){dp(e)?e.removeAttribute("target"):e.setAttribute("target","_blank");const o=new Set((e.getAttribute("rel")??"").split(/\s+/));o.delete("opener"),o.add("noopener"),o.add("noreferrer"),o.add("nofollow"),e.setAttribute("rel",Array.from(o).join(" "))}}function J7(t,e){return n=>{if(!(!t||t===e)){for(const o of n.querySelectorAll("a"))if(dp(o)){const r=o.getAttribute("href");if(r){const a=r.includes("?")?"&":"?";o.setAttribute("href",`${r}${a}locale=${encodeURIComponent(t)}`)}}}}}function q7(t){for(const e of t.querySelectorAll("table"))if(!e.parentElement.classList.contains("rise-table-wrap")){const n=document.createElement("div");n.className="rise-table-wrap",e.parentNode.replaceChild(n,e),n.appendChild(e)}}function ex(t){let e=0;const n=[];for(const o of t.querySelectorAll("a"))if(Bn(o.href)){const r=o.textContent||"",a=`external-link-anchor-${Date.now()}-${e++}`;o.removeAttribute("href"),o.removeAttribute("rel"),o.removeAttribute("target"),o.setAttribute("data-external",""),o.setAttribute("data-external-text",r),o.setAttribute("data-external-id",a),o.setAttribute("role","button"),o.style.display="none";const i=document.createElement("span");i.setAttribute("data-tooltip-target",""),o.parentNode?.insertBefore(i,o),n.push({placeholder:i,text:r,id:a})}return n}function tx(t){for(const e of t.querySelectorAll("a"))e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")}function sx(t){for(const e of t.querySelectorAll("a"))e.removeAttribute("aria-hidden"),e.hasAttribute("data-external")?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}function nx(t="(opens in a new tab)"){return e=>{for(const n of e.querySelectorAll('a[target="_blank"]')){const o=document.createElement("span");o.className="visually-hidden-always",o.textContent=t,n.appendChild(o)}}}function ox(t){return C1(t).value}function rx(t){for(const e of t.querySelectorAll("rise-math")){const{shortDescription:n,longDescription:o}=e,r=e.querySelector('[slot="short-description"]'),a=e.querySelector('[slot="long-description"]');n==null&&r!=null&&(e.shortDescription=r.textContent),o==null&&a!=null&&(e.longDescription=a.textContent)}return t}const yt=Z7,up=q("cover");function ax(){const t=(0,xe.DX)(),e=P7(),n=(0,et.QQ)(t.description);if(!n)return null;const o=Za("description"),r=(0,as.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":o};return(0,s.jsx)("div",{...r,children:(0,s.jsxs)("section",{className:up("details-content-section"),children:[e?(0,s.jsx)(g1,{}):(0,s.jsx)(np,{}),(0,s.jsx)(yt,{className:up("details-content-description"),value:c1(n)},"text")]})})}function ix({Default:t,...e}){const{dueAt:n}=e,r=n&&Q2(n)?"brand--background":"brand--color";return(0,s.jsx)(t,{...e,className:r})}var hp=c(78933);function yn(t){const{to:e,children:n}=t,o=(0,ce.zy)(),r=(0,h.useMemo)(()=>(0,hp.B)(e,o),[o,e]);return(0,s.jsx)(ce.N_,{...t,to:r,children:n})}const cx=({children:t,disabled:e,onClick:n,to:o,...r},a)=>e?(0,s.jsx)("a",{"aria-disabled":"true",ref:a,role:"link",...r,children:t}):(0,s.jsx)(yn,{onClick:n,ref:a,to:o,...r,children:t}),lx=(0,h.forwardRef)(cx);class Ln{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,n=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),o=/CriOS/.test(window.navigator.userAgent);return e&&n&&!o}static get isSafari9(){if(!window||!window.navigator)return!1;const e=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),n=/version\/9./i.test(window.navigator.userAgent);return e&&n}static get isIe11(){return!!(window&&Object.hasOwnProperty.call(window,"ActiveXObject")&&!window.ActiveXObject)}
153static 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}}function dx(){return!(typeof document>"u"||!("startViewTransition"in document)||Ln.isFirefox)}function ux(t){if(!dx()){const e=t();return Promise.resolve(e)}return new Promise(e=>{try{document.startViewTransition(async()=>{await t()}).finished.then(()=>e()).catch(()=>e())}catch{const n=t();Promise.resolve(n).then(()=>e()).catch(()=>e())}})}let b1=!1;function Jo(t,e="default"){return b1?Promise.resolve():(b1=!0,ux(()=>{document.documentElement.classList.add(`transition-${e}`),t()}).then(()=>{document.documentElement.classList.remove(`transition-${e}`)}).finally(()=>{b1=!1}))}const mp=q("cover"),qs=At("CoverAction",()=>{const t=(0,xe.DX)(),{trackingQuizId:e,theme:n}=t,o=(0,Pe.Z)(),r=window.viewType==="preview",a=(0,xe._z)(),i=(0,xe.MT)(),l=(0,xe.Sd)(),u=a?.id,d=n?.showStartButton??!0,m=(0,Ge.Wk)()?l===100:(0,Ge.As)(),p=i!=null,f=p?i:u,g=!r&&Ge.BI&&(m||!p&&!e),{courseCTALabel:v}=(0,xe.cN)({isCourseComplete:m,percentCourseComplete:l}),C=oe()("cover__header-content-action-link","overview__button-enrolled",{"overview__start-again":g}),x=y=>{y.preventDefault(),Jo(()=>{o((0,jt.p1)(f))},"cover-to-lesson")};return d&&v?(0,s.jsx)("div",{className:mp("header-content-action-wrapper"),children:(0,s.jsx)(lx,{className:C,onClick:x,to:(0,jt.p1)(f),children:(0,s.jsx)("span",{className:mp("header-content-action-link-text"),children:v})})}):null});var hx=c(54811),qr=c.n(hx),Ft=c(31155);const Tc=qr()("partner-content-course-author__"),mx=({partnerContentAuthors:t,darkText:e,isImage:n,learn:o,lesson:r,isOnePage:a,selectedContentId:i})=>{const l=gs()(Mt()("id",i),t),u=Es()(["data","authors"],l),m=(r?u:t).filter(C=>C.name),p=oe()(Tc("author-container"),{[Tc("author-container-padding-top")]:e}),f=oe()({[Tc("gray-text")]:!o&&!a}),g=oe()(Tc("author-image")),v=C=>`url(${(0,Ft.ny)({width:"76",height:"76",imageKey:C.image})})`;return(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Authors"}),(0,s.jsx)("ol",{className:p,"data-testid":"partner-content-course-author-container",role:"list",children:m.map(C=>(0,s.jsxs)("li",{className:Tc("author"),"data-testid":"partner-content-course-author",role:"listitem",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:g,"data-testid":"partner-content-course-author-image",disabled:n,style:{backgroundImage:v(C)}}),(0,s.jsx)("span",{className:f,children:C.name})]},C.name))})]})},Xa=q("cover"),px=()=>{const t=(0,xe.UG)();if(t==null)return null;const{avatar:e,authorName:n,title:o}=t;return(0,s.jsxs)("div",{className:Xa("author-with-title"),children:[(0,s.jsx)(pp,{avatar:e}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:Xa("author-name"),children:n}),(0,s.jsx)("div",{className:Xa("author-title"),children:o})]})]})},pp=({avatar:t})=>{const e=Xa("header-content-authors-avatar");return t?(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content-authors-avatar",style:{backgroundImage:`url(${(0,Ge.o1)(t)})`}}):(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content-authors-avatar",children:(0,s.jsx)(Z0,{decorative:!0})})},So=At("CoverAuthors",({className:t})=>{const{color:e,partnerContentId:n,selectedAuthorId:o,theme:r,themeId:a}=(0,xe.DX)(),{accentContrast:i,coverPageType:l}=r??{},{authorName:u,avatar:d}=(0,xe.UG)()??{},m=(0,xe.vU)(),p=(0,xe.hM)(),f=!!n&&!!p,v=js(768)&&(0,$t.yL)(a,l),C=l===w.BL.LEFT_OVERLAY||l===w.BL.CENTERED_OVERLAY||v;if(o==="none")return null;const x=u||"Unknown User",y=Xa("header-content-authors").mix(t),b=Xa("header-content-authors-name");return f?(0,s.jsx)("div",{className:y,"data-testid":"cover-authors",children:(0,s.jsx)(mx,{accentContrast:i,color:e,isImage:C,learn:!0,partnerContentAuthors:p})}):(0,s.jsxs)("div",{className:y,"data-testid":"cover-authors",children:[(0,s.jsx)(pp,{avatar:d,isImage:C}),(0,s.jsxs)("div",{className:b,"data-testid":"cover-header-content-authors-name",children:[(0,s.jsx)("span",{className:"visually-hidden-alw
vendor: 4,590 bytes, line 153
153ays",children:m?.a11yAuthorPrefix}),(0,s.jsx)("span",{children:x})]})]})}),fx=q("cover"),Hn=At("CoverContentNoImage",({children:t})=>{const e=fx("header-content");return(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content",children:t})}),ea=t=>{const e=(0,xe.DX)(),n=(0,et.gY)();return vx(e,t,n)},vx=(t,e,n)=>{const{media:o,alpha:r}=e==="coverImage"?(0,He.dM)(t,n):(0,He.LI)(t,n),a="image"in o?(0,He.I6)(o?.image?.alt):void 0;return{alpha:r,ariaLabel:a,media:o,role:(0,He.Vx)(a)}},gx=q("cover"),y1=()=>{const t=(0,xe.dT)(),{alpha:e,ariaLabel:n,media:o,role:r}=ea("coverImage"),a=gx("header-image"),i=(0,$t.b9)({alpha:e,color:t,media:o});return(0,s.jsx)("div",{"aria-label":n,className:a,role:r,style:i})},Cx=q("cover"),L1=({children:t})=>{const e=(0,xe.dT)(),n=`overlay-${e.toLowerCase()}`,o=Cx("header-content",{[n]:!!e});return(0,s.jsxs)("div",{className:o,"data-testid":"cover-header-content",children:[t,(0,s.jsx)(y1,{})]})},xx=q("cover"),Ic=({hasOverlay:t=!1})=>{const{alpha:e,ariaLabel:n,media:o,role:r}=ea("coverImage"),a=(0,$t.b9)({alpha:e,hasOverlay:t,media:o}),i=xx("header-graphic",{"dot-com":Ge.BI});return(0,s.jsx)("div",{"aria-label":n,className:i,"data-testid":"cover-header-graphic",role:r,style:a})},bx=q("cover");function en({children:t}){const e=!!(0,xe.Bd)(),n=bx("header-content-info",{rbc:e,"rise-com":Ge.BI});return(0,s.jsx)("div",{className:n,"data-testid":"cover-header-content-info",children:t})}const Us=vs("CoverProgress"),yx=q("cover"),tn=At("CoverTitle",()=>{const t=(0,xe.DX)(),e=(0,et.QQ)(t.title),n=yx("header-content-title"),o=Za("title"),r=(0,as.uW)(t.title)?{"data-l10n-id":t.title.l10nId}:{"data-change-path":o};return(0,s.jsx)("h1",{...r,className:n,"data-testid":"cover-header-content-title",tabIndex:-1,children:e})}),Lx={SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"LEFT_OVERLAY"};function fp(){const t=(0,xe.DX)(),e=w7(),n=t?.theme?.coverPageType||"CENTERED";return e?Lx[n]??n:n}const Ex=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(L1,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(So,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(Us,{}),(0,s.jsx)(qs,{})]})})}),Tx=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(Hn,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(So,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(Us,{}),(0,s.jsx)(qs,{})]})})}),Ix=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ic,{}),(0,s.jsx)(Hn,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(So,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(Us,{}),(0,s.jsx)(qs,{})]})})]}),Sx=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Hn,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(So,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(Us,{}),(0,s.jsx)(qs,{})]})}),(0,s.jsx)(Ic,{})]});function Nx(){switch(fp()){default:case w.BL.LEFT_OVERLAY:case w.BL.CENTERED_OVERLAY:return(0,s.jsx)(Ex,{});case w.BL.LEFT:case w.BL.CENTERED:return(0,s.jsx)(Tx,{});case w.BL.SPLIT_LEFT_IMAGE:case w.BL.TWO_THIRDS_LEFT_IMAGE:return(0,s.jsx)(Sx,{});case w.BL.SPLIT_RIGHT_IMAGE:case w.BL.TWO_THIRDS_RIGHT_IMAGE:return(0,s.jsx)(Ix,{})}}function jx(){return(0,s.jsx)("header",{className:"cover__header","data-testid":"cover-header",children:(0,s.jsx)(Nx,{})})}var kx=c(59607),Ja=c.n(kx),Ax=c(26372);const Rx=q("cover");function Px({children:t}){const e=(0,xe.DX)(),{themeId:n}=e?.theme??{},o=fp(),r=Ax.useMemo(()=>Ja()(o),[o]),a=Rx({layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}var wx=c(30994),ut=c.n(wx),Mx=c(57819),Fn=c.n(Mx),Ox=c(98283),E1=c.n(Ox);const xr=({id:t="portal",childType:e="other",attributes:n}={})=>{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)),n)for(const[i,l]of Object.entries(n))r.setAttribute(i,l);return r};var vp=c(26372);class Dx extends vp.Component{static propTypes={id:ut().any.isRequired,lessonProgress:ut().object.isRequired,type:ut().string.isRequired,items:ut().array};refProgressWrap=vp.createRef(null);constructor(e){super(e),this.state={isSticky:!1},this.portal=xr()}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],n=e.scrollTop,o=e.scrollTop,r
153=this.refProgressWrap.current;if(!r)return;const i=r.getBoundingClientRect().top+o,l=n>i;this.state.isSticky!==l&&this.setState({isSticky:l})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:n}=this.props,o=Fn()(-1,"activeIndex",n),r=Cs()(e);return o===-1?0:Ms()(o)===r?100:E1()("%","",Es()([o,"linePosition"],e))}processProgressValue(){const{items:e,lessonProgress:n}=this.props,o=Fn()(0,"activeIndex",n),r=Cs()(e);return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:e,type:n}=this.props;switch(n){case"process":return this.processProgressValue();case"sorting":return Fn()(0,"percentViewed",e);case"timeline":return this.timelineProgressValue();default:return Fn()(0,"percentComplete",e)}}render(){const{type:e,items:n}=this.props,{isSticky:o}=this.state,r=oe()("progress-wrap",{}),a=oe()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":o}),i=oe()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),l=this.progressValue(),u=e==="timeline"&&n&&n.map(m=>{const p=oe()("progress__marker",{"progress__marker--active brand--background":parseInt(l)>=parseInt(m.linePosition.slice(0,-1))});return(0,s.jsx)("div",{className:p,style:{left:m.linePosition}},m.id)}),d=(0,s.jsx)("div",{className:r,children:(0,s.jsx)("div",{className:i,children:(0,s.jsxs)("div",{className:"progress__container",children:[(0,s.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${l}% * var(--dir-x)),0px,0px)`}}),u]})})});return(0,s.jsxs)("div",{ref:this.refProgressWrap,children:[d,(0,uo.createPortal)((0,s.jsx)("div",{className:a,children:d}),this.portal)]})}}const T1=q("lesson-header"),No=At("LessonHeaderAuthor",({avatar:t,authorName:e,className:n=""})=>{const o=(0,xe.vU)();return(0,s.jsxs)("div",{className:`lesson-header__author ${n}`,children:[(0,s.jsx)("img",{alt:"",className:"lesson-header__author-img",src:(0,Ge.o1)(t)}),(0,s.jsx)("span",{className:"visually-hidden-always",children:o?.a11yAuthorPrefix}),(0,s.jsx)("span",{className:"lesson-header__author-name",children:e})]})}),Sc=({showPartnerContent:t=!1})=>(0,s.jsx)("div",{className:T1("author",{"partner-content":t})}),jo=()=>(0,s.jsx)("div",{className:"lesson-header__counter"}),ko=({lessonName:t,lessonPreposition:e,totalLessons:n,lessonNumber:o,showPartnerContent:r=!1})=>{const{lmsOptions:a}=(0,xe.DX)();return(0,s.jsx)("div",{className:T1("counter",{"partner-content":r}),children:(0,s.jsx)("div",{className:T1("count",{"exit-button-enabled":a?.enableExitCourse}),children:`${t} ${o} ${e} ${n}`})})},ta=({description:t})=>(0,s.jsx)(yt,{className:"lesson-header__description",value:t}),Bx=({children:t})=>(0,s.jsx)("div",{className:"lesson-header__grouped-row",children:t}),Hx=({ariaLabel:t,imgRole:e,children:n,sectionStyles:o,topWrapClassName:r})=>(0,s.jsxs)("header",{className:"page__header",children:[(0,s.jsx)("div",{className:"page__header-limit",children:(0,s.jsx)("div",{className:"page__header-container",children:(0,s.jsx)("div",{className:"lesson-header__row",children:(0,s.jsx)("div",{className:"lesson-header__main",children:(0,s.jsx)("div",{className:"lesson-header",children:(0,s.jsx)("div",{className:r,children:n})})})})})}),(0,s.jsx)("div",{"aria-label":t,className:"page__header-bg",role:e,style:o})]}),Ao=({title:t,id:e})=>{const n=tp(e,"title");return(0,s.jsx)("h1",{className:"lesson-header__title","data-change-path":n,tabIndex:-1,children:(0,s.jsx)(yt,{value:t})})},Fx=t=>{const{authorName:e,avatar:n,color:o,description:r,labels:a,lessonHeaderStyle:i,lessonId:l,lessonNumber:u,partnerContentAuthors:d,showAuthor:m,showLessonCount:p,title:f,totalLessons:g}=t,{lessonName:v,lessonPreposition:C}=a,x=E=>`url(${(0,Ft.ny)({width:"76",height:"76",imageKey:E.image})})`,y=i===w.xj.TINT?{color:o}:null,b=n&&e&&m&&!d;return(0,s.jsxs)("div",{className:"lesson-header",children:[(0,s.jsxs)("div",{className:"lesson-header__top-wrap",style:y,children:[(0,s.jsx)(Ao,{id:l,title:f}),d&&(0,s.jsx)("div",{className:"lesson-header__partner-content",children:d.map(E=>(0,s.jsxs)("div",{className:"lesson-header__partner-content-author",children:[(0,s.jsx)("div",{className:"lesson-header__partner-content-author-img",style:{backgroundImage:x(E)}}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"visually-hidden-alw
153ays",children:a?.a11yAuthorPrefix}),(0,s.jsx)("span",{children:E.name})]})]},E.name))}),(0,s.jsxs)("div",{className:"lesson-header__author-count-wrap",children:[b?(0,s.jsx)(No,{authorName:e,avatar:n}):(0,s.jsx)(Sc,{}),p?(0,s.jsx)(ko,{lessonName:v,lessonNumber:u,lessonPreposition:C,totalLessons:g}):(0,s.jsx)(jo,{})]})]}),r&&(0,s.jsx)(ta,{description:r})]})};class gq extends h.Component{static propTypes={authorName:ut().string,avatar:ut().string,description:ut().string,showLessonCount:ut().bool,steps:ut().number,title:ut().string.isRequired,type:ut().string.isRequired};render(){const{children:e}=this.props;return(0,s.jsx)("section",{className:"page__header",children:(0,s.jsxs)("div",{className:"page__header-limit",children:[(0,s.jsx)("div",{className:"page__header-container",children:(0,s.jsx)("div",{className:"lesson-header__row",children:(0,s.jsx)("div",{className:"lesson-header__main",children:(0,s.jsx)(Fx,{...this.props})})})}),h.Children.map(e,n=>n&&n.type!==Dx?null:n)]})})}}const br=q("lesson-header"),gp=t=>`url(${(0,Ft.ny)({width:"76",height:"76",imageKey:t?.image})})`,I1=({partnerContentAuthors:t})=>{const e=t.map(o=>o.name).join(", "),n=t.length===1;return(0,s.jsxs)("div",{className:br("partner-content",{mobile:!0}),children:[(0,s.jsx)("div",{className:br("partner-content-author",{single:n}),children:t.map(o=>(0,s.jsx)("div",{className:br("partner-content-author-img",{single:n}),style:{backgroundImage:gp(o)}},o.name))}),(0,s.jsx)("span",{"aria-hidden":"true",className:br("author-name"),children:e})]})},qa=({partnerContentAuthors:t})=>{const e=(0,xe.vU)();return(0,s.jsx)("div",{className:br("partner-content"),children:t.map(n=>(0,s.jsxs)("div",{className:br("partner-content-author"),children:[(0,s.jsx)("div",{className:br("partner-content-author-img"),style:{backgroundImage:gp(n)}}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("span",{className:"visually-hidden",children:[e?.a11yAuthorPrefix," ",n.name]}),(0,s.jsx)("span",{"aria-hidden":"true",className:br("author-name"),tag:"span",children:n.name})]})]},n.name))})};var Cp=c(26372);const ei=q("lesson-header"),Vx=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:l,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null&&l,g=e&&t&&l&&!f,v=g||f||u,C=u&&(g||f);return(0,s.jsxs)("div",{className:ei("content"),children:[v&&(0,s.jsxs)("div",{className:ei("info-row"),children:[g?(0,s.jsx)(No,{authorName:t,avatar:e}):(0,s.jsx)(Sc,{}),f&&(0,s.jsx)(qa,{partnerContentAuthors:i}),C&&(0,s.jsx)("span",{"aria-hidden":"true",className:ei("info-row--divider"),children:"|"}),u?(0,s.jsx)(ko,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(jo,{})]}),(0,s.jsxs)("div",{className:ei("title-wrapper",{"no-info":!v}),children:[(0,s.jsx)(Ao,{id:p,title:d}),n&&(0,s.jsx)(ta,{description:n})]})]})},zx=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:l,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null,g=Cp.useMemo(()=>e&&t&&l&&!f,[e,t,l,f]);return(0,s.jsxs)("div",{className:ei("content"),children:[u?(0,s.jsx)(ko,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(jo,{}),g&&(0,s.jsx)(No,{authorName:t,avatar:e}),l&&f&&(0,s.jsx)(I1,{partnerContentAuthors:i}),(0,s.jsx)(Ao,{id:p,title:d}),n&&(0,s.jsx)(ta,{description:n})]})},Ux=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:l,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null,g=Cp.useMemo(()=>e&&t&&l&&!f,[e,t,l,f]);return(0,s.jsxs)("div",{className:ei("content"),children:[u?(0,s.jsx)(ko,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(jo,{}),(0,s.jsx)(Ao,{id:p,title:d}),g?(0,s.jsx)(No,{authorName:t,avatar:e}):(0,s.jsx)(Sc,{showPartnerContent:f}),l&&f&&(0,s.jsx)(qa,{partnerContentAuthors:i}),n&&(0,s.jsx)(ta,{description:n})]})};function $x(t){const e=m1();return t.lessonHeaderSize===w.OX.SMALL&&!e?(0,s.jsx)(Vx,{...t}):e?(0,s.jsx)(zx,{...t}):(0,s.jsx)(Ux,{...t})}var bd=c(7927);const ti=t=>t===w.AY.FLOATING||t===w.AY.FLOATING_FULL;function sa(){const t=(0,bd.LY)(({course:{buttonNavigationStyle:n}})=>n);return js(480)&&t===w.AY.FLOATING?w.AY.FLOATING_FULL:t}function S1({className:t,ref:e}){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",focu
153sable:"false",height:"15",ref:e,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M2.34315 7.34315L8 13L13.6569 7.34315",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,s.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",width:"2",x:"7",y:"1"})]})}function xp({className:t,ref:e}){return(0,s.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,s.jsx)("path",{d:"M2 8L7.65685 13.6569L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}const si=vs("LessonNav"),bp=q("lesson-nav");function Wx({allowTooltip:t,courseFinishLabel:e,onFocus:n,nextLesson:o,restrictionData:r,restrictionType:a,ref:i}){const l=o?.id,u=sa(),d=ti(u),m=d?S1:xp;return(0,s.jsxs)(si,{allowTooltip:t,direction:"next",finish:!0,isFloating:d,navLessonId:l,onFocus:n,ref:i,restrictionData:r,restrictionType:a,children:[(0,s.jsx)("span",{className:bp("link-text").mix("brand--ui"),children:e}),(0,s.jsx)(m,{className:bp("link-icon")})]})}const yp=q("lesson-nav");function _x({allowTooltip:t,lessonNameLabel:e,nextLesson:n,nextLessonNumber:o,onFocus:r,ref:a,restrictionData:i,restrictionType:l}){const u=n?.id,d=sa(),m=ti(d),f=(0,jt.GG)(n)&&u,g=(0,et.QQ)(n?.title)||"",v=m?S1:xp,C=f?`${e} ${o} - `:"",x=m&&f?`${e} ${o}`:`${C}${g}`;return(0,s.jsxs)(si,{allowTooltip:t,direction:"next",isFloating:m,navLessonId:u,onFocus:r,ref:a,restrictionData:i,restrictionType:l,children:[(0,s.jsx)("span",{className:yp("link-text").mix("brand--ui"),children:x}),(0,s.jsx)(v,{className:yp("link-icon")})]})}function Lp({className:t,ref:e}){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",focu
153sable:"false",height:"15",ref:e,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M13.6569 7.65685L8 2L2.34315 7.65686",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,s.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",transform:"rotate(180 9 14)",width:"2",x:"9",y:"14"})]})}function Gx({className:t,ref:e}){return(0,s.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,s.jsx)("path",{d:"M2 8L7.65685 2.34315L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}const yd=q("lesson-nav");function Kx({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,onFocus:r,previousLesson:a,previousLessonNumber:i,ref:l}){const u=a?.id,d=sa(),m=ti(d),f=(0,jt.GG)(a)&&u,g=(0,et.QQ)(a?.title)||n,v=m?Lp:Gx,C=f?`${o} ${i} - ${g}`:g,x=f&&m?`${o} ${i}`:C;return(0,s.jsx)(si,{allowTooltip:t,className:e,direction:"previous",isFloating:m,navLessonId:u,onFocus:r,ref:l,children:m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:yd("link-text").mix("brand--ui"),children:x}),(0,s.jsx)(v,{className:yd("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{className:yd("link-icon")}),(0,s.jsx)("span",{className:yd("link-text").mix("brand--ui"),children:x})]})})}var Jt=c(52836),Qx=c(53755);function Zx({className:t,cx:e,cy:n,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:l,value:u=0}){const d=(0,h.useRef)(null),m=`mask-${(0,Qx.A)()}`,p=(100-u)/100*(2*a);return(0,Jt.A)("transitionend",r,d.current),(0,s.jsxs)("svg",{height:o,viewBox:`0 0 ${o} ${o}`,width:o,children:[(0,s.jsx)("defs",{children:(0,s.jsx)("mask",{id:m,children:(0,s.jsx)("rect",{fill:"white",height:2.3*a,width:2.3*a,x:"0",y:u===0?100:p})})}),(0,s.jsx)("circle",{className:t,cx:e,cy:n,fill:"none",mask:`url(#${m})`,r:a,ref:d,strokeLinecap:i,strokeWidth:l})]})}const N1=Zx;function Yx({className:t,cx:e,cy:n,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:l,transform:u,value:d=0}){const m=(0,h.useRef)(null),p=Math.PI*(Number(o)-Number(l)),f=p*(100-d)/100;return(0,Jt.A)("transitionend",r,m.current),(0,s.jsx)("circle",{className:t,cx:e,cy:n,fill:"transparent",r:a,ref:m,strokeDasharray:p,strokeDashoffset:f,strokeLinecap:i,strokeWidth:l,transform:u})}const Ep=Yx;var ot=c(76906),j1=c(26372);const{COMPACT:Xx,COVER:Jx,OVERLAY:qx,SIDEBAR:eb}=ot.by,Nc=q("progress-circle");function tb({"aria-hidden":t,"aria-label":e,isCurrent:n,isFailed:o,isPassed:r,scope:a,value:i}){const[l,u]=j1.useState(i===100),d=(0,ke.A)(i),{theme:m}=(0,xe.DX)(),p=m?.progressIndicatorStyle??w.Y2.THEME_DEFAULT,f=a===Jx,g=a===qx,v=p===w.Y2.THEME_DEFAULT,C=p===w.Y2.CIRCULAR_FILL,x=p===w.Y2.INCOMPLETE_COMPLETE,y=Nc({compact:a===Xx,cover:f,current:n,sidebar:a===eb,overlay:g}),b=Nc("track",{"circular-fill":!g&&C,"incomplete-complete":f&&x}),E=Nc("runner",{"circular-fill":C,done:l,failed:o,passed:r,unstarted:i===0}),L=Nc("pass",{done:l,visible:r}),T=Nc("fail",{done:l,visible:o}),I=j1.useMemo(()=>C||i===100?i:0,[C,i]);return j1.useEffect(()=>{if(i!==100&&d===100)u(!1);else if(i===100&&!l&&!x){const S=setTimeout(()=>u(!0),300);return clearTimeout.bind(null,S)}else i===100&&!l&&x&&u(!0)},[l,x,d,i]),(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:y,fill:"none",focu
153sable:"false",role:"img",viewBox:"0 0 16 16",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:b,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),v?(0,s.jsx)(Ep,{className:E,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,transform:"rotate(-89.9 8 8)",value:i}):(0,s.jsx)(N1,{className:E,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:I}),(0,s.jsx)("path",{className:L,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,s.jsx)("path",{className:T,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 k1=(0,h.createContext)(null);k1.displayName="CourseNavContext";function sb(t){const{children:e,isCourseNavOpen:n}=t;return(0,s.jsx)(k1.Provider,{value:{isCourseNavOpen:n},children:e})}function nb(){return(0,h.useContext)(k1)}const Tp=960;function jc(){return js(Tp)}function ob(){const t=(0,xe.DX)(),e=jc(),n=(0,xe.SQ)();return(0,$t.L3)({course:t,isMobile:e,search:n})}function rb(){const t=(0,xe.DX)(),e=jc();return(0,$t.IO)({course:t,isMobile:e})}var Ip=c(26372);class ab extends Ip.Component{refProgressWrap=Ip.createRef();timeoutScroll;portal;constructor(e){super(e),this.state={isSticky:!1},this.portal=xr()}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],n=e.scrollTop,o=e.scrollTop,r=this.refProgressWrap.current;if(!r)return;const i=r.getBoundingClientRect().top+o,l=n>i&&n>0;this.state.isSticky!==l&&this.setState({isSticky:l})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:n}=this.props,o=n.activeIndex??-1,r=e?.length??0;return o===-1?0:o+1===r?100:e?.[o]?.linePosition?.replace("%","")??"0"}processProgressValue(){const{items:e,lessonProgress:n}=this.props,o=n.activeIndex??0,r=e?.length??0;return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:e,type:n}=this.props;switch(n){case"process":return this.processProgressValue();case"sorting":return e.percentViewed??0;case"timeline":return this.timelineProgressValue();default:return e.percentComplete??0}}render(){const{type:e,items:n,sidebarAvailable:o,isCourseNavOpen:r,isMobile:a}=this.props,{isSticky:i}=this.state,l=oe()("progress-wrap",{}),u=r,d=r&&a,m=oe()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":i&&!d,"lesson--open":u&&o&&!this.isLessonPreview(),"lesson--open-mobile":o&&d&&!this.isLessonPreview()}),p=oe()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),f=this.progressValue(),g=e==="timeline"&&n&&n.map(C=>{const x=oe()("progress__marker",{"progress__marker--active brand--background":parseInt(String(f))>=parseInt(C.linePosition.slice(0,-1))});return(0,s.jsx)("div",{className:x,style:{left:C.linePosition}},C.id)}),v=(0,s.jsx)("div",{className:l,children:(0,s.jsx)("div",{className:p,children:(0,s.jsxs)("div",{className:"progress__container",children:[(0,s.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${f}% * var(--dir-x)),0px,0px)`}}),g]})})});return(0,s.jsxs)("div",{ref:this.refProgressWrap,children:[v,(0,uo.createPortal)((0,s.jsx)("div",{"aria-hidden":"true",className:m,children:v}),this.portal)]})}}const ib=t=>{const e=ob(),{isCourseNavOpen:n}=nb()??{},o=js(480);return(0,s.jsx)(ab,{...t,isCourseNavOpen:n,isMobile:o,sidebarAvailable:e})},cb=Ga,lb=Ga,db=Ga,ub=Ga,hb=Ga,mb=Ga;
153function ks({children:t,className:e,height:n,width:o,viewBox:r}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:n,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:t})}function pb(t){return(0,s.jsxs)(ks,{viewBox:"0 0 24 24",...t,children:[(0,s.jsx)("path",{d:"M1 10.9609L10 19.9609",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M1 11.9609L10 2.96094",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M2 11.5H23",stroke:"currentColor",strokeWidth:"1.5"})]})}function fb({className:t}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:"8",role:"img",viewBox:"0 0 16 8",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{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",fill:"currentColor",fillRule:"evenodd"})})}function vb(t){return(0,s.jsx)(ks,{height:"12",viewBox:"0 0 18 12",width:"18",...t,children:(0,s.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 gb(t){return(0,s.jsx)(ks,{height:"6",viewBox:"0 0 10 6",width:"10",...t,children:(0,s.jsx)("path",{d:"M9 1L5 5L1 1",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function Cb(t){return(0,s.jsx)(ks,{height:"6",viewBox:"0 0 10 6",width:"10",...t,children:(0,s.jsx)("path",{d:"M1 5L5 1L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function xb(t){return(0,s.jsxs)(ks,{height:"21",viewBox:"0 0 20 21",width:"20",...t,children:[(0,s.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,s.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,s.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 $s=c(94992);function Sp(t){const e=(0,$s.QD)(t,["Default"]);return(0,s.jsx)(Qs,{...e,fill:"none",viewBox:"1 1 18 18",children:(0,s.jsx)("path",{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 
15311.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",fillRule:"evenodd"})})}function Ld(t){const e=(0,$s.QD)(t,["Default"]);return(0,s.jsxs)(Qs,{...e,fill:"none",viewBox:"0 0 18 18",children:[(0,s.jsx)("circle",{cx:"9",cy:"9",fill:"#74BF44",r:"9"}),(0,s.jsx)("path",{d:"M6.43994 9.12061L8.43994 11.1206L11.9399 7.62061",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}function bb(t){return(0,s.jsx)(ks,{height:"12",viewBox:"0 0 12 12",width:"12",...t,children:(0,s.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 yb(t){return(0,s.jsx)(ks,{height:"5",viewBox:"0 0 10 5",width:"10",...t,children:(0,s.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 Lb(t){return(0,s.jsxs)(ks,{height:"18",viewBox:"0 0 18 18",width:"18",...t,children:[(0,s.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,s.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 Eb(t){return(0,s.jsxs)(ks,{height:"14",viewBox:"0 0 20 14",width:"20",...t,children:[(0,s.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,s.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 Tb(t){return(0,s.jsx)(ks,{height:"10",viewBox:"0 0 10 10",width:"10",...t,children:(0,s.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 Ib=q("cover"),Ed=At("CoverDetailsSection",({children:t,type:e})=>(0,s.jsx)("section",{className:Ib("details-content-section",{type:e}),children:t}));var Sb=c(16997),qo=c.n(Sb),Nb=c(51335),yr=c.n(Nb),pt=c(26842),jb=c(81783),ni=c.n(jb),kb=c(89831),Ab=c.n(kb),Rb=c(22672),Pb=c.n(Rb),wb=c(2758),Mb=c.n(wb),Ob=c(7334),Db=c.n(Ob),Bb=c(10358),Hb=c.n(Bb),Fb=c(19892),Vb=c.n(Fb),zb=c(88747),A1=c.n(zb),Ub=c(65301),oi=c.n(Ub),$b=c(41211),Wb=c.n($b),_b=c(9391),R1=c.n(_b),Gb=c(15509),P1=c.n(Gb),Kb=c(50283),kc=c.n(Kb),Ac=c(12100),mn=c(57487),Qb=c(2396);const Zb=Vb()(qr()),Np=t=>e=>`${t}/${e.id}`,Yb=(t,e)=>Mb()({data:(0,Ac.action)(e),method:"POST",url:(0,mn.rq)(Zb(`/${e}`),Qt()("url"),t),...Mn()(["headers","withCredentials"],t)}),Xb=t=>
153(e,n)=>Ab()(e,Np(n),w1(t,n)),Jb=t=>Ds()(Rt()({},["response","data"]),P1()(Qt()("type"),(0,Ac.error)(t))),qb=(t,e)=>n=>t.postRequest?t.postRequest(e,n):n,jp=t=>e=>n=>o=>(0,mn.Ve)(o,Yb(e,n),t,Db()(Jb(n),kc()(A1()("data"),Qt()("data"))),Hb()(oi()(Qt()("error"),ni().Rejected,ni().of)),qb(e,{type:n,payload:o})),ey=({url:t,method:e,data:n,headers:o})=>{if(Ln.isFirefox){const r=new Blob([JSON.stringify(n)],{type:"application/json"}),a=window.navigator.sendBeacon(t,r);return Promise.resolve({type:n.type,payload:{...n.payload,queued:a}})}return fetch(t,{method:e,credentials:"include",headers:{"Content-Type":"application/json",...o},body:JSON.stringify(n),keepalive:!0}).then(r=>r.json()).then(Wb()("data"))},ty=ni().fromPromise(ey),w1=R1()(3,jp(Qb.Em)),sy=R1()(3,jp(ty)),ny=t=>(e,n)=>Pb()(e,Np(n),w1(t,n)),oy=t=>({debounce:Xb(t),send:w1(t),fetchWithKeepAlive:sy(t),throttle:ny(t)}),ry=`${(0,Ge._$)("RISE_RUNTIME_URI")}/ducks`,ay=oy({headers:()=>({"x-rise-authoring-client":"8f451c0e927426d9ecd199460a08e045f8f7c4d3"}),postRequest:(t,e)=>e,url:ry,withCredentials:!0});var iy=c(76019),cy=c.n(iy);const ly=cy()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:(0,Ve.Xl)(),userRole:(0,Ve.O0)(),subId:(0,Ve.EO)(),subPlan:(0,Ve.QJ)(),subStatus:(0,Ve.l6)()}});var dy=c(28667),Rc=c(57893);const uy=qr()("rise/track/")("TRACK"),hy=t=>({...t,context:{locale:navigator.language,device:(0,Rc.Pf)(),channel:(0,Rc.c)(),userAgentData:(0,Rc.NO)(),page:(0,Rc.WE)(),userAgent:(0,Rc.$t)(),...t.context}}),my=(t,e)=>({...t,properties:{...(0,dy.yV)(e),...t.properties}}),kp=t=>(e,n)=>{const o=n(),r=(0,Ve.kn)();let a=hy(t);return a=my(a,o),a.userId=a.userId??r,a.author=a.author??r,Ge.BI&&(a=ly(a)),e(ay.send(uy)(a))},sn=qr()("partner-content-book-info__"),py=t=>{const{authors:e,backgroundColor:n,bookImage:o,bookTitle:r,buyLink:a,block:i,publishedAt:l,track:u,trackingInfo:d}=t,m=e.filter(S=>!ls()(S.name)),p=qo()(S=>S.name,m),f=p.length>1?yc()(" & ",p):p[0],g=f.slice(-1)==="s"?"":"s",v=(0,pt.cP)(n),C=oe()({[sn("book-image-block")]:i&&!v},{[sn("book-image-block")&&sn("dark-theme-book-image")]:i&&v},{[sn("book-image-course")]:!i}),x=sn(i?"flex-block":"flex-course"),y=sn(i?"image-container-block":"image-container-course"),b=oe()(sn("small-text"),{[sn("dark-theme")]:v}),E=oe()(sn("black-text"),{[sn("dark-theme")]:v}),L=oe()(sn("button"),{[sn("dark-theme-button")]:v}),T=(0,Ft.ny)({height:"210",width:"140",imageKey:o}),I=(0,h.useCallback)(()=>{Ge.BI&&l&&u({event:"Click Tracked",payload:yr()(d,{type:"Buy Link"})})},[l,u,d]);return(0,s.jsxs)("section",{className:x,children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Book Info"}),(0,s.jsx)("div",{"aria-hidden":"true",className:y,children:o?(0,s.jsx)("img",{alt:"",className:C,src:T}):(0,s.jsx)("div",{className:C})}),(0,s.jsxs)("div",{className:sn("text-container"),children:[(0,s.jsxs)("p",{className:b,children:["From ",f,"'",g]}),(0,s.jsx)("p",{className:E,children:r}),(0,s.jsx)("a",{className:L,href:a,onClick:I,rel:"noopener noreferrer",target:"_blank",children:"Buy the book"})]})]})},fy={track:kp},Ap=(0,bd.Ls)(null,fy)(py),Vn=qr()("partner-content-partner-info__"),vy=({backgroundColor:t,block:e,link:n,publishedAt:o,track:r,trackingInfo:a})=>{const i=e?(0,Ft.H5)():(0,Ft.DB)(),l=Vn(e?"nbic-logo-light-bulb":"nbic-logo"),u=Vn(e?"block-logo-container":"logo-container"),d=(0,pt.cP)(t),m=oe()(Vn("small-text"),{[Vn("dark-theme")]:d}),p=oe()(Vn("black-text"),{[Vn("dark-theme")]:d}),f=oe()(Vn("button"),{[Vn("dark-theme-button")]:d}),g=(0,h.useCallback)(()=>{Ge.BI&&o&&r({event:"Click Tracked",payload:yr()(a,{type:"Partner Link"})})},[o,r,a]);return(0,s.jsxs)("section",{className:Vn("flex"),children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Partner Info"}),(0,s.jsx)("div",{"aria-hidden":"true",className:u,children:(0,s.jsx)("img",{alt:"",className:l,src:i})}),(0,s.jsxs)("div",{className:Vn("text-container"),children:[(0,s.jsx)("p",{className:m,children:"In partnership with"}),(0,s.jsx)("p",{className:p,children:"Next Big Idea Club"}),(0,s.jsx)("a",{className:f,href:n,onClick:g,rel:"noopener noreferrer",target:"_blank",children:"Learn more"})]})]})},gy={track:kp},Rp=(0,bd.Ls)(null,gy)(vy),ri=qr()("partner-content-author-card__"),Pp=t=>{const{courseId:e,partnerContent:n,publishedAt:o,tenantId:r}=t,{data:a,type:i}=n,{authors:l,bookImage:u,bookTitle:d,buyLink:m,internalId:p,nbicLink:f}=a,g=l.filter(b=>b.name),v={courseId:e,partnerContentId:n.id,partnerContentInternalId:p,tenantId:r,contentSubtype:i},C=oe()(ri("flex"),ri("author-container")),x=b=>(0,Ft.ny)({width:"122",height:"122",imageKey:b}),y=(b,E)=>(0,s.jsx)("div",{"aria-hidden":"true",className:ri("image-container"),children:b?(0,s.jsx)("img",{alt:E,className:ri("author-image"),src:x(b)}):(0,s.jsx)("div",{className:ri("author-image")})});return(0,s.jsxs)("ol",{className:"partner-content-author-card","data-testid":"partner-content-author-card",role:"list",children:[(0,s.jsx)("li",{role:"listitem",children:(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Authors"}),g.map(b=>(0,s.jsxs)("li",{className:C,children:[y(b.image,b.name),(0,s.jsx)("p",{className:ri("author-name-text"),children:b.name})]},b.name))]})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Ap,{authors:l,bookImage:u,bookTitle:d,buyLink:m,publishedAt:o,trackingInfo:v})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Rp,{link:f,publishedAt:o,trackingInfo:v})})]})},Cy=q("cover");function xy(t){const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:i}=t;if(!r)return null;const l=Cy("details-content-aside",{logo:o});return(0,s.jsx)("div",{className:l,children:(0,s.jsx)(Ed,{type:"partner-content",children:(0,s.jsx)(Pp,{courseId:e,partnerContent:n,publishedAt:a,tenantId:i})})})}var by=c(32050),Td=c.n(by);const yy=q("cover"),Ly=At("CoverDetailsContentHeading",({className:t="",type:e,...n})=>{const o=Td()(["Default"],n);return(0,s.jsx)("header",{...o,className:yy("details-content-heading",{type:e}).mix(t)})}),Ey=q("cover");function Ty({children:t,title:e,type:n}){const o=(0,xe.DX)(),{description:r,media:a,partnerContentId:i}=o,l=!!i,d=(a&&"image"in a?a.image?.key:null)!=null,p=n==="outline"?r?!d&&!l?"outline-no-logo":l&&!d?"outline-has-partner-content":l&&d?"outline-has-pc-and-logo":"outline":"outline-no-description":n;return(0,s.jsxs)("section",{className:Ey("details-content-section",{type:p}),children:[(0,s.jsx)(Ly,{type:n,children:(0,s.jsx)("h2",{children:e})}),t]})}const Iy=q("cover");function Pc(){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:Iy("header-star"),fill:"none",height:"18",viewBox:"0 0 18 18",width:"18",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M9 0V18",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M18 9H0",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M15.3 15.3002L2.69995 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M2.69995 15.3002L15.3 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}const Sy=()=>js(480),Ny=()=>js(768),jy={SPLIT_LEFT_IMAGE:"CENTERED_OVERLAY",SPLIT_RIGHT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"CENTERED_OVERLAY"};function wp(){const t=(0,xe.DX)(),e=Ny(),n=t?.theme?.coverPageType||"CENTERED";return e?jy[n]??n:n}const ky=q("cover"),Ay=()=>null,Ry=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(L1,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(Us,{}),(0,s.jsx)(Pc,{}),(0,s.jsx)(So,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(qs,{})]})})}),Py=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(Hn,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(Us,{}),(0,s.jsx)(Pc,{}),(0,s.jsx)(So,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(qs,{})]})})}),wy=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ic,{}),(0,s.jsx)(Hn,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(Us,{}),(0,s.jsx)(Pc,{}),(0,s.jsx)(So,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(qs,{})]})})]}),My=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Hn,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(Us,{}),(0,s.jsx)(Pc,{}),(0,s.jsx)(So,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(qs,{})]})}),(0,s.jsx)(Ic,{})]}),Oy=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Hn,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(Us,{}),(0,s.jsx)(Pc,{}),(0,s.jsx)(So,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(qs,{})]})}),(0,s.jsx)("div",{className:"cover__header-graphic-wrap",children:(0,s.jsx)(Ic,{})})]});function Dy(){switch(wp()){default:case"CENTERED_IMAGE":return(0,s.jsx)(Oy,{});case"CENTERED":case"CENTERED_ACCENT_TINT":return(0,s.jsx)(Py,{});case"SPLIT_LEFT_IMAGE":case"TWO_THIRDS_LEFT_IMAGE":return(0,s.jsx)(My,{});case"SPLIT_RIGHT_IMAGE":case"TWO_THIRDS_RIGHT_IMAGE":return(0,s.jsx)(wy,{});case"CENTERED_OVERLAY":return(0,s.jsx)(Ry,{})}}function By(){return(0,s.jsxs)("header",{className:ky("header",{meta:!1}),"data-testid":"cover-header",children:[(0,s.jsx)(Dy,{}),(0,s.jsx)(h.Suspense,{children:(0,s.jsx)(Ay,{})})]})}var Hy=c(26372);const Fy=q("cover");function Vy({children:t}){const e=(0,xe.DX)(),{themeId:n}=e?.theme??{},o=wp(),r=Hy.useMemo(()=>Ja()(o),[o]),a=Fy(null,{layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}var Mp=c(26372);const M1=q("lesson-header"),zy=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:l,title:u,totalLessons:d,lessonId:m})=>{const p=a!=null&&i,f=e&&t&&i&&!p,g=f||p||l,v=l&&(f||p);return(0,s.jsxs)("div",{className:M1("content"),children:[g&&(0,s.jsxs)("div",{className:M1("info-row"),children:[f?(0,s.jsx)(No,{authorName:t,avatar:e}):(0,s.jsx)(Sc,{}),p&&(0,s.jsx)(qa,{partnerContentAuthors:a}),v&&(0,s.jsx)("span",{"aria-hidden":"true",className:M1("info-row--divider"),children:"|"}),l?(0,s.jsx)(ko,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(jo,{})]}),(0,s.jsx)("div",{children:(0,s.jsx)(Ao,{id:m,title:u})})]})},Uy=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:l,title:u,totalLessons:d,lessonId:m})=>{const p=a!=null,f=Mp.useMemo(()=>e&&t&&i&&!p,[e,t,i,p]);return(0,s.jsxs)(s.Fragment,{children:[l?(0,s.jsx)(ko,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(jo,{}),f&&(0,s.jsx)(No,{authorName:t,avatar:e}),i&&p&&(0,s.jsx)(I1,{partnerContentAuthors:a}),(0,s.jsx)(Ao,{id:m,title:u})]})},$y=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:l,title:u,totalLessons:d,lessonId:m})=>{const p=a!=null,f=Mp.useMemo(()=>e&&t&&i&&!p,[e,t,i,p]);return(0,s.jsxs)(s.Fragment,{children:[f?(0,s.jsx)(No,{authorName:t,avatar:e}):(0,s.jsx)(Sc,{}),i&&p&&(0,s.jsx)(qa,{partnerContentAuthors:a}),(0,s.jsx)(Ao,{id:m,title:u}),l?(0,s.jsx)(ko,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(jo,{})]})};function Wy(t){const e=Sy();return t.lessonHeaderSize===w.OX.SMALL&&!e?(0,s.jsx)(zy,{...t}):e?(0,s.jsx)(Uy,{...t}):(0,s.jsx)($y,{...t})}var O1=c(26372);
153const{COMPACT:_y,COVER:Gy,OVERLAY:Ky,SIDEBAR:Qy}=ot.by,ai=q("progress-circle");function Zy({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[i,l]=O1.useState(a===100),u=(0,ke.A)(a),{theme:d}=(0,xe.DX)(),m=d?.progressIndicatorStyle??w.Y2.THEME_DEFAULT,p=r===Gy,f=r===Ky,g=m===w.Y2.THEME_DEFAULT,v=m===w.Y2.CIRCULAR_FILL,C=m===w.Y2.INCOMPLETE_COMPLETE,x=ai("default",{failed:n,passed:o}),y=ai({compact:r===_y,cover:p,overlay:f,sidebar:r===Qy}),b=ai("track",{"circular-fill":!f&&v,"incomplete-complete":p&&C}),E=ai("fill",{"circular-fill":v,done:i,failed:n,passed:o,unstarted:a===0}),L=ai("pass",{done:i,visible:o}),T=ai("fail",{done:i,visible:n}),I=O1.useMemo(()=>v||a===100?a:0,[v,a]);return O1.useEffect(()=>{if(a!==100&&u===100)l(!1);else if(a===100&&!i&&!C){const S=setTimeout(()=>l(!0),300);return clearTimeout.bind(null,S)}else a===100&&!i&&C&&l(!0)},[i,C,u,a]),(0,s.jsx)(s.Fragment,{children:g?(0,s.jsx)("svg",{"aria-hidden":t,"aria-label":e,className:x,focusable:"false",viewBox:"0 0 7 7",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("circle",{cx:"3.5",cy:"3.5",r:"2.5"})}):(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:y,fill:"none",focu
153sable:"false",role:"img",viewBox:"0 0 7 7",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:b,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),(0,s.jsx)(N1,{className:E,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:I}),(0,s.jsx)("path",{className:L,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,s.jsx)("path",{className:T,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 Yy({Default:t,...e}){return(0,s.jsx)(t,{...e,hasOverlay:!1})}var Xy=c(59419),Id=c.n(Xy);const Op=t=>e=>(t(e),e.preventDefault()),Lr=t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},ho=t=>e=>{t(e),e.preventDefault(),Lr(e)};function Sd(t,e){const n=[];if(t){let o=t.parentElement;for(;o&&(e?.limit==null||n.length<e.limit);){if(o===document.body){n.push(window);break}const r=window.getComputedStyle(o);(r.overflowX==="auto"||r.overflowX==="scroll"||r.overflowY==="auto"||r.overflowY==="scroll")&&n.push(o),o=o.parentElement}}return n}function Jy(t){return Sd(t,{limit:1})[0]??null}function Dp(t,e){(0,h.useLayoutEffect)(()=>{let n=t.current;const o=Sd(n);for(const r of o)r?.addEventListener("scroll",e);return()=>{for(const r of o)r?.removeEventListener("scroll",e)}},[e,t])}var Ro=c(23456),qy=c(48819),zn=c.n(qy),eL=c(56438),na=c.n(eL),tL=c(11748),oa=c.n(tL),sL=c(8486),Er=c.n(sL);const nL={keys:["End"],keyCode:Ro.KEY_END},oL={keys:["Enter"],keyCode:Ro.KEY_RETURN},rL={keys:["Home"],keyCode:Ro.KEY_HOME},aL={keys:["Tab"],keyCode:Ro.KEY_TAB},iL={keys:[" "],keyCode:Ro.KEY_SPACE},cL={keys:["Escape","Esc"],keyCode:Ro.KEY_ESCAPE},lL={keys:["ArrowUp"],keyCode:Ro.KEY_UP},dL={keys:["ArrowDown"],keyCode:Ro.KEY_DOWN},uL={keys:["ArrowLeft"],keyCode:Ro.KEY_LEFT},hL={keys:["ArrowRight"],keyCode:Ro.KEY_RIGHT},Po=({keyCode:t,keys:e})=>n=>n.keyCode?n.keyCode===t:na()(n.key,e),mL=t=>t.altKey||t.ctrlKey||t.metaKey,pL=Po(nL),ii=Po(oL),fL=Po(rL),Nd=Po(aL),D1=Po(iL),pn=Po(cL),ra=Po(lL),aa=Po(dL),Tr=Po(uL),Ir=Po(hL),wc=Er()(D1,ii),Nq=Er()(Nd,ii),vL=Er()(Ir,ra),gL=Er()(Tr,aa),CL=Er()(ra,aa),Bp=kc()(wc),Hp=25,xL=oa()((t,e)=>{t.scrollTop!==0&&(e.preventDefault(),t.scrollTop-=Hp)}),bL=oa()((t,e,n)=>{e&&(n.preventDefault(),t.scrollTop+=Hp)}),yL=(t,e)=>n=>{const o=bL(t,e),r=xL(t);zn()([[aa,o],[ra,r]])(n)},jd=q("lesson-progress"),{COMPACT:B1,COVER:Mc,OVERLAY:H1,SIDEBAR:Oc}=ot.by;function LL({canComplete:t,color:e,hasRestriction:n,isComplete:o,isCurrentLesson:r,isDark:a,isEnabled:i,isFailed:l,isLegacy:u=void 0,isPassed:d,isTooltipVisible:m,navigationStyle:p,onHideTooltip:f,onMarkComplete:g=void 0,onMarkReset:v=void 0,onShowTooltip:C,percentComplete:x,progressGraphic:y,scope:b,labels:E}){const L=(0,h.useRef)(),T=(0,h.useRef)(),I=(0,h.useRef)(),S=(0,h.useRef)(),{theme:{progressIndicatorStyle:N=w.Y2.THEME_DEFAULT}}=(0,xe.DX)(),k=N===w.Y2.THEME_DEFAULT,B=jd({compact:b===B1,cover:b===Mc&&!u,"legacy-cover":b===Mc&&u,inactive:n,overlay:b===H1,sidebar:b===Oc&&!u,"legacy-sidebar":b===Oc&&u,"theme-default":k}),M=jd("graphic",{compact:b===B1,cover:b===Mc&&!u,"legacy-cover":b===Mc&&u,overlay:b===H1,sidebar:b===Oc&&!u,"legacy-sidebar":b===Oc&&u}),R=jd("tooltip",{legacy:u}).toString(),H=(0,h.useCallback)(()=>{o?v?.():g?.()},[o,g,v]),P=(0,h.useCallback)(z=>{Id()(f)&&pn(z)&&m&&f()},[f,m]),j=(0,h.useCallback)(()=>{clearTimeout(I.current),!n&&Id()(C)&&(T.current=setTimeout(C,600))},[n,C]),O=(0,h.useCallback)(()=>{clearTimeout(T.current),Id()(f)&&(I.current=setTimeout(f,150))},[f]),U=(0,h.useCallback)(()=>{setTimeout(()=>{if(m){const z=L.current.getBoundingClientRect(),re=S.current.offsetParent.getBoundingClientRect(),{height:fe,width:Ee}
153=z,Oe=z.left-re.left,Ue=z.top-re.top;Object.assign(S.current.style,{transform:`translate(${Oe}px, ${Ue}px)`,width:`${Ee}px`,height:`${fe}px`})}},0)},[m]);if((0,h.useLayoutEffect)(()=>U(),[U]),(0,Jt.A)("resize",U,window),(0,Jt.A)("keydown",P,document),Dp(L,O),t){const z=Ge.BI&&x===100,re=EL({labels:E,percentComplete:x,canReset:!z}),fe=!i||z,Ee=jd("action",{disabled:fe});return(0,s.jsx)("span",{className:B,"data-testid":"lesson-progress",children:(0,s.jsx)("button",{"aria-label":re,className:Ee,disabled:fe,onBlur:f,onClick:H,onFocus:C,type:"button",children:(0,s.jsxs)("span",{className:M,onMouseEnter:j,onMouseLeave:O,ref:L,children:[(0,s.jsx)(y,{"aria-hidden":"true",color:e,isCurrent:r,isDark:a,isFailed:l,isPassed:d,navigationStyle:p,scope:b,value:x}),i&&!n&&(0,s.jsx)(Fp,{className:R,dark:a,ref:S,scope:b,visible:m,children:re})]})})})}const W=TL({labels:E,isFailed:l,percentComplete:x});return(0,s.jsx)("span",{className:B,"data-testid":"lesson-progress",children:(0,s.jsxs)("span",{className:M,onMouseEnter:j,onMouseLeave:O,ref:L,children:[(0,s.jsx)(y,{"aria-label":W,color:e,isCurrent:r,isDark:a,isFailed:l,isPassed:d,navigationStyle:p,scope:b,value:x}),i&&!n&&(0,s.jsx)(Fp,{className:R,dark:a,ref:S,scope:b,visible:m,children:W})]})})}const Fp=(0,h.forwardRef)((t,e)=>{const{children:n,className:o,dark:r,scope:a,visible:i}=t,l=(0,h.useMemo)(()=>q(o),[o]),u=l({compact:a===B1,cover:a===Mc,overlay:a===H1,sidebar:a===Oc,visible:i}),d=l("inner",{dark:r,light:!r}),m=(0,s.jsx)("div",{"aria-hidden":"true",onClick:Lr,ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,s.jsx)("div",{style:{pointerEvents:"all"},children:(0,s.jsx)("div",{className:u,children:(0,s.jsx)("div",{className:d,children:n})})})});return(0,uo.createPortal)(m,xr())});function EL({labels:t,canReset:e,percentComplete:n}){const o=n===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieClickToComplete:i,progressPieClickToReset:l}=t;return o&&e?`${r}. ${l}`:n===100&&!e?r:n===0?`${a}. ${i}`:`${n}% ${r}. ${i}`}function TL({labels:t,isFailed:e,percentComplete:n}){const o=n===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieQuizFailed:i}=t;return e?i:o?r:n===0?a:`${n}% ${r}`}const Vp=h.memo(LL);function IL({color:t,hasRestriction:e,isComplete:n,isCurrentLesson:o,isFailed:r,isPassed:a,isTooltipVisible:i,lessonTitle:l,navigationStyle:u,onHideTooltip:d,onShowTooltip:m,percentComplete:p,progressGraphic:f,scope:g,labels:v}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"overview-list-item__progress",children:(0,s.jsx)(Vp,{canComplete:!1,color:t,hasRestriction:e,isComplete:n,isCurrentLesson:o,isDark:!1,isEnabled:!0,isFailed:r,isPassed:a,isTooltipVisible:i,labels:v,navigationStyle:u,onHideTooltip:d,onShowTooltip:m,percentComplete:p,progressGraphic:f,scope:g})}),(0,s.jsx)("span",{className:"overview-list-item__title",children:l})]})}function SL(){return null}function zp({className:t,ref:e}){return(0,s.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,s.jsx)("path",{d:"M3.33177 4.1487L6.48034 1.00013M9.6289 4.14869L6.48034 1.00013M6.48034 1.00013L6.47966 11.9601"})})}function NL(t){const e=(0,$s.QD)(t,["Default"]);return(0,s.jsxs)(Qs,{...e,fill:"none",viewBox:"0 3 16 10",children:[(0,s.jsx)("path",{d:"M1.51472 7.99993H14.4853",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M9.50008 12.4994L14.5004 7.99932L9.50008 3.99973",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}function jL(t){const e=(0,$s.QD)(t,["Default"]);return(0,s.jsx)(Qs,{viewBox:"0 0 25 16",...e,children:(0,s.jsx)("path",{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",fillRule:"evenodd"})})}function Up(t){return(0,s.jsx)(ks,{height:"8",viewBox:"0 0 14 8",width:"14",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M13 1L7 7L1 1",stroke:"currentColor"})})}function $p(t){const e=(0,$s.QD)(t,["Default"]);return(0,s.jsxs)(Qs,{...e,fill:"none",viewBox:"0 0 16 16",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,s.jsx)("path",{d:"M5 7.71429L7.54545 10L11.5 5.5",stroke:"white"})]})}function Wp(t){const e=(0,$s.QD)(t,["Default"]);return(0,s.jsxs)(Qs,{...e,fill:"none",viewBox:"0 0 16 16",children:[(0,s.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",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"0.890284"}),(0,s.jsx)("circle",{cx:"8",cy:"7.5293",r:"7",stroke:"white"})]})}function kL({className:t}){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{cx:"6",cy:"6",r:"5"}),(0,s.jsx)("path",{d:"M9.5 9.5L14 14"})]})}function AL(t){const e=(0,$s.QD)(t,["Default"]);return(0,s.jsxs)(Qs,{...e,fill:"none",viewBox:"0 0 16 16",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,s.jsx)("path",{d:"M10 6L6 10",stroke:"white"}),(0,s.jsx)("path",{d:"M6 6L10 10",stroke:"white"})]})}function RL({className:t}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focu
153sable:"false",viewBox:"0 0 10 7",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M1 1.40002L5 5.40002L9 1.40002",strokeWidth:"1.6"})})}function PL(t){const e=(0,$s.QD)(t,["Default"]);return(0,s.jsxs)(Qs,{viewBox:"0 0 12 12",...e,children:[(0,s.jsx)("path",{d:"M10.7425 0.742189L11.4496 1.4493L1.55012 11.3488L0.843012 10.6417L10.7425 0.742189Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M11.1571 10.6417L10.45 11.3488L0.550537 1.44929L1.25764 0.742188L11.1571 10.6417Z",fill:"currentColor"})]})}const wL=()=>js(1200),ML=()=>js(768),F1=()=>js(480),_p=q("cover");function OL(){const t=(0,xe.DX)(),e=wL(),n=(0,et.QQ)(t.description);if(!n)return null;const o=Za("description"),r=(0,as.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":o};return(0,s.jsx)("div",{...r,children:(0,s.jsxs)("section",{className:_p("details-content-section"),children:[e&&(0,s.jsx)(g1,{}),(0,s.jsx)(yt,{className:_p("details-content-description"),value:c1(n)},"text")]})})}const DL={SPLIT_LEFT:"LEFT",SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT:"LEFT",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY"};function V1(){const t=(0,xe.DX)(),e=ML(),n=t?.theme?.coverPageType||"CENTERED";return e?DL[n]??n:n}function BL({Default:t,...e}){const n=V1(),o=["SPLIT_RIGHT","SPLIT_RIGHT_IMAGE"].includes(n);return(0,s.jsx)(t,{...e,reverseColumns:o})}const Gp=q("cover");function Dc({accentColor:t,hasOverlay:e=!1,isShape:n=!1}){const{alpha:o,ariaLabel:r,media:a,role:i}=ea("coverImage"),l=n?{backgroundColor:t}:(0,$t.b9)({alpha:o,hasOverlay:e,media:a});return(0,s.jsx)("div",{className:Gp("header-graphic-container"),children:(0,s.jsx)("div",{"aria-label":r,className:Gp("header-graphic"),"data-testid":"cover-header-graphic",role:i,style:l})})}const Kp=t=>(0,s.jsx)(kd,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.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"})})}),Qp=t=>(0,s.jsx)(kd,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.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"})})}),Zp=t=>(0,s.jsx)(kd,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.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"})})}),Yp=t=>(0,s.jsx)(kd,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.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"})})}),HL={LEFT_OVERLAY:Kp,LEFT:Kp,CENTERED:Qp,CENTERED_OVERLAY:Qp,SPLIT_LEFT:Zp,SPLIT_LEFT_IMAGE:Zp,SPLIT_RIGHT:Yp,SPLIT_RIGHT_IMAGE:Yp},kd=({children:t,className:e="svgPath",height:n,width:o,viewBox:r})=>(0,s.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focu
153sable:"false",height:n,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:t});function ia({className:t,coverPageType:e}){const n=e?HL[e]:null;return n?(0,s.jsx)(n,{className:t}):null}const Xp=q("cover"),ci=()=>(0,s.jsxs)("div",{className:Xp("author-published-wrap"),children:[(0,s.jsx)(So,{}),(0,s.jsx)(np,{})]}),FL=({coverPageType:t})=>{const e=F1();return(0,s.jsxs)(L1,{children:[(0,s.jsx)(ia,{coverPageType:t}),(0,s.jsxs)(en,{children:[!e&&(0,s.jsx)(Us,{}),(0,s.jsx)(ci,{}),(0,s.jsx)(tn,{}),e&&(0,s.jsx)(Us,{}),(0,s.jsx)(qs,{})]})]})},VL=({coverPageType:t})=>{const e=F1();return(0,s.jsxs)(Hn,{children:[(0,s.jsx)(ia,{coverPageType:t}),(0,s.jsxs)(en,{children:[!e&&(0,s.jsx)(Us,{}),(0,s.jsx)(ci,{}),(0,s.jsx)(tn,{}),e&&(0,s.jsx)(Us,{}),(0,s.jsx)(qs,{})]})]})},zL=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ia,{coverPageType:t}),(0,s.jsx)(Dc,{}),(0,s.jsx)(Hn,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(Us,{}),(0,s.jsx)(ci,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(qs,{})]})})]}),UL=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Hn,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(Us,{}),(0,s.jsx)(ci,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(qs,{})]})}),(0,s.jsx)(ia,{coverPageType:e}),(0,s.jsx)(Dc,{accentColor:t,isShape:!0})]}),$L=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Hn,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(Us,{}),(0,s.jsx)(ci,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(qs,{})]})}),(0,s.jsx)(ia,{coverPageType:t}),(0,s.jsx)(Dc,{})]}),WL=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ia,{coverPageType:e}),(0,s.jsx)(Dc,{accentColor:t,isShape:!0}),(0,s.jsx)(Hn,{children:(0,s.jsxs)(en,{children:[(0,s.jsx)(Us,{}),(0,s.jsx)(ci,{}),(0,s.jsx)(tn,{}),(0,s.jsx)(qs,{})]})})]});function _L(t){const e=V1(),n={...t,coverPageType:e};switch(e){default:case w.BL.LEFT_OVERLAY:case w.BL.CENTERED_OVERLAY:return(0,s.jsx)(FL,{...n});case w.BL.LEFT:case w.BL.CENTERED:return(0,s.jsx)(VL,{...n});case w.BL.SPLIT_LEFT:return(0,s.jsx)(UL,{...n});case w.BL.SPLIT_LEFT_IMAGE:return(0,s.jsx)($L,{...n});case w.BL.SPLIT_RIGHT:return(0,s.jsx)(WL,{...n});case w.BL.SPLIT_RIGHT_IMAGE:return(0,s.jsx)(zL,{...n})}}function GL(t){const{partnerContentId:e}=(0,xe.DX)(),n=(0,xe.Bd)(),r=!!(!!e&&!!n||Ge.BI);return(0,s.jsx)("header",{className:Xp("header",{"with-info":r}),"data-testid":"cover-header",children:(0,s.jsx)(_L,{...t})})}var KL=c(26372);const QL=q("cover");function ZL({children:t}){const e=(0,xe.DX)(),{themeId:n}=e?.theme??{},o=V1(),r=KL.useMemo(()=>Ja()(o),[o]),a=QL(null,{layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}const YL=Bs("AlignLeft"),Ad=Bs("ArrowDown"),Jp=Bs("ArrowRight"),qp=Bs("ArrowUp"),XL=Bs("Category"),JL=Bs("ChevronDown"),qL=Bs("ChevronUp"),eE=Bs("LessonsComplete"),tE=Bs("LessonsRequirement"),sE=Bs("QuestionBox"),nE=Bs("QuizFailed"),oE=Bs("QuizPassed"),rE=Bs("QuizRequirement"),Bc=Bs("Search"),ef=Bs("ToggleDown"),aE=Bs("Touch"),iE=Bs("VideoCamera"),Rd=Bs("X"),cE=t=>{const e=t.indexOf("-");return e===-1?t:t.slice(0,e)},jq=(t,e)=>{const n=cE(t);return e.find(({iso639Code:o})=>o===t)||e.find(({iso639Code:o})=>o===n)||e.find(({defaultId:o,defaultSet:r})=>r&&o===1)},li=({percent:t,label:e,isRTL:n})=>{if(e.includes("%")){const o=n?`%${t}`:`${t}%`;return e.replace("%",o)}return`${t} ${e}`},er=q("cover");function lE({nextLesson:t,percentComplete:e}){const n=F1(),o=(0,xe.Wz)(),r=(0,xe.vU)();if(e===0||!Ge.BI)return null;const a=li({percent:e,label:r.progressSummaryPercentComplete,isRTL:o});return(0,s.jsxs)("div",{className:er("progress"),children:[n&&(0,s.jsx)("div",{className:er("progress-text"),children:a}),(0,s.jsx)("div",{className:er("progress-outer"),children:(0,s.jsx)("div",{className:er("progress-inner"),style:{width:`${e}%`}})}),(0,s.jsxs)("div",{className:er("progress-text-wrap"),children:[!n&&(0,s.jsx)("div",{className:er("progress-text"),children:a}),t&&(0,s.jsxs)("div",{className:er("progress-next-lesson"),children:[(0,s.jsx)(Jp,{className:er("progress-next-lesson-icon").toString(),decorative:!0}),(0,s.jsx)("span",{"aria-hidden":"true",className:er("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})]})}var tf=c(26372);const Pd=q("lesson-header"),z1=()=>(0,s.jsx)("div",{className:Pd("author--hidden")}),dE=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:l,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null&&l,g=e&&t&&l&&!f,v=g||f||u,C=u&&(g||f);return(0,s.jsxs)("div",{className:Pd("content"),children:[v&&(0,s.jsxs)("div",{className:Pd("info-row"),children:[g?(0,s.jsx)(No,{authorName:t,avatar:e}):(0,s.jsx)(z1,{}),f&&(0,s.jsx)(qa,{partnerContentAuthors:i}),C&&(0,s.jsx)("span",{"aria-hidden":"true",className:Pd("info-row--divider"),children:"|"}),u?(0,s.jsx)(ko,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(jo,{})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(Ao,{id:p,title:d}),n&&(0,s.jsx)(ta,{description:n})]})]})},uE=t=>{const{authorName:e,avatar:n,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:l,showAuthor:u,showLessonCount:d,title:m,totalLessons:p,lessonId:f}=t,g=l!=null,v=tf.useMemo(()=>n&&e&&u&&!g,[n,e,u,g]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ao,{id:f,title:m}),(0,s.jsxs)(Bx,{children:[v?(0,s.jsx)(No,{authorName:e,avatar:n}):(0,s.jsx)(z1,{}),u&&g&&(0,s.jsx)(qa,{partnerContentAuthors:l}),d?(0,s.jsx)(ko,{lessonName:r,lessonNumber:a,lessonPreposition:i,showPartnerContent:g,totalLessons:p}):(0,s.jsx)(jo,{})]}),o&&(0,s.jsx)(ta,{description:o})]})},hE=t=>{const{authorName:e,avatar:n,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:l,showAuthor:u,showLessonCount:d,title:m,totalLessons:p,lessonId:f}=t,g=l!=null,v=tf.useMemo(()=>n&&e&&u&&!g,[n,e,u,g]);return(0,s.jsxs)(s.Fragment,{children:[d?(0,s.jsx)(ko,{lessonName:r,lessonNumber:a,lessonPreposition:i,totalLessons:p}):(0,s.jsx)(jo,{}),v?(0,s.jsx)(No,{authorName:e,avatar:n}):(0,s.jsx)(z1,{}),u&&g&&(0,s.jsx)(I1,{partnerContentAuthors:l}),(0,s.jsx)(Ao,{id:f,title:m}),o&&(0,s.jsx)(ta,{description:o})]})};function mE(t){const e=m1();return t.lessonHeaderSize===w.OX.SMALL&&!e?(0,s.jsx)(dE,{...t}):e?(0,s.jsx)(hE,{...t}):(0,s.jsx)(uE,{...t})}var wd=c(26372);const{COMPACT:pE,COVER:fE,OVERLAY:vE,SIDEBAR:gE}=ot.by,Hc=q("progress-circle");function CE({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[i,l]=wd.useState(a===100),u=(0,ke.A)(a),{theme:d}=(0,xe.DX)(),m=d?.progressIndicatorStyle??w.Y2.THEME_DEFAULT,p=r===fE,f=r===vE,g=m===w.Y2.THEME_DEFAULT,v=m===w.Y2.CIRCULAR_FILL,C=m
153===w.Y2.INCOMPLETE_COMPLETE,x=Hc({compact:r===pE,cover:p,sidebar:r===gE,overlay:f}),y=Hc("track",{"circular-fill":!f&&v,"incomplete-complete":p&&C}),b=Hc("runner",{"circular-fill":v,done:i,failed:n,passed:o,unstarted:a===0}),E=Hc("pass",{done:i,visible:o}),L=Hc("fail",{done:i,visible:n}),T=wd.useMemo(()=>v||a===100?a:0,[v,a]);wd.useEffect(()=>{if(a!==100&&u===100)l(!1);else if(a===100&&!i&&!C){const S=setTimeout(()=>l(!0),300);return clearTimeout.bind(null,S)}else a===100&&!i&&C&&l(!0)},[i,C,u,a]);const I=wd.useCallback(()=>{a===100&&l(!0)},[a]);return(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:x,fill:"none",focusable:"false",role:"img",viewBox:"0 0 15 15",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:y,cx:"7.5",cy:"7.5",fill:"transparent",r:"6.5",strokeWidth:"2",transform:"rotate(-89.9 7.5 7.5)"}),g?(0,s.jsx)(Ep,{className:b,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,s.jsx)(N1,{className:b,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:I,r:6.5,strokeLinecap:"round",strokeWidth:2,value:T}),(0,s.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,s.jsx)("path",{className:L,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 Md=({"aria-hidden":t=void 0,"aria-label":e=void 0,progress:n=0,runnerClass:o,trackClass:r})=>(0,s.jsx)("div",{"aria-hidden":t,"aria-label":e,className:r,role:"img",children:(0,s.jsx)("div",{className:o,style:{width:`${n}%`}})}),xE=q("nav-sidebar-header");function bE(t){const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a}=t;return(0,s.jsxs)("div",{className:xE("progress"),"data-testid":"nav-sidebar-progress",children:[(0,s.jsx)("div",{className:n,children:a}),(0,s.jsx)(Md,{"aria-hidden":"true",progress:r,runnerClass:e,trackClass:o})]})}function yE({className:t,ref:e}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",height:"17",ref:e,role:"img",viewBox:"0 0 17 17",width:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{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",fillRule:"evenodd"})})}function LE(t){return(0,s.jsx)(Qs,{...t,viewBox:"0 0 16 8",children:(0,s.jsx)("path",{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",fillRule:"evenodd"})})}function EE(t){const e=(0,$s.QD)(t,["Default"]);return(0,s.jsx)(Qs,{...e,viewBox:"0 0 16 8",children:(0,s.jsx)("path",{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",fillRule:"evenodd"})})}function TE({className:t,ref:e}){return(0,s.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,s.jsx)("path",{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",fillRule:"evenodd"})})}function IE(t){return(0,s.jsx)(ks,{height:"12",viewBox:"0 0 16 12",width:"16",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M9.6665 2H0.666504V0H9.6665V2ZM12.6665 6H0.666504V4H12.6665V6ZM0.666504 10H7.6665V8H0.666504V10Z",fill:"currentColor",fillRule:"evenodd"})})}function sf(t){return(0,s.jsx)(ks,{height:"8",viewBox:"0 0 12 8",width:"12",...t,children:(0,s.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 SE(t){return(0,s.jsx)(ks,{height:"8",viewBox:"0 0 12 8",width:"12",...t,children:(0,s.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 NE(t){return(0,s.jsxs)(ks,{height:"21",viewBox:"0 0 20 21",width:"20",...t,children:[(0,s.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.39
15316 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,s.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,s.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 jE(t){return(0,s.jsx)(ks,{height:"15",viewBox:"0 0 16 15",width:"16",...t,children:(0,s.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 kE(t){return(0,s.jsxs)(ks,{height:"18",viewBox:"0 0 18 18",width:"18",...t,children:[(0,s.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,s.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 AE(t){return(0,s.jsxs)(ks,{height:"14",viewBox:"0 0 20 14",width:"20",...t,children:[(0,s.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,s.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 RE(t){return(0,s.jsx)(ks,{height:"14",viewBox:"0 0 14 14",width:"14",...t,children:(0,s.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"})})}var nf=c(26372);const of=D,PE={classic:D,default:D,imaginative:Y,organic:te},rf=Object.assign(nf.createContext(of),{displayName:"ThemeContext"});function wE(){return nf.useContext(rf)}function ME({themeId:t,...e}){return(0,s.jsx)(rf.Provider,{...e,value:PE[t]??of})}function OE(t){return(0,s.jsx)(s.Fragment,{children:t.children})}function DE(){return null}function af(t,e,n){function o(r){const i=wE()?.[t]?.[e]??n;return(0,s.jsx)(i,{...r,Default:n})}return o.displayName=`ThemeComponent(${e})`,o}function At(t,e=OE){return af("components",t,e)}function Bs(t){return af("icons",t,DE)}const BE=q("cover");function HE({className:t="",dueAt:e}){const n=ic(),o=Yr(),r=o==null||o.quizPassed||o.outOfAttempts,a=Q2(e),i=BE("due-date",{urgent:a}
153).mix(t);return!e||n&&r?null:(0,s.jsx)("div",{className:i,tag:"div",children:i1(e)})}const FE=At("CoverDueDate",HE);function VE(t){const{dueAt:e}=Kt(t);return{dueAt:e}}const zE=(0,X.Ng)(VE)(FE),ca=q("cover"),UE=At("CoverProgress",({nextLesson:t,percentComplete:e})=>{const n=(0,xe.Wz)(),o=(0,mt.useLabelsMap)();if(e===0||window.isPublicShare||!Ge.BI)return null;const r=li({percent:e,label:o.progressSummaryPercentComplete,isRTL:n});return(0,s.jsxs)("div",{className:ca("progress"),children:[(0,s.jsx)("div",{className:ca("progress-text"),children:r}),(0,s.jsx)("div",{className:ca("progress-outer"),children:(0,s.jsx)("div",{className:ca("progress-inner"),style:{width:`${e}%`}})}),t&&(0,s.jsxs)("div",{className:ca("progress-next-lesson"),children:[(0,s.jsx)(Jp,{className:ca("progress-next-lesson-icon").toString(),decorative:"true"}),(0,s.jsx)("span",{"aria-hidden":"true",className:ca("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})}),$E=()=>{const t=zs();return(e,{currentLocale:n})=>{const o=t(n,e),r=ds(e);return{nextLesson:o,percentComplete:r}}},WE=st()(wt.wZ,(0,X.Ng)($E))(UE),{useLabelsMap:_E}=c(35873),cf=({failed:t,complete:e})=>{const n=_E();return(0,s.jsxs)("span",{className:"visually-hidden-always",children:[t?n?.a11yCoverRequirementFailed||"Requirement failed":e?n?.a11yCoverRequirementComplete||"Requirement complete":n?.a11yCoverRequirementIncomplete||"Requirement incomplete",": "]})},mo=q("cover");function GE(){const t=(0,xe.DX)(),e=(0,mt.useLabelsMap)(),{trackingCompletionPercentage:n,trackingQuizId:o}=t;return n==null&&!o?null:(0,s.jsxs)("section",{className:mo("requirements-section"),children:[(0,s.jsx)("h2",{className:mo("requirements-title"),children:e?.coverCourseRequirements||"Course Requirements"}),(0,s.jsxs)("ul",{className:mo("requirements-list"),children:[(0,s.jsx)(KE,{}),(0,s.jsx)(ZE,{})]})]})}function KE(){const{trackingCompletionPercentage:t}=(0,xe.DX)(),e=(0,xe.v1)(),n=gr(),o=(0,mt.useLabelsMap)(),r=Math.ceil(t/100*e),a=r===e;if(t==null||r==null)return null;const i=n>=t,l=i?eE:tE;return(0,s.jsxs)("li",{className:mo("lesson-requirement"),role:"listitem",children:[(0,s.jsx)(l,{"aria-hidden":"true",className:mo("lesson-requirement-icon",{complete:i}).toString()}),(0,s.jsxs)("span",{className:mo("lesson-requirement-text"),children:[(0,s.jsx)(cf,{complete:i}),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 QE={passed:oE,failed:nE,requirement:rE};function ZE(){const t=(0,mt.useLabelsMap)(),e=Ua(),n=Yr(),o=(0,xe.Wz)(),r=cs(e?.title),a=e?.settings?.passingScore;if(!r||!n)return null;const{outOfAttempts:i,quizPassed:l}=n,u=!l&&i;let d="requirement";l?d="passed":u&&(d="failed");const m=QE[d],p=li({percent:a,label:t?.coverQuizPercentOrHigher||"% or higher",isRTL:o});return(0,s.jsxs)("li",{className:mo("quiz-requirement"),role:"listitem",children:[(0,s.jsx)(m,{"aria-hidden":"true",className:mo("quiz-requirement-icon",{type:d}).toString()}),(0,s.jsxs)("span",{className:mo("quiz-requirement-text"),children:[(0,s.jsx)(cf,{complete:l,failed:u}),r,a!=null&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":"true",className:mo("quiz-requirement-seperator"),children:"\xA0|\xA0"}),t?.coverQuizScoreOf||"Score of"," ",p]}),u&&(0,s.jsx)("div",{className:mo("quiz-requirement-no-attempts"),children:t?.coverNoAttemptsRemaining||"No attempts remaining"})]})]})}function Fc(t){const{to:e,children:n}=t,o=(0,ce.zy)(),r=(0,h.useMemo)(()=>(0,hp.B)(e,o),[o,e]);return(0,s.jsx)(ce.k2,{...t,to:r,children:n})}var U1=c(10605),YE=c(25609),XE=c(9805),JE=c(94058),qE=c(44141),eT=c(75149),tT=c(86320),sT=c(24938),nT=c(25652),oT=c(76791),rT=c(66601),aT=c(52881),iT=c(84173),cT=c(79439),lT=c(84112),dT=c(50314),uT=c(66102),hT=c(51399),mT=c(82666),pT=c(27081),fT=c(85925),vT=c(67056),gT=c(19284),CT=c(66919),xT=c(92401),bT=c(57941),yT=c(74416),LT=c(18822),ET=c(25409),TT=c(80071),IT=c(5684),ST=c(38899),NT=c(70649),jT=c(63570),
153kT=c(76578),AT=c(24786),RT=c(94635),PT=c(4091),wT=c(50402),MT=c(83169),OT=c(22617),DT=c(72844),BT=c(13793),HT=c(35965),FT=c(81958),VT=c(43829),zT=c(93816),UT=c(63467),$T=c(49378),WT=c(91021),_T=c(17151),GT=c(38231),KT=c(80693),QT=c(24330),ZT=c(33500),YT=c(80343),XT=c(53248),JT=c(35349),qT=c(74940),eI=c(4507),tI=c(37915),sI=c(42195),nI=c(71841),oI=c(55856),rI=c(73164),aI=c(33922),iI=c(12349),cI=c(45247),lI=c(98061),dI=c(81484),uI=c(9858),hI=c(32138),mI=c(87129),pI=c(23909),fI=c(4164),vI=c(21744),gI=c(35610),CI=c(24651),xI=c(55680),bI=c(87708),yI=c(77615),LI=c(92717),EI=c(37010),TI=c(9834),II=c(2627),SI=c(77162),NI=c(42832),jI=c(44569),kI=c(85065),AI=c(39030),RI=c(88164),PI=c(288),wI=c(77313),MI=c(15077),OI=c(82814),DI=c(43759),BI=c(92208),HI=c(72687),FI=c(7505),VI=c(13355),zI=c(39168),UI=c(19557),$I=c(47700),WI=c(35096),_I=c(37384),GI=c(97615),KI=c(22812),QI=c(93685),ZI=c(97114),YI=c(73668),XI=c(74817),JI=c(35834),qI=c(57991),eS=c(33605),tS=c(97681),sS=c(67454),nS=c(2648),oS=c(20489),rS=c(71096),aS=c(97754),iS=c(51464),cS=c(91485),lS=c(45379),dS=c(14195),uS=c(48215),hS=c(81760),mS=c(85375),pS=c(58795),fS=c(91463),vS=c(65873),gS=c(16121),CS=c(75299),xS=c(27990),bS=c(15480),yS=c(98213),LS=c(66389),ES=c(35630),TS=c(75822),IS=c(88964),SS=c(12421),NS=c(90986),jS=c(37522),kS=c(62663),AS=c(59968),RS=c(28052),lf=c(29135),PS=c(12989),wS=c(65222),MS=c(98108),OS=c(38964),DS=c(17318),BS=c(76664),HS=c(95342),FS=c(72981),VS=c(47689),zS=c(38242),US=c(22191),$S=c(73350),WS=c(48625),_S=c(19027),GS=c(51844),KS=c(18084),QS=c(10526),ZS=c(11670),YS=c(70185),XS=c(29533),JS=c(27737),qS=c(71294),eN=c(78003),tN=c(63033),sN=c(67361),nN=c(53886),oN=c(3079),rN=c(1875),aN=c(19341),iN=c(85034),cN=c(23851),lN=c(63496),dN=c(35510);const uN={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"]},hN={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"]]},mN={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"]},pN={prefix:"fab",iconName:"clone-plus",icon:[20,20,[],"e001","M4 16H11V14.5H13V16C13 17.1031 12.1031 18 11 18H4C2.89688 18 2 17.1031 2 16V9C2 7.89687 2.89688 7 4 7H5.5V9H4V16ZM7 11V4C7 2.89688 7.89687 2 9 2H16C17.1031 2 18 2.89688 18 4V11C18 12.1031 17.1031 13 16 13H9C7.89687 13 7 12.1031 7 11ZM12.5 4.5C12.0844 4.5 11.75 4.83437 11.75 5.25V6.75H10.25C9.83437 6.75 9.5 7.08437 9.5 7.5C9.5 7.91563 9.83437 8.25 10.25 8.25H11.75V9.75C11.75 10.1656 12.0844 10.5 12.5 10.5C12.9156 10.5 13.25 10.1656 13.25 9.75V8.25H14.75C15.1656 8.25 15.5 7.91563 15.5 7.5C15.5 7.08437 15.1656 6.75 14.75 6.75H13.25V5.25C13.25 4.83437 12.9156 4.5 12.5 4.5Z"]};var df,fN;const vN={"alert-circle-solid":qT.lE,"alert-circle":RI.lE,"alert-diamond":KI.xG,"arrow-down-from-line":aI.xZ,"arrow-down-to-bracket":iI.a_,"arrow-down-to-line":cI.yH,"arrow-down":rI.B0,"arrow-left":lI.Ce,"arrow-right-from-line":uI.Pe,"arrow-right":dI.dm,"arrow-rotate-left-light":dT.V3,"arrow-rotate-left":hI.V3,"arrow-up-from-bracket":pI.MN,"arrow-up-from-line":fI.s8,"arrow-up-right-from-square":vI.faArrowUpRightFromSquare,"arrow-up":mI.IN,"arrows-two-from-center":XE.A1,"arrows-two-to-center":JE.hL,"badge-check":IT.Zs,"bar-chart":gI.X8,bars:ST.ck,"bars-regular":CI.ck,"block-selector":tI.iH,"book-open":bI.Re,"book-sparkles":yI.E4,book:xI.LB,"browser-light":eT.c9,browser:LI.c9,building:qE.UR,"cards-blank":EI.Xm,"caret-down":jT.xB,"caret-right":kT.fU,"chart-column":TT.q9,"check-regular":nI.e6,check:NT.e6,"chevron-down-solid":AT.Jt,"chevron-down":TI.Jt,"chevron-left-light":tT.Wz,"chevron-left-solid":PT.Wz,"chevron-left":II.Wz,"chevron-right-light":sT.Xk,"chevron-right-solid":wT.Xk,"chevron-right":SI.Xk,"chevron-up-solid":RT.w2,"chevron-up":NI.w2,"circle-arrow-right":DT.
153Ni,"circle-arrow-up":OT.yi,"circle-check-regular":kI.QR,"circle-check-solid":BT.QR,"circle-check":pT.QR,"circle-dot":AI.pp,"circle-half-stroke":PI.B2,"circle-info":wI.faCircleInfo,"circle-notch":DI.s4,"circle-plus-duotone":fT.q_,"circle-plus-regular":MI.q_,"circle-plus":HT.q_,"circle-small-solid":FT.ZP,"circle-small":OI.ZP,"circle-solid":MT.GE,"circle-x":VT.Ub,"circle-xmark":BI.bn,"circle-xmark-solid":zT.bn,"circle-xmark-duotone":vT.bn,circle:jI.GE,"clipboard-list-check":HI.S3,"clock-rotate-left":FI.Yj,clone:zI.$3,close:UI.yY,"closed-captioning":VI.UM,"code-fork-duotone":gT.zt,"code-fork-regular":$I.zt,code:lN.jT,comment:WI.DN,copy:_I.jP,crop:GI.K1,"edit-regular":QI.MT,"ellipsis-regular":ZI.Dw,"ellipsis-vertical-regular":YI.nx,envelope:XI.y_,"external-link":JI.vM,"eye-slash":oT.k6,eye:nT.pS,"face-frown":uT.Ho,"face-laugh":hT.ou,"face-smile":mT.H8,"file-audio":eS.qe,"file-duotone":CT.A4,"file-export-light":aT.o1,"file-export":tS.o1,"file-import":sS.$M,"file-lines":nS.bL,"file-pdf-light":rT.O_,"file-pdf":oS.O_,file:qI.A4,"folder-image":rS.JK,"folder-open":xT.Uj,gear:aS.BH,globe:iS.Bw,"graduation-cap":cS.eS,"grid-2":lS.Qy,"grid-solid":UT.Qy,"grip-dots-vertical":dS.IM,"hand-pointer":uS.A8,"image-landscape":mS.oC,"image-portrait":pS.E4,image:hS.jb,"photo-film":fS._Z,"info-circle":vS.iW,"layers-solid":JT.qI,"link-simple-slash":xS.r2,"link-simple":CS.wi,"link-slash":bS.TH,link:gS.CQ,list:yS.IT,"list-check":LS.UN,"location-dot":cT.gK,"lock-keyhole-light":iT.Yp,lock:$T.DW,"magnifying-glass-plus":TS.bM,"magnifying-glass":ES.$U,megaphone:eI.OR,"message-quote":IS.ps,"minus-solid":WT.EZ,minus:SS.EZ,paintbrush:bT.ue,palette:NS.fy,paste:jS.R9,pause:kS.G1,"pause-solid":_T.G1,"pen-line":AS.pg,"pen-to-square":RS.faPenToSquare,"pencil-duotone":yT.zL,"pencil-regular":oI.zL,"pencil-thin":dN.zL,pencil:lT.zL,"play-regular":lf.ij,"play-solid":GT.ij,play:lf.ij,"plus-regular":PS.QL,plus:wS.TS,"quote-left":MS.$7,"rectangle-history-circle-plus":DS.Hu,"rectangle-regular":OS.vt,"rectangle-vertical-history":BS.Lt,rocket:HS.KM,"ruler-horizontal":FS.Si,"ruler-triangle":VS.cb,"sliders-simple":KT.AD,"sparkles-solid":QT.p7,sparkles:zS.p7,"spinner-third":US.sq,"square-arrow-down":WS.Y1,"square-arrow-right":_S.mT,"square-arrow-up-right":GS.fL,"square-check-solid":ZT.Dn,"square-check":KS.Dn,"square-duo":LT.Nf,"square-info":QS.Lg,"square-plus":ZS.Vd,square:$S.Nf,"stopwatch-regular":YS.nw,table:XS.w9,tag:JS._2,text:qS.jw,"trash-can":tN.sj,trash:eN.yL,"user-group":YT.US,"users-regular":sN.gd,users:ET.gd,video:nN.n2,volume:oN.eF,volumeHigh:rN.AI,volumeLow:aN.gN,volumeXmark:iN.H_,"wand-magic-sparkles":cN.Ys,"waveform-lines":sI.Wx,xmark:XT.Jy},gN={"audio-plus":mN,"clone-plus":pN,reach:hN,"rise-com":uN};function tt({"aria-label":t,className:e,classNameIcon:n,color:o,"data-testid":r,name:a,rotation:i,spin:l,style:u,styleIcon:d}){return(0,s.jsx)("span",{className:e,"data-testid":r,style:{color:o,...u},children:(0,s.jsx)(YE.g,{"aria-label":t,className:n,icon:vN[a],rotation:i,spin:l,style:d})})}function Mq({className:t,classNameIcon:e,color:n,name:o,style:r,styleIcon:a}){return df("span",{className:t,style:{color:n,...r},children:df(fN,{className:e,icon:gN[o],style:a})})}const uf="focus-lesson-content",Oq="preview-nav-to-first-lesson",Dq="preview-nav-to-cover-page",Zt="preview-nav-to-lesson-item",Bq="preview-scroll-to-nav-prev",Hq="preview-scroll-to-header",$1="preview-clear-state",Od="preview-show-nav-prev",Dd="preview-show-nav-next",hf="preview-nav-open",mf="preview-nav-close",pf="event-lesson-transition-start",ff="event-lesson-transition-end",vf="event-lesson-nav-prev-visible",W1="event-lesson-nav-prev-hidden",gf="event-lesson-nav-next-visible",_1="event-lesson-nav-next-hidden",G1=new WeakMap,Cf=new ResizeObserver(t=>{for(const e of t)G1.get(e.target)?.(e)});function Bd(t,e){(0,h.useEffect)(()=>{if(t)return G1.set(t,e),()=>G1.delete(t)},[t,e]),(0,h.useEffect)(()=>{if(t)return Cf.observe(t),()=>Cf.unobserve(t)},[t])}function CN(){const t=(0,X.wA)(),[e,n]=(0,h.useState)(null),o=(0,mt.useLabelsMap)(),r=(0,h.useCallback)(a=>{t((0,U1.s)({offsetHeight:a.target.offsetHeight}))},[t]);return(0,h.useLayoutEffect)(()=>
153{if(e)return t((0,U1.s)({offsetHeight:e.offsetHeight})),()=>t((0,U1.s)(null))},[t,e]),Bd(e,r),(0,s.jsx)("button",{className:"visually-hidden btn-skip-to-lesson brand--ui",onClick:xf,ref:n,type:"button",children:(0,s.jsxs)("span",{className:"btn-skip-to-lesson__wrap",children:[o?.courseSkipToLesson,(0,s.jsx)(tt,{"aria-hidden":"true",classNameIcon:"btn-skip-to-lesson__icon",name:"arrow-right"})]})})}function xN(t){(0,Jt.A)(uf,t,document)}function xf(){document.dispatchEvent(new CustomEvent(uf))}const bf=(0,h.createContext)(!1);function Vc({children:t,inert:e}){const n=K1();return(0,s.jsx)(bf.Provider,{value:n||e,children:t})}function K1(){return(0,h.useContext)(bf)}function bN(t){return t?.sessionPreferences}function Hd(){return(0,X.d4)(bN)}const yN=(0,h.forwardRef)((t,e)=>{const{children:n,className:o="lesson-link-item-tooltip",dark:r,visible:a}=t,i=(0,h.useMemo)(()=>q(o),[o]),l=(0,s.jsx)("div",{"aria-hidden":"true",ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,s.jsx)("div",{style:{pointerEvents:"all"},children:(0,s.jsx)("div",{className:i({visible:a}),children:(0,s.jsx)("div",{className:i("inner",{dark:r,light:!r}),children:n})})})});return(0,uo.createPortal)(l,document.getElementById("portal"))});function yf(t){const{children:e,className:n,dark:o,restriction:r,tooltipClassName:a,style:i}=t,{prefersKeyboardNavigation:l}=Hd(),u=(0,h.useRef)(),d=(0,h.useRef)(),m=(0,h.useRef)(),p=(0,mt.useLabelsMap)(),f=K1(),[g,v]=(0,h.useState)(!1),C=(0,h.useCallback)(()=>v(!0),[]),x=(0,h.useCallback)(()=>v(!1),[]),y=(0,h.useCallback)(()=>{setTimeout(C,0)},[C]),b=(0,h.useCallback)(()=>{l&&x()},[x,l]),E=(0,h.useCallback)(k=>{pn(k)&&g&&(k.stopPropagation(),x())},[x,g]),L=(0,h.useCallback)(()=>{document.activeElement===u.current&&(clearTimeout(m.current),C())},[C]),T=(0,h.useCallback)(()=>{m.current=setTimeout(x,150)},[x]),I=(0,h.useCallback)(()=>{if(g){const k=u.current.getBoundingClientRect(),B=d.current.offsetParent.getBoundingClientRect(),{height:M,width:R}=k,H=k.left-B.left,P=k.top-B.top;Object.assign(d.current.style,{transform:`translate(${H}px, ${P}px)`,width:`${R}px`,height:`${M}px`})}},[g]);(0,h.useEffect)(()=>{f&&v(!1)},[f]),(0,h.useLayoutEffect)(()=>I(),[I]),(0,Jt.A)("resize",I,window),(0,Jt.A)("keydown",E,document),Dp(u,x);const S=cs(r?.data);let N;return r?.type===jt.XQ.QUIZ?N=`${p.quizRequirePassingScore}: "${S}"`:r?.type===jt.XQ.ORDER?N=p.lessonRestricted:r?.type===jt.XQ.KNOWLEDGE_CHECK&&(N=p.knowledgeCheckCorrectAnswerRequiredNav),(0,s.jsxs)("div",{"aria-disabled":!0,className:n,onBlur:b,onFocus:y,onMouseEnter:L,onMouseLeave:T,ref:u,role:"link",style:i,tabIndex:f?-1:0,children:[e,(0,s.jsx)("div",{className:"visually-hidden-always",children:p?.a11yRestrictedNav}),(0,s.jsx)("div",{className:"visually-hidden-always",children:N}),(0,s.jsx)(yN,{className:a,dark:o,ref:d,visible:g,children:N})]})}function LN(t){const{b:e,children:n,"data-direction":o,isCurrentLesson:r,isTooltipEnabled:a,lessonId:i,onClick:l=Function.prototype,onFocus:u,onHideProgressTooltip:d,onNavigate:m=Function.prototype,onShowProgressTooltip:p,restriction:f,showProgressDelay:g,style:v}=t,C=K1(),{theme:{progressIndicatorStyle:x=w.Y2.THEME_DEFAULT}}=(0,xe.DX)(),y=x===w.Y2.THEME_DEFAULT,b=(0,h.useCallback)(M=>{l(M),r?(M.preventDefault(),xf()):m(i)},[i,r,l,m]),[E,L]=(0,h.useState)(!1),T=(0,h.useCallback)(M=>{!E&&a&&(g!=null?setTimeout(p,g):p()),u?.(M)},[E,u,g,p,a]),I=(0,h.useCallback)(M=>{a&&pn(M)&&d()},[d,a]),S=(0,h.useCallback)(()=>{a&&L(!0)},[a]),N=(0,h.useCallback)(()=>{a&&L(!1)},[a]),k=f?.type!=null,B=e("link",{active:r,restricted:k,"theme-default":y}).toString();return k?(0,s.jsx)(yf,{...t,className:B,style:v}):(0,s.jsx)(Fc,{"aria-current":"page",className:B.toString(),"data-direction":o,"data-nav-item":"",onBlur:a?d:void 0,onClick:b,onFocus:T,onKeyDown:I,onMouseDown:S,onMouseUp:N,style:v,tabIndex:C?-1:void 0,to:(0,jt.p1)(i),children:n})}function zc(t){const{className:e="lesson-link-item",isCurrentLesson:n,last:o,lessonId:r,style:a}=t,i=(0,h.useMemo)(()=>q(e),[e]),l=Ct(r),u=l?.type!=null,{isComplete:d=!1}=un(r)??{},m=i({active:n,complete:d,last:o,restricted:u});return(0,s.jsx)("div",{className:m,children:(0,s.jsx)(LN,{...t,b:i,isCurrentLesson:n,restriction:l,style:a})})}const EN=q("lesson-nav"),TN=t=>{const{children:e,finish:n,lessonId:o,onFocus:r}=t,a=(0,Pe.Z)();if(o)return(0,s.jsx)(zc,{className:"lesson-nav-link",onFocus:r,tooltipClassName:"lesson-nav-link-tooltip",...t});const i=n?"/lessons/progress-summary":"/",l=u=>{u.preventDefault(),Jo(()=>{a(i)},i==="/"?"lesson-to-cover":"default")};return(0,s.jsx)("span",{className:"lesson-nav-link",children:(0,s.jsx)(yn,{className:"lesson-nav-link__link","data-direction":t["data-direction"],onClick:l,onFocus:r,to:i,children:e})})},IN=({buttonScheme:t,accentContrast:e,children:n,className:o,direction:r,finish:a,navLessonId:i,onFocus:l,restrictionType:u},d)=>{const m=u!=null,p=sa(),g={className:EN(null,{[r]:!0,accent:t===w.LE.ACCENT,dark:t===w.LE.DARK,floating:p===w.AY.FLOATING,"floating-full":p===w.AY.FLOATING_FULL,finish:a,full:p===w.AY.FULL,light:t===w.LE.LIGHT,restricted:m,tint:t===w.LE.TINT}).mix(o),[`data-${r}-lesson`]:!0};return(0,s.jsx)("div",{ref:d,...g,children:(0,s.jsx)(TN,{accentContrast:e,"data-direction":r,finish:a,lessonId:i,onFocus:l,children:n})})};function SN(t,e){const{currentLocale:n}=e,o=Kt(t),r=(0,mt.selectLabelsMap)(n,t);return{buttonScheme:o.buttonScheme,accentContrast:o.theme?.accentContrast,labelLessonRestricted:r.lessonRestricted,labelQuizRequirePassingScore:r.quizRequirePassingScore}}const NN=st()(wt.wZ,(0,X.Ng)(SN,null,null,{forwardRef:!0}),h.forwardRef)(IN),jN={CoverCompletedInformation:p7,CoverDueDate:zE,CoverProgress:WE,CoverRequirements:GE,ImageEagerOrLazy:Bt,LessonNav:NN};function kN({children:t}){return(0,s.jsx)(rs,{...jN,children:t})}var AN=c(1957),RN=c(74724),Lf=c(94615);const PN={};function wN({children:t}){const e=(0,X.wA)(),n=(0,Lf.h)();return(0,AN.A)(()=>{e((0,RN.G)(n))},[n]),t}function MN({children:t}){const n=gt()?.features??PN;return(0,s.jsx)(Lf.j$,{value:n,children:(0,s.jsx)(wN,{children:t})})}var ON=c(37072),Q1=c(53395),DN=c(1404),po=c.n(DN);const BN=t=>Ge.BI?t??"":t?`${t} | ${Ge.mZ}`:Ge.mZ,Uc=t=>(0,Ge.Hm)()?t:BN(t);let Z1=!1;function la({children:t,title:e,isExplicit:n=!1}){const o=Uc((0,xe.d_)()),r=e??o;return h.useEffect(()=>{if(n)return Z1=!0,document.title=r,()=>{Z1=!1};Z1||(document.title=r)},[r,n]),(0,s.jsx)(s.Fragment,{children:t})}var HN=c(18259),FN=c.n(HN),VN=c(83972),zN=c(46044);const Y1=Object.assign((0,h.createContext)(void 0),{displayName:"BlockContext"});function X1({block:t,children:e}){const[n,o]=(0,h.useState)(t);return(0,h.useEffect)(()=>o(r=>
153t||r),[t]),(0,s.jsx)(Y1.Provider,{value:n,children:(0,s.jsx)(nh,{...n?.settings,children:e})})}const zq=Y1.Consumer;function Hs(){return(0,h.useContext)(Y1)}function Fd(t){return function(n){const o=Hs();return(0,s.jsx)(t,{...n,block:o})}}const UN={text:{backgroundType:"blockTextBackgroundType",backgroundColor:"blockTextBackgroundColor",backgroundColorContrast:"blockTextBackgroundColorContrast",paddingStart:"blockTextPaddingStart",paddingEnd:"blockTextPaddingEnd",bodyFontSize:"blockTextBodyFontSize",headingFontSize:"blockTextHeadingFontSize",subheadingFontSize:"blockTextSubheadingFontSize"}};function $N(t,e){if(!t||!e)return null;const n=UN[t];if(!n)return null;const o=r=>r?e[r]:void 0;return{backgroundType:o(n.backgroundType),backgroundColor:o(n.backgroundColor),backgroundColorContrast:o(n.backgroundColorContrast),paddingStart:o(n.paddingStart),paddingEnd:o(n.paddingEnd),bodyFontSize:o(n.bodyFontSize),headingFontSize:o(n.headingFontSize),subheadingFontSize:o(n.subheadingFontSize)}}function da(){const t=Hs(),e=(0,xe.DX)(),n=t?.family,o=e?.theme;return(0,h.useMemo)(()=>$N(n,o),[n,o])}var WN=c(48831),_N=c.n(WN),GN=c(41272),KN=c.n(GN),QN=c(95932),Ef=c.n(QN),ZN=c(14579),YN,XN,JN,qN,J1,Tf,ua;const If=2,Uq=(t,e,n)=>t??e??n,Sf=(t,e,n,o)=>t??e??n??o,Un=_N()({WHITE:null,TRANSPARENT:null}),ej={markerColorContrast:w.Em.AUTO,paddingBottom:3,paddingLinked:!0,paddingTop:3,snippetColorContrast:w.Em.AUTO},tj={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","step"],quote:["carousel"],survey:["survey"]};function sj(t,e){return tj[t]?.includes(e)??!1}const nj={360:{storyline:"#fafafa"},impact:{c:"#ececec",d:"#f5f5f5"},"interactive-fullscreen":{timeline:"#f5f5f5"},quote:{d:"#f5f5f5"}};function q1(t,e){const n=nj[t]?.[e];return n==null?{}:{backgroundColor:n,backgroundType:w.xj.COLOR}}const oj={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"],survey:["survey"],text:["code"]};function $q(t,e){return oj[t]?.includes(e)??!1?.1:.5}function rj(t){switch(t.backgroundType){case w.xj.COLOR:return t.backgroundColor;case w.xj.ACCENT:return t.courseColor;case w.xj.TINT:return(0,pt.WA)(t.courseColor);case w.xj.LIGHT:return"#ffffff";case w.xj.GRAY:return"#fafafa";case w.xj.DARK:return"#303030";case w.xj.BLACK:return"#000000"}}const aj={multimedia:{embed(t){return{cardMode:t.showBorder===!1?Un.TRANSPARENT:Un.WHITE}}}};function ij(t,e,n){return cj(t,e,n)}function cj(t,e,n){const o=q1(t,e);(n.v==null||n.v<If)&&(n=lj(n),n.backgroundColor?.toLowerCase()==="#ffffff"&&Object.keys(o).length===0&&(n=KN()("backgroundColor",n)));const r=aj[t]?.[e]?.(n),a=n.backgroundColor&&n.backgroundType==null?{backgroundType:w.xj.COLOR}:{};return[{accentColor:null},ej,r,n,a,{v:If}].reduce((u,d)=>d==null?u:{...u,...Ef()(ZN.A,d)},{})}function lj(t){return{...t,backgroundType:null,cardMode:null,v:1}}const dj={text:["table"],divider:["divider","numbered divider","spacing divider"],knowledgeCheck:["draw from question bank"],multimedia:[]};function Wq(t,e){return!dj[t]?.includes(e)}const uj={};function _q(t,e){return!uj[t]?.includes(e)}function hj(t){return t===qN.LIGHT?ua.LIGHT:ua.DARK}function mj(t,e){if(e===J1.AUTO){const n=YN(t),o=XN[n](t);return JN(o)===J1.DARK?ua.DARK:ua.LIGHT}else return e===J1.LIGHT?ua.LIGHT:ua.DARK}function Gq(t,e,n,o,r){const a=t?.backgroundType;return t?.cardMode===Un.TRANSPARENT?a===Tf.IMAGE?hj(e?.overlayColor):o&&a!==Tf.ACCENT?r:mj(n,t?.customBackgroundColorContrast):o?r:ua.DARK}const pj={interactive:["accordion","tabs"],"interactive-fullscreen":["labeledgraphic","process","timeline"],list:["numbered","bulleted","checkboxes"],impact:["a","b","c","d","note"],quote:["a","b","c","d","background","carousel"],text:["paragraph","heading paragraph","subheading paragraph","two column","three column","four column"]};function Kq(t,e){return pj[t]?.includes(e)??!1}const fj=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),eh=(t,e)=>fj.test(e)?e:t;function Ws(t){const{contrast:e=w.Em.AUTO,backgroundColor:n="#fff"}=t,o=eh("#fff",n),r=(0,pt.xD)(o);return e===w.Em.DARK||e===w.Em.AUTO&&r===w.Em.DARK?ot.S6.DARK:ot.S6.LIGHT}const vj=t=>
153t.blockBackgroundType??t.familyBackgroundType??t.courseBackgroundType??t.blockTypeFallbackType??w.xj.LIGHT,gj=t=>t.effectiveBackgroundType===w.xj.COLOR?t.blockBackgroundColor||t.familyBackgroundColor||t.courseBackgroundColor||t.blockTypeFallbackColor||null:t.settingsBackgroundColor??null,Cj=t=>t.blockCustomContrast??t.familyBackgroundColorContrast??t.courseBackgroundColorContrast??w.Em.AUTO,Nf=t=>{const{family:e,variant:n,customBackgroundColorContrast:o}=t;return!o&&(e==="image"&&n!=="text aside"||e==="chart"||n==="sorting")},jf=t=>(0,pt.cP)(t)?w.Em.LIGHT:w.Em.DARK,xj=t=>{const{backgroundType:e,backgroundColor:n,accentColor:o,customBackgroundColorContrast:r,accentContrast:a,family:i,variant:l}=t;if(!(e===w.xj.ACCENT||e===w.xj.COLOR))return null;const d=e===w.xj.ACCENT?o:n;let m;return e===w.xj.ACCENT?m=a:Nf({family:i,variant:l,customBackgroundColorContrast:r})?m=jf(n):m=r??w.Em.DARK,Ws({backgroundColor:d??void 0,contrast:m})},bj=t=>xj(t)===ot.S6.LIGHT,yj=t=>{const e=t.blockBackgroundType!=null||t.familyBackgroundType!=null||t.courseBackgroundType!=null,n=t.blockCustomContrast!=null||t.familyBackgroundColorContrast!=null||t.courseBackgroundColorContrast!=null;return!e&&!n},Lj=t=>{const{backgroundColor:e,family:n,variant:o,blockCustomContrast:r,familyBackgroundColorContrast:a,courseBackgroundColorContrast:i}=t,l=r??a??i??w.Em.AUTO,d=Nf({family:n,variant:o,customBackgroundColorContrast:l})?jf(e):l;return Ws({backgroundColor:e??void 0,contrast:d})};var th=c(1131);const Ej=t=>{const{effectiveBackgroundType:e,blockImage:n}=t;return e!==w.xj.IMAGE?null:n??null},Tj=t=>(0,He.I6)(t?.alt),Ij=t=>{if(!t)return null;const{alpha:e,overlayColor:n=w.df.DARK}=t,o=(0,Ft.ME)(t),r=n===w.df.LIGHT?w.qH:w.KJ;return(0,th.A)({alpha:e,color:r,url:o})};function wo(){const t=(0,xe.DX)(),e=da(),n=nn(),o=Hs(),r=o?q1(o.family,o.variant):{};return vj({blockBackgroundType:n?.backgroundType,familyBackgroundType:e?.backgroundType,courseBackgroundType:t?.theme?.blockBackgroundType,blockTypeFallbackType:r.backgroundType})}function Sj(){return wo().toLowerCase()}function Vd(){const t=Hs(),e=wo(),n=t?.background,o=(0,et.QQ)(n?.media)?.image;return Ej({effectiveBackgroundType:e,blockImage:o})}function Nj(){const t=Vd();return Tj(t)}function jj(){const t=Vd();return Ij(t)}function kj(){const t=Vd();return!!t&&t?.overlayColor===w.df.LIGHT}function Aj(){const t=Hs(),e=t?.family,n=t?.variant,o=sj(e,n),r=t?.settings?.cardMode??Un.WHITE;return o?r.toLowerCase():null}function Rj(){const t=En(),e=t?(0,pt.XC)(t):pt.lL.LIGHT;return Ja()(e.toLowerCase())}function Pj(){const t=Hs(),e=(0,xe.DX)(),n=da();return Cj({blockCustomContrast:t?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:n?.backgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast})}function wj(){const t=(0,xe.DX)(),e=nn(),n=En(),o=Hs(),r=wo(),a=Pj(),i=e.accentColor||t?.theme?.colorAccent;return bj({accentColor:i,accentContrast:t?.theme?.accentContrast,backgroundColor:n,backgroundType:r,customBackgroundColorContrast:a,family:o?.family,variant:o?.variant})}function Mj(){const t=Hs(),e=(0,xe.DX)(),n=En(),o=da();return Lj({backgroundColor:n,blockCustomContrast:t?.settings?.customBackgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast,family:t?.family,familyBackgroundColorContrast:o?.backgroundColorContrast,variant:t?.variant})}function Oj(){const t=Hs(),e=(0,xe.DX)(),n=da();return yj({blockBackgroundType:t?.settings?.backgroundType,familyBackgroundType:n?.backgroundType,courseBackgroundType:e?.theme?.blockBackgroundType,blockCustomContrast:t?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:n?.backgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast})}function Dj(){const t=Sj(),e=Rj(),n=Aj(),o=wj(),r=kj(),a=Oj(),i=En(),l=jj(),u=Nj();return{backgroundColor:i,backgroundImageAlt:u,backgroundImageCss:l,backgroundTypeLowercase:t,cardMode:n,colorRange:e,isContrastLight:o,isLegacyBackground:a,isOverlayLight:r}}var kf=c(26372);const Af=Object.assign((0,h.createContext)({}),{displayName:"BlockSettingsContext"});function nn(){return(0,h.useContext)(Af)}const Bj="settings";function sh(t){return e=>{const n=kf.forwardRef((o,r)=>{const a=nn(),i={...o,[t??Bj]:a};return(0,s.jsx)(e,{...i,ref:r})});return n.displayName=`withBlockSettings(${e.displayName||e.name})`,n}}function En(){const t=(0,xe.DX)(),e=nn(),n=da(),o=wo(),r=Hs();if(e==null)return null;const a=r?q1(r.family,r.variant):{}
153,i=gj({effectiveBackgroundType:o,blockBackgroundColor:e.backgroundColor,familyBackgroundColor:n?.backgroundColor,courseBackgroundColor:t?.theme?.blockBackgroundColor,blockTypeFallbackColor:a.backgroundColor,settingsBackgroundColor:e.backgroundColor}),l={...e,backgroundType:o,backgroundColor:i};return rj(l)}const Hj="backgroundColor";function Fj(t){return e=>{const n=kf.forwardRef((o,r)=>{const a=En(),i={...o,[t??Hj]:a};return(0,s.jsx)(e,{ref:r,...i})});return n.displayName=`withBackgroundColor(${e.displayName||e.name})`,n}}function nh({children:t,...e}){const n=Hs(),o=nn(),r=(0,xe.kJ)(),a=(0,h.useMemo)(()=>{const i=n==null?e:ij(n.family,n.variant,e);return{courseColor:r,...o,...i}},[n,e,r,o]);return(0,s.jsx)(Af.Provider,{value:a,children:t})}var Rf=c(91541),Pf=c(23077),Vj=c(45857),zj=c(93949),wf=c(40069),Uj=c(7003),oh=c.n(Uj);const Mf=":focus{outline: none}",$j=":focus:not(:focus-visible){outline: none}",Of="focus-ring-style",rh=()=>document.getElementById(Of)||Wj(),Wj=()=>{const t=document.createElement("style");return t.id=Of,document.head.appendChild(t),t},ah=0,zd=-1,_j=t=>{const e=rh();document.addEventListener("mousedown",()=>{setTimeout(()=>{e.innerHTML=Mf},0),t?.(!1)}),window.addEventListener("keydown",n=>{Gj(n,t)})},Gj=(t,e)=>{const n=t.target,o=rh();(Nd(t)||wc(t)&&!n.classList.contains("ignore-prefers"))&&(o.innerHTML="",e?.(!0))},Df=({focusVisible:t}={})=>rh().innerHTML=t?$j:Mf,Kj=t=>t?ah:zd,Bf=({list:t,index:e})=>{e>=0&&e<Cs()(t)&&t[e].focus()},Qj=({list:t,currentIndex:e})=>{const n=Ms()(e||0),o=n<Cs()(t)?n:0;return Bf({list:t,index:o}),o},Zj=({list:t,currentIndex:e})=>{const n=oh()(e||Cs()(t));return Bf({list:t,index:n}),n};var $c=c(70963),di=c(2998),Yj=c(44914),hs=c.n(Yj),Xj=c(49034),Wc=c.n(Xj),Jj=c(64943),ih=c.n(Jj),qj=c(30349),ek=c.n(qj);const tk=P1()(ih()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),hs()("#FFF")),sk=Wc()({color:tk}),nk=({accentContrast:t,bodyTypeface:e,color:n,headingTypeface:o,isLegacyCourse:r,uiTypeface:a})=>{const i=(0,h.useMemo)(()=>{const d=!(0,pt.Wn)(n),m=(0,pt.xD)(n),p=t===w.Em.DARK||t===w.Em.AUTO&&m===w.Em.DARK;return!r&&(t&&p||!t&&d)?[ot.S6.DARK,ot.S6.LIGHT]:[ot.S6.LIGHT,ot.S6.DARK]},[t,n,r]),[l,u]=i;return(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:ek()({bodyTypeface:e,colorThemeRGB:(0,di.A)(n)?.slice(0,3),colorTheme:n,colorThemeContrast:l,colorThemeContrastComplementary:u,colorThemeContrastComplementaryRGB:(0,di.A)(u)?.slice(0,3),colorThemeContrastRGB:(0,di.A)(l)?.slice(0,3),colorThemeTint:(0,pt.WA)(n),colorThemeTransparent:n+"1A",headingTypeface:o,uiTypeface:a})}})},ch=st()(nk,sk);ch.displayName="Branding",ch.propTypes={bodyTypeface:ut().string,color:ut().string.isRequired,headingTypeface:ut().string,uiTypeface:ut().string};const ok=(0,h.memo)(ch);var rk=c(26372);const Hf="riseUnsupportedBrowser",ak={authoring:/Android|webOS|iPhone|iPad|iPod|BlackBerry|MSIE|Trident/,runtime:/MSIE/},ik=t=>new RegExp(ak[t],"i").test(window.navigator.userAgent);class Ff extends rk.Component{render(){return ik(this.props.env)&&!window.sessionStorage.getItem(Hf)?this.renderUnsupported():this.props.children}renderUnsupported(){return(0,s.jsxs)("div",{children:[this.props.children,(0,s.jsx)("div",{className:"browser-support",children:(0,s.jsxs)("div",{className:"browser-support__inner",children:[(0,s.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,s.jsx)("p",{className:"browser-support__text browser-support__text--mobile",children:"Unsupported browser"}),(0,s.jsxs)("a",{className:"browser-support__link",href:"https://articulate.com/support/article/System-Requirements-for-Rise",rel:"noopener noreferrer",target:"_blank",children:[(0,s.jsx)("span",{children:"Learn more"}),(0,s.jsx)("i",{className:"icon icon-chevron-right"})]}),(0,s.jsx)("div",{className:"browser-support__dismiss",onClick:this.handleDismiss.bind(this),children:(0,s.jsx)("span",{className:"browser-support__dismiss-icon",children:"\xD7"})})]})})]})}handleDismiss(){window.sessionStorage.setItem(Hf,"true"),this.forceUpdate()}}Ff.propTypes={env:ut().string.isRequired};const Mo={get isInstantLink(){return!!window.InstantLinks?.publicId}},ui=q("cover");function ck(){const{categories:t}=(0,xe.DX)();return!Array.isArray(t)||t.length===0?null:(0,s.jsxs)("section",{className:ui("categories-section"),children:[(0,s.jsx)("h2",{className:ui("categories-title"),children:"Topics"}),(0,s.jsx)("ul",{className:ui("categories-list"),role:"list",children:t.map(e=>(0,s.jsxs)("li",{className:ui("categories-item"),role:"listitem",children:[(0,s.jsx)(XL,{className:ui("categories-icon")}),(0,s.jsx)("span",{className:ui("categories-item-wrap"),children:e})]},e))})]})}const lk=vs("CoverCompletedInformation"),dk=vs("CoverDueDate"),uk=vs("CoverRequirements"),hk=q("cover"),mk=t=>{const{courseId:e,coursePartnerContent:n,hasPartnerContent:o,publishedAt:r,tenantId:a}=t;return o?(0,s.jsx)(Ed,{type:"partner-content",children:(0,s.jsx)(Pp,{courseId:e,partnerContent:n,publishedAt:r,tenantId:a})}):null},pk=At("CoverCourseInfo",t=>{const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:i}=t,l=hk("details-content-aside",{logo:o});return(0,s.jsxs)("div",{className:l,children:[Ge.BI&&(0,s.jsx)(g1,{}),(0,s.jsx)(mk,{courseId:e,coursePartnerContent:n,hasPartnerContent:r,publishedAt:a,tenantId:i}),Ge.BI&&!r&&(0,s.jsx)(px,{}),Ge.BI&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(uk,{}),(0,s.jsx)(dk,{}),(0,s.jsx)(lk,{}),(0,s.jsx)(ck,{})]})]})}),fk=q("cover"),vk=At("CoverDescription",()=>{const t=(0,xe.DX)(),{navigation:e}=t,n=(0,et.QQ)(t.description),o=e?"description":"description-no-outline";if(!n)return null;const r=Za("description"),a=(0,as.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":r};return(0,s.jsx)("div",{...a,children:(0,s.jsx)(Ed,{type:o,children:(0,s.jsx)(yt,{className:fk("details-content-description"),value:c1(n)},"text")})})}),Vf=q("cover"),gk=({className:t=Vf("details-logo"),imageClassName:e=Vf("details-logo-image")})=>{const n=(0,xe.DX)()??{},o=(0,et.QQ)(n.media)?.image??{},{height:r,key:a,width:i,scalar:l=ot.C_.SMALL.value}=o,u={width:i*l,height:r*l};
153if(!a)return null;const d=(0,Ft.ME)(o);return(0,s.jsx)("div",{className:t,"data-testid":"cover-details-logo",children:(0,s.jsx)("img",{alt:"",className:e,"data-testid":"cover-details-logo-image",height:u.height,src:d,width:u.width})})},Ck=(t,e)=>{const n=Es()(["lessons",e],t),o=Rt()(0,["percentComplete"],n),r=Es()(["passed"],n);return{isComplete:Es()(["isComplete"],n),percentComplete:o,passedQuiz:r}};function xk({icon:t,...e}){switch(t){case ot.xA.ARTICLE:return(0,s.jsx)(Z5,{...e});case ot.xA.INTERACTION:return(0,s.jsx)(D8,{...e});case ot.xA.QUIZ:return(0,s.jsx)(i8,{...e});case ot.xA.VIDEO:return(0,s.jsx)(X8,{...e});default:return(0,s.jsx)("i",{className:"icon icon-Master-02"})}}var _c=c(38743);function $n(){const t=(0,ce.RQ)("/lessons/:currentLessonId"),e=(0,ce.RQ)("/lessons/:currentLessonId/:mode");return t?.params?.currentLessonId??e?.params?.currentLessonId}var tr=c(61254);const bk=At("LessonProgressGraphic");function Ud({canComplete:t,id:e,isDark:n,isEnabled:o,isTooltipVisible:r,onHideTooltip:a,onShowTooltip:i,scope:l}){const{color:u,navigationStyle:d}=gt(),m=un(e),p=$n(),f=Ml(e),g=Ol(e),v=Ct(e),C=(0,mt.useLabelsMap)(),x=v?.type!=null,y=m?.isComplete,b=e===p,E=m?.percentComplete??0,L=(0,h.useCallback)(()=>{(0,X.JD)((0,tr.eQ)(e))},[e]),T=(0,h.useCallback)(()=>{(0,X.JD)((0,tr.ss)(e))},[e]);return(0,s.jsx)(Vp,{canComplete:t,color:u,hasRestriction:x,isComplete:y,isCurrentLesson:b,isDark:n,isEnabled:o,isFailed:f,isPassed:g,isTooltipVisible:r,labels:C,navigationStyle:d,onHideTooltip:a,onMarkComplete:L,onMarkReset:T,onShowTooltip:i,percentComplete:E,progressGraphic:bk,scope:l})}const yk=q("overview-list-item");function Lk({className:t,id:e,last:n}){const o=(0,Pe.Z)(),r=$n(),{color:a,isLegacyCourse:i,navigationStyle:l,theme:u}=gt(),{accentContrast:d}=u,{icon:m,title:p}=Os(e)??{},f=cs(p),g=un(e),v=Ml(e),C=Ol(e),x=Ct(e),y=(0,mt.useLabelsMap)(),b=(0,as.uW)(p)?{"data-l10n-id":p.l10nId}:{"data-change-path":tp(e,"title")},E=g?.isComplete,L=g?.percentComplete??0,T=x?.type!=null,[I,S]=(0,h.useState)(!1),N=(0,h.useCallback)(()=>S(!0),[]),k=(0,h.useCallback)(()=>S(!1),[]),B=oe()("overview-list__li",{"overview-list__li--last":n}),M=oe()(t,"overview-list-item"),R=(0,h.useCallback)(H=>{const{currentTarget:{hash:P}}=H;H.preventDefault(),_c.Ay.Events.scrollEvent.register("end",()=>{Jo(()=>{o(P.slice(1))},"cover-to-lesson"),_c.Ay.Events.scrollEvent.remove("end")}),_c.Ay.animateScroll.scrollTo(0,{containerId:"overview"})},[o]);return(0,s.jsx)("li",{...b,className:B,"data-testid":`overview-list-item-${e}`,role:"listitem",children:(0,s.jsx)(zc,{className:M,isTooltipEnabled:!0,lessonId:e,onBlur:k,onClick:R,onHideProgressTooltip:k,onShowProgressTooltip:N,showProgressDelay:25,tooltipClassName:"overview-list-item-tooltip",children:(0,s.jsx)(Ik,{accentContrast:d,color:a,hasRestriction:T,isComplete:E,isCurrentLesson:e===r,isFailed:v,isLegacyCourse:i,isPassed:C,isTooltipVisible:I,labels:y,lessonIcon:m,lessonId:e,lessonTitle:f,navigationStyle:l,onHideTooltip:k,onShowTooltip:N,percentComplete:L,progressGraphic:Ek,scope:ot.by.COVER})})})}const Ek=At("LessonProgressGraphic");function Tk({isTooltipVisible:t,lessonIcon:e,lessonId:n,lessonTitle:o,onHideTooltip:r,onShowTooltip:a,scope:i}){const l=yk("progress-circle");return(0,s.jsxs)("div",{className:l,children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"overview-list-item__icon",children:(0,s.jsx)(xk,{icon:e})}),(0,s.jsx)("span",{className:"overview-list-item__title","data-testid":`overview-list-item-title-${n}`,children:o}),(0,s.jsx)(Ud,{canComplete:!1,id:n,isDark:!1,isEnabled:!0,isTooltipVisible:t,onHideTooltip:r,onShowTooltip:a,scope:i})]})}const Ik=At("OverviewListItemLinkContent",Tk),Sk=({value:t,fallback:e})=>{const n=(0,et.QQ)(t),o=(0,Lt.pP)(t);return e?(0,s.jsx)("span",{"data-l10n-id":o,children:n||e}):(0,s.jsx)("span",{"data-l10n-id":o,children:n})};function Nk({value:t,children:e}){const n=(0,et.QQ)(t);return e(n)}const xs=Sk,jk=q("overview-list"),kk=t=>t.reduce((e,n)=>(n.type==="section"?e.push([n]):e[e.length-1]?e[e.length-1].push(n):e.push([n]),e),[]),Ak=At("OverviewListSectionTitle",({className:t="",...e})=>{const n=Td()(["Default"],e);return(0,s.jsx)("h2",{...n,className:`${t} overview-list__section-title`})}),Rk=({courseProgress:t,lessons:e})=>{const n=(0,mt.useLabelsMap)(),o=kk(e);return(0,s.jsx)("nav",{"aria-label":n?.a11yRegionNavOverview,className:"overview-list",children:o.map((r,a)=>{const[i={},...l]=r,{title:u,type:d}=i,m=d==="section",p=m?l:r,f=jk("list",{sectionless:!m});return(0,s.jsxs)("section",{children:[m&&u&&(0,s.jsx)(Ak,{children:(0,s.jsx)(xs,{value:u})}),(0,s.jsx)("ol",{className:f,role:"list",children:p.map((g,v)=>{const{passedQuiz:C}=Ck(t,g.id);return(0,s.jsx)(Lk,{id:g.id,last:p.length>1&&v===p.length-1,passedQuiz:C},g.id)})})]},a)})})};function Pk(t){const e=Kt(t),n=_e(t),o=cc(t),r=_r({course:e,courseProgress:n});
153return{course:e,courseProgress:n,lessons:o,restrictingQuiz:r}}const wk=(0,h.memo)((0,X.Ng)(Pk)(Rk));function Mk(t){return t?.partnerContent?.content??[]}function lh(){return(0,X.d4)(Mk)}const Ok=t=>Object.values(ot.C_).find(e=>e.value==t);function Dk(t){return(0,h.useMemo)(()=>Ok(t)??ot.C_.SMALL,[t])?.label.toLowerCase()}const hi=q("cover"),Bk=At("CoverDetails",({reverseColumns:t})=>{const e=js(1200),{description:n,id:o,media:r,navigation:a,partnerContentId:i,publishedAt:l,selectedAuthorId:u,tenantId:d}=gt(),m=lh(),p=gs()(Mt()("id",u),m),f=!!i&&p,g=cs(r)?.image,v=!ls()(g),C=!n||!a,x=!n&&!a,y=!!(f||Ge.BI),b=hi("details",{"rise-com":Ge.BI,"rise-com-authoring":Ge.BI&&!l}),E=hi("details-content-wrap",{columns:y,logo:v}),L=hi("details-content",{"no-description-or-outline":C}),T=hi("details-logo",{centered:x,"no-description-or-outline":C,"has-partner-content":!!i}),I=y&&(0,s.jsx)(pk,{courseId:o,coursePartnerContent:p,hasLogo:v,hasPartnerContent:f,publishedAt:l,tenantId:d}),S=Dk(g?.scalar),N=hi("details-logo-image",{[S]:!0}),k=hi("details-description-outline");return(0,s.jsx)("section",{className:b,"data-testid":"cover-details",children:(0,s.jsxs)("div",{className:E,children:[!e&&t&&I,(0,s.jsxs)("div",{className:L,children:[(0,s.jsx)(gk,{className:T,imageClassName:N}),(0,s.jsxs)("div",{className:k,children:[n&&(0,s.jsx)(vk,{}),e&&I,a&&(0,s.jsx)(Ed,{type:"outline",children:(0,s.jsx)(wk,{})})]})]}),!e&&!t&&I]})})}),Hk=At("CoverHeader"),Fk=At("CoverLayout");var Vk=c(78638),zk=c(73333),Uk=c.n(zk);const $k=["[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(", "),zf=(t,e=!1)=>n=>{const o=Uf(n);if(o.length===0)return;const r=t>=o.length&&e?0:t;return Uk()(r,o)},Uf=t=>t?Array.from(t.querySelectorAll($k)).filter(e=>window.getComputedStyle(e).display!=="none"):[],$f=zf(0),Wk=zf(-1),dh=t=>$f(t)?.focus?.();function _k(){const t=(0,h.useRef)(null);function e(n){const o=$f(t.current),r=Wk(t.current);Nd(n)&&(n.shiftKey?document.activeElement===o&&(r.focus(),n.preventDefault()):document.activeElement===r&&(o.focus(),n.preventDefault()))}return(0,h.useEffect)(()=>{const n=t?.current;return n?.addEventListener("keydown",e),()=>{n?.removeEventListener("keydown",e)}},[]),t}var Gk=c(29552);const Tn=q("modal"),uh=h.forwardRef((t,e)=>{const{children:n,className:o,"data-testid":r,darkOverlay:a,disableBackgroundScroll:i,disableCloseOnOverlayClick:l,disableCloseOnEscape:u=!1,focusFirstInput:d=!0,focusOnOpen:m=!0,footer:p,forceToTop:f=!1,fullscreen:g=!1,heading:v,hideCloseButton:C=!1,hideHeader:x=!1,skipDialogClose:y=!1,useTopLayer:b=!0,onCancel:E,onClose:L=mn.lQ,onClickBack:T,onCloseBubbles:I=!1,onOverlayClick:S,scroll:N=!1,subHeading:k,subText:B,width:M}=t;(0,Gk.dg)();const R=_k(),H=(0,h.useRef)(null),P=(0,h.useCallback)(()=>{const W=R.current;!y&&W?.open&&W.close(),L()},[L,R,y]);(0,h.useEffect)(()=>{const W=z=>{pn(z)&&!u&&(z.preventDefault(),z.stopPropagation(),E?.(z),P())};return document.addEventListener("keydown",W,!I),()=>{document.removeEventListener("keydown",W,!I)}},[u,E,P,I]),(0,h.useEffect)(()=>{const W=R.current;if(W)return b?W.showModal():W.show(),m||setTimeout(()=>{W.contains(document.activeElement)&&document.activeElement?.blur()},0),()=>{W.close()}},[R,b,m]),(0,h.useEffect)(()=>{if(d&&R.current){const W=Uf(R.current).find(re=>re.tagName==="INPUT"||re.tagName==="TEXTAREA"||re.tagName==="SELECT"),z=W||H?.current;z?.focus(),z instanceof HTMLTextAreaElement&&z.setSelectionRange(z.value.length,z.value.length)}},[d,R]),(0,h.useEffect)(()=>(i&&(document.scrollingElement||document.documentElement).classList.add("no-scroll"),()=>{i&&(document.scrollingElement||document.documentElement).classList.remove("no-scroll")}),[i,R]);const j=Tn({"force-to-top":f}).mix(o),O=Tn("content",{"with-footer":!!p,"force-scroll":!!N}),U=Tn("overlay",{dark:!!a});return(0,s.jsxs)("dialog",{"aria-labelledby":"modal-heading","aria-modal":"true",className:j.toString(),"data-testid":r,onClose:P,ref:W=>{R.current=W,e&&(e.current=W)},role:"dialog",children:[(0,s.jsx)("div",{id:"modal-portal"}),(0,s.jsx)("div",{className:U,onClick:l?void 0:S||P}),(0,s.jsxs)("div",{className:Tn("dialog",{fullscreen:g}),style:M&&!g?{width:M}:{},children:[(!x||!C)&&(0,s.jsxs)("div",{className:Tn("heading-wrapper"),children:[(0,s.jsxs)("div",{className:Tn("heading-flexbox"),children:[!x&&(0,s.jsxs)("div",{className:Tn("header"),children:[T&&(0,s.jsx)(Et.ArcButton,{"aria-label":"back to previous page",hierarchy:"secondary",icon:"fa-regular fa-arrow-left",layout:"icon",onClick:T,shape:"square",size:"md",type:"button"}),(0,s.jsxs)("h1",{className:Tn("heading"),id:"modal-heading",children:[v,(0,s.jsx)("span",{className:Tn("subheading"),children:k})]})]}),!C&&(0,s.jsx)("button",{"aria-label":"close dialog",className:Tn("close"),onClick:P,ref:H,type:"button",children:(0,s.jsx)(tt,{className:"icon",name:"close"})})]}),B?(0,s.jsx)("h2",{className:Tn("subtitle"),children:B}):[]]}),(0,s.jsx)("div",{className:O,children:n}),p&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Tn("footer-shadow")}),(0,s.jsx)("div",{className:Tn("footer"),children:p})]})]})]})});var hh=c(29046),Ts=c(84980);const Wf=new Intl.DisplayNames(["en"],{type:"language",fallback:"code"}),Kk=(t,e)=>{const n=t?.toLowerCase();try{return e?.[n]?.authorDisplayName??Wf.of(t)}catch(o){return console.warn(`Language ${t}
153 invalid`,o),t}},Qk=(t,e)=>{try{return e?.[t]?.learnerDisplayName??Wf.of(t)}catch(n){return console.warn(`Language ${t} invalid`,n),t}},mh=()=>{const t=(0,et.iR)(),e=(0,Lt.vC)(t);return(0,h.useCallback)(o=>Kk(o,e),[e])},Zk=()=>{const t=(0,et.iR)(),e=(0,Lt.vC)(t);return(0,h.useCallback)(o=>Qk(o,e),[e])},mi=q("locale-selector"),ph=({onClose:t})=>{const e=(0,ce.zy)(),n=(0,xe.DX)(),o=(0,et.MQ)(),r=(0,et.jc)(),a=(0,et.bs)(),i=a?.length?a:o&&r?r?.map(T=>T.locale):void 0,[l,u]=(0,h.useState)(!1),d=l&&(i?.length||0)>1,m=(0,ke.A)(d),p=cs(n.title),{currentLocale:f,setCurrentLocale:g}=(0,wt.nY)(),v=Zk(),C=(0,xe.vU)(),[x,y]=(0,h.useState)(!1),b=(0,h.useCallback)(T=>{(0,Je.xS)(T),g(T)},[g]),E=()=>{(0,X.JD)((0,hh.Wp)(!1))};(0,h.useEffect)(()=>{m&&!d&&t?.()},[t,m,d]),(0,h.useEffect)(()=>{if(!i||x||o===void 0||!r)return;if(i.length===1){b(i[0]),y(!0);return}const T=(0,Je.y4)(void 0),I=(0,Je.JK)()??"";if(I!==""){b(I),y(!0),u(!1);return}T?.[Vk.WY]==null&&I===""?u(!0):(u(!1),E());const N=(navigator.language??"en-US").toLowerCase(),k=i.find(B=>B.toLowerCase()===N);b(k?N:i[0]),y(!0)},[i,e,b,x,o,r,u]);const L=T=>{T.preventDefault();const I=T.target.value;b(I)};return!d||o===void 0||!r?null:(0,s.jsx)(Ts.B1,{classNames:"modal",timeout:400,children:(0,s.jsx)(uh,{className:mi("modal"),disableCloseOnOverlayClick:!0,hideCloseButton:!0,hideHeader:!0,onClose:E,children:(0,s.jsxs)("div",{className:mi("container"),children:[(0,s.jsx)("div",{className:mi("heading"),children:C.l10nChooseLanguage}),(0,s.jsx)("div",{className:mi("course-title"),children:p}),(0,s.jsx)("div",{className:mi("selector"),children:(0,s.jsx)("select",{onChange:L,value:f,children:i.map(T=>(0,s.jsx)("option",{value:T,children:v(T)},T))})}),(0,s.jsx)("div",{className:mi("footer"),children:(0,s.jsx)(Et.ArcButton,{onClick:E,size:"lg",children:C.l10nChooseLanguageContinue})})]})})})};var Yk=c(26372);const Xk=q("cover-container"),_f=()=>document.querySelector("h1")?.focus({preventScroll:!0});function Jk({didNavigate:t}){const n=(0,mt.useLabelsMap)()?.overviewPageTitleSuffix,o=hr();return Yk.useEffect(()=>{t&&_f()},[t]),(0,s.jsxs)(la,{title:Uc(`${o} - ${n}`),children:[(0,s.jsx)("main",{children:(0,s.jsx)("div",{className:Xk({}),children:(0,s.jsxs)(Fk,{children:[(0,s.jsx)(Hk,{}),(0,s.jsx)(Bk,{})]})})}),(0,s.jsx)(ph,{onClose:_f})]})}const Gf=Jk,Kf=(0,h.createContext)(void 0);function $d(){const t=(0,h.useContext)(Kf);return t||(console.warn("useMediaContext must be used within a MediaProvider"),{mode:"readonly",openTranscript:null,closeTranscript:null,onTranscriptUpdate:null,lessonId:"",uploadAudio:null,aiEnabled:!1,aiWriterContext:void 0,removeMediaRecordType:void 0,removeItemMedia:void 0,handleOpenMediaModal:void 0,showAssetLibraryDialog:void 0,hideAssetLibraryDialog:void 0,handleDelete:void 0})}function Qf(t){function e(n){const o=$d();return(0,s.jsx)(t,{...n,...o})}return e.displayName=`WithMediaContextWrapper(${t.name})`,e}function qk({children:t,lessonId:e,mode:n="readonly",openTranscript:o,closeTranscript:r,onTranscriptUpdate:a,disableTranscriptButton:i=!1}){const l={mode:n,lessonId:e||"",openTranscript:o||null,closeTranscript:r||null,onTranscriptUpdate:a||null,disableTranscriptButton:i,uploadAudio:null,aiEnabled:!1,aiWriterContext:void 0,removeMediaRecordType:void 0,removeItemMedia:void 0,handleOpenMediaModal:void 0,showAssetLibraryDialog:void 0,hideAssetLibraryDialog:void 0,handleDelete:void 0};return(0,s.jsx)(Kf.Provider,{value:l,children:t})}var fh=c(22562);const Zf=(0,Ac.action)(fh.l6),Gc=(0,Ac.action)(fh.ju),vh=(0,Ac.action)(fh.Y8);function fo(t){return t.refs?Ja()("audio-id__refs_"+t.refs.toLowerCase()):""}function gh(t){if(t)return`audio-transcript--${t}`}function Yf(t){if(t)return`audio-player-transcript-toggle--${t}`}const Xf=q("course-exit");function Jf(t){const e=(0,mt.useLabelsMap)(),{className:n,lmsOptions:o,style:r}=t;return o?.enableExitCourse?(0,s.jsx)("div",{className:Xf("wrapper"),children:(0,s.jsx)("button",{className:Xf("button").mix(n),onClick:Ge.NS,style:r,type:"button",children:e?.courseExit})}):null}const Ch=q("nav-control"),eA=()=>{const[t,e]=(0,h.useState)(!1);return(0,Jt.A)(vf,()=>e(!0)),(0,Jt.A)(W1,()=>e(!1)),t},tA=({"aria-controls":t,isNavOpen:e,toggleNav:n,hideNav:o})=>{const{buttonNavigationStyle:r,lmsOptions:a,showNavigationButtons:i,...l}=(0,xe.DX)(),u=(0,h.useRef)(null),[d,m]=(0,h.useState)(0),p=(0,mt.useLabelsMap)(),f=jc(),g=Zr(),v=eA(),x=!!(0,h.useMemo)(()=>l.lessons?.find(I=>I.id===g),[l.lessons,g])?.settings?.timer,y=a?.enableExitCourse,b=x||y,E=l.navigationType===w.br.COMPACT,L=E?"fixed-course-exit":void 0;(0,h.useEffect)(()=>{u.current=document.querySelector(".page-wrap");const S=document.querySelector(".lesson-nav--previous")?.clientHeight??60,N=!i||r===w.AY.FLOATING&&!f;function k({target:B}){const M=B?.scrollTop??0,R=S-M;m(R)}return v&&!N?u.current.scrollTop===0?m(S):u.current.addEventListener("scroll",k):m(0),()=>u.current.removeEventListener("scroll",k)},[r,f,v,i]);const T=(0,h.useCallback)(()=>
153{const I=document.getElementsByClassName("nav-control__menu--top-nav-bar")?.item(0);if(u.current&&I){const S=u.current.offsetWidth-u.current.clientWidth||0;I.style.maxWidth=`calc(100% - ${S}px)`}},[]);return(0,h.useLayoutEffect)(()=>{b&&T()},[b,T]),(0,s.jsx)("div",{className:Ch("wrapper"),children:(0,s.jsxs)("div",{className:Ch("menu",{"is-timed-quiz":x,"nav-off":o,"top-nav-bar":b}),style:{marginTop:d},children:[!o&&(!E||f)&&(0,s.jsx)("button",{"aria-controls":t,"aria-expanded":e,"aria-label":e?p?.a11yNavigationMenuClose:p?.a11yNavigationMenuOpen,className:Ch("button"),onClick:n,type:"button",children:(0,s.jsx)(tt,{classNameIcon:"page-menu-toggle__icon",name:"bars-regular"})}),(0,s.jsx)(Jf,{className:L,lmsOptions:a})]})})};var Is=c(18235);const qf=q("nav-compact"),sA=At("NavCompactHeaderCounter",t=>{const{lessonPosition:e,labelLessonName:n,labelLessonPreposition:o,totalLessons:r}=t;return e<=0?null:(0,s.jsx)("div",{className:qf("header-counter"),"data-testid":"nav-compact-counter",children:`${n} ${e} ${o} ${r}`})}),nA=At("NavCompactHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a,navExpanded:i}=t;return(0,s.jsxs)("div",{className:qf("header-progress"),"data-testid":"nav-compact-progress",children:[(0,s.jsx)("div",{className:n,children:a}),(0,s.jsx)(Md,{"aria-hidden":i,"aria-label":a,progress:r,runnerClass:e,trackClass:o})]})}),oA=({closeNav:t,isExpanded:e,openNav:n})=>{const o=(0,Pe.Z)(),r=(0,X.wA)(),a=Aa(),i=gt(),l=hr(),u=gr(),d=(0,mt.useLabelsMap)(),m=Xt(),p=Eo(),f=Zr(),g=Zm(),v=(0,h.useMemo)(()=>i?.lessonsOnly?.length??0,[i?.lessonsOnly]),C=(0,h.useMemo)(()=>g[f]??-1,[g,f]),x=a?.navigationStyle,y=(0,h.useMemo)(()=>(0,$t.FH)(x),[x]),b=(0,h.useCallback)(()=>{e?t():n()},[e,n,t]),E=a?.exportSettings?.webExportSettings,L=!Mo.isInstantLink&&(a?.lmsOptions?.disableCoverPage||E?.disableCoverPage),T=(0,h.useCallback)(Ue=>{Ue.preventDefault(),Jo(()=>{o("/")},"lesson-to-cover")},[o]),N=`${(0,xe.Wz)()?`%${u}`:`${u}%`} ${d?.lessonComplete??""}`,{alpha:k,ariaLabel:B,media:M,role:R}=ea("coverImage"),H=(0,h.useMemo)(()=>(0,$t.b9)({alpha:k,color:a?.theme?.coverImageColor,media:M}),[k,a?.theme?.coverImageColor,M]),P=oe()("nav-compact__header",{"nav-compact__header--collapsed":!e}),j=oe()("nav-compact__header-image",{"nav-compact__header-image--collapsed":!e}),O="nav-compact__header-inner",U="nav-compact__header-control",W=oe()("nav-compact__header-title-link",{"nav-compact__header-title-link--collapsed":!e}),z=oe()("nav-compact__header-progress-text",{"nav-compact__header-progress-text--collapsed":!e}),re=oe()("nav-compact__header-progress-track",{"nav-compact__header-progress-track--collapsed":!e}),fe=oe()("nav-compact__header-progress-runner",{"nav-compact__header-progress-runner--collapsed":!e}),Ee="nav-compact__header-strip",Oe=(0,h.useCallback)(()=>{r((0,Is.ts)(!m?.active))},[r,m?.active]);return(0,s.jsxs)("section",{"aria-label":"Course Information",className:P,"data-testid":"nav-compact-header",children:[y&&H&&(0,s.jsx)("div",{"aria-label":B,className:j,role:R,style:H}),(0,s.jsxs)("div",{className:O,children:[(0,s.jsxs)("div",{className:Ee,children:[(0,s.jsxs)("div",{className:"nav-compact__header-controls",children:[a?.allowSearch&&p!=="restricted"&&e&&(0,s.jsx)("button",{"aria-label":d?.a11ySearchOpen,className:`${U} nav-compact__header-search`,"data-testid":"nav-compact-search",onClick:Oe,type:"button",children:(0,s.jsx)(Bc,{className:"nav-compact__header-control-icon nav-compact__header-search-icon"})}),(0,s.jsxs)("button",{"aria-controls":"nav-compact-outline","aria-expanded":e,"aria-label":e?d?.a11yNavigationMenuClose:d?.a11yNavigationMenuOpen,className:`${U} nav-compact__header-toggle`,"data-testid":"nav-compact-toggle",onClick:b,type:"button",children:[e&&(0,s.jsx)(JL,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"}),!e&&(0,s.jsx)(qL,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"})]})]}),(0,s.jsx)(sA,{labelLessonName:d?.lessonName??"",labelLessonPreposition:d?.lessonPreposition??"",lessonPosition:C,totalLessons:v})]}),(0,s.jsx)("div",{className:"nav-compact__header-title","data-testid":"nav-compact-title",children:L?(0,s.jsx)("span",{className:W,children:l}):(0,s.jsx)(yn,{className:W,onClick:T,to:"/",children:l})}),(0,s.jsx)(nA,{classProgressRunner:fe,classProgressText:z,classProgressTrack:re,navExpanded:e,percentComplete:u,percentCompleteText:N})]})]})};var rA=c(24160),ev=c.n(rA),iee=c(22713),aA=c(47971),tv=c.n(aA),iA=c(12764),cA=c.n(iA),lA=c(37541),dA=c.n(lA),uA,hA,mA,pA,fA;function sv(t,e,n="..."){const o=t?t.toString():"";return o.length>e?o.substr(0,e-1)+n:o}const cee=t=>fA(e=>hA(e)>t,mA(0,t)),vA=null,gA=t=>vA.test(t),CA=t=>t>=0,xA=t=>t<=100,lee=t=>t==="",dee=t=>gA(t)&&xA(t)&&CA(t),uee=t=>String(Number(t)),nv=st()(yc()(""),ev()(cA(),0)),hee=st()(yc()(" "),qo()(nv),tv()(" ")),ov=st()(yc()(" "),tv()(/(?=[A-Z]|^)/)),mee=t=>t?uA(nv,pA,ov)(t):"",pee=st()(dA(),ov);function rv({id:t,isEnabled:e,isSectionLesson:n,last:o}){const{navigationStyle:r}=gt(),a=le(t),i=$n(),l=i0(t),u=(0,h.useMemo)(()=>(0,$t.I8)(r),[r]),d=t===i,m=sv(a||"",45),[p,f]=(0,h.useState)(!1),g=(0,h.useCallback)(()=>f(!0),[]),v=(0,h.useCallback)(()=>f(!1),[]),C=n?"nav-compact__outline-section-item":"nav-compact__outline-item",x=(0,s.jsx)(Ud,{canComplete:l,id:t,isDark:u,isEnabled:e,isTooltipVisible:p,onHideTooltip:v,onShowTooltip:g,scope:ot.by.COMPACT});return(0,s.jsxs)("li",{className:"nav-compact__outline-list-item","data-testid":`nav-compact-lesson-${t}`,role:"listitem",children:[(0,s.jsxs)(zc,{className:C,dark:u,isCurrentLesson:d,isTooltipEnabled:!l,last:o,lessonId:t,onHideProgressTooltip:v,onShowProgressTooltip:g,showProgressDelay:0,tooltipClassName:`${C}-tooltip`,children:[m,!l&&x]}),l&&x]})}const bA=q("nav-compact"),yA=({id:t})=>{const e=Os(t),n=cs(e?.title),o=bA("outline-section-empty");return(0,s.jsx)("div",{className:o,children:(0,s.jsx)("span",{children:n})})};var pi=c(26372);const LA=({index:t,isEnabled:e,lessonIds:n,id:o})=>{const r=gt(),a=r?.theme,i=r?.themeId,l=a?.navigationSectionsExpanded??!0,u=Os(String(o)),d=cs(u?.title),[m,p]=pi.useState(l);pi.useEffect(()=>{p(l)},[l]);const[f,g]=pi.useState(),v=pi.useRef(null),C=`sublistCompact-${t}`,x=String(i),y=oe()("nav-compact__outline-section-toggle-icon",{"nav-compact__outline-section-toggle-icon--collapsed":!m}),b=oe()("nav-compact__outline-section-list",{"nav-compact__outline-section-list--collapsed":!m}),E=oe()("nav-compact__outline-section-toggle",{"nav-compact__outline-section-toggle--collapsed":!m}),L=pi.useCallback(()=>{p(T=>!T)},[]);return pi.useLayoutEffect(()=>{const T=setTimeout(()=>{v.current&&g(v.current.scrollHeight)},0);return()=>{clearTimeout(T)}},[n.length,x]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":C,"aria-expanded":m,className:E,onClick:L,tabIndex:e?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-compact__outline-section-toggle-text",children:d}),(0,s.jsx)(ef,{className:y})]}),(0,s.jsx)(Vc,{inert:!m,children:(0,s.jsx)("ol",{"aria-hidden":m?void 0:!0,className:b,id:C,ref:v,role:"list",style:{maxHeight:f},children:n.map((T,I)=>(0,s.jsx)(rv,{id:T,isEnabled:e&&m,isSectionLesson:!0,last:I===n.length-1},T))})})]})},EA=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a="nav-compact__outline-item nav-compact__outline-section";return ls()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(yA,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(LA,{id:o,index:t,isEnabled:e,lessonIds:r})})},TA=({index:t,isEnabled:e,lessonIds:n})=>Bl(n)?(0,s.jsx)(EA,{index:t,isEnabled:e,lessonIds:n}):n.map((r,a)=>(0,s.jsx)(rv,{id:r,isEnabled:e,isSectionLesson:!1,last:a===n.length-1},r)),IA=t=>t.displayName||t.name||"Component";var SA=c(99278),NA=c.n(SA);function jA(t,e,n){const o=[];let r=0;return n.replace(t,function(...a){const i=a.length,l=a[0],u=a[i-1],d=a[i-2],m=u.slice(r,d),p=typeof e=="function"?e(...a):e;return o.push(m,p),r=d+l.length,""}),o.push(n.slice(r)),o}const kA=(t,e)=>(0,s.jsx)("mark",{children:t},e),AA=(t,e)=>jA(new RegExp(NA()(e),"igm"),kA,t);var RA=c(47198),PA=c.n(RA),wA=c(80888),MA=c.n(wA);const Kc=MA()(PA()),yee=t=>t.toLowerCase();var OA=c(32261),av=c.n(OA),DA=c(92369),xh=c.n(DA),BA=c(5811),Wd=c.n(BA),HA=c(66048),Qc=c.n(HA),FA=c(97930),VA=c.n(FA),zA=c(74355),UA=c.n(zA),$A=c(3099),WA=c.n($A),_A,GA;const KA=t=>t===-1,QA=t=>t>=0,ZA=Qc()(3,(t,e,n)=>ev()(t,n,e)),bh=Qc()(3,(t,e,n)=>n[t]==e),Lee=Qc()(3,(t,e,n)=>Ds()(Qo()(bh("id",e)),oi()(KA,hs()(n),ZA(t,n)))(n)),Eee=t=>GA(_A(bh("id",t))),Tee=Qc()(3,(t,e,n)=>
153VA()(e,n[t],WA()(t,1,n)));function YA(t,e){const n=[];for(const o of e)if(n.push(o),t(o))break;return n}const XA=xh()(UA()(av(),0)),iv=st()(Array.from,Array),cv=oa()((t,e)=>iv(e).map(()=>t)),JA=oa()((t,e,n,o)=>iv(n).map((r,a)=>a===o?e:t)),Iee=Qc()(3,(t,e,n)=>Ds()(Qo()(bh(t,e)),QA)(n));function See(t,e,n){if(e>=n.length)return n.slice(0);const o=Math.floor(e/2),r=Math.ceil(e/2),a=t-o,i=t+r;return i>n.length?n.slice(n.length-e):a>=0?n.slice(a,i):n.slice(0,e)}const _d=(t,e)=>{const n=Math.min(t.length,e.length),o=new Array(n);for(let r=0;r<n;r++)o[r]=[t[r],e[r]];return o},Nee=oa()((t,e,n)=>n>=t&&n<e),lv=t=>t<10?`0${t}`:String(t),qA=t=>Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(t),dv=t=>t.reduce((e,n)=>isNaN(n)||n==null?e:e+n,0),eR=At("NavCompactOutline",({className:t="",isEnabled:e,lessonIdGroups:n})=>{const o=(0,mt.useLabelsMap)(),r=oe()(t,"nav-compact__outline",{"nav-compact__outline--collapsed":!e});return(0,s.jsx)("section",{"aria-label":o?.a11yRegionNavOverview,className:r,"data-testid":"nav-compact-outline",id:"nav-compact-outline",children:Kc(n)&&(0,s.jsx)("ol",{className:"nav-compact__outline-list","data-testid":"nav-compact-outline-list",role:"list",children:n.map((a,i)=>ls()(a)?null:(0,s.jsx)(TA,{index:i,isEnabled:e,lessonIds:a},i))})})});function tR(t){const e=Kt(t);return{lessonIdGroups:a0(t),navigationStyle:e.navigationStyle}}const sR=(0,X.Ng)(tR)(eR);var nR=c(26372);const oR=()=>{const[t,e]=nR.useState(!1);return(0,Jt.A)(gf,()=>e(!0)),(0,Jt.A)(_1,()=>e(!1)),t},uv=q("nav-compact"),hv="nav-content-compact",rR=({closeNav:t,coverImageColor:e,isExpanded:n,navigationStyle:o,openNav:r,progressIndicatorStyle:a,translateY:i},l)=>{const u=(0,h.useMemo)(()=>(0,$t.I8)(o),[o]),d=(0,h.useMemo)(()=>o===w.Py.LIGHT_ACCENT||o===w.Py.DARK_ACCENT,[o]),m=oR(),p=(0,h.useMemo)(()=>(0,$t.FH)(o),[o]),f=a===w.Y2.CIRCULAR_FILL,g=a===w.Y2.INCOMPLETE_COMPLETE,v=(0,h.useMemo)(()=>p&&e===w.df.LIGHT,[p,e]),C=uv({accent:d,dark:u,light:!u,"image-dark-overlay":p&&!v,"image-light-overlay":p&&v,"progress-circular-fill":f,"progress-incomplete-complete":g,collapsed:!n,nav
153NextIsVisible:m}),x=uv("wrap",{collapsed:!n}),y={transform:`translateY(${i}px)`};return(0,s.jsx)("div",{className:C,"data-testid":"nav-compact",id:hv,ref:l,style:y,children:(0,s.jsxs)("div",{className:x,children:[(0,s.jsx)(oA,{closeNav:t,isExpanded:n,openNav:r}),(0,s.jsx)(Vc,{inert:!n,children:(0,s.jsx)(sR,{isEnabled:n})})]})})};function aR(t){return Kt(t).buttonNavigationStyle==="FULL"?Math.round(-(t.ui.lessonNavNextButton?.intersectionRect?.height??0)):0}function iR(t){const{color:e,navigationStyle:n,theme:o}=Kt(t),r=o?.coverImageColor,a=o?.progressIndicatorStyle,i=aR(t);return{color:e,coverImageColor:r,navigationStyle:n,progressIndicatorStyle:a,translateY:i}}const cR=st()((0,X.Ng)(iR,null,null,{forwardRef:!0}),h.forwardRef)(rR);var mv=c(48519);const pv=Object.assign((0,h.createContext)(null),{displayName:"OverlayNavControlContext"});function lR(t){const{children:e,closeNav:n,openNav:o}=t,[r,a]=(0,h.useState)(!1),i=(0,h.useCallback)(()=>{a(!0)},[]),l=(0,h.useCallback)(()=>{a(!1)},[]);return(0,s.jsx)(pv.Provider,{value:{closeNav:n,openNav:o,openSearch:i,closeSearch:l,searchActive:r},children:e})}const Gd=h.useContext.bind(null,pv),Kd=q("nav-overlay"),dR=({className:t})=>{const{navigationStyle:e}=gt(),{lessonComplete:n}=(0,mt.useLabelsMap)(),o=(0,xe.Wz)(),r=gr(),i=`${o?`%${r}`:`${r}%`} ${n}`,l=e!==w.qB.ACCENT,u=Kd("header-progress-runner"),d=Kd("header-progress-text"),m=Kd("header-progress-track");return(0,s.jsxs)("div",{className:Kd("header-progress").mix(t),"data-testid":"nav-overlay-progress",children:[(0,s.jsx)(Md,{"aria-hidden":!0,background:!0,disabled:l,progress:r,runnerClass:u,trackClass:m}),(0,s.jsx)("div",{className:d,children:i})]})},sr=q("nav-overlay"),uR=()=>{const t=gt(),e=(0,Pe.Z)(),n=hr(),{allowSearch:o,lmsOptions:r={}}=t||{},a=Eo(),i=(0,mt.useLabelsMap)(),l=Gd(),u=(0,h.useRef)(),d=sr("header-control-btn"),m=t?.exportSettings?.webExportSettings,p=!Mo.isInstantLink&&(r?.disableCoverPage||m?.disableCoverPage),f=g=>{g.preventDefault(),Jo(()=>{e("/")},"lesson-to-cover")};return(0,s.jsx)("section",{"aria-label":"Course Information","data-testid":"nav-overlay-header",children:(0,s.jsxs)("div",{className:sr("header-container"),children:[(0,s.jsxs)("div",{className:sr("header-controls"),children:[(0,s.jsx)("button",{"aria-label":i?.a11yNavigationMenuClose,className:d,"data-testid":"nav-overlay-close",onClick:l.closeNav,ref:u,type:"button",children:(0,s.jsx)(Rd,{className:sr("header-close-icon")})}),o&&a!=="restricted"&&(0,s.jsx)("button",{"aria-label":i?.a11ySearchOpen,className:d,"data-testid":"nav-overlay-search",onClick:l.openSearch,type:"button",children:(0,s.jsx)(Bc,{className:sr("header-search-icon")})})]}),(0,s.jsxs)("div",{className:sr("header-title-progress-container"),children:[(0,s.jsx)("h1",{className:sr("header-title"),"data-testid":"nav-overlay-title",id:"nav-overlay-title",children:p?(0,s.jsx)("span",{className:sr("header-title"),children:n}):(0,s.jsx)(yn,{className:sr("header-title-link"),onClick:f,to:"/",children:n})}),(0,s.jsx)(dR,{})]})]})})},yh=({icon:t,...e})=>{switch(t){case ot.xA.INTERACTION:return(0,s.jsx)(aE,{...e});case ot.xA.QUIZ:return(0,s.jsx)(sE,{...e});case ot.xA.VIDEO:return(0,s.jsx)(iE,{...e});default:return(0,s.jsx)(YL,{...e})}},fi=q("nav-overlay"),fv=At("NavOverlayOutlineLesson",({first:t,id:e,isEnabled:n,isSectionLesson:o,last:r})=>{const{navigationStyle:a}=gt(),{icon:i}=Os(e),l=le(e),u=Gd(),d=i0(e),m=(0,$t.I8)(a),p=fi("outline-item",{section:o}),f=fi("outline-item-link-icon",{quiz:i==="Quiz"}),g=(0,h.useCallback)(()=>{u.closeNav()},[u]),[v,C]=(0,h.useState)(!1),x=(0,h.useCallback)(()=>C(!0),[]),y=(0,h.useCallback)(()=>C(!1),[]),b=(0,s.jsx)(Ud,{canComplete:d,id:e,isDark:m,isEnabled:n,isTooltipVisible:v,onHideTooltip:y,onShowTooltip:x,scope:ot.by.OVERLAY});return(0,s.jsxs)("li",{className:fi("outline-list-item",{first:t,last:r}),"data-testid":`nav-overlay-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)(zc,{className:p.toString(),dark:m,isTooltipEnabled:!d,lessonId:e,onHideProgressTooltip:y,onNavigate:g,onShowProgressTooltip:x,showProgressDelay:null,tooltipClassName:fi("outline-item-tooltip").toString(),children:[(0,s.jsx)("span",{className:fi("outline-icon-wrap"),children:(0,s.jsx)(yh,{className:f,icon:i})}),(0,s.jsx)("span",{className:fi("outline-lesson-title"),children:l}),!d&&b]}),d&&b]})}),hR=q("nav-overlay"),mR=({id:t})=>{const e=Os(t),n=cs(e.title);return(0,s.jsx)("span",{className:hR("outline-section-text"),children:n})},vv=q("nav-overlay"),pR=({isEnabled:t,lessonIds:e})=>{const n=(0,h.useRef)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:vv("outline-section-divider")}),(0,s.jsx)("ol",{className:vv("outline-section-list"),ref:n,role:"list",children:e.map((o,r)=>
153(0,s.jsx)(fv,{id:o,isEnabled:t,isSectionLesson:!0,last:r===e.length-1},o))})]})},fR=q("nav-overlay"),vR=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a=fR("outline-item").mix("nav-overlay__outline-section");return ls()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(mR,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(pR,{index:t,isEnabled:e,lessonIds:r})})},gR=({index:t,isEnabled:e,lessonIds:n})=>{const o=Bl(n),r=le(n[0]),a=q("nav-overlay");return o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:a("outline-section-text"),children:r}),(0,s.jsx)("ol",{className:a("outline-list"),"data-testid":"nav-overlay-outline-list",role:"list",children:(0,s.jsx)(vR,{index:t,isEnabled:e,lessonIds:n})})]}):n.map((i,l)=>(0,s.jsx)(fv,{first:l===0,id:i,isEnabled:e,isSectionLesson:!1,last:l===n.length-1},i))},CR=q("nav-overlay"),xR=At("NavOverlayOutline",({isEnabled:t})=>{const e=e2(),n=(0,mt.useLabelsMap)();return(0,s.jsx)("section",{"aria-label":n?.a11yRegionNavOverview,className:CR("outline"),"data-testid":"nav-overlay-outline",id:"nav-overlay-outline",children:Kc(e)&&(0,s.jsx)(s.Fragment,{children:e.map((o,r)=>ls()(o)?null:(0,s.jsx)(gR,{index:r,isEnabled:t,lessonIds:o},`lessonIdGroup-${r}`))})})});var bR=c(68903),Qd=c.n(bR),ha=c(75656),yR=c(5651),ma=c.n(yR),LR=c(34638),Zd=c.n(LR),ER=c(98757),nr=c.n(ER),TR=c(5832),on=c.n(TR);const Lh=Array.isArray,IR=t=>typeof t=="number",Yd=t=>!on()(t)&&typeof t=="object",Eh=t=>typeof t=="string",SR=(t,e,n)=>(o,r)=>{const a=na()(r,t);if((0,as.uW)(o)){const i=n[o.l10nId];return typeof i!="string"?!1:!ls()(Zd()(e,(0,ha.htmlDecode)(i)))}else return Yd(o)?gv(t,e,n)(o):a&&Eh(o)?!ls()(Zd()(e,(0,ha.htmlDecode)(o))):!1},gv=(t,e,n)=>o=>Ds()(ma(),nr(),na()(!0))(SR(t,e,n),o),NR=gv;var jR=c(43180),Th=c.n(jR),kR=c(97285),Ih=c.n(kR),AR=c(89565),Xd=c.n(AR);const RR=(t,e,n)=>(o,r)=>{const a=na()(r,t);return Lh(o)?nr()(Sh(t,e,n)(o)):(0,as.uW)(o)?typeof n[o.l10nId]!="string"?0:Cs()(Zd()(e,(0,ha.htmlDecode)(n[o.l10nId]))):Yd(o)?Sh(t,e,n)(o):a&&Eh(o)?Cs()(Zd()(e,(0,ha.htmlDecode)(o))):0},Sh=(t,e,n)=>o=>ma()(RR(t,e,n),o),Nh=t=>{if(Lh(t))return qo()(Nh,t);if(Yd(t))return Nh(nr()(t));if(IR(t))return t},PR=(t,e,n)=>o=>Ds()(Sh(t,e,n),nr(),qo()(Nh),Ih(),Xd()(Th(),0),r=>po()("results",r,o))(o),wR=(t,e,n)=>(o,r)=>{const a=na()(r,t);return Lh(o)?nr()(jh(t,e,n)(o)):Yd(o)?jh(t,e,n)(o):a&&Eh(o)?E1()(e,n,o):o},jh=(t,e,n)=>o=>ma()(wR(t,e,n),o),Cv=jh,xv=(t,e,n,o,r)=>{const a=["caption","code","description","heading","message","name","paragraph","title"];if(ls()(t))return!1;const i=t.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),l=new RegExp(`(${i})(?![^<]*>)`,"ig"),u=y=>`<mark>${y}</mark>`,d=Cv(a,l,u),m=Cv(Object.keys(n),l,u),p=qo()(d,e),f=o?o(t):{},g=m(n),v=y=>f[y.id]>0||NR(a,l,n)(y),C=PR(a,l,n),x=Ds()(Ls()(v),qo()(C))(e);x.forEach(y=>{y.results+=f[y.id]??0}),r(t,x,g,p)};function MR(t){if(!t)return!0;for(const e in t)return!1;return!0}function bv(){const{lessons:t,mondrian:e}=gt(),{currentLocale:n}=(0,wt.nY)(),[o,r]=(0,h.useState)(null);return(0,h.useEffect)(()=>{MR(e)||c.e("webpack_container_remote_mondrian_learn-react").then(c.t.bind(c,4246,23)).then(a=>r(()=>a.searchItemsByLesson))},[e]),(0,h.useCallback)(a=>o?.(a,t,e,n)??{},[o,t,e,n])}const OR=_c.Ay.animateScroll,Wn=q("nav-overlay"),DR=()=>{const t=(0,X.wA)(),e=ur(),n=Gd(),{lessons:o}=gt(),[r,a]=(0,h.useState)(""),i=bv(),l=(0,h.useRef)(),u=(0,mt.useLabelsMap)(),d=Wn("search-close-btn"),m=Wn("search-clear-btn"),p=(0,h.useCallback)(()=>{n.closeSearch(),n.closeNav(),t([(0,Is.Se)(!0),(0,Is.ts)(!1),(0,Is.NM)(null)])},[t,n]),f=(0,h.useCallback)(()=>{a(""),l.current?.focus?.()},[]);(0,h.useEffect)(()=>{l.current?.focus?.()},[]);const g=(0,h.useCallback)(x=>{pn(x)&&!Qd()(r)?(x.preventDefault(),a(""),t((0,Is.NM)(null))):pn(x)&&Qd()(r)&&p()},[t,p,r]);(0,Jt.A)("keydown",g);const v=(0,h.useCallback)(x=>{a(x.target.value)},[]),C=(0,h.useCallback)(x=>{if(x.preventDefault(),r){const y=(b,E,L,T)=>{t([(0,Is.NM)(b),(0,Is.gA)(E),(0,Is.D2)(L),(0,Is.u)(T),(0,Is.ts)(!0)]),OR.scrollToTop({duration:500,smooth:!0})};n.closeNav(),n.closeSearch(),xv(r,o,e??{},i,y)}},[r,i,n,o,e,t]);return(0,s.jsxs)("div",{className:Wn("search"),"data-testid":"nav-overlay-search-container",children:[(0,s.jsx)("div",{className:Wn("search-header"),children:(0,s.jsx)("button",{"aria-label":u?.a11ySearchClose,className:d,"data-testid":"nav-overlay-search-close",onClick:p,type:"button",children:(0,s.jsx)(Rd,{className:Wn("search-close-icon")})})}),(0,s.jsx)("div",{className:Wn("search-body"),children:(0,s.jsxs)("form",{autoComplete:"off",onSubmit:C,children:[(0,s.jsxs)("div",{className:Wn("search-container"),children:[(0,s.jsx)(Bc,{className:Wn("search-icon")}),(0,s.jsx)("input",{"aria-label":u?.a11ySearchInput,className:Wn("search-input").mix("brand--ui"),"data-testid":"nav-overlay-search-input",n
153ame:"search",onChange:v,placeholder:u?.search,ref:l,type:"input",value:r}),r&&(0,s.jsx)("button",{"aria-label":u?.a11ySearchInputClear,className:m,"data-testid":"nav-overlay-search-clear",onClick:f,type:"button",children:(0,s.jsx)(Rd,{className:Wn("search-clear-icon").toString()})})]}),(0,s.jsx)("div",{className:Wn("search-actions"),children:(0,s.jsx)("button",{className:Wn("search-submit-btn").mix("brand--ui"),"data-testid":"nav-overlay-search-submit",type:"submit",children:u?.search})})]})})]})},kh=q("nav-overlay"),yv="nav-content-overlay",BR=({isExpanded:t,outlineRef:e})=>{const o=e2()[0],r=Bl(o),a=kh("body",{section:r});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(uR,{}),(0,s.jsx)("div",{className:a,ref:e,children:(0,s.jsx)(xR,{isEnabled:t})})]})},HR=({children:t,isImage:e,hasStickyHeader:n})=>{const o=kh("content",{graphic:e,"has-sticky-header":n});return(0,s.jsxs)("div",{className:o,"data-nav-scrollable":!0,"data-testid":"nav-overlay-content",children:[t,e&&(0,s.jsx)(y1,{})]})},FR=({isExpanded:t})=>{const e=(0,h.useRef)(null),n=(0,h.useRef)(),o=gt(),r=Gd(),a=(0,ke.A)(t),{navigationStyle:i,theme:{progressIndicatorStyle:l}={}}=o||{},u=o?.theme?.coverImageColor,d=i===w.qB.ACCENT,m=i===w.qB.TINT,p=(0,$t.I8)(i),f=i===w.qB.GRAY,g=i===w.qB.LIGHT,v=(0,$t.FH)(i),C=l===w.Y2.CIRCULAR_FILL,x=l===w.Y2.INCOMPLETE_COMPLETE,[y,b]=(0,h.useState)(!0),{isIntersecting:E=!1}=(0,mv.A)(n,{root:e?.current,threshold:1})||{},L=(0,ke.A)(E),T=(0,h.useMemo)(()=>v&&u===w.df.LIGHT,[v,u]),I=kh({"accent-tint":m,accent:d,dark:p,gray:f,"image-dark-overlay":v&&!T,"image-light-overlay":v&&T,light:g,"progress-circular-fill":C,"progress-incomplete-complete":x,closing:a&&!t});return(0,h.useEffect)(()=>{t?e.current?.showModal():setTimeout(()=>{e.current?.close()},500)},[t]),(0,h.useEffect)(()=>{const S=N=>{pn(N)&&!r.searchActive&&(N.preventDefault(),r.closeNav())};return t?document.addEventListener("keydown",S):document.removeEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[t,r]),(0,h.useEffect)(()=>{!y&&E?b(!0):L&&!E&&b(!1)},[E,y,L,b]),(0,s.jsx)("dialog",{"aria-labelledby":"nav-overlay-title","aria-modal":"true",className:I,"data-testid":"nav-overlay",id:yv,ref:e,children:(0,s.jsx)(HR,{hasStickyHeader:y,isImage:v,children:r.searchActive?(0,s.jsx)(DR,{}):(0,s.jsx)(BR,{isExpanded:t,outlineRef:n})})})},Zc=q("nav-sidebar-search"),VR=At("NavSidebarSearch",({className:t="",isEnabled:e})=>{const n=(0,X.wA)(),o=ur(),r=(0,ke.A)(e),{lessons:a}=gt(),i=Xt(),l=(0,mt.useLabelsMap)(),u=(0,h.useRef)(),d=Zc({disabled:!e}).mix(t),m=Zc("icon"),p=Zc("input"),f=Zc("close"),g=Zc("close-icon"),v=i?.term,C=e?void 0:"disabled",[x,y]=(0,h.useState)(""),b=bv(),E=(0,h.useCallback)(()=>{n([(0,Is.Se)(!0),(0,Is.ts)(!1),(0,Is.NM)(null)]),y("")},[n]),L=(0,h.useCallback)(S=>{pn(S)&&!Qd()(x)?(S.preventDefault(),y(""),n((0,Is.NM)(null))):pn(S)&&Qd()(x)&&E()},[n,E,x]),T=(0,h.useCallback)(S=>{v!=null&&n((0,Is.NM)(null)),y(S.target.value)},[n,v]),I=(0,h.useCallback)(S=>{S.preventDefault(),xv(x,a,o??{},b,(k,B,M,R)=>n([(0,Is.NM)(k),(0,Is.gA)(B),(0,Is.D2)(M),(0,Is.u)(R)]))},[n,a,o,x,b]);return(0,h.useEffect)(()=>{!r&&e&&setTimeout(()=>{u.current?.focus()},50)},[e,r]),(0,h.useEffect)(()=>{v&&v!==x&&y(v)},[x,v]),(0,s.jsxs)("form",{autoComplete:"off",className:d,"data-testid":"nav-sidebar-search",onSubmit:I,children:[(0,s.jsx)(Bc,{className:m}),(0,s.jsx)("input",{"aria-label":l?.a11ySearchInput,className:p,disabled:C,name:"search",onChange:T,onKeyDown:L,placeholder:l?.search,ref:u,type:"search",value:x}),(0,s.jsx)("button",{"aria-label":l?.a11ySearchClose,className:f,onClick:E,type:"reset",children:(0,s.jsx)(Rd,{className:g})})]})}),_n=q("nav-sidebar-header"),zR=q("nav-sidebar-header-ghost"),UR=()=>(0,X.d4)(t=>t.ui.skipToNavButton?.offsetHeight??0),$R=At("NavSidebarHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:i}=t;return(0,s.jsxs)("div",{className:_n("progress"),"data-testid":"nav-sidebar-progress",children:[(0,s.jsx)(Md,{"aria-hidden":"true",color:r,progress:a,runnerClass:e,trackClass:o}),(0,s.jsx)("div",{className:n,children:i})]})}),WR=At("NavSidebarHeader",({className:t,isCompact:e,isEnabled:n,navRefWidth:o,setIsCompact:r})=>{const a=(0,X.wA)(),i=(0,Pe.Z)(),[l,u]=(0,h.useState)(""),[d,m]=(0,h.useState)({height:0,width:0}),[p,f]=(0,h.useState)(d),[g,v]=(0,h.useState)(d),C=UR(),x=(0,h.useRef)(),y=(0,h.useRef)(),b=(0,h.useRef)(),[E,L]=(0,h.useState)(null),T=gt(),I=hr(),S=(0,mt.useLabelsMap)(),N=gr(),k=Xt(),B=m1(),M=(0,xe.Wz)(),R=Eo(),H=T?.exportSettings?.web
153ExportSettings,P=!Mo.isInstantLink&&(T?.lmsOptions?.disableCoverPage||H?.disableCoverPage),j=T?.allowSearch&&R!=="restricted",O=T?.theme?.coverImageColor,U=T?.navigationStyle,W=(0,h.useMemo)(()=>(0,$t.FH)(U),[U]),z=rb(),re=(0,ke.A)(k),fe=(k?.active||z)??!1,[Ee,Oe]=(0,h.useState)(!0),[Ue,we]=(0,h.useState)(null),Be=_n({compact:e,searching:fe,transition:Ee}).mix(t),de=_n("inner",{compact:e}),se=_n("content",{compact:e,hidden:fe}),Ne=_n("graphic",{image:W}),Me=_n("progress-runner"),$e=_n("progress-text",{compact:e}),Ae=_n("progress-track"),at=_n("search-area",{hidden:!fe}),qe=_n("search-btn",{hidden:fe}),lt=_n("search-icon"),It=_n("title",{compact:e}),Dt=zR({compact:e,searching:fe}),gn=`${M?`%${N}`:`${N}%`} ${S?.lessonComplete}`,As=n&&!fe?void 0:-1,os=n&&!fe?void 0:-1,{alpha:cn,media:Rn}=ea("coverImage"),Xn=(0,h.useMemo)(()=>{let Wt={};return W&&Object.assign(Wt,(0,$t.b9)({alpha:cn,color:O,media:Rn})),fe&&(Wt.height=p.height),Wt},[cn,O,Rn,W,fe,p.height]),ir=(0,h.useMemo)(()=>{let Wt={};return e&&(Wt.bottom=`calc(100% - ${C}px)`,Wt.width=o||0,Wt.transition="width 0.3s",n||(Wt.transition="width 0.3s",Wt.width="0rem")),d.height&&(Wt.height=d.height,Wt.overflow="hidden",e&&(Wt.transition="height 0.3s ease .1s, transform 0.3s ease .1s")),Wt},[e,n,o,d.height,C]);(0,h.useEffect)(()=>{u(e&&B?sv(I,45):I)},[I,e,B]);const xo=fe?void 0:{height:g.height},cr=(0,h.useCallback)(()=>{f(d),a((0,Is.ts)(!0))},[a,d]),$o=(0,h.useCallback)(Wt=>{Wt.preventDefault(),Jo(()=>{i("/")},"lesson-to-cover")},[i]);(0,h.useLayoutEffect)(()=>{we(document.querySelector("[data-nav-scrollable]"))},[]);const{isIntersecting:Pn=!1}=(0,mv.A)(x,{root:Ue,threshold:0})||{},lr=(0,ke.A)(Pn);(0,h.useEffect)(()=>{const Wt=E!=null&&window.innerHeight*.4>=E.offsetHeight;lr&&!Pn&&Wt?r(!0):!lr&&Pn&&r(!1)},[Pn,lr,E,r]);const Vi=(0,h.useCallback)(({target:Wt})=>{const Vs={height:Wt?.scrollHeight??0,width:o??0};m(Vs),f(Vs),e||v(Vs)},[e,o]);Bd(E,Vi),(0,h.useLayoutEffect)(()=>{const Wt=Ue?.scrollTop;(Ue||Wt>0)&&(Ue.scrollTop=0);const Vs={height:E?.scrollHeight??0,width:o??0};m(Vs),f(Vs),v(Vs)},[Ue,o,E]),(0,h.useEffect)(()=>{j&&re?.active&&!k.active&&y?.current?.focus()},[j,k,re]),(0,h.useEffect)(()=>{fe?Oe(!0):e&&Oe(!1)},[fe,e]);const Sa=(0,h.useCallback)(Wt=>{if(!Wt.target.hasAttribute("data-nav-item")||!e)return;const Vs=E.getBoundingClientRect(),bo=Wt.target.getBoundingClientRect();Vs.bottom>bo.top&&(Ue.scrollTop-=Vs.height-bo.top+5)},[Ue,e,E]);return(0,Jt.A)("focusin",Sa,Ue),(0,h.useEffect)(()=>u(I),[I]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Dt,ref:x,style:xo}),(0,s.jsx)("div",{className:Be,"data-testid":"nav-sidebar-header",ref:b,style:ir,children:(0,s.jsxs)("div",{className:de,ref:L,children:[(0,s.jsx)("div",{className:Ne,style:Xn}),j&&(0,s.jsx)("button",{"aria-label":S?.a11ySearchOpen,className:qe,onClick:cr,tabIndex:As,type:"button",children:(0,s.jsx)(Bc,{className:lt})}),(0,s.jsx)("div",{className:at,children:(0,s.jsx)(VR,{isEnabled:n&&fe})}),(0,s.jsxs)("div",{className:se,children:[P?(0,s.jsx)("span",{className:It,"data-testid":"nav-sidebar-title",tabIndex:os,children:l}):(0,s.jsx)(yn,{className:It,"data-testid":"nav-sidebar-title",onClick:$o,tabIndex:os,to:"/",children:l}),(0,s.jsx)($R,{classProgressRunner:Me,classProgressText:$e,classProgressTrack:Ae,percentComplete:N,percentCompleteText:gn})]})]})})]})}),_R=q("nav-sidebar");function Lv({closeNav:t,id:e,isEnabled:n,isSectionLesson:o,last:r}){const{navigationStyle:a}=gt(),{icon:i}=Os(e)??{},l=le(e),u=$n(),d=jc(),m=i0(e),p=e===u,f=(0,h.useMemo)(()=>(0,$t.I8)(a),[a]),g=o?"nav-sidebar__outline-section-item":"nav-sidebar__outline-item",v=oe()(`${g}-link-icon`),C=(0,s.jsx)(yh,{className:v,icon:i}),[x,y]=(0,h.useState)(!1),b=(0,h.useCallback)(()=>y(!0),[]),E=(0,h.useCallback)(()=>y(!1),[]),L=(0,s.jsx)(Ud,{canComplete:m,id:e,isDark:f,isEnabled:n,isTooltipVisible:x,onHideTooltip:E,onShowTooltip:b,scope:ot.by.SIDEBAR}),T=()=>{t&&d&&t()};return(0,s.jsxs)("li",{className:_R("outline-list-item",{last:r}),"data-testid":`nav-outline-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)(zc,{className:g,dark:f,isCurrentLesson:p,isTooltipEnabled:!m,lessonId:e,onHideProgressTooltip:E,onNavigate:T,onShowProgressTooltip:b,showProgressDelay:0,tooltipClassName:`${g}-tooltip`,children:[C,l,!m&&L]}),m&&L]})}const GR=({title:t})=>(0,s.jsx)("span",{className:"nav-sidebar__outline-section-text",children:t});function KR(){const t=Zo(),e=Br();return(n,o)=>{const{currentLocale:r}=o,a=Kt(n),i=t(o.id,n),l=e(i.title,r,n);return{navigationStyle:a.navigationStyle,title:l}}}const QR=st()(wt.wZ,(0,X.Ng)(KR))(GR);var vi=c(26372);const ZR=({closeNav:t,id:e,index:n,isEnabled:o,lessonIds:r})=>{const a=gt(),i=a?.theme,l=a?.themeId,u=i?.navigationSectionsExpanded??!0,d=le(String(e)),[m,p]=vi.useState(u);vi.useEffect(()=>{p(u)},[u]);const[f,g]=vi.useState(),v=vi.useRef(null),C=`sidebar-sublist-${n}`,x=v.current?.clientWidth,y=String(l),b=oe()("nav-sidebar__outline-section-toggle-icon",{"nav-sidebar__outline-section-toggle-icon--collapsed":!m}),E=oe()("nav-sidebar__outline-section-list",{"nav-sidebar__outline-section-list--collapsed":!m}),L=vi.useCallback(()=>{p(T=>!T)},[]);return vi.useLayoutEffect(()=>{const T=setTimeout(()=>{v.current&&g(v.current.scrollHeight)},0);return()=>{clearTimeout(T)}},[r.length,x,y]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":C,"aria-expanded":m,className:"nav-sidebar__outline-section-toggle","data-nav-item":"",onClick:L,tabIndex:o?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-sidebar__outline-section-toggle-text",children:d}),(0,s.jsx)(ef,{className:b})]}),(0,s.jsx)(Vc,{inert:!m,children:(0,s.jsx)("ol",{"aria-hidden":m?void 0:!0,className:E,id:C,ref:v,role:"list",style:{maxHeight:f},children:r.map((T,I)=>(0,s.jsx)(Lv,{closeNav:t,id:T,isEnabled:o&&m,isSectionLesson:!0,last:I===r.length-1},T))})})]})},YR=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>{const[r,...a]=o,i="nav-sidebar__outline-item nav-sidebar__outline-section";return ls()(a)?(0,s.jsx)("li",{className:i,role:"listitem",children:(0,s.jsx)(QR,{id:r})}):(0,s.jsx)("li",{className:i,role:"listitem",children:(0,s.jsx)(ZR,{closeNav:t,id:r,index:e,isEnabled:n,lessonIds:a})})},XR=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>Bl(o)?(0,s.jsx)(YR,{closeNav:t,index:e,isEnabled:n,lessonIds:o}):o.map((a,i)=>(0,s.jsx)(Lv,{closeNav:t,id:a,isEnabled:n,isSectionLesson:!1,last:i===o.length-1},a)),JR=At("NavSidebarOutline",({className:t="",closeNav:e,isEnabled:n,lessonIdGroups:o})=>{const r=(0,ke.A)(n),[a,i]=(0,h.useState)(!n),l=(0,mt.useLabelsMap)(),u=(0,h.useRef)(),d=oe()(t,"nav-sidebar__outline",{"nav-sidebar__outline--hidden":a,"nav-sidebar__outline--safari":Ln.isSafari}),m=oe()("nav-sidebar__outline-list",{"nav-sidebar__outline-list--disabled":!n,"nav-sidebar__outline-list--hidden":a});return(0,h.useEffect)(()=>{let p;return r&&!n?p=setTimeout(()=>{i(!0)},350):!r&&n&&a&&i(!1),()=>{clearTimeout(p)}},[n,a,r]),(0,s.jsx)("section",{"aria-label":l?.a11yRegionNavOverview,className:d,"data-testid":"nav-sidebar-outline",id:"nav-sidebar-outline",children:Kc(o)&&(0,s.jsx)("ol",{className:m,"data-testid":"nav-sidebar-outline-list",ref:u,role:"list",children:o.map((p,f)=>ls()(p)?null:(0,s.jsx)(XR,{closeNav:e,index:f,isEnabled:n,lessonIds:p},f))})})});function qR(t){const e=Kt(t),n=a0(t);return{isLegacyCourse:e.isLegacyCourse,lessonIdGroups:n,navigationStyle:e.navigationStyle}}const eP=(0,X.Ng)(qR)(JR);var tP=c(29590),sP=c(51352);const gi=q("nav-sidebar-result"),Ev=({result:t})=>{const e=(0,mt.useLabelsMap)(),n=t?.icon,o=cs(t?.title),r=t?.results??0,a=r===1?e?.result:e?.results,i=gi("icon"),l=gi("title"),u=gi("count");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(yh,{className:i,icon:n}),(0,s.jsx)("span",{className:l,children:o}),(0,s.jsx)("span",{className:u,children:`${r} ${a}`})]})},nP=({id:t,index:e,isEnabled:n,onSelectResult:o})=>{const r=gt(),a=(0,ce.RQ)("/*"),i=ja(t),l=a?.params?.id===t,u=l?"page":void 0,d=r?.color,m=r?.navigationStyle,p=n?void 0:-1,f={animationDelay:`${e/10}s`},g=Ct(i?.id),v=(0,h.useMemo)(()=>(0,$t.I8)(m),[m]),C=gi(),x=gi("inner",{active:l}),y=gi("link",{dark:v,light:!v});return(0,s.jsx)("li",{className:C,role:"listitem",style:f,children:(0,s.jsx)("div",{className:x,style:{color:d},children:n&&g==null?(0,s.jsx)(yn,{"aria-current":u,className:y,onClick:o,tabIndex:p,to:(0,jt.p1)(t),children:(0,s.jsx)(Ev,{result:i})}):(0,s.jsx)(yf,{className:y,restriction:g,tooltipClassName:"lesson-nav-link-tooltip",children:(0,s.jsx)(Ev,{result:i})})})})},Jd=q("nav-sidebar-results"),oP=[],rP=({closeNav:t,isEnabled:e})=>{const{announcePolite:n}=vt(),o=gt(),r=Xt(),a=(0,mt.useLabelsMap)(),l=(r?.activeLessons??oP).filter(sc),u=r?.term,d=(0,tP.A)(l),m=(0,sP.A)(u),p=a?.noResults??"",f=o?.navigationStyle,g=(0,h.useMemo)(()=>(0,$t.I8)(f),[f]),v=Jd(),C=Jd("message",{dark:g,light:!g}),x=Jd("term"),y=Jd("list"),b=js(Tp),E=h.useCallback(()=>{b&&t()},[t,b]);return(0,h.useEffect)(()=>
153{if(m){const L=l.length===1?a?.result:a?.results,T=d?`${l.length} ${L}`:`${a?.noResults} ${u}`;n?.(T)}},[n,d,m,l,a,u]),(0,s.jsxs)("div",{className:v,"data-testid":"nav-sidebar-results",children:[!d&&m&&(0,s.jsxs)("div",{className:C,children:[p," ",(0,s.jsxs)("span",{className:x,children:['"',u,'"']})]}),d&&m&&(0,s.jsx)("ol",{className:y,"data-testid":"nav-sidebar-results-list",role:"list",children:l.map((L,T)=>(0,s.jsx)(nP,{id:L.id,index:T,isEnabled:e,onSelectResult:E},L.id))})]})},qd=q("nav-sidebar"),Tv="nav-content-sidebar",aP=({isExpanded:t,closeNav:e})=>{const n=gt(),o=Xt(),[r,a]=(0,h.useState)(!1),[i,l]=(0,h.useState)(0),u=(0,h.useRef)(null),d=(0,h.useRef)(null),m=n?.color,p=n?.theme?.coverImageColor,f=n?.isLegacyCourse,g=n?.navigationStyle,v=n?.theme?.accentContrast,C=n?.theme?.progressIndicatorStyle,x=o?.active??!1,y=x||t?void 0:"true";(0,h.useLayoutEffect)(()=>{u&&u?.current&&l(u.current?.scrollWidth)},[r,t,u,x,l]);const b=(0,h.useMemo)(()=>(0,$t.zH)(g),[g]),E=(0,h.useMemo)(()=>(0,$t.I8)(g),[g]),L=(0,h.useMemo)(()=>(0,$t.FH)(g),[g]),T=(0,h.useMemo)(()=>L&&p===w.df.LIGHT,[L,p]),I=!(0,pt.Wn)(m),S=(0,pt.xD)(m),N=C===w.Y2.CIRCULAR_FILL,k=C===w.Y2.INCOMPLETE_COMPLETE,B=v===w.Em.AUTO&&S===w.Em.DARK,M=(0,h.useMemo)(()=>v?v===w.Em.DARK||B:I,[B,I,v]),R=qd("header"),H=qd("body"),P=qd("content"),j=qd({accent:b,"dark-contrast":!L&&M,"light-contrast":!L&&!M,"legacy-pre-themes":f,"image-dark-overlay":L&&!T,"image-light-overlay":L&&T,"progress-circular-fill":N,"progress-incomplete-complete":k,collapsed:!t,dark:E,light:!E,searching:x});return(0,s.jsx)(Vc,{inert:!t,children:(0,s.jsx)(Ts.F,{children:(0,s.jsx)(Ts.eB,{in:t,mountOnEnter:!0,nodeRef:d,timeout:300,unmountOnExit:!0,children:(0,s.jsx)("div",{"aria-hidden":y,className:j,"data-testid":"nav-sidebar",ref:d,children:(0,s.jsxs)("div",{className:P,"data-nav-scrollable":!0,id:Tv,children:[(0,s.jsx)(WR,{className:R,isCompact:r,isEnabled:t,navRefWidth:i,setIsCompact:a}),(0,s.jsxs)("div",{className:H,"data-testid":"nav-sidebar-body",ref:u,children:[(0,s.jsx)(eP,{closeNav:e,isEnabled:t&&!x}),(0,s.jsx)(rP,{closeNav:e,isEnabled:t&&x})]})]})})})})})},pa={x:null,y:null},eu={passive:!0};function Iv({children:t,onSwipeDown:e,onSwipeLeft:n,onSwipeRight:o,onSwipeUp:r,onShouldRecognizeGesture:a=()=>!0,thresholdX:i=100,thresholdY:l=100}){const u=(0,h.useRef)(),[d,m]=(0,h.useState)(pa),[p,f]=(0,h.useState)(pa),g=(0,h.useCallback)(y=>{const b=y.touches?.length??0,E=y.targetTouches[0],L=a?a():!0;b==1&&E&&L?m({x:E.clientX,y:E.clientY}):m(pa)},[a]),v=(0,h.useCallback)(y=>{const b=y.targetTouches[0];b&&f({x:b.clientX,y:b.clientY})},[]),C=(0,h.useCallback)(()=>{m(pa),f(pa)},[]),x=(0,h.useCallback)(y=>{const b=y.touches?.length??0;if(d.x==null||d.y==null||p.x==null||p.y==null||b>0)return;const E=p.x-d.x,L=p.y-d.y;Math.abs(E)>Math.abs(L)?Math.abs(E)>i&&(E<0?n?.():o?.()):Math.abs(L)>l&&(L<0?r?.():e?.()),m(pa),f(pa)},[e,n,o,r,i,l,p,d]);return(0,Jt.A)("touchstart",g,u.current,eu),(0,Jt.A)("touchcancel",C,u.current,eu),(0,Jt.A)("touchmove",v,u.current,eu),(0,Jt.A)("touchend",x,u.current,eu),(0,s.jsx)("div",{ref:u,children:t})}Iv.propTypes={children:ut().oneOfType([ut().arrayOf(ut().element),ut().element]).isRequired,onShouldRecognizeGesture:ut().func,onSwipeDown:ut().func,onSwipeLeft:ut().func,onSwipeRight:ut().func,onSwipeUp:ut().func,thresholdX:ut().number.isRequired,thresholdY:ut().number.isRequired};function tu({isEnabled:t=!0,...e}){return t?(0,s.jsx)(Iv,{...e}):(0,s.jsx)("div",{children:e.children})}tu.propTypes={children:ut().oneOfType([ut().arrayOf(ut().element),ut().element]).isRequired,isEnabled:ut().bool.isRequired};const su={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},iP=[su.TABLET_PORTRAIT,su.TABLET_LANDSCAPE,su.MOBILE_PORTRAIT,su.MOBILE_LANDSCAPE],Yc=t=>iP.includes(t),cP=t=>(0,h.useMemo)(()=>{const e=window.matchMedia("(pointer: coarse)").matches,n=Yc(t);return e||n},[t]),Sv=q("course-navigation"),{COMPACT:nu,OVERLAY:Ah,SIDEBAR:fa}=w.br,lP={[nu]:hv,[fa]:Tv,[Ah]:yv},dP=({hasSearchResults:t,courseNavType:e,openNav:n,closeNav:o})=>{const[r,a]=(0,h.useState)(t);return(0,h.useEffect)(()=>{r&&!t&&!(e===fa)?(o(),a(!1)):r&&e===Ah?n():a(t)},[t,e,n,o,r]),r},uP=t=>{const[e,n]=(0,h.useState)();(0,h.useEffect)(()=>{const{activeNavType:o,beginWithSidebarOpen:r,isNavOpen:a,isTablet:i,openNav:l,closeNav:u}=t;o===fa&&r&&(!e&&i&&a?u():e&&!i&&!a&&l(),n(i))},[e,t])},hP=({beginWithSidebarOpen:t,children:e,closeNav:n,courseNavType:o,isNavOpen:r,isTablet:a,lessonNavType:i,openNav:l,previewType:u,toggleNav:d,hideNav:m})=>{const p=(0,h.useRef)(),f=(0,h.useRef)(),{active:g}=Xt(),v=(0,mt.useLabelsMap)(),C=dP({hasSearchResults:g,courseNavType:o,openNav:l,closeNav:n}),x=(0,h.useMemo)(()=>C||o===nu&&a?fa:o,[o,C,a]);uP({activeNavType:x,beginWithSidebarOpen:t,closeNav:n,openNav:l,isNavOpen:r,isTablet:a}),(0,h.useEffect)(()=>{const I=N=>{f.current?.contains(N.relatedTarget)&&n()},S=()=>{f.current?.removeEventListener("click",n),f.current?.removeEventListener("keypress",n),f.current?.removeEventListener("blur",I,!0)};return x===nu&&r?(f.current?.addEventListener("click",n),f.current?.addEventListener("keypress",n),f.current?.addEventListener("blur",I,!0)):S(),S},[x,r,f,n]);const y=cP(u),b=(0,h.useCallback)(()=>{const I=x===w.br.SIDEBAR;y&&I&&r&&n()},[n,r,y,x]),E=(0,h.useMemo)(()=>lP[x],[x]),L=Sv(x?.toLowerCase(),{"nav-open":r,"search-open":g&&r,"course-nav-type":o?.toLowerCase()}),T=Sv("lessonNav",{type:i?.toLowerCase()});return(0,s.jsx)(sb,{isCourseNavOpen:r,children:(0,s.jsx)("div",{className:L,children:(0,s.jsx)(tu,{isEnabled:x===w.br.SIDEBAR,onSwipeLeft:b,children:(0,s.jsxs)("div",{className:T,children:[(0,s.jsxs)("nav",{"aria-label":v?.a11yRegionNavLesson,children:[(0,s.jsx)(tA,{"aria-controls":E,hideNav:m,isNavOpen:r,toggleNav:d}),x===fa&&(0,s.jsx)(aP,{closeNav:n,isExpanded:r}
153),x===nu&&(0,s.jsx)(cR,{closeNav:n,isExpanded:r,openNav:l,ref:p}),x===Ah&&(0,s.jsx)(lR,{closeNav:n,openNav:l,children:(0,s.jsx)(FR,{isExpanded:r})})]}),(0,s.jsx)("div",{ref:f,children:e})]})})})})},mP=({children:t,isPreviewLesson:e,...n})=>{const{buttonNavigationStyle:o,navigationType:r,lmsOptions:a,...i}=(0,xe.DX)(),l=jc(),u=(0,$t.zh)(i),d=!l,m=i.sidebarMode===w.RE.OPEN,p=u&&r===fa&&m&&d,f=(0,is.c3)(i),g=f&&i?.theme?.blockNavigationType===w.HC.CONTINOUS,[v,C]=(0,h.useState)(p),x=(0,h.useCallback)(()=>{C(!0)},[]),y=(0,h.useCallback)(()=>{C(!1)},[]),b=(0,h.useCallback)(()=>v?y():x(),[v,y,x]);(0,Jt.A)(hf,x),(0,Jt.A)(mf,y);const E=f||e?"fixed-course-exit":void 0,L=g?{marginInlineEnd:"2rem"}:void 0,T=u?r:"";return f||e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Jf,{className:E,lmsOptions:a,style:L}),t]}):(0,s.jsx)(hP,{...n,beginWithSidebarOpen:m,closeNav:y,courseNavType:T,enableExitCourse:a?.enableExitCourse||!0,hideNav:!u,isNavOpen:v,isTablet:l,lessonNavType:o,openNav:x,toggleNav:b,children:t})};var pP=c(66350),fP=c(44192),ou=c.n(fP);const vP=ou()(Mt()("family","continue"),Mt()("variant","continue")),Nv=st()(xh()(vP),Fn()([],"items"));var jv=c(45555),gP=c(65180),CP=c.n(gP);function xP(t){return t==="a"?46.5:7.6}function bP(t){return t==="d"?2:3.2}function yP(t){switch(t){case"a":return 30;case"c":case"d":return 92;default:return 76}}function kv(t){switch(t){case"b":return 95;case"background":return 52;default:return 76}}function Av(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 LP(t){return .3}function ote(t){switch(t){case 3:return"three";case 4:return"four";default:return"two"}}function EP(t){return t==="light"?"#fff":"#000"}function rte(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 ate(t){return t==="b"?[52,76,95]:[52,76,92]}function ite(t){return t==="a"?[30,76,92]:[52,76,92]}function cte(t){return t==="d"?[2,4.8,5.6]:[3.2,4.8,5.6]}function lte(t){return t==="a"?[46.5,78,120]:[7.6,20,32]}function TP(t){switch(t){case 3:return"sm";case 10:return"lg";default:return"med"}}function Rv(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 IP(t){switch(t){case 52:return"sm";case 76:return"med";default:return"lg"}}function Pv(t){switch(t){case 52:return"sm";case 76:return"med";default:return"lg"}}function wv(t){switch(t){case 4:return"med";case 6:return"lg";default:return"sm"}}function Rh(t){switch(t){case 52:return"sm";case 92:return"lg";default:return"med"}}function SP(t){switch(t){case 30:case 52:return"sm";case 92:return"lg";default:return"med"}}function NP(t){switch(t){case 4.8:return"med";case 5.6:return"lg";default:return"sm"}}function jP(t){switch(t){case 20:case 78:return"med";case 32:case 120:return"lg";default:return"sm"}}function kP(t){switch(t){case 1:return"sm";case 3:return"lg";default:return"med"}}function AP(t){switch(t){case 3.2:return"med";case 5.6:return"lg";default:return"sm"}}const ms=({value:t,className:e,allowTabNavigation:n=!0,tagName:o,id:r})=>{const{value:a}=C1((0,et.QQ)(t));return a?(0,s.jsx)(yt,{allowTabNavigation:n,className:e,id:r,tagName:o,value:t}):null};function RP(t,e){const{className:n="",tag:o="div",style:r={},...a}=t,{backgroundColor:i}=nn(),l=Mj(),u=l===ot.S6.DARK?ot.S6.LIGHT:ot.S6.DARK;return i!==""&&Object.assign(r,{"--color-background-contrast":l,"--color-background-contrast-complementary":u,"--color-background-contrast-rgb":(0,di.A)(l)?.slice(0,3)}),(0,s.jsx)(o,{...a,className:n,ref:e,style:r})}const Mv=(0,h.forwardRef)(RP),PP=10,Ov=t=>`${t}rem`,Ph=t=>t!=null?`${t/PP}rem`:void 0,wP=["image full","image text overlay","quote background"];function MP(t){const{family:e,variant:n,backgroundType:o,isOnlyBlockInStep:r,isOnePage:a}=t;if(!a||!r)return!1;if(o===w.xj.IMAGE)return!0;if(!e||!n)return!1;const i=`${e} ${n}`;return wP.some(l=>l===i)}const OP={paddingBottom:"0rem",paddingTop:"0rem"},DP=t=>
153{const{blockSettings:e,familyTheme:n,courseTheme:o,isFullWidthImage:r}=t;if(r)return OP;const a=Ov(Number(Sf(e?.paddingTop,n?.paddingStart,o?.blockPaddingStart,w.S$)));return{paddingBottom:Ov(Number(Sf(e?.paddingBottom,n?.paddingEnd,o?.blockPaddingEnd,w.S$))),paddingTop:a}},BP={},HP=t=>t?{bodyFontSize:Ph(t.bodyFontSize),headingFontSize:Ph(t.headingFontSize),subheadingFontSize:Ph(t.subheadingFontSize)}:BP;function FP(){const t=Hs(),e=(0,xe.DX)(),n=da(),o=(0,is.c3)(e),r=MP({backgroundType:t?.settings?.backgroundType,family:t?.family,isOnePage:o,isOnlyBlockInStep:t?.isOnlyBlockInStep,variant:t?.variant});return DP({blockSettings:t?.settings,courseTheme:e?.theme,familyTheme:n,isFullWidthImage:r})}function VP(){const t=da();return HP(t)}function zP(){const t=FP();return{fontSize:VP(),padding:t}}const UP=Td()(["settings"]),Dv=q("block-wrapper"),$P=q("bg"),WP=(t,e)=>{const{children:n,className:o,defaultBackgroundColor:r="",style:a,tag:i,type:l,...u}=t,d=Hs(),m=Dj(),p=zP(),f=eh(r,m.backgroundColor),g=f||"transparent",v=d?.className,C={...a,...m.backgroundImageCss,"--color-background":f,...p.fontSize.bodyFontSize&&{"--block-text-body-font-size":p.fontSize.bodyFontSize},...p.fontSize.headingFontSize&&{"--block-text-heading-font-size":p.fontSize.headingFontSize},...p.fontSize.subheadingFontSize&&{"--block-text-subheading-font-size":p.fontSize.subheadingFontSize},boxShadow:`0px 1px 0px ${g} `,paddingBottom:p.padding.paddingBottom,paddingTop:p.padding.paddingTop},x=oe()(o,{"bg--legacy-background":m.isLegacyBackground,[`block-${l}`]:!!l}),y=$P({card:m.cardMode,range:m.colorRange,type:m.backgroundTypeLowercase,"overlay-light":m.isOverlayLight,"contrast-light":m.isContrastLight}),b=v?Dv({}).mix(y).mix(v):Dv({}).mix(y),E=[x,b.toString()].join(" ");return(0,s.jsxs)(Mv,{...UP(u),className:E,ref:e,style:C,tag:i,children:[(0,s.jsx)("span",{"aria-label":m.backgroundImageAlt,role:(0,He.Vx)(m.backgroundImageAlt)}),n]})},Tt=(0,h.forwardRef)(WP),In=vs("ImageEagerOrLazy");var _P=c(31818),ute=c(33310);function Bv(t){return(0,s.jsx)(_P.i,{IconUnzoom:KP,IconZoom:GP,...t})}const GP=()=>(0,s.jsx)(tt,{name:"arrows-two-from-center"}),KP=()=>(0,s.jsx)(tt,{name:"arrows-two-to-center"}),Hv=q("block-text");function QP({children:t,item:e,labels:n}){const o="media"in e?e.media:void 0,r=(0,et.QQ)(o)?.image,a=(0,Ft.ME)(r),i=(0,He.Ll)(r?.alt??""),u=Hs()?.settings,d=u?.images,m=u?.zoomOnClick,p=(0,h.useRef)(void 0);let f=(0,s.jsx)(In,{alt:i,"data-l10n-id":(0,Lt.pP)(o),ref:p,src:a});return m&&(f=(0,s.jsx)(Bv,{a11yNameButtonUnzoom:n?.a11yUnzoomImage,a11yNameButtonZoom:n?.a11yZoomImage,children:f})),(0,s.jsxs)("div",{className:Hv("col"),children:[d&&r&&(0,s.jsx)("div",{className:Hv("image"),children:f}),t]})}var ZP=c(24779),YP=c.n(ZP),XP=c(26422),ru=c(34965);const JP=q("portal-tooltip"),_s={LEFT:"LEFT",RIGHT:"RIGHT",ABOVE:"ABOVE",BELOW:"BELOW"},qP=(t,e,n)=>{const o=t.getBoundingClientRect(),r=e.getBoundingClientRect(),a=window.visualViewport;let i=n;(i===_s.ABOVE||i===_s.BELOW)&&(o.bottom-r.height<0&&(i=_s.BELOW),r.height+o.top>a.height&&(i=_s.ABOVE)),(i===_s.LEFT||i===_s.RIGHT)&&(r.left<0&&(i=_s.RIGHT),r.width+o.left>a.width&&(i=_s.LEFT));const l={left:0,right:0,top:0,bottom:0};i===_s.ABOVE&&(l.top=o.top-r.height-25),i===_s.BELOW&&(l.top=o.top+o.height),i===_s.RIGHT&&(l.left=o.left+o.width+70),i===_s.LEFT&&(l.left=o.left-r.width-25),(i===_s.LEFT||i===_s.RIGHT)&&(l.top=o.top-o.height/2),(i===_s.ABOVE||i===_s.BELOW)&&(l.left=o.left+o.width/2);const u=o.left+o.width/2,d=r.width/2+u>a.width,m=r.width/2>u;d?e.classList.add("portal-tooltip__tooltip--offset-right"):m&&e.classList.add("portal-tooltip__tooltip--offset-left"),Object.keys(l).map(p=>l[p]===0?e.style.removeProperty(p):e.style.setProperty(p,`${l[p]}px`)),e.classList.add(`portal-tooltip__tooltip--${i.toLowerCase()}`)};function ew({children:t,className:e,direction:n=_s.ABOVE,elementFocused:o,exitAnimation:r=!0,message:a,style:i,renderInModalWhenPresent:l=!1}){const[u,d]=(0,h.useState)(!1),[m]=(0,h.useState)(!1),p=(0,h.useRef)(null),f=(0,h.useRef)(null),[g,v]=(0,XP.A)((()=>t)),C=(0,h.useCallback)(()=>d(!0),[d]),x=(0,h.useCallback)(()=>d(!1),[d]);return(0,h.useEffect)(()=>(document.addEventListener("scroll",C),document.addEventListener("scrollend",x),()=>{document.removeEventListener("scroll",C),document.removeEventListener("scrollend",x)})),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:p,children:g}),a&&(v||m||o)&&!u&&(0,s.jsx)(Ts.B1,{classNames:"portal-tooltip__tooltip",exit:r,timeout:200,children:(0,s.jsx)(tw,{buttonRef:p,className:e,direction:n,elementFocused:o,hovering:v,message:a,portalRef:f,renderInModalWhenPresent:l,style:i})})]})}function tw({buttonRef:t,className:e,direction:n,elementFocused:o,hovering:r,message:a,portalRef:i,style:l,renderInModalWhenPresent:u=!1}){const d=(0,h.useCallback)(()=>qP(t.current,i.current,n),[t,n,i]),m=(0,h.useCallback)(()=>{i.current&&d()},[i,d]),p=()=>{!r&&!o&&i.current&&(i.current.style=null)};return(0,ru.A)(m),(0,uo.createPortal)((0,s.jsx)("div",{"aria-hidden":!r||!o,className:JP("tooltip").mix(e).toString(),onTransitionEnd:p,ref:i,style:l,children:a}),u?xr({id:"portal",childType:"other"}):document.getElementById("portal"))}const Xc=ew,sw=(0,bd.GF)(),Jc=()=>sw(t=>t.transcriptPanel),nw=({audioPlayerId:t,condensed:e=!1,transcriptMedia:n,onDelete:o,onTranscriptClick:r,onTranscriptClose:a})=>{const{mode:i,disableTranscriptButton:l}=$d(),u=Jc(),[d,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(!1),g=(0,et.QQ)(n)?.audio?.transcript,v=(0,h.useCallback)(()=>m(!0),[]),C=(0,h.useCallback)(()=>m(!1),[]),x=(0,h.useCallback)(()=>f(!0),[]),y=(0,h.useCallback)(()=>f(!1),[]),b=(0,xe.vU)(),E=u?.audioPlayerIdOpen&&u.audioPlayerIdOpen===t,L=l?"Transcripts are only available in lesson previews":E?b?.audioHideTranscript:i==="edit"?"Edit transcript":b?.audioShowTranscript,T=(0,h.useCallback)(()=>{const k=document.getElementById(gh(t));k&&k.focus()},[t]),[I,S]=(0,h.useState)(!1);function N(){l||(E?a?.():(r?.(),S(!0)))}return(0,h.useEffect)(()=>{I&&(S(!1),T())},[I,T]),(0,s.jsxs)(s.Fragment,{children:[o&&(0,s.jsx)(Xc,{elementFocused:d,message:"Remove audio",children:(0,s.jsx)(Et.ArcButton,{hierarchy:"tertiary",icon:(0,s.jsx)(tt,{name:"trash"}),layout:"icon",onBlur:C,onClick:o,onFocus:v,onMouseOut:C,onMouseOver:v,size:e?"sm":"md",type:"button"})}),(i==="edit"||g)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Xc,{elementFocused:p,message:L,renderInModalWhenPresent:i==="readonly",style:{whiteSpace:"nowrap"},children:(0,s.jsx)(Et.ArcButton,{"aria-label":L,disabled:l,hierarchy:"tertiary",icon:(0,s.jsx)(tt,{name:"file-audio"}),id:i==="readonly"?Yf(t):void 0,layout:"icon",onBlur:y,onClick:N,onFocus:x,onMouseOut:y,onMouseOver:x,size:e?"sm":"md",style:l?{opacity:.5,pointerEvents:"auto"}:void 0,type:"button"})}),E?(0,s.jsx)("div",{onFocus:T,tabIndex:0}):null]})]})};var ow=c(61962);const Fv="change";class rw extends ow.EventEmitter{_isMuted;_isPlaying;_playerId;constructor(e){super(),this.setMaxListeners(e)}get isPlaying(){return this._isPlaying}
153set isPlaying(e){this._isPlaying=e,this.emit("change")}set playerId(e){this._playerId=e}get playerId(){return this._playerId}pause(){this.isPlaying=!1}addChangeListener(e){this.on(Fv,e)}removeChangeListener(e){this.removeListener(Fv,e)}}const ct=new rw(1/0);var aw=c(89239),qc=c.n(aw);const Ci="group",iw="tablist",cw="tabpanel",lw="tab",mte="radio",el=({caption:t,editable:e,id:n,isOverlayType:o,getL10nValue:r})=>{const a=!!(!o&&!e&&r(t));return{figcaptionId:a?`figcaption-${n}`:void 0,isFigure:a,role:a?"figure":void 0,tagName:a?"figure":"div"}},dw=[.5,.75,1,1.25,1.5,1.75,2].toReversed().map(t=>({value:t,label:`${t}x`})),au=.05,Vv=q("audio-player-icon"),va=({x:t,width:e,height:n,y:o,pulseBaseHeight:r,pulseBaseY:a,pulseHeight:i,pulseY:l,delay:u="0s"})=>(0,s.jsx)("rect",{className:Vv("bar"),height:n,rx:1,style:{"--base-height":`${n/10}rem`,"--base-y":`${o/10}rem`,"--pulse-base-height":r&&`${r/10}rem`,"--pulse-base-y":a&&`${a/10}rem`,"--pulse-height":`${i/10}rem`,"--pulse-y":`${l/10}rem`,"--delay":u},width:e,x:t,y:o}),zv=({animating:t})=>(0,s.jsx)("span",{className:Vv({animating:t}),children:(0,s.jsxs)("svg",{"aria-hidden":"true",height:"16",viewBox:"0 0 20 16",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)(va,{delay:"0s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:0,y:7}),(0,s.jsx)(va,{delay:"0.1s",height:4,pulseBaseHeight:3,pulseBaseY:6.5,pulseHeight:8,pulseY:4,width:2,x:3,y:6}),(0,s.jsx)(va,{delay:"0.2s",height:10,pulseBaseHeight:8,pulseBaseY:4,pulseHeight:12,pulseY:2,width:2,x:6,y:3}),(0,s.jsx)(va,{delay:"0.3s",height:16,pulseBaseHeight:12,pulseBaseY:2,pulseHeight:16,pulseY:0,width:2,x:9,y:0}),(0,s.jsx)(va,{delay:"0.4s",height:8,pulseBaseHeight:6,pulseBaseY:5,pulseHeight:12,pulseY:2,width:2,x:12,y:4}),(0,s.jsx)(va,{delay:"0.5s",height:11,pulseBaseHeight:9,pulseBaseY:3.5,pulseHeight:15,pulseY:.5,width:2,x:15,y:2.5}),(0,s.jsx)(va,{delay:"0.6s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:18,y:7})]})});var uw;function Uv(){return document.getElementById("page-wrap")}const vte=t=>{const e=t.value.length;t.focus(),t.setSelectionRange(e,e)},gte=t=>{const e=uw(["current","editor"],t);if(!e)return null;const n=e.value.length;return e.focus(),e.setSelectionRange(n,n),t};function wh(t,e){const n=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;if(e==="start")return n.top>=0;if(e==="center"){if(n.height>o)return n.top<=0&&n.bottom>=o;const a=o/2,i=n.top+n.height/2,l=o*.25;return Math.abs(a-i)<l}return e==="end"?n.bottom<=o:n.top>=0&&n.left>=0&&n.bottom<=o&&n.right<=r}function $v({anchor:t,popover:e,positionX:n}){if(!t||!e)return null;const o=t.getBoundingClientRect(),a=window.getComputedStyle(t).direction==="rtl",i=window.getComputedStyle(e),l=parseFloat(i.marginTop),u=e.offsetWidth,d=window.visualViewport??{width:window.innerWidth,height:window.innerHeight},m=o.top+o.height+e.offsetHeight+l>d.height?o.top-(l*2+e.offsetHeight):o.top+o.height;let p;if(n==="center"){const f=o.left+o.width/2;p=a?d.width-f-u/2:f-u/2}else n==="right"?p=a?d.width-o.left-u:o.right-u:p=Math.min(a?d.width-o.right:o.left,d.width-u);return{left:p,top:m}}var hw,Vt=c(26372);const iu=Vt.createContext(null);function mw({children:t,isDisabled:e,onClose:n,onOpen:o,onSelect:r,positionX:a="left"}){const[i,l]=Vt.useState(!1),u=(0,ke.A)(i),[d,m]=Vt.useState(null),p=Vt.useRef(null),f=Vt.useRef(null),g=Vt.useRef(null),x=`${`menu-${Vt.useId()}`}-content`,y=Vt.useCallback(({direction:P,predFn:j=()=>!0})=>{if(!g.current)return;const O=Array.from(g.current.querySelectorAll('[role="menuitem"]')),U=O.length,W=O.findIndex(Ee=>Ee===document.activeElement);let z,re,fe;switch(P){case"start":z=0,re=1;break;case"end":z=U-1,re=-1;break;case"backwards":z=W-1,re=-1;break;case"forwards":z=W+1,re=1;break;default:z=W+1,re=1}for(let Ee=0;Ee<=U;Ee++){z>=U?z=0:z<0&&(z=U-1);const Oe=O[z];if(Oe!=null&&vw(Oe)&&j(Oe)){fe=Oe;break}else z=z+re}fe&&fe.focus()},[]),b=Vt.useCallback(()=>{y({direction:"start"})},[y]),E=Vt.useCallback(()=>{y({direction:"end"})},[y]),L=Vt.useCallback(()=>{y({direction:"backwards"})},[y]),T=Vt.useCallback(()=>{y({direction:"forwards"})},[y]),I=Vt.useCallback(P=>{y({direction:"forwards",predFn:j=>gw(j,P)})},[y]),S=Vt.useCallback(()=>{i?l(!1):(l(!0),setTimeout(T,25))},[T,i]),N=Vt.useCallback(()=>{f.current?.focus(),l(!1)},[]),k=Vt.useCallback(()=>
153{l(!0),setTimeout(T,25)},[T]),B=Vt.useCallback(()=>{l(!0),setTimeout(L,25)},[L]),M=Vt.useCallback(()=>{const{left:P,top:j}=$v({anchor:f.current,popover:g.current,positionX:a});m({transform:`translate3d(${P}px, ${j}px, 0)`,visibility:"visible"})},[a]),R=Vt.useCallback(P=>{const j=P.currentTarget;Wv(j)||(r?.(j.getAttribute("data-name")),N())},[N,r]),H=Vt.useCallback(P=>{const j=P.key;if(P.altKey||P.ctrlKey||P.metaKey)return;let O=!1;if(P.shiftKey)j==="Tab"?L():j.trim()!==""&&I(j),O=!0;else switch(j){case" ":case"Enter":R(P),O=!0;break;case"Esc":case"Escape":N(),O=!0;break;case"ArrowUp":L(),O=!0;break;case"Tab":case"ArrowDown":T(),O=!0;break;case"Home":case"PageUp":b(),O=!0;break;case"End":case"PageDown":E(),O=!0;break;default:I(j);break}O&&(P.stopPropagation(),P.preventDefault())},[N,R,I,b,E,T,L]);return Vt.useEffect(()=>{const P=j=>{i&&p.current!=null&&g.current!=null&&!p.current.contains(j.target)&&!g.current.contains(j.target)&&l(!1)};return i?document.addEventListener("click",P):document.removeEventListener("click",P),()=>{document.removeEventListener("click",P)}},[i]),Vt.useEffect(()=>(i?window.addEventListener("resize",M):window.removeEventListener("resize",M),()=>{window.removeEventListener("resize",M)}),[M,i]),Vt.useEffect(()=>{const P=Sd(p.current);for(const j of P)i?j?.addEventListener("scroll",M,{passive:!0}):j?.removeEventListener("scroll",M);return()=>{for(const j of P)j?.removeEventListener("scroll",M)}},[M,i]),Vt.useEffect(()=>{i?M():m(null)},[M,i]),Vt.useEffect(()=>{if(u&&!i)n?.();else if(!u&&i&&(o?.(),p.current)){const P=new CustomEvent("menuopen",{bubbles:!0,detail:{target:p.current}});p.current.dispatchEvent(P)}},[u,i,n,o]),Vt.useEffect(()=>{const P=j=>{j.detail.target!==p.current&&l(!1)};return document.addEventListener("menuopen",P),()=>{document.removeEventListener("menuopen",P)}},[]),(0,s.jsx)(iu.Provider,{value:{htmlIdContent:x,isExpanded:i,onCloseFocusTrigger:N,onExpandFocusMenuItemNext:k,onExpandFocusMenuItemPrevious:B,onFocusMenuItemByPrefix:I,onFocusMenuItemFirst:b,onFocusMenuItemLast:E,onFocusMenuItemNext:T,onFocusMenuItemPrevious:L,onItemClick:R,onItemKeyDown:H,onTriggerClick:S,refContent:g,refTrigger:f,styleContent:d},children:(0,s.jsx)("div",{"aria-owns":x,inert:e?!0:void 0,ref:p,children:t})})}function pw({as:t,children:e,label:n,labelledBy:o,...r}){const{htmlIdContent:a,isExpanded:i,onTriggerClick:l,onCloseFocusTrigger:u,onExpandFocusMenuItemNext:d,onExpandFocusMenuItemPrevious:m,refTrigger:p}=Vt.useContext(iu),f=Vt.useCallback(v=>{let C=!1;switch(v.key){case" ":case"Enter":case"ArrowDown":case"Down":d(),C=!0;break;case"Esc":case"Escape":u(),C=!0;break;case"Up":case"ArrowUp":m(),C=!0;break;default:break}C&&(v.stopPropagation(),v.preventDefault())},[u,d,m]),g=t??"button";return(0,s.jsx)(g,{...r,"aria-controls":a,"aria-expanded":i,"aria-haspopup":"menu","aria-label":n,"aria-labelledby":o,"data-menu-trigger":"",onClick:l,onKeyDown:f,ref:p,type:"button",children:e})}function fw({children:t,className:e}){const{htmlIdContent:n,isExpanded:o,refContent:r,styleContent:a}=Vt.useContext(iu);return o?uo.createPortal((0,s.jsx)("div",{className:e,"data-menu-content":"",hidden:o?void 0:!0,id:n,ref:r,role:"menu",style:a,children:t}),xr()):null}function cu({children:t,className:e,isDisabled:n,name:o,tooltipId:r}){const{onItemClick:a,onItemKeyDown:i}=Vt.useContext(iu),l=Vt.useCallback(u=>{u.currentTarget?.focus()},[]);return(0,s.jsx)("button",{"aria-describedby":r,"aria-disabled":n,className:e,"data-menu-item":"","data-name":o,onClick:n?void 0:a,onKeyDown:i,onMouseOver:l,role:"menuitem",tabIndex:n?-1:void 0,type:"button",children:t})}function Cte({children:t}){return hw("span",{"data-menu-item-icon":"",children:t})}function Wv(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function vw(t){return t!=null&&t.tagName==="BUTTON"&&!Wv(t)}function gw(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const tl=q("audio-player-actions-condensed"),Sr=Object.freeze({DeleteAudio:"delete-audio",EditAudio:"edit-audio",EditTranscript:"edit-transcript",RevertToSource:"revert-audio-to-source"}),Cw=({audioPlayerId:t,condensed:e=!1,transcriptMedia:n,onTranscriptClick:o,onTranscriptClose:r,item:a,side:i,refs:l})=>{const{mode:u,isVariantLocale:d,handleOpenMediaModal:m,handleDelete:p,handleRevertToSource:f}=$d(),g=Jc(),v=Hs(),C=(0,et.gY)(),x=a&&"media"in a&&a.media?C(a.media):void 0,y=x&&"audio"in x?x.audio.aiAudioSettings:void 0,b=(0,et.D_)(),E=mh(),L=b?E(b):"",[T,I]=(0,h.useState)(!1),S=(0,h.useCallback)(()=>I(!0),[]),N=(0,h.useCallback)(()=>I(!1),[]),k=y?.l10nAutoGenStatus==="reverted-to-source",B=d&&"audio"in x&&x.audio?.sourceType==="ai-audio"&&y?.l10nAutoGenStatus!=="unsupported-locale",M=(0,xe.vU)(),R=g?.audioPlayerIdOpen===t,H=R?M?.audioHideTranscript:u==="edit"?"Edit transcript":M?.audioShowTranscript;function P(O){switch(O){case Sr.DeleteAudio:p(v.id,a,l);break;case Sr.EditTranscript:R?r?.():o?.();break;case Sr.EditAudio:m(v,a,l,i,{triggeredFrom:"block_audio_button"});break;case Sr.RevertToSource:f(v.id,a);break}}const j=!!C(n)?.audio?.transcript;return m||p||j?(0,s.jsx)(Xc,{elementFocused:T,message:"Options",children:(0,s.jsxs)(mw,{onSelect:P,positionX:"left",children:[(0,s.jsx)(pw,{as:Et.ArcButton,hierarchy:"tertiary",icon:"fa-regular fa-ellipsis",label:"Options",layout:"icon",onBlur:N,onFocus:S,onMouseEnter:S,onMouseLeave:N,shape:"square",size:e?"sm":"md"}),(0,s.jsxs)(fw,{className:tl("content"),children:[m?(0,s.jsx)(cu,{className:tl("menu-item"),name:Sr.EditAudio,children:"Edit audio"}):null,u==="edit"||j?(0,s.jsx)(cu,{className:tl("menu-item"),name:Sr.EditTranscript,children:H}):null,p&&v?.variant!=="audio"?(0,s.jsx)(cu,{className:tl("menu-item"),name:Sr.DeleteAudio,children:"Remove audio"}):null,f&&B?(0,s.jsx)(Et.ArcTooltip,{id:"revert-to-source-tooltip",isEnabled:k,text:"Audio currently synced to source",children:(0,s.jsxs)(cu,{className:tl("menu-item"),isDisabled:k,name:Sr.RevertToSource,tooltipId:"revert-to-source-tooltip",children:["Revert to source audio (",L,")"]})}):null]})]})}):null};var xw,bw,zt=c(26372);const sl=zt.createContext(null);function yw({children:t,className:e,isDisabled:n,onClose:o,onItemActiveChange:r,onOpen:a,onSelect:i,portalArgs:l,positionX:u="left",value:d}){const[m,p]=zt.useState(null),f=(0,ke.A)(m),[g,v]=zt.useState(!1),C=(0,ke.A)(g),[x,y]=zt.useState(null),b=zt.useRef(null),E=zt.useRef(null),L=zt.useRef(null),I=`select-${zt.useId()}`,S=`${I}
153-content`,N=m?.id,k=zt.useCallback(j=>{const O=j.currentTarget;_v(O)||(v(!1),p(O),i(O.getAttribute("data-value")),j.stopPropagation())},[i]),B=zt.useCallback(j=>{p(j)},[]),M=zt.useCallback(()=>{v(j=>!j)},[]),R=zt.useCallback(()=>{const{left:j,top:O}=$v({anchor:E.current,popover:L.current,positionX:u}),z=window.getComputedStyle(E.current).direction==="rtl"?-j:j;y({transform:`translate3d(${z}px, ${O}px, 0)`,visibility:"visible",width:`${E.current?.offsetWidth}px`})},[u]),H=zt.useCallback(j=>{const O=Array.from(L.current?.querySelectorAll("[data-select-item]")??[]),U=O.length,W=O.findIndex(fe=>fe.getAttribute("data-select-item")==="current");let z,re=W+1;for(let fe=0;fe<U;fe++){re>=U&&(re=0);const Ee=O[fe];if(Ee!=null&&!_v(Ee)&&Iw(Ee,j)){z=fe;break}else re=U-1}z&&(p(O[z]),O[z]?.scrollIntoView({block:"center"}))},[]),P=zt.useCallback(j=>{const O=j.key;if(j.ctrlKey||j.metaKey)return;let U=!1;const W=Array.from(L.current?.querySelectorAll("[data-select-item]")??[]),z=W.findIndex(re=>re.getAttribute("data-select-item")==="current");if(g)if(O.length===1&&O!==" "&&!j.altKey&&!j.ctrlKey&&!j.metaKey)H(O);else switch(O){case" ":case"Enter":v(!1),W[z]!=null&&i(W[z].getAttribute("data-value")),U=!0;break;case"Esc":case"Escape":v(!1),p(W.find(re=>re.getAttribute("aria-selected")==="true")),U=!0;break;case"ArrowUp":j.altKey?(v(!1),W[z]!=null&&i(W[z].getAttribute("data-value")??"")):z>0&&(p(W[z-1]),W[z-1].scrollIntoView({block:"center"})),U=!0;break;case"ArrowDown":z<W.length-1&&(p(W[z+1]),W[z+1].scrollIntoView({block:"center"})),U=!0;break;case"Home":p(W[0]),W[0]?.scrollIntoView({block:"center"}),U=!0;break;case"End":p(W[W.length-1]),W[W.length-1]?.scrollIntoView({block:"center"}),U=!0;break;case"PageUp":p(W[0]),W[0]?.scrollIntoView({block:"center"}),U=!0;break;case"PageDown":p(W[W.length-1]),W[W.length-1]?.scrollIntoView({block:"center"}),U=!0;break;case"Tab":v(!1),W[z]!=null&&i(W[z].getAttribute("data-value"));break}else if(O.length===1&&O!==" "&&!j.altKey&&!j.ctrlKey&&!j.metaKey)v(!0),H(O);else switch(O){case" ":case"Enter":v(!0),U=!0;break;case"ArrowUp":v(!0),p(W[0]),U=!0;break;case"ArrowDown":v(!0),U=!0;break;case"Home":v(!0),p(W[0]),U=!0;break;case"End":v(!0),p(W[W.length-1]),U=!0;break}U&&(j.stopPropagation(),j.preventDefault())},[H,g,i]);return zt.useEffect(()=>{const j=L.current?.querySelector('[data-select-item][aria-selected="true"]');p(j)},[]),zt.useEffect(()=>{const j=L.current?.querySelector(`[data-select-item][data-value="${d}"]`);p(j)},[d]),zt.useEffect(()=>{const j=O=>{g&&b.current!=null&&L.current!=null&&!b.current.contains(O.target)&&!L.current.contains(O.target)&&v(!1)};return g?document.addEventListener("click",j):document.removeEventListener("click",j),()=>{document.removeEventListener("click",j)}},[g]),zt.useEffect(()=>(g?window.addEventListener("resize",R):window.removeEventListener("resize",R),()=>{window.removeEventListener("resize",R)}),[R,g]),zt.useEffect(()=>{const j=Sd(b.current);for(const O of j)g?O?.addEventListener("scroll",R,{passive:!0}):O?.removeEventListener("scroll",R);return()=>{for(const O of j)O?.removeEventListener("scroll",R)}},[R,g]),zt.useEffect(()=>{g?R():y(null)},[R,g]),zt.useEffect(()=>{g&&f!=null&&f!==m&&r?.({value:m.getAttribute("data-value")})},[g,f,m,r]),zt.useEffect(()=>{if(C&&!g)o?.();else if(!C&&g&&(a?.(),b.current)){const j=new CustomEvent("comboboxopen",{bubbles:!0,detail:{target:b.current}});b.current.dispatchEvent(j)}},[C,g,o,a]),zt.useEffect(()=>{const j=O=>{O.detail.target!==b.current&&v(!1)};return document.addEventListener("comboboxopen",j),()=>{document.removeEventListener("comboboxopen",j)}},[]),(0,s.jsx)(sl.Provider,{value:{activeEl:m,htmlIdActiveDescendant:N,htmlIdBase:I,htmlIdContent:S,isExpanded:g,onItemClick:k,onItemHover:B,onTriggerClick:M,onTriggerKeyDown:P,portalArgs:l,refContent:L,refTrigger:E,selectedValue:d,styleContent:x},children:(0,s.jsx)("div",{"aria-owns":S,className:e,inert:n?!0:void 0,ref:b,children:t})})}function Lw({children:t,className:e,labelledBy:n,as:o,...r}){const{htmlIdActiveDescendant:a,htmlIdContent:i,isExpanded:l,onTriggerClick:u,onTriggerKeyDown:d,refTrigger:m}
153=zt.useContext(sl),p=!!o,f=o??"button";return(0,s.jsxs)(f,{"aria-activedescendant":a,"aria-controls":i,"aria-expanded":l,"aria-haspopup":"listbox","aria-labelledby":n,className:e,"data-select-trigger":p?void 0:"",onClick:u,onKeyDown:d,ref:m,role:"combobox",type:"button",...r,children:[(0,s.jsx)("span",{"data-select-trigger-text":"",children:t}),(0,s.jsx)("span",{"data-select-trigger-icon":"",children:l?(0,s.jsx)(tt,{name:"chevron-up"}):(0,s.jsx)(tt,{name:"chevron-down"})})]})}function Ew({children:t,className:e,label:n,labelledBy:o,style:r={}}){const{htmlIdContent:a,isExpanded:i,portalArgs:l,refContent:u,styleContent:d}=zt.useContext(sl);return uo.createPortal((0,s.jsx)("div",{"aria-label":n,"aria-labelledby":o,className:e,"data-select-content":"",hidden:i?void 0:!0,id:a,ref:u,role:"listbox",style:{...d,...r},children:t}),xr(l))}function bte({children:t,className:e,labelText:n}){const{htmlIdBase:o}=zt.useContext(sl),r=zt.useId(),a=`${o}-group-label-${r}`;return xw("div",{"aria-labelledby":a,className:e,"data-select-group":"",role:"group",children:[bw("div",{"data-select-group-label":"",id:a,role:"presentation",children:n}),t]})}function Tw({children:t,className:e,labelledBy:n,isDisabled:o,value:r}){const{activeEl:a,htmlIdBase:i,onItemClick:l,onItemHover:u,selectedValue:d}=zt.useContext(sl),m=zt.useRef(null),p=zt.useId(),f=m.current===a,g=r===d,v=`${i}-option-${p}`,C=zt.useCallback(()=>{u(m.current)},[u]);return(0,s.jsxs)("div",{"aria-disabled":o,"aria-labelledby":n,"aria-selected":g,className:e,"data-select-item":f?"current":"","data-value":r,id:v,onClick:o?void 0:l,onMouseEnter:C,ref:m,role:"option",children:[t,g&&(0,s.jsx)("span",{"data-select-item-selected":"",children:(0,s.jsx)(tt,{name:"check"})})]})}function _v(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function Iw(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const Mh=q("playback-speed-menu"),Sw=({onChange:t,condensed:e=!1,speed:n})=>{const o=(0,xe.vU)(),[r,a]=(0,h.useState)(!1),i=(0,h.useCallback)(()=>a(!0),[]),l=(0,h.useCallback)(()=>a(!1),[]);return(0,s.jsx)(Xc,{elementFocused:r,message:o?.audioPlaySpeed,children:(0,s.jsxs)(yw,{className:Mh(),onOpen:l,onSelect:u=>t(parseFloat(u)),portalArgs:{id:"portal",childType:"other"},value:String(n),children:[(0,s.jsxs)(Lw,{"aria-label":o?.audioPlaySpeed,as:Et.ArcButton,className:Mh("trigger"),hierarchy:"tertiary",labelledBy:void 0,layout:"hug",onBlur:l,onFocus:i,onMouseEnter:i,onMouseLeave:l,shape:"square",size:e?"sm":"md",children:[n,"x"]}),(0,s.jsx)(Ew,{className:Mh("content"),label:o?.audioPlaySpeed,children:dw.map((u,d)=>(0,s.jsx)(Tw,{value:String(u.value??""),children:u.label},d))})]})})};function Nw(t=!1,e=200){const n=(0,h.useRef)(void 0),[o,r]=(0,h.useState)(t),a=(0,h.useCallback)(()=>{n.current&&clearTimeout(n.current),r(!0)},[]),i=(0,h.useCallback)(l=>{n.current&&clearTimeout(n.current),l?r(!1):n.current=setTimeout(()=>{r(!1)},e)},[e]);return(0,h.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]),{isActive:o,setActive:a,setInactive:i}}const Gv=q("audio-player-volume"),jw=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];function kw(t,e){return e||t<=0?"volumeXmark":t<=1/3?"volumeLow":t<=2/3?"volume":"volumeHigh"}function Aw({condensed:t=!1,muted:e,onChange:n,onMute:o,volume:r}){const a=(0,xe.vU)(),i=(0,h.useRef)(null),l=(0,h.useRef)(null),u=(0,h.useRef)(null),{isActive:d,setActive:m,setInactive:p}=Nw(!1,200),f=e?0:r;function g(C){if(jw.includes(C.code)){const b=window.getComputedStyle(C.currentTarget).direction==="rtl"?"ArrowLeft":"ArrowRight",E=C.code==="ArrowUp"||C.code===b?Math.min(f+au,1):Math.max(f-au,0);n(E),C.stopPropagation(),C.preventDefault()}else C.code==="KeyM"&&(o(),C.stopPropagation(),C.preventDefault())}(0,h.useEffect)(()=>{u.current.style.setProperty("--slider-volume",`${f*100}%`)},[f]);const v=`${Math.round(f*100)}%`;return(0,s.jsxs)("div",{className:Gv(),onKeyDown:g,onMouseEnter:m,onMouseLeave:()=>p(!1),ref:i,children:[(0,s.jsx)(Et.ArcButton,{"aria-label":f<=0?a?.a11yMediaUnmute:a?.a11yMediaMute,color:"primary",hierarchy:"tertiary",icon:(0,s.jsx)(tt,{name:kw(f,e)}),layout:"icon",onClick:o,ref:l,size:t?"sm":"md",type:"button"}),(0,s.jsx)("input",{"aria-label":a?.a11yMediaVolume,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":f*100,"aria-valuetext":v,className:Gv("slider").mix(d?"":"visually-hidden"),max:100,min:0,onChange:C=>n(C.currentTarget.valueAsNumber/100),ref:u,type:"range",value:f*100})]})}const Sn=q("audio-player"),lu=({currentTime:t,duration:e})=>Math.round(t/e*100)||0,Kv=t=>{if(!t)return{hours:0,minutes:0,seconds:0};const e=Math.floor(t/3600),n=Math.floor(t%3600/60),o=t%60;return{hours:e,minutes:n,seconds:o}},Qv=t=>{const{minutes:e,seconds:n}=Kv(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(n)),o},Rw=t=>{const{hours:e,minutes:n,seconds:o}=Kv(t);function r(l,u,d){return(new Array(d+1).join(u)+l).slice(-d)}const a=r(n,"0",2),i=r(o,"0",2);return e>0?`${e}:${a}:${i}`:`${n}:${i}`};class xi extends h.Component{audio;play;playerControls;seekSlider;onDelete;constructor(e){super(e),this.state={condensed:!1,currentTime:0,playheadPositionSaveThrottle:0,playbackSpeed:1,playerExpanded:!0,shouldLoadPlayheadPosition:!0,volume:1,muted:!1,maxTime:e.audioVideoPlayhead||0,sliderPercent: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,onEnd:()=>{},onLoad:()=>{},onPause:()=>{},onPlay:()=>{},onSeek:()=>{},shouldPause:!1,transcriptMedia:null};static timeMs(e){return Math.round(e*1e3)}keySeek(e){const{canRestrictSeek:n}=this.props,{currentTime:o,duration:r}=this.audio,{maxTime:a}=this.state;let i=o+e;n&&i>a&&(i=a);const l=Math.max(0,r-.01);this.audio.currentTime=e<0?Math.max(i,0):Math.min(i,l)}changeVolume=e=>{this.audio.volume=Math.round(e*100)/100,this.audio.muted=!1};muteToggle=()=>{this.audio.volume<=0?(this.audio.volume=1,this.audio.muted=!1):this.audio.muted=!this.audio.muted};changeVolumeDelta=e=>{const n=e<0?Math.max(this.audio.volume+e,0):Math.min(this.audio.volume+e,1);this.changeVolume(n)};componentDidMount(){ct.addChangeListener(this.handleChange)}componentDidUpdate(e,n){const r=this.props.activeIndex!=null&&this.props.itemIndex!=null&&e.activeIndex!==this.props.activeIndex&&this.props.activeIndex!==this.props.itemIndex;(!e.shouldPause&&this.props.shouldPause||r)&&(this.audio.pause(),ct.isPlaying&&ct.playerId===this.props.id&&ct.pause()),n.playbackSpeed!==this.state.playbackSpeed&&(this.audio.playbackRate=this.state.playbackSpeed)}componentWillUnmount(){const{recordMediaPlayheadPosition:e,id:n}=this.props;ct.playerId===n&&ct.pause(),ct.removeChangeListener(this.handleChange),e&&e(lu(this.audio))}handleClickInsideAudioPlayer=e=>{e.stopPropagation(),e.preventDefault()};handleChange(){ct.playerId===this.props.id?this.audio&&(ct.isPlaying&&this.audio.paused?this.audio.play():!ct.isPlaying&&!this.audio.paused&&this.audio.pause(),this.forceUpdate()):ct.isPlaying&&(this.audio.pause(),this.forceUpdate())}containerResizeRef=e=>{const n=new ResizeObserver(([o])=>{if(!o)return;const r=getComputedStyle(document.documentElement),a=parseFloat(r.fontSize)/10;this.setState({condensed:o.contentRect.width<300*a})});return this.setState({condensed:e.getBoundingClientRect().width<256}),n.observe(e),()=>{n.disconnect()}};render(){const{allowTabNavigation:e,id:n,isEditor:o,isOverlayAudio:r,labels:a,mediaSrc:i,mode:l,onDelete:u,onTranscriptClick:d,onTranscriptClose:m,transcriptMedia:p,item:f,side:g,refs:v,transcriptAudioPlayerIdOpen:C}=this.props,x=ct.isPlaying&&ct.playerId===n,{currentTime:y,playerExpanded:b}=this.state,E=this.audio?.duration??0,L=Number.isNaN(E)?0:E,T=Math.round(L-y),I=Rw(T),S=Qv(T),N=Qv(y),k=e?0:-1,B=!o,{a11yGroupAudioPlayer:M,a11yMediaPlay:R,a11yMediaPause:H,a11yMediaSeek:P}=a??{},j=Sn({overlay:r,collapsed:r&&!b,expanded:!r||b,"volume-slider-below":this.props.volumeSliderPosition==="below"}),O=o||l==="edit"?"Collapse audio player":a?.audioCollapsePlayer,U=o||l==="edit"?"Expand audio player":a?.audioExpandPlayer,W=b?O:U,z=fo({refs:v}),fe=C===z?gh(C):void 0;return(0,s.jsx)("div",{className:Sn("container"),onClick:this.handleClickInsideAudioPlayer,ref:this.containerResizeRef,children:(0,s.jsxs)("div",{className:j,id:n,children:[B&&(0,s.jsx)("div",{className:Sn("waveform"),children:r?(0,s.jsx)(Xc,{message:W,children:(0,s.jsx)("button",{"aria-label":W,className:Sn("waveform-icon"),onClick:this.onTogglePlayer,type:"button",children:(0,s.jsx)(zv,{animating:x})})}):(0,s.jsx)("div",{className:Sn("waveform-icon",{disabled:!0}),children:(0,s.jsx)(zv,{animating:x})})}),(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":M,"aria-owns":fe,className:Sn("housing",{"with-border":B}),inert:!this.state.playerExpanded,onKeyDown:this.onKeyDown.bind(this),role:Ci,tabIndex:k,children:[(0,s.jsxs)("div",{className:Sn("play-timer-housing"),children:[(0,s.jsx)(Et.ArcButton,{"aria-label":x?H:R,className:Sn("play"),hierarchy:"tertiary",icon:(0,s.jsx)(tt,{className:Sn("icon"),name:x?"pause-solid":"play-solid"}),layout:"icon",onClick:this.onPlayClick,ref:Ee=>{this.play=Ee},shape:"square",size:this.state.condensed?"sm":"md",tabIndex:k,type:"button"}),(0,s.jsx)("input",{"aria-label":P,"aria-valuemax":L,"aria-valuemin":0,"aria-valuenow":y,"aria-valuetext":N,className:Sn("seek-slider"),max:L,min:0,onChange:this.onSeekSliderChange.bind(this),ref:Ee=>{this.seekSlider=Ee}
153,step:.01,style:{"--seek-slider-percent":`${this.state.sliderPercent}%`},type:"range",value:y}),(0,s.jsx)("div",{"aria-label":S,className:Sn("timer").mix(this.state.condensed?"visually-hidden-always":""),role:"timer",children:I})]}),(0,s.jsxs)("div",{className:Sn("player-controls"),ref:Ee=>{this.playerControls=Ee},children:[(0,s.jsx)(Sw,{condensed:this.state.condensed,onChange:Ee=>{this.setState({playbackSpeed:Ee})},speed:this.state.playbackSpeed}),(0,s.jsx)(Aw,{condensed:this.state.condensed,muted:this.state.muted,onChange:this.changeVolume,onMute:this.muteToggle,volume:this.state.volume}),l==="readonly"||o?(0,s.jsx)(nw,{audioPlayerId:z,condensed:this.state.condensed,onDelete:u,onTranscriptClick:d,onTranscriptClose:m,transcriptMedia:p}):(0,s.jsx)(Cw,{audioPlayerId:z,condensed:this.state.condensed,item:f,onTranscriptClick:d,onTranscriptClose:m,refs:v,side:g,transcriptMedia:p})]})]}),(0,s.jsx)("audio",{className:Sn("audio-element"),"data-testid":"audio-player-element",onEnded:this.onEnded.bind(this),onLoadedMetadata:this.onLoadedMetadata.bind(this),onPause:this.onAudioPlayPause,onPlay:this.onAudioPlayPause,onSeeked:this.onSeeked.bind(this),onTimeUpdate:this.onTimeUpdate.bind(this),onVolumeChange:this.onVolumeChangeHandler,ref:Ee=>{this.audio=Ee},src:(0,Ge.o1)(`${i}`)},"audio-"+n)]},`player-${n}`)})}onKeyDown(e){const o=ho(this.onPlayClick),r=ho(()=>this.keySeek(5)),a=ho(()=>this.keySeek(-5)),i=ho(()=>this.changeVolumeDelta(au)),l=ho(()=>this.changeVolumeDelta(-au)),u=ho(()=>this.muteToggle()),d=C=>C.target===this.play,m=C=>C.target===this.seekSlider,p=C=>this.playerControls===C.target||this.playerControls.contains(C.target),f=zn()([[wc,o],[Ir,Lr],[Tr,Lr],[aa,Lr],[ra,Lr]]),g=zn()([[wc,o],[vL,r],[gL,a]]),v=zn()([[wc,o],[Ir,r],[Tr,a],[ra,i],[aa,l],[C=>C.code==="KeyM",u]]);zn()([[d,f],[m,g],[p,Lr],[qc(),v]])(e)}onPlayClick(e){e.stopPropagation(),e.preventDefault();const{audioVideoPlayhead:n}=this.props,{duration:o,paused:r}=this.audio;r&&n&&this.state.shouldLoadPlayheadPosition&&(this.audio.currentTime=o*n/100||0),r?this.audio.play():this.audio.pause()}onAudioPlayPause=e=>{const{id:n,onPause:o,onPlay:r,onTranscriptUpdate:a,recordMediaPlayheadPosition:i,refs:l,transcriptMedia:u}=this.props,{paused:d,currentTime:m,duration:p}=e.currentTarget;if(d)d&&ct.playerId===n&&(ct.isPlaying=!1,o(xi.timeMs(m)),i&&i(lu({currentTime:m,duration:p})));else{ct.playerId=n,ct.isPlaying=!0,r(xi.timeMs(m));const f=fo({refs:l});a?.({audioPlayerId:f,transcriptMedia:u})}this.setState({shouldLoadPlayheadPosition:!1})};onVolumeChangeHandler=e=>{const{volume:n,muted:o}=e.currentTarget;this.setState({volume:n,muted:o})};onSeekSliderChange(e){const{canRestrictSeek:n}=this.props,{maxTime:o}=this.state;let r=e.currentTarget.valueAsNumber;n&&r>o&&(r=o),this.audio.currentTime=r}onLoadedMetadata(e){const{currentTime:n,duration:o,muted:r,volume:a}=e.currentTarget,i=n/o*100;this.setState({currentTime:n,muted:r,volume:a,sliderPercent:i});const{onLoad:l}=this.props;l()}onEnded(e){const n=e.currentTarget;this.audio.currentTime=0,this.setState({currentTime:n.currentTime}),ct.isPlaying=!1,this.props.onEnd(xi.timeMs(n.currentTime)),this.forceUpdate()}onSeeked(e){const{id:n,onSeek:o,recordMediaPlayheadPosition:r}=this.props,{currentTime:a,duration:i}=e.currentTarget;ct.isPlaying&&ct.playerId!==n&&(ct.isPlaying=!1),ct.playerId=n,o(xi.timeMs(a)),r&&r(lu({currentTime:a,duration:i}))}onTimeUpdate(e){const n=e.currentTarget,{recordMediaPlayheadPosition:o}=this.props,{currentTime:r,duration:a}=n,i=Math.floor(r);r>this.state.maxTime&&this.setState({maxTime:r});const l=r/a*100;(0,Ge.ih)(),this.setState({currentTime:r,sliderPercent:l}),i%5===0&&this.state.playheadPositionSaveThrottle!==i&&o&&(o(lu(n)),this.setState({playheadPositionSaveThrottle:i}))}onTogglePlayer(e){this.setState(({playerExpanded:n})=>({playerExpanded:!n})),e.preventDefault(),e.stopPropagation()}}const Pw=xi,or=t=>e=>e!=null&&typeof e=="object"&&"status"in e&&typeof e.status=="string"&&t.includes(e.status),ww=or(["uploading","processing","cropping","crushing"]),Lte=or(["canceled"]),Zv=or(["complete"]),Mw=or(["cropping"]),Ow=or(["crushing"]),Dw=or(["uploading"]),Bw=or(["processing"]),Hw=or(["errored"]),Yv=or(["cropping","crushing","errored","processing","uploading"]);function Fw(t){return t==null||typeof t!="object"?0:Object.values(t).filter(ww).length}function Ete(t){return Math.round(t.loaded*100/t.total)}const Tte=t=>t?.file?.name||t?.opts?.filename||"";function Ite(t){return t==null||typeof t!="object"?!1:Object.keys(t).length>0&&Fw(t)>0}const du=t=>oe()("upload-progress__wrapper",t),Xv=(0,h.createContext)(null);function Jv(){return(0,h.useContext)(Xv)}const Ste=Xv.Provider;function Vw(t){function e(n){const o=Jv();return o?(0,s.jsx)(t,{...n,getUpload:o.getUpload,handleUploadDismiss:o.handleUploadDismiss}):(0,s.jsx)(t,{...n})}return e.displayName=`withUploadStatusContext(${t.displayName||t.name})`,e}const uu=({onClick:t,text:e})=>(0,s.jsxs)(Et.ArcButton,{hierarchy:"tertiary",onClick:t,size:"sm",type:"button",children:[e,(0,s.jsx)("span",{className:"visually-hidden-alw
153ays",children:" upload"})]}),Oh=20,nl=Oh/2,Dh=nl-2,qv=+(2*Math.PI*Dh).toFixed(3),zw=t=>qv*(100-t)/100;function e3({classes:t,percent:e}){return(0,s.jsxs)("svg",{className:oe()("upload-progress__pie",t),focusable:"false",height:`${Oh}px`,width:`${Oh}px`,children:[(0,s.jsx)("circle",{className:"upload-progress__border",cx:nl,cy:nl,r:Dh}),(0,s.jsx)("circle",{className:"upload-progress__progress",cx:nl,cy:nl,r:Dh,strokeDasharray:qv,strokeDashoffset:zw(e)})]})}const Uw=({text:t})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(e3,{classes:"upload-progress__pie--processing",percent:70}),(0,s.jsx)("div",{className:"upload-progress__text",children:t})]}),$w=({percentage:t,text:e="Uploading\u2026"})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(e3,{percent:t}),(0,s.jsx)("div",{className:"upload-progress__text",children:e})]}),Bh=({classes:t,jobId:e,onCancel:n,text:o})=>(0,s.jsxs)("div",{className:du(t),children:[(0,s.jsx)(Uw,{text:o}),e&&(0,s.jsx)(uu,{onClick:n,text:"Cancel"})]}),Ww=({classes:t,onCancel:e,percentage:n,text:o})=>(0,s.jsxs)("div",{className:du(t),children:[(0,s.jsx)($w,{percentage:n,text:o}),(0,s.jsx)(uu,{onClick:e,text:"Cancel"})]}),_w=({message:t="Error"})=>(0,s.jsxs)("div",{className:"upload-error",children:[(0,s.jsx)(Et.ArcIcon,{icon:"fa-regular fa-circle-exclamation"}),(0,s.jsx)("div",{className:"upload-error__text",children:t})]}),Gw=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:du(t),children:[(0,s.jsx)(_w,{message:e}),(0,s.jsx)(uu,{onClick:n,text:"Dismiss"})]}),Kw=({message:t="Success"})=>(0,s.jsxs)("div",{className:"upload-success",children:[(0,s.jsx)(Et.ArcIcon,{icon:"fa-regular fa-check"}),(0,s.jsx)("div",{className:"upload-success__text",children:t})]}),Qw=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:du(t),children:[(0,s.jsx)(Kw,{message:e}),n?(0,s.jsx)(uu,{onClick:n,text:"Dismiss"}):null]}),Zw=t=>{const{classes:e,data:n={},errorMessage:o,jobId:r,progress:a,onCancelUpload:i,onCancelProcess:l,onErrorDismiss:u,onSuccessDismiss:d,successMessage:m,uploadType:p}=t;return Hw(t)?(0,s.jsx)(Gw,{classes:e,message:o||n?.message,onClick:u}):Dw(t)?(0,s.jsx)(Ww,{classes:e,onCancel:i,percentage:a,text:`Uploading ${p}\u2026`}):Bw(t)?(0,s.jsx)(Bh,{classes:e,jobId:r,onCancel:l,text:`Processing ${p}\u2026`}):Ow(t)?(0,s.jsx)(Bh,{classes:e,onCancel:l,text:`Uploading ${p}\u2026`}):Mw(t)?(0,s.jsx)(Bh,{classes:e,onCancel:l,text:"Cropping image\u2026"}):Zv(t)&&m?(0,s.jsx)(Qw,{classes:e,message:m,onClick:d}):(0,s.jsx)("div",{})},Hh=q("audio-player"),Yw=Hh("upload-state");function t3({uploadId:t,onAIUploadFinish:e,volumeSliderPosition:n,...o}){const r=Jv(),{mode:a}=$d(),i=Jc(),l=r&&t?r.getUpload(t):null,u=(0,h.useMemo)(()=>l&&l.mediaType==="audio"&&Yv(l),[l]),d=(0,ke.A)(u);if((0,h.useEffect)(()=>{!u&&d&&e?.()},[u,d,e]),u){const{jobId:m,status:p,progress:f,data:g}=l,v=x=>()=>r?.handleUploadDismiss(x,l),C=Hh({overlay:o.isOverlayAudio,static:o.isOverlayAudio});return(0,s.jsx)("div",{className:Hh("container"),children:(0,s.jsx)("div",{className:C,children:(0,s.jsx)(Zw,{classes:Yw,errorMessage:g?.message,jobId:m,onCancelProcess:v("process"),onCancelUpload:v("upload"),onErrorDismiss:v("error"),progress:f,status:p,successMessage:"Processing\u2026",uploadType:"audio"})})})}return(0,s.jsx)(Pw,{...o,mode:a,transcriptAudioPlayerIdOpen:i?.audioPlayerIdOpen??null,volumeSliderPosition:n})}var Xw=c(66560),Jw=c.n(Xw),qw=c(33308),eM=c.n(qw);const s3={course:({courseId:t})=>`/authoring/${t}`,courseLocales:({courseId:t})=>`/manage/locales/${t}`,dashboard:"/manage/all-content",lesson:({courseId:t,lessonId:e})=>`/authoring/${t}/lesson/${e}`};function tM(){const e=(0,xe.DX)()?.id;return(0,h.useCallback)(n=>typeof window<"u"&&window.location?.pathname?.includes("/authoring/")&&e!=null?s3.lesson({courseId:e,lessonId:n}):`/lessons/${n}`,[e])}var sM=c(97865),nM=c(79182),oM=c.n(nM);const rM=/(\.\.\/)|(\.\.\.\.\/)+|%2e%2e\/|%252e%252e\/|%2f\/|\/%2e%2e/gi,aM=t=>typeof t=="string"&&t.replace(rM,""),Nn=oM()(aM,sM.J),iM="about:blank",cM=t=>{const e=t?.trim();if(!e)return null;const n=Nn(e);return n===iM?null:/^(https?:\/\/|mailto:)/i.test(n)||/^(\.?\/|[#?])/.test(n)?n:`http://${n.replace(/^\/\//,"")}`},bi=h.memo(({align:t,alt:e,allowTabNavigation:n=!0,cornerRadius:o,disableZoom:r,getLessonPath:a,height:i,l10nId:l,labels:u,link:d,maxHeight:m=380,onLoad:p,shouldFillWidth:f,src:g,width:v})=>{const C=tM(),x=a??C,y=(0,He.Ll)(e),b=d?.type==="url"&&d.destination?cM(d.destination):null,E=d?.type==="lesson"&&!!d.destination||!!b,L=n&&!r&&!E,T=oe()("img-img",{"img-img--left":t==="left","img-img--right":t==="right","img-img--center":!t||t==="center","img-img--fill":f});let I={};o!=null&&(I["--corner-radius"]=`${Number(o)}px`),v>0&&i>0&&i>m?(v=Math.round(v*m/i),i=m):m&&(!v||!i)&&(I={maxHeight:m});let S=(0,s.jsx)(In,{alt:y,className:T,"data-l10n-id":l,height:i,onLoad:p,src:g,style:I,width:v});return E&&d?d.type==="lesson"?S=(0,s.jsx)(yn,{className:"img__link",to:x(d.destination),children:S}):b&&(S=(0,s.jsx)("a",{className:"img__link",href:b,rel:"noopener noreferrer nofollow",target:"_blank",children:S})):L&&(S=(0,s.jsx)(Bv,{a11yNameButtonUnzoom:u?.a11yUnzoomImage,a11yNameButtonZoom:u?.a11yZoomImage,children:S})),(0,s.jsx)("div",{className:"img",children:S})});var Mte=c(54543),lM=c(20596),dM=c.n(lM),uM,hM,mM,n3;const{validIframe:o3,validUrl:r3}=ot.yG,a3=po()("type","embed"),pM=dM()("type","embedType"),fM=E1()(/http:/i,"https:"),vM=t=>({embedType:"iframe",originalUrl:t,src:t}),gM=t=>ga(t.embed),ga=t=>t?.embedType||t?.type,Ote=t=>mM([[n3(o3),uM(a3,vM,fM)],[n3(r3),hM(a3,pM,t)]]),Dte=Er()(st()(ih()(o3),Io.R9),ih()(r3)),Bte="We are unable to generate an embed for this URL. Please check that the URL is valid and the content is publicly accessible.";var Ca=c(26372);const i3=t=>{const e=(0,Ge._$)("CDN_USER_CONTENT_URI"),n=new RegExp((0,Ge._$)("CDN_URI"),"g");return(0,Ge.Hm)()?t:n.test(t)?`${e}${new URL(t).pathname}${new URL(t).search}`:t},CM=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:","")},xM=/^\/\/cdn.embedly.+src=.*\.typeform\.com%2F/,bM=t=>xM.test(t),yM=/^\/\//,c3=t=>t?.replace(yM,"https://"),hu=t=>{try{if(t===!1)return t;const e=new URL(c3(t));if(e.host==="cdn.embedly.com"&&e.pathname==="/widgets/media.html"){const n=new URL("https://embed.articulateusercontent.com/media/");return n.search=e.search,n.searchParams.set("v","1"),n.href}return e.href}catch(e){const n=new Error("Could not parse embed url",{cause:e});return console.warn(n),t}},LM=st()(hu,c3,kc()(bM,CM),kc()(Boolean,Ge.o1),Nn),EM=t=>{const{paddingBottom:e,ref:n,value:o}=t;return(0,s.jsx)("div",{className:"embed--iframe",dangerouslySetInnerHTML:Ca.useMemo(()=>({__html:o}),[o]),ref:n,style:{paddingBottom:e}})};class TM extends Ca.Component{player;refIframeContainer=Ca.createRef();refIframePlayer=Ca.createRef();state={duration:0,isReady:!1};static get defaultProps(){return{allowTabNavigation:!0,shouldPause:!1,showMetaData:!0}}componentDidUpdate(e){!e.shouldPause&&this.props.shouldPause&&ct.isPlaying&&(this.player?.pause(),ct.isPlaying=!1)}componentWillUnmount(){ga(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}),ct.addChangeListener(this.handlePlayerChange))};handlePlayerPlay=()=>{const{id:e}=this.props;ct.isPlaying&&ct.playerId!==e&&(ct.isPlaying=!1),ct.playerId=e,ct.isPlaying=!0};handlePlayerUpdate=e=>{this.props.progressChanged?.({done:e.seconds/e.duration*100})};handlePlayerChange=()=>{const{id:e}=this.props;ct.playerId===e&&(ct.isPlaying?this.player.play():this.player.pause())};setupPlayer=()=>{this.refIframePlayer.current?.contentWindow!=null&&(this.player!=null&&this.teardownPlayer(),this.player=new(Jw()).Player(this.refIframePlayer.current),this.player.on("ready",this.handlePlayerReady))};teardownPlayer=()=>
153{ct.isPlaying=!1,ct.removeChangeListener(this.handlePlayerChange),this.player&&(this.player.off("play"),this.player.off("ready"),this.player.off("timeupdate"),delete this.player)};playerSupportsMethods=e=>{const n=o=>this.player.supports("method",o);return eM()(n)(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(n=>{this.player.setCurrentTime(n+e)})})};changeVolume=e=>{this.playerSupportsMethods(["getVolume","setVolume"])&&this.player.getVolume(n=>{this.player.setVolume(n+e)})};onKeyDown=e=>{const r=ho(this.togglePlay),a=ho(()=>this.keySeek(5)),i=ho(()=>this.keySeek(-5)),l=ho(()=>this.changeVolume(10)),u=ho(()=>this.changeVolume(-10));zn()([[D1,r],[Ir,a],[Tr,i],[ra,l],[aa,u]])(e)};renderProvider=()=>{const{allowTabNavigation:e,embedId:n,externalLinksDisabled:o,onLinkBlur:r,onLinkFocus:a,onLinkMouseEnter:i,onLinkMouseLeave:l,showMetaData:u,data:d}=this.props,{providerUrl:m,provider:p,favicon:f}=d;if(!(u&&m))return null;const g=hu(Nn(m)),v=o&&Bn(g),C=`${n}-provider`,x=v?"":void 0,y=v?void 0:g,b=v?void 0:"noopener noreferrer",E=v?"button":void 0,L=v?void 0:"_blank";return(0,s.jsx)("h2",{className:"embed__provider",children:(0,s.jsxs)("a",{className:"brand--hoverColor","data-external":x,href:y,id:v?C:void 0,onBlur:v?()=>r?.(C):void 0,onFocus:v?()=>a?.(C):void 0,onMouseEnter:v?()=>i?.(C):void 0,onMouseLeave:v?()=>l?.(C):void 0,rel:b,role:E,style:v?{display:"inline-block"}:void 0,tabIndex:e?0:-1,target:L,children:[(0,s.jsx)(In,{alt:f?p:"",className:"embed__providerIcon",src:f}),(0,s.jsx)("span",{className:"embed__providerName",children:p})]})})};renderMetaData=()=>{const{allowTabNavigation:e,data:n,embedId:o,externalLinksDisabled:r,labels:a,onLinkBlur:i,onLinkFocus:l,onLinkMouseEnter:u,onLinkMouseLeave:d,showMetaData:m}=this.props,{src:p,title:f,description:g,provider:v}=n,C=ga(n);if(!m&&C!=="link")return null;const x=hu(Nn(p)),y=r&&Bn(x),b=`${o}-metadata-title`,E=`${o}-metadata-readmore`,L=T=>({"data-external":y?"":void 0,href:y?void 0:x,id:y?T:void 0,onBlur:y?()=>i?.(T):void 0,onFocus:y?()=>l?.(T):void 0,onMouseEnter:y?()=>u?.(T):void 0,onMouseLeave:y?()=>d?.(T):void 0,rel:y?void 0:"noopener noreferrer nofollow",role:y?"button":void 0,style:y?{display:"inline-block"}:void 0,tabIndex:e?0:-1,target:y?void 0:"_blank"});return(0,s.jsxs)("div",{className:"embed__meta__content",children:[(0,s.jsx)("h2",{className:"embed__title",children:(0,s.jsx)("a",{className:"brand--hoverColor",...L(b),children:(0,s.jsx)(yt,{value:f})})}),(0,s.jsx)(yt,{className:"embed__description",value:g}),(0,s.jsxs)("a",{className:"embed__readMore brand--hoverColor",...L(E),children:[C==="link"?`${a?.embedReadMore} ${v}`:`${a?.embedViewOn} ${v}`,(0,s.jsx)("i",{className:"icon icon-chevron-right"})]})]})};render(){const{allowTabNavigation:e,data:n,embedId:o,externalLinksDisabled:r,isLesson:a,labels:i,onLinkBlur:l,onLinkFocus:u,onLinkMouseEnter:d,onLinkMouseLeave:m,showMetaData:p}=this.props,{useRelativePath:f}=n??{},{description:g,originalUrl:v,src:C,thumbnail:x,title:y}=n,b=ga(n);if(b==="iframe"){const E=document.createElement("div");E.innerHTML=(0,Io.R9)(C);const L=E.firstChild,T=L&&L.tagName&&L.tagName.toLowerCase()==="iframe";let I=100,S=32;if(K7(window.location.href)&&f)return(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"embed__relativeUrl--iframe",children:"Embedded iframe with a relative url"}),(0,s.jsx)("p",{className:"embed__relativeUrl--title",children:y}),(0,s.jsx)("p",{className:"embed__relativeUrl--url",children:v})]});if(T){const H=L.width.match(/%/),P=parseInt(L.width);L.src=Nn(L.src),I=H?700*(P/100):P||16,S=parseInt(L.height)}const N=S/I,k=T?`${N*100}%`:"3rem";if(L.src.includes("typeform")){const H=new window.URL(L.src);H.searchParams.append("disable-auto-focus","true"),L.src=H.toString()}if(L.src.includes("forms.office.com")){const H=new window.URL(L.src);H.searchParams.append("embed","true"),L.src=H.toString()}const R=T?L.outerHTML:"<div>Error: Invalid iframe tag. Please check the iframe source.</div>";return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.embedPlayerGroup,className:"embed",role:Ci,children:[f&&(0,s.jsx)("div",{className:"embed__title embed--iframe__title",children:y}),(0,s.jsx)(EM,{paddingBottom:k,ref:this.refIframeContainer,value:R})]})}else if(a){const E=f?C:hu(Nn(C)),L=r&&Bn(E),T=`${o}-lesson-title`,I=`${o}
153-lesson-url`,S=L?"":void 0,N=L?void 0:E,k=L?void 0:"noopener noreferrer nofollow",B=L?"button":void 0,M=L?void 0:"_blank";if(f){const R={"data-external":L?"":void 0,href:E,id:L?T:void 0,onBlur:L?()=>l?.(T):void 0,onFocus:L?()=>u?.(T):void 0,onMouseEnter:L?()=>d?.(T):void 0,onMouseLeave:L?()=>m?.(T):void 0,rel:L?void 0:"noopener noreferrer nofollow",role:L?"button":void 0,tabIndex:e?0:-1,target:L?void 0:"_blank"};return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:Ci,children:[(0,s.jsx)("h2",{className:"embed__title",children:(0,s.jsx)("a",{className:"brand--hoverColor",...R,children:(0,s.jsx)(yt,{value:y})})}),["link","photo"].includes(b)?(0,s.jsxs)("a",{className:"embed__relativeUrl--url","data-external":S,href:N,id:L?I:void 0,onBlur:L?()=>l?.(I):void 0,onFocus:L?()=>u?.(I):void 0,onMouseEnter:L?()=>d?.(I):void 0,onMouseLeave:L?()=>m?.(I):void 0,rel:k,role:B,tabIndex:e?0:-1,target:M,children:[E,b==="photo"?(0,s.jsx)("div",{className:"embed__relativeUrl--image",children:(0,s.jsx)(In,{alt:x?y:"",className:"embed__img",src:E})}):null]}):this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:C,thumbnail:x,title:y,type:b})]})}return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:Ci,children:[this.renderProvider(),["link","photo"].includes(b)?(0,s.jsx)("a",{"data-external":S,href:N,id:L?I:void 0,onBlur:L?()=>l?.(I):void 0,onFocus:L?()=>u?.(I):void 0,onMouseEnter:L?()=>d?.(I):void 0,onMouseLeave:L?()=>m?.(I):void 0,rel:k,role:B,tabIndex:e?0:-1,target:M,children:(0,s.jsx)(In,{alt:x?y:"",className:"embed__img",src:i3(x)})}):this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:C,thumbnail:x,title:y,type:b}),this.renderMetaData()]})}else if(b==="link"){const E=f?C:Nn(C),L=f||r&&Bn(E),T=`${o}-link-readmore`,I=L?"":void 0,S=L?void 0:E,N=L?void 0:"noopener noreferrer nofollow",k=L?"button":void 0,B=L?void 0:"_blank";return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.embedLinkGroup,className:"embed embed--link brand--linkColor",role:Ci,children:[(0,s.jsx)(yt,{className:"embed__title",value:y}),(0,s.jsx)(yt,{className:"embed__description",value:g}),(0,s.jsx)("a",{className:"embed__readMore brand--hoverColor","data-external":I,href:S,id:L?T:void 0,onBlur:L?()=>l?.(T):void 0,onFocus:L?()=>u?.(T):void 0,onMouseEnter:L?()=>d?.(T):void 0,onMouseLeave:L?()=>m?.(T):void 0,rel:N,role:k,target:B,children:i?.embedReadMore})]})}else return(0,s.jsxs)("div",{className:"embed embed--media",children:[p?(0,s.jsx)(yt,{"aria-hidden":!e,className:"embed__title",value:y}):null,this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:C,thumbnail:x,title:y,type:b})]})}renderEmbedIframe=e=>{const{allowTabNavigation:n,labels:o,src:r,thumbnail:a,title:i,type:l}=e,{useRelativePath:u}=this.props.data??{};if(l==="photo")return(0,s.jsx)("figure",{className:"embed__media-wrap embed__media-wrap--photo",children:(0,s.jsx)(bi,{allowTabNavigation:n,labels:o,src:i3(a)})});{const d=Ln.isIe11||Ln.isEdge,m=oe()("embed__media-wrap",{"embed__media-wrap--ms_browser":d});return(0,s.jsxs)("figure",{"aria-hidden":!n,"aria-label":o?.embedPlayerGroup,className:m,onKeyDown:this.onKeyDown,ref:this.refIframeContainer,tabIndex:n?0:-1,children:[(0,s.jsx)("meta",{content:"origin",name:"referrer"}),(0,s.jsx)("iframe",{allowFullScreen:!0,className:"embed__media",frameBorder:"0",inert:n?void 0:!0,loading:"lazy",onLoad:this.setupPlayer,ref:this.refIframePlayer,scrolling:u?"yes":"no",src:u?r:LM(r),title:i})]})}}}const l3=t=>{const e=(0,xe.DX)(),n=t.externalLinksDisabled??(e&&"externalLinksDisabled"in e?e.externalLinksDisabled:!1),{handleMouseEnter:o,handleMouseLeave:r,handleFocus:a,handleBlur:i}=Cd(),[l,u]=Ca.useState([]),d=Ca.useId();return Ca.useEffect(()=>{if(!n||!t.data){u([]);return}const m=[],{providerUrl:p,src:f,useRelativePath:g}=t.data,v=ga(t.data);t.isLesson&&f&&Bn(Nn(f))&&(m.push(`${d}-lesson-title`),["link","photo"].includes(v)&&m.push(`${d}-lesson-url`),v!=="iframe"&&(m.push(`${d}-metadata-title`),m.push(`${d}-metadata-readmore`)),p&&Bn(Nn(p))&&m.push(`${d}-provider`)),!t.isLesson&&t.showMetaData&&p&&Bn(Nn(p))&&m.push(`${d}-provider`),!t.isLesson&&t.showMetaData&&f&&Bn(Nn(f))&&v!=="iframe"&&(m.pu
153sh(`${d}-metadata-title`),m.push(`${d}-metadata-readmore`)),v==="link"&&(g||f&&Bn(Nn(f)))&&m.push(`${d}-link-readmore`),u(m)},[n,t.data,t.showMetaData,t.isLesson,d]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(TM,{...t,embedId:d,externalLinksDisabled:n,onLinkBlur:i,onLinkFocus:a,onLinkMouseEnter:o,onLinkMouseLeave:r}),l.map(m=>(0,s.jsx)(xd,{anchorId:m},m))]})};var IM=c(33649);function Fh({allowTabNavigation:t=!0,audioVideoPlayhead:e,canAdjustPlaybackSpeed:n,canRestrictSeek:o,captions:r,cornerRadius:a,id:i,onLoad:l,poster:u,progressChanged:d,recordMediaPlayheadPosition:m,ref:p,shouldPause:f,src:g,subtitle:v,type:C}){const x=h.useRef(null),y=h.useCallback(z=>{x.current=z,typeof p=="function"?p(z):p&&(p.current=z)},[p]),b=(0,ke.A)(f),E=(0,xe.DX)(),{currentLocale:L}=(0,wt.nY)(),T=(0,xe.vU)(),I=(0,xe.nZ)(),S=mh(),N=C==="customVideo",k=h.useCallback(z=>{(0,Ge.ih)(),d?.(z)},[d]),B=h.useCallback(z=>{m?.(z)},[m]),M=h.useCallback(()=>{ct.playerId=i,ct.isPlaying=!0},[i]),R=h.useCallback(()=>{ct.playerId===i&&(ct.isPlaying=!1)},[i]),[H,P]=h.useState(!1),j=h.useRef(!1),O=h.useCallback(()=>{P(!0),l?.()},[l]);h.useEffect(()=>{j.current||H&&(e!=null&&e>0&&x.current?.seekToPercent(e),j.current=!0)},[H,e]),h.useEffect(()=>{!b&&f&&x.current?.pause()},[b,f]),h.useEffect(()=>{const z=()=>{(!ct.isPlaying||ct.playerId!==i)&&x.current?.pause()};return ct.addChangeListener(z),()=>{ct.removeChangeListener(z)}},[i]);const U=h.useMemo(()=>{const z={};return(typeof a=="number"||typeof a=="string")&&(z["--video-corner-radius"]=`${Number(a)}px`),z},[a]),W=u==null?void 0:N?u:(0,Ge.o1)(u);return(0,s.jsxs)(IM.L,{crossOrigin:Ln.isLocalFilesystem?void 0:"anonymous",enablePlaybackSpeed:n??void 0,enableSeek:o==null?void 0:!o,inert:!t,labelCaptions:T?.a11yMediaCaptions,labelCaptionsOff:T?.a11yMediaCaptionsOff,labelContainer:T?.a11yGroupVideoPlayer??"Video player",labelCurrentTime:T?.a11yMediaCurrentTime,labelDuration:T?.a11yMediaDuration,labelExitFullscreen:T?.a11yMediaExitFullscreen,labelExitPictureInPicture:T?.a11yMediaExitPictureInPicture,labelFullscreen:T?.a11yMediaFullscreen,labelMute:T?.a11yMediaMute,labelPause:T?.a11yMediaPause,labelPictureInPicture:T?.a11yMediaPictureInPicture,labelPlay:T?.a11yMediaPlay,labelPlaybackRate:T?.a11yMediaPlaybackRate,labelPlayVideo:T?.a11yMediaPlayVideo,labelRemainingTime:T?.a11yMediaRemainingTime,labelSeek:T?.a11yMediaSeek,labelSeekDisabled:T?.a11yMediaSeekDisabled,labelUnmute:T?.a11yMediaUnmute,labelVolume:T?.a11yMediaVolume,language:I??L??E?.locale??void 0,onLoad:O,onPause:R,onPlay:M,onPlayheadSave:B,onTimeUpdate:k,poster:W,ref:y,style:U,timeUpdateInterval:1e3,children:[(0,s.jsx)("source",{src:`${N?g:(0,Ge.o1)(g)}?v=1`,type:N?"application/x-mpegURL":void 0}),r==null&&v&&(0,s.jsx)("track",{kind:"captions",label:"English",src:N?v:(0,Ge.o1)(v),srcLang:"en"}),r?.map(z=>(0,s.jsx)("track",{kind:"captions",label:z.name||S?.(z.code),src:z.url||(z.key!=null?(0,Ge.o1)(z.key):void 0),srcLang:z.code},z.id))??null]})}var SM=c(26372);function Yt(t){const e=SM.forwardRef((n,o)=>{const r=(0,et.gY)();return(0,s.jsx)(t,{...n,getL10nValue:r,ref:o})});return e.displayName=`withLocalizedLookup(${t.displayName||t.name})`,e}var NM=c(80687),d3=c.n(NM),jM=c(60922),kM=c.n(jM);const AM=t=>({...t,courseId:t.courseId||Es()(["course","id"],t)}),RM=t=>({...t,lessonId:t.lessonId||Es()(["lesson","id"],t)}),PM=({id:t,courseId:e,lessonId:n,refs:o})=>t||(o&&n?`${n}-${o}`:n||e),Vh=st()(PM,RM,AM),Fte=Ds()(P1()(Qt()("id"),d3()("id",Vh)),Er()(kM()(Qt(),[Qt()("id"),Qt()("uploads")]),Mn()(["id"])),d3()("isUploading",Mt()("status","uploading")));function Vte(t){const e=t.match(/^(.*\/)?([^/]+)$/);if(!e)return encodeURIComponent(t);const n=e[1]??"",o=e[2],r=encodeURIComponent(o);return`${n}${r}`}function wM(t){return t.replace(/%2F/g,"/")}var MM=c(26372);const zh=t=>!!(t&&("key"in t&&t.key||"src"in t&&t.src)),mu=t=>zh(t)&&!t.isProcessing&&!t.error,OM=(t,e)=>e?.mediaType==="audio"?!!t&&(zh(t)||Yv(e)||Zv(e)&&!zh(t)):mu(t),DM=t=>kc()(hs()(!!t),YP()(`-${t}`));class BM extends MM.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,blockId:n,openTranscript:o,refs:r}=this.props,a=e?.items?.length===1?e.items[0]:void 0,i=this.props.item??a;let l=n;try{e!=null&&typeof e=="object"&&!Array.isArray(e)?"blockId"in e?l=e.blockId:"id"in e&&(l=e.id):e?.id&&(l=e.id)}catch{l=n}let u="";try{i!=null&&typeof i=="object"&&!Array.isArray(i)&&"id"in i&&(u=String(i.id))}catch{u=""}const d=r??`items:${l||""}/items:${u}`;if((e||n)&&i&&o)return o({blockId:e?.id??n,item:i,refs:d})}renderAudio(e,n){const{activeIndex:o,allowTabNavigation:r,block:a,blockId:i,getL10nValue:l,index:u,isOverlayAudio:d,item:m,itemIndex:p,labels:f,lessonNumber:g,shouldPause:v,side:C}=this.props,{audio:x}=l(e),y=a&&typeof a=="object"&&"blockId"in a?a.blockId:a?.id||i||"",b=m&&typeof m=="object"&&"id"in m?m.id:"",E=this.props.refs??`items:${y}/items:${b}`,L=`audio-${g}-${u}`;return(0,s.jsx)(t3,{activeIndex:o,allowTabNavigation:r,id:L,isOverlayAudio:d,item:m,itemIndex:p,labels:f,mediaSrc:x.key,onTranscriptClick:this.onTranscriptClick,onTranscriptClose:this.props.closeTranscript??void 0,onTranscriptUpdate:this.props.onTranscriptUpdate,refs:E,shouldPause:x.pause||v,side:C,transcriptMedia:e,uploadId:n,volumeSliderPosition:this.props.volumeSliderPosition},L)}renderImage(e){const{allowTabNavigation:n,cornerRadius:o,defaultAlign:r,imageMaxHeight:a,index:i,labels:l,onLoad:u,opts:d}=this.props,m=e?.align??r,p=e?.dimensions,f=`image-${i}`,{disableZoom:g}=d??{};return(0,s.jsx)(bi,{align:m,allowTabNavigation:n,alt:e?.alt,cornerRadius:o,disableZoom:g,height:p?.height||p?.originalHeight,labels:l,link:e?.link,maxHeight:a,onLoad:u,shouldFillWidth:e?.fillWidth,src:(0,Ft.ME)(e),width:p?.width||p?.originalWidth},f)}renderVideo(e){const{allowTabNavigation:n,blockId:o,lessonNumber:r,index:a,enableVideoPlaybackSpeed:i,shouldPause:l}=this.props,u=e.skipProcess?wM(e.poster):e.poster,d=DM(o)(`video-${r}-${a}-${u||""}`);return(0,s.jsx)(Fh,{allowTabNavigation:n,canAdjustPlaybackSpeed:i,captions:e.captions,id:d,poster:u,shouldPause:e.pause||l,src:e.key},d)}renderEmbed(e){const{allowTabNavigation:n,embedClass:o,labels:r,opts:a,shouldPause:i}=this.props,{fullEmbed:l,showMetaData:u=!0}=a,d=`embed-${this.props.index}`;return(0,s.jsx)("div",{className:o,children:(0,s.jsx)(l3,{allowTabNavigation:n,data:e,id:d,isLesson:l,labels:r,shouldPause:e.pause||i,showMetaData:u},d)})}render(){const{blockId:e,hasPadding:n,item:o,lessonId:r,mediaType:a}=this.props,i=o&&typeof o=="object"&&"id"in o?o.id:"",l=this.props.refs??`items:${e??""}/items:${i}`,u=this.props.media,d=oe()({"media-group":n}),{audio:m,embed:p,image:f,video:g}=this.props.getL10nValue(u)??{},v=Vh({lessonId:r,refs:l}),C=this.props.getUpload?this.props.getUpload(v):null;return(0,s.jsxs)("div",{className:d,"data-l10n-id":(0,Lt.pP)(u),children:[(!a||a==="image")&&mu(f)&&this.renderImage(f),(!a||a==="audio")&&OM(m,C)&&this.renderAudio(u,v),(!a||a==="video")&&mu(g)&&this.renderVideo(g),(!a||a==="embed")&&mu(p)&&this.renderEmbed(p)]})}}
153const Zs=Vw(Fd(Qf(Yt(BM))));function vo(t,e,n,o){const a=e==="bottom"||!n&&e!=="top"?"bottom":"top",i={renderOrder:["text"],isOverlayAudio:!1};if(!t)return i;const l=!!t.audio,u=!!t.image,d=!!t.video,m=!!t.embed,p=u||d,f=()=>{const C=u?"image":"video",x={top:l?["audio","text",C]:["text",C],bottom:l?["text","audio",C]:["text",C],legacyTop:l?["audio",C,"text"]:[C,"text"],legacyBottom:l?[C,"text","audio"]:[C,"text"]};return n&&o==="timeline"&&!e?x.top:n&&o!=="timeline"?a==="bottom"?x.legacyBottom:x.legacyTop:a==="bottom"?x.bottom:x.top},g=()=>{const C={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 n&&o==="timeline"&&!e?C.legacyTop:n&&o!=="timeline"?a==="bottom"?C.legacyBottom:C.legacyTop:a==="bottom"?C.bottom:C.top},v=()=>a==="bottom"?["text","audio"]:["audio","text"];return l&&!p&&!m?{...i,renderOrder:v()}:p&&!l&&!m?{...i,renderOrder:f()}:m&&!l&&!p?{...i,renderOrder:g()}:l&&p&&!m?o==="statement"?{...i,renderOrder:v()}:o==="labeled-graphic"||a==="top"||o==="process"?{...i,renderOrder:f(),audioOnlyMedia:{audio:t.audio},imageOnlyMedia:{image:t.image},videoOnlyMedia:{video:t.video}}:{...i,renderOrder:t.video?["text","video","audio"]:["text","overlay"],audioOnlyMedia:{audio:t.audio},imageOnlyMedia:{image:t.image},videoOnlyMedia:{video:t.video},isOverlayAudio:!t.video}:l&&m&&!p?{...i,renderOrder:g(),audioOnlyMedia:{audio:t.audio},embedOnlyMedia:{embed:t.embed}}:i}var HM=c(26372);const Oo=q("block-text"),FM=class extends HM.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,s.jsx)(yt,{value:e})}renderText(t){const{labels:e,takingSnapshot:n,variant:o}=this.props,r=o?.includes("column"),a="paragraph"in t?t.paragraph:void 0;return r||n?(0,s.jsx)(QP,{item:t,labels:e,children:(0,s.jsx)(ms,{value:a||""})}):(0,s.jsx)(ms,{className:Oo("col"),value:a||""})}render(){const{blockId:t,columns:e,defaultBackgroundColor:n,heading:o,isLearner:r,items:a,labels:i,lessonId:l,media:u,settings:d,type:m,variant:p,renderText:f=this.renderTextDelegate,renderHeading:g=this.renderHeadingDelegate,getL10nValue:v}=this.props,C=v(u),x=Object.keys(C?.audio??{}).length>0,{audioPosition:y,entranceAnimation:b,cellPadding:E=1.5,tableWidth:L=76,textPadding:T=.8,textWidth:I=76}=d,S=p==="table",N=e===1,k=e>1,B=S?L:I,M=!S&&N,R=S,H=kP(E),P=AP(T),j=Rh(B),O=Oo({[m]:!M&&!R||k,[`${m}-custom-width`]:!k,[`${m}-custom-width-table-${j}`]:R,[`${m}-custom-width-text-${j}`]:M,[`heading-custom-text-padding-${P}`]:M,[`${m}-custom-cell-padding-${H}`]:R,"no-animation":!b}),U=e>2?Oo("container-wide"):Oo("container",{authoring:!r}),W=this.getHeadingComponent(),z=v(Array.isArray(u)?{}:u),re=vo(z,y);return(0,s.jsx)(Tt,{className:O.toString(),defaultBackgroundColor:n,children:(0,s.jsxs)("div",{className:U,"data-block-id":t,"data-block-text":"",children:[(0,s.jsx)("div",{className:Oo("row"),children:o!==""?a.slice(0,1).map((fe,Ee)=>(0,s.jsx)("div",{className:Oo("col"),children:(0,s.jsx)("div",{className:Oo("heading"),children:(0,s.jsx)(W,{children:g(fe)})})},"id"in fe?fe.id:Ee)):null}),re.renderOrder.map((fe,Ee)=>{if(fe==="text")return(0,s.jsx)("div",{className:Oo("row"),children:m!=="heading"?a.slice(0,e).map((Oe,Ue)=>(0,s.jsx)(h.Fragment,{children:f(Oe)},"id"in Oe?Oe.id:Ue)):null},`text-${Ee}`);if(fe==="audio"&&x){const Oe=re.renderOrder.indexOf("audio")<re.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:Oo("row",{media:!0,top:Oe,bottom:!Oe,hasHeading:p==="heading paragraph"||p==="subheading paragraph"}),children:(0,s.jsx)("div",{className:Oo("col",{media:!0}),children:(0,s.jsx)(Zs,{blockId:t,hasPadding:!1,index:t,item:{id:t,media:u},labels:i,lessonId:l,media:u,refs:`items:${t}`})})},`audio-${Ee}`)}})]})})}},Nr=Yt(FM),VM=Nr,zM=t=>(0,s.jsx)(Nr,{columns:2,type:"twocol",...t}),UM=t=>(0,s.jsx)(Nr,{columns:3,type:"threecol",...t}),$M=t=>(0,s.jsx)(Nr,{columns:4,type:"fourcol",...t}),WM=t=>(0,s.jsx)(Nr,{heading:"heading",type:"heading",...t}),_M=t=>(0,s.jsx)(Nr,{heading:"subheading",type:"heading",...t}),GM=t=>(0,s.jsx)(Nr,{heading:"heading",...t}),KM=t=>(0,s.jsx)(Nr,{heading:"subheading",...t});var ol=c(26372);const QM=1e3,ZM={fadeInGrow:"scale(0.95)",fadeInLeft:"translateX(-50px)",fadeInLeftSmall:"translateX(-25px)",fadeInRight:"translateX(50px)",fadeInUp:"translateY(25px)"},YM=t=>{const{afterAnimatedIn:e,animateIn:n="fadeIn",children:o,className:r,duration:a=1,initiallyVisible:i,siblingDelay:l=0}=t,u=ol.useRef(null),[d,m]=ol.useState(!1);ol.useEffect(()=>{const f=u.current;if(i&&f){m(!0);return}if(d||!f||typeof window>"u")return;const g=Uv(),v=new IntersectionObserver(([x])=>{x!=null&&(x.isIntersecting||x.intersectionRatio>0)&&(m(!0),v.unobserve(x.target))},{root:g,rootMargin:ot.CY,threshold:0});v.observe(f);const C=setTimeout(()=>{m(x=>{if(x)return x;const y=u.current;if(!y)return x;const b=y.getBoundingClientRect(),E=g?.getBoundingClientRect(),L=E?.top??0,T=E?.bottom??window.innerHeight,I=(T-L)*.1;return b.bottom>L-I&&b.top<T+I?!0:x})},QM);return()=>{v.disconnect(),clearTimeout(C)}},[i,d]),ol.useEffect(()=>{const f=u.current;if(!f||!e)return;const g=v=>{v.target instanceof Element&&v.target.parentElement===f&&v.propertyName==="opacity"&&e()};return f.addEventListener("transitionend",g),()=>{f.removeEventListener("transitionend",g)}},[e]),ol.useEffect(()=>{const f=u.current;if(!f||!Array.isArray(o))return;
153Array.from(f.children).forEach((v,C)=>{v instanceof HTMLElement&&v.style.setProperty("--idx",String(C))})},[o]);const p={"--scroll-animation-step":`${l}s`,"--scroll-animation-duration":n==="none"?"0s":`${a}s`,"--scroll-animation-from":ZM[n]??"translateY(0)"};return(0,s.jsx)("div",{className:oe()("scroll-animation",r,{"scroll-animation--in":d}),ref:u,style:p,children:o})},XM=matchMedia("(prefers-reduced-motion: reduce)");function jn(){return XM.matches}const Pt=t=>{const{afterAnimatedIn:e,animateBlockEntrance:n,animateIn:o,children:r,className:a,duration:i,initiallyVisible:l,isLearner:u,siblingDelay:d}=t;return u&&n&&!jn()?(0,s.jsx)(YM,{afterAnimatedIn:e,animateIn:o,className:a,duration:i,initiallyVisible:l,siblingDelay:d,children:r}):Array.isArray(r)?(0,s.jsx)("div",{children:r}):r};var u3=c(26372);const JM=u3.lazy(async()=>{const[t,e]=await Promise.all([c.e("ace").then(c.t.bind(c,51477,23)),c.e("ace").then(c.bind(c,52617)),c.e("ace").then(c.t.bind(c,4668,23)),c.e("ace").then(c.t.bind(c,61321,23)),c.e("ace").then(c.t.bind(c,16773,23)),c.e("ace").then(c.t.bind(c,41159,23)),c.e("ace").then(c.t.bind(c,16773,23)),c.e("ace").then(c.t.bind(c,74844,23)),c.e("ace").then(c.t.bind(c,21503,23)),c.e("ace").then(c.t.bind(c,97332,23)),c.e("ace").then(c.t.bind(c,6686,23)),c.e("ace").then(c.t.bind(c,55482,23)),c.e("ace").then(c.t.bind(c,39682,23)),c.e("ace").then(c.t.bind(c,3266,23)),c.e("ace").then(c.t.bind(c,1279,23)),c.e("ace").then(c.t.bind(c,68934,23)),c.e("ace").then(c.t.bind(c,50416,23)),c.e("ace").then(c.t.bind(c,62337,23)),c.e("ace").then(c.t.bind(c,30840,23)),c.e("ace").then(c.t.bind(c,72887,23)),c.e("ace").then(c.t.bind(c,23520,23)),c.e("ace").then(c.t.bind(c,64051,23))]);return{default:e.default}}),qM=({classNames:t,code:e,blockId:n})=>{const[o,r]=(0,h.useState)(!1),{announcePolite:a}=vt(),i=async()=>{const l=(0,ha.htmlDecode)(e);await navigator.clipboard.writeText(l),r(!0),setTimeout(()=>r(!1),1e3),a("Copied!")};return(0,s.jsx)("div",{className:t,children:(0,s.jsx)(Et.ArcTooltip,{id:`code-snippet-copy-tooltip-${n}`,text:o?"Copied!":"Copy",children:(0,s.jsx)(Et.ArcButton,{icon:(0,s.jsx)(tt,{name:o?"check":"copy"}),layout:"icon",onClick:i,shape:"square",size:"md",variant:"tertiary"})})})};class eO extends u3.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption({caption:e}){return(0,s.jsx)(ms,{className:"block-text__code-caption",value:e||""})}render(){const{animateBlockEntrance:e,blockId:n,defaultBackgroundColor:o="",getL10nValue:r,initiallyVisible:a,isLearner:i,items:l,labels:u,settings:d,renderCaption:m=this.renderCaptionDelegate}=this.props,{entranceAnimation:p,language:f,paddingBottom:g,paddingTop:v,snippetBackgroundColor:C,snippetColorContrast:x,theme:y,useAdvancedEditor:b,wrapWords:E}=d,L=oe()("block-text block-text--code",{"block-text--padding-top":Number(v)===2,"block-text--padding-bottom":Number(g)===2,"block-text--no-animation":!p}),T={backgroundColor:C},I=C==="#fafafa"||on()(C),S=x??w.Em.DARK;if(!I){const N=Ws({backgroundColor:C,contrast:S});Object.assign(T,{"--color-snippet-contrast":N})}return(0,s.jsx)(Tt,{className:L,defaultBackgroundColor:o,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:a,isLearner:i,children:(0,s.jsx)("div",{className:"block-text__container",children:l.slice(0,1).map(N=>{const k=el({...N,getL10nValue:r});return(0,s.jsx)("div",{className:"block-text__row",children:(0,s.jsx)("div",{"aria-label":u?.a11yBlockCodeSnippet,className:"block-text__col",role:Ci,children:(0,s.jsxs)("figure",{"aria-labelledby":k.figcaptionId,className:"block-text__figure block-text__figure--with-copy",role:"figure",children:[(0,s.jsx)(Nk,{value:N.code,children:B=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(qM,{blockId:n,classNames:"block-text__copy-button",code:B}),b?(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(JM,{editorProps:{$blockScrolling:!0},maxLines:25,mode:f,name:String(N.id),readOnly:!0,setOptions:{enableSnippets:!1,showLineNumbers:!0,tabSize:2,fontSize:"1.6rem",useWorker:!1},theme:y,value:(0,ha.htmlDecode)((0,Io.aj)(B)),width:"100%",wrapEnabled:E})}):(0,s.jsx)("pre",{className:"block-text__code",dangerouslySetInnerHTML:{__html:(0,Io.aj)(B)},dir:"ltr",style:T})]})}),N.caption&&(0,s.jsx)("figcaption",{id:k.figcaptionId,children:m(N)})]})})},N.id)})})})})}}const h3=Yt(eO);
153function tO({accentColor:t,backgroundType:e,blockBackgroundColor:n,noteColor:o,imageBackgroundDefault:r="#ffffff"}){return o!=null&&o!==""?o:sO({accentColor:t,backgroundType:e,blockBackgroundColor:n,imageBackgroundDefault:r})}function sO({accentColor:t,backgroundType:e,blockBackgroundColor:n,imageBackgroundDefault:o="#ffffff"}){if(e!==w.xj.IMAGE&&n==null)return"#000000b3";switch(e){case w.xj.IMAGE:return o;case w.xj.LIGHT:case w.xj.GRAY:return(0,pt.W8)(.9,t);case w.xj.DARK:return"#494949";case w.xj.BLACK:return"#333333";default:switch((0,pt.XC)(n)){case pt.lL.LIGHT:return(0,pt.W8)(.3,n);case pt.lL.MED:return(0,pt.W8)(-.2,n);case pt.lL.DARK:case pt.lL.NEAR_BLACK:return(0,pt.W8)(-.4,n);default:return t}}}function nO(t,e){const n=nn(),{cardMode:o,className:r="",children:a,disabled:i=!1,tag:l="div",overrideBackground:u=!1,style:d={},...m}=t,{cardMode:p,customBackgroundColorContrast:f}=n,v=(0,xe.DX)()?.theme,C=wo(),x=o??p??Un.WHITE,y=En()??"#ffffff",b=x===Un.WHITE,E=C===w.xj.COLOR,L=C===w.xj.ACCENT,T=v?.accentContrast,I=C===w.xj.ACCENT||C===w.xj.COLOR,S=T===w.Em.AUTO&&L||f===w.Em.AUTO&&E,N=C===w.xj.COLOR?f:T,k=[r,"block-card"];if(b)k.push("bg--range-light","block-card--white");else if(i){k.push("block-card--disabled");const B=Ws({backgroundColor:y,contrast:N});S&&(d["--color-text"]=B,d["--color-text-opposite"]=B===ot.S6.DARK?ot.S6.LIGHT:ot.S6.DARK)}else{k.push("block-card--transparent");const B=(0,pt.XC)(y),M=pt.t9[B](y);switch(C){case w.xj.LIGHT:case w.xj.GRAY:k.push("bg--range-light");break;case w.xj.IMAGE:k.push("bg--range-dark");break;case w.xj.DARK:case w.xj.BLACK:k.push("bg--range-dark"),d["--color-background-rgb"]=(0,di.A)(M)?.slice(0,3);break;default:{const H=d["--color-background"]??(u?y:M),P=Ws({backgroundColor:H,contrast:N});I&&P==ot.S6.LIGHT&&k.push("block-card--contrast-light");const j=(0,pt.XC)(H);k.push(`bg--range-${Ja()(j.toLowerCase())}`),d["--color-background"]=H,d["--color-background-rgb"]=(0,di.A)(H)?.slice(0,3);break}}}return(0,s.jsx)(l,{...m,className:k.join(" "),ref:e,style:d,children:a})}const Gs=(0,h.forwardRef)(nO);var oO=c(26372);const kn=q("block-statement");class rO extends oO.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:n,type:o,labels:r,lessonId:a,media:i,settings:l},{paragraph:u}){const d=o==="note",m=n(Array.isArray(i)?{}:i),p=!!m?.audio,f=vo(m,l.audioPosition,!1,"statement"),g=(0,s.jsx)("div",{className:kn("quote"),children:f.renderOrder.map((v,C)=>{if(v==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(ms,{value:u})},`text-${C}`);if(v==="audio"&&p){const x=f.renderOrder.indexOf("audio")<f.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:kn("audio-container",{top:x,bottom:!x}),children:(0,s.jsx)(Zs,{blockId:e,hasPadding:!1,index:e,item:{media:i,id:e},labels:r,lessonId:a,media:i,mediaType:"audio",refs:`items:${e}`})},`audio-${C}`)}return null})});return d?(0,s.jsx)(uO,{getL10nValue:n,media:i,children:g}):g}render(){const{animateBlockEntrance:e,isLearner:n,items:o,renderText:r=this.renderTextDelegate,settings:a,type:i,initiallyVisible:l}=this.props,{entranceAnimation:u,divider:d=!0,dividerPadding:m=bP(i),dividerSize:p=xP(i),noteIcon:f=!0,noteSize:g="sm",statementWidth:v=yP(i)}=a,C=SP(v),x=NP(m),y=jP(p),b=g,E=i==="a"||i==="b"||i==="d",L=i==="note",T=kn({[i]:!0,[`${i}-custom-width-${C}`]:!0,[`${i}-divider-off`]:E&&!d,[`${i}-divider-padding-${x}`]:E&&d,[`${i}-divider-size-${y}`]:E&&d,[`note-size-${b}`]:L,[`note-size-${b}-no-icon`]:L&&!f,"no-animation":!u});return(0,s.jsx)(Tt,{className:T.toString(),children:(0,s.jsx)("div",{className:kn("wrap"),children:(0,s.jsx)("div",{className:kn("container"),children:(0,s.jsx)("div",{className:kn("row"),children:o.slice(0,1).map(I=>(0,s.jsx)(Pt,{animateBlockEntrance:e,animateIn:this.getEntranceAnimationType(),duration:this.getEntranceAnimationDuration(),initiallyVisible:l,isLearner:n,children:(0,s.jsxs)("div",{className:kn("col"),children:[(0,s.jsx)("div",{className:kn("divider-top-container"),children:(0,s.jsx)("div",{className:kn("divider-top")})}),r(this.props,I),(0,s.jsx)("div",{className:kn("divider-bottom")})]})},I.id))})})})})}}const rl=Yt(rO),aO=rl,iO=t=>(0,s.jsx)(rl,{type:"b",...t}),cO=t=>(0,s.jsx)(rl,{type:"c",...t}
153),lO=t=>(0,s.jsx)(rl,{type:"d",...t}),dO=t=>(0,s.jsx)(rl,{type:"note",...t}),uO=({children:t,getL10nValue:e,media:n})=>{const o=nn(),{accentColor:r,cardMode:a,cornerRadius:i,courseColor:l,customBackgroundColorContrast:u,noteIcon:d=!0,noteIconColor:m}=o,p=o.noteColor,f=o.noteColorContrast,{theme:g}=(0,xe.DX)(),v=En(),C=wo(),x=C===w.xj.COLOR,y=C===w.xj.ACCENT,b=g?.accentContrast,E=C===w.xj.DARK||C===w.xj.BLACK,L=p!=null&&p!=="",I=x||y||E||L?Un.TRANSPARENT:a,S=L&&(f??w.Em.AUTO)===w.Em.AUTO||b===w.Em.AUTO&&y||u===w.Em.AUTO&&x,N=(0,h.useMemo)(()=>tO({accentColor:r??l,backgroundType:C,blockBackgroundColor:v,noteColor:p,imageBackgroundDefault:""}),[r,C,v,l,p]),k=L?f??w.Em.AUTO:C===w.xj.COLOR?u:b,B=Ws({backgroundColor:N,contrast:k}),M={"--color-background":N,...(S||L)&&{"--color-text":B},...i&&{"--corner-radius":`${Number(i)}px`},...m&&{"--color-theme-decorative":m},...L&&{"--color-theme":p}},R=kn("note-icon",{off:!d}),P=(e?e(Array.isArray(n)?{}:n):void 0)?.image,j=P?.key&&Object.keys(P).length>0,O=j?(0,He.$D)(P)?(0,Ge.o1)(P.key):(0,Ft.ME)(P):null,U=()=>d?j&&O?(0,s.jsx)("div",{"aria-hidden":!0,className:kn("note-icon__custom"),style:{WebkitMaskImage:`url('${O}')`,maskImage:`url('${O}')`}}):(0,s.jsx)(tt,{name:"circle-info"}):null;return(0,s.jsxs)(Gs,{cardMode:I,className:kn("note-card"),style:M,children:[(0,s.jsx)("div",{className:R,children:U()}),t]})};var bs=c(26372);function m3({ariaLabel:t,children:e,className:n="carousel-controls-item-btn",isActive:o,onClick:r,onKeyDown:a}){return(0,s.jsx)("li",{className:"carousel-controls-item",role:"listitem",children:(0,s.jsx)("button",{"aria-current":o,"aria-label":t,className:n,onClick:r,onKeyDown:a,tabIndex:o?0:-1,type:"button",children:e})})}function pu({children:t,iconNameLeft:e="chevron-left-light",iconNameRight:n="chevron-right-light",isInfinite:o=!0,isRTL:r=!1,labelCarousel:a="Carousel",labelCarouselRoleDesc:i="Carousel",labelSlideControls:l="Slide controls",labelSlideControlsGoToNext:u="Go to next slide",labelSlideControlsGoToPrevious:d="Go to previous slide",labelSlideControlsGoToSlide:m="Go to slide",labelSlideCounterPreposition:p="of",labelSlidePreposition:f="of",labelSlideRoleDesc:g="Slide",onChange:v,ref:C,renderSlideIndicator:x,shouldMouseEmulateTouch:y=!1,shouldUseCounter:b=!1,shouldUseGoToSlide:E=!0}){const L=bs.useId(),[T,I]=bs.useState(0),S=(0,ke.A)(T)??0,N=bs.useRef(null),k=bs.useRef(null),B=bs.useRef(!1),M=bs.useRef(!1),R=bs.useRef(void 0),H=bs.useRef(void 0),P=`carousel-${L}`,j=bs.Children.count(t),O=(0,ke.A)(j),U=bs.useMemo(()=>Array.from({length:j}),[j]),W=j>1;bs.useImperativeHandle(C,()=>
153({navigateToSlide:(we,Be=!0)=>{I(we);const de=N.current?.children?.[we]?.firstElementChild;Be&&de?.focus()}}),[]);const z=bs.useCallback(({activeIndex:we,dir:Be})=>{const de=o?we-1>=0?we-1:j-1:Math.max(0,we-1),se=o?we+1<=j-1?we+1:0:Math.min(j-1,we+1);return Be==="left"?r?se:de:r?de:se},[o,r,j]),re=bs.useCallback(()=>{I(we=>z(r?{activeIndex:we,dir:"right"}:{activeIndex:we,dir:"left"}))},[z,r]),fe=bs.useCallback(()=>{I(we=>z(r?{activeIndex:we,dir:"left"}:{activeIndex:we,dir:"right"}))},[z,r]),Ee=bs.useCallback(we=>{const Be=N.current?.children?.[we],de=N.current;if(Be&&de){const se=Be.getBoundingClientRect(),Ne=de.getBoundingClientRect(),Me=se.left+se.width/2,$e=Ne.left+Ne.width/2,Ae=Me-$e;de.scrollBy({left:Ae,behavior:"smooth"})}},[]),Oe=bs.useCallback(we=>{let Be=!1,de=T;switch(we.key){case"ArrowLeft":Be=!0,de=z({activeIndex:T,dir:"left"});break;case"ArrowRight":Be=!0,de=z({activeIndex:T,dir:"right"});break;case"Home":Be=!0,de=0;break;case"End":Be=!0,de=j-1;break}Be&&(we.stopPropagation(),we.preventDefault()),T!==de&&(N.current?.children?.[de]?.firstChild?.focus(),Ee(de),I(de))},[T,z,Ee,j]);bs.useEffect(()=>{S!==T&&v?.(T)},[T,v,S]),bs.useEffect(()=>{j<O&&T>j-1&&I(j-1)},[T,O,j]),bs.useEffect(()=>{const we=Ae=>{Ae.target.tagName==="IMG"&&Ae.preventDefault(),R.current=Ae.screenX},Be=Ae=>{const at=window.visualViewport?.scale??1,qe=window.getSelection().toString()!=="";if(!M.current&&at<=1.01&&!qe&&R.current!=null){H.current=Ae.screenX;const lt=H.current-R.current;Math.abs(lt)>50&&(window.getSelection().empty(),B.current=!0,R.current=void 0,H.current=void 0,lt<0?I(Dt=>z({activeIndex:Dt,dir:"right"})):I(Dt=>z({activeIndex:Dt,dir:"left"})))}},de=Ae=>{B.current&&Ae.stopPropagation(),B.current=!1,M.current=!1,R.current=void 0,H.current=void 0},se=Ae=>{if(Ae.touches.length>1){M.current=!0;return}Ae.changedTouches.length===1&&Ae.changedTouches[0]&&(R.current=Ae.changedTouches[0].screenX)},Ne=Ae=>{const at=window.visualViewport?.scale??1,qe=window.getSelection().toString()!=="";if(!M.current&&at<=1.01&&!qe&&R.current!=null&&Ae.changedTouches[0]){H.current=Ae.changedTouches[0].screenX;const lt=H.current-R.current;Math.abs(lt)>50&&(B.current=!0,R.current=void 0,H.current=void 0,lt<0?I(Dt=>z({activeIndex:Dt,dir:"right"})):I(Dt=>z({activeIndex:Dt,dir:"left"})))}},Me=()=>{B.current=!1,M.current=!1,R.current=void 0,H.current=void 0},$e=k.current;return y&&($e?.addEventListener("mousedown",we,{capture:!0}),$e?.addEventListener("mousemove",Be,{capture:!0}),$e?.addEventListener("click",de,{capture:!0})),$e?.addEventListener("touchstart",se,{passive:!0}),$e?.addEventListener("touchmove",Ne,{passive:!0}),$e?.addEventListener("touchend",Me,{passive:!0}),$e?.addEventListener("touchcancel",Me,{passive:!0}),()=>{y&&($e?.removeEventListener("mousedown",we),$e?.removeEventListener("mousemove",Be),$e?.removeEventListener("mouseup",Me)),$e?.removeEventListener("touchstart",se),$e?.removeEventListener("touchmove",Ne),$e?.removeEventListener("touchend",Me),$e?.removeEventListener("touchcancel",Me)}},[z,y,j]);const Ue=bs.useCallback(we=>()=>{Ee(we),I(we)},[Ee]);return(0,s.jsxs)("div",{"aria-label":a,"aria-roledescription":i,className:"carousel",dir:r?"rtl":void 0,role:"region",style:{"--carousel-active-index":T},children:[W&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{"aria-label":l,className:"carousel-controls",role:"group",children:[E&&(0,s.jsx)("ul",{className:"carousel-controls-items",ref:N,role:"list",children:U.map((we,Be)=>{const de=T===Be,se=Ue(Be);return x?x({index:Be,isActive:de,onClick:se,onKeyDown:Oe}):(0,s.jsx)(m3,{ariaLabel:m+" "+(Be+1),isActive:de,onClick:se,onKeyDown:Oe,children:(0,s.jsx)(tt,{className:"carousel-controls-item-btn-icon",name:de?"circle":"circle-solid"})},Be)})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:T===0,"aria-label":d,className:"carousel-controls-prev",onClick:!o&&T===0?void 0:re,type:"button",children:(0,s.jsx)(tt,{className:"carousel-controls-prev-icon",name:r?n:e})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:T===j-1,"aria-label":u,className:"carousel-controls-next",onClick:!o&&T===j-1?void 0:fe,type:"button",children:(0,s.jsx)(tt,{className:"carousel-control
153s-next-icon",name:r?e:n})}),b&&(0,s.jsxs)("div",{className:"carousel-controls-counter",children:[(0,s.jsx)("div",{className:"carousel-controls-counter-text",children:`${T+1} ${p} ${j}`}),(0,s.jsx)("div",{className:"carousel-controls-counter-line",children:(0,s.jsx)("div",{className:"carousel-controls-counter-line-runner",style:{width:`${Number(((T+1)/j).toFixed(2))*100}%`}})})]})]})}),(0,s.jsx)("div",{"aria-live":"polite",className:"carousel-slides",ref:k,children:bs.Children.map(t,(we,Be)=>{const de=`${P}-${Be}-counter`;return(0,s.jsxs)("div",{"aria-labelledby":de,"aria-roledescription":g,className:"carousel-slide",hidden:T!==Be,inert:T!==Be,role:"group",children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:de,children:`${Be+1} ${f} ${j}`}),we]})})})]})}var al=c(26372);const hO="div",p3=al.createContext(void 0);function mO({children:t,element:e,...n},o){const[r,a]=al.useState(null);return(0,s.jsx)(p3.Provider,{value:r,children:al.createElement(e??hO,{...n,ref:o},t,(0,s.jsx)("div",{ref:a}))})}const fu=al.forwardRef(mO);function Ute(){return al.useContext(p3)}function Uh(t){const e=n=>{const o=(0,xe.Wz)();return(0,s.jsx)(t,{...n,isRTL:o})};return e.displayName=`withRTL(${t.displayName||t.name})`,e}const vu=({blockId:t,carouselRef:e,children:n,items:o})=>{const r=(0,h.useRef)(null),a=e??r;return(0,h.useEffect)(()=>{const i=l=>{const{path:u}=l.detail,{blockId:d,cardId:m}=Ya(u,["block","card"]);if(d===t){const p=o.findIndex(f=>f.id===m);p>
153=0&&a.current?.navigateToSlide?.(p,!1)}};return window.addEventListener(Zt,i),()=>{window.removeEventListener(Zt,i)}},[o,t,a]),(0,s.jsx)(s.Fragment,{children:n({carouselRef:e})})},Ot=q("block-quote"),il=({avatar:t,alt:e,l10nId:n,showAvatar:o})=>o?(0,s.jsx)(In,{alt:(0,He.Ll)(e),className:Ot("avatar"),"data-l10n-id":n,src:t}):null,pO=({alt:t,animateBlockEntrance:e,avatar:n,children:o,l10nId:r,initiallyVisible:a,isAuthorBlank:i=!1,isLearner:l,showAvatar:u,type:d})=>{const m=Ot("col",{"no-avatar":!n}),p=n?(0,s.jsx)("div",{className:Ot("image"),children:(0,s.jsx)("div",{className:Ot("avatar-wrap"),children:d==="c"?(0,s.jsx)(Pt,{animateBlockEntrance:e,animateIn:"fadeInLeftSmall",initiallyVisible:a,isLearner:l,children:(0,s.jsx)(il,{alt:t,avatar:n,l10nId:r,showAvatar:u})}):(0,s.jsx)(il,{alt:t,avatar:n,l10nId:r,showAvatar:u})})}):null;return(0,s.jsx)("div",{className:Ot("container"),children:(0,s.jsx)("div",{className:Ot("row"),children:(0,s.jsxs)("div",{className:m,children:[(0,s.jsx)("div",{className:Ot("divider-top")}),(0,s.jsxs)("div",{className:Ot("figure",{"no-author":i,"no-avatar":!i&&!u}),children:[p,o]}),(0,s.jsx)("div",{className:Ot("divider-bottom")})]})})})},fO=({avatar:t,children:e,alt:n,l10nId:o,showAvatar:r})=>(0,s.jsx)("div",{className:Ot("figure"),children:(0,s.jsx)("div",{className:Ot("container"),children:(0,s.jsxs)("div",{className:Ot("row"),children:[(0,s.jsx)("div",{className:Ot("col"),children:t&&r?(0,s.jsx)(il,{alt:n,avatar:t,l10nId:o,showAvatar:r}):null}),(0,s.jsx)("div",{className:Ot("col"),children:e})]})})}),vO=({background:t,avatar:e,children:n,alt:o,l10nId:r,showAvatar:a})=>(0,s.jsx)("div",{className:Ot("background"),style:{backgroundImage:t??""},children:(0,s.jsx)("div",{className:Ot("container"),children:(0,s.jsx)("div",{className:Ot("row"),children:(0,s.jsx)("div",{className:Ot("col"),children:(0,s.jsxs)("div",{className:Ot("figure"),children:[e&&a?(0,s.jsx)(il,{alt:o,avatar:e,l10nId:r,showAvatar:a}):null,n]})})})})});class gO extends h.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,n){const o=e?.alpha??LP(n),r=(0,Ft.ME)(e),a=EP(n);return(0,th.A)({alpha:o,color:a,url:r})?.backgroundImage}renderText(e,{paragraph:n}){const o=n||"",r=Ot("text",{blank:o===""}).toString();return(0,s.jsx)(ms,{className:r,value:o})}renderCaption(e,{name:n}){const o=Ot("caption",{blank:n===""}).toString();return(0,s.jsx)(ms,{className:o,value:n})}render(){const{animateBlockEntrance:e,getL10nValue:n,initiallyVisible:o,isLearner:r,items:a,settings:i,type:l,renderText:u=this.renderTextDelegate,renderCaption:d=this.renderCaptionDelegate}=this.props,m=92,{avatarSize:p=Av(l),divider:f=!0,dividerSize:g=m,entranceAnimation:v,quoteAlignment:C="left",quoteIcon:x=!0,quotesInline:y,quotePadding:b=2,quoteWidth:E=kv(l)}=i,[L]=a,{avatar:T,background:I}=L,S=n(T?.media)?.image,N=(0,Ft.xm)(S),k=S?.alt,B=(0,Lt.pP)(T.media),M=n(I?.media)?.image,R=M?.overlayColor,H=this.getBackgroundImageUrl(M,R),P=i?.avatar??N!=="",j=N&&N!=="",O=l==="background",U=O&&R==="light",W=Pv(E),z=wv(b),re=Rv(l,p),fe=IP(g),Ee=l==="a",Oe=l==="c"||O,Ue=l!=="b"&&!O,we=L?.name==="",Be=L?.paragraph==="",de=Ot(null,{[l]:!0,[`${l}-custom-width-${W}`]:!0,[`${l}-divider-off`]:Ee&&!f,[`${l}-divider-size-${fe}`]:Ee&&f,[`${l}-quote-padding-${z}`]:!0,[`${l}-align-${C}`]:O,[`${l}-${W}-no-avatar`]:!N||!P,[`${l}-avatar-size-${re}`]:P&&j,[`${l}-quote-icon-off`]:Oe&&!x,[`${l}-legacy-quote-mark`]:Ue&&!y,[`${l}-overlay-legacy`]:!R,[`${l}-overlay-light`]:U,"no-animation":!v}).toString(),se=(0,s.jsx)("div",{className:Ot("wrap",{blank:we||Be}),children:(0,s.jsx)(Pt,{animateBlockEntrance:e,animateIn:this.getQuoteEntranceAnimationType(),initiallyVisible:o,isLearner:r,siblingDelay:.15,children:(0,s.jsxs)("figure",{children:[(0,s.jsx)("blockquote",{children:u(this.props,L)}),(0,s.jsx)("figcaption",{children:d(this.props,L)})]})})});let Ne;switch(l){case"d":Ne=(0,s.jsx)(fO,{alt:k,avatar:N,initiallyVisible:o,l10nId:B,showAvatar:P,type:l,children:se});break;case"background":Ne=(0,s.jsx)(vO,{alt:k,avatar:N,background:H,initiallyVisible:o,l10nId:B,showAvatar:P,type:l,children:se});break;default:Ne=(0,s.jsx)(pO,{alt:k,animateBlockEntrance:e,avatar:N,initiallyVisible:o,isAuthorBlank:we,isLearner:r,l10nId:B,showAvatar:P,type:l,children:se})}return(0,s.jsx)(Tt,{className:de,children:Ne})}}const cl=Yt(gO),CO=(t=>(0,s.jsx)(cl,{...t})),xO=t=>(0,s.jsx)(cl,{type:"b",...t}),bO=t=>(0,s.jsx)(cl,{type:"c",...t}),yO=t=>(0,s.jsx)(cl,{type:"d",...t}),LO=t=>(0,s.jsx)(cl,{type:"background",...t});class EO extends h.Component{static get defaultProps(){return{type:"carousel",items:[],onStep:Function.prototype,getL10nValue:()=>{}}}handleChangeCarousel=e=>{this.props.onStep?.(this.props.items[e])};renderText=(e,{paragraph:n})=>{const o=n||"",r=Ot("text",{blank:n===""}).toString();return(0,s.jsx)(ms,{className:r,value:o})};renderCaption=(e,{name:n})=>
153{const o=Ot("caption",{blank:n===""}).toString();return(0,s.jsx)(ms,{className:o,value:n})};render(){const{blockId:e,animateBlockEntrance:n,editable:o,getL10nValue:r,initiallyVisible:a=!1,isRTL:i,isLearner:l,isLessonBlocksList:u=!1,items:d,labels:m,previewType:p,settings:f,renderText:g=this.renderText,renderCaption:v=this.renderCaption,type:C}=this.props,{avatar:x=!0,avatarSize:y=Av(C),entranceAnimation:b,quotesInline:E,quotePadding:L=2,quoteWidth:T=kv(C),showBorder:I=!0}=f,N=C!=="b"&&!(C==="background"),k=Pv(T),B=wv(L),M=Rv(C,y),R=p==="mobile-portrait"||p==="mobile-landscape",H=Ot({[C]:!0,[`${C}-custom-width-${k}`]:!0,[`${C}-quote-padding-${B}`]:!0,[`${C}-${k}-no-avatar`]:!x,[`${C}-avatar-size-${M}`]:x,[`${C}-legacy-quote-mark`]:!u&&N&&!E,"no-animation":!b,"hide-border":!I,editable:o}).toString(),P=d.map(j=>{const O=r(j?.avatar?.media)?.image,U=O?.alt,W=(0,Ft.xm)(O),z=x??W!=="",re="l10nId"in j.avatar.media?j.avatar.media.l10nId:void 0;return(0,s.jsx)("div",{className:Ot("slide"),children:(0,s.jsxs)("figure",{className:Ot("figure"),children:[W&&x?(0,s.jsx)(il,{alt:U,avatar:W,l10nId:re,showAvatar:z}):null,(0,s.jsx)("blockquote",{children:g(this.props,j)}),(0,s.jsx)("figcaption",{children:v(this.props,j)})]})},j.id)});return(0,s.jsx)("div",{className:Ot("slider-container"),children:(0,s.jsx)(Tt,{className:H,children:(0,s.jsx)(fu,{className:Ot("wrap"),children:(0,s.jsx)("div",{className:Ot("container"),children:(0,s.jsx)("div",{className:Ot("col"),children:(0,s.jsx)(Gs,{className:Ot("box"),children:(0,s.jsx)(Pt,{animateBlockEntrance:n,animateIn:"fadeInUp",initiallyVisible:a,isLearner:l,children:(0,s.jsx)(vu,{blockId:e,items:d,children:({carouselRef:j})=>(0,s.jsx)(pu,{isRTL:i,labelCarousel:m?.a11yBlockQuoteCarousel,labelCarouselRoleDesc:m?.a11yBlockQuoteCarouselRoleDescription,labelSlideControls:m?.a11yBlockQuoteCarouselSlideControls,labelSlideControlsGoToNext:m?.a11yBlockQuoteCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:m?.a11yBlockQuoteCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:m?.a11yBlockQuoteCarouselSlideControlsGoToSlide,labelSlideCounterPreposition:m?.blocksPreposition,labelSlidePreposition:m?.a11yBlockQuoteCarouselSlidePreposition,labelSlideRoleDesc:m?.a11yBlockQuoteCarouselSlideRoleDescription,onChange:this.handleChangeCarousel,ref:j,shouldMouseEmulateTouch:R,children:P})})})})})})})})})}}const TO=Uh(Yt(EO));var f3=c(26372);const Gn=q("block-list"),IO=class extends f3.Component{static get defaultProps(){return{editable:!1,items:[],onStep:Function.prototype,type:"numbered",getL10nValue:()=>{}}}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:n,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:l,labels:u,lessonId:d,media:m,onStep:p,settings:f,type:g}=this.props,{audioPosition:v,bulletPadding:C,entranceAnimation:x,listItemColor:y,listItemColorContrast:b,listWidth:E}=f,L=r(Array.isArray(m)?{}:m),T=vo(L,v),I=TP(C),S=Rh(E),N=Gn({[g]:!0,[`${g}-custom-width-${S}`]:!0,[`${g}-bullet-padding-${I}`]:!0,"no-animation":!x}),k=g==="numbered"?"ol":"ul";return(0,s.jsx)(Tt,{className:N.toString(),defaultBackgroundColor:n,children:(0,s.jsx)("div",{className:Gn("container"),children:(0,s.jsx)("div",{className:Gn("row"),children:(0,s.jsx)(fu,{className:Gn("col"),children:(0,s.jsx)("div",{className:"blocks-list__container",children:T.renderOrder.map((B,M)=>{if(B==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(k,{className:Gn("list"),role:"list",children:(0,s.jsx)(Pt,{animateBlockEntrance:t,animateIn:"fadeInRight",className:Gn("animated-item").toString(),initiallyVisible:a,isLearner:i,siblingDelay:.25,children:l.map((R,H)=>{const P={key:R.id,index:H,lessonId:d,blockId:e,type:g,editable:o,nextNumber:this.nextNumber.bind(this),onStep:p,listItemColor:y,listItemColorContrast:b,...R};return this.props.renderItem?this.props.renderItem(P):(0,h.createElement)(SO,{...P,key:P.key})})})})},`text-${M}`);if(B==="audio")return(0,s.jsx)("div",{className:oe()("block-list__media",{"audio-on-top":T.renderOrder[0]==="audio","audio-on-bottom":T.renderOrder[0]!=="audio"}),children:(0,s.jsx)(Zs,{blockId:e,hasPadding:!1,index:e,item:{media:m,id:e},labels:u,lessonId:d,media:m,refs:`items:${e}`})},`${B}-${M}`)})})})})})})}};class SO extends f3.Component{renderTextDelegate;animateRef=null;static get defaultProps(){return{className:""}}constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this)}renderText(e){return(0,s.jsx)(ms,{...e})}handleChangeCheckbox=()=>{this.props.onStep(this.props)};render(){const{type:e,id:n,index:o,number:r,paragraph:a,editable:i,className:l,renderText:u=this.renderTextDelegate,style:d,listItemColor:m,listItemColorContrast:p}=this.props,f={allowTabNavigation:!0,className:"block-list__content brand--linkColor cursorAuto",editable:i,id:n,value:a};return(0,s.jsxs)("li",{className:oe()("block-list__item",`block-list__item--${e}`,l),ref:g=>{this.animateRef=g},role:"listitem",style:d,children:[e==="numbered"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Gn("number"),style:m?{backgroundColor:m,color:Ws({contrast:p||w.Em.AUTO,backgroundColor:m})}:void 0,children:r||o+1}),u(f)]}),e==="bulleted"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"visually-hidden-alw
153ays",children:"\u2022"}),(0,s.jsx)(tt,{className:Gn("bullet"),name:"circle-solid",style:m?{color:m}:void 0}),u(f)]}),e==="checkboxes"&&(0,s.jsxs)("label",{className:Gn("option"),children:[(0,s.jsx)("input",{className:Gn("checkbox-input"),onChange:this.handleChangeCheckbox,type:"checkbox"}),(0,s.jsx)("div",{className:Gn("checkbox"),style:m?{borderColor:m,"--color-background":m}:void 0,children:(0,s.jsx)(tt,{className:Gn("checkbox__icon"),name:"check",style:m?{color:Ws({contrast:p||w.Em.AUTO,backgroundColor:m})}:void 0})}),u(f)]})]})}}const NO=Yt(IO),$h=t=>(0,s.jsx)(NO,{...t}),jO=$h,kO=t=>(0,s.jsx)($h,{type:"checkboxes",...t}),AO=t=>(0,s.jsx)($h,{type:"bulleted",...t});var Wh=c(26372);const _h=t=>["hero","full","aside"].includes(t);class RO extends Wh.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,n){return(0,s.jsx)(ms,{className:"block-image__caption",value:n})}render(){const{aiMagicIcon:e,aiOverlay:n,animateBlockEntrance:o,blockId:r,defaultBackgroundColor:a,editable:i,getL10nValue:l,initiallyVisible:u,isLearner:d,items:m,type:p,labels:f,lessonId:g,settings:v,renderCaption:C=this.renderCaptionDelegate}=this.props,{entranceAnimation:x,cornerRadius:y,zoomOnClick:b}=v,E=oe()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!x}),L=m[0],{id:T,caption:I}=L,{image:S,audio:N}=l(L.media)??{},k=S?.alt,B=(0,Ft.ME)(S),M=S?.dimensions,R=M?.width||M?.originalWidth,H=M?.height||M?.originalHeight,P=el({caption:I,editable:i,id:T,getL10nValue:l}),j=!d&&!B,O=R&&H?R/H:void 0,U=S?.link?l(S.link.destination):void 0,W=S?.link&&typeof U=="string"?{type:S.link.type,destination:U}:void 0,z=oe()("block-image__image",{"block-image__image--audio-overlay":!!N});return(0,s.jsx)(Tt,{className:E,defaultBackgroundColor:a,children:(0,s.jsx)("div",{className:"block-image__container",children:(0,s.jsx)("div",{className:"block-image__row",children:(0,s.jsx)("div",{className:"block-image__col",children:(0,s.jsx)(Pt,{animateBlockEntrance:o,initiallyVisible:u,isLearner:d,children:(0,s.jsxs)(P.tagName,{"aria-labelledby":P.figcaptionId,className:"block-image__figure",role:P.role,children:[(0,s.jsxs)("div",{className:z,children:[j?(0,s.jsxs)("div",{className:"block-image__waiting",style:{aspectRatio:O},children:[(0,s.jsx)("div",{children:e}),(0,s.jsx)("div",{className:"block-image__waiting-text",children:"Waiting for image\u2026"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(bi,{alt:k,cornerRadius:y,disableZoom:!b,height:H,l10nId:(0,Lt.pP)(L.media),labels:f,link:W,maxHeight:p==="full"?380:900,src:B,width:R}),N&&_h(p)&&(0,s.jsx)(Zs,{blockId:r,cornerRadius:y,index:`${r}-${T}-0`,isOverlayAudio:!0,item:L,labels:f,lessonId:g,media:L.media,mediaType:"audio"})]}),n&&(0,s.jsx)("div",{className:"block-image__ai-overlay",children:n})]}),(i||I)&&(0,s.jsx)("figcaption",{id:P.figcaptionId,children:C(T,I)})]})})})})})})}}const PO=Yt(RO),wO=(t,e,n,o,r)=>e?r:(0,s.jsx)(Pt,{animateBlockEntrance:t,initiallyVisible:n,isLearner:o,children:r});class MO extends Wh.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,n){return(0,s.jsx)(ms,{className:"block-image__text",value:n})}renderCaption(e,n){return(0,s.jsx)(ms,{className:"block-image__caption",value:n})}renderImage(e,n,o,r){const{blockId:a,editable:i,lessonId:l,renderCaption:u=this.renderCaptionDelegate,getL10nValue:d}=this.props,m=d(o.media),p=m?.image,f=m?.audio,g=p?.alt,v=(0,Ft.ME)(p),C=p?.dimensions,x=C?.width||C?.originalWidth,y=C?.height||C?.originalHeight,b=el({caption:n,editable:i,id:e,getL10nValue:d}),{animateBlockEntrance:E,initiallyVisible:L,isLearner:T,labels:I,settings:{cornerRadius:S,zoomOnClick:N}}=this.props,k=oe()("block-image__image",{"block-image__image--audio-overlay":!!f}),B=p?.link?d(p.link.destination):void 0,M=p?.link&&typeof B=="str
153ing"?{type:p.link.type,destination:B}:void 0;return(0,s.jsx)(Pt,{animateBlockEntrance:E,animateIn:r==="right"?"fadeInRight":"fadeInLeft",initiallyVisible:L,isLearner:T,children:(0,s.jsxs)(b.tagName,{"aria-labelledby":b.figcaptionId,className:"block-image__figure",role:b.role,children:[(0,s.jsxs)("div",{className:k,children:[(0,s.jsx)(bi,{alt:g,cornerRadius:S,disableZoom:!N,height:y,l10nId:(0,Lt.pP)(o?.media),labels:I,link:M,maxHeight:900,src:v,width:x}),f&&_h("aside")&&(0,s.jsx)(Zs,{blockId:a,cornerRadius:S,index:`${a}-${e}-0`,isOverlayAudio:!0,item:o,labels:I,lessonId:l,media:o.media,mediaType:"audio"})]}),(i||n)&&(0,s.jsx)("figcaption",{id:b.figcaptionId,children:u(e,n)})]})})}render(){const{defaultBackgroundColor:e,items:n,renderParagraph:o=this.renderParagraphDelegate,settings:r,type:a}=this.props,{entranceAnimation:i,imagePosition:l,imageSize:u}=r,d=l==="right",m=oe()(`block-image block-image--${a}`,{"block-image--small":u==="small","block-image--large":u==="large","block-image--reverse":d,"block-image--no-animation":!i}),p=n[0],{id:f,caption:g}=p,v="paragraph"in p?p.paragraph:void 0;return(0,s.jsx)(Tt,{className:m,defaultBackgroundColor:e,children:(0,s.jsx)("div",{className:"block-image__container",children:(0,s.jsxs)("div",{className:"block-image__row",children:[(0,s.jsx)("div",{className:"block-image__col",children:d?o(f,v):this.renderImage(f,g,p,"left")}),(0,s.jsx)("div",{className:"block-image__col",children:d?this.renderImage(f,g,p,"right"):o(f,v)})]})})})}}const OO=Yt(MO);class DO extends Wh.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,n){return(0,s.jsx)(ms,{className:"block-image__caption",value:n})}renderOverlay(e,n){return(0,s.jsx)(ms,{className:"block-image__paragraph",value:n})}renderOverlayCaption(e,n){const{animateBlockEntrance:o,initiallyVisible:r,isLearner:a,renderOverlay:i=this.renderOverlayDelegate}=this.props;return(0,s.jsx)("div",{className:"block-image__container",children:(0,s.jsx)("div",{className:"block-image__row",children:(0,s.jsx)("div",{className:"block-image__col",children:(0,s.jsx)(Pt,{animateBlockEntrance:o,animateIn:"fadeInUp",duration:1,initiallyVisible:r,isLearner:a,children:i(e,n)})})})})}render(){const{animateBlockEntrance:e,blockId:n,defaultBackgroundColor:o,editable:r,getL10nValue:a,initiallyVisible:i,isLearner:l,items:u,labels:d,lessonId:m,settings:p,type:f,renderCaption:g=this.renderCaptionDelegate}=this.props,{entranceAnimation:v,opacity:C,opacityColor:x}=p,y=eh(p?.backgroundColor,o),b=oe()(`block-image block-image--${f}`,"block-image--flag-dimensions",{"block-image--no-animation":!v,"block-image--dark":(0,pt.cP)(y)}),E={opacity:C||.6,backgroundColor:x||"transparent"},L=u[0],{id:T,caption:I}=L,S=a(L.media),N=S?.image,k=S?.audio,B=N?.key,M=(0,Ft.ME)(N),R=N?.dimensions,H=R?.width||R?.originalWidth,P=R?.height||R?.originalHeight,j=(0,He.Ll)(N?.alt),O=f==="overlay",U=el({caption:I,editable:r,id:T,isOverlayType:O,getL10nValue:a});return(0,s.jsxs)(Tt,{"aria-labelledby":U.figcaptionId,className:b,defaultBackgroundColor:o,role:U.role,tag:U.tagName,children:[wO(e,O,i,l,(0,s.jsxs)("div",{className:"block-image__figure",children:[B&&(0,s.jsxs)("div",{className:"block-image__image","data-l10n-id":(0,Lt.pP)(L?.media),style:{backgroundImage:`url('${M}')`},children:[(0,s.jsx)(In,{alt:j,height:P,src:M,width:H}),(0,s.jsx)("div",{className:"block-image__overlay",style:E}),k&&_h(f)&&(0,s.jsx)(Zs,{blockId:n,index:`${n}-${T}-0`,isOverlayAudio:!0,item:L,labels:d,lessonId:m,media:L.media,mediaType:"audio"})]}),O?this.renderOverlayCaption(T,I):null]})),!O&&(r||I)&&(0,s.jsx)("figcaption",{className:"block-image__container",id:U.figcaptionId,children:g(T,I)})]})}}const Gh=Yt(DO),BO=t=>(0,s.jsx)(Gh,{type:"overlay",...t}),HO=t=>(0,s.jsx)(Gh,{type:"banner",...t});var FO=c(26372);function v3(t){class e extends FO.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,s.jsx)(ms,{allowTabNavigation:a,className:"block-gallery__caption",value:r})}render(){const{renderCaption:o=this.renderCaptionDelegate}=this.props;return(0,s.jsx)(t,{...this.props,renderCaption:o})}}return e}var gu=c(26372);const g3=q("block-gallery-carousel");
153function VO({blockId:t,animateBlockEntrance:e,defaultBackgroundColor:n,editable:o,initiallyVisible:r,isLearner:a,labels:i,lessonId:l,items:u,onStep:d,previewType:m,renderCaption:p,settings:f}){u||=[];const[g,v]=gu.useState(0),C=gu.useCallback(E=>{v(E),d?.(u[E])},[u,d]),x=m===ot.o4.MOBILE_PORTRAIT||m===ot.o4.MOBILE_LANDSCAPE,y=g3({noAnimation:!f?.entranceAnimation||jn()}).toString(),b=(0,xe.Wz)();return(0,s.jsx)(Tt,{className:y,defaultBackgroundColor:n,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)(fu,{className:g3("container").toString(),children:(0,s.jsx)(vu,{blockId:t,items:u,children:({carouselRef:E})=>(0,s.jsx)(pu,{isRTL:b,labelCarousel:i?.a11yBlockImageCarousel,labelCarouselRoleDesc:i?.a11yBlockImageCarouselRoleDescription,labelSlideControls:i?.a11yBlockImageCarouselSlideControls,labelSlideControlsGoToNext:i?.a11yBlockImageCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:i?.a11yBlockImageCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:i?.a11yBlockImageCarouselSlideControlsGoToSlide,labelSlideCounterPreposition:i?.blocksPreposition,labelSlidePreposition:i?.a11yBlockImageCarouselSlidePreposition,labelSlideRoleDesc:i?.a11yBlockImageCarouselSlideRoleDescription,onChange:C,ref:E,shouldMouseEmulateTouch:x,children:u.map((L,T)=>(0,s.jsx)(UO,{activeIndex:g,blockId:t,editable:o,index:T,item:L,labels:i,lessonId:l,renderCaption:p,settings:f},L.id))})})})})})}const zO=v3(VO),Kh=q("block-gallery-carousel-item");function UO({activeIndex:t,blockId:e,editable:n,index:o,item:r,labels:a,lessonId:i,renderCaption:l,settings:u}){const[d,m]=gu.useState(!1),{image:p,audio:f}=(0,et.QQ)(r.media),g=(0,et.QQ)(p?.link?.destination),v=p?.dimensions,C=gu.useCallback(()=>{m(!0)},[]);return(0,s.jsxs)("figure",{className:Kh(),children:[n&&!d&&(0,s.jsx)("div",{className:Kh("loading"),children:"Loading image..."}),(0,s.jsxs)("div",{className:Kh("image-container",{"audio-overlay":!!f}),children:[(0,s.jsx)(bi,{alt:p?.alt,cornerRadius:u?.cornerRadius,disableZoom:!u?.zoomOnClick,height:v?.height||v?.originalHeight,l10nId:(0,Lt.pP)(r?.media),labels:a,link:p?.link&&typeof g=="string"?{type:p.link.type,destination:g}:void 0,maxHeight:900,onLoad:C,src:(0,Ft.ME)(p),width:v?.width||v?.originalWidth}),f&&(0,s.jsx)(Zs,{blockId:e,cornerRadius:u?.cornerRadius,index:`${e}-${r.id}-${o}`,isOverlayAudio:!0,item:r,labels:a,lessonId:i,media:r.media,mediaType:"audio",shouldPause:t!==o})]}),(n||r.caption)&&d&&(0,s.jsx)("figcaption",{children:l(r.id,r.caption)})]})}const $O=({alt:t,cornerRadius:e,disableZoom:n,height:o,l10nId:r,labels:a,link:i,src:l,width:u})=>(0,s.jsx)("div",{className:"block-gallery__image",children:(0,s.jsx)(bi,{alt:t,cornerRadius:e,disableZoom:n,height:o,l10nId:r,labels:a,link:i,maxHeight:900,src:l,width:u})}),WO=t=>{switch(t){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}};function _O(t){return(0,s.jsx)(zO,{...t})}class GO extends h.Component{static get defaultProps(){return{blockId:"",getL10nValue:()=>{},items:[],lessonId:"",width:2}}render(){const{animateBlockEntrance:e,defaultBackgroundColor:n,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:l,labels:u,renderCaption:d,settings:m,width:p}=this.props,{entranceAnimation:f,cornerRadius:g,zoomOnClick:v}=m,C=oe()(`block-gallery block-gallery--${WO(p)}`,{"block-gallery--no-animation":!f||jn()});return(0,s.jsx)(Tt,{className:C,defaultBackgroundColor:n,children:(0,s.jsx)("div",{className:"block-gallery__container",children:(0,s.jsx)("div",{className:"block-gallery__row",children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:a,isLearner:i,siblingDelay:.25,children:l.map(x=>{const{id:y}=x,b=x.caption,E=r(x.media)?.image,L=E?.alt,T=E?.key,I=E?.dimensions,S=I?.width||I?.originalWidth,N=I?.height||I?.originalHeight,k=(0,Ft.ME)(E),B=r(E?.link?.destination),M=el({caption:b,editable:o,id:y,getL10nValue:this.props.getL10nValue});return(0,s.jsx)("div",{className:"block-gallery__col",children:(0,s.jsxs)(M.tagName,{"aria-labelledby":M.figcaptionId,className:"block-gallery__figure",role:M.role,children:[T&&(0,s.jsx)($O,{alt:L,cornerRadius:g,disableZoom:!v,height:N,l10nId:(0,Lt.pP)(x?.media),labels:u,link:E?.link&&typeof B=="str
153ing"?{type:E.link.type,destination:B}:void 0,src:k,width:S}),(o||b)&&(0,s.jsx)("figcaption",{id:M.figcaptionId,children:d(y,b)})]})},y)})})})})})}}const Qh=v3(Yt(GO)),Zh=q("block-divider"),Yh=({isLearner:t,labels:{numberedDividerGroup:e},number:n,settings:o,type:r="divider"})=>{const{entranceAnimation:a}=o,i=r==="numbered",u=Zh({authoring:!t,spacing:r==="spacing",numbered:i,"no-animation":!a}).toString(),d=i?(0,s.jsxs)("div",{className:Zh("wrap__number"),children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:e}),n]}):null;return(0,s.jsx)(Tt,{className:u,children:(0,s.jsx)("div",{className:Zh("wrap",{authoring:!t&&!i}),children:d})})},KO=Yh,QO=t=>(0,s.jsx)(Yh,{type:"numbered",...t}),ZO=t=>(0,s.jsx)(Yh,{type:"spacing",...t});var YO=c(59252),XO=c.n(YO),JO=c(96231),C3=c.n(JO),qO=c(99858),Cu=c.n(qO),eD=c(23180),xu=c.n(eD),bu=c(26372);const tD=30,x3=sh("blockSettings");class sD extends bu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],lessonId:"",onStep:()=>{}};render(){const{animateBlockEntrance:e,blockId:n,editable:o,initiallyVisible:r,isLearner:a,items:i,labels:l,lessonId:u,onStep:d,settings:m,enableVideoPlaybackSpeed:p}=this.props,{entranceAnimation:f,accordionBehavior:g="keepOpen"}=m,v=oe()("blocks-accordion",{"blocks-accordion--no-animation":!f});return(0,s.jsx)(Tt,{className:v,"data-block-id":n,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,duration:.75,initiallyVisible:r,isLearner:a,children:(0,s.jsx)("div",{className:"blocks-accordion__container",children:(0,s.jsx)("div",{className:"blocks-accordion__row",children:(0,s.jsx)("div",{className:"blocks-accordion__col",children:(0,s.jsx)(lD,{blockId:n,editable:o,enableVideoPlaybackSpeed:p,items:i,keepOpen:g==="keepOpen",labels:l,lessonId:u,onStep:d,settings:m})})})})})})}}const nD={isOpen:!1,isActive:!1},oD=t=>(e,{id:n})=>Object.assign({},e,{[n]:t[n]||nD}),b3=(t,e)=>e.reduce(oD(t),{}),rD=(t,e)=>(n,o)=>{const r=t==o,a=r?!n.isOpen:n.isOpen,i=r&&!n.isOpen;return{isOpen:e?a:i,isActive:r}},aD=t=>(e,n)=>{const o=n==t;return{isOpen:o,isActive:o}},iD=t=>(e,n)=>({isOpen:n==t,isActive:e.isActive});class cD extends bu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],keepOpen:!1,lessonId:"",onStep:()=>{}};constructor(e){super(e);const{items:n}=this.props;this.state={itemStatusMap:b3({},n)},this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){window.addEventListener(Zt,this.handleNavtoTab)}componentWillUnmount(){window.removeEventListener(Zt,this.handleNavtoTab)}handleNavtoTab(e){const n=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;if(n===this.props.blockId){const r=this.props.items.findIndex(({id:m})=>m===o),{items:a,onStep:i}=this.props,{itemStatusMap:l}=this.state,u=a[r].id,d=aD(u);this.setState({itemStatusMap:ma()(d,l)}),open&&i(a[r])}}UNSAFE_componentWillReceiveProps(e){const n=e.items,o=Cs()(n)!==Cs()(this.props.items);!e.keepOpen&&this.props.keepOpen?this.updateMapForOneAtATimePreference():o&&this.rebuildItemStatusMap(n)}updateMapForOneAtATimePreference(){const{itemStatusMap:e}=this.state,{items:n}=this.props,o=XO()(a=>e[a.id].isOpen,n);if(!o)return;const r=iD(o.id);this.setState({itemStatusMap:ma()(r,e)})}rebuildItemStatusMap(e){const n=this.state.itemStatusMap;this.setState({itemStatusMap:b3(n,e)})}handleItemClick(e){const{items:n,keepOpen:o,onStep:r}=this.props,{itemStatusMap:a}=this.state,i=n[e].id,l=rD(i,o);this.setState({itemStatusMap:ma()(l,a)}),open&&r(n[e])}render(){const{items:e,settings:n,editable:o,labels:r,lessonId:a,blockId:i,enableVideoPlaybackSpeed:l}=this.props,{itemStatusMap:u}=this.state,{zoomOnClick:d}=n,m=Object.values(u)?.find(p=>p.isOpen)?"open":"closed";return(0,s.jsx)("div",{className:"blocks-accordion__wrapper","data-accordion-status":m,children:e.map((p,f)=>(0,s.jsx)(uD,{blockId:i,disableZoom:!d,editable:o,focused:u[p.id].isActive,index:f,item:{...p,enableVideoPlaybackSpeed:l},labels:r,lessonId:a,onClick:this.handleItemClick.bind(this,f),open:u[p.id].isOpen},p.id))})}}const lD=x3(cD);class dD extends bu.Component{static get defaultProps(){return{editable:!1,getL10nValue:()=>{},onClick:()=>{},lessonId:"",blockId:"",open:null}}id;content;constructor(e){super(e),this.id=Cu()(),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 n=this.content;if(n&&(n.classList.add("blocks-accordion__content--visible"),!e.open&&this.props.open)){const o=n.parentElement,r=o?.getBoundingClientRect()?.top,a=r!=null&&r>0&&r<window.innerHeight,i=jn()?"instant":"smooth";a||o.scrollIntoView({behavior:i,block:"start"})}}toggle(e){const{blockId:n,index:o}=this.props,r=ct.playerId,a=new RegExp(`-${o}(?:-.+)?$`);open&&r&&r.includes(n.toString())&&a.test(r)&&ct.pause(),this.props.onClick(),e.preventDefault()}renderTitle(e){const{title:n}=this.props.item;return(0,s.jsx)(yt,{className:"blocks-accordion__title",id:e,value:n})}renderDescription(e){const{description:n=""}=this.props.item;return(0,s.jsx)(ms,{className:"blocks-accordion__description",value:n||""},e)}render(){const{blockId:e,blockSettings:n,editable:o,disableZoom:r,getL10nValue:a,index:i,item:l,focused:u,labels:d,lessonId:m,open:p,renderDescription:f=this.renderDescription,renderTitle:g=this.renderTitle}=this.props,{settings:v={},enableVideoPlaybackSpeed:C}=l,x=a(l.media)??{},y=vo(x,n.audioPosition),b=Object.assign({},v,{disableZoom:r,fullEmbed:!0}),E=n?.backgroundType===w.xj.ACCENT||n?.backgroundType===w.xj.IMAGE,L=oe()("blocks-accordion__item",{"blocks-accordion__item--closed":!p}),T=oe()("blocks-accordion__header",{"blocks-accordion__header--editing":o,"brand--border":p&&u&&!E}),I=oe()("blocks-accordion__content",{"blocks-accordion__content--will-enter":p,"brand--border":p&&u&&!E}),S=`title-${this.id}`,N=`panel-${this.id}`,k=n?.headingLevel,B=k?`h${k}`:"h2";let M=(0,s.jsxs)("button",{"aria-controls":N,"aria-expanded":p,className:T,onClick:this.toggle,onKeyDown:!o&&Bp(this.toggle)||void 0,type:"button",children:[g(S),(0,s.jsx)("span",{className:"blocks-accordion__toggler-wrap",children:(0,s.jsx)(tt,{className:"blocks-accordion__toggler",n
153ame:p?"minus":"plus"})})]});return o&&(M=(0,s.jsxs)("div",{className:T,children:[g(S),(0,s.jsx)("button",{"aria-controls":N,"aria-expanded":p,"aria-label":p?"Close":"Open",className:"blocks-accordion__toggler-wrap",onClick:this.toggle,type:"button",children:(0,s.jsx)(tt,{className:"blocks-accordion__toggler",name:p?"minus":"plus"})})]})),(0,s.jsxs)(Gs,{className:L,tag:"section",children:[(0,s.jsx)("div",{className:"blocks-accordion__header-wrap",children:(0,s.jsx)(B,{children:M})}),(0,s.jsx)("section",{"aria-labelledby":S,className:I,id:N,ref:R=>{this.content=R},children:y.renderOrder.map((R,H)=>{if(R==="text")return f(`text-${H}`);const P={blockId:e,hasPadding:!1,imageMaxHeight:1e3,item:l,labels:d,lessonId:m,enableVideoPlaybackSpeed:C,opts:b,shouldPause:!p},j=Xh(x),O=j==="image-with-audio",U=O?"left":"center",z={audio:{media:y.audioOnlyMedia||x,isOverlayAudio:!1,index:`${e}-${i}-audio`,className:"blocks-accordion__audio"},image:{media:y.imageOnlyMedia||x,isOverlayAudio:!1,index:`${e}-${i}-image`,className:oe()(`blocks-accordion__${j}`,{[`blocks-accordion__${j}--${U}`]:O})},video:{media:y.videoOnlyMedia||x,isOverlayAudio:!1,index:`${e}-${i}-video`,className:oe()(`blocks-accordion__${j}`,{[`blocks-accordion__${j}--${U}`]:O})},embed:{media:y.embedOnlyMedia||x,isOverlayAudio:!1,index:`${e}-${i}-embed`,className:oe()(`blocks-accordion__${j}`,{[`blocks-accordion__${j}--${U}`]:O})},overlay:{media:x,isOverlayAudio:!0,index:`${e}-${i}-overlay`,className:oe()(`blocks-accordion__${j}`,{[`blocks-accordion__${j}--${U}`]:O})}}[R];if(!z)return null;const{className:re,...fe}=z;return(0,s.jsx)("div",{className:oe()(re,{"audio-on-top":this.props.blockSettings.audioPosition==="top"}),children:(0,s.jsx)("div",{className:"blocks-accordion__figure",children:(0,s.jsx)(Zs,{...P,...fe})})},`${R}-${H}`)})})]})}getMediaContainerClasses(e,n){const o=this.props.getL10nValue(this.props.item.media)??{},r=Xh(o),a=r==="image-with-audio",i=a&&!Array.isArray(o)?o?.image?.align:"left";return oe()("blocks-accordion__media",`blocks-accordion__${r}`,{[`blocks-accordion__${r}--${i}`]:a,"blocks-accordion__media-container":e,"blocks-accordion__media-container--audio-overlay":n})}}const uD=x3(Yt(t=>(0,s.jsx)(dD,{...t}))),Xh=t=>{const{image:e,embed:n,video:o,audio:r}=t;return e&&!r?"image":n&&!r?"embed":o?"video":r&&!e&&!n?"audio":e&&r?"image-with-audio":r&&n?"audio-and-embed":"image"};class hD extends bu.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 n=this.props.activeIndex;this.state={activeIndex:n,activeTouch:!1,activeMouse:!1},this.tabs=[],this.id=Cu()(),this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){this.handleControls(),window.addEventListener("resize",this.tabResize=xu()(this.handleControls.bind(this),100)),window.addEventListener(Zt,this.handleNavtoTab),this.tabsHeaderEl?.addEventListener("scroll",this.tabScroll=xu()(this.handleControls.bind(this),50))}handleNavtoTab(e){const n=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;n===this.props.blockId&&(this.tabsHeaderEl.scrollIntoView({behavior:"smooth",block:"start"}),this.setState({activeIndex:this.props.items.findIndex(({id:r})=>r===o)},()=>{wh(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(Zt,this.handleNavtoTab)}setActive(e){this.setState({activeIndex:e});const{blockId:n}=this.props,o=ct.playerId;this.state.activeIndex!=e&&o&&o.includes(n.toString())&&ct.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:n}=this.props,o=this.tabsHeaderEl.offsetWidth,r=this.tabsHeaderEl.scrollLeft,i=(e==="next"?n?C3():Th():n?Th():C3())(r,o*.8);this.tabsHeaderEl.scrollTo({left:i,behavior:"smooth"})}arrowPrevInset(e){const n=this.arrowPrevEl.getBoundingClientRect(),o=n.right-e,r=n.left-e;return o+r}focusTab(e){e.currentTarget?.scrollIntoView({behavior:"smooth",block:"nearest"})}handleTabKeyDown(e,n){const{isRTL:o}=this.props;let r=!1,a;Tr(n)?(r=!0,a=o?e+1>this.tabs.length-1?0:e+1:e-1>=0?e-1:this.tabs.length-1):Ir(n)&&(r=!0,a=o?e-1>=0?e-1:this.tabs.length-1:e+1>this.tabs.length-1?0:e+1),r&&n.preventDefault(),a!=null&&(this.tabs[a]?.focus(),this.setActive(a))}renderHeader(e,n){const{activeIndex:o,activeTouch:r,activeMouse:a}=this.state,i=this.tabsHeaderEl&&this.tabsHeaderEl.scrollWidth>this.tabsHeaderEl.clientWidth,l=oe()("blocks-tabs__header-wrap",{touch:r,mouse:a&&i});return(0,s.jsxs)("div",{className:l,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),onTouchStart:this.handleTouchStart.bind(this),children:[(0,s.jsx)("div",{className:"blocks-tabs__header",ref:u=>{this.tabsHeaderEl=u},role:iw,children:e.map(({title:u},d)=>{const m=e.length===1||d===o,p=e.length>1&&d+1===o,f=e.length>1&&d-1===o,g=oe()("blocks-tabs__header-item",{"brand--color":m&&!n,"blocks-tabs__header-item--active":m,"blocks-tabs__header-item--before-active":p,"blocks-tabs__header-item--after-
153active":f}),v=`tab-${this.id}-${d}`,C=`tabpanel-${this.id}-${d}`;return(0,s.jsx)("button",{"aria-controls":C,"aria-selected":m,className:g,id:v,onClick:this.setActive.bind(this,d),onFocus:this.focusTab.bind(this),onKeyDown:this.handleTabKeyDown.bind(this,d),ref:x=>{this.tabs[d]=x},role:lw,tabIndex:m?void 0:-1,type:"button",children:(0,s.jsx)(yt,{value:u})},v)})}),(0,s.jsxs)("div",{className:"blocks-tabs__controls",ref:u=>{this.tabControls=u},children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--prev brand--background",onClick:this.scrollTabs.bind(this,"previous"),ref:u=>{this.arrowPrevEl=u},children:(0,s.jsx)(tt,{className:"blocks-tabs__arrow-icon",name:"chevron-right-solid"})}),(0,s.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--next brand--background",onClick:this.scrollTabs.bind(this,"next"),ref:u=>{this.arrowNextEl=u},children:(0,s.jsx)(tt,{className:"blocks-tabs__arrow-icon blocks-tabs__arrow-icon--next",name:"chevron-right-solid"})})]})]})}renderDescription({description:e}){return(0,s.jsx)(ms,{className:"blocks-tabs__description",value:e})}renderItem(e,n,o){const{blockId:r,getL10nValue:a,labels:i,lessonId:l,renderDescription:u=this.renderDescription}=this.props,{activeIndex:d}=this.state,m=d===n,{settings:p={},enableVideoPlaybackSpeed:f}=e,g=a(e.media)??{},v=vo(g,this.props.settings.audioPosition,!1),C=oe()("blocks-tabs__content-item",{"blocks-tabs__content-item--active":m}),x=Object.assign({},p,{disableZoom:o,fullEmbed:!0}),y=`tabpanel-${this.id}-${n}`,b=`tab-${this.id}-${n}`,E=Xh(g),L=E==="image-with-audio",T=E==="audio-and-embed",I=L?g?.image?.align:"left",S=T?"embed-border":void 0;return(0,s.jsx)("div",{"aria-labelledby":b,className:C,id:y,role:cw,tabIndex:m?0:void 0,children:v.renderOrder.map((N,k)=>{if(N==="text")return(0,s.jsx)("div",{className:"blocks-tabs__description",children:u(e)},`text-${k}`);const B={blockId:r,embedClass:S,hasPadding:!1,imageMaxHeight:1e3,item:e,labels:i,lessonId:l,enableVideoPlaybackSpeed:f,opts:x,shouldPause:!m},R={audio:{media:v.audioOnlyMedia||g,isOverlayAudio:!1,index:`${r}-${n}-audio`,className:"blocks-tabs__audio"},image:{media:v.imageOnlyMedia||g,isOverlayAudio:!1,index:`${r}-${n}-image`,className:oe()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${I}`]:L})},video:{media:v.videoOnlyMedia||g,isOverlayAudio:!1,index:`${r}-${n}-video`,className:oe()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${I}`]:L})},embed:{media:v.embedOnlyMedia||g,isOverlayAudio:!1,index:`${r}-${n}-embed`,className:oe()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${I}`]:L})},overlay:{media:g,isOverlayAudio:!0,index:`${r}-${n}-overlay`,className:oe()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${I}`]:L})}}[N];if(!R)return null;const{className:H,...P}=R;return(0,s.jsx)("div",{className:oe()(H,{"audio-on-top":this.props.settings.audioPosition==="top"}),children:(0,s.jsx)("div",{className:"blocks-tabs__figure",children:(0,s.jsx)(Zs,{...B,...P})})},`${N}-${k}`)})},y)}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,enableVideoPlaybackSpeed:i}=this.props,{backgroundType:l,cardMode:u,entranceAnimation:d,zoomOnClick:m}=a,p=oe()("blocks-tabs",{"blocks-tabs--no-animation":!d}),f=r.length>0?r.slice(0,tD):[],g=u===Un.TRANSPARENT&&(l===w.xj.ACCENT||l===w.xj.IMAGE),v=oe()("blocks-tabs__container",{"blocks-tabs--single":f.length===1});return(0,s.jsx)(Tt,{className:p,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:v,children:(0,s.jsx)("div",{className:"blocks-tabs__row",children:(0,s.jsx)("div",{className:"blocks-tabs__col",children:(0,s.jsx)("div",{className:"blocks-tabs__wrapper",ref:C=>{this.container=C},children:(0,s.jsxs)(Gs,{children:[this.renderHeader(f,g),(0,s.jsx)("div",{className:"blocks-tabs__content",children:f.map((C,x)=>this.renderItem({...C,enableVideoPlaybackSpeed:i},x,!m))})]})})})})})})})}}const mD=Uh(Yt(t=>(0,s.jsx)(hD,{...t}))),pD=Rt()(null,["payload","result"]),fD=t=>{if(t.meta?.thumbnail)return`${t.contentPrefix}/${t.meta.thumbnail}`},vD=t=>t.meta?.version,y3=t=>t.src??null,gD=t=>t.processing,CD=Es()(["payload","result","completion"]),xD=Rt()(!1,["payload","result","score"]),bD=oa()((t,e)=>{if(!e)return!1;const{majorLimit:n,minorLimit:o}=t,[r,a]=e.split("."),i=parseInt(r)===n&&Number(a)>=o;return Number(r)>n||i}),yD={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},LD=t=>{const e=dn()(t.split("-"));return yD[e]},ED=bD({majorLimit:3,minorLimit:13}),TD=(t,e,n,o)=>{const r=e&&LD(n),a=r?`${t}${r}`:`${t}?rise=true`;if(o){const i=a.includes("?")?"&":"?";return`${a}${i}locale=${o}`}return a};var ID=c(26372);class SD extends ID.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:n,onStep:o}=this.props,r=dn()(n),a=e(r?.media)?.storyline??{},i=vD(a);ED(i)||o(r)}canFullscreen(e){const{blockId:n,hasManySlBlocks:o}=this.props,{windowName:r}=e;return n===r||!o()}handleMessages(e){const{data:n}=e,{type:o}=n,r={"fullscreen:enter":this.handleFullscreenEnter,"fullscreen:exit":this.handleFullscreenExit,"course:update":this.handleCourseUpdate}[o];r&&r(n)}handleCourseUpdate(e){const{items:n,onStep:o,blockId:r}=this.props,a=dn()(n),{windowName:i}=e;if(r===i&&CD(e)){const{score:l,success:u}=pD(e);if(xD(e)){const d=l.scaled*100;(0,Je.jr)(r,u,!0,d)}else(0,Je.jr)(r,!0,!1);o(a)}}handleFullscreenEnter(e){const{menuOpen:n,handleStorylineFullscreen:o}=this.props;this.canFullscreen(e)&&(n&&o(!0),this.setState({fullscreen:!0,reopenMenu:n}))}handleFullscreenExit(e){const{handleStorylineFullscreen:n}=this.props,{reopenMenu:o}=this.state;this.canFullscreen(e)&&(o&&n(!1),this.setState({fullscreen:!1,reopenMenu:!1}))}render(){const{animateBlockEntrance:e,getL10nValue:n,initiallyVisible:o,isLesson:r,isLearner:a,isOnlyBlockInStep:i,items:l,labels:{a11yBlockStoryline:u},settings:d,takingSnapshot:m}=this.props,p=dn()(l),f=n(p?.media)?.storyline??{},{mediaWidth:g="0"}=d,v=i?{}:{display:r&&!y3(f)?"none":"block"},C=oe()("blocks-storyline__wrapper",{"blocks-storyline__wrapper--small":g==="0","blocks-storyline__wrapper--medium":g==="1","blocks-storyline__wrapper--full":g==="2","blocks-storyline__wrapper--snapshot":m});return(0,s.jsx)(Tt,{className:"blocks-storyline",style:v,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:o,isLearner:a,children:(0,s.jsx)("div",{"aria-label":u,className:C,role:"group",children:m?this.renderThumbnail(f):this.renderStorylineBlock(f)})})})}renderStorylineBlock(e){return gD(e)?this.renderProcessing():y3(e)?this.renderItem(e):this.renderEmpty()}renderThumbnail(e){const n=fD(e),o=`${(0,Ge._$)("CDN_USER_CONTENT_URI")}/${n}`;
153return(0,s.jsx)("img",{alt:"Thumbnail",src:o})}renderEmpty(){const{renderEmpty:e}=this.props;return typeof e=="function"?e():null}renderItem(e){const{fullscreen:n}=this.state,{blockId:o,currentLocale:r,isLesson:a,previewType:i,settings:l}=this.props,{cornerRadius:u}=l,{src:d,meta:m,title:p}=e,{player:f}=m,g=TD(d,a,i,r),C={paddingBottom:`${f.height/f.width*100}%`,...u!=null&&{"--corner-radius":`${Number(u)}px`}},x=oe()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":n});return(0,s.jsx)("div",{className:"blocks-storyline__item",style:C,children:(0,s.jsx)("iframe",{allowFullScreen:!0,allowtransparency:"true",className:x,loading:"lazy",name:o.toString(),ref:y=>{this.iframe=y},src:(0,Ge.o1)(g),title:p})})}renderProcessing(){const{renderProcessing:e}=this.props;return typeof e=="function"?e():null}}const ND=(0,wt.wZ)(Yt(SD));var L3=c(26372);const yu=q("blocks-button"),E3=w.zV,jD=({description:t})=>(0,s.jsx)(yt,{className:yu("description"),value:t}),kD=({color:t,destination:e,editBlock:n,handleNavigate:o,isEditable:r,label:a,type:i})=>{const l=(0,xe.d_)(),u=(0,xe.DX)()?.externalLinksDisabled,d=(0,xe.DX)()?.theme,m=(0,xe.kJ)(),{mode:p}=(0,ce.g)(),f=nn(),g=(0,xe.vU)(),v=(0,et.QQ)(e),C=(0,ha.htmlDecode)((0,Io.QZ)((0,et.QQ)(a))),x=i==="email",y=i==="exit-course",b=i==="lesson",E=i==="relative-url",L=yu("button"),T=!t||t===""||t===m,I=t??m,S={},N=(0,xe.Ge)(m),k=T&&d?.accentContrast===w.Em.AUTO?w.Em.AUTO:N,B=f?.buttonColorContrast??k,M=f?.buttonRadius??null,R=f?.buttonWidth??null,H=Ws({backgroundColor:I,contrast:B});Object.assign(S,{...!T&&{"--color-button-bg":I},...!T&&{"--color-button-text":H},...!T&&{"--color-button-border":"transparent"},...M!=null&&{"--radius-button":`${Number(M)}px`},...R!=null&&{"--width-button":`${Number(R)}rem`}});const P=u&&Bn(v),{handleMouseEnter:j,handleMouseLeave:O,handleFocus:U,handleBlur:W}=Cd(),z=L3.useId(),re=(0,h.useCallback)(()=>{if(r)n();else{if(P)return;if(y)return(0,Ge.NS)()}},[n,P,r,y]),fe=(0,h.useCallback)(()=>{o(v)},[v,o]);if(r||P||y){const Ee=(0,s.jsx)("button",{"aria-label":C,className:L,id:P?z:void 0,onBlur:P?()=>W(z):void 0,onClick:re,onFocus:P?()=>U(z):void 0,onKeyDown:Bp(re),onMouseEnter:P?()=>j(z):void 0,onMouseLeave:P?()=>O(z):void 0,style:S,tabIndex:ah,type:"button",children:C});return P?(0,s.jsxs)(s.Fragment,{children:[Ee,(0,s.jsx)(xd,{anchorId:z})]}):Ee}else if(b){const Ee=p?`/${p}`:"",Oe=`/lessons/${v}${Ee}`,Ue=v===""?"#":Oe;return(0,s.jsx)(yn,{"aria-label":C,className:L,onClick:fe,style:S,to:Ue,children:C})}else{const Ee=E?v:Nn(v),Oe=x?`mailto:${v}?subject=${l}`:Ee,Ue=Ln.isIphoneSafari?"_top":"_self",we=x?Ue:"_blank",Be=we==="_blank",de=Be?"noopener noreferrer nofollow":void 0,se=g?.a11yNoticeLinkNewTab||"(opens in a new tab)",Ne=Be?`${C} ${se}`:C;return(0,s.jsx)("a",{"aria-label":Ne,className:L,href:Oe,rel:de,style:S,tabIndex:ah,target:we,children:C})}},T3=t=>{const{animateBlockEntrance:e,editable:n,editBlock:o=()=>{},handleNavigate:r,initiallyVisible:a,isLearner:i,items:l=[],renderDescription:u=jD,settings:d}=t,{buttonAlignment:m=w.Ht,buttonColor:p,buttonShowDescription:f=!0,buttonStack:g,entranceAnimation:v}=d,C=yu(null,{"no-animation":!v,description:f==!0,center:m==="center",left:m==="left",right:m==="right",rounded:E3==="rounded"}),x=l?.map(({id:y,description:b,...E})=>{const L=(0,s.jsx)(kD,{...E,color:p,editBlock:o,handleNavigate:r,isEditable:n}),T=f&&u({id:y,description:b});return(0,s.jsx)("section",{className:yu("container"),children:m==="left"&&f?(0,s.jsxs)(s.Fragment,{children:[L,T]}):(0,s.jsxs)(s.Fragment,{children:[T,L]})},y)})??null;if(g){const{paddingBottom:y,paddingTop:b}=d,E={...b!=null&&{paddingTop:`${Number(b)}rem`},...y!=null&&{paddingBottom:`${Number(y)}rem`}};return(0,s.jsx)("div",{className:C.toString(),style:E,children:x})}return(0,s.jsx)(Tt,{className:C.toString(),children:(0,s.jsx)(Pt,{animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:a,isLearner:i,children:(0,s.jsx)("div",{className:"blocks-button",children:x})})})},AD=T3;class RD extends L3.Component{renderButtonDelegate;constructor(e){super(e),this.renderButtonDelegate=this.renderButton.bind(this)}static get defaultProps(){return{items:[],lessonId:"",blockId:"",editBlock:()=>{}}}renderButton(e,n){const{blockId:o,editable:r,editBlock:a,handleNavigate:i,isLearner:l,lessonId:u,initiallyVisible:d}=this.props;return(0,s.jsx)(T3,{animateBlockEntrance:!1,blockId:o,editable:r,editBlock:a,handleNavigate:i,initiallyVisible:d,isLearner:l,items:[e],lessonId:u,settings:n,type:"right"})}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,renderButton:i=this.renderButtonDelegate}=this.props,{entranceAnimation:l,buttonShowDescription:u=!0,buttonAlignment:d=w.Ht,buttonSpacing:m=3}=a,p=oe()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!l,"blocks-button--description":u==!0,"blocks-button--center":d==="center","blocks-button--left":d==="left","blocks-button--right":d==="right","blocks-button--rounded":E3==="rounded"});return(0,s.jsx)(Tt,{className:p,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:r.map((f,g)=>{const v=g===0,C={buttonColor:a.buttonColor||this.props.color,buttonStyle:a.buttonStyle,buttonStack:!0,buttonShowDescription:u,buttonAlignment:d,...v?{}:{paddingTop:m}};return(0,s.jsx)(h.Fragment,{children:i(f,C)},f.id)})})})}}var PD=c(16580),wD=c.n(PD);const Lu=q("block-video");function MD({item:t}){const e=(0,et.gY)(),{media:n}=t,o=e(n)??{},{customVideo:r={},tmp:a={},video:i={}}=o,l="poster"in i?i:{...i,...r},u=a.video&&"poster"in a.video?a.video:void 0,{poster:d}=(0,Ge.Hm)()?l:u||l;return(0,s.jsxs)("div",{className:Lu("poster-container"),children:[(0,s.jsx)(In,{alt:"Video Poster",className:Lu("poster"),src:d}),(0,s.jsx)("div",{className:Lu("play-overlay"),children:(0,s.jsxs)("svg",{className:Lu("play-icon"),fill:"currentColor",height:"80",viewBox:"0 0 24 24",width:"80",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",fill:"rgba(0,0,0,0.6)",r:"12"}),(0,s.jsx)("polygon",{fill:"white",points:"10,8 10,16 16,12"})]})})]})}const I3=q("block-video");function OD({mediaWidth:t}){const e=I3("item",{small:t==="0",medium:t==="1",full:t==="2"});return(0,s.jsx)("div",{className:e,children:(0,s.jsx)("div",{className:I3("placeholder")})})}const DD=qr()("partner-content-block-card__"),S3=t=>{const{backgroundColor:e,blockId:n,courseId:o,partnerContent:r,publishedAt:a,tenantId:i}=t,{data:l,type:u}
153=r,{authors:d,bookImage:m,bookTitle:p,buyLink:f,internalId:g,nbicLink:v}=l,C={blockId:n,courseId:o,partnerContentId:g,tenantId:i,contentSubtype:u};return(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"More Info"}),(0,s.jsxs)("ol",{className:"partner-content-block-card",role:"list",children:[(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Ap,{authors:d,backgroundColor:e,block:!0,bookImage:m,bookTitle:p,buyLink:f,publishedAt:a,trackingInfo:C})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)("div",{className:DD("divider")})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Rp,{backgroundColor:e,block:!0,link:v,publishedAt:a,trackingInfo:C})})]})]})};var BD=c(26372);const Jh=q("block-video");function HD({audioVideoPlayhead:t,backgroundColor:e,blockId:n,blockPartnerContent:o,blockPartnerContentExists:r,captions:a,courseId:i,cornerRadius:l,currentLocale:u,dataL10nId:d,enableVideoPlaybackSpeed:m,forwardSeekRestricted:p,id:f,isLoaded:g,item:v,lessonId:C,loadMedia:x,mediaWidth:y,onLoad:b,onProgressChanged:E,poster:L,publishedAt:T,recordMediaPlayheadPosition:I,renderCaption:S,subtitle:N,tenantId:k,type:B,videoKey:M,videoSrc:R}){const H=Jh("item",{small:y==="0",medium:y==="1",full:y==="2"}),P=BD.useCallback(j=>{const O=Jh("caption",{visible:g}).toString();return(0,s.jsx)(ms,{className:O,value:j.caption})},[g]);return(0,s.jsxs)("div",{className:H,children:[(0,s.jsxs)("figure",{"data-l10n-id":d,children:[x&&(0,s.jsx)(Fh,{audioVideoPlayhead:t,canAdjustPlaybackSpeed:m,canRestrictSeek:p,captions:a,cornerRadius:l,id:`${C}-${n}-${f}-${u}`,onLoad:b,poster:L,progressChanged:E,recordMediaPlayheadPosition:I,src:R,subtitle:N,type:M?"video":B},`${C}-${n}-${f}-${u}-${L||""}`),g&&(0,s.jsx)("figcaption",{className:Jh("wrapper"),children:(S??P)(v)})]}),r&&(0,s.jsx)(S3,{backgroundColor:e,blockId:n,courseId:i,partnerContent:o,publishedAt:T,tenantId:k})]})}var FD=c(42117),N3=c.n(FD);const VD={allowedTags:["b","i","u","c","ruby","rt","v","lang"],allowedAttributes:{c:["class"],v:["title"],lang:["lang"],ruby:[],rt:[]},disallowedTagsMode:"escape",allowedSchemes:[]};function zD(t){return t.replace(/<c\.([^>]+)>/g,'<c class="$1">').replace(/<\/c\.[^>]*>/g,"</c>").replace(/<v\s+([^>]+)>/g,'<v title="$1">').replace(/<script[^>]*>(.*?)<\/script>/gi,"<!--SCRIPT_START-->$1<!--SCRIPT_END-->").replace(/<iframe[^>]*>(.*?)<\/iframe>/gi,"<!--IFRAME_START-->$1<!--IFRAME_END-->")}function UD(t){return t.replace(/<!--SCRIPT_START-->(.*?)<!--SCRIPT_END-->/g,"$1").replace(/<!--IFRAME_START-->(.*?)<!--IFRAME_END-->/g,"$1").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&amp;/g,"&")}function fn(t,e={}){if(!t)return"";let n;if(e.allowVTTTags!==!1){const o=zD(t),r=N3()(o,VD);n=UD(r)}else n=N3()(t,{allowedTags:[],allowedAttributes:{}});return e.preserveWhitespace||(n=n.replace(/\s+/g," ").trim()),n}function ll(){return typeof window<"u"?window.crypto.randomUUID():`cue_${Date.now()}_${Math.random().toString(36).substring(2,9)}`}function $D(t){return t.map(e=>({...e,stableId:e.stableId||ll()}))}function jr(t){return t?/^(\d{2}:)?\d{2}:\d{2}\.\d{3}\s*-->\s*(\d{2}:)?\d{2}:\d{2}\.\d{3}/.test(t):!1}function j3(t){let e=t.match(/^(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/);if(e){const[,n,o,r,a]=e;return parseInt(n)*36e5+parseInt(o)*6e4+parseInt(r)*1e3+parseInt(a)}if(e=t.match(/^(\d{2}):(\d{2})\.(\d{3})$/),e){const[,n,o,r]=e;return parseInt(n)*6e4+parseInt(o)*1e3+parseInt(r)}throw new Error(`Invalid timestamp format: ${t}`)}function WD(t,e=!1){const n=Math.round(t),o=Math.floor(n/36e5),r=Math.floor(n%36e5/6e4),a=Math.floor(n%6e4/1e3),i=n%1e3;if(e){const l=a.toString().padStart(2,"0");if(o>0){const u=r.toString().padStart(2,"0");return`${o}:${u}:${l}`}else return`${r}:${l}`}return`${o.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}.${i.toString().padStart(3,"0")}`}function k3(t){const e={};if(!t)return e;const n=t.match(/\S+/g)||[];for(const o of n){const r=o.indexOf(":");if(r>0){const a=fn(o.substring(0,r),{allowVTTTags:!1}),i=fn(o.substring(r+1),{allowVTTTags:!1});e[a]=i}}return e}function _D(t){const e=t.match(/^<v\s+/);if(e){let a=0,i=-1;for(let l=e[0].length;l<t.length;l++)if(t[l]==="<")a++;else if(t[l]===">")if(a===0){i=l;break}else a--;if(i!==-1){const l=t.substring(e[0].length,i).trim(),u=t.substring(i+1).trim();return{speaker:fn(l,{allowVTTTags:!1}),text:u}}}const n=t.match(/^<v>\s*(.*)$/s);if(n)return{text:n[1]};const o=t.match(/^\[([^\]]+)\]:\s*(.*)$/s);if(o)return{speaker:fn(o[1].trim(),{allowVTTTags:!1}),text:o[2]};const r=t.match(/^([^:\n]+):\s*(.*)$/s);if(r&&r[1].length<50){const a=r[1].trim();if(!(/^\d+(\s+\w+)*\s+at\s+\d+$/.test(a)||/^\d{1,2}$/.test(a)||/\d+:\d+/.test(a)||/\bat\s+\d/.test(a)||/\bfrom\s+\d/.test(a)||/\bto\s+\d/.test(a)||/\d+\s*(AM|PM|am|pm)/.test(a)))return{speaker:fn(a,{allowVTTTags:!1}),text:r[2]}}return{text:t}}function qh(t){return fn(t,{preserveWhitespace:!1,allowVTTTags:!0})}function GD(t){const e=fn(t.substring(6).trim(),{allowVTTTags:!1}),n=k3(e);return{id:n.id,width:n.width,lines:n.lines,regionanchor:n.regionanchor,viewportanchor:n.viewportanchor,scroll:n.scroll,...n}}function KD(t){const e=[...new Set(t.map(n=>
153n.speaker).filter(Boolean))];return{cueCount:t.length,speakerCount:e.length,speakers:e,lastModified:new Date}}function*QD(t){const e=t.cues,n=t.totalDuration;for(let o=0;o<e.length;o++){const r=e[o],a=o>0?e[o-1]:void 0,i=o<e.length-1?e[o+1]:void 0,l=a?Math.max(0,r.startTimeMs-a.endTimeMs):r.startTimeMs,u=i?Math.max(0,i.startTimeMs-r.endTimeMs):Math.max(0,n-r.endTimeMs),d=n>0?r.startTimeMs/n*100:0,m=n>0?r.endTimeMs/n*100:0,p=m-d;yield{cue:r,index:o,isFirst:o===0,isLast:o===e.length-1,previousCue:a,nextCue:i,gapBefore:l,gapAfter:u,relativeStartPercent:d,relativeEndPercent:m,relativeWidthPercent:p}}}function Kte(t){return Array.from(QD(t))}function ZD(t,e,n,o,r,a,i,l){const u=[],d=/<v\s+([^>]+)>([^<]*)<\/v>/g;let m,p=0;for(;(m=d.exec(t))!==null;){const[C,x,y]=m,b={stableId:ll(),startTime:e,endTime:n,startTimeMs:o,endTimeMs:r,duration:a,text:qh(y.trim()),settings:i,index:0,speaker:fn(x.trim(),{allowVTTTags:!1})};l&&(b.id=l),i.position&&(b.position=i.position),i.align&&(b.align=i.align),i.line&&(b.line=i.line),i.size&&(b.size=i.size),i.vertical&&(b.vertical=i.vertical),i.region&&(b.region=i.region),u.push(b),p=m.index+C.length}const f=/<v\s+([^>]+)>([^<]*)$/,v=t.substring(p).match(f);if(v){const[,C,x]=v,y={stableId:ll(),startTime:e,endTime:n,startTimeMs:o,endTimeMs:r,duration:a,text:qh(x.trim()),settings:i,index:0,speaker:fn(C.trim(),{allowVTTTags:!1})};l&&(y.id=l),i.position&&(y.position=i.position),i.align&&(y.align=i.align),i.line&&(y.line=i.line),i.size&&(y.size=i.size),i.vertical&&(y.vertical=i.vertical),i.region&&(y.region=i.region),u.push(y)}return u}function YD(t,e){let n=e,o;!jr(t[n])&&jr(t[n+1])&&(o=fn(t[n],{allowVTTTags:!1}),n++);const r=t[n];if(!jr(r))return{cues:[],nextIndex:n+1};const a=r.match(/^((?:\d{2}:)?\d{2}:\d{2}\.\d{3})\s*-->\s*((?:\d{2}:)?\d{2}:\d{2}\.\d{3})(.*)$/);if(!a)return{cues:[],nextIndex:n+1};const[,i,l,u]=a,d=k3(u.trim());n++;const m=[];for(;n<t.length&&t[n]!==""&&!jr(t[n]);)m.push(t[n]),n++;const p=j3(i),f=j3(l),g=f-p,v=[];if(m.length===0){const C={stableId:ll(),startTime:i,endTime:l,startTimeMs:p,endTimeMs:f,duration:g,text:"",settings:d,index:0};o&&(C.id=o),d.position&&(C.position=d.position),d.align&&(C.align=d.align),d.line&&(C.line=d.line),d.size&&(C.size=d.size),d.vertical&&(C.vertical=d.vertical),d.region&&(C.region=d.region),v.push(C)}else for(const C of m)if(C.includes("<v ")&&(C.includes("</v>")||C.match(/<v\s+[^>]+>[^<]*$/))){const x=ZD(C,i,l,p,f,g,d,o);v.push(...x)}else{const x=m.join(`
154`),{text:y,speaker:b}=_D(x),E={stableId:ll(),startTime:i,endTime:l,startTimeMs:p,endTimeMs:f,duration:g,text:qh(y),settings:d,index:0};o&&(E.id=o),b&&(E.speaker=b),d.position&&(E.position=d.position),d.align&&(E.align=d.align),d.line&&(E.line=d.line),d.size&&(E.size=d.size),d.vertical&&(E.vertical=d.vertical),d.region&&(E.region=d.region),v.push(E);break}return{cues:v,nextIndex:n}}function XD(t){const e=t.split(`
155`).map(a=>a.trim()),n=e.find(a=>a.length>0);if(!n||!n.startsWith("WEBVTT"))throw new Error('Invalid WebVTT file: Must start with "WEBVTT"');const o={notes:[],styles:[],regions:[],cues:[],totalDuration:0,metadata:{cueCount:0,speakerCount:0,speakers:[],lastModified:new Date}};let r=0;for(;r<e.length&&e[r]==="";)r++;if(r<e.length&&e[r].startsWith("WEBVTT"))for(o.header=fn(e[r],{allowVTTTags:!1}),r++;r<e.length&&e[r]==="";)r++;else throw new Error("Invalid WebVTT file: Missing or malformed WEBVTT header");for(;r<e.length;){const a=e[r];if(a===""){r++;continue}if(a.startsWith("NOTE")){const i=[fn(a.substring(4).trim(),{preserveWhitespace:!0,allowVTTTags:!1})];for(r++;r<e.length&&e[r]!==""&&!jr(e[r]);)i.push(fn(e[r],{preserveWhitespace:!0,allowVTTTags:!1})),r++;o.notes?.push(i.join(`
156`));continue}if(a.startsWith("STYLE")){const i=[];for(r++;r<e.length&&e[r]!==""&&!jr(e[r]);)i.push(fn(e[r],{preserveWhitespace:!0,allowVTTTags:!1})),r++;o.styles?.push(i.join(`
157`));continue}if(a.startsWith("REGION")){const i=GD(a);o.regions?.push(i),r++;continue}if(jr(a)||jr(e[r+1])){const i=YD(e,r);i.cues&&i.cues.length>0&&o.cues.push(...i.cues),r=i.nextIndex;continue}r++}return o.cues=$D(o.cues),o.cues.sort((a,i)=>
157a.startTimeMs-i.startTimeMs),o.cues.forEach((a,i)=>{a.index=i}),o.totalDuration=o.cues.length>0?Math.max(...o.cues.map(a=>a.endTimeMs)):0,o.metadata=KD(o.cues),o}function Qte(t){let e="";if(t.header?e+=t.header.trim()+`
158`:e+=`WEBVTT
159`,e+=`
160`,t.notes&&t.notes.length>0)for(const n of t.notes)e+="NOTE",n&&n.length>0&&(e+=" "+n.replace(/\n/g,`
161`)),e+=`
162
163`;if(t.styles&&t.styles.length>0)for(const n of t.styles)e+=`STYLE
164`,e+=n.trim()+`
165
166`;if(t.regions&&t.regions.length>0)for(const n of t.regions){e+="REGION";const o=[];for(const r in n)n[r]!==void 0&&n[r]!==null&&r!=="settings"&&o.push(`${r}:${n[r]}`);o.length>0&&(e+=" "+o.join(" ")),e+=`
167
168`}for(const n of t.cues){n.id&&(e+=n.id+`
169`),e+=`${n.startTime} --> ${n.endTime}`;const o=[];if(n.position&&o.push(`position:${n.position}`),n.align&&o.push(`align:${n.align}`),n.line&&o.push(`line:${n.line}`),n.size&&o.push(`size:${n.size}`),n.vertical&&o.push(`vertical:${n.vertical}`),n.region&&o.push(`region:${n.region}`),n.settings)for(const a in n.settings)n.settings[a]!==void 0&&n.settings[a]!==null&&!o.some(i=>i.startsWith(a+":"))&&o.push(`${a}:${n.settings[a]}`);o.length>0&&(e+=" "+o.join(" ")),e+=`
170`;let r=n.text||"";n.speaker&&(r=`[${n.speaker}]: ${r}`),e+=r+`
171
172`}return e.replace(/\s+$/,"")+`
173`}const dl=q("video-transcript-panel"),JD=({cue:t,isCurrent:e,onSeek:n,forwardSeekRestricted:o,maxTimeReached:r})=>{const a=(0,h.useCallback)(()=>{const l=t.startTimeMs/1e3;o&&l>r||n?.(l)},[t,n,o,r]),i=(0,h.useMemo)(()=>o&&t.startTimeMs/1e3>r,[o,t.startTimeMs,r]);return(0,s.jsxs)("button",{"aria-disabled":i,className:dl("line",{current:e,disabled:i}),onClick:i?void 0:a,tabIndex:i?-1:0,type:"button",children:[(0,s.jsx)("span",{className:dl("timestamp"),children:WD(t.startTimeMs,!0)}),(0,s.jsx)("span",{className:dl("text"),children:t.text})]})},A3=({captions:t,currentTime:e=0,forwardSeekRestricted:n=!1,maxTimeReached:o=0,onSeek:r})=>{const[a,i]=(0,h.useState)([]);(0,h.useEffect)(()=>{if(!t||t.length===0)return;const u=new AbortController;return(async()=>{try{const m=t[0];if(!m)return;const p=m.url||(m.key?(0,Ge.o1)(m.key):null);if(!p)return;const f=await fetch(p,{signal:u.signal});if(!f.ok)return;const g=await f.text(),v=XD(g);i(v.cues)}catch(m){console.error("Error loading transcript:",m)}})(),()=>{u.abort()}},[t]);const l=(0,h.useMemo)(()=>{const u=e*1e3;return a.findIndex(d=>u>=d.startTimeMs&&u<d.endTimeMs)},[a,e]);return a.length===0?null:(0,s.jsx)("div",{className:dl(),children:(0,s.jsx)("div",{className:dl("lines"),children:a.map((u,d)=>(0,s.jsx)(JD,{cue:u,forwardSeekRestricted:n,isCurrent:d===l,maxTimeReached:o,onSeek:r},u.stableId))})})},xa=q("video-side-panel"),R3=[{id:"transcript",label:"Transcript"}];function qD({captions:t,currentTime:e=0,forwardSeekRestricted:n=!1,maxTimeReached:o=0,onSeek:r}){const[a,i]=(0,h.useState)(R3[0]),[l,u]=(0,h.useState)(!1),d=js(768),m=(0,h.useCallback)(()=>u(!0),[]),p=(0,h.useCallback)(()=>u(!1),[]);return d?(0,s.jsxs)("div",{className:xa("mobile"),children:[(0,s.jsx)("h2",{className:xa("mobile-heading"),children:"Transcript"}),(0,s.jsxs)("button",{className:xa("view-transcript-button"),onClick:m,type:"button",children:[(0,s.jsx)(tt,{name:"list"}),"View transcript"]}),l&&(0,s.jsx)(uh,{heading:a.label,onClose:p,children:(0,s.jsx)(A3,{captions:t,currentTime:e,forwardSeekRestricted:n,maxTimeReached:o,onSeek:r})})]}):(0,s.jsxs)("div",{className:xa(),children:[(0,s.jsx)("div",{className:xa("tabs"),role:"tablist",children:R3.map(f=>(0,s.jsx)("button",{"aria-selected":a===f,className:xa("tab",{active:a===f}),onClick:()=>i(f),role:"tab",type:"button",children:f.label},f.id))}),(0,s.jsx)("div",{className:xa("content"),role:"tabpanel",children:a.id==="transcript"&&(0,s.jsx)(A3,{captions:t,currentTime:e,forwardSeekRestricted:n,maxTimeReached:o,onSeek:r})})]})}const yi=q("block-video");function eB({audioVideoPlayhead:t,backgroundColor:e,blockId:n,blockPartnerContent:o,blockPartnerContentExists:r,captions:a,courseId:i,cornerRadius:l,currentLocale:u,dataL10nId:d,enableVideoPlaybackSpeed:m,forwardSeekRestricted:p,id:f,isLoaded:g,item:v,lessonId:C,loadMedia:x,mediaWidth:y,onLoad:b,onProgressChanged:E,poster:L,publishedAt:T,recordMediaPlayheadPosition:I,renderCaption:S,subtitle:N,tenantId:k,transcriptEnabled:B,type:M,videoKey:R,videoSrc:H}){const[P,j]=(0,h.useState)(0),[O,U]=(0,h.useState)(0),W=(0,h.useRef)(null),z=(0,h.useCallback)(Ue=>
173{j(Ue.currentTime),U(we=>Math.max(we,Ue.currentTime)),E?.(Ue)},[E]),re=(0,h.useCallback)(Ue=>{const we=yi("caption",{visible:g}).toString();return(0,s.jsx)(ms,{className:we,value:Ue.caption})},[g]),fe=(0,h.useCallback)(Ue=>{W.current?.seekToTime(Ue)},[W]),Ee=B&&a&&a.length>0,Oe=yi("item",{small:y==="0",medium:y==="1",full:y==="2"});return(0,s.jsxs)("div",{className:Oe,children:[(0,s.jsxs)("figure",{"data-l10n-id":d,children:[(0,s.jsxs)("div",{className:yi("video-container"),children:[(0,s.jsx)("div",{className:yi("figure-container"),children:x&&(0,s.jsx)(Fh,{audioVideoPlayhead:t,canAdjustPlaybackSpeed:m,canRestrictSeek:p,captions:a,cornerRadius:l,id:`${C}-${n}-${f}-${u}`,onLoad:b,poster:L,progressChanged:z,recordMediaPlayheadPosition:I,ref:W,src:H,subtitle:N,type:R?"video":M},`${C}-${n}-${f}-${u}-${L||""}`)}),Ee&&(0,s.jsx)("div",{className:yi("side-panel-wrapper"),children:(0,s.jsx)(qD,{captions:a,currentTime:P,forwardSeekRestricted:p||!1,maxTimeReached:O,onSeek:fe})})]}),g&&(0,s.jsx)("figcaption",{className:yi("wrapper"),children:(S??re)(v)})]}),r&&(0,s.jsx)(S3,{backgroundColor:e,blockId:n,courseId:i,partnerContent:o,publishedAt:T,tenantId:k})]})}var em=c(26372);function tB({backgroundColor:t,blockId:e,cornerRadius:n,courseId:o,enableVideoPlaybackSpeed:r,forwardSeekRestricted:a,item:i,lessonId:l,loadMedia:u,mediaWidth:d,onStep:m,partnerContent:p,audioVideoPlayhead:f,publishedAt:g,recordMediaPlayheadPosition:v,renderCaption:C,tenantId:x,transcriptEnabled:y,type:b,isVideoTraining:E}){const[L,T]=em.useState(!1),{currentLocale:I}=(0,wt.nY)(),S=(0,et.gY)(),{id:N,media:k,partnerContentId:B}=i,M=S(k)??{},{customVideo:R={},tmp:H={},video:P={}}=M,j="poster"in P?P:{...P,...R},O=H.video&&"poster"in H.video?H.video:void 0,{captions:U,key:W,poster:z,src:re,subtitle:fe}=(0,Ge.Hm)()?j:O||j,Ee=W||re,Oe=p?.find(Ne=>B!=null&&(0,$s.Gv)(Ne)&&"id"in Ne&&Ne.id===B),Ue=Oe!=null&&(0,$s.Gv)(Oe),we=(0,$s.Gv)(k)&&"l10nId"in k?k.l10nId:void 0,Be=em.useCallback(()=>{T(!0)},[]),de=em.useCallback(({percentComplete:Ne})=>{Ne>=100&&m?.({id:N})},[N,m]);if(!Ee)return(0,s.jsx)(OD,{mediaWidth:d});const se={audioVideoPlayhead:f,backgroundColor:t,blockId:e,blockPartnerContent:Oe,blockPartnerContentExists:Ue,captions:U,cornerRadius:n,courseId:o,currentLocale:I,dataL10nId:we,enableVideoPlaybackSpeed:r,forwardSeekRestricted:a,id:N,isLoaded:L,item:i,lessonId:l,loadMedia:u,mediaWidth:d,onLoad:Be,onProgressChanged:de,poster:z,publishedAt:g,recordMediaPlayheadPosition:v,renderCaption:C,subtitle:fe,tenantId:x,type:b,videoKey:W,videoSrc:Ee};return E?(0,s.jsx)(eB,{...se,transcriptEnabled:y},W):(0,s.jsx)(HD,{...se},W)}const sB=q("block-video");function tm({animateBlockEntrance:t,blockId:e,courseId:n,enableVideoPlaybackSpeed:o,initiallyVisible:r,isDragPreview:a,isLearner:i,isSidebarPreview:l,items:u,lessonId:d,loadMedia:m,onStep:p,partnerContent:f,progress:g,publishedAt:v,recordMediaPlayheadPosition:C,renderCaption:x,settings:y,takingSnapshot:b,tenantId:E,type:L,isVideoTraining:T}){const I=u?.[0];if(I==null)return null;const S=sB({"no-animation":!y?.entranceAnimation}).toString(),N=(0,$s.Gv)(y)&&"forwardSeekRestricted"in y?y.forwardSeekRestricted:void 0,k=(0,$s.Gv)(y)&&"mediaWidth"in y?y.mediaWidth??"1":"1",B=(0,$s.Gv)(y)&&"showTranscript"in y&&!!y.showTranscript,M=b||a||l;return(0,s.jsx)(Tt,{className:S,children:(0,s.jsx)(Pt,{animateBlockEntrance:t,initiallyVisible:r,isLearner:i,children:M?(0,s.jsx)(MD,{item:I}):(0,s.jsx)(tB,{audioVideoPlayhead:g?.items?.[e]?.items?.[I.id]?.audioVideoPlayhead??0,backgroundColor:y?.backgroundColor,blockId:e,cornerRadius:y?.cornerRadius,courseId:n,enableVideoPlaybackSpeed:o,forwardSeekRestricted:N,isVideoTraining:T,item:I,lessonId:d,loadMedia:m,mediaWidth:k,onStep:p,partnerContent:f,publishedAt:v,recordMediaPlayheadPosition:C,renderCaption:x,tenantId:E,transcriptEnabled:B,type:L})})})}var sm=c(26372);const Eu=q("block-audio"),nm=q("block-embed"),An=q("block-attachment");class nB extends sm.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:n}=this.state,o=Eu("caption",{hidden:!n}).toString();return(0,s.jsx)(ms,{className:o,value:e})}onLoad(){this.setState({loaded:!0})}renderItem(e){const{blockId:n,getL10nValue:o,labels:r,lessonId:a,loadMedia:i,progress:l,recordMediaPlayheadPosition:u,renderCaption:d=this.renderCaptionDelegate,settings:m}=this.props,p="forwardSeekRestricted"in m?m.forwardSeekRestricted:!1,f=e.media,g=
173o(f)??{},{id:v}=e,C=g?.tmp?.audio?.key||g?.audio?.key,x=`${a}-${n}-${v}`,y=Rt()(0,["items",n,"items",v,"audioVideoPlayhead"],l),b=Vh({lessonId:a,refs:`items:${n}/items:${v}`});return(0,s.jsxs)("div",{className:Eu("item"),children:[i&&(0,s.jsx)(t3,{audioVideoPlayhead:y,canRestrictSeek:!!p,id:x,item:e,labels:r,mediaSrc:C,onAIUploadFinish:this.props.onAIUploadFinish,onEnd:this.handleOnEnd.bind(this,v),onLoad:this.onLoad,onTranscriptClick:this.onTranscriptClick.bind(this,e),onTranscriptClose:this.props.closeTranscript,onTranscriptUpdate:this.props.onTranscriptUpdate??void 0,recordMediaPlayheadPosition:u,refs:`items:${n}/items:${v}`,transcriptMedia:f,uploadId:b},x),d(e)]},v)}handleOnEnd(e){this.props.onStep({id:e})}onTranscriptClick(e){const{blockId:n}=this.props;return this.props.openTranscript?.({blockId:n,item:e,refs:`items:${n}/items:${e.id}`})}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a}=this.props,{entranceAnimation:i}=a,l=Eu({"no-animation":!i}).toString(),u=r.length>0?r.slice(0,1):[];return(0,s.jsx)(Tt,{className:l,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:Eu("wrapper"),children:u.map(d=>this.renderItem(d))})})})}}const oB=Qf(Yt(nB));class rB extends sm.Component{static get defaultProps(){return{items:[],editable:!1,lessonId:"",blockId:"",settings:{}}}renderItem(e,n){const{id:o,settings:r={}}=e,a=this.props.getL10nValue(e.media)??{},i="embed"in a?a.embed:void 0,{loadMedia:l,labels:u,settings:d}=this.props,{showMetaData:m}=r,{cardMode:p,showBorder:f=!0}=d,g=nm("item",{border:f}).toString();return(0,s.jsx)(Gs,{className:g,disabled:!f&&p==Un.TRANSPARENT,tag:"section",children:l&&(0,s.jsx)(l3,{data:i,id:`${n}-${o}`,isLesson:!0,labels:u,showMetaData:m})},o)}render(){const{animateBlockEntrance:e,blockId:n,getL10nValue:o,initiallyVisible:r,isLearner:a,items:i,settings:l}=this.props,{entranceAnimation:u,mediaWidth:d="0"}=l,m=o(i?.[0]?.media);if(!m)return null;const p=gM(m)!=="link",f=nm({"no-animation":!u}).toString(),g=nm("wrapper",{medium:p&&d==="1",full:p&&d==="2"}),v=i.length>0?i.slice(0,1):[];return(0,s.jsx)(Tt,{className:f,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)("div",{className:g,children:v.map(C=>this.renderItem(C,n))})})})}}const aB=Yt(sh()(rB));class iB extends sm.Component{get attachment(){const e=this.props.items[0].media;return this.props.getL10nValue(e)?.attachment??{}}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o}=this.props;return(0,s.jsx)(Tt,{children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:"block-text--onecol",children:(0,s.jsx)("div",{className:"block-text__container",children:(0,s.jsx)("div",{className:"block-text__row",children:(0,s.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:n,originalUrl:o,size:r}){const{attachmentId:a,blockId:i,externalLinksDisabled:l,onLinkBlur:u,onLinkFocus:d,onLinkMouseEnter:m,onLinkMouseLeave:p}=this.props,f=(0,Ge.o1)(e),g=l?"":void 0,v=l?void 0:f,C=l?void 0:"noopener noreferrer nofollow",x=l?"button":void 0,y=l?0:void 0,b=l?void 0:"_blank",E=An({}).mix("brandHover").toString(),L=An("info");return(0,s.jsxs)(Gs,{"aria-labelledby":`attachment-name-${i} attachment-icon-${i}`,className:E,"data-external":g,download:o,href:v,id:l?a:void 0,onBlur:l?()=>u?.(a):void 0,onFocus:l?()=>d?.(a):void 0,onMouseEnter:l?()=>
173m?.(a):void 0,onMouseLeave:l?()=>p?.(a):void 0,rel:C,role:x,tabIndex:y,tag:"a",target:b,children:[(0,s.jsxs)("div",{className:An("main"),children:[(0,s.jsx)("div",{className:An("icon"),id:`attachment-icon-${i}`,children:this.fileIcon(n)}),(0,s.jsxs)("div",{className:L,children:[(0,s.jsx)(yt,{className:An("title").toString(),id:`attachment-name-${i}`,value:o}),(0,s.jsx)("div",{className:An("size").toString(),children:wD()(r,{round:1})})]})]}),(0,s.jsx)("div",{className:An("rest"),children:(0,s.jsx)(m4,{className:"brandHover__target--fill"})})]})}renderNoFile(){const e=An({none:!0}).toString(),n=An("info");return(0,s.jsx)(Gs,{className:e,children:(0,s.jsxs)("div",{className:An("main"),children:[(0,s.jsx)("div",{className:An("icon"),children:(0,s.jsx)(N2,{"aria-label":"File"})}),(0,s.jsxs)("div",{className:n,children:[(0,s.jsx)("div",{className:An("title").toString(),children:"File Attachment Block"}),(0,s.jsx)("div",{className:An("size").toString(),children:"No file added"})]})]})})}fileIcon(e){const{labels:n}=this.props,o=/excel|spreadsheet/,r=/pdf/,a=/word/,i=/powerpoint|presentation/,l=/rtf|richtext/,u=/zip/;return o.test(e)?(0,s.jsx)(W4,{"aria-label":n?.a11yExcelIcon}):r.test(e)?(0,s.jsx)(z4,{"aria-label":n?.a11yPDFIcon}):a.test(e)?(0,s.jsx)(H4,{"aria-label":n?.a11yWordIcon}):i.test(e)?(0,s.jsx)(U4,{"aria-label":n?.a11yPPTIcon}):l.test(e)?(0,s.jsx)($4,{"aria-label":n?.a11yRTFIcon}):u.test(e)?(0,s.jsx)(_4,{"aria-label":n?.a11yZipIcon}):(0,s.jsx)(N2,{"aria-label":n?.a11yFileIcon})}}function cB(t){const e=sh()(t),n=Yt(e),o=Q7(n);function r(a){const i=(0,xe.DX)(),l=a.externalLinksDisabled??(i&&"externalLinksDisabled"in i?i.externalLinksDisabled:!1);return(0,s.jsx)(o,{...a,externalLinksDisabled:l})}return r}const lB=cB(iB),go=q("block-step"),dB=t=>{const{blockId:e,disableZoom:n,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:l,lessonNumber:u,mediaType:d,audioPosition:m}=t,{settings:p}=a,f=(0,et.QQ)(a.media)??{},g=d==="audio"&&f.audio,v=d==="embed"&&f.embed,C=d==="image"&&f.image,x=d==="video"&&f.video;if(!g&&!v&&!C&&!x&&!(d==="image-with-audio"&&r))return;const b=f.embed?ga(f.embed):void 0,E=!!f.image,L=!!f.audio,T=E?f.image.align:"center",I=go("media",{audio:L&&!r,"audio-and-embed":!!(f.audio&&f.embed),"image-with-audio":r,[`image-with-audio-${T}`]:r&&!!T,"audio-on-bottom":L&&!r&&m==="bottom",linkEmbed:b==="link",videoEmbed:b==="video",visual:!r&&E||!on()(f.video)}),S=p||{};return(0,s.jsx)("div",{className:I,children:(0,s.jsx)(Zs,{blockId:e,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:l,lessonNumber:u,media:f,mediaType:r?void 0:d,opts:{disableZoom:n,...S},shouldPause:!0})})},uB=t=>{const{headingLevel:e,innerRef:n,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:l,renderTitle:u,renderDescription:d,style:m}=t,{id:p}=o,f=go({active:r}),g=!!o.step,v=!!o.title,C=e||2,x=`h${C}`,y=`h${C+1}`,b=(0,et.QQ)(o.media),E=vo(b,i,!0,"timeline"),L=(0,et.QQ)(o.description),T=(0,h.useMemo)(()=>!!Object.keys(b??{}).length||!!C1(L).value?.length,[b,L]),I=()=>{const S={audio:{item:{...o,media:E.audioOnlyMedia||b},mediaType:"audio"},image:{item:{...o,media:E.imageOnlyMedia||b},mediaType:"image"},video:{item:{...o,media:E.videoOnlyMedia||b},mediaType:"video"},embed:{item:{...o,media:E.embedOnlyMedia||b},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,s.jsx)(s.Fragment,{children:E.renderOrder.map((N,k)=>{if(N==="text")return d?(0,s.jsx)("div",{className:go("description"),children:d(o)},`text-${k}`):(0,s.jsx)(yt,{className:go("description"),value:o.description},`text-${k}`);if(!b||!a)return null;const B=S[N];return B?(0,h.createElement)(dB,{...t,...B,key:`${N}-${k}`}):null})})};return(0,s.jsx)(Tt,{children:(0,s.jsx)("div",{className:f,"data-id":p,ref:n,style:m,children:(0,s.jsx)(Gs,{className:go("body"),onFocus:l,children:(0,s.jsxs)("div",{className:go("main-wrap"),children:[(0,s.jsxs)("div",{className:go("heading",{solo:!T}),children:[g&&(0,s.jsx)("div",{className:go("step"),children:(0,s.jsx)(x,{children:(0,s.jsx)(xs,{value:o.step})})}),(v||u)&&(0,s.jsx)("div",{className:go("title"),children:u?u(o):(0,s.jsx)(y,{children:(0,s.jsx)(yt,{value:o.title})})})]}),(0,s.jsx)("div",{className:go("main"),children:I()})]})})})})},hB=t=>{const{id:e,settings:n,items:o,onEnter:r,enableVideoPlaybackSpeed:a,initiallyVisible:i,isLearner:l,labels:u,lessonId:d,renderTitle:m,renderDescription:p}
173=t,f=o[0],g=n.audioPosition,v=!n.zoomOnClick,C=n.headingLevel,x=(0,h.useCallback)((b,E)=>{r?.({id:e,payload:{activeIndex:b,itemId:E}})},[e,r]),y=(0,s.jsx)(uB,{audioPosition:g,blockId:e,disableZoom:v,enableVideoPlaybackSpeed:a,headingLevel:C,isActive:!0,item:f,labels:u,lessonId:d,lessonNumber:e,loadMedia:!0,onFocus:x,renderDescription:p,renderTitle:m,style:{"--block-step-padding-top":`${n.paddingTop}rem`,"--block-step-padding-bottom":`${n.paddingBottom}rem`,"--block-step-corner-radius":`${n.cornerRadius??0}px`}});return l?(0,s.jsx)(Pt,{animateBlockEntrance:!0,className:go("animate").toString(),initiallyVisible:i,isLearner:!0,children:y}):y},mB=q("continue-btn"),om=({href:t,onClick:e,text:n})=>{const o=`${mB()} brand--ui`;return t?(0,s.jsx)(yn,{className:o,"data-continue-btn":"","data-testid":"continue-btn",onClick:e,to:t,children:(0,s.jsx)(xs,{value:n})}):(0,s.jsx)("button",{className:o,"data-continue-btn":"","data-testid":"continue-btn",onClick:e,type:"button",children:(0,s.jsx)(yt,{value:n})})},P3=({bgType:t,text:e,iconType:n="locked"})=>{const o=oe()("continue-hint",{"continue-hint--bg-transparent":t==="transparent"});return(0,s.jsxs)("div",{className:o,"data-continue-btn":"",children:[n==="locked"&&(0,s.jsx)(tt,{className:"continue-hint__icon",name:"lock-keyhole-light"}),(0,s.jsx)("div",{className:"continue-hint__content",children:(0,s.jsx)(xs,{value:e})})]})},rm=q("block-text");function pB({blockId:t,animateBlockEntrance:e,canContinue:n=!1,isComplete:o,isLearner:r,isLastBlock:a=!1,isOnlyBlockInStep:i,items:l=[],labels:u,onStep:d=()=>{},skipContinue:m=!1,initiallyVisible:p}){const g=(0,h.useRef)(null),v=(0,ke.A)(o),[C,x]=h.useState(!1),{announcePolite:y}=vt(),[b,E]=h.useState(!1),L=nn(),T=(0,xe.DX)(),I=(0,xe.kJ)(),S=(0,xe.Ge)(I),N=l[0],{id:k,title:B,type:M}=N,R=!M||(m?b:n||i&&o),H=m||!o||i,P=L?.continueColor||I,j=!P||P===I,O=j&&T?.theme?.accentContrast===w.Em.AUTO?w.Em.AUTO:S,U=L?.continueColorContrast??O,W=L?.continueRadius??null,z=L?.continueWidth??76,re=Ws({backgroundColor:P,contrast:U}),fe={...!j&&{"--color-button-bg":P},...!j&&{"--color-button-text":re},...!j&&{"--color-button-border":"transparent"},...W!=null&&{"--radius-button":`${Number(W)}px`},...z!=null&&{maxWidth:`${Number(z)}rem`}},Ee=(0,h.useCallback)(()=>{d({id:k}),x(!0),a?setTimeout(()=>{const Oe=document.querySelector("[data-lesson-id]"),Ue=document.querySelector("main"),we=document.querySelector("h1.lesson-header__title, .lesson-header__title h1"),Be=Oe?.querySelector('.block-wrapper, [role="region"], .lesson-content > *:first-child');let de=null;we?de=we:Be&&Be!==g.current?.parentElement?de=Be:Oe?de=Oe:Ue&&(de=Ue),de&&(de.setAttribute("tabindex","-1"),de.focus({preventScroll:!0}))},200):setTimeout(()=>{const Oe=g.current;Oe&&Oe.focus()},100)},[k,d,a]);return(0,h.useEffect)(()=>{!v&&o&&(a||setTimeout(()=>{y?.(u?.a11yStatusAdditionalContent)},300))},[y,o,u,v,a]),(0,h.useEffect)(()=>{const Oe=Ue=>{const{path:we}=Ue.detail,{blockId:Be,buttonId:de}=Ya(Ue.detail.path,["block","button"]);if(t==Be&&de===N.id){const se=we.at(-1);se==="title"?E(!0):se==="completeHint"&&E(!1)}};return window.addEventListener(Zt,Oe),()=>{window.removeEventListener(Zt,Oe)}},[t,N.id]),(0,s.jsxs)(s.Fragment,{children:[H&&(0,s.jsx)(Tt,{children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:p,isLearner:r,children:(0,s.jsx)("div",{className:rm("container"),children:(0,s.jsx)("div",{className:rm("row"),children:(0,s.jsxs)("div",{className:rm("continue"),style:fe,children:[R&&(0,s.jsx)(om,{onClick:Ee,text:B}),!R&&(0,s.jsx)(P3,{text:N.completeHint})]})})})})}),C&&(0,s.jsx)("div",{"aria-live":"off",className:"visually-hidden-always",ref:g,role:"status",tabIndex:-1,children:u?.a11yStatusContinued||"Continued"})]})}var am=c(85429),fB=c(23875),Tu=c.n(fB);const vB=q("flashcard");class gB extends h.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,h.createRef)();render(){const{cardRef:e,handleFlip:n,handleSideReady:o,handleTouchEnd:r,props:{activeIndex:a,allowTabNavigation:i,backDescription:l,backMedia:u,backType:d,block:m,forceFlipped:p,frontDescription:f,frontMedia:g,frontType:v,id:C,index:x,isHidden:y,labels:b,lessonId:E,prefersKeyboardNavigation:L,settingShowHint:T,size:I,type:S,wrapElement:N,wrapRole:k},state:{areSidesReady:B,flipped:M,isMounted:R}}=this,H=p||M,P=vB({large:I==="large",small:I==="small",flipped:H,stack:S==="stack"});return(0,s.jsxs)(N,{"aria-hidden":!i,className:P,onClick:n,onTouchEnd:r,ref:e,role:k,children:[(0,s.jsx)(Gs,{activeIndex:a,allowTabNavigation:i,blockId:m?.i
173d,blockType:S,description:f,index:x,isActiveSide:!H,isAriaHidden:H&&R&&B,isFlipped:H,isHidden:y,itemId:C,labels:b,lessonId:E,media:g,onFlip:n,onReady:o,prefersKeyboardNavigation:L,settingShowHint:T,side:"front",size:I,tag:M3,type:v}),(0,s.jsx)(Gs,{activeIndex:a,allowTabNavigation:i,blockId:m?.id,blockType:S,description:l,index:x,isActiveSide:H,isAriaHidden:!H&&R&&B,isFlipped:H,isHidden:y,itemId:C,labels:b,lessonId:E,media:u,onFlip:n,onReady:o,prefersKeyboardNavigation:L,settingShowHint:T,side:"back",size:I,tag:CB,type:d})]})}componentDidMount(){this.setState({isMounted:!0}),window.addEventListener(Zt,this.handleNavEvent)}componentDidUpdate(e,n){const{props:{allowTabNavigation:o,id:r,onStep:a},state:{hasFlippedOnce:i}}=this;!n.hasFlippedOnce&&i&&a({id:r}),e.allowTabNavigation&&!o&&this.setState({flipped:!1})}componentWillUnmount(){window.removeEventListener(Zt,this.handleNavEvent)}handleNavEvent=e=>{const{path:n}=e.detail,{cardId:o}=Ya(n,["block","card"]);if(o===this.props.id){let r=!1;n.includes("back")&&(r=!0),this.setState({flipped:r},()=>{this.props.type!=="stack"&&!wh(this.cardRef.current,"center")&&this.cardRef.current.scrollIntoView({behavior:"instant",block:"center"})})}};handleFlip=e=>{const{block:n,index:o}=this.props,r=window.getSelection(),a=r.toString()&&this.cardRef.current?.contains(r.anchorNode);if(e.detail>1&&r.empty(),e&&e.target.closest("a")||a)return;const i=!this.state.flipped;this.setState({areSidesReady:!1,flipped:i,hasFlippedOnce:!0});const l=i?"back":"front",u=n?.items?.[o],d=u?.[l]?.media,m=`items:${n?.id}/items:${u?.id}/${l}`;this.props.onTranscriptUpdate?.({audioPlayerId:fo({refs:m}),transcriptMedia:d}),this.props.onFlip?.(this.props.index,i)};handleTouchEnd=e=>{e.stopPropagation()};handleSideReady=()=>{this.setState({areSidesReady:!0})}}const w3=Fd(Yt(gB)),Li=q("flashcard-side"),Iu=q("flashcard-side-flip");class ba extends h.PureComponent{static descriptionActionTypes={INITIAL:"INITIAL",INSERTING:"INSERTING",DELETING:"DELETING"};static initialState={descriptionAction:ba.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,am.uniqueId)("flashcard-side")}state=ba.initialState;longBottomObserver=void 0;readyTimeout=void 0;refDescription=(0,h.createRef)();refDescriptionBottom=(0,h.createRef)();refSide=(0,h.createRef)();refBtnTimeoutMouseLeave=(0,h.createRef)();checkDescriptionSizeDebounced;handleMouseEnterAudio=()=>{const{itemId:e,index:n,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${e}-${n}-${r}-flip-btn`);a&&o&&(a.style.opacity="0.6")};handleMouseLeaveAudio=()=>{const{itemId:e,index:n,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${e}-${n}-${r}-flip-btn`);a&&o&&(a.style.opacity="1")};render(){const{props:{activeIndex:e,allowTabNavigation:n,block:o,className:r,description:a,getL10nValue:i,index:l,itemId:u,media:d,isActiveSide:m,isAriaHidden:p,isFlipped:f,labels:g,lessonId:v,onFlip:C,prefersKeyboardNavigation:x,settingShowHint:y,side:b,size:E,style:L,type:T},refDescription:I,refDescriptionBottom:S,refSide:N,state:{isAtLongOverflowBottom:k,isLong:B,isLongOverflow:M,isTooltipVisible:R,scrollbarWidthOffset:H}}=this,P=b==="front",j=b==="back",O=E==="small",U=E==="large",W=T==="description",z=T==="fullimage",re=T==="image",fe=P?g?.a11yBlockFlashcardFront:g?.a11yBlockFlashcardBack,Ee=`items:${o?.id}/items:${u}/${P?"front":"back"}`,Oe=Li({back:j,flipped:f,front:P,fullimage:z}).mix(r),{image:Ue,audio:we}=i(d)??{},Be=Li("content",{small:O,large:U,front:P,fullimage:z,image:re,"long-overflow":M,"long-overflow-bottom":k,"has-audio":!!we}),de=Iu({"audio-expansion":!0}),se=Iu("btn",{"visually-hidden":!y,"prefers-keyboard":x,round:!0}),Ne=Iu("icon"),Me=Iu("tooltip",{visible:R}),$e=Li("img",{small:O,large:U,centered:re,full:z}),Ae=Li("description",{"has-audio":!!we,long:B&&!M,"long-overflow":M,short:!B,large:U}),at=Li("description-bottom"),qe=H==null?void 0:{right:H},lt=Ue?.alt??`Image ${l+1}`,It=(0,Ft.ME)(Ue),Dt=`${this.id}-click-to-flip-text`,ns=`${this.id}-image`,gn=`${this.id}-description`;return(0,s.jsxs)("div",{"aria-label":fe,className:Oe,inert:p,ref:N,role:"group",style:L,tabIndex:-1,
173children:[(0,s.jsxs)("div",{className:Be,children:[(0,s.jsxs)("div",{className:de,onMouseEnter:this.handleBtnMouseEnter,onMouseLeave:this.handleBtnMouseLeave,style:qe,children:[(0,s.jsx)("button",{"aria-labelledby":`${Dt} ${gn} ${ns}`,className:se,id:`${u}-${l}-${b}-flip-btn`,onBlur:this.handleBtnBlur,onClick:C,onFocus:this.handleBtnFocus,tabIndex:n&&m?0:-1,type:"button",children:(0,s.jsx)(f8,{className:Ne})}),(0,s.jsx)("div",{"aria-hidden":"true",className:Me,id:Dt,onClick:Lr,children:g?.blocksClickToFlip})]}),(z||re)&&(0,s.jsx)(xB,{alt:lt,className:$e,imageId:ns,l10nId:(0,Lt.pP)(d),url:It}),W&&(0,s.jsxs)("div",{className:Ae,ref:I,tabIndex:m&&M?0:void 0,children:[(0,s.jsx)(yt,{allowTabNavigation:n&&!p,id:gn,value:a}),M&&(0,s.jsx)("div",{className:at,ref:S})]})]}),we&&(0,s.jsx)("div",{className:Li("audio-player",{text:W,image:re}),onMouseEnter:this.handleMouseEnterAudio,onMouseLeave:this.handleMouseLeaveAudio,children:(0,s.jsx)(Zs,{activeIndex:e,blockId:o.id,index:`${u}-${l}-${b}`,isOverlayAudio:z,item:{id:u,media:d},itemIndex:l,labels:g,lessonId:v,media:d,mediaType:"audio",refs:Ee,shouldPause:!m,side:b})})]})}componentDidMount(){this.checkDescriptionSize(this.props),this.checkDescriptionSizeDebounced=Tu()(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,n){const{props:{allowTabNavigation:o,blockType:r,isFlipped:a,isActiveSide:i,isHidden:l,onReady:u,type:d}}=this;e.isHidden&&!l&&this.checkDescriptionSize(this.props),e.isFlipped!==a&&(i&&o?(this.refSide.current?.focus?.(),this.readyTimeout=setTimeout(()=>{u()},700)):clearTimeout(this.readyTimeout)),d==="description"&&this.handleUpdatesDescription(e,n),r==="stack"&&i&&!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=>{pn(e)&&this.state.isTooltipVisible&&this.setState({isTooltipVisible:!1})};handleUpdatesDescription=(e,n)=>{const{props:{isFlipped:o,isActiveSide:r},state:{isLongOverflow:a}}=this;e.isFlipped!==o&&r&&this.scrollDescriptionToTop(),this.handleUpdatesDescriptionSize(e,n),!n.isLongOverflow&&a?(this.setLongBottomObserver(),this.setScrollbarWidth()):n.isLongOverflow&&!a&&this.cleanupLongBottomObserver()};handleUpdatesDescriptionSize=(e,n)=>{const{INSERTING:o,DELETING:r}=ba.descriptionActionTypes,{props:{description:a,size:i,type:l,getL10nValue:u},state:{descriptionAction:d,isLong:m,isLongOverflow:p}}=this,f=u(a)?.length||0,g=u(e.description)?.length||0;d!==o&&f>g?this.setState({descriptionAction:o}):d!==r&&f<g?this.setState({descriptionAction:r}):(d!==n.descriptionAction||m!==n.isLong||p!==n.isLongOverflow||i!==e.size||l!==e.type||f!==g)&&this.checkDescriptionSize(e)};checkDescriptionSize=e=>{const{DELETING:n}=ba.descriptionActionTypes,{props:{size:o},refDescription:{current:r},state:{descriptionAction:a,isLong:i,isLongOverflow:l}}=this;if(!r)return;r&&r.scrollHeight>r.clientHeight?i&&!l?this.setState({isLongOverflow:!0}):!i&&!l&&this.setState({isLong:!0}):(a===n||o!==e.size)&&this.setState(ba.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 n=o=>{const r=o?.[0]?.isIntersecting??!1;this.setState({isAtLongOverflowBottom:!r})};this.longBottomObserver=new IntersectionObserver(n,{threshold:[0,1]}),this.longBottomObserver.observe(e)}};cleanupLongBottomObserver=()=>{this.longBottomObserver?.disconnect?.(),this.longBottomObserver=void 0};setScrollbarWidth=()=>{const e=this.refDescription.current;if(e){const n=e.offsetWidth-e.clientWidth;n>0&&this.setState({scrollbarWidthOffset:n})}}}const M3=Fd(Yt(t=>(0,s.jsx)(ba,{...t}))),CB=t=>
173{const{cardMode:e,customBackgroundColorContrast:n}=nn(),o=(0,xe.DX)()?.theme,r=Vd(),a=wo(),l=a===w.xj.IMAGE&&r?.overlayColor===w.df.LIGHT,u=En(),d=o?.accentContrast,m=d===w.Em.AUTO,p=(0,h.useMemo)(()=>{let g="#fafafa";if(e===Un.TRANSPARENT)switch(a){case w.xj.DARK:g="#525252";break;case w.xj.BLACK:g="#1a1a1a";break;case w.xj.IMAGE:l?g="rgba(0, 0, 0, 0.7)":g="rgba(255, 255, 255, 0.7)";break;case w.xj.ACCENT:case w.xj.COLOR:case w.xj.TINT:{let x=0;switch((0,pt.XC)(u)){case pt.lL.LIGHT:x=.5;break;case pt.lL.MED:x=-.35;break;case pt.lL.DARK:x=-.65;break;case pt.lL.NEAR_BLACK:x=.1;break}g=(0,pt.W8)(x,u)}}const v={"--color-background":g},C=a===w.xj.COLOR?n:d;if((a===w.xj.ACCENT||a===w.xj.COLOR)&&e===Un.TRANSPARENT&&m){const x=Ws({backgroundColor:g,contrast:C});v["--color-text"]=x}return v},[u,a,e,n,m,l,d]),f={...t,style:p};return(0,s.jsx)(M3,{...f})},xB=({alt:t,className:e,imageId:n,l10nId:o,url:r})=>{const a=(0,He.Ll)(t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(In,{alt:a,className:e,"data-l10n-id":o,id:n,src:r}),!a&&(0,s.jsx)("span",{className:"visually-hidden-always",children:"No image alternative text"})]})};class bB extends h.Component{static defaultProps={editable:!1,isRTL:!1,items:[],onStep:()=>{},stack:!1};state={activeIndex:0,flipStateMap:{},prefersKeyboardNavigation:!0};render(){const{blockId:e,animateBlockEntrance:n,initiallyVisible:o,isHidden:r,isLearner:a,items:i,labels:l,lessonId:u,onStep:d,previewType:m,isRTL:p,settings:f,stack:g}=this.props,{activeIndex:v}=this.state,{prefersKeyboardNavigation:C}=this.state,{entranceAnimation:x,showHint:y}=f,b=oe()("block-flashcards",{"block-flashcard--column":!g,"block-flashcard--stack":g,"block-flashcards--no-animation":!x}),L=f.flashcardSize==="1"?"small":f.flashcardSize==="2"?"large":i.length>2?"small":"large",T=m===ot.o4.MOBILE_PORTRAIT||m===ot.o4.MOBILE_LANDSCAPE;return(0,s.jsx)(Tt,{className:b,children:g?(0,s.jsx)(Pt,{animateBlockEntrance:n,initiallyVisible:o,isLearner:a,children:(0,s.jsx)("div",{className:"block-flashcard-carousel",children:(0,s.jsx)(vu,{blockId:e,items:i,children:({carouselRef:I})=>(0,s.jsx)(pu,{iconNameLeft:"chevron-left",iconNameRight:"chevron-right",isInfinite:!1,isRTL:p,labelCarousel:l?.a11yBlockFlashcardStack,labelCarouselRoleDesc:l?.a11yBlockFlashcardStackRoleDescription,labelSlideControls:l?.a11yBlockFlashcardStackSlideControls,labelSlideControlsGoToNext:l?.a11yBlockFlashcardStackSlideControlsGoToNext,labelSlideControlsGoToPrevious:l?.a11yBlockFlashcardStackSlideControlsGoToPrevious,labelSlideControlsGoToSlide:l?.a11yBlockFlashcardStackSlideControlsGoToSlide,labelSlideCounterPreposition:l?.blocksPreposition,labelSlidePreposition:l?.a11yBlockFlashcardStackSlidePreposition,labelSlideRoleDesc:l?.a11yBlockFlashcardStackSlideRoleDescription,onChange:this.handleCarouselChange.bind(this),ref:I,shouldMouseEmulateTouch:T,shouldUseCounter:!0,shouldUseGoToSlide:!1,children:i.map((S,N)=>(0,s.jsx)(w3,{activeIndex:v,backDescription:S?.back?.description,backMedia:S?.back?.media,backType:S?.back?.type,frontDescription:S?.front?.description,frontMedia:S?.front?.media,frontType:S?.front?.type,id:S?.id,index:N,isHidden:r,labels:l,lessonId:u,onFlip:this.handleFlip.bind(this),onStep:d,prefersKeyboardNavigation:C,settingShowHint:y,size:"large",type:"stack",wrapElement:"div"},S?.id))})})})}):(0,s.jsx)(Pt,{animateBlockEntrance:n,className:"block-flashcards__animation",initiallyVisible:o,isLearner:a,siblingDelay:.25,children:(0,s.jsx)("ol",{className:"block-flashcards__wrapper",role:"list",children:i.map((I,S)=>(0,s.jsx)(w3,{activeIndex:v,backDescription:I?.back?.description,backMedia:I?.back?.media,backType:I?.back?.type,blockId:e,frontDescription:I?.front?.description,frontMedia:I?.front?.media,frontType:I?.front?.type,id:I?.id,index:S,isHidden:r,labels:l,lessonId:u,onStep:d,prefersKeyboardNavigation:C,settingShowHint:y,size:L,type:"grid",wrapElement:"li",wrapRole:"listitem"},I?.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&&!mL(e)&&this.setState({prefersKeyboardNavigation:!0})};handleMouseDown=()=>{this.state.prefersKeyboardNavigation&&this.setState({prefersKeyboardNavigation:!0})};handleFlip(e,n){this.setState(o=>({flipStateMap:{...o.flipStateMap,[e]:n}}))}handleCarouselChange(e){const{block:n,onTranscriptUpdate:o}=this.props,{flipStateMap:r}=this.state,a=r[e]?"back":"front",i=n.items?.[e],l=i?.[a]?.media,u=`items:${n?.id}/items:${i?.id}/${a}`;o?.({audioPlayerId:fo({refs:u}),transcriptMedia:l}),this.setState({activeIndex:e})}}const O3=Uh(Yt(Fd(bB))),D3=({canProceed:t,isReduceMotion:e,onNext:n,onSubmit:o,quizNext:r,quizSubmit:a,allowNext:i=!1})=>{const l=t?!0:void 0,u=t?void 0:o,d=t?-1:void 0,m=t?void 0:!0,p=t?n:void 0,f=t?void 0:-1,g=(0,h.useRef)(null),v=(0,ke.A)(t);(0,h.useEffect)(()=>{i&&!v&&t&&setTimeout(()=>{g.current?.focus?.({preventScroll:e})},0)},[i,t,e,v]);const C=oe()("quiz-card__actions",{"quiz-card__actions--proceed":t}),x=oe()("quiz-card__button","quiz-card__button--next","brand_ui",{"brand--background":t,"visually-hidden-alw
173ays":!t});return(0,s.jsxs)("div",{className:C,children:[(0,s.jsx)("div",{className:"quiz-card__submit brand--ui",children:!l&&(0,s.jsx)("button",{className:"quiz-card__button","data-testid":"quiz-submit-button",onClick:u,tabIndex:d,type:"button",children:a})}),(0,s.jsx)("br",{className:"visually-hidden-always",role:"presentation"}),i&&(0,s.jsx)("div",{className:"quiz-card__next brand--ui",children:(0,s.jsx)("button",{"aria-disabled":m,"aria-hidden":m,className:x,"data-testid":"quiz-next-button",onClick:p,ref:g,tabIndex:f,type:"button",children:r})})]})},yB=({children:t,isActive:e,isComplete:n,isTimedQuiz:o,style:r})=>(0,s.jsx)("div",{"aria-hidden":e?void 0:!0,className:LB({isActive:e,isComplete:n,isTimedQuiz:o}),"data-testid":"quiz-card",inert:e?void 0:!0,style:r,children:(0,s.jsx)("div",{className:"quiz-card__container",children:(0,s.jsx)("div",{className:"quiz-card__row",children:(0,s.jsx)("div",{className:"quiz-card__main",children:t})})})}),LB=({isActive:t,isComplete:e,isTimedQuiz:n})=>oe()("quiz-card",{"quiz-card--active":t,"quiz-card--done":e,"quiz-card--timed":n}),B3=yB;var rt=c(22737);const{FILL_IN_THE_BLANK:H3,MATCHING:EB,MULTIPLE_CHOICE:TB,MULTIPLE_RESPONSE:IB}=rt.UQ;function SB(t,e){return t.map(n=>String(e(n?.title)??"")).filter(Boolean).join(", ")}function NB(t,e,n){const o=e!=null?t.find(r=>r.id===e):t.find(r=>r.correct===!0);return String(n(o?.title)??"")}function jB(t,e,n){return String(n(t?.[e]?.title)??"")}function F3(t,e,n){return e.filter(t).reduce((o,r,a)=>{const i=String(n(r?.title)??"");return a===0?i:o+", "+i},"")}function kB(t,e,n){return F3(r=>Array.isArray(t)?t.includes(r.id):!!r.correct,e,n)}function AB(t,e,n){return F3((r,a)=>e.includes(a),t,n)}function RB({answers:t,getL10nValue:e,selection:n,correctLabel:o,userLabel:r,matchLabel:a="Match Item: ",revealAnswers:i}){const l=Object.fromEntries(Object.entries(n).map(([u,d])=>[d,u]));return t.map((u,d)=>{const m=String(e(u?.title)??""),p=String(e(u?.matchTitle)??""),f=l?.[d],g=String(e(t?.[Number(f)]?.title)??"");return i===rt.iV.INCORRECT?`${a}${p}. ${r}: ${g}.`:`${a}${p}. ${o}: ${m}. ${r}: ${g}.`}).join(" ")}function im({correctAnswer:t,selectedAnswer:e,correctLabel:n,userLabel:o,revealAnswers:r}){return!t||!e||r===rt.iV.NONE?"":r===rt.iV.INCORRECT?`${o}: ${(0,Io.QZ)(e)}.`:`${n}: ${(0,Io.QZ)(t)}. ${o}: ${(0,Io.QZ)(e)}.`}function PB(t,e){return t.type===H3?e?.quizAcceptableResponses:e?.a11yCorrectLive}function wB({getL10nValue:t,isComplete:e,item:n,selection:o,labels:r,revealAnswers:a}){if(!n||!e)return null;const i=n?.answers??[],l=n?.correct,u=n?.corrects,d=PB(n,r),m=r?.a11yAnswerLive;switch(n.type){case EB:return RB({getL10nValue:t,answers:i,selection:o,correctLabel:d,userLabel:m,revealAnswers:a});case H3:return im({correctAnswer:SB(i,t),selectedAnswer:o,correctLabel:d,userLabel:m,revealAnswers:a});case TB:return im({correctAnswer:NB(i,l,t),selectedAnswer:jB(i,o,t),correctLabel:d,userLabel:m,revealAnswers:a});case IB:return im({correctAnswer:kB(u,i,t),selectedAnswer:AB(i,o,t),correctLabel:d,userLabel:m,revealAnswers:a})}return null}const V3=({canProceed:t,feedbackRef:e,feedbackValue:n,isActive:o,isComplete:r,isCorrect:a,item:i,labels:l,quizCorrect:u,quizIncorrect:d,revealAnswers:m,selection:p})=>{const{announcePolite:f,clearAnnouncements:g}=vt(),v=(0,ke.A)(t),C=(0,et.gY)(),y=!!(0,et.QQ)(n),b=a?u:d,E=(0,h.useCallback)(()=>{const I=wB({getL10nValue:C,isComplete:r,item:i,labels:l,revealAnswers:m,selection:p}),S=n?(0,Io.QZ)(C(n)):"",N=b+". "+I+" "+S;let k;return N&&(k=setTimeout(()=>{f(N)},250)),()=>{clearTimeout(k)}},[f,n,C,r,i,l,b,m,p]);(0,h.useLayoutEffect)(()=>{!v&&t&&m!==rt.iV.NONE&&E()},[t,v,E,m]),(0,h.useEffect)(()=>g,[g]);const L=oe()("quiz-card__feedback",{"quiz-card__feedback--active":t,"quiz-card__feedback--frame":y}),T=oe()("quiz-card__feedback-icon",{"quiz-card__feedback-icon--correct":a});return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{"aria-hidden":o?void 0:!0,className:L,ref:e,children:(0,s.jsx)("div",{className:"quiz-card__main--feedback",children:(0,s.jsxs)("div",{"aria-label":l?.a11yQuizFeedback,className:"quiz-card__feedback-wrap",role:"group",children:[(0,s.jsx)("div",{className:T,children:(0,s.jsx)("i",{"aria-hidden":"true",className:a?"icon icon-Master-05":"icon icon-Master-06"})}),(0,s.jsx)("div",{className:"quiz-card__feedback-label",children:b}),n&&(0,s.jsx)("div",{children:(0,s.jsx)(yt,{allowTabNavigation:r&&o,
173className:"quiz-card__feedback-text",value:n})})]})})})})},{FILL_IN_THE_BLANK:MB}=rt.UQ,OB=({children:t,type:e})=>(0,s.jsx)("div",{className:DB({type:e}),children:t}),DB=({type:t})=>oe()("quiz-card__interactive",{"quiz-card__interactive--no-border":[MB].includes(t)}),z3=OB,kr=({allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:n,index:o,isOverlayAudio:r,item:a,labels:i,media:l,settings:u,shouldPause:d})=>l==null||!Object.keys(l).some(m=>m!=="tmp")?null:(0,s.jsx)("div",{className:"quiz-card__media",children:(0,s.jsx)(Zs,{allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:n,index:o,isOverlayAudio:r,item:a,labels:i,media:l,opts:u,shouldPause:d})}),BB=(t,e)=>{const n=jn(),o=(0,ke.A)(e);(0,h.useEffect)(()=>{!o&&e&&t&&Id()(t.focus)&&t.focus({preventScroll:n})},[e,n,o,t])},Su=q("question-counter"),HB=({isActive:t=!1,labels:e,questionLabel:n,questionNumber:o,totalQuestions:r})=>{const a=(0,h.useRef)(null);BB(a.current,t);const i=`${e?.quizQuestion} ${o} ${e?.lessonPreposition} ${r}`,l=`${lv(o)}/${lv(r)}`;return(0,s.jsx)("div",{className:Su(),children:(0,s.jsxs)("h1",{"aria-label":i,className:Su("heading"),ref:a,tabIndex:-1,children:[(0,s.jsx)("span",{"aria-hidden":"true",className:Su("label"),children:n}),(0,s.jsx)("span",{"aria-hidden":"true",className:Su("count"),children:l})]})})},FB=q("question-title"),VB=({allowTabNavigation:t,htmlId:e,value:n})=>(0,s.jsx)(yt,{allowTabNavigation:t,className:FB(),"data-testid":"quiz-question-title",id:e,value:n}),zB=({allowTabNavigation:t,correctAnswerColor:e,correctAnswerColorContrast:n,errorMessageId:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:i,isCorrect:l,labels:u,onEnterToSubmit:d=Function.prototype,onChange:m=Function.prototype,options:p,questionHtmlId:f,quizAcceptableResponses:g,quizAnswerPlaceholder:v,revealAnswers:C,value:x})=>{const y=(0,h.useRef)(null),[b]=(0,h.useState)(()=>Ns()("fitb-")),E=(0,et.gY)(),L=UB({options:p,getL10nValue:E}),T=`${b}-feedback`,I=`${b}-acceptable`,S=`${b}-input`,N=i?`${T} ${I}`:o||void 0,k=i?void 0:v,B=t?0:zd,M=C===rt.iV.ALL||C===rt.iV.INCORRECT,R=C===rt.iV.ALL||l&&C===rt.iV.INCORRECT,H=l?e:r,j=e&&r&&{"--fa-primary-color":Ws({backgroundColor:H,contrast:l?n:a}),"--fa-secondary-color":H},O=r&&{backgroundColor:Ws({backgroundColor:r,contrast:a}),fill:r,borderRadius:"50%"},U=oe()("quiz-fill__icon",{"quiz-fill__icon--visible":i}),W=oe()("quiz-fill__options",{"quiz-fill__options--visible":i}),z=(0,h.useCallback)(Oe=>{m(Oe.currentTarget.value)},[m]),re=(0,h.useCallback)(Oe=>{ii(Oe)&&d(Oe)},[d]),fe=i?void 0:z,Ee=i?void 0:re;return(0,s.jsxs)("div",{className:"quiz-fill",children:[(0,s.jsxs)("div",{className:"quiz-fill__container",children:[(0,s.jsx)("input",{"aria-describedby":N,"aria-hidden":!t,"aria-invalid":o?!0:void 0,"aria-labelledby":f,"aria-readonly":i,"aria-required":"true",autoComplete:"off",className:"quiz-fill__input ignore-prefers",id:S,onChange:fe,onKeyDown:Ee,placeholder:k,readOnly:i,ref:y,tabIndex:B,type:"text",value:x}),M&&(0,s.jsxs)("div",{className:U,id:T,children:[l&&(0,s.jsx)(tt,{"aria-label":u?.quizCorrect,name:"circle-check",styleIcon:{height:"2rem",...j}}),!l&&(0,s.jsx)(t7,{"aria-label":u?.quizIncorrect,style:O})]})]}),R&&i&&(0,s.jsx)("div",{className:W,id:I,children:(0,s.jsx)(yt,{value:`${g}: ${L}`})})]})},UB=({options:t,getL10nValue:e})=>t.map(o=>(e(o.title)??"").trim()).join(", "),U3=zB;function $B({correctAnswerColor:t,correctAnswerColorContrast:e}){const n=(0,xe.vU)(),o=Ws({backgroundColor:t,contrast:e}),r=t?{"--fa-primary-color":o,"--fa-secondary-color":t}:void 0;return(0,s.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,s.jsx)(tt,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--correct",name:"circle-check",style:r}),(0,s.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,s.jsx)("span",{className:"matching-results-item-feedback-text-result",children:n?.quizCorrect})})]})}var Ei=c(26372);function WB({correctAnswerValue:t,incorrectAnswerColor:e,incorrectAnswerColorContrast:n,shouldRevealCorrectAnswer:o}){const[r,a]=Ei.useState(!0),[i,l]=Ei.useState(!1),u=Ei.useRef(null),m=`matching-text-${Ei.useId()}`,p=(0,xe.vU)(),f=(0,ke.A)(t),g=Ei.useCallback(()=>{a(L=>!L)},[]);Ei.useLayoutEffect(()=>{if(f!==t){const L=u.current;L!=null&&L.scrollWidth>L.clientWidth&&l(!0)}},[f,t]);const v=Ws({backgroundColor:e,contrast:n}
173),C=e?{"--fa-primary-color":v,"--fa-secondary-color":e}:void 0,x=oe()("matching-results-item-feedback-text",{"matching-results-item-feedback-text--collapsed":r}),y=oe()("matching-results-item-feedback-text-btn-icon",{"matching-results-item-feedback-text-btn-icon--collapsed":r}),b=oe()("matching-results-item-feedback-text-extra",{"matching-results-item-feedback-text-extra--collapsed":r}),E=oe()("matching-results-item-feedback-text-extra-text",{"matching-results-item-feedback-text-extra-text--collapsed":r});return(0,s.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,s.jsx)(tt,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--incorrect",name:"circle-xmark-duotone",style:C}),!o&&(0,s.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,s.jsx)("span",{className:"matching-results-item-feedback-text-result",children:p?.quizIncorrect})}),o&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("span",{className:x,children:[(0,s.jsxs)("span",{className:"matching-results-item-feedback-text-result",children:[p?.quizIncorrect,"."]}),i&&(0,s.jsx)("button",{"aria-controls":m,"aria-expanded":!r,"aria-label":r?p?.a11yMatchingItemShowMore:p?.a11yMatchingItemShowLess,className:"matching-results-item-feedback-text-btn",onClick:g,type:"button",children:(0,s.jsx)(tt,{className:y,name:"caret-down",style:C})}),(0,s.jsx)("span",{className:b,children:(0,s.jsxs)("span",{className:E,id:m,ref:u,children:[p?.quizCorrect,": ",(0,s.jsx)(xs,{value:t})]})})]})})]})}function _B({col1Id:t,col1Value:e,col2Id:n,col2Value:o,correctAnswerColor:r,correctAnswerColorContrast:a,correctAnswerValue:i,height:l,incorrectAnswerColor:u,incorrectAnswerColorContrast:d,revealAnswers:m}){const p=t===n,f=m!=="incorrect",g=m!=="none";return(0,s.jsxs)("li",{className:"matching-results-item",role:"listitem",children:[(0,s.jsxs)("div",{className:"matching-results-item-pieces",children:[(0,s.jsxs)("div",{className:"matching-results-item-piece",style:l?{height:l}:void 0,children:[(0,s.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,s.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,s.jsx)("span",{className:"matching-results-item-piece-content",children:(0,s.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,s.jsx)(xs,{value:e})})})]}),(0,s.jsxs)("div",{className:"matching-results-item-piece",children:[(0,s.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,s.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,s.jsx)("span",{className:"matching-results-item-piece-content",children:(0,s.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,s.jsx)(xs,{value:o})})})]})]}),g&&p&&(0,s.jsx)($B,{correctAnswerColor:r,correctAnswerColorContrast:a}),g&&!p&&(0,s.jsx)(WB,{correctAnswerValue:i,incorrectAnswerColor:u,incorrectAnswerColorContrast:d,shouldRevealCorrectAnswer:f})]})}function GB({answers:t,columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,itemHeight:i,revealAnswers:l,rows:u}){return(0,s.jsx)("div",{className:"matching-results",children:(0,s.jsx)("ul",{className:"matching-results-list",role:"list",children:u.map((d,m)=>{const[p,f]=d,g=e==="freezeFirst"?t.find(v=>v.id===p.id)?.matchTitle:t.find(v=>v.id===f.id)?.title;return(0,s.jsx)(_B,{col1Id:p.id,col1Value:p.value,col2Id:f.id,col2Value:f.value,correctAnswerColor:n,correctAnswerColorContrast:o,correctAnswerValue:g,height:i,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,revealAnswers:l},m)})})})}function KB(t){return Object.keys(t).length===0}function QB(t,e){return e in t}function ZB(t,e){return Object.values(t).includes(e)}function cm(t,e){for(const n in t)if(t[n]===e)return n}function YB(t,e,n){return{...t,[e]:n}}function Nu(t,e){return e in t?(0,$s.QD)(t,[e]):t}function XB(t,e){const n=cm(t,e);return n===void 0?t:Nu(t,n)}function $3(t,e,n){let o=Nu(t,e);return o=XB(o,n),YB(o,e,n)}function JB(t){return Object.keys(t).length}var qB=c(18077),lm=c.n(qB);lm().dynamicDrop(!0),lm().pointerMoveTolerance(8);const Do=lm();var Ti=c(26372);function eH(t,{onStart:e,onMove:n,onEnd:o,isEnabled:r=!0}){const a=Ti.useRef({x:0,y:0}),i=Ti.useRef({x:0,y:0}),l=Ti.useRef(!1),u=Ti.useRef(null),d=Ti.useRef(void 0);Ti.useEffect(()=>{const m=t.current;if(!m||!r||l.current)return;u.current=Jy(m);function p(){const f=u.current;return f instanceof Window?{x:window.scrollX,y:window.scrollY}:{x:f.scrollLeft,y:f.scrollTop}}return d.current=()=>{const f=p(),g=f.x-i.current.x,v=f.y-i.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)`,n?.({...a.current})),i.current=f)},Do(m).draggable({inertia:!1,autoScroll:{container:u.current,distance:5,interval:10,margin:50},listeners:{start:()=>{a.current={x:0,y:0},i.current=p(),u.current?.addEventListener("scroll",d.current,{passive:!0}),e?.()},move:f=>{a.current.x+=f.dx,a.current.y+=f.dy,m.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,n?.({...a.current})},end:()=>{a.current={x:0,y:0},m.style.transform="",u.current?.removeEventListener("scroll",d.current),setTimeout(()=>{o?.()},0)}}}),l.current=!0,()=>{Do(m).unset(),u.current?.removeEventListener("scroll",d.current),l.current=!1}},[t,e,n,o,r])}var W3=c(26372);function tH(t,{isEnabled:e=!0,onDrop:n,onEnter:o,onLeave:r,overlap:a=.015}){const i=W3.useRef(!1);W3.useEffect(()=>{const l=t.current;if(!(!l||!e||i.current))return Do(l).dropzone({overlap:a,listeners:{drop:()=>{n?.()},dragenter:()=>{o?.()},dragleave:()=>{r?.()}}}),i.current=!0,()=>{Do(l).unset(),i.current=!1}},[t,n,o,r,e,a])}var Kn=c(26372);const _3=Kn.memo(function({col:e,height:n,id:o,index:r,isActive:a,isFrozen:i,isMatched:l,isMoved:u,onClick:d,onDragEnd:m,onDragStart:p,onDrop:f,onDropZoneEnter:g,onDropZoneLeave:v,onKeyDown:C,value:x,valueOtherColumnActive:y,valueOtherColumnMatch:b}){const[E,L]=Kn.useState(!1),T=Kn.useRef(null),I=Kn.useRef(null),S=(0,xe.vU)(),N=Kn.useCallback(()=>{d({col:e,id:o,value:x})},[e,o,d,x]),k=Kn.useCallback(()=>{L(!0),p({col:e,id:o,value:x})},[e,o,p,x]),B=Kn.useCallback(()=>{m(),L(!1)},[m]),M=Kn.useCallback(()=>{f({col:e,id:o,value:x})},[e,o,f,x]),R=Kn.useCallback(()=>{g({col:e,id:o,value:x})},[e,o,g,x]),H=Kn.useCallback(()=>{v()},[v]),P=Kn.useCallback(z=>{C(z,{col:e,index:r})},[e,r,C]);Kn.useEffect(()=>{e===1&&r===0||I.current?.setAttribute("tabindex","-1")},[]),eH(T,{isEnabled:!i,onStart:k,onEnd:B}),tH(T,{isEnabled:i,onDrop:M,onEnter:R,onLeave:H});const j=oe()("matching-interaction-piece",{"matching-interaction-piece--matched":l,"matching-interaction-piece--moved":u}),O=b==null?null:(0,s.jsxs)(s.Fragment,{children:[S?.a11yMatchingItemMatchedWith," ",(0,s.jsx)(xs,{value:b})]}),U=y==null?(0,s.jsx)(s.Fragment,{children:S?.a11yMatchingItemSelectableItem}):(0,s.jsxs)(s.Fragment,{children:[S?.a11yMatchingItemMatchWith," ",(0,s.jsx)(xs,{value:y})]}),W=oe()("matching-interaction-item",{draggable:!i,"draggable--dragging":!i&&E,droppable:i});return(0,s.jsx)("li",{className:W,ref:T,role:"listitem",children:(0,s.jsxs)("button",{"aria-pressed":a||l?!0:void 0,className:j,"data-state":a?"active":void 0,onClick:E?void 0:N,onKeyDown:P,ref:I,style:n?{height:n}:void 0,type:"button",children:[i?(0,s.jsx)("span",{className:"matching-interaction-piece-decoration"}):(0,s.jsx)(tt,{className:"matching-interaction-piece-decoration",name:"grip-dots-vertical"}),e===2?(0,s.jsx)("span",{className:"matching-interaction-piece-jigsaw"}):null,(0,s.jsx)("span",{className:"matching-interaction-piece-content",children:(0,s.jsx)("span",{"data-matching-interaction-piece-content-inline":"",children:(0,s.jsx)(xs,{value:x})})}
173),(0,s.jsx)("span",{className:"visually-hidden-always",children:O}),(0,s.jsx)("span",{className:"visually-hidden-always",children:U})]},o)})});var Ut=c(26372);function sH({answers:t,columnBehavior:e,isActive:n,itemHeight:o,matches:r,onChange:a,onChangeItemHeight:i,onChangeRows:l,prefersKeyboardNavigation:u}){const d=(0,ke.A)(n),m=(0,ke.A)(e),p=(0,ke.A)(t),f=(0,ke.A)(r),g=(0,xe.vU)(),[v,C]=Ut.useState(void 0),[x,y]=Ut.useState(void 0),[b,E]=Ut.useState(void 0),[L,T]=Ut.useState(!1),I=Ut.useRef(null),S=Ut.useRef(null),N=Ut.useRef(null),k=Ut.useRef(void 0),B=Ut.useRef(void 0),[M,R]=Ut.useState(()=>ju({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),[H,P]=Ut.useState(()=>ju({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})),j=Ut.useMemo(()=>t.map(se=>({col:1,id:se.id,value:se.title})).toSorted((se,Ne)=>{const Me=M.get(se.id)??1/0,$e=M.get(Ne.id)??1/0;return Me-$e}),[t,M]),O=Ut.useMemo(()=>t.map(se=>({col:2,id:se.id,value:se.matchTitle})).toSorted((se,Ne)=>{const Me=H.get(se.id)??1/0,$e=H.get(Ne.id)??1/0;return Me-$e}),[t,H]),U=Ut.useCallback(()=>{for(const de of I.current?.querySelectorAll('button:not([tabindex="-1"])')??[])de.setAttribute("tabindex","-1")},[]),W=Ut.useCallback(de=>{const se=Array.from(M),Ne=Array.from(H);if(e==="freezeSecond"){const Me=new Array(Ne.length),$e=se.map(qe=>qe[0]).filter(qe=>!(qe in de));for(const[qe,lt]of Object.entries(de)){const It=H.get(lt);Me[It]=[qe,It]}for(let qe=0;qe<Me.length;qe++)if(Me[qe]==null){const lt=$e.shift();Me[qe]=[lt,qe]}const Ae=new Map(Me),at=G3(M,Ae);at.length>0&&y(at),R(Ae)}else{const Me=new Array(se.length),$e=new Set(Object.values(de)),Ae=Ne.map(lt=>lt[0]).filter(lt=>!$e.has(lt));for(const[lt,It]of Object.entries(de)){const Dt=M.get(lt);Me[Dt]=[It,Dt]}for(let lt=0;lt<Me.length;lt++)if(Me[lt]==null){const It=Ae.shift();Me[lt]=[It,lt]}const at=new Map(Me),qe=G3(H,at);qe.length>0&&E(qe),P(at)}},[e,M,H]),z=Ut.useCallback(de=>{k.current=de},[]),re=Ut.useCallback(()=>{B.current==null&&(k.current=void 0)},[]),fe=Ut.useCallback(de=>{B.current=de},[]),Ee=Ut.useCallback(()=>{B.current=void 0},[]),Oe=Ut.useCallback(de=>{const se=k.current;if(se!=null){const Ne=de.col===1?de.id:se.id,Me=de.col===1?se.id:de.id,$e=$3(r,Ne,Me);k.current=void 0,B.current=void 0,a($e)}},[r,a]),Ue=Ut.useCallback(de=>{let se=null,Ne=!1,Me=v;if(de.col===1&&de.id in r)se=Nu(r,de.id),Me=null;else if(de.col===2&&cm(r,de.id)){const $e=cm(r,de.id);se=Nu(r,$e),Me=null}else v==null&&(Me={col:de.col,id:de.id,value:de.value},Ne=!0);if(v!=null)if(v.col===de.col)v.id===de.id?Me=null:Me={col:de.col,id:de.id,value:de.value};else{const $e=de.col===1?de.id:v.id,Ae=de.col===1?v.id:de.id;se=$3(r,$e,Ae),Ne=!0,Me=null}if(se!=null&&a(se),v!==Me&&C(Me),Ne){const Ae=(de.col===1?N:S).current?.querySelector('button:not([aria-pressed="true"])');Ae&&(U(),Ae.removeAttribute("tabindex"),Ae.focus({preventScroll:!u}))}},[u,v,r,a,U]),we=Ut.useCallback((de,{col:se,index:Ne})=>{const Me=de.currentTarget;let $e=!1,Ae=null;switch(de.key){case"ArrowUp":$e=!0,Ae=Me.parentElement.previousElementSibling?.firstElementChild;break;case"ArrowDown":$e=!0,Ae=Me.parentElement.nextElementSibling?.firstElementChild;break;case"ArrowRight":$e=!0,Ae=se===1?N.current?.children[Ne]?.firstElementChild:void 0;break;case"ArrowLeft":$e=!0,Ae=se===2?S.current?.children[Ne]?.firstElementChild:void 0;break;case"Home":$e=!0,Ae=Me.closest("ul").firstElementChild.firstElementChild;break;case"End":$e=!0,Ae=Me.closest("ul").lastElementChild.firstElementChild;break}$e&&(de.preventDefault(),de.stopPropagation()),Ae&&(U(),Ae.removeAttribute("tabindex"),Ae.focus())},[U]);Ut.useEffect(()=>{r!==f&&!KB(r)&&W(r)},[W,r,f]),Ut.useEffect(()=>{const de=({shouldFocus:Me})=>{const $e=v.col===1?S:N;U();const Ae=$e.current.querySelector('button[data-state="active"]');Ae?.removeAttribute("tabindex"),Me&&Ae?.focus(),C(null)},se=Me=>{I.current?.contains(Me.target)||de({shouldFocus:!1})},Ne=Me=>{pn(Me)&&v!=null&&de({shouldFocus:!0})};return v==null?(document.removeEventListener("mousedown",se),document.removeEventListener("keydown",Ne)):(document.addEventListener("mousedown",se),document.addEventListener("keydown",Ne)),()=>{document.removeEventListener("mousedown",se),document.removeEventListener("keydown",Ne)}},[v,U]);const Be=Ut.useCallback(()=>{const de=Array.from(I.current?.querySelectorAll("[data-matching-interaction-piece-content-inline]")??[]);if(de.length===0)return;const se=de[0].closest("button");let Ne=0,Me;if(se){const Ae=window.getComputedStyle(se),at=parseFloat(Ae.paddingBlockStart)+parseFloat(Ae.paddingBlockEnd),qe=parseFloat(Ae.borderTopWidth)+parseFloat(Ae.borderBottomWidth);Ne=at+qe,Me=parseFloat(Ae.minHeight)}const $e=de.reduce((Ae,at)=>Math.max(Ae,at.scrollHeight+Ne),0);Me&&Me>=$e?i(void 0):i($e)},[i]);return Ut.useEffect(()=>{(!d&&n||p!==t)&&Be()},[d,n,t,p,Be]),Ut.useEffect(()=>{const de=I.current?.closest(".quiz-card");let se;return de!=null&&(se=new ResizeObserver(()=>{Be()}),se.observe(de)),()=>{de!=null&&se!=null&&se.unobserve(de)}},[Be]),Ut.useEffect(()=>{let de,se;return x&&(de=setTimeout(()=>{y(void 0)},1e3)),b&&(se=setTimeout(()=>{E(void 0)},1e3)),()=>{clearTimeout(de),clearTimeout(se)}},[x,b]),Ut.useEffect(()=>{L&&m!==e&&(a({}),W({}),C(void 0),R(ju({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),P(ju({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})))},[L,e,m,t,a,W]),Ut.useEffect(()=>{if(j.length<=0)return;const de=j.map((se,Ne)=>[se,O[Ne]]);l(de)},[j,O,l]),Ut.useEffect(()=>{T(!0)},[]),(0,s.jsxs)("div",{className:"matching-interaction","data-testid":"matching-interaction",ref:I,children:[(0,s.jsx)("ul",{"aria-label":g?.a11yMatchingColumn1,className:"matching-interaction-col matching-interaction-col-1","data-col":"1",ref:S,role:"list",children:j.map((de,se)=>{const Ne=QB(r,de.id);return(0,s.jsx)(_3,{col:1,height:o,id:de.id,index:se,isActive:v?.col===1&&v?.id===de.id,isFrozen:e==="freezeFirst",isMatched:Ne,isMoved:x?.map(Me=>Me.id).includes(de.id)??!1,onClick:Ue,onDragEnd:re,onDragStart:z,onDrop:Oe,onDropZoneEnter:fe,onDropZoneLeave:Ee,onKeyDown:we,value:de.value,valueOtherColumnActive:v?.col===2?v?.value:void 0,valueOtherColumnMatch:Ne?O[se]?.value:void 0},de.id)})}),(0,s.jsx)("ul",{"aria-label":g?.a11yMatchingColumn2,className:"matching-interaction-col matching-interaction-col-2","data-col":"2",ref:N,role:"list",children:O.map((de,se)=>{const Ne=ZB(r,de.id);return(0,s.jsx)(_3,{col:2,height:o,id:de.id,index:se,isActive:v?.col===2&&v?.id===de.id,isFrozen:e==="freezeSecond",isMatched:Ne,isMoved:b?.map(Me=>Me.id).includes(de.id)??!1,onClick:Ue,onDragEnd:re,onDragStart:z,onDrop:Oe,onDropZoneEnter:fe,onDropZoneLeave:Ee,onKeyDown:we,value:de.value,valueOtherColumnActive:v?.col===1?v?.value:void 0,valueOtherColumnMatch:Ne?j[se]?.value:void 0},de.id)})})]})}const ju=({answers:t,columnBehavior:e,columnBehaviorToShuffle:n})=>{let o=t.map(r=>r.id);return e===n&&(o=(0,am.shuffle)(o)),new Map(o.map((r,a)=>[r,a]))};function G3(t,e){const n=[];for(const[o,r]of t){const a=e.get(o);a!==r&&n.push({id:o,from:r,to:a})}return n}var ku=c(26372);function K3({columnBehavior:t="freezeSecond",...e}){const[n,o]=ku.useState([]),[r,a]=ku.useState(void 0),i=ku.useCallback(u=>{o(u)},[]),l=ku.useCallback(u=>{a(u)},[]);return e.isComplete?(0,s.jsx)(GB,{...e,columnBehavior:t,itemHeight:r,rows:n}):(0,s.jsx)(sH,{...e,columnBehavior:t,itemHeight:r,onChangeItemHeight:l,onCh
173angeRows:i})}function Q3(t){return t==null||t===-1}function nH(t,e){return t===e}const oH=({allowTabNavigation:t,color:e,correctId:n,errorMessageId:o,isComplete:r,isCorrect:a,isReduceMotion:i,labels:l,onChange:u,onEnterToSubmit:d,options:m=[],questionHtmlId:p,renderOptionText:f,isRetaking:g,revealAnswers:v,selectedIndex:C,shouldFocusFirst:x,onFocusFirstComplete:y})=>{const b=Q3(C);return(0,s.jsx)(fu,{"aria-invalid":o?!0:void 0,"aria-labelledby":[p,o].filter(Boolean).join(" "),"aria-required":"true",role:"radiogroup",children:m.map((E,L,T)=>(0,s.jsx)(rH,{allowTabNavigation:t,color:e,id:E.id,index:L,isComplete:r,isCorrect:a,isCorrectOption:n===E.id,isFirst:L===0,isFresh:b,isLast:L===T.length-1,isReduceMotion:i,isRetaking:g,isSelected:!g&&nH(C,L),labels:l,onChange:u,onEnterToSubmit:d,onFocusFirstComplete:y,questionHtmlId:p,renderOptionText:f,revealAnswers:v,shouldFocusFirst:x,title:E.title},E.id))})},rH=({allowTabNavigation:t,color:e,id:n,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isFresh:l,isSelected:u,isReduceMotion:d,labels:m,onChange:p,onEnterToSubmit:f,questionHtmlId:g,renderOptionText:v,isRetaking:C,revealAnswers:x,shouldFocusFirst:y,onFocusFirstComplete:b,title:E})=>{const[L]=(0,h.useState)(()=>Ns()("qmc-")),T=(0,h.useRef)(null),I=(0,ke.A)(u),S=!!r,N=t&&(u||l&&o===0)?0:zd,k=x===rt.iV.ALL,B=x==rt.iV.INCORRECT,M=k||B&&a,R=k||B&&a||B&&!a&&u,H=r&&i&&M,P=r&&!i&&R,j=(H||P)&&!C,O=j?`${L}-result`:void 0,U=oe()("quiz-multiple-choice-option",{"is-complete":r,"is-correct":H,"is-incorrect":P,"is-selected":u}),W=oe()("quiz-multiple-choice-option__dot",{"quiz-multiple-choice-option__dot--active":u&&!r}),z=oe()("quiz-multiple-choice-option__check",{"quiz-multiple-choice-option__check--active":H}),re=oe()("quiz-multiple-choice-option__x",{"quiz-multiple-choice-option__x--active":P}),fe=oe()("quiz-multiple-choice-option__border"),Ee=(0,h.useCallback)(we=>{ii(we)&&f(we)},[f]),Oe=(0,h.useCallback)(()=>{p({selectedIndex:o})},[o,p]),Ue=r?void 0:Ee;return(0,h.useEffect)(()=>{t&&T.current&&(!I&&u?T.current.focus({preventScroll:d}):y&&l&&o===0&&(T.current.focus({preventScroll:d}),b?.()))},[t,u,d,I,y,l,o,b]),(0,s.jsxs)("div",{"data-testid":"quiz-card-option",children:[(0,s.jsxs)("label",{"aria-describedby":O,className:U,ref:T,children:[(0,s.jsx)("input",{checked:u,className:"quiz-multiple-choice-option__input",disabled:S,name:g,onClick:r?void 0:Oe,onKeyDown:Ue,tabIndex:N,type:"radio"}),(0,s.jsxs)("div",{className:"quiz-multiple-choice-option__indicator",style:{color:e},children:[(0,s.jsx)(DC,{className:W,dataTestId:u&&!r?"selected-dot-active":"selected-dot"}),(0,s.jsx)(p2,{className:z,"data-testid":H?"correct-check-active":"correct-check"}),(0,s.jsx)(S2,{"aria-hidden":"true",className:re,dataTestId:P?"incorrect-x-active":"incorrect-x",overrideStyle:!0})]}),(0,s.jsx)("div",{className:fe}),(0,s.jsx)("div",{className:"quiz-multiple-choice-option__text","data-testid":"quiz-mc-option-text",children:v({optionId:n,title:E})})]}),j&&(0,s.jsxs)("div",{className:"visually-hidden-always",id:O,children:[u&&i&&m?.a11yQuizReviewCorrectlySelected,u&&!i&&m?.a11yQuizReviewIncorrectlySelected,!u&&i&&m?.a11yQuizReviewIncorrectlyUnselected,!u&&!i&&m?.a11yQuizReviewCorrectlyUnselected]})]})},Z3=oH;function aH(t){return t.length===0}function iH(t,e){return t.includes(e)}function cH(t,e){return t.includes(e)?t.filter(n=>n!==e):[...t,e]}const lH=({allowTabNavigation:t,correctIds:e=[],errorMessageId:n,isComplete:o,isCorrect:r,labels:a,onChange:i,onEnterToSubmit:l,options:u=[],questionHtmlId:d,renderOptionText:m,isRetaking:p,revealAnswers:f,selectedIndices:g=[]})=>(0,s.jsx)("div",{"aria-labelledby":[d,n].filter(Boolean).join(" "),role:"group",children:(0,s.jsx)("ul",{children:u.map((v,C)=>(0,s.jsx)(dH,{allowTabNavigation:t,errorMessageId:n,id:v.id,index:C,isComplete:o,isCorrect:r,isCorrectOption:e.includes(v.id),isRetaking:p,isSelected:!p&&iH(g,C),labels:a,onChange:i,onEnterToSubmit:l,renderOptionText:m,revealAnswers:f,title:v.title},v.id))})}),dH=({allowTabNavigation:t,errorMessageId:e,id:n,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isSelected:l,labels:u,onChange:d,onEnterToSubmit:m,renderOptionText:p,isRetaking:f,revealAnswers:g,title:v})=>{const[C]=(0,h.useState)(()=>Ns()("qmr-")),x=r&&g===rt.iV.ALL&&!f,y=x?`${C}-result`:void 0,b=!!r,E=t?0:zd,L=g===rt.iV.ALL,T=g==rt.iV.INCORRECT,I=L||T&&a||T&&!a&&l,S=oe()("quiz-multiple-response-option",{"quiz-multiple-response-option--complete":r,"quiz-multiple-response-option--selected":l,"quiz-multiple-response-option--correct":r&&i&&I,"quiz-multiple-response-option--incorrect":r&&!i&&I}),N=oe()("quiz-multiple-response-option__border"),k=(0,h.useCallback)(R=>{ii(R)&&m(R)},[m]),B=(0,h.useCallback)(()=>{d({optionIndex:o})},[o,d]),M=r?void 0:k;return(0,s.jsxs)("li",{children:[(0,s.jsxs)("label",{"aria-describedby":y,className:S,children:[(0,s.jsx)("input",{"aria-describedby":e||void 0,"aria-invalid":e?!0:void 0,checked:l,className:"quiz-multiple-response-option__input",disabled:b,onChange:r?void 0:B,onKeyDown:M,tabIndex:E,type:"checkbox"}),(0,s.jsxs)("div",{className:"quiz-multiple-response-option__indicator",children:[(0,s.jsx)(p2,{className:"quiz-multiple-response-option__check"}),(0,s.jsx)(S2,{"aria-hidden":"true",className:"quiz-multiple-response-option__x",height:"8",overrideStyle:!0,width:"8"})]}),(0,s.jsx)("div",{className:N}),(0,s.jsx)("div",{className:"quiz-multiple-response-option__text",children:p({optionId:n,title:v})})]}
173),x&&(0,s.jsxs)("div",{className:"visually-hidden-always",id:y,children:[l&&i&&u?.a11yQuizReviewCorrectlyChecked,l&&!i&&u?.a11yQuizReviewIncorrectlyChecked,!l&&i&&u?.a11yQuizReviewIncorrectlyUnchecked,!l&&!i&&u?.a11yQuizReviewCorrectlyUnchecked]})]})},Y3=lH;var uH=c(17193),ya=c.n(uH),hH=c(37262),X3=c.n(hH),mH,pH;const fH=Ls()(Mt()("correct",!0)),ose=t=>mH(pH(t),dm),vH=t=>({MATCHING:ya(),FILL_IN_THE_BLANK:um,MULTIPLE_CHOICE:ya(),MULTIPLE_RESPONSE:ya()})[t],dm=st()(X3()("id"),fH),gH=st()(dn(),dm),um=Ls()(Mt()("correct",!0)),CH=st()(Qt()("id"),dn()),rse={MULTIPLE_CHOICE:{label:"Multiple Choice",icon:(0,s.jsx)(B9,{})},MULTIPLE_RESPONSE:{label:"Multiple Response",icon:(0,s.jsx)(H9,{})},FILL_IN_THE_BLANK:{label:"Fill in the blank",icon:(0,s.jsx)(k0,{})},MATCHING:{label:"Matching",icon:(0,s.jsx)(M9,{})}};var xH=c(15107);const{FILL_IN_THE_BLANK:bH,MATCHING:J3,MULTIPLE_CHOICE:yH,MULTIPLE_RESPONSE:LH}=rt.UQ;function q3({type:t,text:e="",matches:n={},answersLength:o=0,selectedIndices:r=[],selectedIndex:a}){switch(t){case bH:return!(0,xH.h)(e);case J3:return JB(n)===o;case LH:return!aH(r);case yH:default:return!Q3(a)}}function EH({answered:t=!1,...e}){return t&&e.type!==J3?!1:q3(e)}function eg(t,e){const n=t.trim();return e?n:n.toLowerCase()}function tg({answers:t,text:e,caseSensitive:n=!1,getL10nValue:o}){if(!e)return!1;const r=eg(e,n);return t.some(a=>{const i=o(a.title);return typeof i!="string"?!1:eg(i,n)===r})}function sg(t){return Object.entries(t).every(([e,n])=>e===String(n))}function TH(t){const e=t.answers??[],n=t.correct;if(n!=null)return e.findIndex(r=>
173r.id===n);const o=e.findIndex(r=>r.correct===!0);return o===-1?0:o}function ng({isCorrectAnswerUnshuffled:t=!1,isShuffled:e=!1,item:n,selectedIndex:o,shuffledAnswerIndices:r}){if(o==null||e&&!Array.isArray(r))return!1;const a=e&&!t?r.indexOf(o):o,i=TH(n);return a===i}function IH(t,e){return e.map(n=>t.indexOf(n))}function SH(t){return typeof t=="object"&&t!==null&&"id"in t?t.id:t}function NH(t){const e=t.answers??[],n=t.corrects??[];return n.length>0?n.map(a=>{const i=SH(a);return e.findIndex(l=>l.id===i)}).filter(a=>a>=0).sort((a,i)=>a-i):e.map((r,a)=>r.correct===!0?a:-1).filter(r=>r>=0).sort((r,a)=>r-a)}function og(t){return[...t].sort((e,n)=>e-n)}function rg({isShuffled:t=!1,item:e,selectedIndices:n,shuffledAnswerIndices:o}){if(!Array.isArray(n)||t&&!Array.isArray(o))return!1;const r=t?IH(o,n):n,a=NH(e),i=og(r),l=og(a);return i.length!==l.length?!1:i.every((u,d)=>u===l[d])}function ag({answers:t,feedback:e,feedbackCorrect:n,feedbackIncorrect:o,feedbackType:r,isCorrect:a,isShuffled:i=!1,selectedIndex:l,shuffledAnswerIndices:u}){switch(r){case"CHOICE":{if(l==null||!t)return;const d=i&&Array.isArray(u)?u.indexOf(l):l;return t[d]?.feedback}case"CORRECT_INCORRECT":return a?n:o;default:return e}}var ase=c(11253),ise=c(68692),cse=c(51890),jH,kH,ig,AH,RH,PH,wH;const MH=(t,e,n=[])=>{const o=kH(PH("id",t),e),{parentId:r}=o||{},a=o?[o,...n]:n;return r?MH(r,e,a):a},hm="owner",cg="manager",lg="editor",dg=["viewer",lg,cg,hm],mm=({effectiveRole:t,requiredRole:e})=>{const n=ig(t,dg),o=ig(e,dg);return n>=o},OH=t=>({editor:mm({effectiveRole:t,requiredRole:lg}),manager:mm({effectiveRole:t,requiredRole:cg}),owner:mm({effectiveRole:t,requiredRole:hm})}),dse=(t,e,n)=>{const{authorId:o}=t,r=o===n,a=l=>r||l,i=DH(e);return RH(AH(["canChangePermissions","canMoveTo"]),jH({canDelete:a,canEdit:a,canMove:a,canRename:a,canUnshare:a}))(i)},DH=t=>{const{effectiveRole:e,type:n}=t||[],o=n!==wH?hm:e,{editor:r,manager:a,owner:i}=OH(o);return{canChangePermissions:a,canCreate:r,canDelete:i,canEdit:r,canMove:a,canMoveTo:r,canRename:r,canUnshare:i}};var BH,HH,ul,FH,VH,zH,UH,ug,Ii,$H,hg,mg,WH,_H,hl,GH,KH,pg,QH,Au,ZH,YH,fg,XH,vg,JH,qH,Si;const eF={[rt.UQ.FILL_IN_THE_BLANK]:"fillin",[rt.UQ.MATCHING]:"matching",[rt.UQ.MULTIPLE_CHOICE]:"multiple choice",[rt.UQ.MULTIPLE_RESPONSE]:"multiple response"},Ni="personal",gg="team",use=500,hse={id:null,deleted:!1,type:Ni},mse={id:"deleted",deleted:!0,type:Ni},Cg=({questions:t=[],drawnQuestionIds:e=[]})=>{const n=a=>!e.some(i=>i.includes(a.id)),o=t.filter(n),r=Math.floor(Math.random()*o.length);return o[r]??null},tF=t=>e=>e.type===Ni||vg({effectiveRole:e.effectiveRole,requiredRole:t}),sF=({folders:t,requiredRole:e,teamAccount:n})=>Si(t,fg,hg,Ii(o=>tF(e)&&(n||o.type===Ni))),pse=({questionBanks:{folders:t,questionBanks:e},requiredRole:n=JH,teamAccount:o,term:r})=>{if(r&&_H(YH(r)))return{folders:[],questionBanks:[]};const a=new RegExp("("+XH(r)+")","i"),i=sF({folders:t,requiredRole:n,teamAccount:o}),l=pg("id",i),u=Ii(m=>m.title.match(a)&&!m.deleted,i),d=Ii(m=>(hl(m.folderId)||ug(m.folderId,l))&&m.title.match(a)&&!m.deleted,e);return{folders:u,questionBanks:d}},xg=(t,e,n=!1)=>Si(e,WH(ul(!hl(t)),QH(t),KH(fg,hg)),ZH(Au("deleted",!n))),nF=(t,e,n,o=!1)=>{const r=t===gg,a=t===Ni,i=Si(xg(gg,n),pg("id")),l=u=>!hl(u.folderId)&&ug(u.folderId,i);return Si(e,Ii(UH([[ul(o),u=>u.deleted],[ul(r),u=>!u.deleted&&l(u)],[ul(a),u=>!u.deleted&&!l(u)],[ul(hl(t)),u=>!u.deleted],[BH,mg]])))},oF=({type:t})=>t===Ni,bg=({effectiveRole:t})=>vg({effectiveRole:t,requiredRole:qH}),rF=(t,e)=>({id:n})=>n?zH(FH(mg),GH(HH([Au("folderId",n),Au("authorId",t)])))(e):!1,aF=(t,e,n,o)=>Si(xg(e,t),Ii(VH([oF,bg,rF(o,n)]))),iF=(t,e)=>n=>{if(hl(n.folderId))return!0;const o=$H(Au("id",n.folderId),t);if(!o)return!1;const r=bg(o),a=n.authorId===e;return r||a},cF=(t,e,n,o,r)=>Si(nF(t,e,n),Ii(iF(o,r))),fse=(t,e,n,o)=>{const r=aF(t,n,e,o),a=cF(n,e,t,r,o);return{folders:r,questionBanks:a}},{FILL_IN_THE_BLANK:ji,MATCHING:Ru,MULTIPLE_CHOICE:Pu,MULTIPLE_RESPONSE:wu}=rt.UQ,lF={FILL_IN_THE_BLANK:"a11yBlockKnowledgeCheckFIB",MATCHING:"a11yBlockKnowledgeCheckM",MULTIPLE_CHOICE:"a11yBlockKnowledgeCheckMC",MULTIPLE_RESPONSE:"a11yBlockKnowledgeCheckMR"},dF=Rt()(null,[0,"type"]),pm=jn();class yg extends h.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,fillInText:"",matches:{},questionHtmlId:`q-${Cu()()}`},this.retakeAnimationStageOne=null,this.retakeAnimationStageTwo=null,this.takeAgainRef=(0,h.createRef)(),this.get
173Selection=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(Zt,this.previewOnly__forceShowFeedback),window.addEventListener($1,this.previewOnly__clearOverrides),this.id=Ns()("kc-")}componentDidUpdate(e,n){n.answered&&!this.state.answered?this.getType()!==ji&&dh(this.wrapper):!n.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(Zt,this.previewOnly__forceShowFeedback),window.removeEventListener($1,this.previewOnly__clearOverrides)}previewOnly__forceShowFeedback(e){const{itemId:n,path:o}=e.detail,{getL10nValue:r}=this.props;if(n!==this.props.blockId)return;const a=o.at(-1);if(typeof a=="string"&&a.startsWith?.("feedback")){const i=a==="feedbackCorrect",l=o.indexOf("answers"),u=o[l+1],d=l>-1&&typeof u!="string"?u.id:null,m={forceShowFeedback:!0,forceShowFeedbackCorrect:i,forceShowFeedbackMessage:""};if(d&&"answers"in this.props.items[0]){const p=this.props.items[0].answers.find(({id:g})=>g===d),f=p&&"feedback"in p?p?.feedback:void 0;m.forceShowFeedbackCorrect=p?.correct??!1,m.forceShowFeedbackMessage=r(f)}this.setState(m)}}previewOnly__clearOverrides(){this.setState({forceShowFeedback:!1,forceShowFeedbackCorrect:!1})}getSelection({item:e}){switch(e.type){case ji:return this.state.fillInText;case Ru:return this.state.matches;case wu:return this.state.selectedIndices;case Pu:default:return this.state.selectedAnswer}}handleMatchesChange=e=>{this.setState({errorIncomplete:!1,matches:e})};handleMultipleResponseChange({optionIndex:e}){const{selectedIndices:n}=this.state;this.setState({errorIncomplete:!1,selectedIndices:cH(n,e)})}handleChoiceSelect({selectedIndex:e}){const{answered:n}=this.state;n||this.setState({errorIncomplete:!1,selectedAnswer:e,chosen:!0})}onSubmit(e,n,o,r,a){if(!n){switch(this.setState({errorIncomplete:!0}),r.type){case ji:this.wrapper?.querySelector("input")?.focus();break;case wu:case Pu:this.wrapper?.querySelector("input")?.focus();break;case Ru:default:break}return}a?.preventDefault(),this.setState({answered:!0,isRetaking:!1}),o&&this.props.onStep({id:e})}handleFillIn(e){this.setState({errorIncomplete:!1,fillInText:e})}handleRetake(e){const{blockId:n,lessonId:o,settings:r}=this.props,{id:a}=e;this.setState({isRetaking:!0}),this.retakeAnimationStageOne=setTimeout(()=>{this.setState({answered:!1,chosen:!1,matches:{}},()=>{this.retakeAnimationStageOne=null})},400),this.retakeAnimationStageTwo=setTimeout(()=>{this.setState({fillInText:"",selectedAnswer:null,selectedIndices:[],isRetaking:!1,shouldFocusFirst:!0},()=>{!pm&&this.getType()===ji&&dh(this.wrapper),this.retakeAnimationStageTwo=null}),r?.retryCount!=null&&this.props.onRetryAttempt?.({blockId:n,itemId:a,lessonId:o})},950)}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}resetShouldFocusFirst=()=>{this.state.shouldFocusFirst&&this.setState({shouldFocusFirst:!1})};renderQuestionTitle({title:e}){return(0,s.jsx)(ms,{className:"quiz-card__title",id:this.state.questionHtmlId,value:e})}renderQuestion(e){const{answered:n,errorIncomplete:o,isRetaking:r,selectedAnswer:a}=this.state,{blockId:i,enableVideoPlaybackSpeed:l,getL10nValue:u,labels:d,progress:m,renderQuestionTitle:p=this.renderQuestionTitle,settings:f}=this.props,{quizCorrect:g,quizIncorrect:v,quizRequireAnswer:C,quizSubmit:x,quizTakeAgain:y}=d,{id:b,type:E}
173=e,L=e.type!=="DRAW_FROM_QUESTION_BANK"?e.settings:{},T=u("media"in e?e.media:{}),I=this.state.forceShowFeedbackCorrect||this.getIsCorrect({item:e}),S=this.getCanSubmit({item:e}),N=f?.requireCorrectAnswer?I:!0,k=this.onSubmit.bind(this,b,S,N,e),B=this.getFeedback({item:e,isCorrect:I,selectedAnswer:a}),M=this.getSelection({item:e}),{columnBehavior:R,correctAnswerColor:H,correctAnswerColorContrast:P,incorrectAnswerColor:j,incorrectAnswerColorContrast:O}=f,U=I?H:j,W=d.knowledgeCheckCorrectAnswerRequiredBlock,z=d.knowledgeCheckRetriesAttemptsRemaining,re=d.knowledgeCheckMaxRetriesReached,fe=m?.items?.[i]?.items?.[b]?.retryAttemptCount??0,Ee=f?.retryCount!==0&&(f?.retryCount==null||f?.retryCount===-1||fe<f?.retryCount),Oe=f?.retryCount!=null||f?.retryCount===-1?f?.retryCount-fe:-1,Ue=!I,we={"--color-feedback-icon":U,"--color-matching-feedback-bubble-bg":j,"--color-multiple-choice-complete-border":j,"--color-multiple-choice-correct-border":H,"--color-multiple-response-correct-border":H,"--color-multiple-response-incorrect-border":j,"--color-multiple-response-option-check":n?H:void 0,"--color-quiz-option-check":H,"--color-x-fill":j},de=f?.revealCorrectAnswers!==!1&&(f.retryCount==null||f.retryCount===-1||!Ee)?rt.iV.ALL:rt.iV.INCORRECT,se=oe()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":n,"block-knowledge__retake-container--active-attempts-left":n&&!r&&Oe>0}),Ne=oe()("block-knowledge__retake",{"block-knowledge__retake--active":n&&!r&&Ee}),Me=oe()("block-knowledge__retake","block-knowledge__attempts-left",{"block-knowledge__retake--active":n&&!r&&Ee&&Oe>0}),$e=oe()("block-knowledge__retake","block-knowledge__no-more-attempts",{"block-knowledge__retake--active":n&&!r&&!Ee}),Ae=!!T?.image,at=!!T?.audio,qe=!!T?.video,lt=!!T?.embed;let It=null;at&&Ae?It=(0,s.jsx)(kr,{blockId:i,enableVideoPlaybackSpeed:l,index:`${i}-${b}-audio`,isOverlayAudio:!0,item:e,labels:d,media:T,settings:L}):at&&(qe||lt)?It=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(kr,{blockId:i,enableVideoPlaybackSpeed:l,index:`${i}-${b}-audio`,item:e,labels:d,media:{audio:T.audio},settings:L}),(0,s.jsx)(kr,{blockId:i,enableVideoPlaybackSpeed:l,index:`${i}-${b}-video`,item:e,labels:d,media:qe?{video:T.video}:{embed:T.embed},settings:L})]}):It=(0,s.jsx)(kr,{blockId:i,enableVideoPlaybackSpeed:l,index:`${i}-${b}-audio`,item:e,labels:d,media:T,settings:L});const Dt=oe()("block-knowledge__media",{"block-knowledge__image-with-audio":at&&Ae});return(0,s.jsxs)(B3,{isActive:!0,style:we,children:[f?.requireCorrectAnswer&&(n&&!I||!n)&&(0,s.jsxs)("div",{className:"quiz-card__require-correct-answer-disclaimer",children:[(0,s.jsx)(tt,{className:"quiz-card__require-correct-answer-disclaimer-icon",name:"info-circle"}),W]}),p(e),(0,s.jsx)("div",{className:Dt,children:It}),(0,s.jsx)(z3,{type:E,children:this.renderType({columnBehavior:R,correctAnswerColor:H,correctAnswerColorContrast:P,incorrectAnswerColor:j,incorrectAnswerColorContrast:O,isCorrect:I,item:e,onSubmit:k})}),(0,s.jsx)("div",{"aria-live":"assertive",children:o&&(0,s.jsxs)("div",{className:"quiz-card__validations","data-testid":"quiz-validation-error",children:[(0,s.jsx)("span",{"data-testid":"quiz-validation-icon",children:(0,s.jsx)(tt,{className:"quiz-card__validation-icon",name:"alert-circle"})}),(0,s.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:C})]})}),(0,s.jsx)(D3,{canProceed:n,canSubmit:S,isReduceMotion:pm,onSubmit:k,quizSubmit:x}),(0,s.jsx)(V3,{canProceed:this.state.forceShowFeedback||n,feedbackValue:B,isActive:n,isComplete:n,isCorrect:I,item:e,labels:d,quizCorrect:g,quizIncorrect:v,revealAnswers:de,selection:M}),(0,s.jsxs)("div",{"aria-hidden":!n,className:se,children:[Ue&&(0,s.jsxs)(s.Fragment,{children:[Ee?(0,s.jsx)(Et.ArcButton,{className:Ne,hierarchy:"secondary",icon:(0,s.jsx)(tt,{name:"arrow-rotate-left"}),onClick:this.handleRetake.bind(this,e),ref:this.takeAgainRef,size:"md",tabIndex:n?void 0:-1,text:y}):null,Oe>0&&(0,s.jsxs)("div",{className:Me,children:[z," ",Oe]})]}),!Ee&&!I&&(0,s.jsx)("div",{className:$e,children:re})]})]},b)}getIsCorrect({item:e}){const{fillInText:n,matches:o,selectedAnswer:r,selectedIndices:a}=this.state,{type:i}=e,l="answers"in e?e.answers:void 0,u="isCaseSensitive"in e?e.isCaseSensitive:!1;switch(i){case ji:return tg({answers:um(l),text:n,caseSensitive:u,getL10nValue:this.props.getL10nValue});case Ru:return sg(o);case wu:return rg({item:{answers:l},selectedIndices:a});case Pu:default:return ng({item:{answers:l},selectedIndex:r})}}getType(){const{items:e}=this.props;return dF(e)}getCanSubmit({item:e}){const n="answers"in e?e.answers:void 0,{answered:o,fillInText:r,matches:a,selectedAnswer:i,selectedIndices:l}=this.state;return EH({type:e.type,text:r,matches:a,answersLength:n?.length??0,selectedIndices:l,selectedIndex:i,answered:o})}getFeedback({item:e,isCorrect:n,selectedAnswer:o}){if(this.state.forceShowFeedbackMessage)return this.state.forceShowFeedbackMessage;const r="feedback"in e?e.feedback:void 0,a="feedbackCorrect"in e?e.feedbackCorrect:void 0,i="feedbackIncorrect"in e?e.feedbackIncorrect:void 0,l="feedbackType"in e?e.feedbackType:void 0,u="answers"in e?e.answers:void 0,d=this.state.forceShowFeedbackCorrect??n;return ag({answers:u,feedback:r,feedbackCorrect:a,feedbackIncorrect:i,feedbackType:l,isCorrect:d,selectedIndex:typeof o=="number"?o:null})}getTypeLabel(){const{labels:e}=this.props,n=this.getType(),o=lF[n];return o?e?.[o]:e?.a11yBlockKnowledgeCheck}renderMultipleResponseOptionText(e,{title:n}){return(0,s.jsx)(ms,{className:"cursorAuto",value:n})}renderMultipleChoiceOptionText(e,{title:n}){return(0,s.jsx)(ms,{className:"quiz-multiple-choice-option__label cursorAuto",value:n})}renderType({columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isCorrect:i,item:l,onSubmit:u}){const{isHidden:d,labels:m,prefersKeyboardNavigation:p,renderMultipleResponseOptionText:f=this.renderMultipleResponseOptionText,renderMultipleChoiceOptionText:g=this.renderMultipleChoiceOptionText,settings:v,progress:C,blockId:x}=this.props,{answered:y,fillInText:b,isRetaking:E,matches:L,selectedAnswer:T,selectedIndices:I,shouldFocusFirst:S,questionHtmlId:N}=this.state,{id:k,type:B}=l,M="answers"in l?l.answers:[],{quizAcceptableResponses:R,quizAnswerPlaceholder:H}=m,P=C?.items?.[x]?.items?.[k]?.retryAttemptCount??0,j=v?.retryCount!==0&&(v?.retryCount==null||v?.retryCount===-1||P<v?.retryCount),U=v?.revealCorrectAnswers!==!1&&(v.retryCount==null||v.retryCount===-1||!j)?rt.iV.ALL:rt.iV.INCORRECT,W=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(B){case ji:return(0,s.jsx)(U3,{allowTabNavigation:!0,correctAnswerColor:n,correctAnswerColorContrast:o,errorMessageId:W,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:y,isCorrect:i,labels:m,onChange:this.handleFillIn,onEnterToSubmit:u,options:um(M),questionHtmlId:N,quizAcceptableResponses:R,quizAnswerPlaceholder:H,revealAnswers:U,value:b});case Ru:return(0,s.jsx)(K3,{answers:vH(B)(M),columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isActive:!d,isComplete:y,matches:L,onChange:this.handleMatchesChange,prefersKeyboardNavigation:p,revealAnswers:U});case wu:return(0,s.jsx)(Y3,{allowTabNavigation:!0,correctIds:dm(M),errorMessageId:W,isComplete:y,isCorrect:i,isRetaking:E,labels:m,onChange:this.handleMultipleResponseChange,onEnterToSubmit:u,options:M,questionHtmlId:N,renderOptionText:f.bind(this,l),revealAnswers:U,selectedIndices:I});case Pu:default:return(0,s.jsx)(Z3,{allowTabNavigation:!0,correctId:gH(M)||CH(M),errorMessageId:W,isComplete:y,isCorrect:i,isReduceMotion:pm,isRetaking:E,labels:m,onChange:this.handleChoiceSelect,onEnterToSubmit:u,onFocusFirstC
173omplete:this.resetShouldFocusFirst,options:M,questionHtmlId:N,renderOptionText:g.bind(this,l),revealAnswers:U,selectedIndex:T,shouldFocusFirst:S})}}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,variant:i}=this.props,{answered:l,isRetaking:u}=this.state,{entranceAnimation:d,knowledgeCheckWidth:m=76}=a,p=Rh(m),f=oe()("block-knowledge",{"block-knowledge--answered":l,"block-knowledge--no-animation":!d,"block-knowledge--retake":u}),g=oe()("block-knowledge__wrapper",`block-knowledge__wrapper--${i}`,{[`block-knowledge__container--custom-width-${p}`]:!0}),v=Array.isArray(r)&&r.length>0?r.slice(0,1):[];return(0,s.jsx)(Tt,{className:f,"data-testid":"block-kc-card",ref:C=>{this.block=C},style:this.getStyle(),children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:"block-knowledge__container",children:(0,s.jsx)("div",{className:"block-knowledge__row",children:(0,s.jsx)("div",{className:`block-knowledge__col--custom-width-${p}`,children:(0,s.jsx)(Gs,{"aria-label":this.getTypeLabel(),className:g,"data-testid":"block-knowledge-wrapper",ref:C=>{this.wrapper=C},children:v.map(C=>this.renderQuestion(C))})})})})})})}getStyle(){const{backgroundColor:e,settings:n}=this.props;if(n?.cardMode===Un.TRANSPARENT)switch(n?.backgroundType){case w.xj.ACCENT:case w.xj.COLOR:case w.xj.TINT:switch((0,pt.XC)(e)){case pt.lL.LIGHT:return{"--color-background-choice-hover":(0,pt.W8)(.5,e),"--color-background-feedback-frame":(0,pt.W8)(.5,e)};case pt.lL.MED:return{"--color-background-choice-hover":(0,pt.W8)(-.3,e),"--color-background-feedback-frame":(0,pt.W8)(-.3,e)};case pt.lL.DARK:return{"--color-background-choice-hover":(0,pt.W8)(-.6,e),"--color-background-feedback-frame":(0,pt.W8)(-.6,e)};case pt.lL.NEAR_BLACK:return{"--color-background-choice-hover":(0,pt.W8)(.15,e),"--color-background-feedback-frame":(0,pt.W8)(.15,e)}}}}}const uF=t=>{const{blockId:e,items:[n]}=t,{questions:o}=n,[r,a]=(0,h.useState)(()=>Cg({questions:o}));(0,h.useEffect)(()=>{if(!o)return;const l=u=>{const{path:d}=u.detail;if(d[d.indexOf("items")+1]?.id!==e)return;const p=d[d.lastIndexOf("questions")+1]?.id;if(p===r?.id)return;const f=o.find(({id:g})=>g===p);f&&a(f)};return window.addEventListener(Zt,l),()=>window.removeEventListener(Zt,l)},[e,r,o]);const i=(0,h.useMemo)(()=>r?{variant:eF[r.type],items:[r]}:{},[r]);return r?(0,s.jsx)(yg,{...t,...i}):(0,s.jsx)("div",{})},hF=t=>t.variant==="draw from question bank",ki=t=>{const e=En()??"",n=nn(),o=(0,et.gY)(),r={...t,backgroundColor:e,getL10nValue:o,blockSettings:n};return hF(r)?(0,s.jsx)(uF,{...r}):(0,s.jsx)(yg,{...r})};var mF=c(61812),pF=c.n(mF);class fF extends h.Component{refWrap;refBubbleTitle;portal;contentRef;scrollRef;videoContainer;constructor(e){super(e),this.state={hasOverflow:!1},this.refWrap=(0,h.createRef)(),this.refBubbleTitle=(0,h.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=xr()}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 n=this.props.media;this.props.onTranscriptUpdate?.({audioPlayerId:fo({refs:`items:${this.props.blockId}/items:${this.props.item?.id}`}),transcriptMedia:n})}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:n,description:o,htmlId:r,isActive:a,media:i,title:l,x:u,y:d}=this.props,m=oe()("bubble",{"bubble--active":a}),p=gF({x:u,y:d}),f=CF({hasOverflow:this.state.hasOverflow,x:u,y:d}),g={borderBottomColor:e},v=`${r}-title`,C=()=>
173{if(!i)return(0,s.jsx)(yt,{allowTabNavigation:a,className:"bubble__description",value:o});const y=this.props.getL10nValue(i)??{},b=vo(y,this.props.audioPosition,!0,"labeled-graphic"),E={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,refs:`items:${this.props.blockId}/items:${this.props.item?.id}`,shouldPause:!a},L={audio:{media:b.audioOnlyMedia||y,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-audio`},image:{media:b.imageOnlyMedia||y,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-image`},video:{media:b.videoOnlyMedia||y,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-video`},embed:{media:b.embedOnlyMedia||y,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-embed`},overlay:{media:y,isOverlayAudio:!0,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-overlay`}};return(0,s.jsx)(s.Fragment,{children:b.renderOrder.map((T,I)=>{if(T==="text")return(0,s.jsx)(yt,{allowTabNavigation:a,className:"bubble__description",value:o},`text-${I}`);const S=L[T];return!S||T==="embed"&&!a?null:(0,s.jsx)("div",{className:"bubble__media",children:(0,s.jsx)("div",{className:"bubble__figure",children:(0,s.jsx)("div",{className:oe()({"labeled-graphic-bubble-media-container--audio-bottom":T==="audio"&&this.props.audioPosition==="bottom"}),children:(0,s.jsx)(Zs,{...E,...S})})})},`${T}-${I}`)})})},x=(0,s.jsx)("div",{className:m,ref:this.refWrap,style:p,children:(0,s.jsxs)("dialog",{"aria-hidden":!a,"aria-labelledby":v,"aria-modal":"false",className:f,id:r,onKeyDown:this.handleKeyDown,style:g,children:[(0,s.jsx)("h2",{className:"bubble__title",id:v,ref:this.refBubbleTitle,tabIndex:-1,children:(0,s.jsx)(xs,{value:l})}),(0,s.jsx)("button",{"aria-label":"Close modal",className:"bubble__close",onClick:this.handleCloseClick,type:"button",children:(0,s.jsx)(HC,{className:"bubble__close-icon"})}),(0,s.jsx)("div",{className:"bubble__content",ref:y=>{this.contentRef=y},children:C()}),n&&this.renderControls()]})});return window.matchMedia("(max-width: 767px)").matches?(0,uo.createPortal)((0,s.jsx)(Mv,{children:x}),this.portal):x}renderControls(){const{accentColor:e,labels:n}=this.props,o={"--color-lg-accent":e};return(0,s.jsxs)("div",{className:"bubble__controls",style:o,children:[(0,s.jsx)("button",{"aria-label":n?.a11yCarouselPrevious,className:"bubble__prev",onClick:this.handlePreviousClick,type:"button",children:(0,s.jsx)("i",{className:"icon icon-chevron-left"})}),(0,s.jsx)("button",{"aria-label":n?.a11yCarouselNext,className:"bubble__next",onClick:this.handleNextClick,type:"button",children:(0,s.jsx)("i",{className:"icon icon-chevron-right"})})]})}renderOverflowMask(){if(!this.contentRef)return;const e=this.contentRef,n=e.offsetHeight;e.scrollHeight>n?(e.addEventListener("scroll",this.scrollRef=xu()(this.handleScroll,50)),this.setState({hasOverflow:!0}),this.scrollRef()):(e.removeEventListener("scroll",this.scrollRef),this.setState({hasOverflow:!1}))}handleDocumentClick=e=>{const n=Array.from(document.querySelectorAll("dialog[open]"))?.reduce((o,r)=>r.contains(e.target)||o,!1);!this.props.isActive||n||this.props.onClose({shouldFocusMarker:!1})};handleDocumentKeyDown=e=>{pn(e)&&this.props.isActive&&this.props.onClose({shouldFocusMarker:!1})};handleKeyDown(e){const{allowNav:n,onNextClick:o,onPreviousClick:r}=this.props,a=yL(this.contentRef,this.state.hasOverflow),i=pF()(hs()(n));zn()([[i(Tr),r],[i(Ir),o],[CL,a]])(e)}handleCloseClick=()=>{this.props.onClose()};handleNextClick(e){this.props.onNextClick(e)}handlePreviousClick(e){this.props.onPreviousClick(e)}handleScroll(){const e=this.contentRef,n=e.scrollTop,o=e.scrollHeight,r=e.offsetHeight;n>=o-r-10?this.setState({hasOverflow:!1}):this.state.hasOverflow||this.setState({hasOverflow:!0})}getMediaContainerClasses(e,n){return oe()({"labeled-graphic-bubble-media-container":e,"labeled-graphic-bubble-media-container--audio-overlay":n,"labeled-graphic-bubble-media-container--audio-on-bottom":e&&this.props.audioPosition==="bottom"})}}const vF=Yt(fF),gF=({x:t,y:e})=>{const n={top:"initial",bottom:"initial",left:"0",right:"0"};return t>50?n.right=100-t+"%":n.left=t+"%",e>50?n.bottom=100-e+"%":n.top=e+"%",n},CF=({hasOverflow:t,x:e,y:n})=>{const o=e<50;let r="top";return n>33&&(r=n>66?"bottom":"middle"),oe()("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"})};var xF=c(26372);const bF=t=>new URL(t).pathname.slice(1)+new URL(t).search;class yF extends xF.Component{imageEl;constructor(e){super(e),this.state={style:{}}}render(){const{canvasClassNames:e,children:n,cornerRadius:o,editable:r,editingDisabled:a,getL10nValue:i,imageLoaded:l,media:u,onCreateMarker:d,onShowAltDialog:m}=this.props,{style:p}=this.state,f=i(u)?.image??{},{alt:g,dimensions:v,key:C,src:x}=f,y=!!f.alt,b=(0,He.Ll)(g),E=(0,He.Zd)(f),L=oe()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":r&&!a,"labeled-graphic-canvas__figure--editing-disabled":r&&a});let T;C?T=(0,Ft.ME)(f):x&&(T=(0,Ft.ME)({key:bF(x),...f}));const I=oe()("labeled-graphic-canvas__image","labeled-graphic-canvas__image--flag-dimensions",{"labeled-graphic-canvas__image--svg"
173:(0,He.sg)(T)}),S={...p,...o!=null&&{"--corner-radius":`${Number(o)}px`}},N=(0,s.jsx)(In,{alt:b,className:I,"data-l10n-id":(0,Lt.pP)(u),height:v?.height||v?.originalHeight,onClick:d,onLoad:()=>this.setState({style:E}),ref:k=>{this.imageEl=k},src:T,style:S,width:v?.width||v?.originalWidth});return(0,s.jsx)("div",{className:e||"labeled-graphic-canvas",children:(0,s.jsx)("div",{className:"labeled-graphic-canvas__item",children:(0,s.jsx)("div",{className:"labeled-graphic-canvas__bounds",children:(0,s.jsxs)("figure",{className:L,children:[y&&r&&(0,s.jsx)(Et.ArcTooltip,{anchorAt:"top-center",text:"Edit alt text",children:(0,s.jsx)("div",{className:"item-media__tooltip",children:(0,s.jsx)("button",{className:"labeled-graphic-canvas__alt-tag",onClick:m,type:"button",children:"ALT"})})}),l&&N,(0,s.jsx)("ol",{role:"list",children:n})]})})})})}}const LF=Yt(yF),EF={"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"},TF=(t,e)=>{const n=EF[e];return n?.startsWith("a11y")?t?.[n]||"":n||""};var IF=c(26372);const Lg=q("labeled-graphic-marker");class SF extends IF.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=n=>{this.onItemDrag(n)}),e.addEventListener("mouseleave",this.onMouseLeave=n=>{this.onItemRelease(n)})}componentWillUnmount(){const e=this.parentCanvasElement();e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseleave",this.onMouseLeave)}UNSAFE_componentWillReceiveProps(e){const{isSelected:n,useLocalStateForCompletion:o}=e;n&&o&&!this.state.isComplete&&this.setState({isComplete:!0})}buildMarkerLabel=({icon:e,label:n,title:o,viewed:r})=>{const{labels:a}=this.props;return[].concat(n||[]).concat(o||[]).concat(e||[]).concat(r?a?.a11yLabeledGraphicViewed:a?.a11yLabeledGraphicUnviewed).join(", ")};render(){const{accentColor:e,ariaControls:n,icon:o,isActive:r,isComplete:a,isLessonBlocksList:i,isSelected:l,isVisible:u,labels:d,markerColor:m,markerColorContrast:p,onFocus:f,styles:g,useLocalStateForCompletion:v}=this.props,C=this.props.getL10nValue(this.props.title),x=TF(d,o),y=v?this.state.isComplete:a,b=!!m,E=(0,pt.cP)(m)?w.Em.LIGHT:w.Em.DARK,T=Ws({backgroundColor:m,contrast:p??E}),I=b?m:"#ffffff",S=b?T:e,N=this.buildMarkerLabel({icon:x,label:d&&d.a11yLabeledGraphicButtonMarker||"",title:C,viewed:y}),k=Lg({active:l,dragged:this.state.isDragged,visible:u,complete:y}),B={...g,"--color-lg-accent":I,"--color-lg-font":S},M=Lg("pin",{selected:l,disabled:i});return(0,s.jsx)("button",{"aria-controls":n,"aria-expanded":r,"aria-label":N,className:k,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:R=>{this.marker=R},style:B,type:"button",children:(0,s.jsx)("span",{className:M,children:(0,s.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:n,onClick:o,parentId:r}=this.props,a="labeledGraphicMarkerClick",i={detail:{itemId:n,parentId:r}},l=new CustomEvent(a,i);document.dispatchEvent(l),e||o()}onItemGrab(e){const{editable:n}=this.props;if(!n)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 n=e.clientX-this.state.posX,o=e.clientY-this.state.posY;this.marker.style.transform=`translate3d(${n}px, ${o}
173px, 0)`}}onItemRelease(e){const{editable:n}=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():n&&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 NF=Yt(SF);class jF extends h.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:n}=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:!n||jn()}}componentDidMount(){const{isBlock:e,isLearner:n,isPreview:o,markerDelay:r}=this.props;n&&!e&&(this.timeout=setTimeout(()=>this.setState({showMarkers:!0}),o?0:r))}componentWillUnmount(){clearTimeout(this.timeout),clearTimeout(this.entranceDoneTimeout)}render(){const{accentColor:e,animateBlockEntrance:n,blockId:o,color:r,canvasClassNames:a,disableCreateMarker:i,editable:l,getL10nValue:u,imageLoaded:d=!0,isBlock:m,isLearner:p,isLessonBlocksList:f,isPreview:g,initiallyVisible:v,items:C,labels:x,lessonId:y,media:b,onItemClear:E,onItemHint:L,onItemSelected:T,onNextClick:I,onPreviousClick:S,onShowAltDialog:N,parentId:k,progress:B,selected:M,settings:R={},showBubbles:H,enableVideoPlaybackSpeed:P}=this.props,{cornerRadius:j,markerColor:O,markerColorContrast:U}=R,{showMarkers:W}=this.state,re=O||(e||r),fe=oe()("map-item",{"map-item--animated":!l}),Ee=n?"fadeIn":"none",Oe=n?1:0,Ue=C.length>1;return(0,s.jsx)(h.Fragment,{children:(0,s.jsx)(Pt,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!g,animateIn:Ee,duration:g?0:Oe,initiallyVisible:v,isLearner:p,children:(0,s.jsx)(LF,{canvasClassNames:a,cornerRadius:j,editable:l,editingDisabled:i,imageLoaded:d,media:b,onCreateMarker:this.createMarker,onShowAltDialog:N,ref:we=>{this.canvas=we},children:C.map((we,Be)=>{const{description:de,id:se,icon:Ne,media:Me,title:$e}=we,Ae=u(we.x),at=u(we.y),qe={top:at+"%",left:Ae+"%"},lt=Es()(["items",se,"isComplete"],B),It=M===se,Dt=`bubble-${o}-${se}`;return(0,s.jsxs)("li",{className:fe,role:"listitem",children:[(0,s.jsx)(NF,{accentColor:re,ariaControls:Dt,editable:l,icon:Ne,isActive:M===se,isComplete:lt,isLessonBlocksList:f,isSelected:It,isVisible:W,itemId:se,labels:x,markerColor:O,markerColorContrast:U,onClick:()=>{T(se)},onFocus:this.onMarkerFocus(se),onHover:()=>{L()},onLeave:()=>{E()},onSetPosition:this.onSetPosition.bind(this,we),parentId:k,ref:ns=>{this.markerRefs[se]=ns},styles:qe,title:$e,useLocalStateForCompletion:m},se),!l&&H&&(0,s.jsx)(vF,{accentColor:re,allowNav:Ue,audioPosition:R.audioPosition,blockId:o,description:de,enableVideoPlaybackSpeed:P,htmlId:Dt,index:Be,isActive:It,item:we,labels:x,lessonId:y,media:Me,mediaOpts:{disableZoom:!R.zoomOnClick},onClose:this.onBubbleClose(se),onNextClick:()=>{I(Be)},onPreviousClick:()=>{S(Be)},title:$e,x:Number(Ae),y:Number(at)},Dt)]},se)})})})})}createMarker(e){const{disableCreateMarker:n,editable:o,onCreateMarker:r}=this.props;if(!o||n)return;const{x:a,y:i}=this.findItemCoordinates({e}),l=this.props.items.length,d={description:"",hasMedia:!1,icon:"01",id:Cu()(),isActive:!1,title:"",x:String(a),y:String(i)};r({index:l,payload:d})}onBubbleClose(e){const{onClose:n}=this.props;return(o={shouldFocusMarker:!0})=>{const r=this.markerRefs[e];o.shouldFocusMarker&&r?.focus?.(),n()}}onMarkerFocus(e){return()=>{const{onClose:n,selected:o}=this.props;o&&o!==e&&n()}}onSetPosition(e,n,o,r){if(!this.props.editable)return;const{lesson:a,onSetMarkerPosition:i}=this.props,{id:l,items:u}=a,{x:d,y:m}=this.findItemCoordinates({e:n,offsetX:o,offsetY:r}),p={x:String(d),y:String(m)};(0,as.uW)(e.x)&&(0,as.uW)(e.y)?(this.props.updateL10n({l10n:e.x,value:p.x}),this.props.updateL10n({l10n:e.y,value:p.y})):i({itemId:e.id,lessonId:l,items:u,payload:p})}findItemCoordinates({e,offsetX:n=0,offsetY:o=0}){const r=this.canvas.imageEl.getBoundingClientRect(),a=20,i=this.findItemCoordinate({clientPos:e.clientX,clientOffset:n,rectSubtractor:r.left,rectDivisor:r.width,validOffsetAmount:a}),l=this.findItemCoordinate({clientPos:e.clientY,clientOffset:o,rectSubtractor:r.top,rectDivisor:r.height,validOffsetAmount:a});return{x:i,y:l}}findItemCoordinate({clientPos:e,clientOffset:n,rectSubtractor:o,rectDivisor:r,validOffsetAmount:a}){const i=a/r*100,l=100-i;let u=(e+n-o)/r*100;return u>l?u=l:u<i&&(u=i),u}afterAnimatedIn(){const{isBlock:e}=this.props;e&&this.setState({showMarkers:!0})}}const kF=Yt(jF);var AF=c(26372);const Eg="page-wrap--noscroll";class RF extends AF.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(Zt,this.handleNavEvent)}handleNavEvent(e){const n=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;n===this.props.blockId&&this.state.selectedItemId!==o&&this.onItemSelected(o)}componentWillUnmount(){this.props.readOnly||document.removeEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.removeEventListener(Zt,this.handleNavEvent)}render(){const{imageLoaded:e}=this.state,{initiallyVisible:n,isLessonBlocksList:o,isPreview:r,items:a,labels:i,parentId:l,settings:u={}}=this.props,{mediaWidth:d="2"}=u,m=r?a[0].id:this.state.selectedItemId,p=oe()("view-labeled-graphic",{"view-labeled-graphic--small":d==="0","view-labeled-graphic--medium":d==="1","view-labeled-graphic--full":d==="2"});return(0,s.jsx)("div",{"aria-label":i?.a11yLabeledGraphicBlock,className:p,role:"group",children:(0,s.jsx)(kF,{...this.props,canvasClassNames:this.getCanvasClassNames(),editable:!1,imageLoaded:e,initiallyVisible:n,isLessonBlocksList:o,labels:i,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:l,selected:m})})}setImageLoaded(){this.setState({imageLoaded:!0})}loadImage(){const{image:e}=this.props.getL10nValue(this.props.media),{key:n,src:o}=e??{};if(!n&&!o)return;const r=setTimeout(this.setImageLoaded,1e3),a=new Image,i=n?(0,Ft.ME)(e):o;a.src=i,a.onload=()=>{clearTimeout(r),this.setImageLoaded()}}getCanvasClassNames(){return oe()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}onNextClick(e){const{blockId:n,items:o}=this.props,r=Qt()("id",o[Ms()(e)]||o[0]);document.querySelector(`dialog#bubble-${n}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onPreviousClick(e){const{blockId:n,items:o}=this.props,r=Qt()("id",o[oh()(e)]||o[oh()(Cs()(o))]);document.querySelector(`dialog#bubble-${n}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onItemSelected(e){const{editBlock:n,items:o,onItemSelected:r,onStep:a}=this.props,{selectedItemId:i}=this.state;n&&window.matchMedia("(max-width: 768px)").matches||(i===e?this.closeOpenedBubble():(this.openBubble(e),st()(a,gs()(l=>l.id===e))(o)),r(e))}handleMarkerClick(e){const{itemId:n,parentId:o}=e.detail,{selectedItemId:r}=this.state;
173(o!==this.props.parentId||r!==n)&&this.closeOpenedBubble()}openBubble(e){const{blockId:n}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const r=document.querySelector(".page-wrap");r&&r.classList.add(Eg)}this.setState({selectedItemId:e}),document.getElementById(`bubble-${n}-${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(Eg)}document.getElementById(`bubble-${e}-${this.state.selectedItemId}`)?.close(),this.setState({selectedItemId:void 0})}}const PF=Yt(RF),wF=t=>{const{blockId:e,progress:n,isLessonBlocksList:o=!1}=t,r=Es()(["items",e],n);return(0,s.jsx)(Tt,{className:"block-labeled-graphic",children:(0,s.jsx)(PF,{...t,editable:!1,isBlock:!0,isLessonBlocksList:o,parentId:e,progress:r})})},Ht=q("block-survey"),MF=[{value:"bad",label:"Bad",icon:"face-frown"},{value:"fair",label:"Fair",icon:"face-smile"},{value:"great",label:"Great",icon:"face-laugh"}],OF={bad:1,fair:2,great:3},DF={1:"bad",2:"fair",3:"great"},fm=t=>!t||t.trim()==="";function BF({animateBlockEntrance:t,blockId:e,initiallyVisible:n,isLearner:o,items:r=[],lessonId:a,onStep:i,onSubmit:l,settings:u={},title:d}){const[m,p]=(0,h.useState)({}),[f,g]=(0,h.useState)(!1),[v,C]=(0,h.useState)(!1),[x]=(0,h.useState)(()=>r.map(()=>Ns()("survey-q-"))),[y,b]=(0,h.useState)(!1),[E,L]=(0,h.useState)(new Set),T=(0,h.useRef)(null),I=(0,h.useRef)(null),{announcePolite:S}
173=vt(),N=(0,ke.A)(f),k=u.cardMode==="TRANSPARENT",B=(0,h.useCallback)((j,O)=>{p(U=>({...U,[j]:O})),E.has(j)&&(L(W=>{const z=new Set(W);return z.delete(j),z}),r.find(W=>W.id===j)&&r.filter(z=>z.isRequired&&z.id!==j&&fm(m[z.id])).length===0&&b(!1))},[E,r,m]),M=(0,h.useCallback)((j,O,U)=>{if(U&&O.length>U)return;const W=m[j]||"",z=U&&O.length===U&&W.length<U;p(re=>({...re,[j]:O})),z&&S(`Character limit reached. ${U} characters maximum.`),E.has(j)&&O.trim()!==""&&(L(fe=>{const Ee=new Set(fe);return Ee.delete(j),Ee}),r.filter(fe=>fe.isRequired&&fe.id!==j&&fm(m[fe.id])).length===0&&b(!1))},[m,S,E,r]),R=(0,h.useCallback)(async()=>{if(!e||!a){console.error("Missing blockId or lessonId");return}C(!0);try{const j=r.map(O=>{const U=m[O.id]||"",W={id:String(e),lessonId:String(a),itemId:O.id,questionTitle:String(O.question),surveyTitle:String(d||""),isUnfinished:!1};return O.questionType==="RATING"?{...W,ratingOptions:DF,type:O.questionType,response:OF[U]}:{...W,type:O.questionType,response:U}});window.Runtime?.reportUngradedAnswers&&await window.Runtime.reportUngradedAnswers(j),r.forEach(O=>i?.({id:O.id})),l?.(m),g(!0)}catch(j){console.error("Failed to submit survey:",j)}finally{C(!1)}},[e,a,r,m,i,l,d]),H=(0,h.useCallback)(j=>{if(j.preventDefault(),v)return;const U=r.filter(W=>W.isRequired).filter(W=>fm(m[W.id]));if(U.length>0){b(!0),L(new Set(U.map(W=>W.id))),S("Please answer all required questions to continue"),I.current&&I.current.focus();return}R()},[v,R,r,m,S]);(0,h.useEffect)(()=>{v&&S("Submitting survey responses.")},[v,S]),(0,h.useEffect)(()=>{!N&&f&&(S("Thanks! Your responses were sent."),T.current&&T.current.focus())},[f,N,S]);const P=(j,O)=>{const U=m[j.id]||"",W=x[O],z=`${W}-char-count`,re=`${W}-error`,fe=E.has(j.id),Ee=fe&&O===r.findIndex(Be=>E.has(Be.id));if(j.questionType==="RATING"){const Be=oe()(Ht("question"),{[Ht("question--error")]:fe}),de=oe()(Ht("rating-options"),{[Ht("rating-options--error")]:fe}),se=fe?re:void 0;return(0,s.jsxs)("fieldset",{"aria-describedby":se,"aria-invalid":fe?!0:void 0,"aria-required":j.isRequired?!0:void 0,className:Be,ref:Ee?I:void 0,children:[(0,s.jsxs)("legend",{className:Ht("question-text"),children:[String(j.question),j.isRequired&&(0,s.jsxs)("span",{className:Ht("required-indicator"),children:[" ",(0,s.jsx)(Et.ArcIcon,{icon:"fa-solid fa-asterisk"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Required"})]})]}),(0,s.jsx)("div",{className:de,children:MF.map(Ne=>{const Me=U===Ne.value,$e=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{"aria-label":Ne.label,checked:Me,className:Ht("rating-input"),name:`survey-${j.id}`,onChange:()=>B(j.id,Ne.value),type:"radio",value:Ne.value}),(0,s.jsx)(tt,{"aria-hidden":"true",className:Ht("rating-icon"),name:Ne.icon}),(0,s.jsx)("span",{"aria-hidden":"true",className:Ht("rating-label"),children:Ne.label})]}),Ae=oe()(Ht("rating-option"),{[Ht("rating-option--selected")]:Me,[Ht("rating-option--error")]:fe});return k?(0,s.jsx)(Gs,{cardMode:"WHITE",className:Ae,tag:"label",children:$e},Ne.value):(0,s.jsx)("label",{className:Ae,children:$e},Ne.value)})}),fe&&(0,s.jsxs)("div",{className:Ht("error-message"),id:re,children:[(0,s.jsx)(tt,{"aria-hidden":"true",name:"alert-circle"})," Required"]})]},j.id)}if(j.questionType==="LINEAR_SCALE")return null;const Oe=oe()(Ht("question"),{[Ht("question--error")]:fe}),Ue=oe()(Ht("text-input"),{[Ht("text-input--error")]:fe}),we=[j.maxLength?z:null,fe?re:null].filter(Boolean).join(" ")||void 0;return(0,s.jsxs)("div",{className:Oe,children:[(0,s.jsxs)("label",{className:Ht("question-text"),htmlFor:W,children:[String(j.question),j.isRequired&&(0,s.jsxs)("span",{className:Ht("required-indicator"),children:[" ",(0,s.jsx)(Et.ArcIcon,{icon:"fa-solid fa-asterisk"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Required"})]})]}),(0,s.jsxs)("div",{className:Ht("text-response"),children:[(0,s.jsx)("textarea",{"aria-describedby":we,"aria-invalid":fe?!0:void 0,"aria-required":j.isRequired?!0:void 0,className:Ue,id:W,maxLength:j.maxLength,onChange:Be=>M(j.id,Be.target.value,j.maxLength),placeholder:"Share your thoughts",ref:Ee?I:void 0,rows:j.questionType==="LONG_RESPONSE"?4:2,value:U}),j.maxLength&&(0,s.jsxs)("div",{className:Ht("character-count"),children:[(0,s.jsxs)("span",{"aria-hidden":"true",children:[U.length," / ",j.maxLength]}
173),(0,s.jsxs)("span",{className:"visually-hidden-always",id:z,children:["Character count: ",U.length," of ",j.maxLength]})]})]}),fe&&(0,s.jsxs)("div",{className:Ht("error-message"),id:re,children:[(0,s.jsx)(tt,{name:"alert-circle"})," Required"]})]},j.id)};return(0,s.jsx)(nh,{...u,children:(0,s.jsx)(Tt,{className:Ht(),children:(0,s.jsx)(Pt,{animateBlockEntrance:t,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{children:(0,s.jsx)(Gs,{className:Ht("container"),children:f?(0,s.jsx)("div",{className:Ht("confirmation"),ref:T,tabIndex:-1,children:(0,s.jsxs)("p",{className:Ht("confirmation-text"),children:[(0,s.jsx)(Et.ArcIcon,{icon:"fa-regular fa-circle-check"})," Thanks! Your responses were sent."]})}):(0,s.jsxs)("form",{noValidate:!0,onSubmit:H,children:[d&&(0,s.jsx)("h2",{className:Ht("title"),children:String(d)}),(0,s.jsx)("div",{className:Ht("questions"),children:r.map((j,O)=>P(j,O))}),(0,s.jsxs)("div",{className:Ht("actions"),children:[y&&(0,s.jsxs)("div",{className:Ht("validation-error"),role:"alert",children:[(0,s.jsx)(tt,{"aria-hidden":"true",name:"alert-circle"})," Please answer all required questions to continue."]}),(0,s.jsx)("div",{className:`${Ht("submit")} brand--ui`,children:(0,s.jsx)("button",{"aria-busy":v,className:Ht("submit-button"),"data-testid":"survey-submit-button",disabled:v,type:"submit",children:v?"Submitting...":"Submit"})})]})]})})})})})})}const vm=q("block-process-card"),Tg=({icon:t,isOverlayAudio:e=!1,onClick:n,text:o,variant:r})=>{const a=`${r}-btn`;return(0,s.jsxs)("button",{className:vm(a,{"audio-overlay":e}),onClick:n,type:"button",children:[(0,s.jsx)("span",{className:vm(`${a}-text`),children:o}),(0,s.jsx)(tt,{classNameIcon:vm(`${a}-icon`),name:t})]})},HF=q("block-process-card"),FF=({activeIndex:t,enableVideoPlaybackSpeed:e,id:n,index:o,isIntroStep:r=!1,isOverlayAudio:a=!1,item:i,labels:l,lessonId:u,media:d,onMediaLoad:m,settingZoomOnClick:p})=>{const{image:f}=d??{},g=a?f?.align??"center":"center",v=HF("media",{legacy:!1,"audio-overlay":a,[`audio-overlay-${g}`]:a,"intro-step":r}),C=t===o;return(0,s.jsx)("div",{className:v,children:(0,s.jsx)(Zs,{activeIndex:t,blockId:n,defaultAlign:"center",enableVideoPlaybackSpeed:e,hasPadding:!1,index:`${n}-${o}`,isOverlayAudio:a,item:i,itemIndex:o,labels:l,lessonId:u,media:d,onLoad:m,opts:{disableZoom:!p},shouldPause:!C})})};var gm=c(26372);const Ar=q("block-process-card"),VF=({text:t})=>{const e=gm.useRef(null),{isInView:n}=zF({ref:e,threshold:.75});return(0,s.jsxs)("div",{className:Ar("swipe-badge",{animate:n}),ref:e,children:[(0,s.jsx)("span",{className:Ar("swipe-badge-text"),children:t}),(0,s.jsx)(tt,{className:Ar("swipe-badge-icon"),name:"chevron-right-solid"})]})};function zF({ref:t,rootMargin:e="0px",threshold:n=.1}){const[o,r]=gm.useState(!1);return gm.useEffect(()=>{if(!t.current||o)return;const a=new IntersectionObserver(([i])=>{i.isIntersecting&&(r(!0),a.disconnect())},{rootMargin:e,threshold:n});return a.observe(t.current),()=>a.disconnect()},[o,t,e,n]),{isInView:o}}const UF=({activeIndex:t,className:e,description:n,enableVideoPlaybackSpeed:o,hasIntro:r,id:a,index:i,item:l,labels:u,lessonId:d,media:m,onClickRestart:p,onClickStart:f,settingAudioPosition:g,settingHeadingLevel:v=2,settingShowStepLabel:C=!0,settingStepLabel:x,settingZoomOnClick:y,showSwipeBadge:b,style:E,title:L,totalSteps:T,type:I})=>{const S=`h${v}`,N=I==="intro",k=I==="summary",B=I==="step",M=r?i:i+1,R=(0,et.QQ)(x)||u.processStepName,H=(0,et.QQ)(Array.isArray(m)?{}:m),P=vo(H,g,!0,"process"),j=()=>{if(!m)return null;const O={activeIndex:t,blockId:a,enableVideoPlaybackSpeed:o,id:a,index:i,isIntroStep:N,labels:u,lessonId:d,media:m,onMediaLoad:()=>{},settingZoomOnClick:y,item:l},U={audio:{media:P.audioOnlyMedia||H,isOverlayAudio:!1},image:{media:P.imageOnlyMedia||H,isOverlayAudio:!1},video:{media:P.videoOnlyMedia||H},embed:{media:P.embedOnlyMedia||H,isOverlayAudio:!1},overlay:{media:H,isOverlayAudio:!1}};return P.renderOrder.map((W,z)=>{if(W==="text")return(0,s.jsx)(yt,{className:Ar("description"),value:n},`text-${z}`);const re=U[W];return re?(0,s.jsx)(FF,{...O,...re},`${W}-${z}`):null})};return(0,s.jsxs)("div",{className:Ar(null,{[I]:!0}).mix(e),style:E,children:[B&&C&&(0,s.jsx)("div",{className:Ar("number"),children:`${R} ${M}`}),(0,s.jsx)("div",{className:Ar("title"),children:(0,s.jsx)(S,{children:(0,s.jsx)(yt,{value:L})})}),j(),!m&&(0,s.jsx)(yt,{className:Ar("description"),value:n}),N&&T>1&&(0,s.jsx)(Tg,{icon:"chevron-right-solid",isOverlayAudio:P.isOverlayAudio,onClick:f,text:u.processStart,variant:"start"}),k&&T>1&&(0,s.jsx)(Tg,{icon:"arrow-rotate-left",isOverlayAudio:P.isOverlayAudio,onClick:p,text:u.processStartAgain,variant:"restart"}),b&&B&&(0,s.jsx)(VF,{text:u.processSwipe})]})};var Bo=c(26372);const $F=q("block-process-carousel"),Ig=t=>t?.type==="intro",Cm=t=>t?.type==="summary",xm=t=>t?.type==="step",Sg=t=>t?.isHidden,WF=({animateBlockEntrance:t,enableVideoPlaybackSpeed:e,id:n,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:l,onStep:u,onTranscriptUpdate:d,previewType:m,processRef:p,settings:{audioPosition:f,headingLevel:g,stepLabel:v,showStepLabel:C,zoomOnClick:x}})=>{const y=js(480),b=(0,xe.Wz)(),E=(0,et.gY)(),L=Bo.useRef(null),[T,I]=Bo.useState(0),[S,N]=Bo.useState(!1),k=Bo.useMemo(()=>m===ot.o4.MOBILE_PORTRAIT||m===ot.o4.MOBILE_LANDSCAPE,[m]),B=Bo.useMemo(()=>{const re=a.filter(Ue=>!Sg(Ue)),fe=re.find(Ig),Ee=re.find(Cm),Oe=re.filter(xm);
173return[fe,...Oe,Ee].filter(Boolean)},[a]),M=Bo.useMemo(()=>B.findIndex((re,fe)=>xm(re)&&(xm(B[fe+1])||Cm(B[fe+1]))),[B]),R=Ig(B[0]),H=Cm(B[B.length-1]),P=!!m;Bo.useEffect(()=>{u&&(a.forEach(re=>Sg(re)&&u(re)),B.length>0&&u(B[0]))},[]);const j=Bo.useCallback(()=>{L.current?.navigateToSlide?.(0)},[]),O=Bo.useCallback(()=>{L.current?.navigateToSlide?.(1)},[]),U=Bo.useCallback(re=>{I(re);const fe=p.current;P||fe?.scrollIntoView({behavior:"smooth",block:"start"}),re!==M&&!S&&N(!0),u?.(B[re]);const Ee=B[re]?.media;E(Ee)?.audio&&d?.({audioPlayerId:fo({refs:`items:${n}/items:${B[re]?.id}`}),transcriptMedia:Ee})},[B,M,E,S,n,P,u,d,p]),W=({index:re,isActive:fe,onClick:Ee,onKeyDown:Oe})=>{const Ue=R&&re===0,we=H&&re===B.length-1,Be=R?re:re+1;let de,se;Ue?(de=i?.a11yBlockProcessSlideControlsIntroduction,se=(0,s.jsx)(tt,{className:"carousel-controls-item-intro-icon",name:"chevron-right"})):we?(de=i?.a11yBlockProcessSlideControlsSummary,se=(0,s.jsx)(tt,{name:"check-regular"})):(de=Be.toString(),se=Be.toString());const Ne=`${i?.a11yBlockProcessSlideControlsGoToSlide} ${de}`;return(0,s.jsx)(m3,{"aria-label":Ne,ariaLabel:Ne,className:"carousel-controls-item-btn",isActive:fe,onClick:Ee,onKeyDown:Oe,children:se},re)},z=t?"fadeIn":"none";return(0,s.jsx)(Pt,{animateBlockEntrance:P,animateIn:z,duration:P&&t?1:0,initiallyVisible:o,isLearner:r,children:(0,s.jsx)("div",{className:$F(),children:(0,s.jsx)(vu,{blockId:n,carouselRef:L,items:B,children:()=>(0,s.jsx)(pu,{iconNameLeft:"chevron-left-solid",iconNameRight:"chevron-right-solid",isInfinite:!1,isRTL:b,labelCarousel:i?.a11yBlockProcessCarousel,labelCarouselRoleDesc:i?.a11yBlockProcessRoleDescription,labelSlideControls:i?.a11yBlockProcessSlideControls,labelSlideControlsGoToNext:i?.a11yBlockProcessSlideControlsGoToNext,labelSlideControlsGoToPrevious:i?.a11yBlockProcessSlideControlsGoToPrevious,labelSlideControlsGoToSlide:i?.a11yBlockProcessSlideControlsGoToSlide,labelSlideCounterPreposition:i?.blocksPreposition,labelSlidePreposition:i?.a11yBlockProcessSlidePreposition,labelSlideRoleDesc:i?.a11yBlockProcessSlideRoleDescription,onChange:U,ref:L,renderSlideIndicator:W,shouldMouseEmulateTouch:k,shouldUseCounter:!1,shouldUseGoToSlide:!0,children:B.map((re,fe)=>(0,s.jsx)(Gs,{activeIndex:T,description:re.description,enableVideoPlaybackSpeed:e,hasIntro:R,id:n,index:fe,isHidden:re.isHidden,item:re,labels:i,lessonId:l,media:re.media,onClickRestart:j,onClickStart:O,settingAudioPosition:f,settingHeadingLevel:g,settingShowStepLabel:C,settingStepLabel:v,settingZoomOnClick:x,showSwipeBadge:y&&!S&&fe===M,tag:UF,title:re.title,totalSteps:B.length,type:re.type},re.id))})})})})};var _F=c(26372);const GF=t=>{const{blockId:e}=t,n=_F.useRef(null);return(0,s.jsx)(Tt,{className:"block-process",ref:n,children:(0,s.jsx)(WF,{id:e,processRef:n,...t})})};var KF=c(33670),QF=c.n(KF),ZF=c(74469),Ng=c.n(ZF),YF=c(33182),rr=c.n(YF),XF=c(60165),jg=c.n(XF),JF=c(76065),qF=c.n(JF),eV=c(29894),Rr=c.n(eV);const kg=t=>({...t.responses[t.response],hasCharacter:t.hasCharacter,type:"response"}),tV=(t,e)=>{const n=t.responses[t.response],o={emotion:e.emotion,goTo:e.goTo,nextSlide:e.nextSlide},r="action"in e?{action:e.action}:{};return{...o,...r,description:n?.feedback||"",type:"dialogue",hasCharacter:t.hasCharacter}},sV=t=>[kg(t)],nV=t=>{const e=!!t.responses[t.response],n=kg(t),o=tV(t,n);return e?[n,o]:[o]},oV=t=>t.hasFeedback?[t,...nV(t)]:t.response!=null?[t,...sV(t)]:[t],rV=(t,e)=>{if(!e)return;const{scene:n,slide:o}=e,r=t.findIndex(l=>l.id===n),i=(t[r]?.slides||[]).findIndex(l=>l.id===o);return{scene:r,slide:i}},Ag=oa()(rV);var aV=c(53994),iV=c.n(aV);const cV=Ds()(Qt()("filters"),Ls()(Mt()("name","rise_emotion")),Wd()(ls())),lV=Ds()(Qt()("filters"),gs()(Mt()("name","rise_emotion")),Qt()("value")),Rg=t=>new URL(t).pathname.slice(1),dV=t=>Ds()(po()("key",Rg(t.src)),po()("thumbnailKey",Rg(t.thumbnail)))(t),uV=Ds()(Qt()("poses"),Ls()(cV),qo()(t=>[lV(t),t]),iV(),ma()(dV));var Ho=c(26372);const bm=t=>t===-1?null:t,Pg=t=>oi()(on(),ya(),t),Mu=Wd()(ls()),wg=Wd()(on()),Ai=ou()(wg,Mu),Mg=QF()(Xd()),Og=Ge.BI?Pg(Ft.dE):Pg(Ft.bX),ym=t=>dn()(t);class hV extends Ho.Component{static get defaultProps(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}continueRef;feedbackRef;resetRef;buttonRef=Ho.createRef();responseItemRef=Ho.createRef();scenarioRef=Ho.createRef();blockContentRef=Ho.createRef();endRef=Ho.createRef();textRef=Ho.createRef();refs=Ho.createRef();dynamicRefs=Ho.createRef();fadeObservers=new Map;shouldFocus=!1;constructor(e){super(e);const n={activeScene:0,activeSlide:0,initiated:!1,prevScene:0,prevSlide:0,resizes:0,slides:{}};this.refs.current={},this.state=e.initialState||n,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.renderBackgroun
173d=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.renderAudioMedia=this.renderAudioMedia.bind(this),this.renderDialogueWithAudioPositioning=this.renderDialogueWithAudioPositioning.bind(this),this.renderTextWithAudioPositioning=this.renderTextWithAudioPositioning.bind(this),this.resetSlide=this.resetSlide.bind(this),this.resetSlides=this.resetSlides.bind(this),this.setNextSlide=this.setNextSlide.bind(this),this.dynamicRefs.current={},this.setupFadeObserver=this.setupFadeObserver.bind(this)}setupFadeObserver(e){if(!e)return;const n=this.fadeObservers.get(e);n&&(n.observer.disconnect(),e.removeEventListener("scroll",n.scrollHandler),this.fadeObservers.delete(e));const o=Array.from(e.children).find(d=>d.className.includes("-bottom"));if(!o)return;const r=e.parentElement?.classList.contains("scenario-block__dialogue__bubble")||e.parentElement?.classList.contains("scenario-block__dialogue__pane")?e.parentElement:e,a=()=>{const{scrollHeight:d,clientHeight:m}=e;return d>m+2},i=d=>{const m=d?.[0]?.isIntersecting??!1,p=a();p?r.classList.add("has-overflow"):r.classList.remove("has-overflow"),!m&&p?r.classList.add("show-fade"):r.classList.remove("show-fade")},l=new IntersectionObserver(i,{root:e,threshold:[0,1]}),u=()=>{};this.fadeObservers.set(e,{observer:l,scrollHandler:u}),l.observe(o)}componentDidMount(){const{initialState:e,items:n}=this.props,o=st()(A1()("poses"),Fn()({},"character"),ym);Ai(n)&&!o(n)&&this.fetchCharacters(),e||this.resetSlides(),window.addEventListener("resize",this.onResize),window.addEventListener(Zt,this.handleNavEvent)}handleNavEvent(e){const{path:n}=e.detail,{blockId:o,sceneId:r,slideId:a,responseId:i}=Ya(n,["block","scene"]),l=n.at(-1)==="feedback";if(o!==this.props.blockId)return;const u=bm(this.props.items.findIndex(p=>p.id===r)),d=u!==null?bm(this.props.items[u].slides.findIndex(p=>p.id===a)):null,m=d!==null?bm(this.props.items[u].slides[d].responses.findIndex(p=>p.id===i)):null;this.setState({activeScene:u??0,activeSlide:d??0},()=>{u!==null&&d!==null&&this.setState({slides:{...this.state.slides,[`${u}.${d}`]:{...this.state.slides[`${u}.${d}`],hasFeedback:l,response:m}}})})}componentDidUpdate(){const{items:e,onStep:n}=this.props,{activeScene:o,activeSlide:r}=this.state,a=Rt()([],[o,"slides"],e),i=Rt()(null,[r,"goTo"],a),l=Rt()(null,[r,"type"],a);if(n&&(i==="end"&&l==="text"||!i&&!l)&&jg()(n,e),this.shouldFocus){this.shouldFocus=!1;const p=this.scenarioRef.current?.querySelector('[data-scenario-focus][tabindex="-1"]');p?p.focus():dh(this.scenarioRef.current)}this.fadeObservers.forEach(({observer:p,scrollHandler:f},g)=>{document.contains(g)||(p.disconnect(),g.removeEventListener("scroll",f),this.fadeObservers.delete(g))})}componentWillUnmount(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize),window.removeEventListener(Zt,this.handleNavEvent),this.fadeObservers.forEach(({observer:e,scrollHandler:n},o)=>{e.disconnect(),o.removeEventListener("scroll",n)}),this.fadeObservers.clear()}getActiveScene(){return this.getScene(this.state.activeScene)}getScene(e){const{items:n}=this.props;return n&&e>=0&&e<n.length?n[e]:null}fetchCharacterPose(e,n){const o=this.getScene(e),r=o?.slides,a=r&&n>=0&&n<r.length;if(!o||!r||!a)return{name:"",pose:null};const{character:i}=o,l=r[n],u=`${e}.${n}`,d=[u,"response"],m=[u,"hasFeedback"],p=Rt()(null,d,this.state.slides),f=Rt()(!1,m,this.state.slides),g=Fn()("neutral","emotion",l),v=oi()(hs()(f),Rt()(g,["responses",p,"emotion"]),hs()(g)),C=Ds()(Rt()(i?.poses?.neutral,["poses",v(l)]),Og);return{name:i?.name||"",pose:C(i)}}fetchCharacters(){const{getCharacter:e,items:n,onItemUpdate:o}=this.props,r=Mn()(["id","name","poses","src"]),a=l=>u=>o({itemId:l,payload:{character:u}}),i=({character:l,id:u})=>Ai(l)&&e(l.id).then(d=>po()("poses",uV(d),d)).then(r).then(a(u));n.map(i)}isCharacterHidden(){const{items:e}=this.props,{activeScene:n,activeSlide:o}=this.state,a=this.getActiveScene()?.slides?.[o],i=o===null,l=e[n];return i?!(l?.slidesHaveCharacterByDefault??!1):a&&!a.hasCharacter}getCharacterPose(){const{items:e}=this.props,{activeScene:n,activeSlide:o,prevScene:r,prevSlide:a}=this.state,i=Rt()([],[n,"slides"],e),l=Rt()(!0,[o,"hasCharacter"],i);return wg(r)&&To()(l)?this.fetchCharacterPose(r,a):this.fetchCharacterPose(n,o)}onClick(e,n){const{items:o,onStep:r}=this.props,{activeScene:a,activeSlide:i}=this.state,l=this.getActiveScene()?.slides,u=Fn()(null,"type",l?.[i])==="dialogue",d=a===o.length-1,m=i===(l?.length??0)-1,p={activeSlide:i+1},f={activeScene:a+1,activeSlide:0},g={activeSlide:null},v={activeScene:0,activeSlide:0},C=Ds()(Ag(o),L=>({activeScene:L.scene,activeSlide:L.slide})),x=zn()([[hs()(m&&d),hs()(g)],[hs()(m&&!d),hs()(f)],[qc(),hs()(p)]]),y=oi()(hs()(u),hs()(g),hs()(v)),b=zn()([[rr()("slide"),Rr()(C,[n])],[rr()("next"),x],[rr()("end"),y]]),E=()=>this.continueRef=setTimeout(this.setNextSlide,300);this.resetRef=setTimeout(this.resetSlide.bind(this,a,i),0),this.setState({prevScene:a,prevSlide:i}),this.setState(b(e),E),e==="end"&&this.resetSlides(),e==="end"&&r&&jg()(r,o)}onFocus(){this.shouldFocus=!0}onInit(){this.setState({initiated:!0})}onResize(){this.setState({resizes:this.state.resizes+1})}
173onResponseClick(e,n){const{activeScene:o,activeSlide:r,slides:a}=this.state,{getL10nValue:i,lessonId:l,blockId:u}=this.props,d=`${o}.${r}`,m=po()("response",e),p=po()("hasFeedback",!0),f=Wc()({[`${d}`]:m}),g=Wc()({[`${d}`]:p});n.media&&i(n.media)?.audio&&ct.playerId===`audio-${l}-${u}`&&ct.pause();const C=st()(g,f);this.setState({slides:f(a)},()=>{this.shouldFocus=!0,this.setState({slides:C(a)})})}onTryAgainClick(){const{activeScene:e,activeSlide:n,slides:o}=this.state,r=`${e}.${n}`,a=Ng()({hasFeedback:null,response:null}),i=Wc()({[`${r}`]:a});this.setState({slides:i(o)})}render(){const{blockId:e,getL10nValue:n,isPDF:o,items:r,labels:a}=this.props,{activeScene:i,activeSlide:l,initiated:u}=this.state,m=this.getActiveScene()?.slides?.[l],p=st()(Mu,Fn()({},"character"),ym),f=st()(A1()("poses"),Fn()({},"character"),ym),g=st()(nr(),Rt()({},["character","poses"])),v=st()(Ih(),nr(),qo()(g)),C=this.isCharacterHidden(),x=oe()("scenario-block",{"scenario-block--initiated":u,"scenario-block--mobile":Ln.isMobile,"scenario-block--loading":p(r)&&!f(r),"scenario-block--character-hidden":C}),y=`scenario-live-${e}`,b={"aria-label":a?.a11yGroupScenario,"aria-describedby":y,className:x,ref:this.scenarioRef,role:"group",style:window.innerWidth<480?{height:window.innerHeight}:void 0},E=(0,Ft.ME)(n(r?.[0].background?.media)?.image),L=zn()([[on(),this.renderEnd],[Mt()("type","dialogue"),this.renderDialogues],[Mt()("type","text"),this.renderText],[qc(),hs()(null)]]),T=oe()("scenario-block__character",{"scenario-block__character--hidden":C}),I=`${i}.${l}`,S=this.state.slides[I],N=S?.hasFeedback?m?.responses?.[S?.response]?.alt:m?.alt,k=n(N);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{...b,"data-l10n-id":(0,Lt.pP)(N),children:[(0,s.jsx)("div",{"aria-live":"polite",className:"visually-hidden-always",id:y,children:k}),(0,s.jsx)("div",{className:"scenario-block__spinner"}),(0,s.jsx)("div",{className:"scenario-block__background-wrapper",children:Ai(r)&&r.map(this.renderBackground)}),E&&(0,s.jsx)(In,{alt:"",onLoad:this.onInit,src:E}),(0,s.jsxs)("div",{className:"scenario-block__inner",children:[(0,s.jsx)("div",{className:T,children:f(r)&&v(r).map(this.renderPose)}),(0,s.jsx)(Ts.F,{children:Ai(r)&&L(m)})]})]}),o&&m&&this.renderDetails(m)]})}renderBackground(e,n){const{activeScene:o}=this.state,{id:r,blurBackground:a}=e,i=this.props.getL10nValue(e?.background?.media)?.image,l=oe()("scenario-block__background",{"scenario-block__background--active":o===n,"scenario-block__background--blur":a??!0}),u=(0,Ft.ME)(i);return u?(0,s.jsx)(In,{alt:"",className:l,src:u},r):(0,s.jsx)(s.Fragment,{})}renderButton(e){const{labels:n}=this.props,{scenarioContinue:o,scenarioTryAgain:r}=n,{goTo:a,nextSlide:i}=e,l="action"in e?e.action:void 0,u={appear:!0,classNames:"scenario-block__dialogue__button-",nodeRef:this.buttonRef,timeout:{enter:0,exit:1e3}},d=l==="tryAgain"?(0,s.jsxs)("span",{children:[r," ",(0,s.jsx)("i",{className:"icon icon-reload"})]}):(0,s.jsx)("span",{children:o}),p={className:"scenario-block__dialogue__button",key:"button",onClick:l==="tryAgain"?st()(this.onFocus,this.onTryAgainClick):st()(this.onFocus,Rr()(this.onClick,[a,i]))};return(0,s.jsx)(Ts.F,{children:(0,s.jsx)(Ts.B1,{...u,children:(0,s.jsx)("button",{...p,type:"button",children:d})})})}renderDetails(e){const{items:n}=this.props,{activeScene:o,activeSlide:r}=this.state,{responses:a,type:i}=e,l=(p,f)=>(0,s.jsxs)("span",{children:[p," ",(0,s.jsx)(o4,{})," ",f]},p),u=Ds()(Ag(n),p=>`Scene ${p.scene+1} Slide ${p.slide+1}`),d=(p,{goTo:f,nextSlide:g})=>zn()([[rr()("next"),Rr()(l,[p,"Next Slide"])],[rr()("end"),Rr()(l,[p,"End of Scenario"])],[qc(),Rr()(l,[p,u(g||{})])]])(f),m=i==="text"?d("Continue",e):a.map((p,f)=>d(f,p));return(0,s.jsxs)("div",{className:"scenario-block__pdf-details",children:[(0,s.jsxs)("h3",{children:["Scene ",o+1," Slide ",r+1]}),m]})}renderDialogue(e,n,o){const{description:r,id:a,hasCharacter:i}=n,l="type"in n?n.type:void 0,{count:u,firstKey:d,hasFeedback:m,slide:p,totalDialogues:f}=e,g=o===0?a:o,v=o===1?d:o-1,C=o===0&&u===1,x=o===u,y=l==="dialogue"&&(C||x),b=this.dynamicRefs.current[`dialogue-${g}`],E=x&&this.dynamicRefs.current[`dialogue-${v}`],L=b&&b.offsetHeight,T=x&&E&&E.offsetHeight,I=m?30:0,S=window.innerWidth<480?20:30,N=S*2+60+T-I,k=S+60-I,B=qF()(L+I-60),M=Ho.createRef(),{settings:R,getL10nValue:H}=this.props,P=R?.audioPosition,j=H(p.media),O=vo(j,P),U=O.renderOrder.indexOf("audio")<O.renderOrder.indexOf("text"),W=!!j?.audio,z=m&&o===f-1,re=oe()("scenario-block__dialogue",{"scenario-block__dialogue--response":l==="response","scenario-block__dialogue--feedback":z,"scenario-block__dialogue--done":o<u-1,"scenario-block__dialogue--audio-top":U&&W}),fe=zn()([[hs()(C),hs()(null)],[rr()(u),hs()({top:`${N}px`})],[rr()(u-1),hs()({top:`${k}px`})],[rr()(u-2),hs()({top:`${B}px`})],[qc(),hs()({top:`-${L+30}px`})]]),Ee={className:re,ref:se=>{this.dynamicRefs.current[`dialogue-${g}`]=se},style:fe(o)},Oe={appear:!0,classNames:"scenario-block__dialogue-",nodeRef:M,key:o,timeout:{enter:400,exit:400}},Ue=oe()({"scenario-block__dialogue__bubble":i||l==="response","scenario-block__dialogue__pane":!i}),we=this.props.getL10nValue(r)||"",Be=l!=="response"&&!z&&W&&U&&(0,s.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(p)}),de=(0,s.jsxs)("div",{className:Ue,"data-scenario-focus":y?"":void 0,tabIndex:y?-1:void 0,children:[Be,(0,s.jsxs)("div",{className:"scenario-block__dialogue__bubble__content",ref:this.setupFadeObserver,children:[l!=="response"&&!z?this.renderDialogueWithAudioPositioning(p,we,O):(0,s.jsx)(yt,{value:we}),(0,s.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})]});return(0,s.jsx)(Ts.B1,{...Oe,children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{...Ee,children:Ai(r)&&de})})})}renderDialogues(e){const{activeScene:n,activeSlide:o,slides:r}=this.state,{id:a,responses:i}=e,l=`${n}.${o}`,u=r[l]||{},m=st()(Ih(),oV,yr()(u))(e),{hasFeedback:p,response:f}=u,{feedback:g}=i[f]||{},v=on()(f)&&Mu(i),C=p?m.length-1:m.length,x=(C===1&&ls()(i)||C===2&&Mu(i))&&p,y={count:C,firstKey:Rt()(null,[0,"id"],m),hasFeedback:p&&Ai(g),slide:e,totalDialogues:m.length},b={classNames:"scenario-block__content-",nodeRef:this.blockContentRef,timeout:{enter:0,exit:1e3}},E=(0,s.jsx)("div",{className:"scenario-block__dialogues__bottom",children:(0,s.jsx)("div",{className:"scenario-block__dialogues__bottom__inner",children:(0,s.jsx)("div",{className:"scenario-block__dialogues__responses",children:(0,s.jsx)(Ts.F,{component:"ol",role:"list",children:i.map((L,T)=>this.renderResponse(L,e,T))})})})});return(0,s.jsx)(Ts.B1,{...b,children:(0,s.jsx)("div",{className:"scenario-block__dialogues scenario-block__content",children:(0,s.jsxs)("div",{className:"scenario-block__dialogues__inner",children:[(0,s.jsx)("div",{className:"scenario-block__dialogues__top",children:(0,s.jsx)("div",{className:"scenario-block__dialogues__top__inner",children:(0,s.jsx)(Ts.F,{children:m.map(this.renderDialogue.bind(this,y))})})}),v&&E,x&&this.renderButton(m[C-1])]})})},a)}renderEnd(){const{labels:e}=this.props,{scenarioComplete:n,scenarioStartOver:o}=e,r=st()(this.onFocus,Rr()(this.onClick,["end",null])),a=oe()(["scenario-block__text","scenario-block__text--end","sce
173nario-block__content"]),i={classNames:"scenario-block__content-",nodeRef:this.endRef,timeout:{enter:0,exit:400}};return(0,s.jsx)(Ts.B1,{...i,children:(0,s.jsx)("div",{className:a,children:(0,s.jsxs)("div",{className:"scenario-block__text__inner","data-scenario-focus":"",tabIndex:-1,children:[(0,s.jsx)("div",{className:"scenario-block__text__title",children:(0,s.jsx)("h2",{children:n})}),(0,s.jsxs)("button",{className:"scenario-block__text__end",onClick:r,type:"button",children:[(0,s.jsx)("span",{children:o}),(0,s.jsx)("i",{className:"icon icon-reload"})]})]})},"end")},"end")}renderPose(e,n){const{pose:o}=this.getCharacterPose(),{filters:r,id:a}=e,i=Og(e),l=ou()(Mt()("name","style")),u=l(Mt()("value","left_aligned")),d=l(Mt()("value","right_aligned")),m=oe()("scenario-block__character__inner",{"scenario-block__character__inner--active":o===i,"scenario-block__character__inner--right":gs()(d,r),"scenario-block__character__inner--left":gs()(u,r)});return(0,s.jsx)("div",{className:m,"data-pose-id":a,children:(0,s.jsx)(In,{alt:"",src:i})},`pose-${n}-${a}`)}renderResponse({description:e},n,o){const{isPDF:r}=this.props,a=r?pV:st()(this.onFocus,Rr()(this.onResponseClick,[o,n])),i=g=>{const C=g.currentTarget.querySelector(".scenario-block__response__inner");if(C){const x=C.getBoundingClientRect();if(g.clientX>x.right-16){g.preventDefault();return}}a(g)},l=g=>{const C=g.currentTarget.querySelector(".scenario-block__response__inner");if(C){const x=C.getBoundingClientRect();g.clientX>x.right-16?C.classList.add("hovering-scrollbar"):C.classList.remove("hovering-scrollbar")}},u=g=>{const C=g.currentTarget.querySelector(".scenario-block__response__inner");C&&C.classList.remove("hovering-scrollbar")},d=oe()(["scenario-block__response",`scenario-block__response--${o}`]),m=oe()("scenario-block__response-item",`scenario-block__response-item--${o}`),p={appear:!0,classNames:"scenario-block__response-item-",nodeRef:this.responseItemRef,timeout:{enter:0,exit:1e3}},f=(0,s.jsx)("button",{className:d,onClick:i,onMouseLeave:u,onMouseMove:l,type:"button",children:(0,s.jsxs)("div",{className:"scenario-block__response__inner",ref:this.setupFadeObserver,children:[(0,s.jsx)("div",{className:"scenario-block__response__number",children:o+1}),(0,s.jsx)(yt,{value:e}),(0,s.jsx)("div",{className:"scenario-block__response__inner-bottom"})]})});return(0,s.jsx)(Ts.B1,{...p,children:(0,s.jsx)("li",{className:m,role:"listitem",children:f})},o)}renderText(e){const{description:n,goTo:o,hasCharacter:r,id:a,nextSlide:i}=e,l=this.props.getL10nValue(e.title),u=this.props.getL10nValue(n)||"",{labels:d,settings:m,getL10nValue:p}=this.props,{scenarioContinue:f,scenarioStartOver:g}=d,v=!n&&(l||"").length<22,C=m?.audioPosition,x=p(e.media),y=vo(x,C),b=y.renderOrder.indexOf("audio")<y.renderOrder.indexOf("text"),E=!!x?.audio,L=oe()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!r,"scenario-block__text--short":v,"scenario-block__text--audio-top":b&&E}),T={classNames:"scenario-block__content-",nodeRef:this.textRef,timeout:{enter:0,exit:400}},I=m?.headingLevel,S=I?`h${I}`:"h2",N=`scenario-title-${a}`,k=`scenario-description-${a}`,B=`${N} ${k}`,M=oe()("scenario-block__text__inner",{"scenario-block__text__inner--end":o==="end"}),R=oe()("scenario-block__text__title",{"scenario-block__text__title--end":o==="end"}),H=(0,s.jsx)("div",{className:R,"data-l10n-id":(0,Lt.pP)(e.title),id:N,children:(0,s.jsx)(S,{children:l})}),P=E&&b&&(0,s.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(e)}),j=(0,s.jsx)("div",{className:"scenario-block__text__description",id:k,ref:this.setupFadeObserver,children:this.renderTextWithAudioPositioning(e,u,y)}),O=st()(this.onFocus,Rr()(this.onClick,[o,i])),U=(0,s.jsx)("button",{"aria-describedby":B,className:"scenario-block__text__continue",onClick:O,type:"button",children:(0,s.jsx)("span",{children:f})}),W=(0,s.jsxs)("button",{"aria-describedby":B,className:"scenario-block__text__end",onClick:O,type:"button",children:[(0,s.jsx)("span",{children:g}),(0,s.jsx)("i",{className:"icon icon-reload"})]});return(0,s.jsx)(Ts.B1,{...T,children:(0,s.jsx)("div",{className:L,children:(0,s.jsxs)("div",{className:M,"data-scenario-focus":"",tabIndex:-1,
173children:[l&&H,P,n&&j,o==="end"?W:U]})},a)},a)}renderAudioMedia(e){const{blockId:n,getL10nValue:o,labels:r,lessonId:a,items:i,settings:l}=this.props,u=o(e.media),d=i?.[this.state.activeScene];return u?(0,s.jsx)(Zs,{blockId:n,index:n,item:e,labels:r,lessonId:a,lessonNumber:a,media:u,refs:`items:${n}/items:${d.id}/slides:${e.id}`,shouldPause:e.type!=="dialogue",volumeSliderPosition:l?.audioPosition==="top"?"below":"above"}):null}renderDialogueWithAudioPositioning(e,n,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,s.jsxs)(s.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(yt,{value:n})},`text-${i}`);if(a==="audio"&&!r){const l=this.renderAudioMedia(e);return l?(0,s.jsx)("div",{children:l},`audio-${i}`):null}return null}),(0,s.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})}renderTextWithAudioPositioning(e,n,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,s.jsxs)(s.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(yt,{value:n})},`text-${i}`);if(a==="audio"&&!r){const l=this.renderAudioMedia(e);return l?(0,s.jsx)("div",{children:l},`audio-${i}`):null}return null}),(0,s.jsx)("div",{className:"scenario-block__text__description-bottom"})]})}resetSlide(e,n){const{slides:o}=this.state,r=`${e}.${n}`,a={hasFeedback:!1,response:null};this.setState({slides:po()(r,a,o)})}resetSlides(){const{items:e}=this.props,n=r=>(a,i,l)=>{const{type:u,responses:d=[]}=i,m=u==="dialogue"&&d.length===0;return po()(`${r}.${l}`,{hasFeedback:m,response:null},a)},o=(r,a,i)=>Ds()(Fn()([],"slides"),Mg(n(i),{}),Ng()(r))(a);this.setState({slides:Mg(o,{},e)})}setNextSlide(){const{activeScene:e,activeSlide:n,slides:o}=this.state,r=this.getActiveScene()?.slides;if(!r)return;const{responses:a=[],type:i}=r[n]||{},l=`${e}.${n}`,u=po()("hasFeedback",!0),d=Wc()({[l]:u});i==="dialogue"&&ls()(a)&&(this.shouldFocus=!0,this.setState({slides:d(o)}))}shouldComponentUpdate(e,n){return e.items!==this.props.items||e.settings!==this.props.settings||n.activeScene!==this.state.activeScene||n.activeSlide!==this.state.activeSlide||n.initiated!==this.state.initiated||n.resizes!==this.state.resizes||n.slides!==this.state.slides||e.labels!==this.props.labels}}const mV=t=>{const e=(0,et.gY)();return(0,s.jsx)(hV,{...t,getL10nValue:e})};function pV(){}var fV=c(26372);class vV extends fV.Component{render(){const{animateBlockEntrance:e,isLearner:n,previewType:o,initiallyVisible:r}=this.props,a=!on()(o),u={animateBlockEntrance:a,animateIn:e?"fadeIn":"none",duration:a&&e?1:0,initiallyVisible:r,isLearner:n};return(0,s.jsx)(Tt,{className:"block-scenario",children:(0,s.jsx)(Pt,{...u,children:(0,s.jsx)(mV,{...this.props})})})}}var gV=c(51991),Ou=c.n(gV);function CV(t){t&&(t.addEventListener("touchstart",Pr,!0),t.addEventListener("touchmove",Pr,!0),t.addEventListener("touchcancel",Pr,!0),t.addEventListener("touchend",Pr,!0))}function xV(t){t&&(t.removeEventListener("touchstart",Pr,!0),t.removeEventListener("touchmove",Pr,!0),t.removeEventListener("touchcancel",Pr,!0),t.removeEventListener("touchend",Pr,!0))}function Pr(t){t?.stopPropagation?.()}const Ri=q("playing-card"),Dg=({id:t,isDeckTopCard:e,title:n,ref:o})=>{const[r,a]=(0,h.useState)(!1),[i,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)({x:0,y:0}),[m,p]=(0,h.useState)(!0),[f,g]=(0,h.useState)(!1),[v,C]=(0,h.useState)(0),x=nn(),y=(0,h.useRef)(null),b=(0,h.useRef)(null),E=(0,h.useRef)(void 0),L=(0,h.useRef)(void 0),T=(0,h.useRef)(!1),I=(0,h.useCallback)(()=>{const{innerWidth:O}=window,U=y.current&&y.current.scrollHeight>y.current.clientHeight,W=O<v;U&&O>v&&C(O),g(U||W)},[v]),S=(0,h.useRef)(()=>{a(!0),l(!1)}),N=(0,h.useRef)(()=>{a(!1)});(0,h.useImperativeHandle)(o,()=>({onStartSortAttempt:S.current,onEndSortAttempt:N.current})),(0,h.useEffect)(()=>{const O=setTimeout(()=>{p(!1)},300);return()=>clearTimeout(O)},[]),(0,h.useEffect)(()=>{const O=b.current;if(!O)return;const U=()=>{a(!0),l(!1)},W=({dx:re,dy:fe})=>{d(Ee=>({x:Ee.x+re,y:Ee.y+fe}))},z=()=>{a(!1)};return S.current=U,N.current=z,CV(O),Do(O).draggable({inertia:!0,autoScroll:!1,modifiers:[Do.modifiers.snap({targets:[(re,fe)=>({x:re,y:fe})],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]})]}
173).on("dragstart",U).on("dragmove",W).on("dragend",z),I(),E.current=Tu()(I,250),window.addEventListener("resize",E.current),()=>{xV(O),Do(O).off("dragstart",U).off("dragmove",W).off("dragend",z),E.current&&(E.current.cancel(),window.removeEventListener("resize",E.current)),clearTimeout(L.current)}},[I]),(0,h.useEffect)(()=>{I()},[t,I]),(0,h.useEffect)(()=>{const O=T.current;T.current=r,O&&!r&&(l(!0),clearTimeout(L.current),L.current=setTimeout(()=>{d({x:0,y:0}),l(!1)},300))},[r]);const k=x?.backgroundType===w.xj.ACCENT||x?.backgroundType===w.xj.IMAGE,B=`translate3d(${u.x}px, ${u.y}px, 0)`,M={WebkitTransform:B,transform:B},R=Ri("title",{"is-max-length":f}),H=Ri({draggable:!0,moving:r,fail:i,reset:m}),P=k?Ri("content"):Ri("content").mix("brand--border"),j=typeof n=="string"?n:n?.["en-US"]||"Card";return(0,s.jsxs)("div",{"aria-hidden":!e,className:H,id:t.toString(),onMouseDown:O=>{O.preventDefault()},ref:b,style:M,children:[e&&(0,s.jsxs)("div",{className:"visually-hidden-always",children:["Current item: ",j]}),(0,s.jsxs)(Gs,{"aria-hidden":"true",className:P,children:[(0,s.jsx)(yt,{className:R,id:`card-title-${t}`,ref:y,value:n}),(0,s.jsx)("div",{className:Ri("handle")}),(0,s.jsx)("div",{className:Ri("status"),children:(0,s.jsx)("i",{className:"icon icon-check"})})]})]},`card-${t}`)},Du=q("restart-button");function bV({allowTabNavigation:t=!0,onClick:e,onFocus:n=mn.lQ,ref:o,text:r}){const a=Du({}).mix("button");return(0,s.jsx)("button",{"aria-hidden":!t,className:a,"data-testid":"quiz-take-again-button",onClick:e,onFocus:n,ref:o,tabIndex:Kj(t),type:"button",children:(0,s.jsxs)("div",{className:Du("content"),children:[(0,s.jsx)("span",{className:Du("text").mix("brand--ui"),children:r}),(0,s.jsx)("i",{"aria-hidden":"true",className:Du("icon").mix("icon").mix("icon-reload")})]})})}const Bg=bV,ml=q("deck"),yV=t=>t?.percentViewed===100,LV=(t,e)=>`${t?.correctlyAnswered??0}/${e}`,EV=(t,e)=>String(e?.lastIncorrectCardId)===String(t.id),TV=({count:t,items:e,labels:n,id:o,onReplay:r,progress:a,ref:i})=>{const l=(0,h.useRef)([]),u=(0,h.useRef)(null);(0,h.useImperativeHandle)(i,()=>({startKeyDrop(){l.current[0]?.onStartSortAttempt()},endKeyDrop(){l.current[0]?.onEndSortAttempt()},focusReplayButton(){u.current?.focus()}}));const d=yV(a),m=LV(a,t),p=()=>{r?.({id:o})};return(0,s.jsxs)("div",{className:ml({complete:a?.percentViewed===100}),children:[(0,s.jsx)("div",{className:ml("spacer")}),d&&(0,s.jsxs)("div",{className:ml("cardholder"),children:[(0,s.jsxs)("div",{className:ml("title").mix("brand--ui"),children:[m," ",n.sortingCardsCorrect]}),(0,s.jsx)(Bg,{allowTabNavigation:d,onClick:p,ref:u,text:n.sortingReplay})]}),(0,s.jsx)("div",{className:ml("content"),children:e.map((f,g)=>(0,s.jsx)(Dg,{id:f.id,isDeckTopCard:l.current[g]===l.current[0],isIncorrect:EV(f,a),ref:v=>{l.current[g]=v},title:f.title},f.id))})]})},La=q("pile"),IV=({id:t,lessonId:e,deckTopCard:n,nextCard:o,isComplete:r=!1,onCardDrop:a,onNavigateToNext:i,onNavigateToPrevious:l,onKeyDropStart:u,onKeyDropEnd:d,title:m,ref:p})=>{const[f,g]=(0,h.useState)(void 0),[v,C]=(0,h.useState)(!1),[x,y]=(0,h.useState)(!0),[b,E]=(0,h.useState)(!1),[L,T]=(0,h.useState)(!1),[I,S]=(0,h.useState)(0),N=(0,h.useRef)(null),k=(0,h.useRef)(null),B=(0,h.useRef)(null),M=(0,h.useRef)(void 0),R=(0,h.useRef)(void 0),H=(0,h.useRef)(void 0),P=(0,h.useRef)(void 0),j=(0,h.useRef)(void 0),{announcePolite:O}=vt(),U=(0,h.useEffectEvent)(()=>{if(r||!n)return;const se=n.id.toString(),Ne=n.pileId===t;a?.({id:e,itemId:se,isCorrect:Ne});const Me=typeof n.title=="string"?n.title:n.title?.["en-US"]||"",$e=typeof m=="string"?m:m?.["en-US"]||"";if(Ne){clearTimeout(R.current),clearTimeout(H.current),clearTimeout(P.current),g(n),C(!0),y(!1);const Ae=`Correct. ${Me}, category: ${$e}`;O(Ae);const at=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";at&&(P.current=setTimeout(()=>{O(`Next item. ${at}`)},500)),R.current=setTimeout(()=>{g(void 0),C(!1)},1500),H.current=setTimeout(()=>{y(!0)},1300)}else clearTimeout(R.current),clearTimeout(H.current),clearTimeout(P.current),g(void 0),C(!1),y(!0),O("Incorrect. Choose another category.")});(0,h.useImperativeHandle)(p,()=>({focus(){k.current?.focus()}}));const W=(0,h.useCallback)(()=>{const{innerWidth:se}=window,Ne=N.current&&N.current.scrollHeight>(N.current.offsetParent?.clientHeight??0),Me=se<I;Ne&&se>I&&S(se),T(Ne||Me)},[I]),z=(0,h.useCallback)(()=>
173{if(r||!n)return;u?.();const se=n.id.toString(),Ne=n.pileId===t;a?.({id:e,itemId:se,isCorrect:Ne});const Me=typeof n.title=="string"?n.title:n.title?.["en-US"]||"Card",$e=typeof m=="string"?m:m?.["en-US"]||"Pile";if(Ne){clearTimeout(R.current),clearTimeout(H.current),clearTimeout(P.current),g(n),C(!0),y(!1);const Ae=`Correct. ${Me}, category: ${$e}`;O(Ae);const at=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";at&&(P.current=setTimeout(()=>{O(`Next item. ${at}`)},500)),R.current=setTimeout(()=>{g(void 0),C(!1)},1500),H.current=setTimeout(()=>{y(!0)},1300)}else clearTimeout(R.current),clearTimeout(H.current),clearTimeout(P.current),g(void 0),C(!1),y(!0),O("Incorrect. Choose another category.")},[r,n,o,t,e,m,u,a,O]),re=(0,h.useCallback)(se=>{Tr(se)?Op(()=>l?.())(se):Ir(se)&&Op(()=>i?.())(se)},[l,i]),fe=(0,h.useCallback)(()=>{r||(z(),clearTimeout(j.current),j.current=setTimeout(()=>d?.(),100))},[z,d,r]),Ee=(0,h.useCallback)(()=>{E(!0)},[]),Oe=(0,h.useCallback)(()=>{E(!1)},[]);(0,h.useEffect)(()=>{const se=B.current;if(!se)return;const Ne=Ae=>{const at=Do.getElementRect(Ae.target),qe={x:at.left+at.width/2,y:at.top+at.height/2};Ae.draggable.draggable({snap:{targets:[qe]}})},Me=Ae=>{Ae.draggable.draggable({snap:{targets:[(at,qe)=>({x:at,y:qe})]}})},$e=Ae=>{Ae.draggable.draggable({snap:{targets:[(at,qe)=>({x:at,y:qe})]}}),Ae.stopPropagation?.(),Ae.preventDefault?.(),U()};return Do(se).dropzone({overlap:"pointer"}).on("dragenter",Ne).on("dragleave",Me).on("drop",$e),W(),M.current=Tu()(W,250),window.addEventListener("resize",M.current),()=>{Do(se).off("dragenter",Ne).off("dragleave",Me).off("drop",$e),clearTimeout(R.current),clearTimeout(H.current),clearTimeout(P.current),clearTimeout(j.current),M.current&&(M.current.cancel(),window.removeEventListener("resize",M.current))}},[]);const Ue=oe()(La(),{"drop-success":v,complete:r}),we=oe()(La("content"),{"drop-animating":!x&&!b}),Be=La("title",{"is-max-length":L}),de=typeof m=="string"?m:m?.["en-US"]||"Category";return(0,s.jsx)("div",{className:Ue,ref:B,children:(0,s.jsx)("div",{className:La("wrapwrap"),children:(0,s.jsxs)(Gs,{className:La("wrap"),overrideBackground:!0,children:[(0,s.jsx)("div",{"aria-hidden":"true",className:La("message"),children:(0,s.jsx)(yt,{className:Be,ref:N,value:m})}),(0,s.jsx)("button",{"aria-disabled":r,"aria-label":de,className:we,disabled:r,onBlur:Oe,onClick:fe,onFocus:Ee,onKeyDown:re,ref:k,type:"button",children:f&&(0,s.jsx)(Dg,{id:f.id,title:f.title})}),(0,s.jsx)("div",{className:La("background")})]})})})},Lm=q("sorting"),SV=(t,e)=>!e||!e.items?t:t.filter(n=>!e.items?.[n.id]?.isViewed),NV=({id:t,labels:e,items:n,piles:o,onCardDrop:r,onReplay:a,progress:i})=>{const[l,u]=(0,h.useState)(()=>Ou()(n)),[d,m]=(0,h.useState)(!1),p=(0,h.useRef)([]),f=(0,h.useRef)(null),g=(0,h.useRef)(i?.retryAttempts),v=(0,h.useRef)(i?.percentViewed),C=(0,h.useRef)(void 0),x=(0,h.useRef)(void 0),y=(0,h.useRef)(void 0),{announcePolite:b}=vt(),E=(0,h.useEffectEvent)(()=>{p.current[0]?.focus()}),L=(0,h.useEffectEvent)(()=>{const R=i?.correctlyAnswered??0,H=n.length;b(`${R} of ${H} cards correct`)}),T=(0,h.useEffectEvent)(()=>{f.current?.focusReplayButton()});(0,h.useEffect)(()=>{const R=H=>{const{blockId:P,cardId:j}=Ya(H.detail.path,["block","card"]);t!==P||!j||u(O=>{const U=O.find(z=>z.id===j),W=O.filter(z=>z.id!==j);return U?[U,...W]:O})};return window.addEventListener(Zt,R),()=>{window.removeEventListener(Zt,R)}},[t]),(0,h.useEffect)(()=>{const R=i?.retryAttempts,H=g.current;return R!==H?(g.current=R,u(Ou()(n)),clearTimeout(C.current),C.current=setTimeout(()=>{E()},100)):u(P=>{const j=n.filter(W=>!P.find(z=>z.id===W.id));return[...P.filter(W=>n.find(z=>z.id===W.id)).map(W=>{const z=n.find(re=>re.id===W.id);return z?{...W,...z}:W}),...j]}),()=>{clearTimeout(C.current)}},[n,i?.retryAttempts]),(0,h.useEffect)(()=>{const R=i?.percentViewed,H=v.current;return R===100&&H!==100&&(m(!0),clearTimeout(x.current),x.current=setTimeout(()=>{L()},500),clearTimeout(y.current),y.current=setTimeout(()=>{T()},100)),R!==100&&H===100&&m(!1),v.current=R,()=>{clearTimeout(x.current),clearTimeout(y.current)}},[b,i?.correctlyAnswered,i?.percentViewed,n.length]);const{sortingLandmark:I}=e,S=SV(l,i),N=I,k=S?.[0],B=k?typeof k.title=="string"?k.title:k.title?.["en-US"]||"":"",M=d?"Categories. Interaction completed.":B?`Categories. ${B}`:"Categories";return(0,s.jsxs)("div",{"aria-label":N,className:Lm(),role:"group",children:[(0,s.jsx)("div",{className:Lm("row"),children:(0,s.jsx)(TV,{count:l.length,id:t,items:S,labels:e,onReplay:a,progress:i,ref:f})}),(0,s.jsx)("ul",{"aria-label":M,className:Lm("row"),role:"list",children:o.map((R,H)=>(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(IV,{deckTopCard:S?.[0],id:R.id,isComplete:d,lessonId:t,nextCard:S?.[1],onCardDrop:r,onKeyDropEnd:()=>{f.current?.endKeyDrop()},onKeyDropStart:()=>{f.current?.startKeyDrop()},onNavigateToNext:()=>Qj({list:p.current,currentIndex:H}),onNavigateToPrevious:()=>Zj({list:p.current,currentIndex:H}),ref:P=>{p.current[H]=P},title:R.title})},R.id))})]})},Hg=()=>()=>{},jV=t=>{const{animateBlockEntrance:e,blockId:n,initiallyVisible:o,items:r,labels:a,onCardDrop:i=Hg,onReplay:l=Hg,piles:u,progress:d}=t;return(0,s.jsx)(Tt,{type:"sorting-activity",children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:o,isLearner:!0,children:(0,s.jsx)(NV,{id:n,items:r,labels:a,onCardDrop:i(t),onReplay:l(t),piles:u,progress:Rt()({},["items",n],d)})})})};var Fg=c(24177);class kV extends h.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,n){return n.prevScope!==e.scope?{hasError:!1,error:void 0,prevScope:e.scope}:n}componentDidCatch(e){Fg.L.addError(e,{scope:this.props.scope},"source")}render(){const{hasError:e,error:n}=this.state,{FallbackComponent:o}=this.props;return e||n?(0,s.jsx)(o,{}):this.props.children}}const AV=kV,Vg=(0,h.createContext)({translationHoveredPath:null});function RV(){return(0,h.use)(Vg)}const PV=Vg.Provider,wV=(0,h.lazy)(()=>c.e("webpack_container_remote_mondrian_learn-react").then(c.t.bind(c,4246,23))),MV={subscribe(t,e){const n=`mondrian:${t}`,o=()=>{ct.isPlaying&&ct.playerId!==n&&e()};return ct.addChangeListener(o),()=>{ct.removeChangeListener(o)}},play(t){const e=`mondrian:${t}`;ct.playerId=e,ct.isPlaying=!0}};function OV(t){const e={};return t.backgroundType==="IMAGE"&&(e["--color-background"]="transparent"),e.maxWidth=(t.contentWidth??9999)+"rem",e.minWidth="0",e.margin="0 auto",e}function DV({blockumentId:t,manifest:e}){let n=920,o=600;try{const r=e.blockuments?.[t];if(r){const a=e.items?.[r.children[0]?.id];if(a){const i=a.states[a.initialState];if(i){const l=i.width.value,u=i.height.value;typeof l=="number"&&typeof u=="number"&&(n=l,o=u)}}}}catch{}return(0,s.jsx)("svg",{"aria-hidden":"true",className:"block-mondrian__fallback",height:o,width:n})}function BV({animateBlockEntrance:t=!0,initiallyVisible:e,blockumentId:n,isLearner:o=!1,settings:r,onStep:a,onTranscriptClose:i,onTranscriptOpen:l,onTranscriptUpdate:u,labels:d,transcriptPanelState:m}){const p=(0,xe.DX)(),f=p.mondrian,g=(0,xe.SQ)(),v={externalLinksDisabled:"externalLinksDisabled"in p?p.externalLinksDisabled:!1,isExternalLink:Bn},{currentLocale:C}=(0,wt.nY)(),x=(0,et.D_)(),y=RV(),b=(0,h.useMemo)(()=>({active:C,source:x}),[C,x]),E=(0,h.useCallback)(k=>m?.audioPlayerIdOpen===fo({refs:`items:${n}/items:${k}`}),[n,m?.audioPlayerIdOpen]),L=(0,h.useCallback)(({refocusTarget:k,itemId:B,transcript:M})=>{E(B)?i?.():l?.({audioPlayerId:fo({refs:`items:${n}/items:${B}`}),focusing:!0,refocusTarget:k,transcriptMedia:{mondrianTranscript:M}})},[n,E,i,l]),T=(0,h.useCallback)(({itemId:k,transcript:B})=>{m?.audioPlayerIdOpen&&u?.({audioPlayerId:fo({refs:`items:${n}/items:${k}`}),transcriptMedia:{mondrianTranscript:B}})},[n,u,m]),I=(0,h.useCallback)(k=>{u?.({audioPlayerId:fo({refs:`items:${n}/items:${k}`}),focusing:!0})},[n,u]),S=(0,h.useMemo)(()=>({isPanelOpenForItem:E,focusPanel:I,togglePanel:L,updateTranscript:T}),[I,E,L,T]),N=(0,h.useCallback)(k=>{if(a)for(const B of Object.values(k))B.progress>=100&&a({id:B.itemId})},[a]);return(0,s.jsx)(Tt,{children:(0,s.jsx)(AV,{FallbackComponent:VV,children:(0,s.jsx)(Pt,{animateBlockEntrance:t,initiallyVisible:e,isLearner:o,children:(0,s.jsx)("div",{style:OV(r),children:(0,s.jsx)(h.Suspense,{fallback:(0,s.jsx)(DV,{blockumentId:n,manifest:f}),children:(0,s.jsx)(wV,{blockumentId:n,hoveredItemPath:y.translationHoveredPath,labels:d,linkRenderConfig:v,locale:b,manifest:f,mediaStoreAdapter:MV,onMediaProgress:N,runtimeInterface:window.Runtime,searchTerm:g?.term,transcriptPanelAdapter:S})})})})})})}const HV=(0,h.memo)(BV,FV);function FV(t,e){return t.blockumentId===e.blockumentId&&t.settings.backgroundType===e.settings.backgroundType&&t.settings.contentWidth===e.settings.contentWidth&&t.labels===e.labels&&t.transcriptPanelState?.audioPlayerIdOpen===e.transcriptPanelState?.audioPlayerIdOpen}function VV(){return null}const zV=q("block-ai-scenario"),UV=(0,h.lazy)(()=>c.e("webpack_container_remote_ai_scenario_player-react").then(c.t.bind(c,79812,23)));function $V({blockId:t,scenarioId:e,onExit:n,emptySlot:o}){const{currentLocale:r}=(0,wt.nY)(),a=(0,et.D_)(),i=(0,h.useMemo)(()=>({active:r,source:a}),[r,a]);return(0,s.jsx)(Tt,{className:zV("wrapper"),children:e?(0,s.jsx)(h.Suspense,{children:(0,s.jsx)(UV,{blockId:t,locale:i,onExit:n,scenarioId:e})}):o??null})}const WV=(0,h.memo)($V);var zg=c(67750),ts=c(26372);const Fs=q("block-code"),_V=`${(0,Ge._$)("CDN_URI")}/assets/rise/assets/blocks/code_block_unavailable.svg`;function Ug(t,e){const n=$g(zg.parse(t.data));for(const o of n)if(o.type==="notification")e[o.method]?.(o.params);else throw new Error(`Unsupported RPC type "${o.type}"`)}function*$g(t){if(Array.isArray(t))for(const e of t)yield*$g(e);else yield t}function Wg(t,e,n){return ts.useEffect(()=>{const r=new AbortController;return window.addEventListener("message",a=>{a.origin===window.origin&&e!=null&&t.current&&a.source===t.current.contentWindow&&Ug(a,e)},{signal:r.signal}),()=>r.abort()},[e,t]),ts.useCallback(r=>{t.current?.contentWindow?.postMessage(r,n)},[t,n])}const GV=(t,e,n)=>Wg(t,n,window.origin),KV=(t,e,n)=>Wg(t,n,"*"),QV=(t,e,n)=>{const[o,r]=ts.useState(()=>new BroadcastChannel(e));return ts.useEffect(()=>()=>o.close(),[o]),ts.useEffect(()=>{o.name!==e&&r(new BroadcastChannel(e))},[o,e]),ts.useEffect(()=>{const i=new AbortController;return o.addEventListener("message",l=>Ug(l,n),{signal:i.signal}),()=>i.abort()},[o,n]),ts.useCallback(i=>{o.postMessage(i)},[o])},ZV=(0,Ge.Hm)()?Ln.isLocalFilesystem?KV:QV:GV,YV=window.location.origin==="";function XV(t){let e=YV?"":"lib/sandbox/sandbox.html";return e+=`#channel=${encodeURIComponent(t)}`,e}function JV(t){return typeof t=="number"?`${t/10}rem`:"-1px"}const qV={0:"small",1:"medium",2:"full"};function ez({editBlock:t,errors:e,isDragPreview:n,isLearn:o,isSidebarPreview:r,items:a,labels:i,onClearErrors:l,onError:u,onStep:d,previewType:m,settings:p}){const f=ts.useRef(null),v=(0,xe.DX)()?.htmlBlocksDisabled,C=n||r||!!m,[x]=a,y=(0,et.QQ)(x.srcdoc),b=(0,et.QQ)(x.media),E=b?.sandbox?.src==null?void 0:`${b.s
173andbox.src}/index.html`,L=p?.autoResize===!0,T=p?.width??"0",[I,S]=ts.useState("-1px");ts.useEffect(()=>{L||S(JV(p?.height))},[L,p?.height]);const[N,k]=ts.useState(0),[B,M]=ts.useState(!1),[R,H]=ts.useState(!1),[P]=ts.useState(()=>`rise-frontend-sandbox-${window.crypto.randomUUID()}`),j=XV(P),O=ts.useCallback(()=>{d?.({id:x.id})},[x.id,d]),U=ts.useCallback(({message:Be})=>{u?.({message:Be}),H(!0),console.error("Sandbox Error",Be)},[u,H]),W=ts.useCallback(()=>{l?.(),H(!1),k(Be=>Be+1)},[l]),z=ts.useCallback(()=>{M(N>0)},[N]),re=ts.useCallback(({height:Be})=>{L&&S(`${Be}px`)},[L]),fe=ts.useMemo(()=>({oncomplete:O,onerror:U,onload:z,onready:W,onresize:re}),[O,U,W,z,re]),Ee=ZV(f,P,fe),Oe=ts.useCallback((Be,de)=>{if(f==null&&N===0)throw new Error("Attempted to send message to sandbox before it is ready");const se=zg.format.notification(Be,de);Ee(se)},[N,f,Ee]),Ue=ts.useCallback(()=>{window.location.reload()},[]),we=ts.useCallback(()=>{t?.()},[t]);return ts.useEffect(()=>{N&&Oe("onupdate",{autoResize:L,src:E,srcDoc:y})},[L,N,Oe,E,y]),o&&e!=null||R?(0,s.jsx)(Tt,{children:(0,s.jsxs)("div",{className:Fs("error-general",{learn:o}),children:[(0,s.jsx)("div",{className:Fs("error-message"),children:"Something went wrong"}),(0,s.jsx)("div",{className:Fs("error-message-subtitle"),children:"There was an error loading this code block. Please contact your admin if the issue continues."}),(0,s.jsx)(Et.ArcButton,{className:Fs("error-button"),onClick:Ue,size:"lg",variant:"primary",children:"Refresh page"})]})}):e!=null&&Object.keys(e).length>0?(0,s.jsx)(Tt,{children:e[404]?(0,s.jsxs)("div",{className:Fs("error-404"),children:[(0,s.jsx)("div",{className:Fs("error-message"),children:"We couldn\u2019t find your file"}),(0,s.jsx)("div",{className:Fs("error-message-subtitle"),children:"Make sure your zip file contains an index.html file."}),(0,s.jsx)(Et.ArcButton,{className:Fs("error-button"),onClick:we,size:"lg",variant:"primary",children:"Retry upload"})]}):(0,s.jsxs)("div",{className:Fs("error-general"),children:[(0,s.jsx)("div",{className:Fs("error-message"),children:"Something went wrong"}),(0,s.jsxs)("div",{className:Fs("error-message-subtitle"),children:["Try refreshing the page or entering your co
173de again. If the issue isn't fixed,"," ",(0,s.jsx)("a",{href:"https://community.articulate.com/group/code-block",rel:"noopener noreferrer",target:"_blank",children:"visit our community"}),"."]}),(0,s.jsx)(Et.ArcButton,{className:Fs("error-button"),onClick:Ue,size:"lg",variant:"primary",children:"Refresh page"})]})}):v&&!C?(0,s.jsx)(Tt,{children:(0,s.jsx)("div",{className:Fs("restricted"),children:(0,s.jsxs)("div",{className:Fs("restricted-card"),children:[(0,s.jsx)(Bt,{alt:"",className:Fs("restricted-icon"),src:_V}),(0,s.jsx)("div",{className:Fs("restricted-title"),children:"Subscribe to unlock full access"}),(0,s.jsx)("div",{className:Fs("restricted-message"),children:"To protect learners from phishing, scams, or malicious redirects, code blocks are disabled when sharing with Quick Share during your trial."})]})})}):(0,s.jsx)(Tt,{children:(0,s.jsx)("iframe",{allow:"fullscreen",className:Fs({"auto-resize":L,loaded:C||B,width:qV[T]}),"data-rise-frontend-sandbox":"",loading:"lazy",ref:f,sandbox:"allow-forms allow-popups allow-same-origin allow-scripts",scrolling:L?"no":void 0,src:j,style:{"--block-html-height":I},title:i?.a11yBlockCode},P)})}const wr=q("timeline-card"),tz=t=>{const{blockId:e,disableZoom:n,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:l,lessonNumber:u,mediaType:d,audioPosition:m}=t,{settings:p}=a,f=(0,et.QQ)(a.media)??{},g=d==="audio"&&f.audio,v=d==="embed"&&f.embed,C=d==="image"&&f.image,x=d==="video"&&f.video;if(!g&&!v&&!C&&!x&&!(d==="image-with-audio"&&r))return;const b=f.embed?ga(f.embed):void 0,E=!!f.image,L=!!f.audio,T=E?f.image.align:"center",I=wr("media",{audio:L&&!r,"audio-and-embed":!!(f.audio&&f.embed),"image-with-audio":r,[`image-with-audio-${T}`]:r&&!!T,"audio-on-bottom":L&&!r&&m==="bottom",linkEmbed:b==="link",videoEmbed:b==="video",visual:!r&&E||!on()(f.video)}),S=p||{};return(0,s.jsx)("div",{className:I,children:(0,s.jsx)(Zs,{blockId:e,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:l,lessonNumber:u,media:f,mediaType:r?void 0:d,opts:{disableZoom:n,...S}})})},sz=t=>{const{headingLevel:e,innerRef:n,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:l}=t,{id:u}=o,d=wr({active:r}),m=!!o.date,p=!!o.title,f=e||2,g=`h${f}`,v=`h${f+1}`,C=(0,et.QQ)(o.media)??{},x=vo(C,i,!0,"timeline"),y=()=>{if(!C||!a)return null;const b={audio:{item:{...o,media:x.audioOnlyMedia||C},mediaType:"audio"},image:{item:{...o,media:x.imageOnlyMedia||C},mediaType:"image"},video:{item:{...o,media:x.videoOnlyMedia||C},mediaType:"video"},embed:{item:{...o,media:x.embedOnlyMedia||C},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,s.jsx)(s.Fragment,{children:x.renderOrder.map((E,L)=>{if(E==="text")return(0,s.jsx)(yt,{className:wr("description"),value:o.description},`text-${L}`);const T=b[E];return T?(0,h.createElement)(tz,{...t,...T,key:`${E}-${L}`}):null})})};return(0,s.jsx)("div",{className:d,"data-id":u,ref:n,children:(0,s.jsx)(Gs,{className:wr("body"),onFocus:l,children:(0,s.jsx)("div",{className:wr("main-wrap"),children:(0,s.jsxs)("div",{className:wr("main"),children:[m&&(0,s.jsx)("div",{className:wr("date"),children:(0,s.jsx)(g,{children:(0,s.jsx)(xs,{value:o.date})})}),p&&(0,s.jsx)("div",{className:wr("title"),children:(0,s.jsx)(v,{children:(0,s.jsx)(xs,{value:o.title})})}),y()]})})})})},pl=q("timeline"),nz=t=>{const{audioPosition:e,disableZoom:n,enableVideoPlaybackSpeed:o,headingLevel:r,id:a,initiallyVisible:i,isBlock:l,isLearner:u,item:d,labels:m,lessonId:p,onFocus:f}=t,g=(0,s.jsx)(sz,{audioPosition:e,blockId:a,disableZoom:n,enableVideoPlaybackSpeed:o,headingLevel:r,isActive:!0,item:d,labels:m,lessonId:p,lessonNumber:a,loadMedia:!0,onFocus:f});return l?u?(0,s.jsx)(Pt,{animateBlockEntrance:!0,className:pl("animate").toString(),initiallyVisible:i,isLearner:!0,children:g}):g:null},oz=t=>{const{id:e,items:n,labels:o,onEnter:r=Function.prototype,settings:a={}}=t,i=(0,h.useRef)(null),l=(0,h.useCallback)((u,d)=>{r({id:e,payload:{activeIndex:u,itemId:d}})},[e,r]);return(0,h.useEffect)(()=>{function u(d){const{blockId:m,cardId:p}=Ya(d.detail.path,["block","card"]);if(m!==e)return;const f=i.current.querySelector(`[data-id="${p}"]`);f&&!wh(f,"center")&&f.scrollIntoView({behavior:"instant",block:"center"})}return window.addEventListener(Zt,u),()=>{window.removeEventListener(Zt,u)}}),(0,s.jsx)("div",{"aria-label":o?.a11yBlockTimeline,className:"page__content-container",ref:i,role:"group",children:(0,s.jsx)("div",{className:pl("wrapper"),children:(0,s.jsx)("div",{className:pl(),children:(0,s.jsx)("ul",{className:pl("container"),role:"list",children:n.map((u,d)=>(0,s.jsx)("li",{className:pl("card-wrapper"),role:"listitem",children:nz({index:d,item:u,onFocus:l,...t,disableZoom:!a.zoomOnClick,headingLevel:a.headingLevel,audioPosition:a.audioPosition})},d))})})})})},rz=({animateBlockEntrance:t,blockId:e,enableVideoPlaybackSpeed:n,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:l,settings:u})=>(0,s.jsx)(Pt,{animateBlockEntrance:t,animateIn:"fadeIn",initiallyVisible:o,isLearner:r,children:(0,s.jsx)(Tt,{type:"timeline",children:(0,s.jsx)(oz,{enableVideoPlaybackSpeed:n,id:e,initiallyVisible:o,isBlock:!0,isLearner:r,items:a,labels:i,lessonId:l,settings:u})})}),az=t=>(0,s.jsx)("div",{className:"unsupported-block",...t,children:(0,s.jsxs)("span",{children:["We no longer support this block, so you can safely delete it. If you have any questions, please"," ",(0,s.jsx)("a",{href:"https://access.articulate.com/support/contact",children:"contact Articulate Support."})]})});var vn=c(30467),iz=c(28565),_g=c(32584),cz=c(35534),Gg=c.n(cz),Kg=c(85291);const lz=matchMedia("(forced-colors: active)");function fl(){return lz.matches}const dz=({activeIndex:t,values:e,opts:n}
173)=>{const{background:o,variant:r}=Hs(),{chartColor:a,lineCurve:i}=nn(),l=En(),u=(0,xe.kJ)(),d=n?.defaultFontColor,m=wo(),p=m===w.xj.IMAGE,g=(0,et.QQ)(o?.media)?.image?.overlayColor??w.df.DARK,v=fl();let C=a??u,x=l||"#fff";!a&&m===w.xj.ACCENT||a===x?C=d:p&&(C=g===w.df.DARK?"#fff":"#000",x=g===w.df.DARK?"#000":"#fff"),v&&(C="Highlight",x="Canvas");let y=C,b=Array(e.length).fill(C);if(t!=null&&!v){const E=p&&g===w.df.LIGHT?.2:.7,L=(0,Kg.A)(C,x,E);y=L,b=JA(L,C,e.length,t)}return r==="bar"?{backgroundColor:b,data:e,hoverBackgroundColor:b}:{borderColor:y,cubicInterpolationMode:i==="linear"?"default":"monotone",data:e,lineTension:i==="linear"?0:void 0,pointBackgroundColor:b,pointBorderColor:b,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:C,pointHoverBorderColor:C,pointHoverBorderWidth:0,pointRadius:4}};function uz({activeIndex:t,children:e,opts:n,values:o}){const r=dz({activeIndex:t,opts:n,values:o});return e(r)}class hz extends h.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:e,identifier:n,index:o,label:r,value:a}=this.props,i=e!=null&&e!==o,l=oe()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":i});return(0,s.jsxs)("div",{className:l,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,s.jsx)("dt",{className:"block-chart__cartesianLegendTerm",children:`${n}.`}),(0,s.jsxs)("dd",{className:"block-chart__cartesianLegendDefn","data-l10n-id":r.l10nId,children:[r.label,(0,s.jsx)("span",{className:"block-chart__cartesianLegendDefnPipe",role:"separator",children:"|"}),(0,s.jsx)("span",{className:"block-chart__cartesianLegendDefnVal",children:a})]})]})}}const mz=hz,pz=({activeIndex:t,labels:e,letters:n,onEvent:o,values:r})=>{const a=_d(n,_d(e,r));return a.length===0?null:(0,s.jsx)("dl",{className:"block-chart__cartesianLegend",children:a.map(([i,[l,u]],d)=>(0,s.jsx)(mz,{activeIndex:t,identifier:i,index:d,label:l,onEvent:o,value:u},i))})},fz=(0,h.memo)(pz);var vz=c(78285),gz=c.n(vz);function Cz(t){const e=this.getLabelForValue(t),n=15,o=e.split(" "),r=[];let a="";return o.forEach(i=>{(a+i).length>n?(r.push(a),a=i):a+=(a.length>0?" ":"")+i}),r.push(a),r}const xz={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:n}=t[0];return`${e}: ${n}`}}
173,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:Cz,padding:10}},y:{beginAtZero:!0,border:{display:!1},grid:{drawTicks:!1},ticks:{maxTicksLimit:8,padding:15}}}};function bz({values:t,contrastColor:e}){const n=Hs(),o=wo(),r=o===w.xj.IMAGE,a=(0,h.useMemo)(()=>XA(t),[t]);let i,l;const d=(0,et.QQ)(n?.background?.media)?.image?.overlayColor??w.df.DARK,m=r&&d===w.df.LIGHT;switch(o){case w.xj.LIGHT:case w.xj.GRAY:case w.xj.TINT:[i,l]=["#e1e1e1","#c9c9c9"];break;case w.xj.DARK:case w.xj.BLACK:case w.xj.IMAGE:[i,l]=["#ffffff80","#ffffffe9"];break;case w.xj.ACCENT:case w.xj.COLOR:{[i,l]=e==="#000"?["#00000080","#0000001a"]:["#ffffff80","#ffffffe9"];break}}return r&&m&&([i,l]=["#00000080","#0000001a"]),a||(l=i),[i,l]}const yz=({onEvent:t,reduceMotion:e,shouldAnimate:n,values:o})=>{const r=En(),{customBackgroundColorContrast:a}=nn(),i=(0,xe.DX)(),l=(0,xe.kJ)(),u=i?.theme?.accentContrast,d=wo(),m=d===w.xj.IMAGE,p=Hs(),f=fl(),g=(0,pt.cP)(r)?w.Em.LIGHT:w.Em.DARK,v=!a&&p?.family==="chart",C=a??w.Em.DARK,x=v?g:C,b=(0,et.QQ)(p?.background?.media)?.image?.overlayColor??w.df.DARK,E=m&&b===w.df.LIGHT,L=d===w.xj.ACCENT||d===w.xj.COLOR,T=d===w.xj.ACCENT?l:r,I=d===w.xj.ACCENT?u:x,S=Ws({backgroundColor:T,contrast:I}),[N,k]=bz({values:o,contrastColor:S}),B=(0,h.useCallback)(R=>f&&m?E?"#000000":"#FFFFFF":R.tick.value===0?k:N,[N,f,k,m,E]);return(0,h.useMemo)(()=>{let R="#000";if(f)m?R=E?"#000000":"#FFFFFF":R="FieldText";else{switch(d){case w.xj.DARK:case w.xj.BLACK:case w.xj.IMAGE:R="#fff";break}L&&(R=S),m&&E&&(R="#000")}const H=n&&!e?1e3:0;let P,j;f?m?(P=R,j=E?"#FFFFFF":"#000000"):(P="Highlight",j="HighlightText"):(P=R,j=R==="#000"||R==="#000000"||R===w.Em.DARK?"#FFFFFF":"#000000");const O=gz()(xz);return O.animation.duration=H,O.defaultFontColor=R,O.onClick=t,O.onHover=t,O.plugins.tooltip.animation=!e,O.plugins.tooltip.backgroundColor=P,O.plugins.tooltip.titleColor=j,f&&!m?(O.scales.x.grid.color="FieldText",O.scales.y.grid.color="FieldText"):(O.scales.x.grid.color=N,O.scales.y.grid.color=B),O.scales.x.ticks.color=R,O.scales.y.ticks.color=R,f&&(m?O.plugins.legend.labels.color=E?"#000000":"#FFFFFF":O.plugins.legend.labels.color="FieldText"),O},[d,S,N,L,f,m,E,t,e,B,n])};function Lz(t){const{children:e,onEvent:n,reduceMotion:o,shouldAnimate:r,values:a}=t,i=yz({onEvent:n,reduceMotion:o,shouldAnimate:r,values:a});return e(i)}var Ez=c(870),Em=c.n(Ez);const Tz=/<mark>|<\/mark>/gm,Iz=t=>e=>{const n=t(e.type).replace(Tz,"")??"";return{label:Em()(n,{length:30}),l10nId:(0,Lt.pP)(e?.type)}},Sz=t=>parseFloat(t.value??"0"),Qg=(t,e)=>({labels:t.map(Iz(e)),values:t.map(Sz)}),Zg=(t,e,n)=>{const o=Em()(e,{length:t});return n?AA(o,n):o};function Nz(){const[t,e]=h.useState(null),n=h.useRef(null),{announcePolite:o}=vt(),{a11yBlockChartPreposition:r}=(0,xe.vU)()??{},a=h.useCallback(f=>{e(f)},[]),i=h.useCallback(()=>{n.current?.resize()},[]),l=h.useCallback(()=>{n.current?.update()},[]),u=h.useCallback(()=>{i(),l()},[i,l]),d=h.useCallback(()=>{const f=n.current;if(f==null)return;const g=f.getDatasetMeta(0),v=g.data;if(!v?.length)return;const C=0,y=[{datasetIndex:0,element:g.data[C],index:C}];f.setActiveElements(y),f.tooltip?.setActiveElements(y,{x:0,y:0}),f.update(),a(C);const b=f.data.labels[C],E=f.data.datasets[0].data[C];setTimeout(()=>{o(`${C+1} ${r??""} ${v.length} - ${b}: ${E}`)},0)},[r,o,n,a]),m=h.useCallback(()=>{const f=n.current;if(f==null)return;const g=[];f.setActiveElements(g),f.tooltip?.setActiveElements(g,{x:0,y:0}),f.update(),a(null),o(null)},[o,n,a]),p=h.useCallback(f=>{const g=n.current;if(g==null)return;const v=g.getDatasetMeta(0),C=v.data;if(!C?.length)return;let x=!1,y=t;switch(f.key){case"ArrowLeft":x=!0,y=(t-1+C.length)%C.length;break;case"ArrowRight":x=!0,y=(t+1+C.length)%C.length;break;case"Home":x=!0,y=0;break;case"End":x=!0,y=C.length-1;break}if(x&&(f.stopPropagation(),f.preventDefault()),y!==t){const E=[{datasetIndex:0,element:v.data[y],index:y}];g.setActiveElements(E),g.tooltip?.setActiveElements(E,{x:0,y:0}
173),g.update(),a(y);const L=g.data.labels?.[y],T=g.data.datasets[0].data[y];o(`${y+1} ${r??""} ${C.length} - ${L}: ${T}`)}},[r,t,o,n,a]);return h.useEffect(()=>{n.current&&(n.current.resize(),n.current.update())},[]),h.useEffect(()=>{n.current&&n.current.update()},[t]),{activeIndex:t,chartRef:n,onBlur:m,onFocus:d,onKeyDown:p,onEvent:a,onResize:u}}function Yg(t){const e=n=>{const{activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:l,onKeyDown:u,onResize:d}=Nz();return(0,s.jsx)(t,{...n,activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:l,onKeyDown:u,onResize:d})};return e.displayName=`withChartEvents(${t.displayName||t.name})`,e}const jz="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");class kz extends h.PureComponent{wrapRef;id;resizeObserver;constructor(e){super(e),this.wrapRef=(0,h.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,n)=>{const o=n.length?n[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:n,top:o}=e?.scales?.y??{};Gg()(n)&&Gg()(o)&&this.setState({labelYTop:`${(n+o)/2}px`})}};render(){const{props:{activeIndex:e,chartRef:n,getL10nValue:o,htmlIdBase:r,htmlIdTitle:a,onBlur:i,onFocus:l,onKeyDown:u,isDesktop:d,isVisible:m,items:p,itemsLabel:f,labels:g,onEvent:v,search:C,shouldAnimate:x,valuesLabel:y,variant:b},state:{labelYTop:E}}=this,L=Zg(80,o(f),C),T=Zg(30,o(y),C),I=Qg(p,o),S=d?[]:jz.slice(0,p.length),N=d?I.labels:S.map(P=>({label:P})),k=m?I.values:cv(0,p.length),B=`${r}-type`,M=`${r}-instructions`,R=N.map(P=>P.label),H=N.map(P=>P.l10nId).join(",");return(0,s.jsxs)("div",{className:"block-chart__cartesian",children:[(0,s.jsx)("p",{className:"visually-hidden-always",id:M,children:g?.a11yBlockChartInstructions}),(0,s.jsxs)("div",{className:"block-chart__cartesianChart",ref:this.wrapRef,children:[T&&Kc(T)&&(0,s.jsxs)("div",{className:"block-chart__cartesianLabelY","data-l10n-id":(0,Lt.pP)(y),style:{insetInlineEnd:E},children:[T,(0,s.jsx)("span",{className:"visually-hidden-always",children:g?.a11yBlockChartAxisY})]}),L&&Kc(L)&&(0,s.jsxs)("div",{className:"block-chart__cartesianLabelX","data-l10n-id":(0,Lt.pP)(f),children:[L,(0,s.jsx)("span",{className:"visually-hidden-always",children:g?.a11yBlockChartAxisX})]}),(0,s.jsx)(Lz,{onEvent:this.handleEvent,reduceMotion:jn(),shouldAnimate:x,values:k,children:P=>(0,s.jsx)(uz,{activeIndex:e,opts:P,values:k,children:j=>(0,s.jsxs)("div",{"aria-describedby":M,"aria-labelledby":`${a} ${B}`,className:"block-chart__cartesian-canvas-wrap",onBlur:i,onFocus:l,onKeyDown:u,role:"application",tabIndex:0,children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:B,children:b==="bar"?g?.a11yBlockChartBar:g?.a11yBlockChartLine}),(0,s.jsx)(_g.Chart,{"aria-hidden":"true",data:{labels:R,datasets:[j]},"data-l10n-id":H,options:P,ref:n,role:"presentation",type:b,updateMode:"default"})]})})})]}
173),!d&&(0,s.jsx)(fz,{activeIndex:e,labels:I.labels,letters:S,onEvent:v,values:k})]})}}function Az(t){const e=Yt(t),n=R7(960,"isDesktop","Desktop")(e),o=Yg(n);function r(a){const l=(0,xe.SQ)()?.term??"";return(0,s.jsx)(o,{...a,search:l})}return r}const Rz=Az(kz),Tm=({valueType:t,value:e,values:n})=>t==="numeric"?String(e):qA(e/dv(n)),Pz=t=>{if(fl())return"FieldText";const e=t.dataset.backgroundColor[t.dataIndex]??"#000";return(0,pt.xD)(e)===w.Em.DARK?ot.S6.DARK:ot.S6.LIGHT},wz=(t,e,n)=>Tm({valueType:t,value:e,values:n.dataset.data}),Mz=(t,e)=>{const{label:n,dataset:o,parsed:r}=e[0],a=Tm({valueType:t,value:r,values:o.data});return`${n}: ${a}`},Oz=(t,e)=>{const n=e.dataIndex,o=e.dataset.data??[1],r=o[n],a=t==null&&r/dv(o)>=.06;return t===n||a},Dz=({activeIndex:t,onEvent:e,reduceMotion:n,settings:{valueType:o},shouldAnimate:r})=>{const a=fl();return{animation:{animateRotate:r&&!n,duration:r&&!n?1e3:0},defaultFontFamily:'"lato", sans-serif',onClick:e,onHover:e,maintainAspectRatio:!1,plugins:{datalabels:{color:Pz,display:Oz.bind(null,t),font:{size:12,weight:"bold"},formatter:wz.bind(null,o)},legend:{display:!1,labels:a?{color:"FieldText"}:void 0},tooltip:{animation:!n,boxPadding:"14px 10px",callbacks:{label:()=>null,title:Mz.bind(null,o)}
173,caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom",backgroundColor:a?"Highlight":ot.S6.LIGHT,titleColor:a?"HighlightText":ot.S6.DARK}},responsive:!1,rotation:130}},Bz=({activeIndex:t,colors:e,hasBorder:n,values:o})=>{const r=En(),a=fl(),i=t==null?e:e.map((l,u)=>u===t?l:(0,Kg.A)(l,r||"#fff",.5));return a?{backgroundColor:i,hoverBackgroundColor:i,borderWidth:.5,borderColor:"rgba(255, 255, 255, 0.3)",data:o}:{backgroundColor:i,hoverBackgroundColor:i,borderWidth:0,data:o,...n&&{borderWidth:1,borderColor:"#000"}}};function Hz({activeIndex:t,children:e,colors:n,hasBorder:o,values:r}){const a=Bz({activeIndex:t,colors:n,hasBorder:o,values:r});return e(a)}class Fz extends h.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:e,color:n,index:o,label:r,value:a}=this.props,i=e!=null&&e!==o,l=oe()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":i});return(0,s.jsxs)("div",{className:l,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,s.jsxs)("dt",{className:"block-chart__circleLegendTerm",children:[(0,s.jsx)("svg",{"aria-hidden":"true",className:"block-chart__circleLegendSymbol","data-ignore":"contrast",fill:n,focusable:"false",role:"presentation",viewBox:"0 0 10 10",children:(0,s.jsx)("rect",{height:"10",rx:"1.5",width:"10"})}),(0,s.jsx)("span",{className:"block-chart__circleLegendText","data-l10n-id":r.l10nId,children:r.label})]}),(0,s.jsx)("dd",{className:"visually-hidden-always",children:a})]})}}const Vz=Fz,zz=({activeIndex:t,colors:e,hasBorder:n,labels:o,onEvent:r,values:a,valueType:i="numeric"})=>{const l=_d(e,_d(o,a));if(l.length===0)return null;const u=oe()("block-chart__circleLegend",{"block-chart__circleLegend--border":n});return(0,s.jsx)("dl",{className:u,children:l.map(([d,[m,p]],f)=>(0,s.jsx)(Vz,{activeIndex:t,color:d,index:f,label:m,onEvent:r,value:Tm({valueType:i,value:p,values:a})},m.label))})},Uz=(0,h.memo)(zz),$z=(t,e)=>{const n=t.filter(a=>Number(a.value)>=0),o=Qg(n,e),r=n.map(a=>a.color);return{...o,colors:r}};class Wz extends h.PureComponent{wrapRef;id;resizeObserver;constructor(e){super(e),this.wrapRef=(0,h.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:n,shouldAnimate:o}=this.props;return Dz({activeIndex:e,onEvent:this.handleEvent,reduceMotion:jn(),settings:n,shouldAnimate:o})};handleEvent=(e,n)=>{const o=n.length?n[0].index:null;this.props.onEvent(o)};render(){const{activeIndex:e,backgroundColor:n,chartRef:o,getL10nValue:r,htmlIdBase:a,htmlIdTitle:i,onBlur:l,onFocus:u,onKeyDown:d,isVisible:m,items:p,labels:f,onEvent:g,settings:v}=this.props,{colors:C,labels:x,values:y}=$z(p,r),b=m?y:cv(0,p.length),E=this.buildOptions(),L=`${a}-type`,T=`${a}-instructions`,I=x.map(N=>N.label),S=C.includes(n);return(0,s.jsxs)("div",{className:"block-chart__circle",children:[(0,s.jsx)("p",{className:"visually-hidden-always",id:T,children:f?.a11yBlockChartInstructions}),(0,s.jsx)("div",{className:"block-chart__circleChart",ref:this.wrapRef,children:(0,s.jsx)(Hz,{activeIndex:e,colors:C,hasBorder:S,values:b,children:N=>(0,s.jsxs)("div",{"aria-describedby":T,"aria-labelledby":`${i} ${L}`,className:"block-chart__circle-canvas-wrap",onBlur:l,onFocus:u,onKeyDown:d,role:"application",tabIndex:0,children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:L,children:f?.a11yBlockChartPie}),(0,s.jsx)(_g.Chart,{"aria-hidden":"true",data:{labels:I,datasets:[N]},options:E,ref:o,role:"presentation",type:"pie",updateMode:"default"})]})})}),(0,s.jsx)(Uz,{activeIndex:e,colors:C,hasBorder:S,labels:x,onEvent:g,values:b,valueType:v?.valueType})]})}}function _z(t){const e=Fj()(t),n=Yg(e);return Yt(n)}const Gz=_z(Wz);vn.Chart.register(vn.ArcElement,vn.BarController,vn.BarElement,vn.CategoryScale,iz.default,vn.Legend,vn.Legend,vn.LineController,vn.LineElement,vn.LinearScale,vn.PieController,vn.PointElement,vn.Title,vn.Tooltip);const Kz=t=>(0,pt.cP)(t.backgroundColor);class Qz extends h.PureComponent{id;constructor(e){super(e),this.state={isVisible:!1},this.id=(0,am.uniqueId)("chart-")}componentDidMount(){this.setState({isVisible:!this.props.animateBlockEntrance||jn()})}handleAnimationEnd=()=>{this.setState({isVisible:!0})};renderTitle=()=>{const{title:e}=this.props;return(0,s.jsx)(yt,{value:e})};render(){const{props:{animateBlockEntrance:e,children:n,editable:o,initiallyVisible:r,isLearner:a,items:i,itemsLabel:l,labels:u,settings:d,title:m,valuesLabel:p,variant:f,renderTitle:g=this.renderTitle},state:{isVisible:v}}=this,C=Kz(d),x=d?.headingLevel,y=x?`h${x}`:"h2",b=this.id,E=`${b}-title`;return(0,s.jsx)(Tt,{type:"chart",children:(0,s.jsx)(Pt,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)("div",{className:"block-chart__container",children:(0,s.jsx)("div",{className:"block-chart__row",children:(0,s.jsx)("div",{className:"block-chart__rowInner",children:(0,s.jsxs)("figure",{children:[(!o&&m||o)&&(0,s.jsx)("figcaption",{children:(0,s.jsx)(y,{className:"block-chart__title",id:E,children:g()})}),(0,s.jsx)("div",{className:"block-chart__chart",children:h.cloneElement(h.Children.only(n),{hasDarkBgColor:C,htmlIdBase:b,htmlIdTitle:E,isVisible:v,items:i,itemsLabel:l,labels:u,settings:d,shouldAnimate:e,valuesLabel:p,variant:f})})]})})})})})})}}const Zz=Qz;function Xg(t){const e=n=>(0,s.jsx)(Zz,{...n,children:(0,s.jsx)(t,{})});return e.displayName=`ChartWrap(${IA(t)})`,e}var Yz=c(26372);const Xz=Xg(Rz),Jz=Xg(Gz),qz=Ls()(Mt()("variant","storyline")),eU=Ds()(qz,Cs(),CP()(1));class tU extends Yz.Component{render(){const{dividerNumber:e,family:n,handleStorylineFullscreen:o,partnerContent:r,variant:a,enableVideoPlaybackSpeed:i,initiallyVisible:l}=this.props,d={...Td()(["type","handleStorylineFullscreen","dividerNumber"],this.props),enableVideoPlaybackSpeed:i,partnerContent:r,initiallyVisible:l};return Qe("text","paragraph",d)||Qe("text","table",d)?(0,s.jsx)(VM,{...d}):Qe("text","heading paragraph",d)?(0,s.jsx)(GM,{...d}):Qe("text","subheading paragraph",d)?(0,s.jsx)(KM,{...d}):Qe("text","heading",d)?(0,s.jsx)(WM,{...d}):Qe("text","subheading",d)?(0,s.jsx)(_M,{...d}):Qe("text","two column",d)?(0,s.jsx)(zM,{...d}):Qe("text","three column",d)?(0,s.jsx)(UM,{...d}):Qe("text","four column",d)?(0,s.jsx)($M,{...d}):Qe("text","code",d)?(0,s.jsx)(h3,{...d}):Qe("impact","a",d)?(0,s.jsx)(aO,{...d}):Qe("impact","b",d)?(0,s.jsx)(iO,{...d}):Qe("impact","c",d)?(0,s.jsx)(cO,{...d}):Qe("impact","d",d)?(0,s.jsx)(lO,{...d}):Qe("impact","note",d)?(0,s.jsx)(dO,{...d}):Qe("quote","a",d)?(0,s.jsx)(CO,{...d}):Qe("quote","b",d)?(0,s.jsx)(xO,{...d}):Qe("quote","c",d)?(0,s.jsx)(bO,{...d}):Qe("quote","d",d)?(0,s.jsx)(yO,{...d}):Qe("quote","background",d)?(0,s.jsx)(LO,{...d}):Qe("quote","carousel",d)?(0,s.jsx)(TO,{...d}):Qe("list","numbered",d)?(0,s.jsx)(jO,{...d}):Qe("list","checkboxes",d)?(0,s.jsx)(kO,{...d}):Qe("list","bulleted",d)?(0,s.jsx)(AO,{...d}):Qe("image","hero",d)?(0,s.jsx)(PO,{...d}):Qe("image","full",d)?(0,s.jsx)(Gh,{...d}):Qe("image","text aside",d)?(0,s.jsx)(OO,{...d}):Qe("image","text overlay",d)?(0,s.jsx)(BO,{...d}):Qe("image","banner",d)?(0,s.jsx)(HO,{...d}):Qe("gallery","centered",d)||Qe("gallery","full",d)?(0,s.jsx)(_O,{...d}):Qe("gallery","two column",d)?(0,s.jsx)(Qh,{...d}):Qe("gallery","three column",d)?(0,s.jsx)(Qh,{width:3,...d}):Qe("gallery","four column",d)?(0,s.jsx)(Qh,{width:4,...d}):Qe("divider","divider",d)?(0,s.jsx)(KO,{...d}):Qe("divider","numbered divider",d)?(0,s.jsx)(QO,{number:e,...d}):Qe("divider","spacing divider",d)?(0,s.jsx)(ZO,{...d}):Qe("360","storyline",d)?(0,s.jsx)(ND,{...d,handleStorylineFullscreen:o,hasManySlBlocks:this.hasManySlBlocks.bind(this),isLesson:!0}):Qe("interactive","accordion",d)?(0,s.jsx)(sD,{...d}):Qe("interactive","tabs",d)?(0,s.jsx)(mD,{...d}):Qe("interactive-fullscreen","labeledgraphic",d)?(0,s.jsx)(wF,{...d}):Qe("interactive-fullscreen","process",d)?(0,s.jsx)(GF,{...d}):Qe("interactive-fullscreen","scenario",d)?(0,s.jsx)(vV,{...d}):Qe("interactive-fullscreen","sorting",d)?(0,s.jsx)(jV,{...d}):Qe("buttons","button",d)?(0,s.jsx)(AD,{...d}):Qe("buttons","button stack",d)?(0,s.jsx)(RD,{...d}):Qe("flashcard","flashcard",d)?(0,s.jsx)(O3,{...d}):Qe("flashcard","stack",d)?(0,s.jsx)(O3,{stack:!0,...d}):Qe("knowledge","knowledge",d)?(0,s.jsx)(ki,{...d}):Qe("continue","continue",d)?(0,s.jsx)(pB,{...d}):Qe("multimedia","step",d)?(0,s.jsx)(hB,{...d}):Qe("multimedia","audio",d)?(0,s.jsx)(oB,{...d}):Qe("multimedia","video",d)?(0,s.jsx)(tm,{...d}):Qe("multimedia","ai_avatar",d)?(0,s.jsx)(tm,{...d}):Qe("multimedia","custom video",d)?(0,s.jsx)(tm,{...d,type:"customVideo"}):Qe("multimedia","embed",d)?(0,s.jsx)(aB,{...d}):Qe("multimedia","attachment",d)?(0,s.jsx)(lB,{...d}):Qe("multimedia","code",d)?(0,s.jsx)(h3,{...d}):Qe("knowledgeCheck","multiple choice",d)?(0,s.jsx)(ki,{...d}):Qe("knowledgeCheck","multiple response",d)?(0,s.jsx)(ki,{...d}):Qe("knowledgeCheck","fillin",d)?(0,s.jsx)(ki,{...d}):Qe("knowledgeCheck","matching",d)?(0,s.jsx)(ki,{...d}):Qe("knowledgeCheck","draw from question bank",d)?(0,s.jsx)(ki,{...d}):Qe("chart","bar",d)||Qe("chart","line",d)?(0,s.jsx)(Xz,{...d}):Qe("chart","pie",d)?(0,s.jsx)(Jz,{...d}):Qe("interactive-fullscreen","timeline",d)?(0,s.jsx)(rz,{...d}):Qe("ai-scenario","ai-scenario",d)?(0,s.jsx)(WV,{...d}):Qe("mondrian","mondrian",d)?(0,s.jsx)(HV,{...d}):Qe("textToVideo","textToVideo",d)?(0,s.jsx)(az,{}):Qe("survey","survey",d)?(0,s.jsx)(BF,{...d}):Qe("html","inline",d)||Qe("html","cdn",d)||Qe("html","vibe",d)?(0,s.jsx)(ez,{...d}):`Unknown type: ${n} ${a}`}hasManySlBlocks(){const{items:e}=this.props;return e&&eU(e)}}function sU(t){return(0,s.jsx)(X1,{block:t,children:(0,s.jsx)(tU,{...t})})}function Qe(t,e,n){return n.family===t&&n.variant===e}const nU=1e3,oU=150,rU="onscrollend"in window;function Jg(t,e){const n=t.getBoundingClientRect(),o=e?.getBoundingClientRect(),r=o?.top??0,a=o?.bottom??window.innerHeight,i=(a-r)*.02,l=n.bottom>r-i&&n.top<a+i,u=n.bottom<r;return l||u}const Im={entries:new Map,scrollHandler:null,scrollEndHandler:null,scrollTarget:null,debounceTimer:null,register(t,e,n){const o=this.entries.size===0,r=e??window;if(this.entries.set(t,{el:t,scrollableParent:e,callback:n}),o){this.scrollTarget=r;const a=()=>{this.debounceTimer!=null&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this.checkAll(),oU)};rU?(this.scrollEndHandler=()=>this.checkAll(),this.scrollTarget.addEventListener("scrollend",this.scrollEndHandler),this.scrollHandler=a,this.scrollTarget.addEventListener("scroll",this.scrollHandler)):(this.scrollHandler=a,this.scrollTarget.addEventListener("scroll",this.scrollHandler))}},unregister(t){this.entries.delete(t),this.entries.size===0&&(this.scrollEndHandler&&this.scrollTarget&&(this.scrollTarget.removeEventListener("scrollend",this.scrollEndHandler),this.scrollEndHandler=null),this.scrollHandler&&this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.scrollHandler),this.scrollHandler=null),this.scrollTarget=null,this.debounceTimer!=null&&(clearTimeout(this.debounceTimer),this.debounceTimer=null))},checkAll(){requestAnimationFrame(()=>{const t=[];for(const e of this.entries.values())Jg(e.el,e.scrollableParent)&&t.push(e);
173t.forEach(e=>e.callback())})}},qg=({children:t,onViewed:e})=>{const n=(0,h.useRef)(null),o=(0,h.useRef)(!1),r=(0,h.useRef)(e);return(0,h.useEffect)(()=>{r.current=e},[e]),(0,h.useEffect)(()=>{const a=n.current;if(!a||o.current)return;const i=Uv(),l=()=>{o.current||(o.current=!0,u.disconnect(),clearTimeout(d),Im.unregister(a),r.current())},u=new IntersectionObserver(([m])=>{m!=null&&(m.isIntersecting||m.intersectionRatio>0)&&l()},{root:i,rootMargin:ot.CY,threshold:0});u.observe(a);const d=setTimeout(()=>{!o.current&&Jg(a,i)&&l()},nU);return Im.register(a,i,l),()=>{u.disconnect(),clearTimeout(d),Im.unregister(a)}},[]),(0,s.jsx)("div",{ref:n,children:t})};var Sm=c(26372);class aU extends Sm.PureComponent{render(){return(0,s.jsx)(qg,{onViewed:this.handleViewed,children:Sm.cloneElement(Sm.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.items?.length){this.props.onViewed();return}if(!e.requiresInteraction){this.props.onViewed();return}(iU.test(e.variant)||cU.test(e.family))&&e.items.length>0&&this.handleStep(e.items[0])}}const iU=/tabs|carousel/,cU=/gallery/,lU=["timeline"],dU=({family:t,variant:e})=>(/interactive|flashcard|knowledge|continue|360|survey/.test(t)||/carousel|centered|checkboxes|audio|video|storyline/.test(e))&&!lU.includes(e),uU=({family:t,settings:e})=>t==="html"&&e?.hasCustomCompletion,hU=({family:t,items:e})=>!!(t==="mondrian"&&e?.length),mU="draw from question bank",e6=t=>{const{animateBlockEntrance:e,block:n,className:o,color:r,courseId:a,courseTitle:i,defaultBackgroundColor:l,enableVideoPlaybackSpeed:u,handleNavigate:d,handleStorylineFullscreen:m,hideBlock:p,index:f,isLastBlock:g,isOnlyBlockInStep:v,isVideoTraining:C,labels:x,lessonId:y,lessonProgress:b,loadMedia:E,match:L,onContinue:T,partnerContent:I,prefersKeyboardNavigation:S,previewType:N,publishedAt:k,tenantId:B}=t,{blockId:M,family:R,items:H=[],variant:P,settings:j}=n,O=`block-${M}`,U=(0,X.wA)(),W=U5({blockId:String(M),lessonId:String(y)}),z=(0,h.useCallback)(qe=>{const lt=P===mU?H[0]:gs()(Mt()("id",qe),H);U((0,tr.re)({blockId:M,lessonId:y,items:[lt]})),R==="continue"&&T(M,qe)},[M,U,R,H,y,T,P]),re=(0,h.useCallback)(()=>{U((0,tr.re)({blockId:M,lessonId:y,items:H}))},[M,U,H,y]),fe=(0,h.useCallback)(qe=>{const lt=H?.[0],It=lt&&"id"in lt?lt.id:void 0;It&&U((0,tr.RA)({blockId:M,itemId:It,lessonId:y,audioVideoPlayhead:qe}))},[M,U,y,H]),Ee=(0,h.useCallback)(qe=>{U((0,tr.Sw)(qe))},[U]),Oe=(0,h.useCallback)(()=>({itemId:qe,isCorrect:lt})=>U((0,tr.i$)({itemId:qe,lessonId:y,blockId:M,isCorrect:lt})),[M,U,y]),Ue=(0,h.useCallback)(()=>()=>U((0,tr.V9)({lessonId:y,blockId:M})),[M,U,y]),we=Jc(),Be=(0,h.useCallback)(qe=>{U(Zf(qe))},[U]),de=(0,h.useCallback)(()=>{U(Gc())},[U]),se=(0,h.useCallback)(qe=>{U(vh(qe))},[U]),Ne=yr()(n,{animateBlockEntrance:e,className:o?.toString(),color:r,courseId:a,courseTitle:i,defaultBackgroundColor:l,dividerNumber:W,enableVideoPlaybackSpeed:u,family:R,handleNavigate:d,handleStorylineFullscreen:m,initiallyVisible:f===0,isHidden:p,isLastBlock:g,isLearn:!0,isLearner:!0,isOnlyBlockInStep:v,isVideoTraining:C,labels:x,lessonId:y,loadMedia:E,match:L,onCardDrop:Oe,onReplay:Ue,onRetryAttempt:Ee,onTranscriptClose:de,onTranscriptOpen:Be,onTranscriptUpdate:se,originalVariant:void 0,partnerContent:I,prefersKeyboardNavigation:S,previewType:N,progress:b,publishedAt:k,recordMediaPlayheadPosition:fe,tenantId:B,transcriptPanelState:we}),Me=dU({family:R,variant:P})||uU({family:R,settings:j})||hU({family:R,items:H}),$e=j7(y,M),Ae=oe()("noOutline",o,{"blocks-lesson__block-wrapper--hidden":p}),at=(0,s.jsx)(sU,{...Ne});return(0,s.jsx)("div",{className:Ae,"data-block-id":M,"data-change-path":$e,children:Me?(0,s.jsx)(aU,{block:n,onStep:z,onViewed:re,children:at}):(0,s.jsx)(qg,{onViewed:re,children:at})},O)},pU=({slides:t,currentSlide:e},n)=>(e.push(n),n.settings?.attachedToNextBlock||(t.push(e),e=[]),{slides:t,currentSlide:e}),fU=t=>{const{slides:e}=Xd()(pU,{slides:[],currentSlide:[]},t);return e};function Nm(t,e,n){if(t.length){const r=t.slice(-1)[0];if(!vl(r.id,n))return t}const o=YA(vU(n),e.slice(t.length)).map(gU);return o.length?Nm(t.concat(o),e,n):t}const vl=(t,e)=>Rt()(!1,["items",t,"isComplete"],e),vU=t=>({family:e,items:n})=>{const o=Rt()({},0,n);return e==="continue"&&!vl(o.id,t)};function gU(t,e,n){const o=n.slice(-1)[0]||{},{family:r}=o,a=r==="continue"?Rt()(!1,["items",0,"type"],o):!1;return t.family==="knowledgeCheck"&&t.settings?.requireCorrectAnswer?yr()(t,{requiresInteraction:!0}):t.variant!=="continue"&&(!a||a==="completeBlock"&&e!==n.length-1&&e!==n.length-2)?t:yr()(t,{requiresInteraction:!0})}function t6({id:t,...e},n,o,r){if(e.family==="continue"){const a=Rt()("",["items",0,"type"],e);return yr()({blockId:t,...e},{skipContinue:r,canContinue:CU({continueType:a,blocks:n,progress:o}),lessonProgress:o,isComplete:vl(t,o)})}return{blockId:t,...e}}const CU=({continueType:t,blocks:e,progress:n})=>{switch(t){case"completeAll":return rr()(Cs()(e),LU(n));case"completeBlock":return e.length===0?!0:vl(EU(e),n);default:return!0}},xU=st()(nr(),Qt()("items")),bU=t=>st()(yU,xU)(t),yU=Ls()(Mt()("isComplete",!0)),LU=st()(Cs(),bU),EU=st()(Qt()("id"),$r()),TU=({family:t,variant:e,isComplete:n,requiresInteraction:o})=>t==="continue"&&e==="continue"&&o&&!n,IU=(t,e)=>!!t.find(o=>{if(o?.family==="knowledgeCheck"&&o?.settings?.requireCorrectAnswer)return!e?.items?.[o?.id]?.isComplete}),SU=t=>t.length===0?!1:xh()(TU,t),NU=(t,e)=>t.length===0?!1:IU(t,e),jU=({blocks:t,lessonProgress:e})=>t.findIndex(n=>{const o=e?.items?.[n?.id],r=o&&o?.isComplete==null;return n?.family==="knowledgeCheck"&&n?.settings?.requireCorrectAnswer&&r}),s6=({blocks:t,lessonProgress:e,currentBlockIndex:n})=>{const o=jU({blocks:t,lessonProgress:e});return o>-1&&n>o},kU=(t,e)=>{const n=["embed","video","full"];return["interactive","interactive-fullscreen","image","flashcard","gallery","chart","knowledgeCheck"].includes(t)||n.includes(e)};function n6(){const{pathname:t}=new URL(window.location.href);return t.split("/")[1]==="review"}function AU(){const t=window.location.hash.slice(1),e=new URLSearchParams(t.split("?")[1]??"");return n6()&&!!e.get("locale")}function RU(t,e,n){if(!t||!e||!n6())return!1;if((0,Lt.uQ)(n,{l10n:e}))return!0;const{locales:o,defaultLocale:r}=e,a=o.find(i=>i.locale===r)?.id;return a&&a!==t}class PU extends h.Component{ref=h.createRef();constructor(...e){super(...e),this.state={randomQuestions:{},transitioning:!1,isBlockActionsSidebarPreview:!1},this.handleContinue=this.handleContinue.bind(this),this.handleScrollToBlock=this.handleScrollToBlock.bind(this),this.handlePreviewMessage=this.handlePreviewMessage.bind(this),window.addEventListener(Zt,this.handleScrollToBlock),window.addEventListener("message",this.handlePreviewMessage)}componentDidUpdate(e){this.scrollIfContinued(),e.isLessonEntering&&!this.props.isLessonEntering&&this.scrollToBlockAfterEnter!=null&&this.scrollToBlock(this.scrollToBlockAfterEnter)}componentWillUnmount(){window.removeEventListener(Zt,this.handleScrollToBlock),window.removeEventListener("message",this.handlePreviewMessage)}handlePreviewMessage(e){if(e.origin!==window.location.origin)return;
173(Array.isArray(e.data)?e.data:[e.data]).forEach(o=>{o?.type==="preview:lessonUpdate"&&this.setState({isBlockActionsSidebarPreview:!0})})}render(){const{className:e,isOnePage:n}=this.props,o=oe()("blocks-lesson",e,{"blocks-lesson--one-page":n});return(0,s.jsx)("section",{className:o,ref:this.ref,children:this.renderBlocks()})}renderBlocks(){const{blocks:e,lessonProgress:n,isLocalizedReviewMode:o}=this.props,{isBlockActionsSidebarPreview:r}=this.state,a=o||r;return(a?e:Nm([],e,n)).map(this.buildBlock.bind(this,this.props.lessonProgress,a)).filter(jv.A)}handleContinue(e,n){const{blocks:o,handleNavigate:r,lessonId:a,lessonProgress:i,nextLesson:l}=this.props;vl(n,i)||(this.continueFromId=e),e===o[o.length-1]?.id&&l&&((0,X.JD)((0,tr.eQ)(a)),r(l))}buildBlock(e,n,o,r,a){const{animateBlockEntrance:i,blocks:l,color:u,courseId:d,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:g,isVideoTraining:v,labels:C,lessonId:x,loadMedia:y,match:b,partnerContent:E,prefersKeyboardNavigation:L,previewType:T,publishedAt:I,tenantId:S}=this.props,{isBlockActionsSidebarPreview:N}=this.state,k=t6(o,a.slice(0,-1),e,n),B=a.length-1,R=k.family==="continue"?o.id===l[l.length-1]?.id:r===B,H=!N&&s6({blocks:l,lessonProgress:e,currentBlockIndex:r});return(0,s.jsx)(e6,{animateBlockEntrance:i,block:k,color:u,courseId:d,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:g,hideBlock:H,index:r,isFirstLesson:!0,isLastBlock:R,isVideoTraining:v,labels:C,lessonId:x,lessonProgress:e,loadMedia:y,match:b,onContinue:this.handleContinue,partnerContent:E,prefersKeyboardNavigation:L,previewType:T,publishedAt:I,tenantId:S},k.blockId)}scrollIfContinued(){if(this.continueFromId){const{blocks:e}=this.props,n=Qo()(Mt()("id",this.continueFromId),e),o=Ms()(n),r=Rt()(null,["blocks",o,"id"],this.props);if(r){const a=document.querySelector(".page-wrap"),i=a.querySelector(`[data-block-id="${r}"]`),l=i?i.getBoundingClientRect().top:0;_c.Ay.animateScroll.scrollTo(l+a.scrollTop,{smooth:!0,containerId:"page-wrap"})}delete this.continueFromId}}handleScrollToBlock(e){if(this.props.isLessonExiting||e.detail.lessonId!==this.props.lessonId)return;const n=e.detail.itemId;n==null?this.ref.current?.closest(".page").scrollIntoView({behavior:"smooth",block:"start"}):this.props.isLessonEntering?this.scrollToBlockAfterEnter=n:this.scrollToBlock(n)}scrollToBlock(e){const o=document.querySelector(".page-wrap").querySelector(`[data-block-id="${e}"]`);o?.scrollIntoView({behavior:"smooth",block:"nearest"})}}const wU=(t,e)=>{const{currentLocale:n}=e;return{isOnePage:it(t),isCourseLocalized:ws(t),isVideoTraining:(0,is.cZ)(Kt(t)),isLocalizedReviewMode:RU(t.course?.defaultLocaleId,t.l10n,n)}},o6=st()(Q1.A,wt.wZ,(0,X.Ng)(wU))(PU);function Bu({children:t}){const e=(0,h.useRef)(),n=(0,h.useCallback)(()=>{e.current?.focus?.()},[]);return xN(n),(0,s.jsx)("main",{className:"lesson-main",ref:e,tabIndex:"-1",children:t})}const MU=q("page"),r6=({type:t,children:e})=>(0,s.jsx)("div",{className:MU({lessonTypeQuiz:t==="quiz"}),"data-page":!0,"data-type":t,children:e});r6.propTypes={type:ut().string.isRequired,children:ut().node.isRequired};const gl=r6,Pi=({type:t,children:e})=>{const n=t==="video"||t==="embed"||t==="blocks"||t==="progress-summary",o=oe()("page__wrapper",{"page__wrapper--white":n});return(0,s.jsx)("div",{className:o,children:e})};Pi.propTypes={type:ut().string.isRequired,children:ut().node.isRequired};const wi=({className:t,type:e,children:n})=>{const o=oe()("page__content",t,{"page__content--timeline":e==="timeline"});return(0,s.jsx)("div",{className:o,children:n})};wi.propTypes={type:ut().string,children:ut().node.isRequired};const OU=({animateBlockEntrance:t,color:e,courseId:n,courseTitle:o,data:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:l,labels:u,lessonHeader:d,lessonHeaderWrapClasses:m,lessonHeaderWrapStyles:p,lessonProgress:f,loadMedia:g,match:v,nextLesson:C,partnerContent:x,prefersKeyboardNavigation:y,previewType:b,publishedAt:E,tenantId:L,hideLessonHeaders:T})=>{const{id:I,items:S,type:N}=r,k={animateBlockEntrance:t,blocks:S,color:e,courseId:n,courseTitle:o,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:l,isFirstLesson:!0,labels:u,lessonId:I,lessonProgress:f,loadMedia:g,match:v,nextLesson:C,partnerContent:x,previewType:b,prefersKeyboardNavigation:y,publishedAt:E,tenantId:L,type:N};return(0,s.jsx)(gl,{type:N,children:(0,s.jsx)(Pi,{type:N,children:(0,s.jsxs)(Bu,{children:[(0,s.jsx)("div",{className:m,inert:T,style:p,children:d}),(0,s.jsx)(wi,{children:(0,s.jsx)(o6,{...k})})]})})})},DU=t=>({partnerContent:Rt()([],["partnerContent","content"],t)}),BU=(0,X.Ng)(DU)(OU);var HU=c(53166);const FU=({percentComplete:t,trackingCompletionPercentage:e,labelCompletionRequirement:n="Completion Requirement",labelPercentCompletion:o="% Completion",labelYouCompleted:r="You completed:",labelA11yRequirementCompleted:a="Requirement completed, check mark",labelA11yRequirementNotCompleted:i="Requirement not completed, empty square"})=>{const l=(0,xe.Wz)();if(on()(e))return null;const u=li({percent:e,label:o,isRTL:l}),d=l?`%${t}`:`${t}%`;return(0,s.jsxs)("div",{className:"progress-summary__requirement",children:[(0,s.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,s.jsx)("h2",{className:"progress-summary__requirement-title",children:n}),(0,s.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,s.jsx)("div",{children:u}),(0,s.jsxs)("div",{children:[r,"\xA0",(0,s.jsx)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:d})]})]})]}),(0,s.jsx)(a6,{labelA11yRequirementCompleted:a,labelA11yRequirementNotCompleted:i,requirementMet:e<=t})]})},VU=({outOfAttempts:t,quizPassed:e,quizPassingScore:n,quizScore:o,quizTitle:r,trackingQuizId:a,labelQuizRequirement:i="Quiz Requirement",labelScoreOf:l="Score of",labelScoreOfPreposition:u="% on",labelViewQuiz:d="View quiz",labelYouScored:m="You scored",labelNoAttemptsRemaining:p="No attempts remaining.",labelA11yRequirementCompleted:f="Requirement completed, check mark",labelA11yRequirementNotCompleted:g="Requirement not completed, empty square"})=>{const v=(0,xe.Wz)();if(!a)return null;const C=li({percent:n,label:u,isRTL:v});return(0,s.jsxs)("div",{className:"progress-summary__requirement",children:[(0,s.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,s.jsx)("h2",{className:"progress-summary__requirement-title",children:i}),(0,s.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,s.jsxs)("div",{children:[l," ",C," ",r]}),on()(o)?(0,s.jsx)("div",{children:(0,s.jsx)(yn,{className:"progress-summary__requirement-stats-link brand--color",to:`/lessons/${a}`,children:d})}):(0,s.jsxs)("div",{children:[m,"\xA0",(0,s.jsxs)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:[o,"%"]})]})]}),t&&(0,s.jsx)("span",{className:"progress-summary__requirement-no-attempts",children:p})]}),(0,s.jsx)(a6,{labelA11yRequirementCompleted:f,labelA11yRequirementNotCompleted:g,requirementMet:e})]})},a6=({requirementMet:t,labelA11yRequirementCompleted:e,labelA11yRequirementNotCompleted:n})=>t?(0,s.jsx)(tt,{"aria-label":e,classNameIcon:"progress-summary__requirement-checkbox-checked",name:"square-check"}):(0,s.jsx)("div",{"aria-label":n,className:"progress-summary__requirement-checkbox-empty",role:"img"}),zU=({dueAt:t})=>t?(0,s.jsx)("div",{className:"progress-summary__header-due brand--color brand--border",children:i1(t)}):null;
173var UU=c(39645),$U=c.n(UU),WU=c(26372);const _U=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"];class GU extends WU.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,n){return n.recycle!==this.state.recycle||n.run!==this.state.run}componentWillUnmount(){clearTimeout(this.timeout)}render(){const{state:{recycle:e,run:n}}=this;return(0,s.jsx)("div",{className:"progress-summary__confetti",children:(0,s.jsx)($U(),{colors:_U,gravity:.4,height:window.innerHeight,numberOfPieces:500,recycle:e,run:n,width:window.innerWidth})})}}const KU=GU;var QU=c(45330),ZU=c.n(QU),YU=c(92213),XU=c.n(YU),JU=c(74955);const i6=q("progress-summary-card"),qU=({completeLabel:t,isComplete:e,isUrgent:n,completedDate:o,labelDue:r})=>e?(0,s.jsxs)("div",{className:"progress-summary-card__completed-label",children:[t,(0,s.jsx)("span",{className:"progress-summary-card__completed-date",children:o})]}):r?(0,s.jsx)("div",{className:oe()("progress-summary-card__due-label",{"brand--color":n}),children:r}):null,e$=({cardImageKey:t=null,className:e,color:n="#ff6602",completedAt:o=null,coverImageKey:r=null,disable:a=!1,durationHidden:i=!1,enrolledAt:l=null,hidden:u=!1,imagesUri:d="",isLearningPath:m=!1,isUrgent:p=!1,labelAssignedToMe:f="",labelDue:g="",labelDuration:v="",labelLearningPath:C="",onClick:x=mn.lQ,progress:y=0,title:b=""})=>{const E=(0,mt.useLabelsMap)(),L=(0,xe.Wz)(),T=o!==null,I=(0,h.useCallback)(()=>{a||x?.()},[a,x]),S=(0,h.useCallback)(P=>{D1(P)&&P.preventDefault(),!a&&ii(P)&&x?.()},[a,x]),N=li({percent:Math.round(y),label:E?.progressSummaryPercentComplete||"% Complete",isRTL:L}),k=t||r,B=E?.progressSummaryCompleted||"Completed: ",M=`${lo()(new Date(o)).format("MM/DD/YY")}`,R=i6("card",{disabled:a}),H=i6("image-overlay",{"not-started":!(y||T),"in-progress-completed":y||T});return(0,s.jsxs)("div",{"aria-hidden":u,className:R,onClick:I,children:[(0,s.jsxs)("div",{className:"progress-summary-card__content",children:[(0,s.jsx)("button",{"aria-disabled":a,className:oe()("progress-summary-card__title-button",{[e]:e}),onKeyDown:S,role:"link",tabIndex:u?-1:void 0,type:"button",children:(0,s.jsx)("span",{className:"progress-summary-card__title",children:b||E?.progressSummaryNoTitle||"(No Title)"})}),(0,s.jsxs)("div",{className:"progress-summary-card__course-info",children:[m&&(0,s.jsx)("div",{className:"progress-summary-card__hide",children:C}),l&&(0,s.jsx)("div",{className:"progress-summary-card__hide",children:f}),!!y&&!a&&!o&&(0,s.jsx)("span",{className:"progress-summary-card__hide",children:N}),!i&&!T&&(0,s.jsx)("div",{className:"progress-summary-card__duration",children:v}),(0,s.jsx)(qU,{completedDate:M,completeLabel:B,isComplete:T,isUrgent:p,labelDue:g})]})]}),(0,s.jsxs)("div",{className:"progress-summary-card__image-wrap",children:[(0,s.jsx)(JU.A,{alt:"","aria-hidden":"true",b:"fff",className:"progress-summary-card__image",f:"jpg",h:150,imageKey:k,imagesUri:d,s:"cover",style:{backgroundColor:n},w:300}),(0,s.jsx)("div",{className:H}),(0,s.jsx)("div",{className:"progress-summary-card__image-overlay-bottom-bar",children:!!y&&!a&&!T&&(0,s.jsx)("div",{"aria-hidden":"true",className:"progress-summary-card__progress-bar-wrap",children:(0,s.jsx)("div",{className:"progress-summary-card__wrap-light",children:(0,s.jsx)("div",{className:"progress-summary-card__progress-bar",style:{width:`${y}%`}})})})})]})]})},t$=(0,Ge._$)("IMAGES_URI"),s$=["cardImageKey","color","coverImageKey","progress","score","title"],c6=(t,e)=>t===1?e:e.concat("s"),jm=Rt()([],["course","course","lessons"]),n$=t=>st()(dn(),Ef()(Er()(Mt()("type","section"),XU()(na()(av(),t),"id"))),jm),o$=t=>{const e=jm(t),{trackingQuizId:n}=t,{score:o}=t;if(n&&e.length){const r=gs()(Mt()("id",n),e),{settings:{passingScore:a}={}}=r;return o<a?r:!1}},r$=st()(gs()(Wd()(Mt()("type","section"))),jm),a$=R1()(2,t=>st()(Fn()("","id"),gs()(Boolean),ZU()([n$(t),o$,r$]))),i$=t=>{const e=lo().duration(t),n=e.hours(),o=e.minutes(),r=`${n} ${c6(n,"hr")}`,a=`${o} min`;return n>=100?"100+ hrs":n>0&&o>0?[r,a].join(" "):n>0?r:a},c$=t=>{const{color:e,learningPathComplete:n,learningPathId:o,isSuccess:r,nextCourse:a,nextCourse:{dueAt:i,courseId:l="",lessonCount:u,lessonsCompleted:d=[],sourceType:m,timeToComplete:p}={}}
173=t,f=(0,mt.useLabelsMap)(),g=(0,h.useMemo)(()=>a$(d,a),[a,d]);on()(a.color)&&(a.color=e);const v=Mn()(s$,a),C=(0,h.useCallback)(()=>{m==="PACKAGE"?(top.sessionStorage.setItem("upNextCourseId",l),top.location.assign(`/learning-path/${o}`)):(0,Ps.kT)(`${l}/lessons/${g}`)},[l,o,g,m]);return r&&!n&&(0,s.jsx)("div",{className:"progress-summary__lp-next",children:(0,s.jsxs)("div",{className:"progress-summary__lp-next-inner",children:[(0,s.jsxs)("div",{className:"progress-summary__lp-next-label",children:[f?.progressSummaryNextUp||"Next up"," ",(0,s.jsx)(tt,{"aria-hidden":"true",classNameIcon:"progress-summary__lp-next-label-icon",name:"arrow-right"})]}),(0,s.jsx)("div",{className:"progress-summary__lp-next-card",children:(0,s.jsx)(e$,{imagesUri:t$,labelCount:`${u} ${c6(u,"lesson")}`,labelDue:i1(i),labelDuration:i$(p),noCertDownload:!0,noFavoriteBtn:!0,onClick:C,...v})})]})})},l$=Qt()("learningPathUpNext"),d$=(0,X.Ng)(l$)(c$),u$=`${(0,Ge._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,h$=st()(Cs(),Ls()(Qt()("isComplete")),nr()),m$=t=>{const{color:e,course:n={},courseProgress:o={},fetchLpUpNext:r,lessons:a=[],learningPathComplete:i,lpHasFailedQuiz:l}=t,{lessons:u={},percentComplete:d}=o,{dueAt:m,certificateDownload:p,completionCelebration:f,lessonsOnly:g=[],riseComLearningPathId:v,trackingCompletionPercentage:C,trackingQuizId:x}=n,y=hr(),b=(0,mt.useLabelsMap)(),E=on()(C)&&on()(x),L=E?d===100:(0,Je.As)(),T=g.length,I=h$(u);(0,h.useEffect)(()=>{v&&r()},[]);const S=(0,h.useMemo)(()=>L?n.completedAt?n.completedAt:new Date:null,[n.completedAt,L]),N=(0,h.useMemo)(()=>gs()(ou()(Mt()("type","quiz"),Mt()("id",x)),a),[x,a]),k=cs(N?.title),B=(0,h.useMemo)(()=>Rt()(100,["settings","passingScore"],N),[N]),M=Rt()(null,["lessons",x,"passed"],o),R=(0,h.useMemo)(()=>st()(oi()(Mt()("percentComplete",100),Qt()("score"),hs()(null)),Rt()({},["lessons",x]))(o),[o,x]),{outOfAttempts:H}=Se(o,N,x);let P=x?M:!0,j=jn();const O=oe()("progress-summary",{"progress-summary__no-req":E}),U=(0,is.c3)(n),W=`You've completed ${I} of ${T} lessons.`,re=U?L?"Complete":"Incomplete":W;return(0,s.jsx)(la,{title:Uc(y+" - Progress Summary"),children:(0,s.jsxs)("div",{className:O,children:[L&&f&&P&&!j&&(0,s.jsx)(KU,{}),(0,s.jsxs)("header",{className:"progress-summary__header",children:[(0,s.jsx)("h1",{className:"progress-summary__header-title",tabIndex:-1,children:L&&!E&&P?b?.progressSummaryCongratulations||"Congratulations!":b?.progressSummary||"Progress Summary"}),E?(0,s.jsx)("div",{className:"progress-summary__lessons-completed",children:re}):L?(0,s.jsxs)("div",{className:"progress-summary__header-completion-date",children:[P&&(0,s.jsx)("img",{alt:"trophy",className:"progress-summary__header-trophy",src:u$}),lo()(S).format("MMMM Do, YYYY")]}):(0,s.jsx)(zU,{dueAt:m})]}),(0,s.jsxs)("section",{className:"progress-summary__section",children:[!E&&L&&(0,s.jsx)("div",{className:"progress-summary__requirements-met",children:b?.progressSummaryRequirementsMet||"You've met all the requirements."}),E?!v&&(0,s.jsxs)(yn,{className:"progress-summary__start-over",to:"/",children:[b?.progressSummaryStartOver||"Start Over",(0,s.jsx)("i",{className:"progress-summary__start-over-icon icon icon-reload"})]}):(0,s.jsxs)("div",{className:"progress-summary__requirements",children:[(0,s.jsx)(FU,{labelA11yRequirementCompleted:b?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:b?.a11yProgressSummaryRequirementNotCompleted,labelCompletionRequirement:b?.progressSummaryCompletionRequirement,labelPercentCompletion:b?.progressSummaryPercentCompletion,labelYouCompleted:b?.progressSummaryYouCompleted,percentComplete:d,trackingCompletionPercentage:C}),(0,s.jsx)(VU,{labelA11yRequirementCompleted:b?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:b?.a11yProgressSummaryRequirementNotCompleted,labelNoAttemptsRemaining:b?.progressSummaryNoAttemptsRemaining,labelQuizRequirement:b?.progressSummaryQuizRequirement,labelScoreOf:b?.progressSummaryScoreOf,labelScoreOfPreposition:b?.progressSummaryScoreOfPreposition,labelViewQuiz:b?.progressSummaryViewQuiz,labelYouScored:b?.progressSummaryYouScored,outOfAttempts:H,quizPassed:M,quizPassingScore:B,quizScore:R,quizTitle:k,trackingQuizId:x})]}),(L||E)&&(0,s.jsxs)("div",{className:"progress-summary__completion-controls",children:[(0,s.jsx)("button",{className:"progress-summary__btn-back progress-summary__completion-control",onClick:Ps.NS,role:"link",type:"button",children:b?.progressSummaryBackToLearning||"Back to my learning"}),L&&(!v&&p||v&&i)&&p&&P&&!l&&(0,s.jsx)("span",{className:"progress-summary__completion-control",children:(0,s.jsx)(ys,{})})]})]}),L&&!!v&&(0,s.jsx)(d$,{color:e,learningPathId:v})]})})},p$=(t,{course:{riseComCourseId:e,riseComLearningPathId:n}})=>({fetchLpUpNext:st()(t,HU.R,hs()({courseId:e,learningPathId:n}))}),f$=st()(Mn()(["learningPathComplete","lpHasFailedQuiz"]),Qt()("learningPathUpNext")),v$=(0,X.Ng)(f$,p$)(m$),l6=({contentClassName:t,...e})=>(0,s.jsx)(gl,{type:Hu.type,children:(0,s.jsx)(Pi,{type:Hu.type,children:(0,s.jsx)(Bu,{children:(0,s.jsx)(wi,{className:t,type:Hu.type,children:(0,s.jsx)(v$,{...e})})})})}),Hu={id:"progress-summary",type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"},d6=At("Progress"),g$=t=>t===rt.IK.CONTINUE,C$=({hasPassed:t,nextLessonId:e,shouldSkipOnPass:n,skipToLessonId:o})=>e&&n&&o&&t?o:e,x$=({isContinueBtn:t,isPreviewMode:e})=>t&&!e,b$=({canShowContinue:t,isExport:e,isRiseCom:n,nextLesson:o})=>t&&n&&!o&&!e,y$=t=>(0,$s.Gv)(t)&&"id"in t&&"type"in t,L$=({item:t,question:e})=>
173{if(t.type===rt.UQ.DRAW_FROM_QUESTION_BANK){const n=String(e.id);return t.id===n.split("-")[0]}return t.id===e.id},E$=(t,e)=>!t||!e||t.length!==e.length?!1:t.some((n,o)=>e[n]?.id!==e[o]?.id),T$=(t,e,n)=>{if(!Array.isArray(t)||!Array.isArray(e)||!n)return!1;const o=t.map(i=>e[i]),r=e.findIndex(i=>i.id===n),a=o.findIndex(i=>i.id===n);return r===a},I$=({lesson:t,question:e})=>{const o=t?.items?.filter(y$)?.find(a=>L$({item:a,question:e}));if(o?.type!==rt.UQ.DRAW_FROM_QUESTION_BANK)return o;const r=String(e.id).split("-")[1];return o.questions.find(a=>a.id===r)},S$=q("quiz"),Fu=0,Mi=2,N$=t=>({start:t<Mi?0:t-Mi,end:t+Mi});function j$(t){return t+1}function k$(t){return t<Fu+Mi}function A$(t,e){const{start:n,end:o}=N$(e);return{items:t.slice(n,o),startOffset:n}}function km({activeIndex:t,index:e}){return S$("card",{active:e===t,done:e<t,next:e===t+1,penultimate:e===t+Mi,future:e>t+Mi})}var Ss=c(26481);function R$({settings:t}){const e=(0,X.wA)();return(0,h.useMemo)(()=>({onChoiceSelect:n=>{e((0,Ss.Yu)(n))},onFillInChange:n=>{e((0,Ss.Nj)(n))},onMatchSet:n=>{e((0,Ss.NC)(n))},onResponseToggle:n=>{e((0,Ss.mg)(n))},onSetIndex:n=>{e((0,Ss.QI)(n))},onSubmit:n=>{const{skipLessonsIfPassed:o,skipToLessonId:r}=t||{};return e((0,Ss.kK)({...n,passToContinue:n.passToContinue??!1,skipLessonsIfPassed:o??void 0,skipToLessonId:r??void 0}))}}),[e,t])}function u6(t){return t.type===rt.UQ.DRAW_FROM_QUESTION_BANK}function Am(t,e){return{...e,drawn:!0,id:`${t.id}-${e.id}`}}function P$(t,e){const n=e.map(o=>({question:t.questions[o],idx:o})).filter(o=>o.question!=null);return{items:n.map(({question:o})=>Am(t,o)),indices:n.map(({idx:o})=>o)}}function w$(t){const{questions:e}=t;if(AU())return{items:e.map(i=>Am(t,i)),indices:e.map((i,l)=>l)};const n=t.drawCount,o=[],r=[],a=[];for(let i=0;i<n;i++){const l=Cg({questions:e,drawnQuestionIds:o});if(!l)break;r.push(Am(t,l)),a.push(e.findIndex(u=>u.id===l.id)),o.push(String(l.id))}return{items:r,indices:a}}function M$({sourceItems:t,progress:e,lessonId:n}){const o=e?.questionsDrawn?e.questionList:void 0,r=t.filter(u6).map((d,m)=>{const p=o?.[m];return p?P$(d,p):w$(d)});let a=0;const i=t.flatMap(d=>u6(d)?r[a++].items:[d]),l=r.map(d=>d.indices),u=O$({items:i,progress:e,questionIndexList:l});return{concreteItems:i,drawPayload:{lessonId:n,lessonProgress:u}}}function O$({items:t,progress:e,questionIndexList:n}){const o=e?.items??{},r=e?.originalItemProgress,a=new Map(Object.values(o).map(l=>[l.index,l])),i=Object.fromEntries(t.map((l,u)=>{const d=r?.[u]??{},m=a.get(u);return[l.id,{...d,...m,id:l.id,index:u}]}));return{...e,questionsDrawn:!0,questionList:n,items:i}}function Rm(t,e){return!!e[t.id]?.isComplete}function D$({items:t,progress:e}){const n=e?.items??{};return[...t.filter(o=>Rm(o,n)),...Ou()(t.filter(o=>!Rm(o,n)))]}function B$(t){const e=t.answers??[],n=Ou()(e),o=n.map(r=>e.findIndex(a=>a.id===r.id));return Object.assign({},t,{answers:n,shuffledAnswerIndices:o})}function h6({items:t,settings:e,progress:n}){const o=e?.randomizeQuestionOrder?D$({items:t,progress:n}):t;if(!e?.shuffleAnswerChoices)return o;const r=n?.items??{};return o.map(a=>Rm(a,r)?a:B$(a))}function H$({lessonId:t,sourceItems:e,progress:n,settings:o}){const{concreteItems:r,drawPayload:a}=M$({sourceItems:e,progress:n,lessonId:t});return{resolvedItems:h6({items:r,settings:o??void 0,progress:a.lessonProgress}),drawPayload:a}}function Vse(t){return h6({items:t.items,settings:t.settings,progress:t.progress})}function zse({lessonIds:t,lessons:e}){return!Array.isArray(t)||!e?!1:t.some((n,o)=>{const r=e[n];return r?.type!=="quiz"||r.settings?.skipLessonsIfPassed!==!0?!1:t.slice(o+1).some(a=>{const i=e[a];return i&&i.type!=null&&i.type!=="section"})})}function F$(t,e){const n=Os(t),o=no(n)?n.settings:void 0,r=t?(0,Je.GJ)({id:t,passingScore:e?.passingScore??rt.hB}):void 0;return(0,h.useMemo)(()=>o&&{...o,passingScore:r??o?.passingScore??rt.hB},[o,r])}const Vu=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):void 0;function m6(){const[t,e]=(0,h.useState)(Vu?.matches??!1);return(0,h.useEffect)(()=>{if(!Vu)return;const n=o=>e(o.matches);
173return Vu.addEventListener("change",n),()=>Vu.removeEventListener("change",n)},[]),t}function V$({lessonId:t}){const e=(0,X.wA)(),n=Os(t),o=no(n)?n:void 0,r=Cr(t),a=(0,h.useMemo)(()=>o?.items??[],[o?.items]),i=F$(t,r),[{resolvedItems:l,drawPayload:u}]=(0,h.useState)(()=>H$({lessonId:t,progress:r,settings:i,sourceItems:a}));(0,h.useEffect)(()=>{e((0,Ss.x6)({...u,lessonId:t}))},[]);const d=r?.activeIndex??0,m=m6();return z$({activeIndex:d,isReduceMotion:m,progress:r,resolvedItems:l,settings:i,sourceItems:a}),{activeIndex:d,progress:r,resolvedItems:l,retryAttempts:r?.retryAttempts??0,settings:i,sourceItems:a}}function z$({activeIndex:t,isReduceMotion:e,progress:n,resolvedItems:o,settings:r,sourceItems:a}){const i=(0,h.useRef)(t);(0,h.useEffect)(()=>{},[t])}const U$=t=>t.length===3,$$=t=>{const e=t.findIndex(n=>n==="answers");return e===-1?null:t[e+1]?.id},W$=t=>{const e=t.findIndex(n=>n==="questions");return e===-1?null:t[e+1]?.id},_$=t=>{const e=t.at(-1);return typeof e=="string"&&e.startsWith("feedback")},G$=({items:t,itemId:e,questionBankQuestionId:n})=>{const o=t.find(({id:r})=>r===e);return o?"questions"in o?n?o.questions.find(({id:r})=>r===n):null:o:null},K$=(t,e,n)=>{const o=n==="feedbackCorrect";return t?[t]:n==="feedback"?e.answers.slice(0,1):n==="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)},Q$=({lessonId:t,items:e})=>{const n=(0,X.wA)(),o=(0,h.useCallback)(({lessonId:a,progressId:i,question:l,answer:u},d=!0)=>{switch(l.type){case"MULTIPLE_CHOICE":n((0,Ss.Yu)({lessonId:a,itemId:i,selectedIndex:l.answers.indexOf(u)}));break;case"MULTIPLE_RESPONSE":n((0,Ss.mg)({lessonId:a,itemId:i,selectedIndex:l.answers.indexOf(u)}));break;case"FILL_IN_THE_BLANK":n((0,Ss.Nj)({lessonId:a,itemId:i,text:typeof u.title=="string"?u.title:""}));break;case"MATCHING":n((0,Ss.NC)({lessonId:a,itemId:i,matches:d?Object.fromEntries(l.answers.map(m=>[m.id,m.id])):{}}));break}},[n]),r=(0,h.useCallback)(({detail:a})=>{const{lessonId:i,path:l}=a,u=String(a.itemId);if(i!==t)return;if(U$(l)){n((0,Ss.FU)(t));return}const d=W$(l),m=G$({items:e,itemId:u,questionBankQuestionId:d});if(!m)return;const p=d?`${u}-${d}`:u;if(n((0,Ss.QI)({lessonId:t,progressId:p})),_$(l)){const f=$$(l),g=f?m.answers.find(({id:y})=>y===f)??null:null,v=l.at(-1),C=v==="feedbackCorrect",x=K$(g,m,v);m.type==="MULTIPLE_RESPONSE"&&n((0,Ss.RW)({lessonId:t,itemId:p})),x.forEach(y=>{o({lessonId:t,question:m,progressId:p,answer:y},C)}),n((0,Ss.kK)({finalRetryAttempt:!1,lessonId:t,isCorrect:C,itemId:p,passToContinue:!0}))}},[n,t,e,o]);(0,h.useEffect)(()=>(window.addEventListener(Zt,r),()=>{window.removeEventListener(Zt,r)}),[r])},Z$=q("quiz-item");function Y$({activeIndex:t,children:e,index:n,isActive:o,isComplete:r,isCorrect:a,isTimedQuiz:i,settings:l}){const u=l?.correctAnswerColor??void 0,d=l?.incorrectAnswerColor??void 0,f={"--color-feedback-icon":a?u:d,"--color-matching-feedback-bubble-bg":d,"--color-multiple-choice-complete-border":d,"--color-multiple-choice-correct-border":u,"--color-multiple-response-correct-border":u,"--color-multiple-response-incorrect-border":d,"--color-multiple-response-option-check":r?u:void 0,"--color-quiz-option-check":u,"--color-x-fill":d};return(0,s.jsx)("div",{className:km({activeIndex:t,index:n}),"data-testid":"quiz-item-card",inert:o?void 0:!0,children:(0,s.jsx)("div",{className:Z$("content"),children:(0,s.jsx)(B3,{isActive:o,isComplete:r,isTimedQuiz:!!i,style:f,children:(0,s.jsx)("div",{hidden:!o&&!r,children:e})})})})}const X$=q("quiz-card");function J$({blockId:t,enableVideoPlaybackSpeed:e,index:n,isActive:o,item:r,labels:a,media:i}){const l=(0,et.gY)();if(!i)return null;const u=l(i),{audio:d,image:m,video:p,embed:f}=u??{},g={allowTabNavigation:o,blockId:t,enableVideoPlaybackSpeed:e,item:r,labels:a};return d&&m?(0,s.jsx)("div",{className:`${X$("media",{"image-with-audio":!0})}`,children:(0,s.jsx)(kr,{...g,index:String(n),isOverlayAudio:!0,media:i})}):d&&(p||f)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(kr,{...g,index:`${n}-audio`,media:{audio:d}}),(0,s.jsx)(kr,{...g,index:String(n),media:p?{video:p}:{embed:f},shouldPause:!o})]}):(0,s.jsx)(kr,{...g,index:String(n),media:i,shouldPause:!o})}function p6(t,e){if(t===void 0||!e)return;if(Array.isArray(t))return t.map(o=>e.indexOf(o)).filter(o=>o!==-1);const n=e.indexOf(t);return n===-1?void 0:n}const{FILL_IN_THE_BLANK:q$,MATCHING:eW,MULTIPLE_CHOICE:tW,MULTIPLE_RESPONSE:sW}=rt.UQ;function nW({color:t,columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,errorMessageId:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:l,isComplete:u,isCorrect:d,isReduceMotion:m,isRetaking:p,isShuffled:f,item:g,itemProgress:v,labels:C,onChoiceSelect:x,onFillInChange:y,onMatchSet:b,onResponseToggle:E,onSubmit:L,prefersKeyboardNavigation:T,questionHtmlId:I,quizAcceptableResponses:S,quizAnswerPlaceholder:N,revealAnswers:k}){const{answers:B,type:M}
173=g,R=l&&!u,H=B??[],P=("correct"in g?g.correct:void 0)??"",j=("corrects"in g?g.corrects:void 0)??[],O=v?.text??"",U=v?.matches??{},W=(0,h.useCallback)(({title:re})=>(0,s.jsx)(yt,{allowTabNavigation:l,className:"quiz-multiple-choice-option__label",value:re}),[l]),z=(0,h.useCallback)(({title:re})=>(0,s.jsx)(yt,{allowTabNavigation:l,tagName:"span",value:re}),[l]);switch(M){case q$:return(0,s.jsx)(U3,{allowTabNavigation:l,correctAnswerColor:n,correctAnswerColorContrast:o,errorMessageId:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isComplete:u,isCorrect:d,labels:C,onChange:y,onEnterToSubmit:L,options:H,questionHtmlId:I,quizAcceptableResponses:S,quizAnswerPlaceholder:N,revealAnswers:k,value:O});case eW:return(0,s.jsx)(K3,{answers:H,columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:l,isComplete:u,matches:U,onChange:b,prefersKeyboardNavigation:T,revealAnswers:k});case sW:{const re=v?.selectedIndices,fe=v?.shuffledAnswerIndices??[],Ee=f?p6(re,fe):re;return(0,s.jsx)(Y3,{allowTabNavigation:l,correctIds:j,errorMessageId:r,isComplete:u,isCorrect:d,isRetaking:p,labels:C,onChange:E,onEnterToSubmit:L,options:H,questionHtmlId:I,renderOptionText:z,revealAnswers:k,selectedIndices:Ee??[]})}case tW:default:{const re=v?.selectedIndex,fe=v?.shuffledAnswerIndices??[],Ee=f?p6(re,fe):re;return(0,s.jsx)(Z3,{allowTabNavigation:R,color:t,correctId:P,errorMessageId:r,isComplete:u,isCorrect:d,isReduceMotion:m,isRetaking:p,labels:C,onChange:x,onEnterToSubmit:L,options:H,questionHtmlId:I,renderOptionText:W,revealAnswers:k,selectedIndex:Ee??-1})}}}const Ea=q("quiz-card");function oW({color:t,enableVideoPlaybackSpeed:e,hasStart:n,index:o,interaction:r,isQuestionBankQuiz:a,isReduceMotion:i,isShuffled:l,item:u,items:d,labels:m,onTakeAgain:p,prefersKeyboardNavigation:f,progress:g,settings:v,showNextButton:C}){const{canProceed:x,canSubmit:y,errorIncomplete:b,feedbackRef:E,errorMessageId:L,feedbackValue:T,handleChoiceSelect:I,handleFillInChange:S,handleMatchSet:N,handleNextFeedbackClick:k,handleResponseToggle:B,handleSubmit:M,handleTakeAgain:R,isActive:H,isComplete:P,isCorrect:j,isRetaking:O,itemProgress:U,quizItemHtmlId:W,selection:z,wrapperRef:re}=r,fe=n?o+1:o,Ee=v?.revealAnswers===!0?rt.iV.ALL:v?.revealAnswers??rt.iV.NONE,Oe=`q-${u.id}`,Ue=u.settings,we=v?.correctAnswerColor??void 0,Be=v?.correctAnswerColorContrast??void 0,de=v?.incorrectAnswerColor??void 0,se=v?.incorrectAnswerColorContrast??void 0,Ne=m?.quizQuestion??"",Me=m?.quizAcceptableResponses??"",$e=m?.quizAnswerPlaceholder??"",Ae=m?.quizCorrect??"",at=m?.quizIncorrect??"",qe=m?.quizSubmit??"",lt=g?.percentComplete===100&&a?m?.quizRestart??"":m?.quizNext??"";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(HB,{isActive:H,labels:m,questionLabel:Ne,questionNumber:o+1,totalQuestions:d.length}),(0,s.jsx)(VB,{allowTabNavigation:H,htmlId:Oe,value:u.title}),(0,s.jsx)(J$,{blockId:u.id,enableVideoPlaybackSpeed:e,index:fe,isActive:H,item:u,labels:m,media:u.media}),(0,s.jsx)(z3,{type:u.type,children:(0,s.jsx)("div",{ref:re,children:(0,s.jsx)(nW,{canSubmit:y,color:t,columnBehavior:Ue?.columnBehavior,correctAnswerColor:we,correctAnswerColorContrast:Be,errorMessageId:L,incorrectAnswerColor:de,incorrectAnswerColorContrast:se,isActive:H,isComplete:P,isCorrect:j,isReduceMotion:i,isRetaking:O,isShuffled:l,item:u,itemProgress:U,labels:m,onChoiceSelect:I,onFillInChange:S,onMatchSet:N,onResponseToggle:B,onSubmit:M,prefersKeyboardNavigation:f,questionHtmlId:Oe,quizAcceptableResponses:Me,quizAnswerPlaceholder:$e,revealAnswers:Ee})})}),(0,s.jsx)("div",{"aria-live":"assertive",children:b&&(0,s.jsxs)("div",{className:`${Ea("validations")}`,"data-testid":"quiz-validation-error",children:[(0,s.jsx)(tt,{className:`${Ea("validation-icon")}`,"data-testid":"quiz-validation-icon",name:"alert-circle"}),(0,s.jsx)("span",{id:`${W}-error-incomplete-message`,children:m?.quizRequireAnswer})]})}),(0,s.jsx)(V3,{canProceed:x,feedbackRef:E,feedbackValue:T,isActive:H,isComplete:P,isCorrect:j,item:u,labels:m,quizCorrect:Ae,quizIncorrect:at,revealAnswers:Ee,selection:z}),(0,s.jsx)(D3,{allowNext:!p,canProceed:x,canSubmit:y,isReduceMotion:i,onNext:C?k:void 0,onSubmit:M,quizNext:lt,quizSubmit:qe}),p&&(0,s.jsx)("div",{className:`${Ea("retake-container",{active:P})}`,children:(0,s.jsx)("button",{className:`${Ea("retake",{active:P})}`,onClick:R,type:"button",children:(0,s.jsxs)("div",{className:`${Ea("retake-content")}`,children:[(0,s.jsx)("div",{className:`${Ea("retake-text")}`,children:"TAKE AGAIN"}),(0,s.jsx)("i",{className:`${Ea("retake-icon")} icon icon-reload`})]})})})]})}const{FILL_IN_THE_BLANK:f6,MATCHING:v6,MULTIPLE_CHOICE:g6,MULTIPLE_RESPONSE:C6}=rt.UQ;function rW(t,e){return t?.items?.[e]??{}}function aW(t,e,n,o,r){switch(t.type){case f6:return tg({answers:t.answers??[],text:e.text,caseSensitive:t.settings?.isCaseSensitive??!1,getL10nValue:r});case v6:return sg(e.matches??{});case C6:return rg({isShuffled:n,item:t,selectedIndices:e.selectedIndices,shuffledAnswerIndices:e.shuffledAnswerIndices});case g6:default:return ng({isCorrectAnswerUnshuffled:o,isShuffled:n,item:t,selectedIndex:e.selectedIndex,shuffledAnswerIndices:e.shuffledAnswerIndices})}}function iW(t,e){switch(t.type){case f6:return e.text;case v6:return e.matches;case C6:return e.selectedIndices;case g6:default:return e.selectedIndex}}const{FILL_IN_THE_BLANK:cW,MATCHING:lW,MULTIPLE_CHOICE:dW,MULTIPLE_RESPONSE:uW}=rt.UQ;function hW({hasStart:t=!1,id:e,index:n,isCorrectAnswerUnshuffled:o=!1,isShuffled:r=!1,item:a,onChoiceSelect:i,onFillInChange:l,onMatchSet:u,onResponseToggle:d,onTakeAgain:m,progress:p,reportAnswer:f,retryAttempts:g=0,setNextIndex:v,settings:C,submitAction:x,title:y}){const b=(0,et.gY)(),E=(0,et.NB)(),[L,T]=(0,h.useState)(!1),[I,S]=(0,h.useState)(Date.now),[N,k]=(0,h.useState)(!1),B=(0,h.useRef)(null),M=(0,h.useRef)(null),R=(0,h.useId)(),H=(0,h.useRef)({canSubmit:!1,isCorrect:!1,item:a,itemId:String(a.id),itemProgress:{},retryAttempts:g,revealAnswers:rt.iV.NONE,settings:C,startTime:I,title:y}),P=t?n+1:n,j=p?.activeIndex??0,O=P===j,U=rW(p,a.id),W=U?.isComplete??!1,z=aW(a,U,r,o,b),re=C?.revealAnswers===!0?rt.iV.ALL:C?.revealAnswers??rt.iV.NONE,fe=re===rt.iV.ALL||re===rt.iV.INCORRECT,Ee=O&&W&&fe,Oe=O&&!W&&q3({answersLength:a.answers?.length??0,matches:U?.matches,selectedIndex:U?.selectedIndex,selectedIndices:U?.selectedIndices,text:U?.text,type:a.type});H.current={canSubmit:Oe,isCorrect:z,item:a,itemId:String(a.id),itemProgress:U,retryAttempts:g,revealAnswers:re,settings:C,startTime:I,title:y};const Ue=U?.selectedIndex,we=ag({answers:a.answers,feedback:"feedback"in a?a.feedback:void 0,feedbackCorrect:"feedbackCorrect"in a?a.feedbackCorrect:void 0,feedbackIncorrect:"feedbackIncorrect"in a?a.feedbackIncorrect:void 0,feedbackType:"feedbackType"in a?a.feedbackType:void 0,isCorrect:z,isShuffled:r,selectedIndex:Ue,shuffledAnswerIndices:a.shuffledAnswerIndices}),Be=iW(a,U),de=L?`${R}-error-incomplete-message`:void 0,se=(0,h.useCallback)(()=>{T(!1)},[]),Ne=String(a.id),Me=(0,h.useCallback)(({selectedIndex:os})=>{se(),i?.({lessonId:e,itemId:Ne,selectedIndex:os,shuffledAnswerIndices:a.shuffledAnswerIndices})},[e,Ne,a.shuffledAnswerIndices,i,se]),$e=(0,h.useCallback)(os=>{se(),l?.({lessonId:e,itemId:Ne,text:os})},[e,Ne,l,se]),Ae=(0,h.useCallback)(os=>{se(),u?.({lessonId:e,itemId:Ne,matches:os})},[e,Ne,u,se]),at=(0,h.useCallback)(({optionIndex:os})=>{se(),d?.({lessonId:e,itemId:Ne,selectedIndex:os,shuffledAnswerIndices:a.shuffledAnswerIndices})},[e,Ne,a.shuffledAnswerIndices,d,se]),qe=(0,h.useCallback)((os=()=>{},cn)=>{cn&&os(cn),v?.({lessonId:e})},[e,v]),lt=(0,h.useCallback)((os,cn)=>{ct.pause(),qe(os??(()=>{}),cn)},[qe]),It=(0,h.useCallback)(()=>{O&&lt()},[O,lt]),Dt=(0,h.useCallback)(os=>{os.preventDefault();const{canSubmit:cn,isCorrect:Rn,item:Xn,itemId:ir,itemProgress:xo,retryAttempts:cr,revealAnswers:$o,settings:Pn,startTime:lr,title:Vi}=H.current;if(!cn){switch(T(!0),Xn.type){case cW:case uW:case dW:M.current?.querySelector("input")?.focus();break;case lW:M.current?.querySelector("button")?.focus();break;default:break}return}const Sa={startTime:lr,stopTime:Date.now()},{passToContinue:Wt}=Pn??{},Vs=Pn?.retryCount??-1,bo=parseInt(String(Vs),10),zi=parseInt(String(cr),10),Tl=bo===zi,Ui=E({duration:Sa,id:e,isCorrect:Rn,item:Xn,itemProgress:xo,retryAttempts:cr,title:Vi});f?.(Ui);const Rs={finalRetryAttempt:Tl,lessonId:e,isCorrect:Rn,itemId:ir,passToContinue:Wt,revealAnswers:$o};if($o===rt.iV.ALL||$o===rt.iV.INCORRECT){x?.(Rs);return}lt(x,Rs)},[E,lt,e,f,x]),ns=(0,h.useCallback)(()=>{k(!0),setTimeout(()=>{m?.(),k(!1)},50)},[m]),gn=(0,ke.A)(O)??!1,As=(0,ke.A)(W)??!1;return(0,h.useEffect)(()=>{!gn&&O&&S(Date.now())},[O,gn]),{activeIndex:j,canProceed:Ee,canSubmit:Oe,feedbackRef:B,errorIncomplete:L,errorMessageId:de,feedbackValue:we,handleChoiceSelect:Me,handleFillInChange:$e,handleMatchSet:Ae,handleNextFeedbackClick:It,handleResponseToggle:at,handleSubmit:Dt,handleTakeAgain:ns,isActive:O,isComplete:W,isCorrect:z,isRetaking:N,itemProgress:U,prevIsActive:gn,prevIsComplete:As,quizItemHtmlId:R,selection:Be,wrapperRef:M}}const mW=3;function pW({feedbackRef:t,isActive:e,isComplete:n,isReduceMotion:o,prevIsActive:r,prevIsComplete:a,quizTop:i,revealAnswers:l,scrollId:u}){const d=(0,h.useRef)(void 0);(0,h.useEffect)(()=>()=>{clearTimeout(d.current)},[]),(0,h.useEffect)(()=>
173{if(!r&&e){const m=i??mW,p=o?"instant":"smooth";document.getElementById(u??"page-wrap")?.scrollTo({top:m,behavior:p})}},[e,r,o,i,u]),(0,h.useEffect)(()=>{if(!(!e||l===rt.iV.NONE||o))return!a&&n&&(clearTimeout(d.current),d.current=setTimeout(()=>{const m=t.current;if(!m)return;const p=m.offsetHeight+m.offsetTop,f=o?"instant":"smooth";document.getElementById(u??"page-wrap")?.scrollTo({top:p,behavior:f})},750)),()=>{clearTimeout(d.current)}},[t,e,n,o,a,l,u])}const fW=q("quiz-item");function vW({color:t,enableVideoPlaybackSpeed:e,hasStart:n=!1,id:o,index:r,isCard:a=!1,isCorrectAnswerUnshuffled:i,isQuestionBankQuiz:l=!1,isShuffled:u=!1,isTimedQuiz:d,item:m,items:p,labels:f={},onChoiceSelect:g,onFillInChange:v,onMatchSet:C,onResponseToggle:x,onTakeAgain:y,prefersKeyboardNavigation:b,progress:E,quizTop:L,reportAnswer:T,retryAttempts:I=0,scrollId:S,setNextIndex:N,settings:k={revealAnswers:rt.iV.ALL},showNextButton:B=!0,submitAction:M,title:R}){const H=m6(),P=hW({hasStart:n,id:o,index:r,isCorrectAnswerUnshuffled:i,isShuffled:u,item:m,onChoiceSelect:g,onFillInChange:v,onMatchSet:C,onResponseToggle:x,onTakeAgain:y,progress:E,reportAnswer:T,retryAttempts:I,setNextIndex:N,settings:k,submitAction:M,title:R}),{activeIndex:j,feedbackRef:O,isActive:U,isComplete:W,isCorrect:z,prevIsActive:re,prevIsComplete:fe}=P,Ee=k?.revealAnswers===!0?rt.iV.ALL:k?.revealAnswers??rt.iV.NONE;pW({feedbackRef:O,isActive:U,isComplete:W,isReduceMotion:H,prevIsComplete:fe,prevIsActive:re,quizTop:L,revealAnswers:Ee,scrollId:S});const Oe=(0,s.jsx)(oW,{color:t,enableVideoPlaybackSpeed:e,hasStart:n,index:r,interaction:P,isQuestionBankQuiz:l,isReduceMotion:H,isShuffled:u,item:m,items:p,labels:f,onTakeAgain:y,prefersKeyboardNavigation:b,progress:E,settings:k,showNextButton:B});return a?(0,s.jsx)(Y$,{activeIndex:j,index:n?r+1:r,isActive:U,isComplete:W,isCorrect:z,isTimedQuiz:d,settings:k,children:Oe}):(0,s.jsx)("div",{className:fW("wrap"),children:Oe})}const ss=q("odometer"),x6=1e3,b6=2e3,gW=4e3,CW=750,zu=200,Pm=170,Qn=zu/2,Zn=Pm/2,Cl=70,y6=1.5,xW=2.5,bW=225,yW=135,L6=270,wm=7,Oi={start:{dx:-19,dy:8},mid:{dx:-5,dy:22},end:{dx:26,dy:-7}},Mr={size:12,topOffset:-3,bottomOffset:21};function LW(t){return t<.5?16*t**5:1+16*(t-1)**5}function EW(t){return t<.5?2*t**2:1-(-2*t+2)**2/2}function Uu({angle:t,centerX:e,centerY:n,radius:o}){const r=(t-90)*Math.PI/180;return{x:e+o*Math.cos(r),y:n+o*Math.sin(r)}}function Mm({centerX:t,centerY:e,counterClockwise:n=!1,endAngle:o,radius:r,startAngle:a}){const i=Uu({angle:a,centerX:t,centerY:e,radius:r}),l=Uu({centerX:t,centerY:e,radius:r,angle:o}),d=Math.abs(o-a)>180?"1":"0",m=n?"0":"1";return`M ${i.x} ${i.y} A ${r} ${r} 0 ${d} ${m} ${l.x} ${l.y}`}function E6(t,e,n){return e+n*L6*t/100}function TW({hasPassed:t,isResultsVisible:e,isRTL:n,onAnimationDone:o,passingLabel:r,passingScore:a,score:i=0,scoreLabel:l,shouldAnimate:u}){const[d,m]=(0,h.useState)(0),[p,f]=(0,h.useState)(0),[g,v]=(0,h.useState)(!1),x=`hatch-pattern${(0,h.useId)()}`,y=(0,h.useRef)(null),b=(0,h.useRef)(!1),E=(0,h.useRef)([]),L=(0,h.useCallback)(()=>{E.current.forEach(clearTimeout),E.current=[]},[]),T=(0,h.useCallback)(()=>{y.current!==null&&(cancelAnimationFrame(y.current),y.current=null),L()},[L]);(0,h.useEffect)(()=>{e||(T(),b.current=!1,m(0),f(0),v(!1))},[e,T]),(0,h.useEffect)(()=>{if(!e||!u||b.current)return;b.current=!0;const Oe=i,Ue=setTimeout(()=>{let we=null;const Be=de=>{we===null&&(we=de);const se=de-we,Ne=Math.min(se/b6,1),Me=LW(Ne),$e=EW(Ne);if(f(Me),m(Math.round($e*Oe)),Ne<1)y.current=requestAnimationFrame(Be);else{f(1),m(Oe);const Ae=setTimeout(()=>{v(!0);const at=setTimeout(()=>{o?.()},CW);E.current.push(at)},gW-x6-b6);E.current.push(Ae)}};y.current=requestAnimationFrame(Be)},x6);E.current.push(Ue)},[e,u,i,o]),(0,h.useEffect)(()=>()=>{T()},[T]);const I=n?yW:bW,S=n?-1:1,N=E6(a,I,S),k=E6(p*i,I,S),B=I+S*L6,M=Uu({centerX:Qn,centerY:Zn,radius:Cl,angle:k}),R=Uu({centerX:Qn,centerY:Zn,radius:Cl,angle:N}),H=p*i>=a,P=n?`%${a}`:`${a}%`,j=n?`%${d}`:`${d}%`,O=`${l} ${n?`%${i}`:`${i}%`}`,U=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:ss("pass-mark-label"),children:r}),(0,s.jsx)("div",{className:ss("pass-mark-percent"),children:P})]}),W=Mm({centerX:Qn,centerY:Zn,counterClockwise:n,radius:Cl,startAngle:I,endAngle:B}),z=Mm({centerX:Qn,centerY:Zn,counterClockwise:n,radius:Cl+3,startAngle:N,endAngle:B}),re=p>0?Mm({centerX:Qn,centerY:Zn,counterClockwise:n,radius:Cl,startAngle:I,endAngle:k}):"",fe={x:R.x+(n?-13:13),y:R.y-13},Ee={x:fe.x+(n?-13:13),y:fe.y};return(0,s.jsxs)("div",{className:ss(),children:[(0,s.jsxs)("svg",{"aria-hidden":"true",className:ss("svg"),viewBox:`0 0 ${zu} ${Pm}`,children:[(0,s.jsx)("defs",{children:(0,s.jsx)("pattern",{height:"1.5",id:x,patternTransform:"rotate(45)",patternUnits:"userSpaceOnUse",width:"1.5",children:(0,s.jsx)("line",{className:ss("hatch-line"),x1:"0",x2:"0",y1:"0",y2:"1.5"})})}),(0,s.jsx)("path",{className:ss("passing-zone"),d:z,fill:"none",stroke:`url(#${x})`,strokeWidth:"6"}),(0,s.jsxs)("g",{className:ss("pass-mark-lines"),children:[(0,s.jsx)("line",{className:ss("pass-mark-line"),x1:R.x,x2:fe.x,y1:R.y,y2:fe.y}),(0,s.jsx)("line",{className:ss("pass-mark-line"),x1:fe.x,x2:Ee.x,y1:fe.y,y2:Ee.y})]}),(0,s.jsx)("path",{className:ss("track"),d:W,fill:"none",strokeWidth:y6}),re&&(0,s.jsx)("path",{className:ss("progress",{passing:H}),d:re,fill:"none",strokeWidth:y6}),p>0&&(0,s.jsx)("circle",{className:ss("dot",{passing:H}),cx:M.x,cy:M.y,r:xW}),g&&(0,s.jsx)("g",{className:ss("result-icon"),children:t?(0,s.jsx)("path",{className:ss("checkmark"),d:`M ${Qn+Oi.start.dx} ${Zn+Oi.start.dy} L ${Qn+Oi.mid.dx} ${Zn+Oi.mid.dy} L ${Qn+Oi.end.dx} ${Zn+Oi.end.dy}`,fill:"none",strokeLinecap:"square",strokeLinejoin:"miter",strokeWidth:wm}):(0,s.jsxs)("g",{className:ss("x-mark"),children:[(0,s.jsx)("path",{className:ss("x-line",{first:!0}),d:`M ${Qn-Mr.size} ${Zn+Mr.topOffset} L ${Qn+Mr.size} ${Zn+Mr.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:wm}),(0,s.jsx)("path",{className:ss("x-line",{second:!0}),d:`M ${Qn+Mr.size} ${Zn+Mr.topOffset} L ${Qn-Mr.size} ${Zn+Mr.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:wm})]})})]}),(0,s.jsxs)("div",{className:ss("score",{pass:g&&t,fail:g&&!t}),children:[(0,s.jsx)("div",{className:ss("score-label"),children:l}),(0,s.jsx)("div",{className:ss("pass-label"),children:O}),(0,s.jsx)("div",{className:ss("fail-label"),children:O}),(0,s.jsx)("div",{className:ss("score-percent",{hidden:g}),children:j})]}),(0,s.jsx)("div",{className:ss("pass-mark"),style:{"--pass-mark-x":`${(n?zu-Ee.x:Ee.x)/zu*100}%`,"--pass-mark-y":`${(Ee.y+3)/Pm*100}%`},children:U}),(0,s.jsx)("div",{className:ss("pass-mark-mobile"),children:U})]})}var IW;const SW=t=>t===ot.Yq.PREVIEW,Use=t=>t!==IW.HIDDEN,T6=(0,h.createContext)({handleExpiredQuiz:mn.lQ,hideTimer:mn.lQ,quizTime:0,resetQuizTimer:mn.lQ,timerDuration:0,timerHidden:!1,timerRunning:!1});function NW({children:t,handleExpiredQuiz:e=()=>{}
173,isTimedQuiz:n,courseProgress:o,setQuizLessonTimeRemaining:r=()=>{},timerDuration:a=10}){const i=(0,h.useRef)(void 0),[l,u]=(0,h.useState)(),[d,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(!1),[g,v]=(0,h.useState)(),C=(0,h.useMemo)(()=>Number(a),[a]),{activeIndex:x,endIndex:y,lessonId:b,lessonProgress:E,startIndex:L}=(0,h.useMemo)(()=>{const O=o?.currentLesson,U=o?.lessons?.[O],W=U?.activeIndex||0,z=Object.keys(U?.items||{}).length+1;return{activeIndex:W,lessonId:O,endIndex:z,lessonProgress:U,startIndex:0}},[o]),T=(0,ke.A)(b),I=(0,ke.A)(x),S=(0,h.useCallback)(()=>{u(C*60)},[C]),N=(0,h.useCallback)(()=>{u(O=>O-1)},[u]),k=(0,h.useCallback)(()=>{m(!0),i.current||(i.current=setInterval(N,1e3))},[N,m]),B=(0,h.useCallback)(O=>{f(O!==void 0?O:!p)},[p]),M=(0,h.useCallback)(()=>{m(!1),i.current&&(i.current=clearInterval(i.current))},[m]),R=(0,h.useCallback)(()=>{l&&g!==void 0&&r({lessonId:g,timeRemaining:l})},[g,l,r]),H=(0,h.useCallback)(()=>{R(),u(void 0)},[u,R]),P=(0,h.useCallback)(()=>u(E.timeRemaining||C*60),[E,C,u]);(0,h.useEffect)(()=>{if(!n)return;const O=T!==b,U=O&&l,W=O&&n;n&&!O&&g!==b&&v(b),U&&H(),W&&P()},[n,g,b,T,l,P,H]),(0,h.useEffect)(()=>{if(n)switch(x){case L:M();break;case y:S(),M();break;default:k(),I!==x&&T===b&&R()}},[x,y,n,b,I,T,S,L,k,M,R]),(0,h.useEffect)(()=>{n&&l<1&&M()},[n,l,M]);const j=(0,h.useMemo)(()=>({handleExpiredQuiz:e,hideTimer:B,quizTime:l,resetQuizTimer:S,timerDuration:C,timerHidden:p,timerRunning:d}),[e,B,l,S,C,p,d]);return(0,s.jsx)(T6.Provider,{value:j,children:t})}const I6=()=>(0,h.useContext)(T6),jW=t=>t.isTimedQuiz?(0,s.jsx)(NW,{...t,children:t.children}):(0,s.jsx)(s.Fragment,{children:t.children}),kW={currentLesson:void 0,isRestricted:!1,isRestrictedCourse:!1,restrictingQuiz:{}};function AW(t){const e=gt(),n=za(),o=Os(t??""),r=(0,h.useMemo)(()=>{if(!e||!n||!o)return kW;const u=_r({course:e,courseProgress:n});return oc({course:e,courseProgress:n,lesson:o,restrictingQuiz:u})},[e,n,o]),{restrictingQuiz:a}=r,i="title"in a?a.title:void 0,l=cs(i);return(0,h.useMemo)(()=>i?{...r,restrictingQuiz:{...a,title:l}}:r,[r,a,i,l])}const RW=q("quiz-results");function PW({isFooterVisible:t,isResultsVisible:e,onTryAgainFocus:n}){const o=(0,X.wA)(),{mode:r}=(0,ce.g)(),a=SW(r),i=$n(),l=Cr(i),{passed:u=!1,retryAttempts:d=0}=l??{},{continueType:m,retryCount:p,skipLessonsIfPassed:f,skipToLessonId:g}=W5(i),{resetQuizTimer:v}=I6(),C=g$(m),x=(0,mt.useLabelsMap)(),y=$5(i),b=AW(y),{isRestricted:E}=b,{courseFinish:L,quizContinue:T,quizTakeAgain:I}=x??{},S=C$({hasPassed:u,nextLessonId:y,shouldSkipOnPass:f,skipToLessonId:g}),N=x$({isContinueBtn:C,isPreviewMode:a}),k=b$({canShowContinue:N,isExport:(0,Je.Hm)(),isRiseCom:Ge.BI,nextLesson:S}),B=(0,h.useCallback)(()=>{v(),o((0,Ss.FU)(i))},[o,v,i]);return(0,s.jsxs)("div",{className:RW("footer",{active:e,hidden:!t}),"data-testid":"quiz-results-footer",children:[(p===-1||d<p)&&(0,s.jsx)(Bg,{allowTabNavigation:e,onClick:B,onFocus:n,text:I}),N&&E&&S&&x&&(0,s.jsx)(P3,{bgType:"transparent",text:rc({labels:x,restrictions:b})}),N&&!E&&S&&(0,s.jsx)(om,{href:(0,jt.p1)(S),text:T}),k&&(0,s.jsx)(om,{href:jt.X1,text:L})]})}const Di=q("quiz-results");function wW({questionCount:t}){const e=$n()??"",n=Cr(e),{activeIndex:o=0,passed:r=!1,passingScore:a=rt.hB,reportResults:i=!1,score:l=0}=n??{},u=(0,mt.useLabelsMap)(),d=(0,xe.Wz)(),[m,p]=(0,h.useState)(!1),f=t+1===o,g=(0,h.useRef)(f),v=(0,h.useRef)(void 0),C=(0,h.useRef)(null),x=(0,h.useId)(),{a11yQuizFailed:y="",a11yQuizPassed:b="",quizPassing:E="",quizResults:L="",quizScore:T=""}=u??{},I=`quiz-results-desc-${x}`,S=(0,h.useCallback)(()=>{v.current=setTimeout(()=>{p(!0),window.dispatchEvent(new CustomEvent(Dd))},rt.R8)},[]),N=(0,h.useCallback)(()=>{clearTimeout(v.current),v.current=void 0,p(!0)},[]);return(0,h.useEffect)(()=>()=>{clearTimeout(v.current)},[]),(0,h.useEffect)(()=>{f!==g.current&&(f?C.current?.focus():p(!1),g.current=f)},[f]),(0,s.jsx)("div",{className:Di(),children:(0,s.jsx)("div",{className:Di("container"),children:(0,s.jsxs)("div",{className:Di("content",{active:f}),"data-testid":"quiz-results",children:[(0,s.jsxs)("div",{className:Di("header"),children:[(0,s.jsx)("h1",{"aria-describedby":I,className:Di("label").mix("noOutline"),ref:C,tabIndex:-1,
173children:L}),(0,s.jsxs)("div",{className:"visually-hidden-always",id:I,children:[(0,s.jsx)("div",{children:`${E}: ${a}%`}),(0,s.jsx)("div",{children:`${T}: ${l}%`}),(0,s.jsx)("div",{children:r?b:y})]})]}),(0,s.jsx)("div",{"aria-hidden":"true",className:Di("results"),children:(0,s.jsx)(TW,{hasPassed:r,isResultsVisible:f,isRTL:d,onAnimationDone:S,passingLabel:E,passingScore:a,score:l,scoreLabel:T,shouldAnimate:i})}),(0,s.jsx)(PW,{isFooterVisible:m,isResultsVisible:f,onTryAgainFocus:N})]})})})}const MW=5,OW=15,DW=30,BW=60,HW=180,S6=300,N6=600,j6=120,FW=t=>t<=MW?{regularInterval:BW,lowTimeThreshold:j6}:t<=OW?{regularInterval:HW,lowTimeThreshold:j6}:t<=DW?{regularInterval:S6,lowTimeThreshold:S6}:{regularInterval:N6,lowTimeThreshold:N6},VW=(t,e,n,o)=>{const r=Math.floor(o/60),a=o%60,i=r===1?t:e;if(r>0&&a>0)return`${n}: ${r} ${i} and ${a} seconds`;if(r>0&&a===0)return`${n}: ${r} ${i}`;if(r===0&&a>0)return`${n}: ${a} seconds`};var Fo=c(26372);const rn=q("quiz-timer"),Om=(t,e)=>`${t.toString().padStart(2,"0")}:${e.toString().padStart(2,"0")}`,zW=t=>{const e=Math.floor(t/60),n=t%60;return Om(e,n)},k6=t=>{const e=Math.floor(t/60),n=t%60;return Om(e,n)},UW=t=>Om(t,0),A6=({area:t,exitCourseEnabled:e=!1,isStartScreenActive:n=!1,isEndScreenActive:o=!1,labelQuizTimerElapsed:r,labelQuizTimerExpired:a,labelQuizTimerExpiredAction:i,labelQuizTimerExpiredMessage:l,labelQuizTimerHide:u,labelQuizTimerLimit:d,labelQuizTimerMinute:m,labelQuizTimerMinutePlural:p,labelQuizTimerRemaining:f,labelQuizTimerShow:g,timerDisplay:v=rt.sS.REMAINING,timerEnabled:C=!1})=>{const[x,y]=Fo.useState(!1),[b,E]=Fo.useState(""),L=Fo.useRef(null),T=Fo.useRef(!1),{hideTimer:I,quizTime:S,timerDuration:N,timerHidden:k,timerRunning:B,handleExpiredQuiz:M}=I6(),R=N*60,{isCover:H,isHeader:P,isHidden:j}=Fo.useMemo(()=>({isCover:t==="cover",isHeader:t==="header",isHidden:v===rt.sS.HIDE_TIMER}),[t,v]),O=n&&!H,U=Fo.useMemo(()=>FW(N),[N]),W=Fo.useMemo(()=>({expired:a||"Time expired",minute:m||"minute",minutePlural:p||"minutes",remaining:f||"Time left"}),[a,m,p,f]),z=()=>{y(!1),M()},re=Fo.useCallback(()=>{const{regularInterval:Ue,lowTimeThreshold:we}=U,Be=S<=we&&S>0&&!T.current,de=L.current!==null&&L.current-S>=Ue,se=L.current===null;if(Be||de){Be&&(T.current=!0),L.current=S;const Ne=VW(W.minute,W.minutePlural,W.remaining,S);E(Ne)}se&&(L.current=S)},[U,S,W]);if(Fo.useEffect(()=>{C&&S!==0&&(H||re())},[re,H,C,B,S]),Fo.useEffect(()=>{if(!C||S!==0||n)return;const Ue=setTimeout(()=>{y(!0)},1200);return()=>clearTimeout(Ue)},[S,C,n]),!C||O||o)return null;const fe={"header-area":P,"cover-area":H,"hide-timer":j,"exit-course":e},Ee={display:[H,P&&!n].some(ya())?null:"none"},Oe=()=>({[rt.sS.SUMMARY]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:rn("label"),children:[d,":"]}),(0,s.jsxs)("div",{className:rn("value"),children:[N," ",N===1?m:p]})]}),[rt.sS.REMAINING]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:rn("label"),children:[f,":"]}),(0,s.jsx)("div",{className:rn("value"),children:zW(S)})]}),[rt.sS.ELAPSED]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:rn("label"),children:[r,":"]}),(0,s.jsx)("div",{className:rn("value"),children:k6(R-S)})]}),[rt.sS.ELAPSED_TOTAL]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:rn("label"),children:[r,":"]}),(0,s.jsxs)("div",{className:rn("value"),children:[k6(R-S)," /"," ",UW(N)]})]})})[H?rt.sS.SUMMARY:v];return(0,s.jsxs)("div",{className:rn(fe),"data-testid":"quiz-timer",style:Ee,children:[S!==0&&(0,s.jsx)("div",{"aria-atomic":"true","aria-live":"polite",className:"visually-hidden",role:"status",children:b}),S===0&&(0,s.jsx)("div",{className:"visually-hidden",role:"alert",children:a||"Time expired"}),P&&k?(0,s.jsxs)("button",{className:rn("hide"),onClick:()=>I(!1),type:"button",children:[(0,s.jsx)(tt,{className:rn("icon"),name:"stopwatch-regular"}),g]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:rn("time"),children:[(0,s.jsx)(tt,{className:rn("icon"),name:"stopwatch-regular"}),(0,s.jsx)("div",{className:rn("desc"),children:Oe()})]}),P&&(0,s.jsx)("button",{className:rn("hide"),onClick:()=>I(!0),type:"button",children:u})]}),!H&&x&&uo.createPortal((0,s.jsxs)(uh,{className:"quiz-timer-modal","data-testid":"quiz-timer-modal",disableBackgroun
173dScroll:!0,heading:a,hideCloseButton:!0,onCancel:z,onClose:z,onOverlayClick:()=>{},children:[(0,s.jsx)("p",{children:l}),(0,s.jsx)("button",{"data-testid":"quiz-view-results-button",onClick:z,type:"button",children:i})]}),xr({childType:"dialog"}))]})},Vo=q("quiz-start"),$W=t=>(t?.retryAttempts??0)>0;function WW({lessonId:t,isActive:e}){const n=(0,X.wA)(),o=(0,h.useRef)(null),r=Cr(t),a=(0,mt.useLabelsMap)(),i=gt(),l=(0,xe.UG)(),u=Os(t),d=Zm(),m=(0,X.d4)(r0),p=l?.authorName,f=l?.avatar,g=i?.theme?.showAuthor??!1,v=i?.theme?.showLessonCount??!1,C=d[t]??0,x=cs(u?.description),y=cs(u?.title),b=u?.settings?.timer,E=u?.settings?.asLesson!==!1,{a11yAuthorPrefix:L="",lessonName:T="",lessonPreposition:I="",quizStart:S="",quizTakeAgain:N="",quizTimerElapsed:k="",quizTimerExpired:B="",quizTimerExpiredAction:M="",quizTimerExpiredMessage:R="",quizTimerHide:H="",quizTimerLimit:P="",quizTimerMinute:j="",quizTimerMinutePlural:O="",quizTimerRemaining:U="",quizTimerShow:W=""}=a??{},z=$W(r),re=e&&z,fe=z?"quiz-take-again-button":"quiz-start-button";(0,h.useEffect)(()=>{re&&o.current?.focus()},[re]);const Ee=()=>{n((0,Ss.QI)({lessonId:t}))},Oe=z?N:S;return(0,s.jsx)("div",{"aria-hidden":!e,className:Vo(),children:(0,s.jsx)("div",{className:Vo("container"),children:(0,s.jsxs)("div",{className:Vo("content"),children:[(0,s.jsxs)("div",{className:Vo("header"),children:[(0,s.jsx)("div",{className:Vo("counter"),children:E&&v&&(0,s.jsx)("div",{className:Vo("count"),children:`${T} ${C} ${I} ${m}`})}),(0,s.jsx)("h1",{ref:o,tabIndex:-1,children:(0,s.jsx)(yt,{className:Vo("title"),value:y})}),g&&f&&p?(0,s.jsxs)("div",{className:Vo("author"),children:[(0,s.jsx)("img",{alt:"",src:(0,Je.o1)(f)}),(0,s.jsxs)("span",{className:"visually-hidden",children:[L," ",p]}),(0,s.jsx)("span",{"aria-hidden":"true",children:p})]}):null]}),b&&(0,s.jsx)(A6,{area:"cover",exitCourseEnabled:i?.lmsOptions?.enableExitCourse,isStartScreenActive:e,labelQuizTimerElapsed:k,labelQuizTimerExpired:B,labelQuizTimerExpiredAction:M,labelQuizTimerExpiredMessage:R,labelQuizTimerHide:H,labelQuizTimerLimit:P,labelQuizTimerMinute:j,labelQuizTimerMinutePlural:O,labelQuizTimerRemaining:U,labelQuizTimerShow:W,timerEnabled:b}),(0,s.jsx)(yt,{allowTabNavigation:e,className:Vo("description"),value:x}),(0,s.jsx)(Et.ArcButton,{className:Vo("start-button"),"data-testid":fe,hierarchy:"plain",iconEnd:(0,s.jsx)(tt,{name:"chevron-right-solid"}),onClick:e?Ee:mn.lQ,size:"sm",tabIndex:e?void 0:-1,children:Oe})]})})})}function _W(){const[t,e]=(0,h.useState)();return(0,h.useEffect)(()=>{const n=document.querySelector("[data-previous-lesson]");if(!n)return;e(n.clientHeight);const o=new ResizeObserver(([r])=>{e(r.target.clientHeight)});return o.observe(n),()=>{o.disconnect()}},[]),t}const R6=q("quiz");function GW(){const t=$n();return t?(0,s.jsx)(KW,{lessonId:t}):null}function KW({lessonId:t}){const e=gt(),n=e?.color,o=(0,mt.useLabelsMap)(),a=Hd()?.prefersKeyboardNavigation??!1,i=le(t)??"",{activeIndex:l,progress:u,resolvedItems:d,retryAttempts:m,settings:p,sourceItems:f}=V$({lessonId:t}),g=R$({settings:p}),v=_W();Q$({lessonId:t,items:f});const C=j$(d.length),x=k$(l),{items:y,startOffset:b}=A$(d,l);return(0,s.jsxs)("section",{className:R6(),"data-quiz":!0,"data-testid":"quiz",children:[p?.timer&&(0,s.jsx)(A6,{area:"header",exitCourseEnabled:e?.lmsOptions?.enableExitCourse,isEndScreenActive:l===C,isStartScreenActive:l===Fu,labelQuizTimerElapsed:o?.quizTimerElapsed,labelQuizTimerExpired:o?.quizTimerExpired,labelQuizTimerExpiredAction:o?.quizTimerExpiredAction,labelQuizTimerExpiredMessage:o?.quizTimerExpiredMessage,labelQuizTimerHide:o?.quizTimerHide,labelQuizTimerLimit:o?.quizTimerLimit,labelQuizTimerMinute:o?.quizTimerMinute,labelQuizTimerMinutePlural:o?.quizTimerMinutePlural,labelQuizTimerRemaining:o?.quizTimerRemaining,labelQuizTimerShow:o?.quizTimerShow,timerDisplay:p?.timerDisplay??void 0,timerEnabled:p?.timer}),(0,s.jsxs)("div",{className:R6("wrap"),children:[x&&(0,s.jsx)("div",{className:km({activeIndex:l,index:Fu}),children:(0,s.jsx)(WW,{isActive:l===Fu,lessonId:t})}),y.map((E,L)=>{const T=E.type===rt.UQ.MULTIPLE_CHOICE;return(0,s.jsx)(vW,{color:n,hasStart:!0,id:t,index:L+b,isCard:!0,isCorrectAnswerUnshuffled:T?T$(E.shuffledAnswerIndices,E.answers,E.correct):void 0,isShuffled:E$(E.shuffledAnswerIndices,E.answers),isTimed
173Quiz:p?.timer,item:E,items:d,labels:o??{},onChoiceSelect:g.onChoiceSelect,onFillInChange:g.onFillInChange,onMatchSet:g.onMatchSet,onResponseToggle:g.onResponseToggle,prefersKeyboardNavigation:a,progress:u,quizTop:v,reportAnswer:Je.bb,retryAttempts:m,scrollId:"page-wrap",setNextIndex:g.onSetIndex,settings:p??void 0,submitAction:g.onSubmit,title:i},`item-${E.id}`)}),(0,s.jsx)("div",{className:km({activeIndex:l,index:C}),inert:C===l?void 0:!0,children:(0,s.jsx)(wW,{questionCount:d.length})})]})]})}const QW=({data:{type:t},lessonProgress:e})=>(0,s.jsx)(gl,{type:t,children:(0,s.jsx)(Pi,{type:t,children:(0,s.jsx)(Bu,{children:(0,s.jsxs)(wi,{className:void 0,type:t,children:[(0,s.jsx)(d6,{lessonProgress:e,type:"quiz"}),(0,s.jsx)(GW,{},e?.retryAttempts??0)]})})})});var ZW=c(63947),Dm=c.n(ZW);function YW({authors:t,lessonAuthor:e,courseAuthor:n,selectedAuthorId:o}){if(o==="none")return{};if(o){const r=Dm()(t,{id:o});if(r)return r}if(e){const r=Dm()(t,{id:e});if(r)return r}if(n){const r=Dm()(t,{id:n});if(r)return r}return{}}const P6={addEventListeners(t,e){t.addEventListener("animationend",e,!1)},removeEventListeners(t,e){t.removeEventListener("animationend",e,!1)}},XW=At("LessonHeader"),JW=q("lesson-header"),qW=({authorName:t,avatar:e,children:n,color:o,description:r,labels:{lessonName:a,lessonPreposition:i},lessonHeaderColor:l,lessonHeaderImageColor:u,lessonHeaderSize:d,lessonHeaderStyle:m,partnerContentAuthors:p,totalLessons:f,lessonNumber:g,showAuthor:v,showLessonCount:C,title:x})=>{const y=Sl(),b=$n(),E=(0,is.qg)(y),L=m===w.xj.IMAGE,T=JW("top-wrap"),{alpha:I,ariaLabel:S,media:N,role:k}=ea("lessonHeaderImage"),B=N?.image,M=(0,h.useMemo)(()=>{if(B&&L){const R=u===w.df.LIGHT?w.qH:w.KJ;return(0,th.A)({alpha:I,color:R,url:(0,Ft.ME)(B)})}},[B,L,u,I]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Hx,{ariaLabel:L?S:void 0,imgRole:L?k:void 0,sectionStyles:M,topWrapClassName:T,children:(0,s.jsx)(XW,{authorName:t,avatar:e,color:o,description:r,lessonHeaderColor:l,lessonHeaderSize:d,lessonHeaderStyle:m,lessonId:b,lessonName:a,lessonNumber:g,lessonPreposition:i,partnerContentAuthors:p,showAuthor:v,showLessonCount:C&&!E,title:x,totalLessons:f})}),n]})},Bi=q("one-page-authors");function e_({className:t}){const e=(0,xe.vU)(),n=(0,xe._z)(),o=(0,xe.$H)(),r=(0,xe.PH)();if(!o)return null;const a=n?.isPartnerContentAuthor&&r!=null,i=Bi({}).mix(t);return a?(0,s.jsx)("div",{className:i,children:(0,s.jsx)("ul",{className:Bi("list"),role:"list",children:r.map((l,u)=>(0,s.jsxs)("li",{className:Bi("item"),role:"listitem",children:[(0,s.jsx)(w6,{avatarUrl:(0,Ft.ny)({width:76,height:76,imageKey:l?.image})}),(0,s.jsx)(M6,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:l?.name})]},u))})}):(0,s.jsxs)("div",{className:i,children:[(0,s.jsx)(w6,{avatarUrl:(0,Ge.o1)(o.avatar)}),(0,s.jsx)(M6,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:o.authorName})]})}function w6({avatarUrl:t}){return t?(0,s.jsx)("div",{className:Bi("avatar"),style:{backgroundImage:`url(${t})`}}):(0,s.jsx)("div",{className:Bi("avatar-fallback"),children:(0,s.jsx)(Z0,{decorative:!0})})}function M6({a11yAuthorPrefix:t,name:e}){const n=e||"Unknown User",o=Bi("name");return(0,s.jsxs)("div",{className:o.toString(),children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:t}),(0,s.jsx)("span",{children:n})]})}const O6=At("OnePageAuthors",e_),t_=q("one-page-title"),D6=At("OnePageTitle",({className:t,htmlId:e})=>{const n=(0,xe.DX)(),o=(0,et.QQ)(n.title),r=Za("title"),a=(0,as.uW)(n.title)?{"data-l10n-id":n.title.l10nId}:{"data-change-path":r},i=t_({}).mix(t);return(0,s.jsx)("h1",{...a,className:i,id:e,tabIndex:-1,children:o})}),Bm=q("one-page-lesson-header-info");function s_(){const t=(0,xe.DX)(),e=Bm({}),{accentContrast:n,coverImageColor:o,coverPageType:r}=t?.theme??{},l=r===w.BL.IMAGE&&o===w.df.LIGHT||n===w.Em.DARK||r===w.BL.WHITE||r===w.BL.VIDEO||r===w.BL.ACCENT&&!(0,pt.Wn)(t?.color);return(0,s.jsxs)("div",{className:e,children:[(0,s.jsx)(D6,{className:Bm("title").toString(),hasDarkText:l}),(0,s.jsx)(O6,{className:Bm("authors").toString(),hasDarkText:l})]})}const n_=At("OnePageCoverInfo",s_),o_=At("CoverSVG"),Hm=q("one-page-lesson-header"),r_=q("page"),a_=Hm("main").mix("lesson-header__main"),i_=Hm("container").mix(r_("header-container")),B6=()=>{const t=gt(),{alpha:e,media:n}=ea("coverImage"),o=t?.theme?.coverImageColor,r=t?.coverPageType===w.BL.WHITE,a=t?.coverPageType===w.BL.IMAGE,i=t?.coverPageType===w.BL.ACCENT,l=t?.coverPageType===w.BL.VIDEO,u=o===w.df.LIGHT,d=Hm({accent:i,image:a,white:r||l,video:l,"overlay-light":a&&u}),m=a?(0,$t.b9)({alpha:e,color:o,media:n}):{};return(0,s.jsxs)("header",{className:d,style:m,children:[(0,s.jsx)("div",{className:i_,children:(0,s.jsx)("div",{className:a_,children:(0,s.jsx)(n_,{})})}),(0,s.jsx)(o_,{coverPageType:"LEFT"})]})},Fm=(0,h.createContext)({visibleLessons:[],registerLesson:()=>{},unregisterLesson:()=>{}});Fm.displayName="LessonContentContext";function c_({children:t}){const[e,n]=(0,h.useState)(()=>[]),o=(0,h.useCallback)(i=>{n(l=>l.concat(i))},[]),r=(0,h.useCallback)(i=>{n(l=>l.filter(u=>u!==i))},[]),a=(0,h.useMemo)(()=>({visibleLessons:e,registerLesson:o,unregisterLesson:r}),[e,o,r]);return(0,s.jsx)(Fm.Provider,{value:a,children:t})}function l_(){return(0,h.useContext)(Fm)}const{LARGE:d_,SMALL:u_}=w.OX,{ACCENT:h_,BLACK:m_,COLOR:H6,DARK:p_,GRAY:f_,IMAGE:F6,LIGHT:v_,TINT:g_}=w.xj,C_=q("lesson-header-wrap");function x_({didNavigate:t,handleNavigate:e,handleStorylineFullscreen:n,isMobileHeader:o,isProgressSummary:r,lessonProgress:a,navigateDirection:i,onNavigateTransitionEnd:l,onPageReady:u,previewType:d,ref:m,registerLesson:p,unregisterLesson:f,visibleLessons:g}){const v=(0,h.useRef)(null),C=(0,h.useRef)(0),x=(0,h.useRef)(!1),y=(0,et.gY)(),b=(0,ce.g)(),E=Aa(),L=(0,xe.up)(),T=(0,xe.vU)(),{partnerContent:I}=(0,xe.qm)(),S=Hd(),N=E?.theme?.themeId,[k,B]=(0,h.useState)(!1),M=b.mode||"",R=b.id,H=r?Hu:a?.index!=null?E?.lessons?.[a.index]??{}:{},P=r?null:Fa({course:E,lesson:H}),j=r?0:ac({course:E,lesson:H}),O=Nl(E),U=(0,h.useCallback)((Rs,Ys)=>{const xt=i(),qt=v.current;if(!qt){Ys();return}const ps=`page ${xt}-${Rs}`,Dr=()=>{Rs==="enter"?qt.className=`page ${xt}-complete`:qt.className="page",P6.removeEventListeners(qt,Dr),window.dispatchEvent(new CustomEvent(ff)),l(),Ys()};qt.className=ps,P6.addEventListeners(qt,Dr)},[i,l]);(0,h.useImperativeHandle)(m,()=>({componentWillEnter(Rs){U("enter",Rs)},componentDidEnter(){B(!0)},componentWillExit(Rs){const Ys=document.getElementById("page-wrap"),xt=Ys?.scrollTop??0;Ys&&(Ys.scrollTop=0),C.current=xt,U("leave",Rs),window.dispatchEvent(new CustomEvent(pf)),v.current&&(v.current.scrollTop=C.current)},componentDidExit(){}}),[U]),(0,h.useEffect)(()=>(B(!0),r||((0,Je.no)(R),(0,X.JD)((0,pP.B)(R))),p(R),()=>{f(R)}),[]),(0,h.useEffect)(()=>{t&&!x.current&&k&&u(),x.current=k},[t,k,u]);const W=(0,h.useMemo)(()=>{const{theme:Rs}=E??{},Ys=Rs?.customColorLessonHeaderContrast,xt=Rs?.lessonHeaderColor,qt=(0,pt.xD)(xt),ps=!(0,pt.Wn)(xt),Dr=Ys===w.Em.DARK||Ys===w.Em.AUTO&&qt===w.Em.DARK;return!Ys&&ps||Dr?ot.S6.DARK:ot.S6.LIGHT},[E]),z=(Rs,Ys)=>{if(r)return(0,s.jsx)(l6,{...Ys,course:E,courseProgress:L,labels:T,lessons:E?.lessons,sessionPreferences:S});switch(Rs){case"blocks":return(0,s.jsx)(BU,{...Ys,animateBlockEntrance:E?.animateBlockEntrance,handleNavigate:e,isFirstLesson:ec({course:E,lesson:H})});case"quiz":return(0,s.jsx)(QW,{...Ys,course:E});default:return null}},re=H,{author:fe,selectedAuthorId:Ee,type:Oe}=re,{prefersKeyboardNavigation:Ue}=S??{},{authors:we,color:Be,enableVideoPlaybackSpeed:de,id:se,lessonHeaderImage:Ne,showLessonCount:Me,showNavigationButtons:$e,tenantId:Ae,theme:at}=E??{},{hideLessonHeaders:qe,lessonHeaderColor:lt,lessonHeaderImageColor:It,lessonHeaderSize:Dt,lessonHeaderStyle:ns,navigationType:gn,showAuthor:As}=at??{},os=E?.publishedAt,cn=I?.content??[],Rn=cn.length>0,Xn=Rn?cn.find(Rs=>Rs.id===Ee):void 0,ir=Rn?Xn?.data?.authors:void 0,{avatar:xo,authorName:cr}=YW({authors:we,lessonAuthor:fe,courseAuthor:E?.author,selectedAuthorId:Ee}),$o=_r({course:E,courseProgress:L}),Pn=r?{}
173:oc({course:E,courseProgress:L,lesson:P,restrictingQuiz:$o}),lr=Nv(H),Sa=(0,is.c3)(E)?B6:qW,Wt=(0,s.jsx)(Sa,{authorName:cr,avatar:xo,color:Be,course:E,description:re.description,labels:T,lessonHeaderColor:lt,lessonHeaderImage:Ne,lessonHeaderImageColor:It,lessonHeaderSize:Dt,lessonHeaderStyle:ns,lessonNumber:j,partnerContentAuthors:ir,showAuthor:As,showLessonCount:Me,themeId:N,title:re.title,totalLessons:O,children:!r&&(0,s.jsx)(d6,{id:re.id,items:re.items,lessonProgress:a,navigationType:gn,scrollPosition:0,type:re.type})}),bo=`image-${(It??w.df.DARK).toLowerCase()}`,zi=C_({[bo]:ns===F6,accent:ns===h_,black:ns===m_,collapsed:qe,custom:ns===H6,dark:ns===p_,gray:ns===f_,image:ns===F6,large:Dt===d_&&!o,light:ns===v_,mobile:o,small:Dt===u_&&!o,tint:ns===g_}),Tl=ns===H6?{"--lesson-header-contrast-color":W,"--color-background":lt}:{},Ui={authorName:cr,avatar:xo,color:Be,courseId:se,courseTitle:y(E?.title),data:H,enableVideoPlaybackSpeed:de,handleStorylineFullscreen:n,hideLessonHeaders:qe,isLesson:(0,jt.GG)(re),labels:T,lessonHeader:Wt,lessonHeaderImage:Ne,lessonHeaderWrapClasses:zi,lessonHeaderWrapStyles:Tl,lessonHasContinues:lr,lessonNumber:j,lessonProgress:a,loadMedia:R===g[0],mode:M,nextLesson:P?.id??null,nextLessonRestrictions:Pn,partnerContent:cn,publishedAt:os,prefersKeyboardNavigation:Ue,previewType:d,scrollPosition:0,showAuthor:As,showLessonCount:Me,showNavigationButtons:$e,tenantId:Ae,totalLessons:O};return(0,s.jsx)(la,{title:Uc(`${y(re.title)} - ${Ui.courseTitle}`),children:(0,s.jsx)("div",{"data-lesson-id":R,ref:v,children:z(Oe,Ui)})})}function b_(t){const{visibleLessons:e,registerLesson:n,unregisterLesson:o}=l_();return(0,s.jsx)(x_,{...t,registerLesson:n,unregisterLesson:o,visibleLessons:e})}const y_=b_;var V6=c(9560);function L_(t,e){const o=e.filter(r=>(0,jt.GG)(r)).findIndex(r=>
173r.id===t);return o!==-1?o+1:null}function E_({defaultNextLesson:t,defaultNextLessonNumber:e,lesson:n,lessonProgress:o,lessonsOnly:r,skipTargetLesson:a}){const i=n?.type==="quiz",{skipLessonsIfPassed:l,skipToLessonId:u}=n?.settings??{},d=o&&"passed"in o&&o.passed;return i&&l&&u&&d&&a?{nextLesson:a,nextLessonNumber:L_(a.id,r)}:{nextLesson:t,nextLessonNumber:e}}function T_(t){const e=Os(t),n=un(t),o=gt(),r=(0,mt.useLabelsMap)(),a=O5(t),i=D5(t),l=B5(),u=e?.settings?.skipToLessonId,d=Os(u),{nextLesson:m,nextLessonNumber:p}=E_({defaultNextLesson:a,defaultNextLessonNumber:i,lesson:e,lessonProgress:n,lessonsOnly:o?.lessonsOnly??[],skipTargetLesson:u?d:void 0}),f=m?.id,g=Ct(f),v=cs(g?.data);return{lessonNameLabel:r?.lessonName,lessonPrepositionLabel:r?.lessonPreposition,nextLesson:m,nextLessonNumber:p,restrictionData:f?v:void 0,restrictionType:f?g?.type:void 0,totalLessons:l}}const $u=q("lesson-nav");function I_({allowTooltip:t,lessonNameLabel:e,lessonPrepositionLabel:n,nextLesson:o,nextLessonNumber:r,onFocus:a,ref:i,restrictionData:l,restrictionType:u,totalLessons:d}){const m=o?.id,p=sa(),f=ti(p),v=o&&(0,jt.GG)(o)&&m,C=(0,et.QQ)(o?.title)||"",x=v?`${r} ${n} ${d} \u2014 ${C}`:C,y=f&&v?`${e} ${r}`:x;return(0,s.jsx)(si,{allowTooltip:t,direction:"next",navLessonId:m,onFocus:a,ref:i,restrictionData:l,restrictionType:u,children:f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:$u("link-text"),children:y}),(0,s.jsx)(Ad,{className:$u("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ad,{className:$u("link-icon")}),(0,s.jsx)("span",{className:$u("link-text"),children:y})]})})}const S_=At("LessonNavNext",I_);function z6({lessonId:t,...e}){const n=T_(t);return(0,s.jsx)(S_,{...e,...n})}const Wu=q("lesson-nav"),N_=({allowTooltip:t,courseFinishLabel:e,onFocus:n,restrictionData:o,restrictionType:r},a)=>{const i=sa(),l=ti(i);return(0,s.jsx)(si,{allowTooltip:t,direction:"next",finish:!0,onFocus:n,ref:a,restrictionData:o,restrictionType:r,children:l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:Wu("link-text"),children:e}),(0,s.jsx)(Ad,{className:Wu("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ad,{className:Wu("link-icon")}),(0,s.jsx)("span",{className:Wu("link-text"),children:e})]})})},j_=At("LessonNavFinish",(0,h.forwardRef)(N_));function k_(t,e){const{currentLocale:n}=e,o=Kt(t),r=(0,mt.selectLabelsMap)(n,t);return{buttonNavigationStyle:o.buttonNavigationStyle,courseFinishLabel:r?.courseFinish||"Finish"}}const Vm=st()(wt.wZ,(0,X.Ng)(k_))(j_),_u=q("lesson-nav"),A_=({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,lessonPrepositionLabel:r,onFocus:a,previousLesson:i,previousLessonNumber:l,totalLessons:u},d)=>{const m=i?.id,p=sa(),f=ti(p),v=(0,jt.GG)(i)&&m,C=cs(i?.title)||n,x=v?`${l} ${r} ${u} \u2014 ${C}`:C,y=f&&v?`${o} ${l}`:x;return(0,s.jsx)(si,{allowTooltip:t,className:e,direction:"previous",navLessonId:m,onFocus:a,ref:d,children:f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:_u("link-text"),children:y}),(0,s.jsx)(qp,{className:_u("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(qp,{className:_u("link-icon")}),(0,s.jsx)("span",{className:_u("link-text"),children:y})]})})},R_=At("LessonNavPrevious",h.forwardRef(A_));function P_(){const t=Xm(),e=M5();return(n,{lessonId:o,currentLocale:r})=>{const a=Kt(n),i=t(o,n)||{},l=e(o,n),u=(0,mt.selectLabelsMap)(r,n),d=r0(n);return{buttonNavigationStyle:a.buttonNavigationStyle,courseHomeLabel:u.courseHome,lessonNameLabel:u.lessonName,lessonPrepositionLabel:u.lessonPreposition,previousLesson:i,previousLessonNumber:l,totalLessons:d}}}const zm=st()(wt.wZ,(0,X.Ng)(P_,null,null,{forwardRef:!0}))(R_),w_={threshold:0},Gu=(t,e)=>{const[n,o]=(0,h.useState)(!1),r=(0,h.useRef)(null);return(0,h.useEffect)(()=>{r.current&&r.current.disconnect(),r.current=new IntersectionObserver(([i])=>{o(i.isIntersecting)},e||w_);const{current:a}=r;return t.current?a.observe(t.current):o(!1),()=>{a.disconnect()}},[t,e]),n},U6=q("navButtonsFull"),M_=()=>{const[t,e]=(0,h.useState)(!1);return(0,Jt.A)(pf,()=>e(!0)),(0,Jt.A)(ff,()=>e(!1)),t},O_=({isVisible:t})=>{(0,V6.A)(()=>window.dispatchEvent(new CustomEvent(W1))),(0,h.useEffect)(()=>{const e=t?vf:W1;window.dispatchEvent(new CustomEvent(e))},[t])},D_=({isVisible:t})=>{(0,V6.A)(()=>window.dispatchEvent(new CustomEvent(_1))),(0,h.useEffect)(()=>{const e=t?gf:_1;window.dispatchEvent(new CustomEvent(e))},[t])},B_=({children:t,hideNavToHome:e,navNextEnabled:n,navFinishEnabled:o})=>{const r=(0,h.useRef)(null),a=(0,h.useRef)(null),i=(0,h.createRef)(null),l=(0,h.useRef)(),u=$n(),d=Gu(a),m=Gu(i),p=M_(),f=(0,h.useCallback)(()=>{r.current?.scrollTo({top:0,behavior:"smooth"})},[]),g=(0,h.useCallback)(()=>{const C=r.current?.scrollHeight;r.current?.scrollTo({top:C,behavior:"smooth"})},[]);(0,Jt.A)(Od,f),(0,Jt.A)(Dd,g),O_({isVisible:d}),D_({isVisible:m}),(0,h.useEffect)(()=>
173{if(!p&&a.current){const x=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:x})}},[p,a]);const v=U6("navPrev",{visible:d,hide:p});return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:r,children:(0,s.jsxs)("div",{className:U6(),children:[!e&&(0,s.jsx)("div",{className:v,children:(0,s.jsx)(zm,{lessonId:u,ref:a})}),t,n&&(0,s.jsx)(z6,{lessonId:u,ref:i}),o&&(0,s.jsx)(Vm,{lessonId:u,ref:l})]})})},xl=q("navButtonsFloating"),$6=({transitionIn:t,buttonType:e,children:n})=>{const o=(0,h.useRef)(),r={entered:xl(e,{entered:!0}),exiting:xl(e,{exiting:!0}),exited:xl(e,{exited:!0})};return(0,s.jsx)(Ts.eB,{in:t,nodeRef:o,timeout:250,children:a=>(0,s.jsx)("div",{className:r[a],ref:o,children:n})})},H_=250,W6={threshold:.2},F_=({topRef:t,bottomRef:e,pageWrapRef:n,currentLessonId:o})=>{const r=Gu(t,W6),a=Gu(e,W6),[i,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(!1),[m,p]=(0,h.useState)(!1),f=(0,h.useCallback)(()=>{n.current?.scrollTo({top:2,behavior:"smooth"})},[n]);return(0,ru.A)(f),(0,h.useEffect)(()=>{l(!0);const g=setTimeout(()=>{f(),l(!1)},H_);return()=>{clearTimeout(g)}},[o,f]),(0,h.useEffect)(()=>{d(a&&!i),p(r&&!i)},[a,r,i]),{showPrev:m,showNext:u}},V_=({children:t,isCurrentLessonQuiz:e,navNextEnabled:n,hideNavToHome:o,navFinishEnabled:r})=>{const a=(0,h.useRef)(),i=(0,h.useRef)(),l=(0,h.useRef)(),u=(0,h.useRef)(),d=(0,h.useRef)(),m=(0,h.useRef)(),p=$n(),{showNext:f,showPrev:g}=F_({topRef:d,bottomRef:m,pageWrapRef:a,currentLessonId:p}),v=(0,h.useCallback)(()=>{a.current?.scrollTo({top:0,behavior:"smooth"})},[]),C=(0,h.useCallback)(()=>{const x=a.current?.scrollHeight;a.current?.scrollTo({top:x,behavior:"smooth"})},[]);return(0,Jt.A)(Od,v),(0,Jt.A)(Dd,C),(0,h.useEffect)(()=>{e&&(n||r)&&C()},[e,n,r,C]),(0,s.jsxs)("div",{className:"page-wrap",id:"page-wrap",ref:a,children:[(0,s.jsx)("div",{className:xl("top"),ref:d}),!o&&(0,s.jsx)($6,{buttonType:"prev",transitionIn:g,children:(0,s.jsx)(zm,{lessonId:p,onFocus:v,ref:i})}),t,(0,s.jsx)($6,{buttonType:"next",transitionIn:f&&(n||r),children:n?(0,s.jsx)(z6,{lessonId:p,onFocus:C,ref:l}):r?(0,s.jsx)(Vm,{lessonId:p,onFocus:C,ref:u}):null}),(0,s.jsx)("div",{className:xl("bottom"),ref:m})]})};var Ku=c(26372);class z_ extends Ku.Component{nodeRef=Ku.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 n=this.transitionState;n==="entering"?this.onEnter(e):n==="exiting"&&this.onExit(e)}onEnter(e){const n=this.nodeRef.current;n&&n.componentWillEnter?n.componentWillEnter(e):e()}onEntered(){const e=this.nodeRef.current;e&&e.componentDidEnter&&e.componentDidEnter()}onExit(e){const n=this.nodeRef.current;n&&n.componentWillExit?n.componentWillExit(e):e()}onExited(){const e=this.nodeRef.current;e&&e.componentDidExit&&e.componentDidExit()}render(){const{children:e}=this.props;return(0,s.jsx)(Ts.eB,{addEndListener:this.handleTransition,nodeRef:this.nodeRef,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0,...this.props,children:n=>(this.transitionState=n,e&&Ku.cloneElement(Ku.Children.only(e),{ref:this.nodeRef}))})}}const{FULL:U_,FLOATING:_6}=w.AY,$_=q("lessonNavigation"),W_=({children:t})=>{const e=(0,h.createRef)();return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:e,children:t})},__=(t,e)=>t+(e?.drawCount??1),G_=(t=[])=>t.reduce(__,0),K_=({children:t,isPreviewLesson:e})=>{const{buttonNavigationStyle:n}=(0,xe.DX)(),{pathname:o}=(0,ce.zy)(),r=(0,xe.DX)(),{showNavigationButtons:a,lessonsOnly:i,lmsOptions:l={}}=r,u=(0,h.useRef)(),d=js(480),m=$n(),p=Os(m)||{},f=un(m)||{},[g,v]=(0,h.useState)(n),C=i[0].id,x=r?.exportSettings?.webExportSettings,y=!Mo.isInstantLink&&(l?.disableCoverPage||x?.disableCoverPage)&&C===m,b=!Mo.isInstantLink&&l?.disableCoverPage,E=l?.disableCoverPage?y:b;(0,h.useEffect)(()=>{n!==g&&(v(n),window.dispatchEvent(new CustomEvent(Od)))},[n,g]);const L=Nv(p)||(0,jt.Sg)(p)?f.isComplete:!0,T=f.activeIndex===G_(p.items)+1,I=p.type==="quiz"&&!T||p.settings?.continueType==="continue",S=p&&Fa({course:r,lesson:p}),N=m==="progress-summary",k=window.isPublicShare,B=S&&!e&&L&&!I&&!N,M=!S&&L&&Ge.BI&&!k&&!N&&!e&&!(0,Je.Hm)()&&!I,R=$_("wrapper",{full:n===U_||d,floating:n===_6&&!d}),P=!a||e?W_:n===_6&&!d?V_:B_;return(0,h.useEffect)(()=>{const j=document.querySelector(".page__content");j&&j.classList.add("page__content--preview-nav")},[P]),(0,s.jsx)("div",{className:R,ref:u,children:(0,s.jsx)(P,{hideNavToHome:E,navFinishEnabled:M,navNextEnabled:B,children:(0,s.jsx)(c_,{children:(0,s.jsx)(Ts.F,{component:"div",children:(0,s.jsx)(z_,{children:t},o)})})})})};var Q_=c(44795),Z_=c.n(Q_),Y_=c(80006),X_=c.n(Y_),J_=c(63083),G6=c(75921);function q_(t){return t?.slidesUI?.slideDirection??ot.fY.UP}function eG(){return(0,X.d4)(q_)}function tG(t){return t?.slidesUI?.exitingSlideOffset??0}function sG(){return(0,X.d4)(tG)}const Ta=q("blocks-lesson-slide"),K6="#fff",nG=["image full","image text overlay","quote background"],Q6=({className:t})=>{const e=En()||K6;return(0,s.jsx)("div",{className:t,style:{background:e}})},oG=({block:t})=>(0,s.jsx)(X1,{block:t,children:(0,s.jsx)(Q6,{className:Ta("background-top")})}),rG=({block:t})=>(0,s.jsx)(X1,{block:t,children:(0,s.jsx)(Q6,{className:Ta("background-bottom")})});function aG(t,e){const n=e.blocks?.length??1,o=n==1,r=n==2,a=e.blocks?.[0],i=e.blocks?.find(B=>B.settings.backgroundType===w.xj.IMAGE),l=t.settings.backgroundType===w.xj.IMAGE,u=t.id===a?.id,d=t.fam
173ily==="multimedia",m=t.family==="mondrian",p=t.family==="buttons",g=t.variant==="accordion"&&document.querySelector(`[data-block-id="${t.id}"] [data-accordion-status="closed"]`)!=null,v=document.querySelector(`[data-block-id="${t.id}"] [data-block-text]`)?.clientHeight>300,C=kU(t.family,t.variant)||v,x=document.querySelector("[data-continue-sr]")!=null,y=!C&&r&&x&&document.querySelector("[data-continue-btn]")==null,b=o&&l&&!y,E=l&&!y&&!C,L=d||p||m;return Ta("connected-blocks",{"min-half-height":i&&(r&&!y&&!C||g||E),"full-height":y||b,"top-block":u&&!o&&!C&&!L,"top-block-centered":u&&!o&&L})}const iG=({hasTransitioned:t,onContinue:e,prefersKeyboardNavigation:n,previewType:o,slide:r,transitionState:a},i)=>{const l=gt(),u=$n(),d=(0,mt.useLabelsMap)(),m=lh(),p=un(u),f=!0,{animateBlockEntrance:g,color:v,id:C,title:x,enableVideoPlaybackSpeed:y,publishedAt:b,tenantId:E}=l;(0,h.useImperativeHandle)(i,()=>L.current);const L=(0,h.useRef)(),T=eG(),I=sG(),S=`${a}-${T}`,N=Ta("wrapper",{exiting:a==="exiting"}),{blocks:k,lastBlock:B}=r,M=(0,h.useCallback)(Be=>{Be===B?.id&&e()},[B,e]),R=Ta("inner",{[S]:!0}),H=Ta("lesson",{slides:f,"touch-preview":Yc(o)}).toString(),P=r.blocks.length==1,{settings:j,type:O,variant:U}=r.blocks?.[0]??{},W=P&&j.backgroundType===w.xj.IMAGE,z=P&&!W&&na()(`${O} ${U}`,nG),re=z||W,fe=r.blocks?.[0],Ee=r.blocks?.[r.blocks.length-1],Oe=fe?.settings?.backgroundType!==w.xj.IMAGE,Ue=Ee?.settings?.backgroundType!==w.xj.IMAGE,we=Ta("full-width-image",{legacy:z,background:W});return(0,s.jsx)("div",{className:N,style:{top:I},children:(0,s.jsxs)("div",{className:R,children:[Oe&&(0,s.jsx)(oG,{block:fe}),Ue&&(0,s.jsx)(rG,{block:Ee}),(0,s.jsx)("div",{className:H,ref:L,children:k.map((Be,de)=>{const se=P?!1:s6({blocks:r.blocks,lessonProgress:p,currentBlockIndex:de}),Ne=re?we:aG(Be,r);return(0,s.jsx)(e6,{animateBlockEntrance:g,block:Be,className:Ne,color:v,courseId:C,courseTitle:x,defaultBackgroundColor:K6,enableVideoPlaybackSpeed:y,hideBlock:se,index:de,isFirstLesson:!0,isOnlyBlockInStep:P,labels:d,lessonId:u,lessonProgress:p,loadMedia:t,onContinue:M,partnerContent:m,prefersKeyboardNavigation:n,previewType:o,publishedAt:b,tenantId:E},Be.blockId)})})]})})},cG=(0,h.forwardRef)(iG);var lG=c(68061),dG=c.n(lG);const Z6=q("blocks-slide-indicator-tooltip"),uG=({disabled:t,left:e,text:n,top:o,visible:r},a)=>{let i=(0,s.jsx)("span",{"aria-hidden":"true",children:n});return t&&(i=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tt,{classNameIcon:Z6("icon"),name:"lock"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"(locked content)"})]})),(0,s.jsx)("div",{"aria-hidden":!r,className:Z6("wrapper",{disabled:t,visible:r}),ref:a,role:"tooltip",style:{left:e,top:o},children:i})},Y6=(0,h.forwardRef)(uG);Y6.propTypes={disabled:ut().bool.isRequired,left:ut().number,text:ut().string.isRequired,top:ut().number,visible:ut().bool.isRequired};const hG=Y6;function mG(t){const e=(0,h.useRef)();return e.current||=t(),e}const Qu=q("blocks-slide-indicator"),pG=({active:t,blockNavigationStyle:e,disabled:n,numberOfSlides:o,onKeyDown:r,onClick:a,slideIndex:i},l)=>{const{prefersKeyboardNavigation:u}=Hd()??{},[d,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(),g=(0,h.useRef)(),v=(0,h.useRef)(),C=(0,h.useRef)(),x=e===w.Dw.NUMBERS,y=i+1,b=`${y} / ${o}`,E=t?`Step ${y} of ${o}, current step`:`Go to step ${y} of ${o}`,L=mG(()=>document.getElementById("portal")),T=(0,h.useCallback)(()=>{if(g.current&&v.current){const U=g.current.getBoundingClientRect(),W=v.current.getBoundingClientRect(),z=U.left-W.width-18,re=Math.round(U.top-W.height/2+U.height/2);f({left:z,top:re})}},[]),I=(0,h.useCallback)(()=>{C.current=setTimeout(()=>{T(),m(!0)},300)},[T]),S=(0,h.useCallback)(()=>{clearTimeout(C.current),m(!1)},[]),N=(0,h.useCallback)(()=>{a(i)},[a,i]),k=(0,h.useCallback)(U=>{pn(U)&&m(!1),r(U)},[r]),B=(0,h.useCallback)(()=>{I()},[I]),M=(0,s.jsx)(hG,{disabled:n,left:p?.left,ref:v,text:b,top:p?.top,visible:d}),R=Qu("button",{active:t,disabled:n,numbers:x}),H=Qu("wrapper"),P=Qu("circle",{active:t,disabled:n}),j=Qu("number",{active:t,disabled:n}),O=x?(0,s.jsx)("span",{"aria-hidden":"true",className:j,children:y}):(0,s.jsx)(tt,{classNameIcon:P,name:"circle-solid"});return(0,s.jsxs)("div",{className:H,ref:l,children:[(0,s.jsx)("button",{"aria-current":t?"page":void 0,"aria-disabled":n,"aria-label":E+(n?" (unavailable until previous content is completed)":""),className:R,"data-control":"",onBlur:S,onClick:n?void 0:N,onFocus:u?B:void 0,onKeyDown:k,onMouseEnter:I,onMouseLeave:S,ref:g,type:"button",children:O}),(0,uo.createPortal)(M,L.current)]})}
173,fG=(0,h.forwardRef)(pG),Ia=q("blocks-slide-controls"),X6=38,vG=8,gG=t=>{const{activeSlideIndex:e,blockNavigationStyle:n,numberOfSlides:o,onGoToCover:r,onSlideClick:a,slideDisabledState:i,previewType:l}=t,u=(0,h.useRef)(),d=(0,h.useRef)(),[m,p]=(0,h.useState)(!1),[f,g]=(0,h.useState)(!1),v=(0,h.useCallback)(b=>{let E=!1,L=-1;if(ra(b)||Tr(b)){if(e-1>=0)L=e-1;else{r();return}E=!0}else aa(b)||Ir(b)?(e+1<=o-1&&(L=e+1),E=!0):fL(b)?(L=0,E=!0):pL(b)&&(L=o-1,i[L]&&(L=i.findLastIndex(T=>!T)),E=!0);L>=0&&!i[L]&&a(L),E&&(b.stopPropagation(),b.preventDefault())},[e,o,r,a,i]);(0,h.useEffect)(()=>{const b=u.current,E=d.current;if(b&&E){const L=b.getBoundingClientRect(),T=E.getBoundingClientRect(),I=L.bottom-X6,S=L.top+X6;T.bottom>I?b.scrollBy({top:T.bottom-I,left:0,behavior:"smooth"}):T.top<S&&b.scrollBy({top:T.top-S,left:0,behavior:"smooth"})}},[e]);const C=(0,h.useCallback)(()=>{const b=u.current;b&&(p(b.scrollTop>vG),g(b.clientHeight+b.scrollTop<b.scrollHeight))},[]);(0,ru.A)(C);const x=(0,h.useCallback)(Tu()(C,100),[C]);Bd(u.current,C);const y=Ia({"touch-preview":Yc(l)});return(0,s.jsx)("div",{className:y,children:(0,s.jsx)("div",{className:Ia("page-control-wrapper"),children:(0,s.jsxs)("div",{className:Ia("page-control-inner-wrapper"),children:[(0,s.jsx)("div",{className:Ia("page-control"),onScroll:x,ref:u,children:(0,s.jsx)("div",{className:Ia("slide-dot-wrapper"),children:dG()(b=>{const E=b===e;return(0,s.jsx)(fG,{active:E,blockNavigationStyle:n,disabled:i[b],numberOfSlides:o,onClick:a,onKeyDown:v,ref:E?d:null,slideIndex:b},b)},o)})}),(0,s.jsx)("div",{className:Ia("overlay-top",{visible:m})}),(0,s.jsx)("div",{className:Ia("overlay-bottom",{visible:f})})]})})})},J6=100;var bl=c(26372);const CG=50,xG=1e3,bG=({onSwipeDownHandler:t,onSwipeUpHandler:e,target:n,timeoutDuration:o=xG})=>{const[r,a]=bl.useState(!1),i=bl.useRef(void 0),l=bl.useCallback(()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>a(!1),o)},[o]),u=bl.useCallback(d=>{const m=Math.abs(d.deltaY);if(r)m<CG?(i.current&&clearTimeout(i.current),a(!1)):l();else if(m>J6){const p=d.deltaY>0?t:e;a(!0),l(),p()}},[l,r,t,e]);bl.useEffect(()=>{if(!(!n||!e||!t))return n.addEventListener("wheel",u,{passive:!0}),()=>{i.current&&clearTimeout(i.current),n?.removeEventListener?.("wheel",u,{passive:!0})}},[t,e,u,n])};var Or=c(70695);const q6="rise-presenter-sync",nne="presenterMode",yG="NAVIGATE_TO_COVER",e5="NAVIGATE_TO_SLIDE",t5="SLIDE_CHANGE",one="PRESENTER_VIEW_EXIT",Yn=q("lesson-one-page-slides"),LG=q("page-wrap"),s5=100;function n5(t){if(t==null)return!1;const e=t.tagName.toLowerCase(),n=t.getAttribute("type"),o=t.getAttribute("role"),r=t.tabIndex,a=e==="button"||["div","span"].includes(e)&&(o==="button"||r===0),i=e==="input"&&["radio","text"].includes(n)||e==="textarea"||o==="radio",l=["audio","video"].includes(e),u=o==="tab",d=document.querySelector(".quiz-card__interactive")?.contains?.(t)??!1;return a||i||l||u||d}const EG=t=>(e,n,o)=>t6(e,o.slice(0,-1),t),TG=(t,e)=>({disabled:n,slides:o},r)=>{const a=Ds()(Ls()(d=>t[d.id]),qo()(d=>yr()(d,t[d.id])))(r),i=r[r.length-1],l=n||SU(a)||NU(a,e),u={blocks:a,lastBlock:i,disabled:n};return{disabled:l,slides:Z_()(u,o)}},Zu=t=>{let e=!1,n=!1;if(t){const{clientHeight:o,scrollHeight:r,scrollTop:a}=t,i=Math.max(0,a),l=r-i;e=l===r,n=l-5<=o}return{isAtTop:e,isAtBottom:n}},IG=/,? +/,SG=[],NG=({lessonProgress:t,prefersKeyboardNavigation:e,previewType:n},o)=>{(0,h.useImperativeHandle)(o,Function.prototype,[]);const{announcePolite:r,clearAnnouncements:a}=vt(),i=(0,h.useRef)(),l=(0,h.useRef)(),u=(0,h.useRef)(),d=(0,h.useRef)(),m=(0,h.useRef)(),p=(0,h.useRef)(),f=(0,h.useRef)(),g=(0,h.useRef)(),v=(0,h.useRef)(null),C=(0,h.useRef)(null),x=(0,h.useRef)(null),y=(0,h.useRef)(0),b=(0,h.useRef)(0),E=(0,Pe.Z)(),L=(0,X.wA)(),[T,I]=(0,h.useState)(0),[S,N]=(0,h.useState)(!0),[k,B]=(0,h.useState)(!1),M=(0,ke.A)(S),R=(0,ke.A)(k),H=(0,h.useRef)(),P=jn(),j=P?.01:600,{lessons:O,...U}=(0,xe.DX)()||{},W=U?.theme?.blockNavigationStyle||w.Dw.DOTS,z=O[0],re=z?.items||SG,fe=(0,h.useCallback)(()=>{const xt=u.current?.scrollHeight>u.current?.clientHeight,{isAtBottom:qt}=Zu(u.current),ps=xt&&!S&&!qt;ps!=k&&B(ps)},[k,S]);Bd(i.current,fe),(0,h.useLayoutEffect)(fe,[S]);const Ee=(0,h.useCallback)(()=>{u.current?.scrollTo({top:0})},[]),Oe=(0,h.useMemo)(()=>(0,mn.Ve)(Nm([],re,t).map(EG(t)),Ls()(jv.A),X_()(Qt()("blockId"))),[re,t]),Ue=(0,h.useCallback)(xt=>{const qt={disabled:!1,slides:[]},{slides:ps}=Xd()(TG(Oe,t),qt,xt);return ps},[Oe,t]),we=(0,h.useMemo)(()=>(0,mn.Ve)(re,fU,Ue),[re,Ue]),Be=(0,h.useMemo)(()=>X3()("disabled",we),[we]),de=(0,is.No)(U);(0,h.useEffect)(()=>{y.current=T},[T]),(0,h.useEffect)(()=>{b.current=we.length},[we.length]),(0,h.useEffect)(()=>
173{if(!(!de||typeof BroadcastChannel>"u"))try{v.current||(v.current=new BroadcastChannel(q6));const xt=v.current,qt=ps=>{if(ps.data.type===yG)C.current&&C.current();else if(ps.data.type===e5){const Dr=ps.data.slideIndex,Il=Math.min(Dr-1,b.current-1);if(Il>=0){const CQ=Il<y.current?ot.fY.DOWN:ot.fY.UP;L((0,Or.zP)(CQ)),x.current&&x.current(Il)}}};return xt.addEventListener("message",qt),()=>{xt.removeEventListener("message",qt)}}catch{}},[de,L]),(0,h.useEffect)(()=>{if(!(!de||!v.current))try{const xt=T+1;v.current.postMessage({type:t5,slideIndex:xt})}catch{}},[de,T]),(0,h.useEffect)(()=>()=>{v.current?.close(),v.current=null},[]);const se=we.length,Ne=we[T],Me=Yc(n),$e=W!==w.Dw.NONE,Ae=T===se-1,at=t?.isComplete,qe=k||Ae?!at||!Ge.BI||window.isPublicShare:Be[T+1],lt=!k&&!Ae,It=Ae&&!Ge.BI,Dt=(0,ke.A)(It),ns=k&&!Ae,gn=(0,h.useCallback)(xu()(fe,100),[fe]);(0,h.useEffect)(()=>{const xt=u.current;return xt?.addEventListener("scroll",gn,{passive:!0}),()=>xt?.removeEventListener("scroll",gn,{passive:!0})},[gn]),(0,h.useEffect)(()=>{document.activeElement===p.current?!R&&k?m.current?.focus({preventScroll:!0}):!Dt&&It&&f.current?.focus({preventScroll:!0}):document.activeElement===m.current&&R&&!k&&p.current?.focus({preventScroll:!0})},[k,R,Dt,M,It,S]),(0,J_.A)(()=>{Df(),H.current=setTimeout(()=>{N(!1),u.current?.focus?.()},j+s5)},()=>{clearTimeout(H.current)});const As=(0,h.useCallback)(xt=>{const qt=i.current?.getBoundingClientRect()?.top??0;L((0,Or.ty)(qt));const ps=Math.max(0,Math.min(xt,we.length-1));I(ps),Ee()},[L,Ee,we.length]),os=(0,h.useCallback)(()=>{S||(N(!0),Jo(()=>{E("/")},"lesson-to-one-page-cover-stepped"))},[E,S]),cn=U?.exportSettings?.webExportSettings,Rn=!Mo.isInstantLink&&(U?.lmsOptions?.disableCoverPage||cn?.disableCoverPage),Xn=(0,h.useCallback)(Rn?()=>{L((0,Or.zP)(ot.fY.DOWN)),As(0)}:os,[Rn,As,os,L,Or.zP]);(0,h.useEffect)(()=>{C.current=Xn},[Xn]),(0,h.useEffect)(()=>{x.current=As},[As]);const ir=(0,h.useCallback)(()=>{S||(T>0?(L((0,Or.zP)(ot.fY.DOWN)),As(T-1)):os())},[As,L,T,S,os]),xo=(0,h.useCallback)(()=>{S||(Ae&&Ge.BI?E("/lessons/progress-summary"):(L((0,Or.zP)(ot.fY.UP)),As(T+1)))},[As,L,E,Ae,T,S]),cr=(0,h.useCallback)(()=>{(T<se-1||Ae&&Ge.BI)&&xo()},[Ae,T,se,xo]),$o=(0,h.useCallback)(()=>{const xt=u.current?.scrollTop??0,qt=u.current?.clientHeight??0,ps=P?"instant":"smooth";u.current?.scrollTo({top:xt+qt,behavior:ps})},[P]),Pn=(0,h.useCallback)(()=>{xo()},[xo]),lr=(0,h.useCallback)(()=>{$o()},[$o]),Vi=(0,h.useCallback)(xt=>{if(xt===T||S)return;const qt=xt<T?ot.fY.DOWN:ot.fY.UP;L((0,Or.zP)(qt)),As(xt),queueMicrotask(()=>{d.current?.querySelectorAll("[data-control]")?.[xt]?.focus?.()})},[As,L,T,S]),Sa=(0,h.useCallback)(()=>N(!0),[]),Wt=(0,h.useCallback)(()=>{N(!1),setTimeout(()=>{if(l.current&&d.current?.contains?.(document.activeElement)){const xt=Em()(l.current.innerText,{length:75,separator:IG});a(),r(`Content preview: ${xt}`)}else u.current?.focus?.()},0)},[r,a]),Vs=(0,h.useCallback)(()=>{if(Me)return;const{isAtTop:xt}=Zu(u.current);if(xt){T===0?Xn():ir();return}},[Me,ir,T,Xn]),bo=(0,h.useCallback)(()=>{if(Me||Ae&&!Ge.BI||qe)return;const{isAtBottom:xt}=Zu(u.current);if(xt){Pn();return}},[Ae,qe,Me,Pn]),zi=(0,h.useCallback)(()=>{const{isAtBottom:xt,isAtTop:qt}=Zu(u.current),ps=document.documentElement.clientWidth===window.innerWidth;return(xt||qt)&&ps},[]),Tl=(0,h.useCallback)(xt=>{!d.current?.contains?.(document.activeElement)&&!n5(xt.target)&&Vs()},[Vs]),Ui=(0,h.useCallback)(xt=>{!d.current?.contains?.(document.activeElement)&&!n5(xt.target)&&bo()},[bo]),Rs=(0,h.useCallback)(xt=>{const{itemId:qt}=xt.detail,ps=we.findIndex(Dr=>Dr.blocks.find(Il=>Il.id===qt));ps===-1||ps===T||(L((0,Or.zP)(ps>T?ot.fY.UP:ot.fY.DOWN)),As(ps))},[we,T,L,As]);(0,h.useEffect)(()=>(window.addEventListener(Zt,Rs),()=>{window.removeEventListener(Zt,Rs)})),(0,G6.A)("ArrowUp",ya(),Tl),(0,G6.A)("ArrowDown",ya(),Ui),bG({target:u.current,onSwipeUpHandler:Vs,onSwipeDownHandler:bo,timeoutDuration:j+s5});const Ys=Yn("gradient",{visible:k});return(0,s.jsx)("div",{className:Yn({}),children:(0,s.jsx)("div",{className:LG({transitioning:S}),id:"page-wrap",ref:u,tabIndex:"-1",children:(0,s.jsx)(gl,{type:U.type,children:(0,s.jsx)(Pi,{type:U.type,children:(0,s.jsx)(wi,{children:(0,s.jsx)(la,{children:(0,s.jsxs)("div",{"data-lesson-id":z?.id,children:[(0,s.jsxs)("nav",{"aria-label":"Step navigation",className:Yn("controls",{"touch-preview":Me}),ref:d,children:[(0,s.jsxs)("button",{"aria-disabled":T===0&&Rn,"aria-hidden":T===0&&Rn,className:Yn("prev-btn",{"touch-preview":Me}),onClick:ir,type:"button",children:[(0,s.jsx)(tt,{classNameIcon:Yn("arrow-icon",{"touch-preview":Me}),name:"arrow-up"}
173),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),$e&&(0,s.jsx)(gG,{activeSlideIndex:T,blockNavigationStyle:W,numberOfSlides:se,onGoToCover:os,onSlideClick:Vi,previewType:n,slideDisabledState:Be}),(0,s.jsxs)("div",{className:Yn("next-btns"),children:[(0,s.jsxs)("button",{"aria-disabled":!ns,"aria-hidden":!ns,className:Yn("page-down-btn",{"touch-preview":Me}),onClick:ns?lr:void 0,ref:m,tabIndex:ns?void 0:-1,type:"button",children:[(0,s.jsx)(tt,{classNameIcon:Yn("arrow-icon",{"touch-preview":Me}),name:"arrow-down"}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Scroll page down",!k&&(0,s.jsx)("span",{children:"(disabled because this is the bottom of the page)"}),Ae&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":qe,"aria-hidden":!lt,className:Yn("next-btn",{"touch-preview":Me}),onClick:qe?void 0:Pn,ref:p,tabIndex:Ae?-1:void 0,type:"button",children:[(0,s.jsx)(tt,{classNameIcon:Yn("arrow-icon",{"touch-preview":Me}),name:"arrow-down"}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Go to next step",qe&&(0,s.jsx)("span",{children:"(disabled until content is completed)"}),Ae&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":!It,"aria-hidden":!It,className:Yn("restart-btn",{"touch-preview":Me}),onClick:It?Xn:void 0,ref:f,tabIndex:Ae?void 0:-1,type:"button",children:[(0,s.jsx)(tt,{classNameIcon:Yn("restart-icon",{"touch-preview":Me}),name:"arrow-rotate-left"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Restart"})]})]})]}),(0,s.jsxs)(tu,{onShouldRecognizeGesture:zi,onSwipeDown:Vs,onSwipeUp:bo,children:[(0,s.jsx)("main",{"aria-describedby":"step-counter",ref:l,tabIndex:"0",children:(0,s.jsx)(Ts.F,{children:(0,s.jsx)(Ts.eB,{mountOnEnter:!0,nodeRef:g,onExited:Wt,onExiting:Sa,timeout:j,unmountOnExit:!0,children:xt=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:"step-counter",ref:g,children:`Step ${T+1} of ${se}`}),(0,s.jsx)(cG,{hasTransitioned:!S,onContinue:cr,prefersKeyboardNavigation:e,previewType:n,ref:i,slide:Ne,transitionState:xt})]})},T)})}),(0,s.jsx)("div",{className:Ys})]})]})})})})})})})},jG=(0,h.forwardRef)(NG),o5=q("blocks-lesson-restart-button"),kG=({className:t,onClick:e})=>{const n=o5.mix(t);return(0,s.jsx)("button",{className:n,onClick:e,type:"button",children:(0,s.jsx)(tt,{classNameIcon:o5("icon"),name:"arrow-rotate-left"})})},AG=q("lesson-one-page-scroll"),RG=({previewType:t,prefersKeyboardNavigation:e,lessonProgress:n})=>{const o=(0,h.useRef)(),[r,a]=(0,h.useState)(!1),{lessons:i,...l}=(0,xe.DX)()||{},{lmsOptions:u={}}=l||{},d=(0,xe.d_)(),m=(0,mt.useLabelsMap)(),{match:p}=(0,ce.zy)(),f=(0,Pe.Z)(),g=i[0],v=g?.id,C=lh(),x=g?.items||[],y=(0,is.cZ)(l),b=n?.isComplete&&!Ge.BI&&!y,E=n?.isComplete&&Ge.BI,L=l?.exportSettings?.webExportSettings,T=!Mo.isInstantLink&&(u?.disableCoverPage||L?.disableCoverPage),I=(0,h.useCallback)(()=>{r||(T?o.current?.scrollTo({top:0,behavior:jn()?"instant":"smooth"}):(a(!0),Jo(()=>{f("/")},"lesson-to-one-page-cover-continuous").finally(()=>{a(!1)})))},[f,T,r]);return(0,s.jsx)("div",{className:AG(),children:(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:o,children:(0,s.jsx)(gl,{type:l.type,children:(0,s.jsx)(Pi,{type:"blocks",children:(0,s.jsxs)(Bu,{children:[(0,s.jsx)(B6,{}),(0,s.jsx)(wi,{children:(0,s.jsx)(la,{children:(0,s.jsxs)("div",{"data-lesson-id":g?.id,children:[(0,s.jsx)(o6,{animateBlockEntrance:l?.animateBlockEntrance,blocks:x,color:l?.color,courseId:l?.id,courseTitle:d,enableVideoPlaybackSpeed:l?.enableVideoPlaybackSpeed,isFirstLesson:!0,isNavTypeStepped:!1,labels:m,lessonId:v,lessonProgress:n,loadMedia:!0,match:p,partnerContent:C,prefersKeyboardNavigation:e,previewType:t,publishedAt:l?.publishedAt,tenantId:l?.tenantId,type:l?.type}),b&&(0,s.jsx)(kG,{onClick:I}),E&&(0,s.jsx)(Vm,{lessonId:v})]})})})]})})})})})},r5=q("microlearning-progress-summary"),PG=q("page-wrap"),wG=({course:t,courseProgress:e,isStepped:n,lesson:o})=>{const r=(0,h.useRef)(),a=(0,h.useRef)(),[i,l]=(0,h.useState)(!1),u=r5("content",{stepped:n,mounted:i}).toString();return(0,ru.A)(()=>{const d=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:d}),l(!0)}),(0,s.jsxs)("div",{className:PG(),id:"page-wrap",ref:r,children:[(0,s.jsx)(zm,{className:r5("previous").toString(),lessonId:o?.id,ref:a}),(0,s.jsx)(l6,{contentClassName:u,course:t,courseProgress:e})]})},MG=t=>{const{isProgressSummary:e,courseProgress:n,lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}=t,i=gt(),l=i?.theme?.blockNavigationType===w.HC.STEPPED;return e?(0,s.jsx)(wG,{course:i,courseProgress:n,isStepped:l}):l?(0,s.jsx)(jG,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}):(0,s.jsx)(RG,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a})};var OG=c(26372);function a5(){const t=(0,X.wA)();return OG.useMemo(()=>({advanceQuizLessonToEnd:e=>t((0,Ss.YC)(e)),submitQuizAnswer:e=>t((0,Ss.kK)(e)),setQuizLessonTimeRemaining:e=>t((0,Ss.hy)(e))}),[t])}var DG=c(26372);const i5=-1,BG="MULTIPLE_CHOICE";function HG({allowedRetries:t,currentRetries:e}){return t===i5?!1:e>=t}function FG({lesson:t,lessonProgress:e,getL10nRecursive:n}){const{advanceQuizLessonToEnd:o,submitQuizAnswer:r}=a5();return DG.useCallback(()=>
173{if(!t||!no(t))return;const a=t.settings??{},i=a.passToContinue??!1,l=Number(a.retryCount??i5),u=Object.values(e?.items??{}).filter(d=>!d.isComplete);if(u.length>0){const d=e.retryAttempts??0,m=HG({allowedRetries:l,currentRetries:d});u.forEach(p=>{const f=I$({lesson:t,question:p});if(!f)return;const g=f.type||BG,v=n({duration:{startTime:0,stopTime:0},id:t.id,isCorrect:!1,isUnfinished:!0,item:{id:String(f.id||""),title:String(f.title||""),type:g},itemProgress:p,retryAttempts:d,title:t.title});(0,Je.bb)(v),r({finalRetryAttempt:m,isCorrect:!1,itemId:p.id,lessonId:t.id,passToContinue:i})})}o(t.id)},[o,n,e,t,r])}var c5=c(26372);function VG({children:t}){const e=za(),n=Zr(),o=Os(n),r=un(n),a=(0,et.NB)(),{setQuizLessonTimeRemaining:i}=a5(),l=c5.useMemo(()=>r??{},[r]),u=FG({lesson:o,lessonProgress:l,getL10nRecursive:a}),d=c5.useMemo(()=>bn(o)?o.settings:void 0,[o]),m=!!d?.timer,p=d?.timerDuration;return(0,s.jsx)(jW,{courseProgress:e,currentLessonId:n,handleExpiredQuiz:u,isTimedQuiz:m,setQuizLessonTimeRemaining:i,timerDuration:p,children:t})}const zG=t=>t?"mondrianTranscript"in t?t.mondrianTranscript:"tmp"in t&&t.tmp?.audio?.transcript||t.audio?.transcript:null;var UG=c(26372);const $G=960,Um=q("transcript-panel");function WG({enhancedLabels:t,lessonId:e,questionBankActiveIndex:n}){const o=(0,X.wA)(),{audioPlayerIdOpen:r,focusing:a,refocusTarget:i,transcriptMedia:l}=Jc(),u=!!r,d=(0,h.useId)(),m=(0,X.d4)(se=>e?On(e,se):null),f=e?.startsWith("question-bank-")?n:m?.type==="quiz"?m.activeIndex:void 0,g=js($G),[v,C]=(0,h.useState)(0),[x,y]=(0,h.useState)(!1),[b,E]=(0,h.useState)(!1),L=(0,h.useRef)(!1),T=(0,h.useRef)(null),I=(0,h.useRef)(null),S=(0,h.useRef)(l),N=(0,h.useRef)(e),k=(0,h.useRef)(f),B=(0,xe.vU)()||t,M=(0,h.useRef)(null),R=(0,h.useRef)({panelHeight:0,startY:null,startHeight:null,startTime:null,velocity:null}),H=(0,h.useCallback)(se=>{const Me=R.current.panelHeight,$e=performance.now();E(!0);const Ae=at=>{const qe=at-$e,lt=Math.min(qe/300,1),It=1-Math.pow(1-lt,3),Dt=Me+(se-Me)*It;C(Dt),R.current.panelHeight=Dt,lt<1?requestAnimationFrame(Ae):(E(!1),y(!1),R.current={startY:null,startHeight:null,startTime:null,panelHeight:null,velocity:null})};requestAnimationFrame(Ae)},[y,E,C]),P=(0,h.useCallback)(se=>{const{startTime:Ne,startY:Me,startHeight:$e}=R.current;if(!g||Me===null)return;const Ae=Me-(se?.clientY??se?.touches?.[0]?.clientY??0),at=$e+Ae;if(C(at),R.current.panelHeight=at,Ne!==null){const qe=performance.now()-Ne,lt=Ae/qe;R.current.velocity=lt}},[g]),j=(0,h.useCallback)(se=>{const{velocity:Ne}=R.current;if(!Ne)return;Object.assign(R.current,{startY:null,startHeight:null,startTime:null}),y(!1);const Me=window.innerHeight*.66;let $e;Math.abs(Ne)>.5?$e=Ne>0?window.innerHeight:150:$e=v>=Me?window.innerHeight:150,H($e),se instanceof MouseEvent&&(window.removeEventListener("mousemove",P),window.removeEventListener("mouseup",j))},[H,v,P]),O=(0,h.useCallback)(se=>{!g||I.current.contains(se.target)||T.current.contains(se.target)||(Object.assign(R.current,{startY:se?.clientY??se?.touches?.[0]?.clientY??null,startHeight:M.current?.clientHeight??0,startTime:performance.now()}),y(!0),se.nativeEvent instanceof MouseEvent&&(window.addEventListener("mousemove",P),window.addEventListener("mouseup",j)))},[P,j,g,y]);(0,h.useEffect)(()=>{let se;const Ne=()=>{M?.current?.style&&(M.current.style.transition="none",M.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Ae=>{Ae.style.transition="none"}))},Me=()=>{clearTimeout(se),se=setTimeout(()=>{M?.current?.style&&(M.current.style.transition="",M.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Ae=>{Ae.style.transition=""}))},200)};return window.addEventListener("resize",Ne),window.addEventListener("resize",Me),()=>{window.removeEventListener("resize",Ne),window.removeEventListener("resize",Me),clearTimeout(se)}},[]),(0,h.useEffect)(()=>{!u&&L.current&&C(0),a&&u&&M.current&&(M.current.focus(),o(vh({audioPlayerId:r,focusing:!1}))),L.current=u},[r,o,a,u]),(0,h.useEffect)(()=>{u&&l!==S.current&&(S.current=l)},[u,l]),(0,h.useEffect)(()=>{u&&N.current!==e&&o(Gc()),N.current=e},[e,u,o]),(0,h.useEffect)(()=>{u&&k.current!==f&&k.current!==void 0&&o(Gc()),k.current=f},[f,u,o]);const U={role:"button",tabIndex:0,onMouseDown:O,onTouchStart:O,onTouchEnd:j,onTouchMove:P},[W,z]=UG.useState(!1),re=(0,et.QQ)(W?S.current:l),fe=zG(re);let Ee;u&&(Ee=gh(r));const Oe=(0,h.useCallback)(()=>{const se=i??document.getElementById(Yf(r));return se?(se.focus(),!0):!1},[r,i]),Ue=(0,h.useCallback)(se=>{se.stopPropagation(),se.preventDefault(),o(Gc()),Oe()},[o,Oe]),we=(0,h.useCallback)(()=>{Oe()||I.current.focus()},[Oe]),Be=(0,h.useCallback)(()=>{I.current.focus()},[]),de=(0,h.useCallback)(se=>{r&&se.key==="Escape"&&Ue(se)},[r,Ue]);return(0,s.jsxs)(s.Fragment,{children:[u?(0,s.jsx)("div",{onFocus:we,tabIndex:0}):null,(0,s.jsx)(Ts.B1,{classNames:"transcript-panel",in:u,nodeRef:M,onEnter:()=>z(!1),onEntered:()=>z(!1),onEntering:()=>z(!1),onExit:()=>z(!0),onExited:()=>z(!1),onExiting:()=>z(!0),timeout:300,unmountOnExit:!0,children:(0,s.jsxs)("section",{"aria-hidden":!u,"aria-labelledby":d,className:oe()(Um({isOpen:u,isAnimatingMobileSwipe:b,isDragging:x})),id:Ee,onKeyDown:de,ref:M,style:g&&u?{height:`${v/10}rem`,minHeight:v>0?"33vh":void 0}:{}
173,tabIndex:-1,children:[(0,s.jsxs)("header",{...g?U:{},children:[(0,s.jsx)("h3",{id:d,ref:T,children:B?.audioTranscript}),(0,s.jsx)(Et.ArcButton,{"aria-label":B?.audioHideTranscript,className:Um("close-button"),hierarchy:"tertiary",icon:(0,s.jsx)(tt,{name:"close"}),layout:"icon",onClick:Ue,ref:I})]}),(0,s.jsx)("section",{className:Um("transcript-text",{"not-available":!fe}),children:fe||B?.audioNoTranscriptAvailable})]})}),u?(0,s.jsx)("div",{onFocus:Be,tabIndex:0}):null]})}var yl=c(26372);const l5={FORWARD:"page-transition",BACK:"page-transition-back"},Yu=({id:t,lessons:e})=>t==="progress-summary"?1/0:e.findIndex(n=>n.id===t),_G=t=>{window.parent.postMessage({type:"preview:lessonChange",data:t},"*")};function GG({currentLessonId:t,lessons:e,isProgressSummary:n}){const o=(0,Pe.Z)(),r=yl.useRef(!1),a=yl.useRef(t),i=yl.useCallback(()=>r.current?l5.FORWARD:l5.BACK,[]),l=yl.useCallback(u=>{const d=Yu({id:u,lessons:e});if(n)r.current=!1;else if(u==="progress-summary")r.current=!0;else{const m=Yu({id:t,lessons:e});r.current=m<d}o(`/lessons/${encodeURIComponent(u)}`)},[o,e,n,t]);return yl.useEffect(()=>{const u=Yu({id:t,lessons:e}),d=Yu({id:a.current,lessons:e});u!==d&&e.length>0&&(r.current=d<u),a.current=t,_G(t)},[t,e]),{getNavigateDirection:i,handleNavigate:l}}const $m=({course:t,courseProgress:e,didNavigate:n,lessons:o=[],previewType:r,sessionPreferences:a})=>{const i=(0,ce.g)(),l=(0,ce.zy)(),u=Ge.BI&&i.id==="progress-summary",[d]=(0,h.useState)(i.mode==="preview-lesson"),m=(0,h.useRef)(null),p=js(480),{getNavigateDirection:f,handleNavigate:g}=GG({currentLessonId:i.id,lessons:o,isProgressSummary:u}),v=(0,is.c3)(t),C=(0,h.useCallback)(()=>{v||(t.theme?.hideLessonHeaders?document.querySelector("main"):document.querySelector("h1"))?.focus({preventScroll:!0})},[t,v]),x=oe()("lesson",{"lesson--preview":d}),y=(0,X.wA)(),b=(0,h.useCallback)(({item:N,refs:k})=>{if(!N)return;const B="media"in N?N.media:null;y(Zf({audioPlayerId:fo({refs:k}),transcriptMedia:B}))},[y]),E=(0,h.useCallback)(()=>{y(Gc())},[y]),L=(0,h.useCallback)(N=>{y(vh(N))},[y]),T=un(i.id),I=(0,h.useMemo)(()=>T??{},[T]),S=(0,h.useMemo)(()=>({didNavigate:n,handleNavigate:g,handleStorylineFullscreen:mn.lQ,isMobileHeader:p,isProgressSummary:u,lessonProgress:I,navigateDirection:f,onNavigateTransitionEnd:mn.lQ,onPageReady:C,previewType:r}),[n,f,C,g,p,u,I,r]);return(0,s.jsxs)(VG,{children:[(0,s.jsxs)("div",{className:"page-lesson-wrap",children:[!v&&(0,s.jsx)(CN,{}),(0,s.jsxs)("div",{className:"page-lesson",children:[(0,s.jsx)(qk,{closeTranscript:E,mode:"readonly",onTranscriptUpdate:L,openTranscript:b,children:(0,s.jsx)("div",{className:x,"data-lesson":!0,ref:m,children:(0,s.jsx)("div",{className:"lesson__content",children:(0,s.jsx)("div",{className:"page-view page-view--visible",children:(0,s.jsx)(mP,{isPreviewLesson:d,children:v?(0,s.jsx)(MG,{courseProgress:e,isProgressSummary:u,lessonProgress:I,prefersKeyboardNavigation:a.prefersKeyboardNavigation,previewType:r}):(0,s.jsx)(K_,{isPreviewLesson:d,children:(0,s.jsx)(y_,{...S},l.pathname)})})})})})}),(0,s.jsx)(WG,{lessonId:String(e.currentLesson)})]})]}),(0,s.jsx)(ph,{onClose:C})]})},KG=t=>{const{course:e}=t,{exportSettings:n,lmsOptions:o}=e,r=n?.webExportSettings,a=n?.exportType==="raw",i=n?.exportType==="lms",l=a&&r?.disableCoverPage,u=i&&o?.disableCoverPage,d=!Mo.isInstantLink&&(l||u),m=e.lessonsOnly[0]?.id;return(0,s.jsxs)(ce.BV,{children:[(0,s.jsx)(ce.qh,{element:(0,s.jsx)($m,{...t}),path:"/lessons/:id"}),(0,s.jsx)(ce.qh,{element:(0,s.jsx)($m,{...t}),path:"/lessons/:id/:mode"}),d?(0,s.jsx)(ce.qh,{element:(0,s.jsx)(ce.C5,{replace:!0,to:(0,jt.p1)(m)}),index:!0}):(0,s.jsx)(ce.qh,{element:(0,s.jsx)(Gf,{...t}),index:!0}),d?(0,s.jsx)(ce.qh,{element:(0,s.jsx)(ce.C5,{replace:!0,to:(0,jt.p1)(m)}),path:"/:mode"}):(0,s.jsx)(ce.qh,{element:(0,s.jsx)(Gf,{...t}),path:"/:mode"})]})},Wm=q("one-page-cover-info");function QG({htmlIdTitle:t}){const e=Za("title");return(0,s.jsxs)("div",{className:Wm(),"data-change-path":e,children:[(0,s.jsx)(D6,{className:Wm("title").toString(),htmlId:t}),(0,s.jsx)(O6,{className:Wm("authors").toString()})]})}const ZG=At("OnePageCoverInfo",QG);function YG(t){const e=(0,Q1.A)(({forwardedRef:o,...r})=>(0,s.jsx)(t,{...r,ref:o})),n=(0,h.forwardRef)((o,r)=>(0,s.jsx)(e,{...o,forwardedRef:r}));return n.displayName=`withRouterRef(${t.displayName||t.name})`,n}const Xu=q("one-page-cover"),XG=q("cover");class JG extends h.Component{constructor(e){super(e),this.refLink=(0,h.createRef)(),this.refMain=(0,h.createRef)(),this.transitioning=!1,this.broadcastChannel=null}componentDidMount(){if(Df(),this.focusMain(),document.addEventListener("keyup",this.onKeyUp),document.addEventListener("wheel",this.onWheel,{passive:!0}),(0,is.No)(this.props.course)&&typeof BroadcastChannel<"u")try{this.broadcastChannel=new BroadcastChannel(q6),this.broadcastChannel.postMessage({type:t5,slideIndex:0}),this.broadcastChannel.onmessage=e=>{e.data.type===e5&&e.data.slideIndex===1&&!this.transitioning&&(this.transitioning=!0,this.transitionToLessonContent())}}catch{}}componentDidEnter(){this.focusMain()}componentWillUnmount(){document.removeEventListener("keyup",this.onKeyUp),document.removeEventListener("wheel",this.onWheel,{passive:!0}),this.broadcastChannel&&this.broadcastChannel.close()}focusMain=()=>{this.refMain.current?.focus?.()};getLessonPath=()=>{const e=this.props.lesson?.id;return e?(0,jt.p1)(e):null};transitionToLessonContent=()=>{const e=this.getLessonPath();if(e!=null){const o=this.props.course?.theme?.blockNavigationType===w.HC.STEPPED?"one-page-cover-to-lesson-stepped":"one-page-cover-to-lesson-continuous";Jo(()=>{this.props.navigate(e)},o)}};onClickStartArea=e=>{!this.refLink.current?.contains?.(e.target)&&!this.transitioning&&(this.transitioning=!0,this.transitionToLessonContent())};onClickStartLink=e=>{e.preventDefault(),this.transitioning||(this.transitioning=!0,this.transitionToLessonContent())};onKeyUp=e=>{(e.key==="ArrowDown"||e.key==="ArrowRight")&&!this.transitioning&&(this.transitioning=!0,document.removeEventListener("keyup",this.onKeyUp),this.transitionToLessonContent())};onWheel=e=>{Yc(this.props.previewType)||this.transitioning||e.deltaY>J6&&(this.transitioning=!0,document.removeEventListener("wheel",this.onWheel,{passive:!0}),this.transitionToLessonContent())};render(){const{props:{course:e}}=this,n=e?.coverPageType===w.BL.WHITE,o=e?.coverPageType===w.BL.VIDEO,r=e?.coverPageType===w.BL.IMAGE,a=e?.coverPageType===w.BL.ACCENT,i=e?.theme?.blockNavigationType===w.HC.STEPPED,l=e?.theme?.coverImageColor??w.df.DARK,u="title",m=`overlay-${l?.toLowerCase()}`,p=Xu("wrapper",{[m]:r,accent:a,image:r,white:n||o,video:o}).mix(XG("header-content"));return(0,s.jsxs)(tu,{onSwipeUp:this.transitionToLessonContent,children:[(0,s.jsxs)("main",{className:p,ref:this.refMain,tabIndex:"-1",children:[(0,s.jsx)(ZG,{htmlIdTitle:u}
173),i&&(0,s.jsx)("div",{className:"visually-hidden-always",children:"To quickly navigate between steps, use the up and down arrow keys or the step navigation found on subsequent steps."}),(0,s.jsx)("div",{className:Xu("start-wrapper"),onClick:this.onClickStartArea,children:(0,s.jsx)(yn,{"aria-label":"Start",className:Xu("start-link"),onClick:this.onClickStartLink,ref:this.refLink,to:this.getLessonPath(),children:(0,s.jsx)(tt,{className:Xu("start-icon"),name:"arrow-down"})})}),r&&(0,s.jsx)(y1,{})]}),(0,s.jsx)(ph,{onClose:this.focusMain})]})}}function qG(t){const e=Kt(t),n=(0,$t.Vu)(e);return{course:e,lesson:n}}const d5=st()(YG,(0,X.Ng)(qG,null,null,{forwardRef:!0}))(JG),eK=t=>{const{course:e}=t,{exportSettings:n,lmsOptions:o}=e,r=n?.webExportSettings,a=n?.exportType==="raw",i=n?.exportType==="lms",l=a&&r?.disableCoverPage,u=i&&o?.disableCoverPage,d=(0,is.VJ)(e),m=(0,is.cZ)(e);let p=!1;d||m?p=!0:Mo.isInstantLink?p=!1:p=l||u;const f=e.lessonsOnly[0].id;return(0,s.jsxs)(ce.BV,{children:[(0,s.jsx)(ce.qh,{element:(0,s.jsx)($m,{...t}),path:"/lessons/:id"}),p?(0,s.jsx)(ce.qh,{element:(0,s.jsx)(ce.C5,{replace:!0,to:(0,jt.p1)(f)}),index:!0}):(0,s.jsx)(ce.qh,{element:(0,s.jsx)(d5,{}),index:!0}),p?(0,s.jsx)(ce.qh,{element:(0,s.jsx)(ce.C5,{replace:!0,to:(0,jt.p1)(f)}),path:"/:mode"}):(0,s.jsx)(ce.qh,{element:(0,s.jsx)(d5,{}),path:"/:mode"})]})};class tK extends h.Component{constructor(e){super(e),this.passwordRef=(0,h.createRef)(),this.state={failAttempt:!1,shouldShake:!1}}static propTypes={onSubmit:ut().func.isRequired,failAttempt:ut().bool.isRequired};componentDidMount(){this.dialog.addEventListener("animationend",this.handleRemoveAnimationEnd.bind(this))}UNSAFE_componentWillReceiveProps({failAttempt:e}){const{shouldShake:n}=this.state;this.setState({failAttempt:e&&n})}componentWillUnmount(){this.dialog.removeEventListener("animationend",this.handleRemoveAnimationEnd.bind(this))}handleRemoveAnimationEnd(){this.setState({failAttempt:!1,shouldShake:!1})}onSubmitPassword(e){e.preventDefault();const{onSubmit:n}=this.props;this.setState({shouldShake:!0},()=>{n(this.passwordRef.current)})}render(){const{isOnePage:e}=this.props,{failAttempt:n}=this.state,o=oe()("brand--border","share-password-dialog",{"fail-password":n}),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,s.jsxs)("div",{className:o,ref:a=>{this.dialog=a},children:[(0,s.jsx)("h1",{className:"heading",children:"Enter Password"}),(0,s.jsx)("p",{className:"instructions",children:r}),(0,s.jsxs)("form",{onSubmit:this.onSubmitPassword.bind(this),children:[(0,s.jsx)("label",{className:"label",htmlFor:"share-password",children:"password"}),(0,s.jsx)("input",{className:"input",id:"share-password",ref:this.passwordRef,type:"password"}),(0,s.jsx)("div",{className:"dialog__toolbar",children:(0,s.jsx)("input",{className:"button brand--background",type:"submit",value:"View"})})]})]})}}const sK=t=>({isOnePage:it(t)}),nK=(0,X.Ng)(sK)(tK),_m=q("lesson-navigation-dropdown"),u5=({lessonTitle:t})=>(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:_m("option",{"ai-loading":!0}),children:[(0,s.jsx)(xs,{value:t||"Generating lesson..."}),(0,s.jsx)("div",{className:_m("ai-loading-progress"),children:(0,s.jsx)("div",{className:_m("spinner")})})]})});var h5=c(26372);const Ll=q("lesson-navigation-dropdown"),oK=({disabled:t,index:e,option:n,selectedLessonId:o,onSelect:r,getLessonPath:a})=>{const[i,l]=h5.useState(!0),u=`lesson-navigation-dropdown-section-${e}`,d=h5.useCallback(p=>{p.stopPropagation(),p.preventDefault(),l(f=>!f)},[]),m=Ll("group-header-icon",{collapsed:!i});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":u,"aria-expanded":i,className:Ll("group-header"),onClick:d,type:"button",children:[(0,s.jsx)(tt,{className:m,name:"caret-down"}),(0,s.jsx)("span",{className:Ll("group-header-text"),children:(0,s.jsx)(xs,{value:n.label})})]}),(0,s.jsx)(Vc,{inert:!i,children:(0,s.jsx)("ol",{"aria-hidden":i?void 0:!0,className:Ll("group-list",{collapsed:!i}),id:u,children:n.options?.map((p,f)=>{const g=String(p.value),v=t||p.disabled;return p.lesson?.settings?.isGeneratingAIContent?(0,s.jsx)(u5,{lessonTitle:p.label},`${g}-${f}`):(0,s.jsx)("li",{children:(0,s.jsx)(Fc,{className:Ll("option",{disabled:v,selected:p.value===o}),onClick:v?void 0:()=>r(g),to:v?void 0:a(g),children:(0,s.jsx)(xs,{value:p.label})})},`${g}-${f}`)})})})]})},rK=(t,e="section")=>t.reduce((n,o)=>(o.type===e?n.grouped.push([o]):n.grouped.length===0||n.grouped[n.grouped.length-1][0].type!==e?n.ungrouped.push(o):n.grouped[n.grouped.length-1].push(o),n),{grouped:[],ungrouped:[]}),aK=(t,e={})=>
173{if(!Array.isArray(t))return{options:[],hasGrouping:!1};const{sectionType:n}=e;if(!t.some(d=>d.type===n))return{options:t.filter(m=>m&&m.id).map(m=>({label:m.title||"Untitled Lesson",type:m.type,value:String(m.id),disabled:m.type===null,lesson:m})),hasGrouping:!1};const{grouped:r,ungrouped:a}=rK(t,n),i=r.map((d,m)=>{const[p,...f]=d,g=p&&"title"in p?p.title:void 0;return{label:g||"Untitled Section",type:p?.type||null,value:g||`section-${m}`,options:f.filter(v=>v&&v.id).map(v=>({label:v.title||"Untitled Lesson",type:v.type,value:String(v.id),disabled:v.type===null,lesson:v}))}}).filter(d=>d.options&&d.options.length>0);return{options:[...a.filter(d=>d&&d.id).map(d=>({label:d.title||"Untitled Lesson",type:d.type,value:String(d.id),disabled:d.type===null,lesson:d})),...i],hasGrouping:!0}};function iK(t="course-overview"){const e=(0,xe.DX)(),n=(0,xe.H7)()??{},o=(0,et.dx)(n),r=e.id,a=o,i=e.lessons||Object.keys(n),l=s3,u=aK,[d,m]=(0,h.useState)(t),p=(0,h.useMemo)(()=>Array.isArray(a)?a:i.map(b=>a[b]).filter(Boolean),[i,a]),{options:f,hasGrouping:g}=(0,h.useMemo)(()=>u(p,{sectionType:"section"}),[p,u]),v=(0,h.useMemo)(()=>{for(const b of f){if(b.value===d)return b.label??"Untitled Lesson";if(b.options){for(const E of b.options)if(E.value===d)return E.label??"Untitled Lesson"}}return d},[f,d]),C=(0,h.useMemo)(()=>{for(const b of f)if(b.value===d)return b.type??null;return null},[f,d]),x=(0,h.useCallback)(b=>{m(b),b==="course-stack"&&(window.location.href=l.courseLocales({courseId:r}))},[l,r]),y=(0,h.useCallback)(b=>{const E=typeof window<"u"&&window.location?.pathname?.includes("/authoring/");switch(b){case"course-overview":return E?l.course({courseId:r}):"/";case"course-stack":return l.courseLocales({courseId:r});default:return E?l.lesson({courseId:r,lessonId:b}):`/lessons/${b}`}},[r,l]);return{options:f,hasGrouping:g,selectedLessonId:d,selectedLessonType:C,selectedOptionLabel:v,onLessonChange:x,getLessonPath:y}}var ar=c(26372);const Co=q("lesson-navigation-dropdown"),cK=({disabled:t,options:e,selectedLessonId:n,handleOnSelect:o,getLessonPath:r})=>{const a=(0,xe.DX)(),i=(0,as.HX)(a);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:Co("course-nav-links"),children:[i&&(0,s.jsxs)(Fc,{className:Co("option",{selected:n==="course-stack","with-icon":!0}),onClick:()=>o("course-stack"),to:r("course-stack"),children:[(0,s.jsx)(Et.ArcIcon,{icon:"fa-regular fa-globe"}),(0,s.jsx)(xs,{value:"Course Stack"})]}),(0,s.jsxs)(Fc,{className:Co("option",{disabled:t,selected:n==="course-overview","with-icon":!0}),onClick:()=>o("course-overview"),to:r("course-overview"),children:[(0,s.jsx)(Et.ArcIcon,{className:Co("book-icon"),icon:"fa-regular fa-book-open"}),(0,s.jsx)(xs,{value:"Course Overview"})]})]}),(0,s.jsx)("div",{"aria-labelledby":"lesson-navigation-title",className:Co("list-header"),role:"group",children:(0,s.jsx)("div",{id:"lesson-navigation-title",children:(0,s.jsx)(xs,{value:"Lessons"})})}),(0,s.jsx)("ol",{className:Co("list"),children:e.map((l,u)=>{if(l.options&&l.options.length>0)return(0,s.jsx)("li",{children:(0,s.jsx)(oK,{disabled:t,getLessonPath:r,index:u,onSelect:o,option:l,selectedLessonId:String(n)})},`${String(l.value)}-${u}`);{const d=String(l.value),m=t||l.disabled;return l.lesson?.settings?.isGeneratingAIContent?(0,s.jsx)(u5,{lessonTitle:String(l.label)},d):(0,s.jsx)("li",{children:(0,s.jsx)(Fc,{className:Co("option",{disabled:m,selected:l.value===n}),onClick:m?void 0:()=>o(d),to:m?void 0:r(d),children:(0,s.jsx)(xs,{value:l.label})})},d)}})})]})},lK=({currentLessonId:t,sendTrackingEvent:e})=>{const[n,o]=ar.useState(!1),r=ar.useRef(!1),a=ar.useRef(null),{onLessonChange:i,options:l,selectedLessonId:u,selectedOptionLabel:d,getLessonPath:m}=iK(t),p=ar.useCallback(()=>{setTimeout(()=>{const b=document.querySelector("[popover]#lesson-navigation-dropdown");if(!b)return;const E=b.querySelector(`.${Co("option--selected")}`);E&&(E.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),E.focus())},100)},[]),f=ar.useCallback(b=>{if(!n)return;const E=document.querySelector("[popover]#lesson-navigation-dropdown");
173if(!E)return;const L=E.querySelectorAll(`.${Co("option")}, .${Co("group-header")}`);if(L.length===0)return;const T=document.activeElement,I=Array.from(L).indexOf(T);let S=I;switch(b.key){case"ArrowDown":b.preventDefault(),S=I===-1?0:(I+1)%L.length;break;case"ArrowUp":b.preventDefault(),S=I===-1?L.length-1:(I-1+L.length)%L.length;break;case"Home":b.preventDefault(),S=0;break;case"End":b.preventDefault(),S=L.length-1;break;case"Escape":b.preventDefault(),Et.ArcPopover.handlePopover("lesson-navigation-dropdown","hide");return;case"Enter":case" ":case"Space":b.preventDefault(),I>=0&&L[I]?.click();return;default:return}L[S]?.focus(),L[S]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[n]);ar.useEffect(()=>{if(n)return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[n,f]);const g=ar.useCallback(b=>{i(b),Et.ArcPopover.handlePopover("lesson-navigation-dropdown","hide")},[i]),v=ar.useCallback(b=>{n||(b.currentTarget.style.borderColor="var(--arc-color-border-stark)")},[n]),C=ar.useCallback(b=>{b.currentTarget.style.borderColor="transparent"},[]),x={backgroundColor:"var(--arc-color-background-secondary)",borderRadius:"var(--arc-border-radius-md)",height:"var(--arc-size-4)",paddingInline:"var(--arc-space-1-5)",border:"var(--arc-border-width-sm) solid transparent",transition:"border-color 0.2s ease"},y={fontSize:"1.1rem",fontWeight:"var(--arc-font-weight-600)",marginBlockStart:"var(--arc-space-0-25)"};return(0,s.jsx)("nav",{children:(0,s.jsx)(Et.ArcPopover,{anchorAt:"bottom-start",anchorProps:{iconEnd:(0,s.jsx)("i",{className:"fa-regular fa-chevron-down",style:y}),layout:"hug",onMouseEnter:v,onMouseLeave:C,style:x,text:d,variant:"tertiary",ref:a},"aria-labelledby":"lesson-navigation-title",className:Co(),hasTail:!1,id:"lesson-navigation-dropdown",onToggle:b=>{const E=b.newState==="open";if(o(E),E)e();else{r.current=!1;return}r.current||(p(),r.current=!0)},variant:"common",children:(0,s.jsx)(cK,{disabled:!1,getLessonPath:m,handleOnSelect:g,options:l,selectedLessonId:String(u)})})})},El=q("app-header"),dK=({children:t,className:e="",currentLessonId:n,isArcButtonGroup:o=!1,isAIAssistantEnabled:r=!1,isBlockActionsSidebarOpen:a=!1,isMicrolearning:i=!1,localesDropdown:l=null,menuButton:u=null,sendLessonNavDropdownTrackingEvent:d=()=>{},snapshotDropdown:m=null,versionDropdown:p=null,title:f})=>{const g=El({v2:r}).mix(e),v=!!(m||l||p),x=n!=null&&n!=="course-overview"&&!Ge.BI&&!i&&!a;return(0,s.jsxs)("div",{className:g,dir:"ltr",id:"app-header",children:[u,(0,s.jsxs)("div",{className:El("title-dropdowns"),children:[f&&!x&&(0,s.jsx)("div",{className:El("title"),"data-testid":"AppHeaderTitle",children:(0,s.jsx)(xs,{value:f})}),x&&(0,s.jsx)(lK,{currentLessonId:n,sendTrackingEvent:d}),v&&(0,s.jsxs)("div",{className:El("dropdowns"),children:[m,l,p]})]}),(0,s.jsx)("div",{className:El("btn-group",{arc:o}),"data-testid":"AppHeaderButtonGroup",children:t})]})},uK=t=>oe()("button",{[t.className]:!on()(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}),hK=({icon:t})=>t?(0,s.jsx)("i",{className:`button__icon icon-${t}`}):null,mK=({onlyIcon:t,children:e})=>h.Children.map(e,n=>t&&n.type===void 0?null:n),pK=({accent:t,ariaControls:e,ariaExpanded:n,ariaHidden:o,ariaLabel:r,ariaPressed:a,branded:i,className:l,children:u,condensed:d,controls:m,controlsEnhanced:p,disabled:f,el:g,extraPadding:v,header:C,headerDone:x,icon:y,inverted:b,mode:E,next:L,onClick:T=Function.prototype,onlyIcon:I,onMouseDown:S=Function.prototype,outline:N,outlineTransparent:k,sidebar:B,tabIndex:M,type:R,...H})=>{const P=g||"button";return P==="button"&&!R&&(R="button"),(0,s.jsxs)(P,{"aria-controls":e,"aria-expanded":n,"aria-hidden":o,"aria-label":r,"aria-pressed":a,className:uK({accent:t,branded:i,className:l,condensed:d,controls:m,controlsEnhanced:p,disabled:f,extraPadding:v,header:C,headerDone:x,inverted:b,mode:E,next:L,outline:N,outlineTransparent:k,sidebar:B}),disabled:f,onClick:T,onMouseDown:S,tabIndex:M,type:R,...H,children:[(0,s.jsx)(hK,{icon:y}),mK({onlyIcon:I,children:u})]})};var an,m5,fK,vK,p5,gK,CK,xK,Gm,f5,bK,yK;const zo=q("app-header"),v5=(0,Ge._$)("CDN_URI"),LK=({disabled:t,onClick:e})=>(0,s.jsx)("button",{className:zo("promo-btn"),disabled:t,onClick:e,type:"button",children:"New"}),g5=({children:t,disabled:e=!1,done:n=!1,onClick:o=()=>{},tooltipText:r="",icon:a=null,isNewPromo:i=!1,el:l="button",href:u=void 0,external:d=!1,capitalize:m=!0,...p})=>{const f=(0,Pe.Z)(),g=(0,h.useCallback)(async C=>{e||(o&&await o(C),u&&(d?window.location.href=u:f(u)))},[f,u,o,e,d]),v=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(pK,{disabled:e,el:u?"a":l,header:!n,headerDone:n,onClick:g,style:m?null:{textTransform:"none",fontWeight:600,fontSize:"1.4rem",letterSpacing:0},...p,children:t}),i&&(0,s.jsx)(LK,{disabled:e,onClick:g}),a]});return(0,s.jsx)(Et.ArcTooltip,{anchorAt:"left-center","data-testid":"AppHeaderButtonTooltipContainer",isEnabled:e&&!!r,text:r,children:v})};g5.propTypes={children:ut().node,disabled:ut().bool,done:ut().bool,el:ut().string,href:ut().string,onClick:ut().func,tooltipText:ut().string,dataBa:ut().string};const gne=()=>an("div",{className:zo("divider")}),Cne=({href:t,label:e,onClick:n,xhref:o,...r})=>{const a=vK(),i=p5(async l=>{if(o||l.preventDefault(),n)return n();t&&a(t)},[t,o,a,n]);return an("div",{className:zo("menu-btn"),...r,children:an("a",{"aria-label":e,className:zo("menu-close"),href:o,onClick:i,children:an(xK,{})})})},xne=({onClick:t,label:e,...n})=>
173{const o=yK("rise-lesson-nav-dropdown-release"),r=bK(),a=!!r?.defaultLocaleId,l=window.location.search.includes("fromDashboard")||!r?.id,u=r?.id?Gm.course({courseId:r.id}):null,d=p5(m=>{t&&t(m)},[t]);return an(m5,{children:o?an(m5,{children:a?fK(f5,{className:zo("menu-btn"),onClick:d,to:Gm.courseLocales,...n,children:[an(CK,{className:zo("back-icon"),icon:"fa-regular fa-chevron-left"}),an("div",{className:"visually-hidden-always",children:e})]}):l?an("a",{className:zo("menu-btn"),href:Gm.dashboard,onClick:d,...n,children:an("img",{alt:e,src:`${v5}/assets/rise/assets/articulate-a-logo.svg`})}):an(f5,{className:zo("menu-btn"),onClick:d,to:u,...n,children:an("img",{alt:e,src:`${v5}/assets/rise/assets/articulate-a-logo.svg`})})}):an("div",{className:zo("menu-btn"),children:an(gK,{ariaLabel:e,icon:"up-level-2",onClick:t,...n})})})},bne=({children:t,...e})=>an("div",{className:zo("owner-label"),...e,children:t});var Ju=c(26372);const Ks=q("curtain"),EK=({labelCurtainLoading:t="Your content is loading.",labelCurtainOffline:e="Your computer is offline.",labelCurtainOfflineReconnecting:n="Attempting to reconnect\u2026",labelCurtainSessionTimedOut:o="Your session has timed out.",labelCurtainSessionTimedOutRefresh:r="Refresh",labelCurtainSessionTimedOutRestart:a="Click refresh to restart your session.",labelCurtainSomethingWrong:i="Something went wrong.",labelCurtainSomethingWrongRefresh:l="Refresh",labelCurtainSomethingWrongTryAgain:u="Click to refresh and try again.",loadingText:d,showHeader:m,status:p})=>{const[f,g]=Ju.useState(!1),v=()=>g(!0),C=Ju.useRef(null);return Ju.useEffect(()=>(C.current=setTimeout(v,1e4),()=>{C.current&&clearTimeout(C.current)}),[]),Ju.useEffect(()=>{if(p==="error"){const x=new Error("There was a socket connection error. The renderReconnect curtain was displayed");Fg.y.logger.error(x.message,x)}},[p]),p==="fatalError"?(0,s.jsx)(IK,{labelCurtainSomethingWrong:i,labelCurtainSomethingWrongRefresh:l,labelCurtainSomethingWrongTryAgain:u,showHeader:m}):p==="error"&&f?(0,s.jsx)(NK,{labelCurtainSessionTimedOut:o,labelCurtainSessionTimedOutRefresh:r,labelCurtainSessionTimedOutRestart:a,showHeader:m}):p==="error"?(0,s.jsx)(SK,{labelCurtainOffline:e,labelCurtainOfflineReconnecting:n,showHeader:m}):(0,s.jsx)(TK,{labelCurtainLoading:t,showHeader:m,text:d})},C5=()=>window.location.reload(),TK=({labelCurtainLoading:t,showHeader:e,text:n})=>(0,s.jsx)("div",{className:Ks("container",{"show-header":e}),children:(0,s.jsxs)("div",{className:Ks(),children:[(0,s.jsx)("div",{className:Ks("spinner")}),(0,s.jsx)("div",{className:Ks("text"),children:n||t})]})}),IK=({labelCurtainSomethingWrong:t,labelCurtainSomethingWrongRefresh:e,labelCurtainSomethingWrongTryAgain:n,showHeader:o})=>(0,s.jsx)("div",{className:Ks("container",{"show-header":o}),children:(0,s.jsxs)("div",{className:Ks(),children:[(0,s.jsx)("div",{className:Ks("title"),children:t}),(0,s.jsx)("div",{className:Ks("description"),children:n}),(0,s.jsx)(Et.ArcButton,{onClick:C5,children:e})]})}),SK=({labelCurtainOffline:t,labelCurtainOfflineReconnecting:e,showHeader:n})=>(0,s.jsx)("div",{className:Ks("container",{"show-header":n}),children:(0,s.jsxs)("div",{className:Ks(),children:[(0,s.jsx)("div",{className:Ks("spinner",{reconnect:!0})}),(0,s.jsx)("div",{className:Ks("title"),children:t}),(0,s.jsx)("div",{className:Ks("description"),children:e})]})}),NK=({labelCurtainSessionTimedOut:t,labelCurtainSessionTimedOutRefresh:e,labelCurtainSessionTimedOutRestart:n,showHeader:o})=>(0,s.jsx)("div",{className:Ks("container",{"show-header":o}),children:(0,s.jsxs)("div",{className:Ks(),children:[(0,s.jsx)("div",{className:Ks("title"),children:t}),(0,s.jsx)("div",{className:Ks("description"),children:n}),(0,s.jsx)(Et.ArcButton,{onClick:C5,children:e})]})}),x5=EK;var jK=c(61162);function kK({children:t,locale:e,...n}){const o=(0,ce.zy)(),r=(0,et.D_)(),a=(0,h.useMemo)(()=>{const i=e===r?"":e,l=new URLSearchParams(o.search);return l.set("locale",i),o.pathname+"?"+l.toString()+o.hash},[r,e,o]);return(0,s.jsx)(yn,{...n,to:a,children:t})}const Uo=q("locales-dropdown"),AK=({backToStackCourseId:t,currentLocale:e,defaultLocale:n,locales:o,message:r,onChange:a,optionType:i,showMessageIndicator:l})=>{const u=(0,h.useRef)(null),d=(0,h.useRef)(null),[m,p]=(0,h.useState)(!1),[f,g]=(0,h.useState)(!1),v=(0,h.useMemo)(()=>o.filter(L=>L.localeCode!==n),[n,o]),C=(0,h.useMemo)(()=>o.find(L=>L.localeCode===n),[n,o]),x=(0,h.useMemo)(()=>o.find(L=>L.localeCode===e),[e,o]);(0,h.useLayoutEffect)(()=>{m&&f&&(u.current?.querySelector(`[data-locale="${e}"]`)?.focus(),g(!1))},[m,f,e]),(0,h.useEffect)(()=>{const L=T=>{pn(T)&&(d.current?.focus(),p(!1)),Nd(T)&&setTimeout(()=>{u.current.contains(document.activeElement)||p(!1)},0)};return m&&document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[m]);const y=(0,h.useCallback)(L=>
173{!m&&document.activeElement===L.currentTarget&&g(!0),p(!m)},[m]),b=(0,h.useCallback)(L=>{m&&!d.current?.contains(L?.target)&&p(!1)},[m]);(0,jK.A)(u,b),(0,h.useEffect)(()=>{const L=()=>setTimeout(()=>{document.activeElement.tagName==="IFRAME"&&b()},0);return window.addEventListener("blur",L),()=>window.removeEventListener("blur",L)},[b]);const E=(0,h.useCallback)(L=>{document.activeElement===L.currentTarget&&d.current?.focus(),p(!1),a?.(L.currentTarget.getAttribute("data-locale"))},[a]);return(0,s.jsxs)("div",{className:Uo({isOpen:m}),children:[(0,s.jsx)("div",{className:Uo("trigger-wrap"),children:(0,s.jsxs)("button",{className:Uo("trigger"),onClick:y,ref:d,type:"button",children:[l&&(0,s.jsx)("div",{className:Uo("message-indicator")}),(0,s.jsx)(tt,{name:"globe"}),x.displayName,(0,s.jsx)(tt,{name:"chevron-down"})]})}),(0,s.jsxs)("div",{className:Uo("contents"),ref:u,children:[r,(0,s.jsx)("div",{className:Uo("grouping-header"),children:"Source"}),(0,s.jsx)(b5,{checked:n===e,locale:C,onClick:E,type:i}),(0,s.jsx)("div",{className:Uo("grouping-header"),children:"Translations"}),v.map(L=>(0,s.jsx)(b5,{checked:L.localeCode===e,locale:L,onClick:E,type:i},L.localeCode)),t&&(0,s.jsx)("a",{className:Uo("stack-button"),href:`/manage/locales/${t}`,children:"Back to Stack"})]})]})},b5=({checked:t,locale:e,onClick:n,type:o})=>o==="link"?(0,s.jsx)(kK,{className:Uo("option",{checked:t}),"data-locale":e.localeCode,locale:e.localeCode,onClick:n,children:e.displayName},e.localeCode):(0,s.jsx)("button",{className:Uo("option",{checked:t}),"data-locale":e.localeCode,onClick:n,type:"button",children:e.displayName},e.localeCode),RK=({hideBackToStack:t,...e})=>{const n=(0,xe.DX)(),{currentLocale:o}=(0,wt.nY)(),r=(0,et.jc)(),a=(0,et.D_)(),i=mh(),l=t?void 0:n?.id,u=(0,h.useMemo)(()=>r.map(d=>({localeCode:d.locale,displayName:i(d.locale)})),[i,r]);return(0,s.jsx)(AK,{backToStackCourseId:l,currentLocale:o,defaultLocale:a,locales:u,optionType:"link",...e})},y5=window.location.origin,PK=1e3,wK="course:ready",L5="localizedSharePreview:ready",MK="preview:selectLocale",Km="localizedSharePreview:toggleCurtain",E5="localizedSharePreview:togglePreview",Hi=q("localized-share-preview"),Fi=!!window.frameElement,T5=t=>(0,as.HX)(t)&&(0,Je.GS)(),OK=t=>T5(t)&&!Fi,DK=(t,e)=>window.parent?.postMessage({type:t,data:e});let I5=null;const BK=({children:t})=>{const e=(0,X.wA)(),n=(0,Pe.Z)(),o=(0,ce.zy)(),{currentLocale:r,setCurrentLocale:a}=(0,wt.nY)(),i=(0,et.D_)(),l=Fe(),u=gt(),m=!!(u&&"hasPassword"in u?u.hasPassword:void 0)||(0,Je.og)(),p=(0,h.useRef)(null),[f,g]=(0,h.useState)(!1),[v,C]=(0,h.useState)(!1),[x,y]=(0,h.useState)(!m),b=(0,h.useMemo)(()=>`${y5}/share/${window.shareId}#/?locale=${r}`,[]),[E,L]=(0,h.useState)(null),[T,I]=(0,h.useState)(r),[S,N]=(0,h.useState)(!1),[k,B]=(0,h.useState)(!Fi),M=(H,P)=>p.current?.contentWindow.postMessage({type:H,data:P});(0,h.useEffect)(()=>{Fi||M(MK,r)},[r]),(0,h.useEffect)(()=>{Fi&&(DK(L5),setTimeout(()=>N(!0),0))},[]),(0,h.useEffect)(()=>{const H=P=>{if(P.origin!==y5)return;const O=P.data?.type,U=P.data?.data;if(Fi)switch(O){case Km:{B(U);break}case E5:{U?(I(r),L(o),e((0,hh.Wp)(!0)),a(i),n("/",{replace:!0})):(e((0,hh.Wp)(!1)),a(T),n(E.pathname+E.search+E.hash||"/",{replace:!0})),document.querySelector(".cover")?.scrollTo(0,0),document.querySelector(".page-wrap")?.scrollTo(0,0);break}}else switch(O){case wK:{B(!1);break}case L5:{y(!0);break}}};return window.addEventListener("message",H),()=>{window.removeEventListener("message",H)}},[i,e,n,r,o,T,E,a]);const R=(0,h.useCallback)(()=>{const H=!f;clearTimeout(I5),C(!0),M(Km,!0),I5=setTimeout(()=>{C(!1),M(Km,!1),g(H)},PK),setTimeout(()=>{M(E5,H)},0)},[f]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Hi("curtain",{hide:!k}),children:(0,s.jsx)(x5,{})}),Fi?S&&t:(0,s.jsxs)("div",{className:Hi(),children:[x&&(0,s.jsx)(dK,{className:Hi("header"),localesDropdown:!f&&!v&&(0,s.jsx)(RK,{hideBackToStack:!0}),title:l,children:(0,s.jsx)(g5,{capitalize:!1,className:Hi("preview-button"),disabled:v,done:!0,onClick:R,children:f?"Close Learner Preview":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tt,{className:Hi("preview-button-icon"),name:"play-regular"}),"Preview as Learner"]})})}),(0,s.jsx)("iframe",{allowFullScreen:!0,"aria-label":"Course preview",className:Hi("iframe"),ref:p,src:b})]})]})},HK=(0,h.lazy)(()=>c.e("_b106").then(c.t.bind(c,63744,23))),FK=({children:t})=>{const e=(0,xe.qm)(),{setCurrentLocale:n,currentLocale:o}=(0,wt.nY)(),r=(0,et.QQ)(e?.course.title),a=e?.l10n?.languageCodeMetadata??{},i=Object.entries(a).map(([l,u])=>({code:l,learnerDisplayName:u.learnerDisplayName})).sort((l,u)=>l.learnerDisplayName.localeCompare(u.learnerDisplayName));return(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(HK,{courseTitle:r,currentLocale:o,locales:i,setCurrentLocale:n,children:t})})};class VK extends h.Component{static defaultProps={scope:"error-boundary"};constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return console.error(e),{hasError:!0,error:e}}render(){const{hasError:e,error:n}=this.state,{FallbackComponent:o}=this.props;return e||n?(0,s.jsx)(o,{}):this.props.children}}const zK=VK;var UK=c(38870);const $K=(0,h.lazy)(()=>c.e("webpack_container_remote_learn_distribution_frontend_learn_ai-learner-popout").then(c.t.bind(c,68789,23))),WK=()=>{const t=(0,et.dx)(gt()),e=(0,xe.Wz)(),n=Zr(),{currentLocale:o}=(0,wt.nY)(),r=window,a=r?.growth?.getSubscription?.()?.id||t?.tenantId||void 0,i=r?.growth?.getUser?.()?.id||`learner_${t.author}`,l=async()=>{try{await(0,UK.wD)()}catch{}};return t.settings?.aiTutorEnabled?(0,s.jsx)(zK,{FallbackComponent:()=>null,children:(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)($K,{apiKey:t.aiLearnerCourseApiKey,c
173ourse:t,currentLessonId:n,currentLocale:o,resetSession:l,rtl:e,subscriptionId:a,userId:i})})}):null};var qu=c(26372);const S5=qu.createContext({typefaces:[]});function _K({addTypefaces:t,children:e,typefaces:n=[]}){GK(n);const o=qu.useMemo(()=>({addTypefaces:t,typefaces:n}),[t,n]);return(0,s.jsx)(S5.Provider,{value:o,children:e})}function Lne(){return qu.useContext(S5)}function GK(t){qu.useEffect(()=>{const e=new CSSStyleSheet;for(const n of t){const o=`[data-rise-typeface-id="${CSS.escape(n.id)}"] { font-family: "${CSS.escape(n.name)}"; }`;e.insertRule(o)}return e.insertRule('[data-rise-typeface-id="@@heading@@"] { font-family: var(--font-family-head); }'),e.insertRule('[data-rise-typeface-id="@@body@@"] { font-family: var(--font-family-body); }'),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(n=>n!==e)}},[t])}var KK=c(26372);function QK({children:t}){const e=(0,X.d4)(o=>o.fonts),n=KK.useMemo(()=>{const o=new Map;for(const r of e)o.set(r.id,{id:String(r.id),name:r.name,default:r.default});return Array.from(o.values())},[e]);return(0,s.jsx)(_K,{typefaces:n,children:t})}const N5=Object.assign(document.createElement("div"),{id:"portal"});function j5(t){(t??document.body).appendChild(N5),N5.style.display=t?"":"none"}j5();const ZK=(t,e)=>!(t==="firstLesson"&&e.includes("/lessons/"))&&!(t==="cover"&&(e==="/"||e==="/preview")),YK=t=>["preview:lessonUpdate","preview:navigate","preview:overlayNavClose","preview:scrollto","preview:showLessonNavNext","preview:showLessonNavPrev","preview:themeUpdate","preview:update","preview:navOpen","preview:navClose","preview:replace","preview:changeset","preview:selectLocale",hn.FOCUS,hn.TOGGLE,hn.CLEAR,hn.TRANSLATION_HOVERED,hn.TRANSLATION_HOVER_CLEAR].includes(t),XK=t=>t===window.location.origin||t==="articulate.com"||t.endsWith(".articulate.com"),JK=({course:t,fonts:e,l10n:n})=>()=>((0,X.JD)((0,$c.V7)({course:t,fonts:e,l10n:n})),ni().Resolved()),qK=()=>(window.parent.postMessage({type:"preview:themeUpdateComplete"},window.location.origin),ni().Resolved()),eQ=({course:t,fonts:e,l10n:n})=>ni()((o,r)=>{(0,zj.U2)(e,r)}).chain(JK({course:t,fonts:e,l10n:n})).chain(qK),tQ=t=>T5(t)?BK:Mo.isInstantLink?FK:h.Fragment;function sQ(t){const e=(0,ce.zy)(),n=(0,h.useRef)(e);(0,h.useEffect)(()=>{n.current!==e&&(t(),n.current=e)},[e,t])}const nQ=()=>{let t=[],e=0;return n=>{clearTimeout(e);for(const o of n)t.push(o);e=setTimeout(()=>{const o=t;t=[],(0,X.JD)((0,$c.TJ)(o))},15)}};class oQ extends h.Component{constructor(e){super(e),this.state={didNavigate:!1,previewType:"",failAttempt:!1,scrollTo:null,isInvalidPassword:!0,targetModeContext:{translationHoveredPath:null}},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),this.handleLocationChange=this.handleLocationChange.bind(this),window.targetMode=L7({locale:e.currentLocale})}handleLocationChange(){this.setState({didNavigate:!0})}UNSAFE_componentWillMount(){const{l10n:e}=this.props;Ln.isIe11&&document.documentElement.classList.add("ie11"),Ln.isSafari9&&document.documentElement.classList.add("safari9"),Ln.isIphoneSafari&&document.documentElement.classList.add("iphone-safari"),Ln.isSafari&&this.props.match.params.mode==="iframe"&&FN().enable(),window.addEventListener("message",this.handleMessage),window.parent.postMessage({type:"ready"},"*"),window.parent.postMessage({type:hn.STATUS,data:!!window.targetMode},"*"),(0,Je.xr)()&&window.parent.postMessage({type:"preview:snapshotLoaded",data:{defaultLocale:e?.defaultLocale,locales:e?.locales?.map(({locale:n})=>n)}}),_j(n=>(0,X.JD)((0,Pf.xi)(n))),this.updateRTL()}componentDidMount(){const{currentLocale:e,languageCode:n}=this.props;document.documentElement.lang=e??n,(0,Ps.on)("favoriteAdded",this.onFavoriteAdded),(0,Ps.on)("favoriteRemoved",this.onFavoriteRemoved),document.addEventListener("click",()=>{window.parent.postMessage("coursePreviewIframeClicked","*")})}updateConnectionStatus(e){(0,X.JD)((0,wf.zq)(e))}componentDidUpdate(){const{currentLocale:e,languageCode:n}=this.props;document.documentElement.lang=e??n,this.updateRTL(),this.state.didNavigate&&setTimeout(()=>{this.setState({didNavigate:!1})},0)}componentWillUnmount(){window.removeEventListener("message",this.handleMessage),(0,Ps.AU)("favoriteAdded",this.onFavoriteAdded),(0,Ps.AU)("favoriteRemoved",this.onFavoriteRemoved)}isRTLEnabled(){const{course:e,l10n:n,currentLocale:o}=this.props;return(0,Vj.V)({course:e,locales:n?.locales,locale:o})}updateRTL(){this.isRTLEnabled()?document.documentElement.dir="rtl":document.documentElement.dir=""}handleMessage(e){const{data:n,origin:o}=e;if(!XK(o))return;const{navigate:r,location:a={},setCurrentLocale:i}=this.props,{pathname:l}=a,{course:{lessonsOnly:u}}=this.props;
173(0,ON.A)(n).forEach(({type:d,data:m})=>{if(YK(d)){if(d===hn.TOGGLE&&window.targetMode(m,p=>{window.parent.postMessage({type:hn.HOVERED,data:p},"*")}).then(p=>{window.parent.postMessage({type:hn.SELECTED,data:p},"*")}).catch(()=>{window.parent.postMessage({type:hn.SELECTED,data:[]},"*")}),d==="preview:update"&&this.setState({previewType:m}),d==="preview:themeUpdate"&&this.handleThemePreviewUpdate(m),d==="preview:navigate"){let{type:p,lessonId:f,itemId:g,path:v,replace:C}=m;const x=C?y=>r(y,{replace:!0}):r;if(ZK(p,l)){if(Array.isArray(v)){const y=(0,Z2.Ce)(v);if(y)({type:p,lessonId:f,itemId:g}=y);else if(v[0]==="mondrian"){const{course:b}=this.props;for(const E of b.lessons){const L=E.items.find(T=>T.blockumentId===v[1]);if(L){p="lesson",f=E.id,g=L.id;break}}}else return}if(p==="firstLesson")x(`/lessons/${u[0].id}`);else if(p==="cover"||p==="course")x("/");else if(p==="lesson"&&u.find(({id:b})=>b===f)!=null){const b=()=>{window.dispatchEvent(new CustomEvent(Zt,{detail:{lessonId:f,itemId:g,path:v}}))};`/lessons/${f}`!==l?(x(`/lessons/${f}`),setTimeout(b,1500)):b()}}}if(d===hn.CLEAR&&window.dispatchEvent(new CustomEvent($1)),d==="preview:navOpen"&&window.dispatchEvent(new CustomEvent(hf)),d==="preview:navClose"&&window.dispatchEvent(new CustomEvent(mf)),d==="preview:showLessonNavPrev"&&window.dispatchEvent(new CustomEvent(Od)),d==="preview:showLessonNavNext"&&window.dispatchEvent(new CustomEvent(Dd)),d==="preview:scrollto"&&typeof m.target=="string"){const p=document.querySelector(m.target);p&&(0,VN.A)(p,{behavior:"smooth",block:"start"})}d==="preview:replace"&&(0,X.JD)((0,$c.HC)(m)),d==="preview:changeset"&&this.applyChangesetDebounced(m),d==="preview:selectLocale"&&i(m,"replace"),d===hn.FOCUS&&I7(m.path),d===hn.TRANSLATION_HOVERED&&(this.setState({targetModeContext:{translationHoveredPath:m.path}}),T7(m.path)),d===hn.TRANSLATION_HOVER_CLEAR&&(this.setState({targetModeContext:{translationHoveredPath:null}}),y7()),d==="preview:lessonUpdate"&&this.handleLessonPreviewUpdate(m)}})}cancelThemePreviewUpdate(){}handleThemePreviewUpdate({course:e,l10n:n,fonts:o,theme:r}){this.cancelThemePreviewUpdate();const{course:a}=this.props,i=po()("theme",r,e),l=(0,zN.MT)({course:a,updates:i});this.cancelThemePreviewUpdate=eQ({course:l,fonts:o,l10n:n}).fork(console.warn,mn.lQ)}handleLessonPreviewUpdate(e){(0,X.JD)((0,$c.YB)(e)),window.parent.postMessage({type:"preview:lessonUpdateComplete"},window.location.origin)}onSharePasswordSubmit(e){return(0,Je.m5)(e.value).then(({isValid:n})=>{n?this.setState({isInvalidPassword:!1}):(e.value="",this.setState({failAttempt:!0,isInvalidPassword:!0}))}).catch(n=>console.error("Verify password error",n))}onFavoriteAdded(){(0,X.JD)((0,Rf.nF)())}onFavoriteRemoved(){(0,X.JD)((0,Rf.pp)())}applyChangesetDebounced=nQ();renderAppLayout(){if(!this.props.course)return null;const{course:e,course:{bodyTypeface:n,color:o,headingTypeface:r,themeId:a,theme:i,uiTypeface:l},courseProgress:u,currentLocale:d,l10n:m,labels:p,languageCode:f,lessons:g,partnerContent:v,search:C,sessionPreferences:x}=this.props,{didNavigate:y,previewType:b,targetModeContext:E}=this.state,L=m?.localeLabelSets?.[d]?.labels||p,T=m?.localeLabelSets?.[d]!=null?d:f,I={course:e,courseProgress:u,didNavigate:y,lessons:g,previewType:b,sessionPreferences:x},S=i?.accentContrast,N=(0,is.c3)(e),k={accentContrast:S,bodyTypeface:n,color:o,headingTypeface:r,isLegacyCourse:e?.isLegacyCourse,uiTypeface:l},B=oe()("theme",a,{"one-page":N}),M=tQ(e),R=N?eK:KG;return(0,s.jsx)(xe.rv,{course:e,courseProgress:u,l10n:m,labels:L,labelsLocale:T,partnerContent:v,search:C,children:(0,s.jsx)(ME,{themeId:a,children:(0,s.jsx)(nh,{courseColor:o,children:(0,s.jsx)(PV,{value:E,children:(0,s.jsx)(QK,{children:(0,s.jsxs)("div",{className:B,id:"innerApp",ref:j5,children:[(0,s.jsx)(ok,{...k}),(0,s.jsx)(Ff,{env:"runtime",children:(0,s.jsx)(M,{children:(0,s.jsxs)(la,{children:[(0,s.jsx)(R,{...I}),(0,s.jsx)(WK,{})]})})})]})})})})})})}showPasswordDialog(){const{isInvalidPassword:e}=this.state,{course:n}=this.props,{hasPassword:o}=n;return e&&(0,Je.GS)()&&!OK(n)&&(!!o||(0,Je.og)())}render(){const{failAttempt:e}=this.state,{onSharePasswordSubmit:n}=this;return this.showPasswordDialog()?(0,s.jsx)(nK,{failAttempt:e,onSubmit:n}):this.renderAppLayout()}}function rQ(t){const e=(0,h.useRef)(null);return sQ(()=>{e.current&&e.current.handleLocationChange()}),(0,s.jsx)(oQ,{...t,ref:e})}const aQ=st()(Q1.A,wt.wZ)(rQ),Qm=q("not-found"),iQ=()=>(0,s.jsx)(la,{title:Uc(),children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:Qm(),children:(0,s.jsxs)("div",{className:Qm("copy"),children:[(0,s.jsx)("h1",{className:Qm("copy",{heading:!0}
173),tabIndex:-1,children:"Hmm..."}),(0,s.jsx)("div",{children:"We can't seem to find the page you're looking for."})]})})})});var cQ=c(39801);function k5(){return(0,X.d4)(t=>{const{course:e,courseLabels:n,courseProgress:o,fonts:r,l10n:a,partnerContent:i,search:l,sessionPreferences:u,status:d}=t;return{course:e,courseProgress:o,fonts:r,l10n:a,labels:n.labels,languageCode:e?.locale??n?.iso639Code,lessons:e&&e.lessons,partnerContent:i,search:l,sessionPreferences:u,status:d}})}function lQ(){const t=(0,X.wA)();(0,h.useEffect)(()=>{t((0,$c.EL)()),t((0,Pf.pb)())},[t])}function dQ(){const t=(0,X.wA)(),e=(0,h.useCallback)(()=>{t((0,wf.$2)(!0))},[t]),n=k5(),o=cs(n.course?.coverImage?.media);(0,h.useEffect)(()=>{const{courseLoaded:r,coverLoaded:a}=n.status;if(r&&!a){const i=o?.image,{key:l,src:u}=i||{};if(l||u){const d=l?(0,Ft.ME)(i):u,m=setTimeout(e,5e3),p=new Image;return p.src=d,p.onload=()=>{clearTimeout(m),e()},()=>clearTimeout(m)}else e()}},[n,o,e])}function uQ(){lQ(),dQ();const t=k5(),e=(0,X.wA)(),{fonts:n,labels:o,status:{courseLoaded:r,coverLoaded:a,fatalError:i,fontsLoaded:l,notFound:u,partnerContentLoaded:d}}=t,m=(0,ke.A)(r),p=r&&l&&a&&d,f=!p;return(0,h.useEffect)(()=>{!m&&r&&!l&&(n??[]).length>0&&e((0,cQ.r)(n))},[e,m,r,l,n]),(0,h.useEffect)(()=>{if(!p||window.parent===window)return;window.parent.postMessage({type:"course:ready"},window.location.origin);const g=v=>{v.key==="Escape"&&window.parent.postMessage({type:"preview:escape"},window.location.origin)};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[p]),u?(0,s.jsx)(iQ,{}):f?(0,s.jsx)(x5,{labelCurtainLoading:o?.curtainLoading,labelCurtainOffline:o?.curtainOffline,labelCurtainOfflineReconnecting:o?.curtainOfflineReconnecting,labelCurtainSessionTimedOut:o?.curtainSessionTimedOut,labelCurtainSessionTimedOutRefresh:o?.curtainSessionTimedOutRefresh,labelCurtainSessionTimedOutRestart:o?.curtainSessionTimedOutRestart,labelCurtainSomethingWrong:o?.curtainSomethingWrong,labelCurtainSomethingWrongRefresh:o?.curtainSomethingWrongRefresh,labelCurtainSomethingWrongTryAgain:o?.curtainSomethingWrongTryAgain,status:i?"fatalError":void 0}):(0,s.jsx)(aQ,{...t})}const hQ=uQ,e0=document.createElement("style");e0.innerHTML=`
174  @layer rise-reset, arc-theme, arc-utils;
175
176  :root {
177    --arc-font-size-base: 1;
178
179    /*  Override arc body font because of Inter naming conflict in Rise
180        https://github.com/articulate/rise-authoring/issues/7263
181    */
182    --arc-internal-font-body: 'DS Inter', system-ui, sans-serif;
183  }
184`;function mQ(){(0,h.useEffect)(()=>(e0.parentElement!==document.head&&document.head.prepend(e0),()=>{e0.remove()}),[])}const pQ=()=>{const t=(0,Pe.Z)(),e=(0,ce.zy)(),n=h.useRef(new Set),o=h.useRef(null);if(o.current===null){const r=n.current;o.current={push:t,replace:a=>t(a,{replace:!0}),go:a=>t(a),goBack:()=>t(-1),goForward:()=>t(1),listen:a=>(r.add(a),()=>r.delete(a)),location:e},(0,Je.IV)(o.current)}return(0,h.useEffect)(()=>{if(n.current.forEach(r=>r(e)),typeof window<"u"&&window.dispatchEvent){const r=new HashChangeEvent("hashchange",{oldURL:window.location.href,newURL:window.location.href});window.dispatchEvent(r)}},[e]),(0,s.jsx)(hQ,{})},fQ=document.getElementById("app"),vQ=(0,ae.createRoot)(fQ),gQ=({children:t})=>(mQ(),(0,s.jsx)(s.Fragment,{children:t}));vQ.render((0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(X.Kq,{store:X.M_,children:(0,s.jsx)(gQ,{children:(0,s.jsx)(kN,{children:(0,s.jsx)(Ke,{children:(0,s.jsx)(MN,{children:(0,s.jsx)(ce.I9,{unstable_useTransitions:!1,children:(0,s.jsx)(wt.fH,{children:(0,s.jsx)(ce.BV,{children:(0,s.jsx)(ce.qh,{element:(0,s.jsx)(pQ,{}),path:"/*"})})})})})})})})})}))},78638(Xe,Le,c){"use strict";c.d(Le,{Ay:()=>Z,BW:()=>_,En:()=>A,Ig:()=>F,JG:()=>ie,Ko:()=>$,M$:()=>G,Pz:()=>ee,S$:()=>me,WY:()=>Y,Wj:()=>be,Ze:()=>ge,ce:()=>he,eZ:()=>D,fd:()=>Q,ft:()=>J,jw:()=>te,l7:()=>K,mj:()=>s,p3:()=>ye,pd:()=>Te,qX:()=>V,sZ:()=>ne,w5:()=>ue});const A="a",$="n",D="t",K="c",J="ps",Y="p",ge="v",ne="r",te="s",s="rr",ye="pq",Te="qd",he="ql",G="qt",Z="vp",ue="k",be="v",Q="i",_="pv",V="m",ee="s",F="x",ie="sa",me="t"},13578(Xe,Le,c){"use strict";c.d(Le,{AU:()=>J,G7:()=>ne,NS:()=>D,RR:()=>te,gj:()=>ge,kT:()=>Y,on:()=>K});const{RiseDotCom:A}=window,$=s=>A&&A[s],D=()=>{$("exit")&&A.exit()},K=(...s)=>{$("on")&&A.on(...s)},J=(...s)=>{$("off")&&A.off(...s)},Y=(...s)=>{$("goToLearn")&&A.goToLearn(...s)},ge=(...s)=>{if($("downloadCertificate"))return A.downloadCertificate(...s)},ne=(...s)=>{if($("downloadCertificateCancel"))return A.downloadCertificateCancel(...s)},te=(...s)=>{if($("fetchLpUpNext"))return A.fetchLpUpNext(...s)}},46044(Xe,Le,c){"use strict";c.d(Le,{MT:()=>Q,MJ:()=>be,uK:()=>ue});var A=c(78570),$=c(25726),D=c(42900);const K={accentContrast:D.Em.AUTO,allowSearch:!0,animateBlockEntrance:!0,blockBackgroun
184dColor:null,blockBackgroundColorContrast:D.Em.AUTO,blockBackgroundType:D.xj.LIGHT,blockCorners:D.rE.ROUNDED,blockPaddingEnd:D.S$,blockPaddingStart:D.S$,blockTextBackgroundColor:null,blockTextBackgroundColorContrast:D.Em.AUTO,blockTextBackgroundType:D.xj.LIGHT,blockTextBodyFontSize:D.Ty,blockTextHeadingFontSize:D.Bj,blockTextPaddingEnd:D.S$,blockTextPaddingStart:D.S$,blockTextSubheadingFontSize:D.pL,buttonInlineStyle:D.qu.ROUNDED,buttonNavigationStyle:D.jq.FULL,buttonScheme:D.LE.LIGHT,colorAccent:D.Zs,compactShowLessonCount:!0,coverImageAlpha:D.HU,coverPageType:D.BL.SPLIT_LEFT_IMAGE,customColorLessonHeaderContrast:D.Em.AUTO,enableVideoPlaybackSpeed:!0,lessonHeaderImageAlpha:D._g,lessonHeaderImageColor:D.df.DARK,lessonHeaderSize:D.OX.MEDIUM,lessonHeaderStyle:D.xj.LIGHT,markLessonsComplete:!1,navigation:!0,navigationRestricted:!1,navigationSectionsExpanded:!0,navigationStyle:D.kY.LIGHT,navigationType:D.br.SIDEBAR,progressIndicatorStyle:D.Y2.THEME_DEFAULT,showAuthor:!0,showLessonCount:!0,showNavigationButtons:!0,showStartButton:!0,sidebarStartsOpen:!0,themeId:D.V7.RISE_CLASSIC},J=["bodyTypeface","coverImage","experiments","headingTypeface","lessonHeaderImage","media","theme","uiTypeface"],Y=_=>_.theme?.colorAccent||_.color||K.colorAccent,ge=_=>_.theme?.navigationRestricted??K.navigationRestricted?D.b$.RESTRICTED:D.b$.FREE,ne=_=>_.theme?.sidebarStartsOpen??K.sidebarStartsOpen?D.RE.OPEN:D.RE.CLOSED,te=_=>_.theme?.showLessonCount??_.showLessonCount??K.showLessonCount,s=({sidebarMode:_})=>_!==D.RE.HIDDEN,ye=({navigationMode:_})=>_===D.b$.RESTRICTED,Te=({sidebarMode:_})=>_===D.RE.OPEN,he=_=>_.coverImage?.media?.image?D.kY.LIGHT_IMAGE:D.kY.LIGHT,G=_=>_.coverImage?.media?.image?D.BL.LEFT_OVERLAY:D.BL.LEFT,Z=(_,V)=>V[_]??V.theme?.[_]??K[_],ue=_=>{const V=ne(_),ee=ge(_),F={allowSearch:Z("allowSearch",_),animateBlockEntrance:Z("animateBlockEntrance",_),bodyTypefaceId:_.bodyTypefaceId,colorAccent:(_.color||"").toLowerCase(),compactShowLessonCount:Z("compactShowLessonCount",_),coverImageDefault:null,coverPageType:G(_),enableVideoPlaybackSpeed:Z("enableVideoPlaybackSpeed",_),headingTypefaceId:_.headingTypefaceId,markLessonsComplete:Z("markComplete",_),navigation:s({sidebarMode:V}),navigationSectionsExpanded:Z("navigationSectionsExpanded",_),navigationRestricted:ye({navigationMode:ee}),navigationStyle:he(_),showAuthor:Z("showAuthor",_),showLessonCount:Z("showLessonCount",_),showNavigationButtons:Z("showNavigationButtons",_),sidebarStartsOpen:Te({sidebarMode:V}),uiTypefaceId:_.uiTypefaceId},ie={...K,...F};return{..._,theme:{...ie,isLegacyCourse:!0}}},be=_=>{const V=Y(_),ee={allowSearch:_.theme?.allowSearch??K.allowSearch,animateBlockEntrance:_.theme?.animateBlockEntrance??K.animateBlockEntrance,buttonNavigationStyle:_.theme?.buttonNavigationStyle??K.buttonNavigationStyle,buttonScheme:_.theme?.buttonScheme??K.buttonScheme,color:V,colorAccentTint:V?(0,A.FB)(V):void 0,coverImage:(0,$.dM)(_),coverPageType:_.theme?.coverPageType??K.coverPageType,enableVideoPlaybackSpeed:_.theme?.enableVideoPlaybackSpeed??K.enableVideoPlaybackSpeed,lessonHeaderImage:(0,$.LI)(_),lessonHeaderSize:_.theme?.lessonHeaderSize??K.lessonHeaderSize,lessonHeaderStyle:_.theme?.lessonHeaderStyle??K.lessonHeaderStyle,markComplete:_.theme?.markLessonsComplete??K.markLessonsComplete,navigation:_.theme?.navigation??K.navigation,navigationSectionsExpanded:_.theme?.navigationSectionsExpanded??K.navigationSectionsExpanded,navigationMode:ge(_),navigationRestricted:_.theme?.navigationRestricted??K.navigationRestricted,navigationStyle:_.theme?.navigationStyle??K.navigationStyle,navigationType:_.theme?.navigationType??K.navigationType,progressIndicatorStyle:_.theme?.progressIndicatorStyle??D.Y2.THEME_DEFAULT,themeId:_.theme?.themeId??K.themeId,showAuthor:_.theme?.showAuthor??K.showAuthor,showLessonCount:te(_),showStartButton:_.theme?.showStartButton??K.showStartButton,sidebarMode:ne(_),sidebarStartsOpen:_.theme?.sidebarStartsOpen??K.sidebarStartsOpen,showNavigationButtons:_.theme?.showNavigationButtons??K.showNavigationButtons};return{..._,...ee}},Q=({course:_,updates:V})=>{const ee=Object.fromEntries(Object.entries(V||{}).filter(([ie])=>J.includes(ie))),F={..._,...ee};return be(F)}},53395(Xe,Le,c){"use strict";c.d(Le,{A:()=>K});var A=c(16881),$=c(94036),D=c(68902);function K(J){function Y(ge){const ne=(0,$.zy)(),te=(0,D.Z)(),s=(0,$.g)(),[ye]=(0,$.ok)();return(0,A.jsx)(J,{...ge,location:ne,match:{params:s},navigate:te,queryParams:ye})}return Y.displayName=`withRouter(${J.displayName||J.name})`,Y}},2396(Xe,Le,c){"use strict";c.d(Le,{gf:()=>nt,Em:()=>fr});var A={};c.r(A),c.d(A,{callbackComponent:()=>Yi,callbackPath:()=>Ur,errorPath:()=>Qo,getToken:()=>Gi,initAuth:()=>Cs,login:()=>ls,logout:()=>ro,onFetchTokensThunk:()=>Mn,refreshSession:()=>Ki,request:()=>it.Em});var $={};c.r($),c.d($,{callbackComponent:()=>Ha,callbackPath:()=>ec,getToken:()=>tc,initAuth:()=>Fa,login:()=>sc,logout:()=>nc,refreshSession:()=>oc,request:()=>it.Em});var D=c(7507),K=c(44914),J=c.n(K),Y=c(31735),ge=c.n(Y),ne=c(5832),te=c.n(ne),s=c(32050),ye=c.n(s),Te=c(22713),he=c.n(Te),G=c(36330),Z=c.n(G),ue=c(26372),be=c(53395),Q=c(39919),_=c.n(Q),V=c(53755),ee=c(81783),F=c.n(ee),ie=c(89831),me=c.n(ie),je=c(7334),Ie=c.n(je),ve=c(54811),h=c.n(ve),ae=c(49034),ce=c.n(ae),X=c(17193),Ve=c.n(X),Ce=c(65301),De=c.n(Ce),We=c(51335),pe=c.n(We),Re=c(97110),Ze
184=c.n(Re),Ye=c(41211),Ke=c.n(Ye),vt=c(36087),Je=c.n(vt),Pe=c(58862),He=c.n(Pe),ht=c(57487),bt=c(24177);const Bt={"Content-Type":"application/json"},_t=[(Se,_e)=>(_e.Authorization=`Bearer ${nt()}`,JSON.stringify(Se))],fs=De()(te(),Ve(),Ze()(["data","status","statusText"])),rs=Je()(Ze()(["name","message","response"]),ce()({response:fs})),wn=({baseURL:Se,..._e})=>ge()(pe()({headers:Bt,transformRequest:_t}),pe()(_e),ce()({url:h()(Se)})),vs=({data:Se,method:_e,url:kt})=>fetch(kt,{body:JSON.stringify(Se),headers:{...Bt,Authorization:`Bearer ${nt()}`},keepalive:!0,method:_e}).then(ds=>ds.json()).then(Ke()("data")),Jn=F().fromPromise(vs),Cn=Se=>({method:_e,url:kt})=>`${_e}:${Se}${kt}`,Ns=Se=>{const _e=new Error("Nil token detected");return bt.L.addError(_e,Se),F().Rejected(_e)},ke=Se=>_e=>Se.preRequest?Se.preRequest(_e):_e,qn=Se=>_e=>Se.postRequest?Se.postRequest(_e):_e,oe=()=>!D.BI&&te()(nt()),mt=Se=>(_e,kt)=>me()(_e,Cn(kt),Ps(fr,Se)),Ps=(Se,_e)=>kt=>(0,ht.Ve)(kt,ke(_e),wn(_e),De()(oe,Ns,Se),Ie()(rs,He()("data")),qn(_e)),eo=Se=>({debounce:mt(Se),send:Ps(fr,Se),sendWithKeepAlive:Ps(Jn,Se)});var yo=c(50283),dr=c.n(yo);const ln=()=>document.visibilityState==="visible",xn=Se=>dr()(ln,()=>Se()),Xs=(Se=>{document.addEventListener("visibilitychange",xn(Se)),window.addEventListener("focus",()=>Se())});var to=c(48819),St=c.n(to),ys=c(88747),so=c.n(ys),Nt=c(44522),as=c.n(Nt),is=c(89239),Wo=c.n(is),bn=c(42662),no=c(28667),w=c(57893);const wt=(Se,_e=null)=>{const kt={...Se,context:{locale:navigator.language,device:(0,w.Pf)(),channel:(0,w.c)(),userAgentData:(0,w.NO)(),page:(0,w.WE)(),userAgent:(0,w.$t)(),...Se.context},properties:{..._e?(0,no.yV)(_e):{},...Se.properties}};return(0,bn.Em)({method:"POST",url:`${(0,D._$)("RISE_RUNTIME_URI")}/analytics`,json:!0,data:kt})},Lt=(0,D._$)("SUBSCRIPTIONS_ENDPOINT"),Br=(0,D._$)("THREESIXTY_FRONTEND_URI"),cs=as()(["error","status"],404),Hr=ge()(Ke()("error"),He()("response")),ur=()=>window.location.href=Br,Fr=[(Se,_e)=>(_e.Authorization=`Bearer ${nt()}`,Se)],ft=async Se=>{const _e=`${Lt}/users/authorized_status`,kt=await fr({transformRequest:Fr,url:_e}).toPromise().catch(Hr),ds=ge()(Se,Z()(Js=>wt({event:"Unexpected Logout",payload:{category:"auth",data:Js,detail:"Subscription Error"}})));return St()([[cs,ur],[so()("error"),ds],[Wo(),He()("data")]])(kt)};var Gt=c(76906),Xt;const oo=Se=>Se.status==="active",_o=Se=>Se.status==="inactive",Na=Se=>Se.plan==="individual",ja=Se=>Se.features?.enable_review===!0,Kt=Se=>Se.features?.enable_rise===!0,gt=Se=>Se.plan==="trial",Vr=Se=>Se.plan==="trial"&&Se.status==="inactive"&&Se.is_retrial_eligible===!1,ka=Se=>Se.plan==="team"||Se.plan==="individual",hr=Se=>Se.plan==="team"&&Se.is_team_admin===!0,zr=Se=>Se.plan==="trial"&&Se.is_team_admin===!0,Sl=Se=>{if(!Se.end_date)return 0;const _e=new Date(Se.end_date);_e.setUTCHours(0,0,0,0);const kt=_e.setDate(_e.getDate()+1);return kt&&(kt.valueOf()-new Date().setUTCHours(0,0,0,0))/Xt||0};var it=c(38870),ws=c(63557),Lo=c(68692),Aa=c.n(Lo),Go=c(2758),Ra=c.n(Go),Eo=c(5811),$i=c.n(Eo),st=c(57819),Pa=c.n(st);const Ko=(Se,_e)=>`${(0,D._$)("ID_MAPPER_URI")}/v1/avatars/${encodeURIComponent(Se)}?size=${_e}`,Wi=Se=>({large:Ko(Se,"large"),medium:Ko(Se,"medium"),micro:Ko(Se,"micro"),mini:Ko(Se,"mini"),small:Ko(Se,"small")}),wa=Ra()({features:Pa()({},"features"),subscription:ye()(["features"])}),_i=Aa()([Vr,_o,$i()(Kt)]),Ls="/auth-callback",Ma="/auth-error",gs=()=>new Promise(Se=>{if(!window.Osano)return Se();if(window.Osano.cm.dialogOpen){const _e=setTimeout(()=>{Se()},1e4);window.Osano.cm.addEventListener("osano-cm-ui-changed",(kt,ds)=>{kt==="dialog"&&ds==="hide"&&(Se(),clearTimeout(_e))})}else Se()}),Ur=Ls,Qo=Ma,Gi=ws.rS,dn=()=>window.location.pathname===Ur;let Oa=!1,Ms=!1;const mr=Se=>{if(Oa)return;const _e=(0,V.A)();Oa=!0,window.localStorage.setItem(_e,Se);const kt=(0,it.xQ)({client_id:(0,D._$)("OKTA_CLIENT_ID"),issuer:(0,D._$)("OIDC_ISSUER_URI"),redirect_uri:`${window.location.origin}${Ur}`,response_mode:"fragment",scope:(0,D._$)("OIDC_SCOPE"),state:_e,prompt:null});gs().then(()=>{window.location.href=kt})},ls=()=>{const Se=new URLSearchParams(window.location.search),_e=Se.has("redirect_url")?Se.get("redirect_url"):window.location.href;return mr(_e)}
184,Ki=()=>(0,it.uI)().catch(Se=>{Se.response?.status===404&&ro({onLogout:()=>window.location.reload(!0),reason:"Session expired"})}),$r=()=>{if(Ms)return;const Se=(0,ws.mA)(),_e=(0,ws.kn)();te()(Se)?(wt({event:"Unexpected Logout",payload:{category:"auth",userId:_e,detail:"id from cookie was null"}}),bt.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:_e,idFromCookie:Se,detail:"id from cookie was null"}),Ms=!0,ro({onLogout:()=>window.location.reload(!0),reason:"Unexpected logout: user id/session cookie missing"})):Se!==_e&&(wt({event:"Unexpected Logout",payload:{category:"auth",userId:Se,idFromToken:_e,detail:"Session/Token ID Mismatch"}}),bt.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:_e,idFromCookie:Se,detail:"Session/Token ID Mismatch"}),Ms=!0,(0,it.wD)().then(()=>window.location.reload(!0)))},Da=async Se=>{try{const[,_e,kt,ds]=await(0,it.wD)(),{aid:us,content_team_admin:Js}=ds;if(wt({event:"Setting Session Cookie",payload:{category:"auth",userId:us,detail:"Resuming existing session"}}),(0,ws.ac)(us),dn()){Se();return}const{first_name:vr,last_name:io,launchdarkly:On,staff:za}=_e,gr={avatars:Wi(us),first_name:vr,user_id:us,last_name:io,staff:za,content_team_admin:Js},Ua={author:us,profile:gr},Yr=()=>ro({onLogout:J()(null)}),ic=Cr=>Se({...Ua,...wa(Cr),launchdarkly:On,token:kt}),un=await ft(Yr).then(Z()(ic)).catch(()=>Se({...Ua,token:kt}));if(_i(un)){wt({event:"Unexpected Logout",payload:{category:"auth",userId:(0,ws.mA)(),subscription:un,detail:"Invalid Subscription"}}),bt.L.addError(new Error("Unexpected Logout"),{type:"User Meta",userId:(0,ws.mA)(),detail:"Invalid Subscription"}),ro({onLogout:()=>window.location=`${(0,D._$)("THREESIXTY_FRONTEND_URI")}/rise`});return}Xs($r)}catch(_e){wt({event:"Unexpected Logout",payload:{category:"auth",userId:(0,ws.mA)(),error:_e,detail:"Error Resuming Session"}}),bt.L.addError(_e,{type:"User Meta",userId:(0,ws.mA)(),detail:"Error Resuming Session"}),ro({onLogout:()=>window.location.reload(!0)})}},Cs=({onFetchTokens:Se})=>{if(dn()){Da(Se);return}const _e=(0,ws.mA)(),kt=(0,ws.kn)();if(te()(_e)||_e!==kt){gs().then(ls);return}Da(Se)},ro=({onLogout:Se,reason:_e})=>{_e&&wt({event:"Logout",payload:{category:"auth",userId:(0,ws.mA)(),detail:_e}});const kt=(0,D._$)("RISE_AUTHORING_URI"),ds=()=>D.BI?Promise.resolve():eo({baseURL:kt}).send({method:"DELETE",url:"/logout"}),us=()=>{(0,ws.sm)(),(0,ws.gZ)(),(0,it.Vu)().then(Se)};ds().fork(Js=>{console.error("Failed to log out of rise-authoring-api",Js),us()},us)},To=ge()(_().parse,he()(1,1/0)),Qi=(Se,_e)=>{gs().then(()=>{const ds=window.localStorage.getItem(_e)||"/",us=ds===Se?"/":ds;window.localStorage.removeItem(_e),window.location.href=us})},Es=Se=>()=>window.location.href=`${Ma}?description=${Se}`,Zi=({location:Se})=>()=>{const{hash:_e,pathname:kt}=Se,{state:ds,error:us,error_description:Js}=To(_e);us?(bt.L.addError(us,{type:"Logout Error",reason:"Error encountered when parsing auth callback.",error_description:Js}),ro({onLogout:Es(Js),reason:`Error encountered when parsing auth callback. Error: ${us}; description: ${Js}`})):Cs({onFetchTokens:()=>Qi(kt,ds)})},Rt=Se=>((0,ue.useEffect)(Zi(Se),[]),null),Yi=(0,be.A)(Rt),Mn=({dispatch:Se,loadProfileOKTA:_e})=>kt=>{const ds=ye()(["token"],kt);ge()(Se,_e)(ds)};var Xi=c(32261),Qt=c.n(Xi),Wr=c(56438),Mt=c.n(Wr),Ji=c(16997),Ba=c.n(Ji),_r=c(89837),qi=c.n(_r),$t=c(34597),jt=c.n($t),ao=c(15509),Gr=c.n(ao);const pr=async()=>{await gs();const[Se,_e]=Ba()(encodeURIComponent,jt()(["hash","pathname"],window.location));window.location.href=`/login#c=${_e}${Se}`},Kr=()=>{window.location.href="/"},Ha=null,ec=null,tc=ws.rS,sc=pr,nc=it.Vu,oc=()=>(0,it.uI)().catch(()=>nc()),rc=Je()(Pa()([],"roles"),Gr()(Mt()("author"),Kr)),Qr=Je()(qi()("",["subscription","status"]),Gr()(Mt()(Qt(),["active","in_trial","non_renewing"]),Kr)),ac=()=>window.location.reload(),Fa=async({onFetchTokens:Se})=>{try{const[_e,kt]=await(0,it.wD)(),{launchdarkly:ds,riseId:us,sub:Js,staff:vr,subscription:io}=kt,On={staff:vr,user_id:us||Js};return Qr(kt),Se({author:On.user_id,launchdarkly:ds,profile:On,subscription:io,token:_e}),(0,it.on)("change:roles",rc),(0,it.on)("change:status",Qr),(0,it.on)("change:subdomain",ac),(0,it.on)("unauthorized",pr),(0,it.on)("session:closed",pr),_e}catch{pr()}},{callbackComponent:Nl,callbackPath:Va,getToken:nt,initAuth:jl,logout:kl,refreshSession:Al,request:fr}=D.BI?$:A},1131(Xe,Le,c){"use strict";c.d(Le,{A:()=>D});var A=c(240);const D=({alpha:K,color:J,url:Y})=>{const ge=(0,A.A)(J,K);return{backgroundImage:`linear-gradient(0deg,${ge},${ge}), url("${Y}")`}}},63557(Xe,Le,c){"use strict";c.d(Le,{EO:()=>F,O0:()=>ee,QJ:()=>me,W5:()=>te,Xl:()=>ue,ac:()=>ye,gZ:()=>he,kn:()=>V,l6:()=>je,mA:()=>G,rS:()=>Z,sm:()=>Te});var A,$=c(57308),D=c.n($),K=c(31675),J=c.n(K),Y=c(7507);const ge="_articulate_user_id",ne="_rise_authoring_api_session",te=()=>Y.BI?(0,Y._$)("SESSION_COOKIE_NAME"):"_articulate_rise_",s=(Ie,ve)=>`${Ie}=${ve}; domain=${(0,Y._$)("SESSION_COOKIE_DOMAIN")}; path=/; secure=true`,ye=Ie=>document.cookie=s(ge,Ie),Te=()=>document.cookie=`${s(ge,"")}; Max-Age=-99999999`,he=()=>document.cookie=`${s(ne,"")}; Max-Age=-99999999`,G=()=>D().load(ge),Z=()=>D().load(te()),ue=()=>
184Z()?J()(Z()).staff:!1,be=()=>Z()?A(Z())?.staffRoles||[]:[],Q=()=>Z()?A(Z())?.content_team_admin:!1,_=()=>be().includes("content-team")||Q(),V=()=>Z()?J()(Z()).riseId||J()(Z()).sub||J()(Z()).aid:"",ee=()=>Z()?J()(Z()).roles:[],F=()=>Z()?J()(Z()).tenantId:"",ie=()=>Z()?J()(Z()).subscription||{}:{},me=()=>ie().plan_id||"",je=()=>ie().status||""},78570(Xe,Le,c){"use strict";c.d(Le,{FB:()=>mt,FH:()=>qn,I8:()=>_t,IO:()=>ke,L3:()=>Ns,Vu:()=>fs,b9:()=>Bt,bQ:()=>rs,jI:()=>to,yL:()=>Ps,zH:()=>oe,zh:()=>Cn});var A,$,D=c(44914),K=c.n(D),J=c(31735),Y=c.n(J),ge=c(5811),ne=c.n(ge),te=c(21863),s=c.n(te),ye=c(8486),Te=c.n(ye),he=c(33182),G=c.n(he),Z=c(54708),ue=c.n(Z),be=c(19892),Q=c.n(be),_=c(54425),V=c.n(_),ee=c(65301),F=c.n(ee),ie=c(84134),me=c.n(ie),je=c(5832),Ie=c.n(je),ve=c(79443),h=c.n(ve),ae=c(36087),ce=c.n(ae),X=c(58862),Ve=c.n(X),Ce=c(77592),De=c.n(Ce),We=c(92213),pe=c.n(We),Re=c(99657),Ze=c.n(Re),Ye=c(9391),Ke=c.n(Ye),vt=c(31155),Je=c(1131),Pe=c(42900),He=c(63656),ht=c(26842);const bt=ne()(De()("sidebarMode","hidden")),Bt=({alpha:St,color:ys=void 0,hasOverlay:so=!0,media:Nt={}})=>{const{image:as={}}=Nt,{key:is,src:Wo}=as,bn=is?(0,vt.ME)(as):Wo,no=ys===Pe.df.LIGHT?Pe.qH:Pe.KJ;return bn?so?(0,Je.A)({alpha:St/100,color:no,url:bn}):{backgroundImage:`url("${bn}")`}:null},_t=St=>[Pe.Py.DARK,Pe.Py.DARK_ACCENT,Pe.Py.DARK_IMAGE,Pe.qB.DARK,Pe.kY.DARK,Pe.kY.DARK_IMAGE].includes(St),fs=ce()(Ve()("lessons"),V()),rs=De()("navigationMode",Pe.b$.RESTRICTED),wn=ne()(De()("sidebarMode",Pe.RE.HIDDEN)),vs=De()("navigationType",Pe.br.SIDEBAR),Jn=De()("navigationType",Pe.br.COMPACT),Cn=F()(pe()(Ie(),"navigation"),wn,De()("navigation",!0)),Ns=({course:St,search:ys,isMobile:so})=>(0,He.c3)(St)?!1:(vs(St)||Jn(St)&&!!so)&&Cn(St)||ys.active,ke=({course:St,isMobile:ys})=>Jn(St)&&Cn(St)&&!ys,qn=St=>[Pe.Py.DARK_IMAGE,Pe.Py.LIGHT_IMAGE,Pe.qB.DARK_IMAGE,Pe.qB.IMAGE,Pe.kY.DARK_IMAGE,Pe.kY.LIGHT_IMAGE].includes(St),oe=St=>[Pe.kY.DARK,Pe.kY.LIGHT].includes(St),mt=ht.WA,Ps=(St,ys)=>{if(St===Pe.V7.RISE_CLASSIC||St===Pe.V7.HORIZON)switch(ys){case Pe.BL.SPLIT_LEFT_IMAGE:case Pe.BL.SPLIT_RIGHT_IMAGE:case Pe.BL.TWO_THIRDS_LEFT_IMAGE:case Pe.BL.TWO_THIRDS_RIGHT_IMAGE:return!0;default:return!1}else if(St===Pe.V7.APEX)switch(ys){case Pe.BL.SPLIT_LEFT_IMAGE:case Pe.BL.SPLIT_RIGHT_IMAGE:return!0;default:return!1}return!1},Ge=(St,ys)=>{switch(St){case A.RISE_CLASSIC:case A.APEX:case A.HORIZON:return ys===$.CENTERED_OVERLAY||ys===$.LEFT_OVERLAY||ys===$.IMAGE;default:return!1}},eo=Te()(Ie(),me()),yo=Te()(Ie(),G()(!1)),dr=pe()(yo,"isComplete"),ln=Te()(pe()(G()(!1),"passed"),pe()(yo,"isComplete")),xn=Ke()(2,St=>ue()(F()(Y()(G()(St),V()),Y()(ln,h()),Y()(dr,h())))),Xs=Ke()(2,St=>ce()(Ze(),xn(St),s()([]),V())),to=Q()(Ke()(2,St=>F()(eo,K()(St),Xs(St))))},16323(Xe,Le,c){"use strict";c.d(Le,{QZ:()=>Q,R9:()=>be,aj:()=>ue});var A=c(44914),$=c.n(A),D=c(19892),K=c.n(D),J=c(17193),Y=c.n(J),ge=c(65301),ne=c.n(ge),te=c(42117),s=c.n(te);const ye=K()(s()),Te=["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"],he=["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","title","width"],G=ye({allowedAttributes:{"*":["aria-*","class","colspan","id","rowspan","slot","style"],a:["data-external","data-link-type","data-link-destination","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:Te}),Z=ye({allowedAttributes:{iframe:he},allowedTags:["iframe"],allowedSchemes:["http","https"]}),ue=ne()(Y(),G,$()("")),be=ne()(Y(),Z,$()("")),Q=ye({allowedTags:[],allowedAttributes:[]}),_=ye({allowedAttributes:{"*":["aria-*","class","colspan","rowspan","style"],a:["data-external","data-link-type","data-link-destination","href","target","rel"],ol:["start"],span:["data-*"],"rise-image":["key","src","width","height","originalwidth","originalheight"],"rise-math":["tex"]}
184,allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:Te.filter(ee=>ee!=="img")}),V=ee=>{const F=ee.replace(/((<br>)|(<\/[a-z]*>))+/g," ");return Q(F).replace(/\s{2,}/g," ")}},93949(Xe,Le,c){"use strict";c.d(Le,{U2:()=>ae});var A,$,D=c(31735),K=c.n(D),J=c(54811),Y=c.n(J),ge=c(19892),ne=c.n(ge),te=c(57955),s=c.n(te),ye=c(2639),Te=c.n(ye),he=c(16997),G=c.n(he),Z=c(98757),ue=c.n(Z),be=c(8833),Q=c.n(be),_=c(44310),V=c.n(_),ee=c(7507);const F=5e3,me=G()(ne()(Y())(":n3,n4,i4,n7,n9")),je=K()(s()(","),Te()),Ie=(Ve,Ce)=>{const De=new FontFace(Ce.name,Ve,{family:Ce.name,style:Ce.style,weight:Ce.weight});return De.load().then(()=>document.fonts.add(De))},ve=(Ve,Ce)=>{const De=document.createElement("style");return De.innerText=`@font-face { font-family: '${Ce.name}'; src: ${Ve}; font-weight: ${Ce.weight}; font-style: ${Ce.style}; }`,document.head.appendChild(De),new(Q())(Ce.name,{style:Ce.style,weight:Ce.weight}).load()},h=Ve=>{const Ce=`url(${(0,ee.PJ)(Ve)}) format('woff')`;return("fonts"in document?Ie:ve)(Ce,Ve)},ae=(Ve,Ce)=>{const De=Promise.all(Ve.map(h));let We;const pe=new Promise(Re=>{We=setTimeout(Re,F)});return Promise.race([De,pe]).catch(Re=>{console.error("Failed to load learn course fonts:",{fonts:Ve,error:Re.message||Re})}).finally(()=>{clearTimeout(We),Ce()})},ce=({baseUri:Ve,typefaces:Ce,onLoad:De,onError:We})=>{const pe=A(Ce).join(", ");return $.load({active:De,fontinactive:(Re,Ze)=>{console.error("Individual font failed to load:",{familyName:Re,fvd:Ze,typefaces:Ce})},inactive:()=>{console.error("Failed to load course fonts:",{typefaces:Ce,typefaceList:pe}),We?.(),De?.()},timeout:F,custom:{families:me(A(Ce)),urls:[`${Ve}/course_fonts.css?typefaceIds=${je(Ce)}`]}})},X=()=>$.load({google:{families:["Noto Sans Myanmar:300,400,500,600,700"]},timeout:F})},28667(Xe,Le,c){"use strict";c.d(Le,{yV:()=>D});var A,$=c(63557);const D=ne=>{const te=ne.user,s=te?.profile?.user_id,ye=te?.subscription?.subscription_id||te?.subscription?.id;return{application_source:"360_rise",application_service:"authoring",user_role:(0,$.O0)()||"Creator",reach_user_id:void 0,a360_user_id:s,user_permissions:te?.permissions||[],session_id:ne?.user?.session,subscription_id:te?.subscription?.subscription_id||ye,tenant_id:ye,risecom_billing_id:void 0,...te?.subscription?.plan&&{subscription:{plan:te.subscription.plan,trial_type:te.subscription.trial_type??null}},...ne.ai?.subscription&&{ai:{plan:ne.ai.subscription.plan,start_date:ne.ai.subscription.start_date,end_date:ne.ai.subscription.end_date,status:ne.ai.subscription.status}},...ne.l10nAuthoring?.subscription&&{localization:{end_date:ne.l10nAuthoring.subscription.end_date,plan:ne.l10nAuthoring.subscription.plan,start_date:ne.l10nAuthoring.subscription.start_date,status:ne.l10nAuthoring.subscription.status}}}},K=ne=>{const te=ne.course;return{course_id:te?.id,course_locale:te?.locale||ne.l10n&&A(ne.l10n)||null,course_created_via:te?.metadata?.createdVia??null,course_snapshot_id:te?.metadata?.restoredFromSnapshotId??null,copied_course_id:te?.copyOf??null}},J=(ne,te)=>{if(!te)return{};const s=ne?.lessons?.[te];if(!s)return{};const ye=ne?.course?.lessons?.indexOf(te)+1||null;return{lesson_id:te,lesson_type:s.type,lesson_position:ye}},Y=(ne,te,s)=>{if(!te||!s)return{};const Te=(ne.lessons||{})[te];if(!Te?.items)return{};const he=Te.items.find(ue=>ue.id===s);if(!he)return{};const Z=Te.items.map(ue=>ue.id).indexOf(s)+1;return{block_id:s,block_type:he.type,block_variant:he.variant,block_family:he.family,block_position:Z,block_created_via:he?.metadata?.createdVia??"manual"}},ge=({interactionSetId:ne,interactionSetWorkflowKey:te,taskType:s,resourceType:ye,hasSourceContent:Te}={})=>ne?{interaction_set_id:ne,...te&&{interaction_set_workflow_key:te},interaction_set_task_type:s,interaction_set_task_resource_type:ye,interaction_set_has_source_content:Te}:{}},88254(Xe,Le,c){"use strict";c.d(Le,{$H:()=>Ie,Bd:()=>ve,DX:()=>G,Ge:()=>Ve,H7:()=>pe,MT:()=>je,PH:()=>ae,SQ:()=>ce,Sd:()=>ie,UG:()=>ue,Wz:()=>We,_z:()=>me,cN:()=>V,dT:()=>De,d_:()=>Z,hM:()=>h,kJ:()=>Ce,nZ:()=>_,qm:()=>he,rv:()=>Te,up:()=>ee,v1:()=>X,vU:()=>Q});var A=c(16881),$=c(26372),D=c(42900),K=c(78570),J=c(26842),Y=c(18154),ge=c(45857),ne=c(47543),te=c(78774),s=c.n(te);const ye=(0,$.createContext)(null);
184ye.displayName="CourseContext";function Te({children:Re,course:Ze,courseProgress:Ye,l10n:Ke,labels:vt,labelsLocale:Je,lessons:Pe,partnerContent:He,search:ht}){const bt=(0,$.useMemo)(()=>({course:Ze,courseProgress:Ye,l10n:Ke,labels:vt,labelsLocale:Je,lessons:Pe,partnerContent:He,search:ht}),[Ze,Ke,vt,Je,Pe,Ye,He,ht]),Bt=(0,$.useMemo)(()=>({l10n:(0,te.omit)(["locales","defaultLocale"],Ke)}),[Ke]),_t=(0,$.useMemo)(()=>({l10n:{locales:Ke?.locales,defaultLocale:Ke?.defaultLocale,localeSelectorOptions:Ke?.localeSelectorOptions,showLocaleSelector:Ke?.showLocaleSelector,languageCodeMetadata:Ke?.languageCodeMetadata}}),[Ke?.locales,Ke?.defaultLocale,Ke?.localeSelectorOptions,Ke?.showLocaleSelector,Ke?.languageCodeMetadata]);return(0,A.jsx)(ye.Provider,{value:bt,children:(0,A.jsx)(Y.xr.Provider,{value:Bt,children:(0,A.jsx)(Y.zE.Provider,{value:_t,children:Re})})})}function he(){return(0,$.useContext)(ye)}function G(){return he()?.course}function Z(){return(0,Y.QQ)(G()?.title)}function ue(){const Re=G();return Re.selectedAuthorId==="none"||!("authors"in Re)?null:Re.selectedAuthorId?Re.authors?.find(Ze=>Ze.id===Re.selectedAuthorId):Re.authors?.find(Ze=>Ze.id===Re.author)}function be(){return G().trackingQuizId}function Q(){const{labels:Re}=he()??{};return Re}function _(){return he()?.labelsLocale}const V=({isCourseComplete:Re,percentCourseComplete:Ze})=>{const Ye=Q()??{},{courseResume:Ke,courseStart:vt,processStartAgain:Je}=Ye;return{courseCTALabel:Re?Je:Ze>0?Ke:vt}};function ee(){const{courseProgress:Re}=he();return Re}function F(){return ee()?.lessons}function ie(){return ee()?.percentComplete}function me(){return G().lessonsOnly?.[0]}function je(){const Re=F(),Ze=be();return(0,K.jI)(Re,Ze)}function Ie(){const Re=G(),{selectedAuthorId:Ze}=Re?.lessons?.[0]??{};return Ze==="none"||!Ze?null:Re?.authors?.find(Ye=>Ye.id===Ze)??null}function ve(){const{course:Re,partnerContent:Ze}=he();return Ze.content?.find(Ye=>Ye.id===Re.selectedAuthorId)}function h(){return ve()?.data?.authors??null}function ae(){const{partnerContent:Re}=he();return Re?.content?.[0]?.data?.authors}function ce(){return he().search}function X(){const{lessons:Re}=G();return(0,$.useMemo)(()=>Array.isArray(Re)?Re.filter(({type:Ye})=>Ye!=="section").length:0,[Re])}function Ve(Re){const Ke=G()?.theme?.accentContrast;return typeof Ke!="string"?D.Em.LIGHT:Ke===D.Em.AUTO?(0,J.xD)(Re):Ke}function Ce(){const Re=G();return Re?.theme?.colorAccent??Re?.color}function De(){return G()?.theme?.coverImageColor??D.df.DARK}function We(){const{currentLocale:Re}=(0,ne.nY)(),Ze=(0,Y.jc)(),Ye=G();return(0,ge.V)({course:Ye,locales:Ze,locale:Re})}function pe(){const{lessons:Re}=he();return Re}},94615(Xe,Le,c){"use strict";c.d(Le,{h:()=>te,j$:()=>ne});var A,$=c(16881),D=c(26372);const K={"rise-course-navigation":!0},J={"ai-assistant-blocks":!0,"ai-text-to-video":!1,"ai-assistant-images":!0,"ai-assistant-magic-block-import":!0,"ai-assistant-enable":!0,"ai-assistant-thumbs-feedback-ui":!1,"ai-assistant-subscription-override":!1,"ai-assistant-next-gen-chat-prototype":!1,"experiment-business-creator-role":!1,"experiment-business-creator-video-training":!1,"experiment-new-delivery-formats":!1,"rise-ai-avatar-prompt-testing":!1,"rise-com-360-upsell":!0,"rise-update-block":!1},Y=(0,D.createContext)(K);Y.displayName="FeatureFlagsContext";const{Provider:ge}=Y;function ne({children:ue,value:be}){const Q=(0,D.useMemo)(()=>({...J,...be,...K}),[be]);return(0,$.jsx)(ge,{value:Q,children:ue})}function te(){return(0,D.useContext)(Y)}function s(ue){return te()[ue]}function ye(ue){function be(Q){const _=te();return A(ue,{...Q,flags:_})}return be.displayName=`withFeatureFlags(${ue.displayName||ue.name})`,be}function Te(ue,be){return function(Q){const _=V=>{const ee=s(ue),F={...V,[be]:ee};return A(Q,{...F})};return _.displayName=`withFeatureFlag(${Q.displayName||Q.name})`,_}}const he=({children:ue})=>(0,$.jsx)($.Fragment,{children:ue});he.displayName="On";const G=({children:ue})=>(0,$.jsx)($.Fragment,{children:ue});G.displayName="Off";const Z=({children:ue,featureFlags:be})=>{const Q=te(),_=(0,D.useMemo)(()=>{const F=[].concat(be??[]);return F.length&&F.every(ie=>Q[ie])},[be,Q]),{on:V=null,off:ee=null}=(0,D.useMemo)(()=>{const F={};
184return D.Children.forEach(ue,ie=>{switch(ie.type.displayName){case Z.On.displayName:F.on=ie;break;case Z.Off.displayName:F.off=ie;break;default:F.on=ue}}),F},[ue]);return _?V:ee};Z.On=he,Z.Off=G},18154(Xe,Le,c){"use strict";c.d(Le,{D_:()=>he,MQ:()=>ue,NB:()=>ne,QQ:()=>te,bs:()=>be,dx:()=>s,gY:()=>ge,iR:()=>ye,jc:()=>Te,xr:()=>J,zE:()=>Y});var A=c(57898),$=c(88254),D=c(26372),K=c(47543);const J=(0,D.createContext)({l10n:null});J.displayName="TranslationContext";const Y=(0,D.createContext)({l10n:null});Y.displayName="LocalesContext";function ge(){const{currentLocale:Q}=(0,K.nY)(),_=he(),V=G();return(0,D.useCallback)(ee=>(0,A.Dh)(ee,Q,_,V),[Q,_,V])}function ne(){const{currentLocale:Q}=(0,K.nY)(),_=he(),V=G();return(0,D.useCallback)(ee=>(0,A.UR)(ee,Q,_,V),[Q,_,V])}function te(Q){const{currentLocale:_}=(0,K.nY)(),V=he();let ee=G();const F=Z();return F&&Object.keys(F).length&&_&&ee&&(ee={...ee,[_]:F}),(0,A.Dh)(Q,_,V,ee)}function s(Q){const{currentLocale:_}=(0,K.nY)(),V=he(),ee=G();return(0,D.useMemo)(()=>(0,A.UR)(Q,_,V,ee),[_,V,Q,ee])}function ye(){return(0,D.use)(Y)}function Te(){const Q=ye();return(0,A.S)(Q)}function he(){const Q=ye();return(0,A.HH)(Q)}function G(){const Q=(0,D.use)(J);return(0,A.fF)(Q)}function Z(){return(0,$.qm)()?.search?.translations}function ue(){const Q=(0,D.use)(J);return(0,A.Zn)(Q)}function be(){const Q=(0,D.use)(J);return(0,A.cP)(Q)}},29552(Xe,Le,c){"use strict";c.d(Le,{$X:()=>ne,dg:()=>s});var A,$,D=c(16881),K=c(26372),J=c(94615);const Y=K.createContext(null);Y.displayName="UndoManagerContext";function ge(Te){const G=$("rise-undo")===!0?Te.undoManager:null;return A(Y,{value:G,children:Te.children})}function ne(){return K.useContext(Y)}function te(Te){function he(G){const Z=ne();return A(Te,{...G,undoManager:Z})}return he.displayName=`withUndoManager(${Te.displayName||Te.name})`,he}function s(){const Te=ne();K.useEffect(()=>{if(Te!=null)return Te.disable(),()=>Te.enable()},[Te])}function ye(Te){function he(G){return s(),A(Te,{...G})}return he.displayName=`withDisableUndoManager(${Te.displayName||Te.name})`,he}},47543(Xe,Le,c){"use strict";c.d(Le,{fH:()=>Te,nY:()=>he,wZ:()=>G});var A=c(16881),$=c(26372),D=c(94036),K=c(47615);function J(Z,ue=window.location){const{defaultLocale:be,locales:Q}=Z??{},_=ue.hash?(0,D.Rr)(ue.hash.slice(1)):ue;let ee=new URLSearchParams(_.search).get("locale");const F=new URL(window.location.href);return F.pathname.startsWith("/view-pdf/")&&(ee=F.searchParams.get("locale")),Q?.find(me=>me.locale===ee)?.locale||be}var Y=c(18154),ge=c(68902),ne=c(57898),te=c(7927),s=c(29552);const ye=(0,$.createContext)({currentLocale:void 0,setCurrentLocale:()=>{}});function Te({children:Z}){const ue=(0,ge.Z)(),be=(0,D.zy)(),Q=(0,te.LY)(ne.HH),_=(0,Y.D_)(),V=Q||_,ee=(0,te.LY)(ne.S),F=(0,Y.jc)(),ie=Q?ee:F,me=(0,$.useMemo)(()=>J({defaultLocale:V,locales:ie},be),[V,ie,be]),je=(0,$.useCallback)((ae,ce="replace")=>{const X=ae===V?"":ae,Ve=new URLSearchParams(be.search);Ve.set("locale",X);const Ce=be.pathname+"?"+Ve.toString()+be.hash;ce==="push"?ue(Ce):ue(Ce,{replace:!0})},[V,ue,be]),Ie=(0,s.$X)(),ve=(0,$.useMemo)(()=>({currentLocale:me,setCurrentLocale:je}),[me,je]),h=(0,K.A)(ve);return(0,$.useEffect)(()=>{h!==void 0&&h.currentLocale!==ve.currentLocale&&Ie?.clear()},[h,ve,Ie]),(0,A.jsx)(ye.Provider,{value:ve,children:Z})}function he(){return(0,$.useContext)(ye)}function G(Z){const ue=be=>{const Q=he();return(0,A.jsx)(Z,{...be,...Q})};return ue.displayName=`withCurrentLocale(${Z.displayName||Z.name})`,ue}},84980(Xe,Le,c){"use strict";c.d(Le,{B1:()=>ye,BN:()=>he,F:()=>ne,R6:()=>Y,eB:()=>s,q2:()=>ge});var A=c(16881),$=c(26372),D=c(26741),K=c(23233),J=c(98806);const Y=$.createContext(null),ge=$.createContext(!1),ne=G=>(0,A.jsx)(ge.Provider,{value:!0,children:(0,A.jsx)(K.A,{...G})});function te(G){return class extends $.Component{static displayName=`withStaleTransitionState(${G.displayName||G.name})`;static defaultProps={onEnter:()=>{},onEntered:()=>{},onEntering:()=>{},onExit:()=>{},onExited:()=>{},onExiting:()=>{}};nodeRef=$.createRef();onEnterDelegate;onEnteringDelegate;onEnteredDelegate;onExitDelegate;onExitingDelegate;onExitedDelegate;constructor(ue){super(ue),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=(ue,...be)=>{this.setState({transitionState:ue});
184const Q="on"+ue[0].toUpperCase()+ue.slice(1),_=this.props[Q];typeof _=="function"&&_(...be)};render(){return(0,A.jsx)(Y.Provider,{value:this.state.transitionState,children:(0,A.jsx)(G,{nodeRef:this.nodeRef,...this.props,onEnter:this.onEnterDelegate,onEntered:this.onEnteredDelegate,onEntering:this.onEnteringDelegate,onExit:this.onExitDelegate,onExited:this.onExitedDelegate,onExiting:this.onExitingDelegate})})}}}const s=te(J.Ay),ye=te(D.A);function Te(G){const Z=$.useContext(ge),ue=$.useContext(Y),be=$.useRef(G);return Z&&ue?.startsWith?.("exit")||(be.current=G),be.current}function he(G){const Z=ue=>{const be=Te(ue);return(0,A.jsx)(G,{...be,nodeRef:ue.ref,ref:ue.ref})};return Z.displayName=`withTransitionableState(${G.displayName||G.name||"Component"})`,Z}},31926(Xe,Le,c){var A={"./en-au":65854,"./en-au.js":65854,"./en-ca":51940,"./en-ca.js":51940,"./en-gb":71753,"./en-gb.js":71753,"./en-ie":56566,"./en-ie.js":56566,"./en-il":25437,"./en-il.js":25437,"./en-in":61019,"./en-in.js":61019,"./en-nz":4208,"./en-nz.js":4208,"./en-sg":2930,"./en-sg.js":2930};function $(K){var J=D(K);return c(J)}function D(K){if(!c.o(A,K)){var J=new Error("Cannot find module '"+K+"'");throw J.code="MODULE_NOT_FOUND",J}return A[K]}$.keys=function(){return Object.keys(A)},$.resolve=D,Xe.exports=$,$.id=31926},54357(){},38954(){}}]);

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