(globalThis.wpRiseJsonp=globalThis.wpRiseJsonp||[]).push([["learn_main_tsx-node_modules_pnpm_moment_2_30_1_node_modules_moment_locale_sync_recursive_en"],{30349(Gc){Gc.exports=function(li){li||(li={});var __t,__p="";with(li)__p+=`<style>
  :root {
    --color-theme-contrast-complementary-rgb: `+((__t=colorThemeContrastComplementaryRGB)==null?"":__t)+`;
    --color-theme-contrast-complementary: `+((__t=colorThemeContrastComplementary)==null?"":__t)+`;
    --color-theme-contrast-rgb: `+((__t=colorThemeContrastRGB)==null?"":__t)+`;
    --color-theme-contrast: `+((__t=colorThemeContrast)==null?"":__t)+`;
    --color-theme-rgb: `+((__t=colorThemeRGB)==null?"":__t)+`;
    --color-theme-tint: `+((__t=colorThemeTint)==null?"":__t)+`;
    --color-theme-transparent: `+((__t=colorThemeTransparent)==null?"":__t)+`;
    --color-theme: `+((__t=colorTheme)==null?"":__t)+`;
    --font-family-body: `+((__t=bodyTypeface)==null?"":__t)+`, 'Noto Sans Myanmar', sans-serif;
    --font-family-head: `+((__t=headingTypeface)==null?"":__t)+`, 'Noto Sans Myanmar', sans-serif;
    --font-family-ui: `+((__t=uiTypeface)==null?"":__t)+`, 'Noto Sans Myanmar', sans-serif;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

    .brand--max768--color {
      color: var(--color-theme) !important;
    }
  }
</style>
`;return __p}},88924(Gc,li,f){"use strict";var Wo={};f.r(Wo),f.d(Wo,{callbackComponent:()=>jS,callbackPath:()=>N0,errorPath:()=>bS,getToken:()=>yS,initAuth:()=>W2,login:()=>U2,logout:()=>ar,onFetchTokensThunk:()=>wS,refreshSession:()=>SS,request:()=>Gf});var Co={};f.r(Co),f.d(Co,{callbackComponent:()=>BS,callbackPath:()=>DS,getToken:()=>HS,initAuth:()=>_S,login:()=>FS,logout:()=>Y2,refreshSession:()=>VS,request:()=>Gf});var _r={};f.r(_r),f.d(_r,{CoverDescription:()=>f$,CoverDetailsContentHeading:()=>D_,CoverDueDate:()=>g$,CoverHeader:()=>e_,CoverLayout:()=>n_,LessonHeader:()=>u_,LessonNavFinish:()=>b_,LessonNavNext:()=>y_,LessonNavPrevious:()=>S_,LessonProgressGraphic:()=>w_,NavCompactHeaderCounter:()=>H_,NavCompactHeaderProgress:()=>F_,NavCompactOutline:()=>V_,OverviewListItem:()=>z_,OverviewListSectionTitle:()=>$_,Progress:()=>B_});var bn={};f.r(bn),f.d(bn,{AlignLeft:()=>G_,ArrowDown:()=>pm,ArrowLeft:()=>__,ArrowRight:()=>U_,ArrowUp:()=>dC,Category:()=>bB,ChevronDown:()=>W_,ChevronUp:()=>K_,Favorite:()=>fh,LessonsComplete:()=>Nd,LessonsRequirement:()=>O6,QuestionBox:()=>Q_,QuizFailed:()=>pC,QuizPassed:()=>Nd,QuizRequirement:()=>lh,Search:()=>Z_,ToggleDown:()=>Y_,Touch:()=>X_,VideoCamera:()=>J_,X:()=>q_});var yn={};f.r(yn),f.d(yn,{components:()=>_r,icons:()=>bn});var Qu={};f.r(Qu),f.d(Qu,{CoverCourseInfo:()=>sU,CoverDetailsSection:()=>aU,CoverHeader:()=>xU,CoverLayout:()=>LU,LessonHeader:()=>kU,LessonProgressGraphic:()=>AU,NavSidebarHeader:()=>RU,OverviewListItemLinkContent:()=>DU,Progress:()=>HU});var Zu={};f.r(Zu),f.d(Zu,{ArrowDown:()=>SC,ArrowLeft:()=>VU,ArrowRight:()=>FU,ArrowUp:()=>SC,ChevronDown:()=>TC,ChevronUp:()=>TC,Favorite:()=>fh,LessonsComplete:()=>NC,LessonsRequirement:()=>kC,QuizFailed:()=>$U,QuizPassed:()=>NC,QuizRequirement:()=>kC,Search:()=>zU,ToggleDown:()=>_U,X:()=>UU});var Yu={};f.r(Yu),f.d(Yu,{components:()=>Qu,icons:()=>Zu});var Xu={};f.r(Xu),f.d(Xu,{CoverDescription:()=>KU,CoverDetails:()=>ZU,CoverGraphic:()=>uc,CoverHeader:()=>oG,CoverLayout:()=>iG,CoverProgress:()=>cG,CoverSVG:()=>Ir,LessonHeader:()=>hG,LessonProgressGraphic:()=>vG,NavSidebarHeaderProgress:()=>xG});var Ju={};f.r(Ju),f.d(Ju,{AlignLeft:()=>TG,ArrowDown:()=>bG,ArrowLeft:()=>yG,ArrowRight:()=>LG,ArrowUp:()=>SG,ChevronDown:()=>OC,ChevronUp:()=>NG,Favorite:()=>fh,LessonsComplete:()=>Nd,LessonsRequirement:()=>O6,QuestionBox:()=>kG,QuizFailed:()=>pC,QuizPassed:()=>Nd,QuizRequirement:()=>lh,Search:()=>IG,ToggleDown:()=>OC,Touch:()=>EG,VideoCamera:()=>jG,X:()=>wG});var qu={};f.r(qu),f.d(qu,{components:()=>Xu,icons:()=>Ju});var n=f(93572),cde=f(99951),lde=f(77935),dde=f(8509),ude=f(37397),hde=f(64834),mde=f(74230),pde=f(78082),fde=f(99114),gde=f(79263),vde=f(43618),Cde=f(25084),xde=f(79962),bde=f(53984),yde=f(24844),Lde=f(73821),Sde=f(16551),Tde=f(95396),h=f(80588),Dx=f(41440),ge=f(5939),Hx=f(85759),Wc=f(18398),Ko=f(42001),Fx=f(51541),Vx=f(63929),zx=f(353);const e0=h.createContext(null),t0=h.createContext(!1),Qo=e=>(0,n.jsx)(t0.Provider,{value:!0,children:(0,n.jsx)(Fx.A,{...e})});function vf(e){return class extends h.Component{static displayName=`withStaleTransitionState(${e.displayName||e.name})`;static defaultProps={onEnter:()=>{},onEntered:()=>{},onEntering:()=>{},onExit:()=>{},onExited:()=>{},onExiting:()=>{}};nodeRef=h.createRef();onEnterDelegate;onEnteringDelegate;onEnteredDelegate;onExitDelegate;onExitingDelegate;onExitedDelegate;constructor(s){super(s),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=(s,...o)=>{this.setState({transitionState:s});const r="on"+s[0].toUpperCase()+s.slice(1),a=this.props[r];typeof a=="function"&&a(...o)};render(){return(0,n.jsx)(e0.Provider,{value:this.state.transitionState,children:(0,n.jsx)(e,{nodeRef:this.nodeRef,...this.props,onEnter:this.onEnterDelegate,onEntered:this.onEnteredDelegate,onEntering:this.onEnteringDelegate,onExit:this.onExitDelegate,onExited:this.onExitedDelegate,onExiting:this.onExitingDelegate})})}}}const Kc=vf(Vx.Ay),Wn=vf(zx.A);function $x(e){const t=h.useContext(t0),s=h.useContext(e0),o=h.useRef(e);return t&&s?.startsWith?.("exit")||(o.current=e),o.current}function _x(e){const t=s=>{const o=$x(s);return(0,n.jsx)(e,{...o,nodeRef:s.ref,ref:s.ref})};return t.displayName=`withTransitionableState(${e.displayName||e.name||"Component"})`,t}const Cf=e=>e!=null&&typeof e=="object"&&"map"in e&&typeof e.map=="function",Ux=e=>e!=null&&typeof e=="object"&&"run"in e&&typeof e.run=="function",xf=e=>e!=null&&typeof e=="object"&&"then"in e&&typeof e.then=="function",Gx=e=>e!=null&&typeof e=="object"&&"fork"in e&&typeof e.fork=="function",bf=e=>e!=null&&typeof e=="function",yf=(e,t)=>{const s=o=>yf(o,t);if(typeof e=="object"&&"type"in e&&typeof e.type=="string"){const o="meta"in e&&typeof e.meta=="object"?e.meta:void 0;return{...e,meta:{...o,origin:t}}}if("bimap"in e&&typeof e.bimap=="function")return e.bimap(s,s);if(Cf(e))return e.map(s);if(xf(e))return e.then(s);if(bf(e))return function(r,a){return e(i=>r(s(i)),a)}};function Wx(){return({dispatch:e,getState:t})=>s=>o=>{if(bf(o))return o(e,t);if(xf(o))return o.then(e);if(Gx(o)){o.fork(e,e);return}return Ux(o)?e(o.run()):Cf(o)?o.map(e):s(o)}}function Kx(){return[Wx()]}var Qc=f(80588);const Qx=Wc.Zz;function Zx(e,t){const s=(0,Wc.y$)(e,t,Qx((0,Wc.Tw)(...Kx()))),o=Yx(),r=Xx(),a=Jx(),i=qx(),c=eb();return{Provider:Ko.Kq,connect:o,connectBase:r,dispatch:s.dispatch,store:s,useDispatch:a,useDispatchWithOrigin:i,useSelector:c}}function Yx(){return function(t,s,o,r){return function(a){return(0,Ko.Ng)(t,s,o,r)(_x(a))}}}function Xx(){return function(t,s,o,r){return function(a){return(0,Ko.Ng)(t,s,o,r)(a)}}}function Jx(){return Ko.wA}function qx(){return function(t){const s=(0,Ko.wA)();return Qc.useCallback(r=>s(yf(r,t)),[s,t])}}function eb(){return function(t,s=Ko.bN){const o=Qc.useContext(t0),r=Qc.useContext(e0),a=Qc.useRef(void 0),i=(0,Hx.S)(),c=(0,Ko.d4)(t,s),d=!i&&o&&r?.startsWith?.("exit");return d||(a.current=c),d&&a.current!==void 0?a.current:c}}var Ur=f(72998),tb=f(71556),Zo=f.n(tb),le=f(80189),sb;function nb(){return le.action}function Nde(){return sb}var Yo=f(58644),ob=f(4239),Ne=f.n(ob),rb=f(26005),Zc=f.n(rb),ab=f(8628),fe=f.n(ab),ib=f(2364),Ut=f.n(ib),cb=f(42117),s0=f.n(cb);const Yc=Zc()(s0()),Lf=["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"],lb=["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","title","width"],db=Yc({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:Lf}),ub=Yc({allowedAttributes:{iframe:lb},allowedTags:["iframe"],allowedSchemes:["http","https"]}),n0=Ut()(fe(),db,Ne()("")),Sf=Ut()(fe(),ub,Ne()("")),ws=Yc({allowedTags:[],allowedAttributes:[]}),kde=Yc({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"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:Lf.filter(e=>e!=="img")}),Ide=e=>{const t=e.replace(/((<br>)|(<\/[a-z]*>))+/g," ");return ws(t).replace(/\s{2,}/g," ")};var hb=f(53452),ce=f.n(hb),mb=f(80163),Kn=f.n(mb),pb=f(31544),As=f.n(pb),fb=f(48534),di=f.n(fb),gb=f(41422),tt=f.n(gb),vb=f(37316),gs=f.n(vb),Cb=f(54506),Tf=f.n(Cb),xb=f(29921),Xc=f.n(xb),bb=f(12379),Ce=f.n(bb),yb=f(66457),Pe=f.n(yb),Lb=f(88612),Ht=f.n(Lb);const Jc=e=>ce()(ws,e),Nf=e=>Kn()({[e]:ws}),Sb=({startTime:e,stopTime:t})=>t-e,Tb=e=>{switch(e.type){case"FILL_IN_THE_BLANK":return wf(e);case"MATCHING":return Of(e);default:return Gr(e)}},Nb=e=>{switch(e.type){case"FILL_IN_THE_BLANK":return wf(e);case"MATCHING":return Of(e);case"MULTIPLE_CHOICE":return Af(e);case"MULTIPLE_RESPONSE":return Eb(e);default:return Af(e)}},kb=({isUnfinished:e,item:t,itemProgress:s})=>{switch(t.type){case"FILL_IN_THE_BLANK":return Ib(e)(s);case"MATCHING":return Rb(t,e)(s);case"MULTIPLE_CHOICE":return Rf(t,e)(s);case"MULTIPLE_RESPONSE":return jb(t,e)(s);default:return Rf(t,e)(s)}},kf=e=>[e],Gr=e=>{const t=e.answers||[];if(e.shuffledAnswerIndices&&Array.isArray(e.shuffledAnswerIndices)){const s=[];return t.forEach((o,r)=>{const a=e.shuffledAnswerIndices[r];s[a]=o}),s.map(Nf("title"))}return t.map(Nf("title"))},o0=Jc(Ce()("id")),If=Jc(Ce()("title")),Ef=e=>t=>As()(Pe()("id",t),Gr(e)),jf=e=>Zc()(Tf())(Gr(e)),wf=ce()(Xc()("title"),Gr),Ib=e=>Ut()(Ne()(e),Ne()(""),Jc(Ce()("text"))),Af=e=>ce()(Ef(e),Ce()("correct"))(e),Rf=(e,t)=>Ut()(Ne()(t),Ne()([]),s=>{const o=Ce()("selectedIndex",s);return o===void 0?[]:kf(jf(e)(o))}),Eb=e=>ce()(di(),tt()(Ef(e)),Ce()("corrects"))(e),jb=(e,t)=>Ut()(Ne()(t),Ne()([]),s=>{const o=Ce()("selectedIndices",s)||[];return di()(o.map(r=>kf(jf(e)(r))))}),Pf=({sourceId:e,sourceTitle:t,targetId:s,targetTitle:o})=>({source:{id:`source_${e}`,title:t},target:{id:`target_${s}`,title:o}}),Mf=Jc(Ce()("matchTitle")),wb=e=>{const t=o0(e);return Pf({sourceId:t,sourceTitle:If(e),targetId:t,targetTitle:Mf(e)})},Ab=e=>(t,s)=>{const o=Gr(e),r=o.find(i=>i.id===s),a=o.find(i=>i.id===t);return Pf({sourceId:o0(r),sourceTitle:If(r),targetId:o0(a),targetTitle:Mf(a)})},Of=ce()(tt()(wb),Gr),Rb=(e,t)=>Ut()(Ne()(t),Ne()([]),ce()(Ht(),gs()(Ab(e)),Ce()("matches")));var Pb=f(89681),Bf=f.n(Pb),Mb=f(26017),Df=f.n(Mb),Ob=f(49118),Xo=f.n(Ob);const{Runtime:Gt}=window,ye=e=>window.env?.[e],ke=!1,Ede=null,Hf="Rise 360",Bb=e=>`${ye("CDN_USER_CONTENT_URI")}/${e}`,mt=e=>{const t=e||"",s=Gt?.resolvePath!=null?Gt.resolvePath.bind(Gt):Bb;return t.startsWith("http")||t.startsWith("data:")||t.startsWith("//")?t:s(t)||t},Db=e=>Gt?.resolveFontPath!=null?Gt.resolveFontPath(e):`${e.default?ye("CDN_URI"):ye("CDN_USER_CONTENT_URI")}/${e.key}`,Ff=()=>{Gt?.exit!=null&&Gt.exit()},Hb=()=>Gt?.isComplete!=null?Gt.isComplete():null,ui=()=>Gt?.isExport!=null?Gt.isExport():!1;function Fb(){if(Gt?.isExport!=null){const e=window.partnerContent?.content;return Gt.isExport()&&!!e}return!1}const Vf=()=>{if(Gt?.sendTouch!=null)return Gt.sendTouch()};var zf;const r0="_articulate_user_id",Vb="_rise_authoring_api_session",$f=()=>ke?ye("SESSION_COOKIE_NAME"):"_articulate_rise_",a0=(e,t)=>`${e}=${t}; domain=${ye("SESSION_COOKIE_DOMAIN")}; path=/; secure=true`,zb=e=>document.cookie=a0(r0,e),$b=()=>document.cookie=`${a0(r0,"")}; Max-Age=-99999999`,_b=()=>document.cookie=`${a0(Vb,"")}; Max-Age=-99999999`,Jo=()=>Df().load(r0),pt=()=>Df().load($f()),Ub=()=>pt()?Xo()(pt()).staff:!1,Gb=()=>pt()?zf(pt())?.staffRoles||[]:[],Wb=()=>pt()?zf(pt())?.content_team_admin:!1,jde=()=>Gb().includes("content-team")||Wb(),i0=()=>pt()?Xo()(pt()).riseId||Xo()(pt()).sub||Xo()(pt()).aid:"",Kb=()=>pt()?Xo()(pt()).roles:[],Qb=()=>pt()?Xo()(pt()).tenantId:"",_f=()=>pt()?Xo()(pt()).subscription||{}:{},Zb=()=>_f().plan_id||"",Yb=()=>_f().status||"";var Xb=f(71066),Jb=f(31272),vs=f.n(Jb);const qb=ke?window.env:vs()(window.env,{ACCESS_COOKIE_NAME:$f(),REDIRECT_URI:window.location.origin+"/auth-callback"}),qo=(0,Xb.A)(qb),Uf=qo.closeSession,hi=qo.on,Gf=qo.request,Wf=qo.refreshSession,mi=qo.resetSession,ey=qo.getAuthorizationUrl,wde=qo.fetch;var Qn=f(52423);const qc=(e,t)=>((...s)=>{try{return e(...s)}catch(o){window.env?.SERVICE_ENV&&window.env?.SERVICE_ENV!=="prod"&&console.error(o),Qn.L2.addError(o),t(o)}}),ty=e=>{const t=e.getResponseHeader("content-type")||"",s=t.includes("application/json");if(!(s||t.includes("text/")))return e.response;try{const r=new TextDecoder("utf-8").decode(e.response);try{return s?JSON.parse(r):r}catch{return r}}catch{return e.response}};function sy(e,t){const s=t.indexOf(":"),o=t.substr(0,s).trim().toLowerCase(),r=t.substr(s+1).trim();return o&&(e[o]=e[o]?e[o]+", "+r:r),e}function ny(e){return e?e.split(`
`).reduce(sy,{}):{}}function Kf(e){const t=[];for(const s in e){const o=e[s];if(!Array.isArray(o)){t.push(encodeURIComponent(s)+"="+encodeURIComponent(o));continue}for(const r of o)t.push(Kf(r))}return t.join("&")}function c0(e){let t,s=!1;const o=new Promise(function r(a,i){const c=e.signal;if(c?.aborted){i(new DOMException("Aborted","AbortError"));return}const d=I=>{throw i(I),I},l=()=>{t.abort(),i(new DOMException("Aborted","AbortError"))},u=e.data;let m=qc(e.deserialize??Bf(),d);const p=e.headers??{},g=e.json??!1,C=e.jwt??!1,v=e.token??null,x=e.method??"GET",y=e.reviewEnv??!1,S=e.onUploadProgress;let L=qc(e.serialize??Bf(),d),b=e.url;const T=e.withCredentials??!1,N=e.file,k=e.timeout??3e3;t=new XMLHttpRequest;const E=setTimeout(()=>{t.abort(),i({error:"request timed out"})},k);if(g&&(m=qc(JSON.parse,i),L=qc(JSON.stringify,i),p["Content-Type"]="application/json"),x==="GET"&&u&&(b+="?"+Kf(u)),C){const I=v||pt();p.Authorization="Bearer "+I}c?.addEventListener("abort",l),t.withCredentials=T,t.addEventListener("abort",i),t.addEventListener("error",i),t.addEventListener("load",function(){t.status>=400?[401,403].includes(t.status)?s?i({error:"Unable to resume session",status:t.status}):mi().then(()=>{r(a,i),s=!0}).catch(I=>{Qn.L2.addError(I),i({error:"Unable to resume session",status:t.status})}):e.arrayBuffer?i(ty(t)):i(m(t.response)):(a({body:t.status===204?void 0:m(t.response),headers:ny(t.getAllResponseHeaders()),status:t.status}),c?.removeEventListener("abort",l)),clearTimeout(E)}),t.upload&&typeof S=="function"&&t.upload.addEventListener("progress",S),t.open(x,b),e.arrayBuffer&&(t.responseType="arraybuffer");for(const I in p)t.setRequestHeader(I,p[I]);x!=="GET"&&u?t.send(L(u)):N?t.send(N):t.send()});return o.abort=(...r)=>t.abort(...r),o}function oy(e){return e.status===200||e.status===201?e.body:Promise.reject(e.body)}const Qf=(e,t=!0)=>t?`${e}s`:e;var el=(e=>(e[e.KB=1024]="KB",e[e.MB=1048576]="MB",e[e.GB=1073741824]="GB",e[e.TB=1099511627776]="TB",e))(el||{});const Ade={KB:(e=1)=>1024*e,MB:(e=1)=>1048576*e,GB:(e=1)=>1073741824*e,TB:(e=1)=>1099511627776*e},Zf={KB:{short:"KB",long:"Kilobyte"},MB:{short:"MB",long:"Megabyte"},GB:{short:"GB",long:"Gigabyte"},TB:{short:"TB",long:"Terabyte"}},Rde=(e,t="short")=>{const o=Object.keys(el).reverse().find(c=>e>=el[c]);if(!o)return`${e} ${Qf("byte",e>1)}`;const r=e/el[o],a=r%1===0?r.toFixed(0):r.toFixed(2),i=t==="long"?Qf(Zf[o].long,r>1):Zf[o].short;return`${a} ${i}`},Yf="a",tl="n",Xf="t",pi="c",Jf="ps",fi="p",qf="v",sl="r",e2="s",t2="rr",s2="pq",l0="qd",d0="ql",n2="qt",nl="vp",o2="k",r2="is",a2="v",gi="i",i2="pv",c2="m",l2="sr",d2="s",u2="x",h2="sa",m2="t";var ry=f(31946),ay=f.n(ry);const ss=e=>!!e&&e.type==="quiz",Ln=e=>!!e&&e.type==="blocks",ot=({courseProgress:e,lessonId:t,updatedLessonProgress:s})=>({...e,lessons:{...e.lessons,[t]:s}});function rt({lessonId:e,nextCourseProgress:t,prevCourseProgress:s}){const o=t.lessons[e],r=s.lessons[e];if(o&&!ay()(o,r)&&(PT(o),iy({lessonId:e,courseProgress:t,prevCourseProgress:s})),cy({lessonId:e,prevCourseProgress:s,nextCourseProgress:t})){const a=f2(s),i=f2(t),c=i!==a,d={...t,percentComplete:i};return c&&(ly({courseProgress:d,lessonProgress:o}),d.percentComplete!=null&&OT(d.percentComplete)),d}return t}function iy({courseProgress:e,prevCourseProgress:t,lessonId:s}){const o=e.lessons?.[s],r=t.lessons?.[s];if(o?.percentComplete===100&&r?.percentComplete!==100){const a=p2(o);a&&RT(a)}}function cy({lessonId:e,nextCourseProgress:t,prevCourseProgress:s}){const o=t.lessons?.[e];if(!o)return!1;const r=s.lessons?.[e]?.percentComplete===100,a=o.percentComplete===100,i=r!==a,c=t.currentLesson!=null&&ss(t.lessons[t.currentLesson])&&t.lessons[t.currentLesson]?.percentComplete===100;return i||c}function p2(e){const{id:t}=e;if(!t)throw new Error("Cannot create lesson payload: lesson.id is missing");if(ss(e)){const{passed:s,score:o,passingScore:r=0}=e;return{id:t,...s!==void 0&&{passed:s},...o!==void 0&&{score:o},passingScore:r}}return{id:t}}function f2(e){const{lessons:t={}}=e,s=Object.keys(t).length;if(s===0)return 0;const o=Object.values(t).filter(r=>r.isComplete).length;return Math.round(o/s*100)}function ly({courseProgress:e,lessonProgress:t}){if(!e||!t)return;const s=p2(t);s&&MT(e,s)}const dy=e=>e.reduce((t,s,o)=>("id"in s&&(t[s.id]={id:s.id,index:o}),t),{}),u0=e=>({...e,percentComplete:h0({items:e.items,key:"isComplete"})}),g2=e=>({...e,percentComplete:h0({items:e.items,key:"isComplete"})}),v2=e=>({...e,percentViewed:h0({items:e.items,key:"isViewed"})});function Pde({itemId:e,isCorrect:t,progress:s}){const o={...s,items:{...s.items,[e]:{...s.items?.[e],id:e,index:s.items?.[e]?.index??0,isComplete:t,isViewed:t,...s.items?.[e].isCorrect===void 0?{isCorrect:t}:{}}}};o.items[e]?.isCorrect===!1&&(o.lastIncorrectCardId=e);const r=uy(o),a=r.percentComplete!==100?g2(r):r,i=v2(a);return i.percentComplete===100?{...i,isComplete:!0}:i}function h0({items:e,key:t}){const s=e??{},o=Object.keys(s).length,r=Object.values(s).filter(a=>a?.[t]).length;return o===0?0:Math.round(r/o*100)}function uy(e){const s=Object.values(e.items||{}).filter(o=>o.isCorrect===!0).length;return{...e,correctlyAnswered:s}}var m0=f(64933),hy,my;const er=e=>!!e&&Object.prototype.toString.call(e)==="[object Object]",C2=Array.isArray,Mde=(e,t)=>Object.fromEntries(Object.entries(t).map(e)),x2=(e,t,s)=>{const o={};for(const r in s)o[e(r)]=t(s[r]);return o},py=e=>e.map(b2),fy=e=>e.map(y2),gy=e=>x2(hy,b2,e),vy=e=>x2(my,y2,e),b2=e=>er(e)?gy(e):C2(e)?py(e):e,y2=e=>er(e)?vy(e):C2(e)?fy(e):e,It=(e,t)=>{const s=new Set(t),o={};for(const r in e)s.has(r)||(o[r]=e[r]);return o},xo=(e,t)=>Object.fromEntries(Object.entries(e).map(([s,o])=>t(s,o)));function L2(e,t){const s=e.lessons[t];if(!Ln(s))return e;const o={...p0(s),id:t},r=ot({courseProgress:e,lessonId:t,updatedLessonProgress:o});return rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:r})}function Cy(e,t){const{lessonId:s,blockId:o,itemId:r}=t,a=e.lessons[s];if(!Ln(a))return e;const i=a.items[o],c=Ey({blockProgress:i,itemId:r}),d=tr({lessonProgress:a,blockId:o,updatedProgressBlock:c}),l=u0(d),u=ot({courseProgress:e,lessonId:s,updatedLessonProgress:l});return rt({lessonId:s,prevCourseProgress:e,nextCourseProgress:u})}function xy(e,t){const s=e.lessons[t];if(!Ln(s))return e;const o=wy(s),r=ot({courseProgress:e,lessonId:t,updatedLessonProgress:o});return rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:r})}function by(e,{blockId:t,lessonId:s}){const o=e.lessons[s];if(!Ln(o))return e;const r=Ay(o.items[t]),a=tr({lessonProgress:o,blockId:t,updatedProgressBlock:r}),i=ot({courseProgress:e,lessonId:s,updatedLessonProgress:a});return rt({lessonId:s,prevCourseProgress:e,nextCourseProgress:i})}function yy(e,t){const{lessonId:s,blockId:o,items:r}=t,a=e.lessons[s];if(!Ln(a))return e;const i=Iy({blockId:o,lessonProgress:a,items:r}),c=ot({courseProgress:e,lessonId:s,updatedLessonProgress:i});return rt({lessonId:s,prevCourseProgress:e,nextCourseProgress:c})}function Ly(e,t){const{lessonId:s,blockId:o,itemId:r,audioVideoPlayhead:a}=t,i=e.lessons[s],c=i?.items?.[o];if(!Ln(i)||!c||!("items"in c)||!c.items||!c.items[r])return e;const l={...c.items[r],audioVideoPlayhead:a},u={...c,items:{...c.items,[r]:l}},m=tr({lessonProgress:i,blockId:o,updatedProgressBlock:u}),p=ot({courseProgress:e,lessonId:s,updatedLessonProgress:m});return rt({lessonId:s,prevCourseProgress:e,nextCourseProgress:p})}function Sy(e,t){const{lessonId:s,blockId:o,itemId:r,isCorrect:a}=t,i=e.lessons[s];if(!Ln(i))return e;const c=Ry({itemId:r,isCorrect:a,blockProgress:i.items[o]}),d=u0(tr({lessonProgress:i,blockId:o,updatedProgressBlock:c})),l=ot({courseProgress:e,lessonId:s,updatedLessonProgress:d});return rt({lessonId:s,prevCourseProgress:e,nextCourseProgress:l})}function Ty(e,t){const{lessonId:s,blockId:o,itemId:r,response:a}=t,i=e.lessons[s],c=i?.items?.[o];if(!Ln(i)||!c||!("items"in c)||!c.items||!c.items[r])return e;const l={...c.items[r],response:a},u={...c,items:{...c.items,[r]:l}},m=tr({lessonProgress:i,blockId:o,updatedProgressBlock:u}),p=ot({courseProgress:e,lessonId:s,updatedLessonProgress:m});return rt({lessonId:s,prevCourseProgress:e,nextCourseProgress:p})}function Ny(e,t){const{lessonId:s,blockId:o,isSubmitted:r}=t,a=e.lessons[s];if(!Ln(a))return e;const i=a?.items?.[o]??{},c=xo(i?.items??{},(m,p)=>[m,It(p,["response"])]),d={...i,items:c,isSubmitted:r},l=tr({lessonProgress:a,blockId:o,updatedProgressBlock:d}),u=ot({courseProgress:e,lessonId:s,updatedLessonProgress:l});return rt({lessonId:s,prevCourseProgress:e,nextCourseProgress:u})}const ky=e=>Object.values(e).length>0&&Object.values(e).every(t=>t.isComplete),p0=e=>{const t=xo(e.items,(s,o)=>{const r=xo(o.items??{},(a,i)=>[a,{...i,isComplete:!0,id:i.id,index:i.index}]);return[s,{...o,items:r,isComplete:!0}]});return{...e,isComplete:!0,items:t,percentComplete:100}},Iy=({blockId:e,items:t,lessonProgress:s})=>{const o=s.items?.[e]??{items:{}},r=new Set(t.map(l=>String(l.id))),a=xo(o.items??{},(l,u)=>{const m=r.has(l);return[l,{...u,isComplete:u.isComplete||m,id:u.id,index:u.index}]}),c=Object.keys(a).length===0||ky(a),d={...o,id:e,items:a,...c&&{isComplete:!0}};return jy(tr({lessonProgress:s,blockId:e,updatedProgressBlock:d}))},Ey=({blockProgress:e,itemId:t})=>{if(!e.items)return e;const s=e.items[t];return{...e,items:{...e.items,[t]:{...s,retryAttemptCount:(s?.retryAttemptCount??0)+1}}}},jy=e=>{const t=u0(e);return t.percentComplete===100?{...t,isComplete:!0}:t},tr=({blockId:e,lessonProgress:t,updatedProgressBlock:s})=>({...t,items:{...t.items,[e]:s}}),wy=e=>{const t=xo(e.items,(s,o)=>{const r=xo(o.items??{},(a,i)=>[a,It(i,["isComplete","isCorrect","isViewed"])]);return[s,{id:o.id,index:o.index,items:r}]});return{...It(e,["isComplete","percentComplete"]),items:t}},Ay=e=>({...It(e,["percentViewed","correctlyAnswered"]),id:e.id,index:e.index,items:xo(e.items??{},(t,s)=>[t,It(s,["isViewed","isCorrect"])]),retryAttempts:(e.retryAttempts??0)+1}),Ry=({isCorrect:e,itemId:t,blockProgress:s})=>{if(!s.items)return s;const o=s.items[t],r={...o,isComplete:e,isViewed:e,...o?.isCorrect===void 0&&{isCorrect:e}},a={...s.items,[t]:r},i=Object.values(a).filter(m=>m.isCorrect).length,c={...s,items:a,correctlyAnswered:i,...!e&&{lastIncorrectCardId:t}},d=v2(c),l=g2(d),u=l.percentComplete===100;return{...l,...u&&{isComplete:!0}}};function S2(e){return e.trim()===""}const Wt={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"},sr={SUMMARY:"SUMMARY",REMAINING:"REMAINING",ELAPSED:"ELAPSED",ELAPSED_TOTAL:"ELAPSED_TOTAL",HIDE_TIMER:"HIDE_TIMER"},Py={CONTINUE:"continue",NONE:""},Te={ALL:"all",NONE:"none",INCORRECT:"incorrect"},Ode=10,Wr=80,My=500;function Oy(e,{lessonId:t,progressId:s}){const o=e.lessons[t];if(!ss(o))return e;const r=o.activeIndex??0,a=s?(o.items[s]?.index??r)+1:r+1,i=Object.keys(o.items).length+1,c=Math.min(a,i),d={...o,activeIndex:c},l=ot({courseProgress:e,lessonId:t,updatedLessonProgress:d});return rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:l})}function By(e,t){const s=e.lessons[t];if(!ss(s))return e;const o=Object.keys(s?.items)?.length,r={...s,activeIndex:o+1},a=ot({courseProgress:e,lessonId:t,updatedLessonProgress:r});return rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:a})}function Dy(e,{lessonId:t,itemId:s}){const o=e.lessons[t];if(!ss(o))return e;const r=o.items[s];if(!r)return e;const a={...r,selectedIndices:[]},i=vi({lessonProgress:o,itemId:s,updatedProgressQuizItem:a}),c=ot({courseProgress:e,lessonId:t,updatedLessonProgress:i});return rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:c})}function Hy(e,{lessonId:t,lessonProgress:s}){return{...e,lessons:{...e.lessons,[t]:s}}}function Fy(e,{lessonId:t,itemId:s,text:o}){const r=e.lessons[t];if(!ss(r))return e;const a=r.items[s];if(!a)return e;const i=typeof o=="string"&&S2(o)?It(a,["text"]):{...a,text:o},c=vi({lessonProgress:r,itemId:s,updatedProgressQuizItem:i}),d=ot({courseProgress:e,lessonId:t,updatedLessonProgress:c});return rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:d})}function Vy(e,t){const s=e.lessons[t];if(!ss(s))return e;const o=xo(s.items,(c,d)=>{const l={id:d.id,index:d.index};return[c,l]}),a={...It(s,["activeIndex","originalItemProgress","passed","percentComplete","questionList","questionsDrawn","reportResults","score"]),...s.passed!==!1&&{passed:s.passed},...s.isComplete!==!1&&{isComplete:s.isComplete},retryAttempts:(s.retryAttempts??0)+1,items:o},i=ot({courseProgress:e,lessonId:t,updatedLessonProgress:a});return rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:i})}function zy(e,{lessonId:t,itemId:s,selectedIndex:o,shuffledAnswerIndices:r}){const a=e.lessons[t];if(!ss(a))return e;const i=a.items[s];if(!i)return e;const c=r??i.shuffledAnswerIndices;if(o==null)return e;const d=Array.isArray(c)&&c[o]!=null?c[o]:o,l={...i,selectedIndex:d,...Array.isArray(c)&&{shuffledAnswerIndices:c}},u=vi({lessonProgress:a,itemId:s,updatedProgressQuizItem:l}),m=ot({courseProgress:e,lessonId:t,updatedLessonProgress:u});return rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:m})}function $y(e,{lessonId:t,itemId:s,matches:o}){const r=e.lessons[t];if(!ss(r))return e;const a=r.items[s];if(!a)return e;const i={...a,matches:o},c=vi({lessonProgress:r,itemId:s,updatedProgressQuizItem:i}),d=ot({courseProgress:e,lessonId:t,updatedLessonProgress:c});return rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:d})}function _y(e,{lessonId:t,timeRemaining:s}){const o=e.lessons[t];if(!ss(o))return e;const r={...o,timeRemaining:s},a=ot({courseProgress:e,lessonId:t,updatedLessonProgress:r});return rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:a})}function Uy(e,{lessonId:t,itemId:s,isCorrect:o,finalRetryAttempt:r,passToContinue:a,skipLessonsIfPassed:i,skipToLessonId:c}){const d=e.lessons[t];if(!ss(d))return e;const l=d.passingScore??Wr,u=d.items[s];if(!u)return e;const m={...u,isCorrect:o,isComplete:!0},p={...d.items,[s]:m},g=Object.keys(p).length,C=Object.values(p).filter(b=>b.isCorrect).length,v=Object.values(p).filter(b=>b.isComplete).length,x=Math.round(C/g*100),y=Math.round(v/g*100);let S={...d,items:p,score:x,percentComplete:y};if(y===100){const b=x>=l,T=a?b:!0;if(dg(b,x,t,r),S={...S,passed:b,isComplete:T,reportResults:!0},i&&c&&b)return Ky(e,{quizId:t,destinationId:c,updatedLessonProgress:S})}const L=ot({courseProgress:e,lessonId:t,updatedLessonProgress:S});return rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:L})}function Gy(e,{lessonId:t,itemId:s,selectedIndex:o,shuffledAnswerIndices:r}){const a=e.lessons[t];if(!ss(a))return e;const i=a.items[s];if(!i)return e;const c=r??i.shuffledAnswerIndices;if(o==null)return e;const d=Array.isArray(c)&&c[o]!=null?c[o]:o,l=i.selectedIndices??[],m=l.includes(d)?l.filter(y=>y!==d):[...l,d],{selectedIndices:p,...g}=i,C=m.length>0?{...g,selectedIndices:m,...Array.isArray(c)&&{shuffledAnswerIndices:c}}:{...g,...Array.isArray(c)&&{shuffledAnswerIndices:c}},v=vi({lessonProgress:a,itemId:s,updatedProgressQuizItem:C}),x=ot({courseProgress:e,lessonId:t,updatedLessonProgress:v});return rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:x})}function vi({itemId:e,lessonProgress:t,updatedProgressQuizItem:s}){return{...t,items:{...t.items,[e]:s}}}function Wy(e,t){const{id:s,passed:o,passingScore:r,score:a,retryAttempts:i}=t,c=[o,i,a];if(!(c.length===3&&c.every(C=>C!=null)))return e;const l=e.lessons?.[s]?.items??{},u=Object.keys(l).length+1,m=e.lessons?.[s];if(!m)return e;const p={...m,isComplete:!0,activeIndex:u,reportResults:!0,passed:o,passingScore:r,percentComplete:100,retryAttempts:i,score:a};return{...e,lessons:{...e.lessons,[s]:p}}}function Ky(e,{quizId:t,destinationId:s,updatedLessonProgress:o}){const r=ot({courseProgress:e,lessonId:t,updatedLessonProgress:o}),a=rt({lessonId:t,prevCourseProgress:e,nextCourseProgress:r}),i=Object.keys(a.lessons),c=i.findIndex(u=>u===t),d=i.findIndex(u=>u===s);return c===-1||d===-1||d<=c?a:i.slice(c+1,d).reduce((u,m)=>{const p=u.lessons[m];if(!p)return u;let g;ss(p)?g=Qy(p):g=p0(p);const C=ot({courseProgress:u,lessonId:m,updatedLessonProgress:g});return rt({lessonId:m,prevCourseProgress:u,nextCourseProgress:C})},a)}function Qy(e){const t=Object.fromEntries(Object.entries(e.items||{}).map(([s,o])=>[s,{...o,isComplete:!0,isCorrect:!0}]));return dg(!0,100,e.id,!1),{...e,items:t,isComplete:!0,passed:!0,percentComplete:100,reportResults:!0,score:100}}var Zy=f(80949),Yy=f(56374),Zn=f.n(Yy);const Xy=e=>e!==void 0,T2=Zn()(Xy,ce()(JSON.parse,Zy.Base64.decode)),Jy=(e,t)=>window.courseData?e(window.courseData):window.course?{course:e(window.course),media:[]}:t;var qy=f(67970),en=f.n(qy),eL=f(16661),Ft=f.n(eL),tL=f(10103),Xe=f.n(tL),sL=f(9207),Kr=f.n(sL),nL=f(68510),oL=f.n(nL),rL=f(25785),N2=f.n(rL);const aL=["fromDashboard","locale","embed"];function iL(e,t){const s=typeof e=="function"?e(t):e;return typeof s=="string"?(0,ge.Rr)(s):s}function f0(e,t){const s=iL(e,t),o=new URLSearchParams(t?.search||""),r=new URLSearchParams(s?.search||"");for(const a of aL){const i=o.get(a);i&&!r.has(a)?r.set(a,i):r.has(a)&&!r.get(a)&&r.delete(a)}return{...s,search:r.toString()}}function Vt(){const e=(0,ge.Zp)(),t=(0,ge.zy)();return(0,h.useCallback)((s,o)=>{if(typeof s=="number")return e(s);const r=f0(s,t),a=r.pathname+(r.search?`?${r.search}`:"")+(r.hash||"");return e(a,o)},[e,t])}function cL(e){function t(s){const o=(0,ge.zy)(),r=Vt(),a=(0,ge.g)(),[i]=(0,ge.ok)();return(0,n.jsx)(e,{...s,location:o,match:{params:a},navigate:r,queryParams:i})}return t.displayName=`withRouter(${e.displayName||e.name})`,t}var lL=f(83824),dL=f.n(lL),k2=f(11376),uL=f(60466),I2=f.n(uL),hL=f(61081),g0=f.n(hL),mL=f(53163),Sn=f.n(mL),pL=f(74084),Qr=f.n(pL),fL=f(80070),st=f.n(fL),gL=f(34567),vL=f.n(gL),CL=f(80678),bo=f.n(CL),Hde=f(82852),xL;function bL(...e){return ce()(...vL()(1,e))(bo()(e))}function ol(e,...t){return st()(...t)(e)}function Fde(e,...t){return xL(...t)(e)}const tn=()=>{};var yL=f(68005);const Vde="datadoghq.com",zde=ye("SERVICE_ENV"),$de=ye("RISE_FRONTEND_SHA"),_de=ye("RISE_FRONTEND_LOCAL_DEV")==="true"||window.location.hostname==="rise.dev.articulate.zone",Ude=window.Cypress!=null,Gde=ke?[/https:\/\/.*(\.dev)?\.rise\.(com|zone)(?!\/api\/rise-business-content\/).*/,location.origin]:[/https:\/\/(rise(\.dev)?|360)\.articulate\.(com|zone)(?!\/api\/rise-business-content\/).*/],E2={"Content-Type":"application/json"},LL=[(e,t)=>(t.Authorization=`Bearer ${xi()}`,JSON.stringify(e))],SL=Ut()(Xe(),fe(),Sn()(["data","status","statusText"])),TL=st()(Sn()(["name","message","response"]),Kn()({response:SL})),NL=({baseURL:e,...t})=>ce()(vs()({headers:E2,transformRequest:LL}),vs()(t),Kn()({url:en()(e)})),kL=({data:e,method:t,url:s})=>fetch(s,{body:JSON.stringify(e),headers:{...E2,Authorization:`Bearer ${xi()}`},keepalive:!0,method:t}).then(o=>o.json()).then(Qr()("data")),IL=Zo().fromPromise(kL),EL=e=>({method:t,url:s})=>`${t}:${e}${s}`,jL=e=>{const t=new Error("Nil token detected");return Qn.L2.addError(t,e),Zo().Rejected(t)},wL=e=>t=>e.preRequest?e.preRequest(t):t,AL=e=>t=>e.postRequest?e.postRequest(t):t,RL=()=>!ke&&Xe()(xi()),PL=e=>(t,s)=>I2()(t,EL(s),v0(bi,e)),v0=(e,t)=>s=>ol(s,wL(t),NL(t),Ut()(RL,jL,e),g0()(TL,Ce()("data")),AL(t)),ML=e=>({debounce:PL(e),send:v0(bi,e),sendWithKeepAlive:v0(IL,e)}),OL=()=>document.visibilityState==="visible",BL=e=>Zn()(OL,()=>e()),C0=(e=>{document.addEventListener("visibilitychange",BL(e)),window.addEventListener("focus",()=>e())});(Object.getOwnPropertyDescriptor(C0,"name")||{}).writable||Object.defineProperty(C0,"name",{value:"default",configurable:!0});var DL=f(24578),ns=f.n(DL),HL=f(30684),Zr=f.n(HL),FL=f(23403),VL=f.n(FL),zL=f(75884),nr=f.n(zL),$L;const j2=e=>{const t=e.user,s=t?.profile?.user_id,o=t?.subscription?.subscription_id||t?.subscription?.id;return{application_source:"360_rise",application_service:"authoring",user_role:t?.subscription?.is_business_creator?"Business Creator":"Creator",reach_user_id:void 0,a360_user_id:s,user_permissions:t?.permissions||[],session_id:e?.user?.session,subscription_id:t?.subscription?.subscription_id||o,tenant_id:o,risecom_billing_id:void 0,...t?.subscription?.plan&&{subscription:{plan:t.subscription.plan,trial_type:t.subscription.trial_type??null}},...e.ai?.subscription&&{ai:{plan:e.ai.subscription.plan,start_date:e.ai.subscription.start_date,end_date:e.ai.subscription.end_date,status:e.ai.subscription.status}},...e.l10nAuthoring?.subscription&&{localization:{end_date:e.l10nAuthoring.subscription.end_date,plan:e.l10nAuthoring.subscription.plan,start_date:e.l10nAuthoring.subscription.start_date,status:e.l10nAuthoring.subscription.status,billing_model:e.l10nAuthoring.subscription.billing_model}}}},Kde=e=>{const t=e.course;return{course_id:t?.id,course_locale:t?.locale||e.l10n&&$L(e.l10n)||null,course_created_via:t?.metadata?.createdVia??null,course_snapshot_id:t?.metadata?.restoredFromSnapshotId??null,copied_course_id:t?.copyOf??null}},Qde=(e,t)=>{if(!t)return{};const s=e?.lessons?.[t];if(!s)return{};const o=e?.course?.lessons?.indexOf(t)+1||null;return{lesson_id:t,lesson_type:s.type,lesson_position:o}},Zde=(e,t,s)=>{if(!t||!s)return{};const r=(e.lessons||{})[t];if(!r?.items)return{};const a=r.items.find(d=>d.id===s);if(!a)return{};const c=r.items.map(d=>d.id).indexOf(s)+1;return{block_id:s,block_type:a.type,block_variant:a.variant,block_family:a.family,block_position:c,block_created_via:a?.metadata?.createdVia??"manual"}},Yde=({interactionSetId:e,interactionSetWorkflowKey:t,taskType:s,resourceType:o,hasSourceContent:r}={})=>e?{interaction_set_id:e,...t&&{interaction_set_workflow_key:t},interaction_set_task_type:s,interaction_set_task_resource_type:o,interaction_set_has_source_content:r}:{},_L=()=>{if(!navigator.userAgent)return"unknown";const t=new Yo.UAParser(navigator.userAgent).getResult();return t.device?.model?t.device.model:t.os?.name?t.os.name:t.browser?.name?t.browser.name:"unknown"},UL=()=>{if(!navigator.userAgent)return"unknown";const t=new Yo.UAParser(navigator.userAgent).getResult();return t.device?.model&&t.os?.version?t.os.version:t.browser?.version?t.browser.version:"unknown"},GL=()=>{if(!navigator.userAgent)return"desktop";const t=new Yo.UAParser(navigator.userAgent).getResult();return t.device?.type==="mobile"?"mobile":t.device?.type==="tablet"?"tablet":"desktop"},WL=()=>{if(!navigator.userAgent)return"unknown";const t=new Yo.UAParser(navigator.userAgent).getResult();if(t.device?.vendor)return t.device.vendor;if(t.os?.name)switch(t.os.name){case"Mac OS":case"iOS":return"Apple";case"Windows":return"Microsoft";case"Android":return"Google"}return"unknown"},KL=()=>{if(!navigator.userAgent)return"unknown";const t=new Yo.UAParser(navigator.userAgent).getResult();return t.device?.model?t.device.model:"unknown"},w2=()=>{if(!navigator.userAgent)return"browser";const t=new Yo.UAParser(navigator.userAgent).getResult();return t.device?.type==="mobile"?"mobile":t.device?.type==="tablet"?"tablet":"browser"};function QL(e){return"userAgentData"in e}const A2=()=>{if(QL(navigator))return{platform:navigator.userAgentData.platform,mobile:navigator.userAgentData.mobile,brands:navigator.userAgentData.brands}},R2=()=>({name:_L(),version:UL(),type:GL(),manufacturer:WL(),model:KL()}),P2=()=>{const t=new URLSearchParams(window.location.search).get("query");return{referrer:document.referrer||null,search:t||null,url:window.location.href,path:window.location.pathname+window.location.search+window.location.hash}},M2=()=>navigator.userAgent||null,or=(e,t=null)=>{const s={...e,context:{locale:navigator.language,device:R2(),channel:w2(),userAgentData:A2(),page:P2(),userAgent:M2(),...e.context},properties:{...t?j2(t):{},...e.properties}};return c0({method:"POST",url:`${ye("RISE_RUNTIME_URI")}/analytics`,json:!0,data:s})},ZL=ye("SUBSCRIPTIONS_ENDPOINT"),YL=ye("THREESIXTY_FRONTEND_URI"),XL=VL()(["error","status"],404),JL=ce()(Qr()("error"),Ce()("response")),qL=()=>window.location.href=YL,eS=[(e,t)=>(t.Authorization=`Bearer ${xi()}`,e)],tS=async e=>{const t=`${ZL}/users/authorized_status`,s=await bi({transformRequest:eS,url:t}).toPromise().catch(JL),o=ce()(e,N2()(a=>or({event:"Unexpected Logout",payload:{category:"auth",data:a,detail:"Subscription Error"}})));return ns()([[XL,qL],[Zr()("error"),o],[nr(),Ce()("data")]])(s)};var sS=f(19526),Rs=f.n(sS);const O2=e=>e===H2,yo=e=>O2(e?.type),Jde=(e,t)=>s=>yo(s)?e:t,nS=null,x0={guide:"Guide",presentation:"Presentation",video:"Video Training",microlearning:"Microlearning"},B2=e=>Object.prototype.hasOwnProperty.call(x0,e),b0=e=>{const t=e?.outputType;return typeof t=="string"&&B2(t)?t:void 0},y0=(e,t)=>e===H2&&t!==void 0,oS=e=>{const t=b0(e?.experiments);return y0(e?.type,t)&&t==="guide"},rl=e=>{const t=b0(e?.experiments);return y0(e?.type,t)&&t==="presentation"},L0=e=>{const t=b0(e?.experiments);return y0(e?.type,t)&&t==="video"},qde=e=>typeof e=="string"&&B2(e)?x0[e]:x0.microlearning,eue=e=>e?nS.includes(e):!1;var rS,aS;const tue={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,}))$/},Lo={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"},al={EDITOR:1,MANAGER:2,OWNER:3},iS={[al.EDITOR]:"Author",[al.MANAGER]:"Admin",[al.OWNER]:"Owner"},sue=Object.values(al).map(e=>({id:e,title:iS[e]})),nue=({name:e,isOnePage:t,outputType:s})=>{const o=t?aS(s):null,r={Admin:o?`${o} manager`:"Manager",Author:o?`${o} editor`:"Editor",Owner:o?`${o} owner`:"Owner"},a={Admin:o?`${o} manager`:"Course manager",Author:o?`${o} collaborator`:"Course collaborator",Owner:o?`${o} owner`:"Course owner"};return rS?r[e]:a[e]},oue="questionBanks",D2="2% 0px 2% 0px",rue=9,aue=13,iue=27,cue=32,lue=38,due=40,hue=864e5*3,mue=100,H2="onePage",Ps={UP:"up",DOWN:"down"},So=Rs()({COMPACT:null,COVER:null,OVERLAY:null,SIDEBAR:null}),rr={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},pue=Object.values(rr),fue={PORTRAIT:"portrait",LANDSCAPE:"landscape"},ft={DARK:"#000",LIGHT:"#fff"},S0={SMALL:{label:"Small",value:1},MEDIUM:{label:"Medium",value:1.5},LARGE:{label:"Large",value:2}},F2=["embed","map","process","sorting","timeline","video","screencast","slidecast"];var cS;const gue=e=>e.status==="active",lS=e=>e.status==="inactive",vue=e=>e.plan==="individual",Cue=e=>e.features?.enable_review===!0,dS=e=>e.features?.enable_rise===!0,xue=e=>e.plan==="trial",uS=e=>e.plan==="trial"&&e.status==="inactive"&&e.is_retrial_eligible===!1,bue=e=>e.plan==="team"||e.plan==="individual",yue=e=>e.plan==="team"&&e.is_team_admin===!0,Lue=e=>e.plan==="trial"&&e.is_team_admin===!0,Sue=e=>{if(!e.end_date)return 0;const t=new Date(e.end_date);t.setUTCHours(0,0,0,0);const s=t.setDate(t.getDate()+1);return s&&(s.valueOf()-new Date().setUTCHours(0,0,0,0))/cS||0};var hS=f(42896),T0=f.n(hS),mS=f(46341),V2=f.n(mS),pS=f(19282),Yr=f.n(pS),fS=f(63562),Lt=f.n(fS);const Ci=(e,t)=>`${ye("ID_MAPPER_URI")}/v1/avatars/${encodeURIComponent(e)}?size=${t}`,gS=e=>({large:Ci(e,"large"),medium:Ci(e,"medium"),micro:Ci(e,"micro"),mini:Ci(e,"mini"),small:Ci(e,"small")}),vS=V2()({features:Lt()({},"features"),subscription:Kr()(["features"])}),CS=T0()([uS,lS,Yr()(dS)]),xS="/auth-callback",z2="/auth-error",il=()=>new Promise(e=>{if(!window.Osano)return e();if(window.Osano.cm.dialogOpen){const t=setTimeout(()=>{e()},1e4);window.Osano.cm.addEventListener("osano-cm-ui-changed",(s,o)=>{s==="dialog"&&o==="hide"&&(e(),clearTimeout(t))})}else e()}),N0=xS,bS=z2,yS=pt,$2=()=>window.location.pathname===N0;let _2=!1,k0=!1;const LS=e=>{if(_2)return;const t=(0,k2.A)();_2=!0,window.localStorage.setItem(t,e);const s=ey({client_id:ye("OKTA_CLIENT_ID"),issuer:ye("OIDC_ISSUER_URI"),redirect_uri:`${window.location.origin}${N0}`,response_mode:"fragment",scope:ye("OIDC_SCOPE"),state:t,prompt:null});il().then(()=>{window.location.href=s})},U2=()=>{const e=new URLSearchParams(window.location.search),t=e.has("redirect_url")?e.get("redirect_url"):window.location.href;return LS(t)},SS=()=>Wf().catch(e=>{e.response?.status===404&&ar({onLogout:()=>window.location.reload(!0),reason:"Session expired"})}),TS=()=>{if(k0)return;const e=Jo(),t=i0();Xe()(e)?(or({event:"Unexpected Logout",payload:{category:"auth",userId:t,detail:"id from cookie was null"}}),Qn.L2.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:t,idFromCookie:e,detail:"id from cookie was null"}),k0=!0,ar({onLogout:()=>window.location.reload(!0),reason:"Unexpected logout: user id/session cookie missing"})):e!==t&&(or({event:"Unexpected Logout",payload:{category:"auth",userId:e,idFromToken:t,detail:"Session/Token ID Mismatch"}}),Qn.L2.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:t,idFromCookie:e,detail:"Session/Token ID Mismatch"}),k0=!0,mi().then(()=>window.location.reload(!0)))},G2=async e=>{try{const[,t,s,o]=await mi(),{aid:r,content_team_admin:a}=o;if(or({event:"Setting Session Cookie",payload:{category:"auth",userId:r,detail:"Resuming existing session"}}),zb(r),$2()){e();return}const{first_name:i,last_name:c,launchdarkly:d,staff:l}=t,m={avatars:gS(r),first_name:i,user_id:r,last_name:c,staff:l,content_team_admin:a},p={author:r,profile:m},g=()=>ar({onLogout:Ne()(null)}),C=x=>e({...p,...vS(x),launchdarkly:d,token:s}),v=await tS(g).then(N2()(C)).catch(()=>e({...p,token:s}));if(CS(v)){or({event:"Unexpected Logout",payload:{category:"auth",userId:Jo(),subscription:v,detail:"Invalid Subscription"}}),Qn.L2.addError(new Error("Unexpected Logout"),{type:"User Meta",userId:Jo(),detail:"Invalid Subscription"}),ar({onLogout:()=>window.location=`${ye("THREESIXTY_FRONTEND_URI")}/rise`});return}C0(TS)}catch(t){or({event:"Unexpected Logout",payload:{category:"auth",userId:Jo(),error:t,detail:"Error Resuming Session"}}),Qn.L2.addError(t,{type:"User Meta",userId:Jo(),detail:"Error Resuming Session"}),ar({onLogout:()=>window.location.reload(!0)})}},W2=({onFetchTokens:e})=>{if($2()){G2(e);return}const t=Jo(),s=i0();if(Xe()(t)||t!==s){il().then(U2);return}G2(e)},ar=({onLogout:e,reason:t})=>{t&&or({event:"Logout",payload:{category:"auth",userId:Jo(),detail:t}});const s=ye("RISE_AUTHORING_URI"),o=()=>ke?Promise.resolve():ML({baseURL:s}).send({method:"DELETE",url:"/logout"}),r=()=>{$b(),_b(),Uf().then(e)};o().fork(a=>{console.error("Failed to log out of rise-authoring-api",a),r()},r)},NS=ce()(dL().parse,oL()(1,1/0)),kS=(e,t)=>{il().then(()=>{const o=window.localStorage.getItem(t)||"/",r=o===e?"/":o;window.localStorage.removeItem(t),window.location.href=r})},IS=e=>()=>window.location.href=`${z2}?description=${e}`,ES=({location:e})=>()=>{const{hash:t,pathname:s}=e,{state:o,error:r,error_description:a}=NS(t);r?(Qn.L2.addError(r,{type:"Logout Error",reason:"Error encountered when parsing auth callback.",error_description:a}),ar({onLogout:IS(a),reason:`Error encountered when parsing auth callback. Error: ${r}; description: ${a}`})):W2({onFetchTokens:()=>kS(s,o)})},jS=cL(e=>((0,h.useEffect)(ES(e),[]),null)),wS=({dispatch:e,loadProfileOKTA:t})=>s=>{const o=Kr()(["token"],s);ce()(e,t)(o)};var AS=f(8124),K2=f.n(AS),RS=f(68971),Tn=f.n(RS),PS=f(71716),Fe=f.n(PS),MS=f(62510),Q2=f.n(MS),OS=f(60092),Ms=f.n(OS);const cl=async()=>{await il();const[e,t]=tt()(encodeURIComponent,Q2()(["hash","pathname"],window.location));window.location.href=`/login#c=${t}${e}`},Z2=()=>{window.location.href="/"},BS=null,DS=null,HS=pt,FS=cl,Y2=Uf,VS=()=>Wf().catch(()=>Y2()),zS=st()(Lt()([],"roles"),Ms()(Tn()("author"),Z2)),X2=st()(Fe()("",["subscription","status"]),Ms()(Tn()(K2(),["active","in_trial","non_renewing"]),Z2)),$S=()=>window.location.reload(),_S=async({onFetchTokens:e})=>{try{const[t,s]=await mi(),{launchdarkly:o,riseId:r,sub:a,staff:i,subscription:c}=s,d={staff:i,user_id:r||a};return X2(s),e({author:d.user_id,launchdarkly:o,profile:d,subscription:c,token:t}),hi("change:roles",zS),hi("change:status",X2),hi("change:subdomain",$S),hi("unauthorized",cl),hi("session:closed",cl),t}catch{cl()}},{callbackComponent:Nue,callbackPath:kue,getToken:xi,initAuth:Iue,logout:Eue,refreshSession:jue,request:bi}=ke?Co:Wo;var J2,q2;const eg=`${ye("RBC_URI")}/api/partner_content`,US=null,GS=en()(`${eg}/`),I0={transformRequest:[(e,t)=>(t.Authorization=`Bearer ${xi()}`,e)],headers:{"Content-Type":"application/json"}},Rue=()=>q2({...I0,url:US}).toPromise().then(J2(["data","types"])),Pue=e=>q2({...I0,url:GS(e)}).toPromise().then(J2(["data","content"])),WS=e=>bi({method:"POST",url:eg,data:JSON.stringify({ids:e}),...I0}).map(Ft()(["data","content"]));var KS=f(85052),ir=f.n(KS);const tg=ye("SERVICE_ENV")==="prod",ll=tg?"com":"zone",QS=st()(JSON.stringify,ir()(new RegExp(`https://images.riseusercontent.${ll}/`,"g"),`${ye("IMAGES_URI")}/`),ir()(new RegExp(`https://riseusercontent.${ll}/`,"g"),`${ye("CDN_USER_CONTENT_URI")}/`),ir()(new RegExp(`https://video.rise.${ll}/`,"g"),`https://video.riseusercontent.${ll}/`),Zn()(Ne()(!tg),ir()(new RegExp("https://video.rise.com/","g"),"https://video.riseusercontent.zone/")),JSON.parse);var ZS=f(11346),YS=f.n(ZS),XS=f(9711),os=f.n(XS),JS=f(53100),rs=f.n(JS),qS=f(95821),gt=f.n(qS),eT=f(62802),dl=f.n(eT),tT=f(5331),sT=f.n(tT),nT=f(3705),Xr=f.n(nT),oT=f(79212),rT=f.n(oT);const yi=e=>!!e,E0={[Yf]:["activeIndex",fe()],[nl]:["audioVideoPlayhead",Number],[pi]:["isComplete",yi],[tl]:["correctlyAnswered",fe()],[fi]:["percentComplete",fe()],[sl]:["retryAttempts",fe()],[e2]:["score",fe()],[Xf]:["currentTime",fe()],[qf]:["percentViewed",fe()],[t2]:["reportResults",fe()],[s2]:["passed",fe()],[Jf]:["passingScore",fe()],[l0]:["questionsDrawn",fe()],[d0]:["questionList",tt()(tt()(fe()))],[n2]:["timeRemaining",Number]},aT=e=>(t,s)=>os()([rs()(E0[s])],bo()(E0[s])(t),e),sg=e=>(t,s)=>{let o=bo()(og[s])(t);return s===gi&&(o=o(Ce()("items",e))),{[rs()(og[s])]:o}},iT=e=>t=>{const s=e?.[t.index];return Ms()(()=>Xe()(s),()=>ce()(vs()(t),Xr(),Ht(),gs()(sg(t)))(s))(t)},ng=e=>tt()(iT(e)),cT=ce()(Xr(),Ht(),gs()(sg(null))),lT=e=>t=>{const s=Ce()(gi,e),o=Ce()("items",t);return ce()(Zn()(()=>YS()([Zr()(d0),Pe()(l0,!0),()=>!Xe()(s)])(e),r=>{const a=tt()(cT,s);return os()("originalItemProgress",a,r)}),vs()(t),Ms()(()=>gt()(s),rT()(sT()("items"),ng(s)(o))),Xr(),Ht(),gs()(aT(t)))(Sn()(dl()(E0),e))};function dT(e,t){const s=Ce()("lessons",t),o=r=>{const a=Ce()(r.index,s);return Ms()(()=>Xe()(a),lT(a))(r)};return Ms()(()=>gt()(s),ce()(os()("percentComplete",Lt()(0,fi,t)),Kn()({lessons:tt()(o)})))(e)}const og={[nl]:["audioVideoPlayhead",Number],[tl]:["correctlyAnswered",fe()],[pi]:["isComplete",yi],[o2]:["isCorrect",yi],[r2]:["isSubmitted",yi],[a2]:["isViewed",yi],[gi]:["items",ng],[i2]:["percentViewed",fe()],[c2]:["matches",fe()],[l2]:["response",fe()],[sl]:["retryAttemptCount",Number],[d2]:["selectedIndex",fe()],[u2]:["selectedIndices",fe()],[h2]:["shuffledAnswerIndices",fe()],[m2]:["text",fe()]};var uT=f(98623),Nn=f.n(uT),hT=f(23525),j0=f.n(hT);const w0={activeIndex:[Yf,fe()],audioVideoPlayhead:[nl,Number],correctlyAnswered:[tl,fe()],currentTime:[Xf,fe()],isComplete:[pi,Number],passingScore:[Jf,fe()],percentComplete:[fi,fe()],percentViewed:[qf,fe()],retryAttempts:[sl,fe()],score:[e2,fe()],questionsDrawn:[l0,fe()],questionList:[d0,tt()(tt()(fe()))],reportResults:[t2,fe()],passed:[s2,fe()],timeRemaining:[n2,Number]},mT=(e,t)=>({[rs()(A0[t])]:bo()(A0[t])(e)}),pT=e=>ce()(Ms()(gt(),Qr()(Ce()("index",e))),Xr(),Ht(),gs()(mT))(j0()(gt(),Sn()(dl()(A0),e))),rg=ce()(Xr(),Ht(),tt()(pT)),fT=(e,t)=>({[rs()(w0[t])]:bo()(w0[t])(e)});function gT(e){const t=Ce()("items",e),s=Ce()("index",e),o=Ms()(Nn()(Xe(),gt()),rg)(t);return ce()(Qr()(s),Ms()(()=>Nn()(Xe(),gt())(o),os()(gi,o)),Xr(),Ht(),gs()(fT))(Sn()(dl()(w0),e))}const vT=ce()(Qr()(fi),Lt()(0,"percentComplete")),A0={audioVideoPlayhead:[nl,Number],correctlyAnswered:[tl,fe()],isComplete:[pi,Number],isCorrect:[o2,Number],isSubmitted:[r2,fe()],isViewed:[a2,Number],items:[gi,rg],matches:[c2,fe()],percentViewed:[i2,fe()],retryAttemptCount:[sl,Number],selectedIndex:[d2,fe()],selectedIndices:[u2,tt()(Number)],shuffledAnswerIndices:[h2,tt()(Number)],text:[m2,fe()],response:[l2,fe()]},cr=e=>window.env?.[e],CT=e=>`${cr("CDN_USER_CONTENT_URI")}/${e}`,xT=()=>!!window.shareId,ag=()=>!!window.contentId,ig=()=>!!window.snapshotId,bT=()=>!!window.shareId&&!!window.hasPassword,yT=ag()&&!ke?QS:e=>e,LT={fetch:()=>R0.isExport?.()||window.courseData||window.course?Jy(T2,{}):c0({method:"GET",url:window.shareId?`${cr("RISE_RUNTIME_URI")}/boot/share/${window.shareId}`:ag()?`${cr("RISE_RUNTIME_URI")}/boot/businessContent/${window.contentId}`:ig()?`${cr("RISE_RUNTIME_URI")}/boot/snapshot/${window.snapshotId}`:`${cr("RISE_RUNTIME_URI")}/boot/${window.courseId}`,json:!0,withCredentials:!0,timeout:3e4}).then(oy).then(t=>typeof t=="object"?t:T2(t)).then(yT),fetchPartnerContent:e=>R0.isExport?.()||window.partnerContent?window.partnerContent.content:WS(e).toPromise(),getEnv:cr,isPasswordProtected:bT,isShare:xT,isSnapshotPreview:ig,resolvePath:CT,verifySharePassword:e=>c0({method:"POST",url:`${cr("RISE_RUNTIME_URI")}/password`,data:{shareId:window.shareId,password:e},json:!0}).then(t=>t.body)},ST=(e,{id:t,type:s,...o})=>s==="quiz"?Wy(e,{id:t,...o}):L2(e,t),TT=(e,t)=>e+((t||{})[pi]||0),NT=(e,t)=>(s,{id:o,type:r,...a})=>t.lessons[o]?{...s,...e(ST(t,{id:o,type:r,...a}).lessons[o])}:s,kT=(e,t,s)=>{const o=t.reduce(NT(e,s),{}),r=Object.keys(s.lessons||{}).length,a=Object.values(o).reduce(TT,0),i=Math.round(a/r*100);return{lessons:o,p:i}};window.Rise=Object.assign(window.Rise||{},{completeLessons:kT,decodeCourseProgress:dT,encodeCourseProgress:vT,encodeLessonProgress:gT});const R0={...LT,...window.Runtime??{}},me=R0,IT=e=>window.env?.[e],ET=e=>me.getMasteryScore!=null?me.getMasteryScore(e):e.passingScore,jT=e=>{if(me.onCreateHistory!=null)return me.onCreateHistory(e)},cg=(e={},t)=>me.fetch!=null?Promise.resolve(t==null?me.fetch():me.fetch(t)):Promise.resolve(e),wT=(e=[])=>{if(me.fetchPartnerContent!=null)return me.fetchPartnerContent(e)},AT=e=>{if(me.bookmark!=null)return me.bookmark(e)},lg=e=>me.getProgress!=null?me.getProgress(e):e,RT=e=>me.setLessonComplete!=null?me.setLessonComplete(e):e,PT=e=>me.setLessonProgress!=null?me.setLessonProgress(e):e,MT=(e,t)=>me.setCourseProgress!=null?me.setCourseProgress(e,t):e,OT=e=>{if(me.finish!=null)return me.finish(e)},dg=(e,t,s,o)=>{me.finishQuiz!=null&&me.finishQuiz(e,t,s,o)},BT=(e,t,s,o)=>{me.finishStoryline!=null&&me.finishStoryline(e,t,s,o)},ug=()=>me.isComplete!=null?me.isComplete():null,hg=()=>me.isExport!=null?me.isExport():!1;function mg(){if(me.isExport!=null){const e=window.partnerContent?.content;return me.isExport()&&!!e}return!1}const pg=()=>me.isShare!=null?me.isShare():!1,DT=()=>me.isSnapshotPreview!=null?me.isSnapshotPreview():!1,fg=()=>me.isPasswordProtected!=null?me.isPasswordProtected():!1,gg=e=>{const t=e||"";return me.resolvePath!=null?t.startsWith("http")||t.startsWith("data:")||t.startsWith("//")?t:me.resolvePath(t):t.startsWith("data:")||t.startsWith("http")||t.startsWith("//")?t:`/${t}`},HT=e=>me.verifySharePassword!=null?me.verifySharePassword(e):Promise.resolve({isValid:!0}),vg=e=>{if(me.reportAnswer!=null){const{id:t,isCorrect:s,isUnfinished:o=!1,item:r,itemProgress:a,duration:i,retryAttempts:c,title:d}=e,{id:l,title:u,type:m}=r;return me.reportAnswer({id:t,type:m,isCorrect:s,itemId:l,questionTitle:ws(u),quizTitle:ws(d),retryAttempts:c,answers:Tb(r),correctResponse:Nb(r),response:kb({isUnfinished:o,item:r,itemProgress:a}),isUnfinished:o,latency:Sb(i)})}return!1},FT=e=>{if(me.startLesson!=null)return me.startLesson(e)},VT=()=>{if(me.getLocale!=null)return me.getLocale()},zT=e=>{if(me.setLocale!=null)return me.setLocale(e)},{browser:Cg,os:xg}=new Yo.UAParser(window.navigator.userAgent).getResult(),$T=e=>{if(me.sendTelemetry!=null)return me.sendTelemetry({...e,browser:{name:Cg.name??"",version:Cg.version??""},os:{name:xg.name??"",version:xg.version??""}})};var bg=f(4214),_T=f(69792),UT=f(92506),GT=f(45834),WT=f(52164),KT=f(21307),P0=f(14291),M0=f(27395),QT=f(1400);bg.A.register(_T.A),bg.A.register(UT.A);function Jr(...e){try{return(0,GT.Ay)(...e)}catch{return null}}const sn=(e,t)=>{const s=Jr(t);return s==null?null:(0,M0.A)((0,P0.jh)(s,Jr("#ffffff"),e),{format:"hex",collapse:!1})},O0=e=>sn(.9,e);var ZT=f(9967),Kt=f.n(ZT),YT=f(53983),XT=f.n(YT),JT=f(28876),B0=f.n(JT),Et=f(76555);const qT=ce()(Tn()(".svg"),Lt()("","originalUrl")),eN=Ut()(qT,Ne()({width:"500rem"}),Ne()({})),lr=e=>{if(e){const t=e.trim();if(t!==""&&t!=='""')return e}return""},yg=e=>lr(e)||void 0,Lg=e=>e?"img":void 0,Sg=e=>st()(Lt()("","originalUrl"),B0()("."),bo(),Kt()(e)),tN=Sg("svg"),Hue=Sg("gif"),sN=/\.svg$/i,Tg=e=>sN.test(e),nN={process:"center",timeline:"left"},Fue=e=>nN[e]||"left",oN=(e,t)=>{const s=XT()(e,t);return s.media.image.key===t.media.image.key&&Object.assign(s.media.image,{crushedKey:t.media.image.key,useCrushedKey:!0}),s},rN=({src:e,alpha:t})=>({alpha:t,media:{image:{key:aN(e),src:e}}}),aN=e=>typeof e!="string"?"":e.startsWith("http")?new URL(e).pathname.slice(1):e,iN=(({coverImageAlpha:e,coverImage:t})=>({alpha:e,src:t})),cN=(({lessonHeaderImageAlpha:e,lessonHeaderImage:t})=>({alpha:e,src:t})),Ng=(e,t)=>(s,o)=>{const r=s[t];if(s?.theme){const a=o?o(r?.media):r?.media;if((0,Et.uW)(a))return r;const i={...r,media:{...a}},c=rN(e(s.theme));return oN(i,c)}else return r},kg=Ng(iN,"coverImage"),Ig=Ng(cN,"lessonHeaderImage"),Vue=async e=>{const t=new Image;return t.src=e,await t.decode(),t};function kn(e){return Rs()(e)}class lN extends Error{constructor(t="Assert Error",s){super(t,s)}}function zue(e,t="Assertion Error"){if(!e)throw new lN(t)}const ul={RISE_CLASSIC:"classic",APEX:"organic",HORIZON:"imaginative"},dN="#ff631e",qr=3,uN=17,hN=32,mN=24,pN=50,fN=.6,Eg="right",gN="rounded",vN=[{color:"#4baaf4",name:"Sky"},{color:"#285f9f",name:"Blueberry"},{color:"#7837a8",name:"Jelly"},{color:"#d84738",name:"Cherry"},{color:"#ff631e",name:"Tangerine"},{color:"#25bb64",name:"Basil"}],$ue="#ffffff",_ue=Xc()("color",vN),D0="#000",H0="#fff",Uue="Rise",q=kn({ACCENT:null,BLACK:null,COLOR:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),Li=kn({LARGE:null,MEDIUM:null,SMALL:null}),hl=kn({STEPPED:null,CONTINOUS:null}),F0=Rs()({NUMBERS:null,DOTS:null,NONE:null}),dr=kn({COMPACT:null,OVERLAY:null,SIDEBAR:null}),Yn=Rs()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),ur=Rs()({DARK:null,DARK_ACCENT:null,DARK_IMAGE:null,LIGHT:null,LIGHT_ACCENT:null,LIGHT_IMAGE:null}),To={FREE:"free",RESTRICTED:"restricted"},No=Rs()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),Je=Rs()({THEME_DEFAULT:null,CIRCULAR_FILL:null,INCOMPLETE_COMPLETE:null}),Si=kn({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),Xn=kn({FULL:null,FLOATING:null,FLOATING_FULL:null}),ne=kn({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}),Gue={default:[{text:"Centered",type:ne.CENTERED},{text:"Centered overlay",type:ne.CENTERED_OVERLAY},{text:"Left",type:ne.LEFT},{text:"Left overlay",type:ne.LEFT_OVERLAY},{text:"Split left image",type:ne.SPLIT_LEFT_IMAGE},{text:"Split right image",type:ne.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:ne.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:ne.TWO_THIRDS_RIGHT_IMAGE}],classic:[{text:"Centered",type:ne.CENTERED},{text:"Centered overlay",type:ne.CENTERED_OVERLAY},{text:"Left",type:ne.LEFT},{text:"Left overlay",type:ne.LEFT_OVERLAY},{text:"Split left image",type:ne.SPLIT_LEFT_IMAGE},{text:"Split right image",type:ne.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:ne.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:ne.TWO_THIRDS_RIGHT_IMAGE}],organic:[{text:"Centered",type:ne.CENTERED},{text:"Centered overlay",type:ne.CENTERED_OVERLAY},{text:"Left",type:ne.LEFT},{text:"Left overlay",type:ne.LEFT_OVERLAY},{text:"Split left",type:ne.SPLIT_LEFT},{text:"Split right",type:ne.SPLIT_RIGHT},{text:"Split left image",type:ne.SPLIT_LEFT_IMAGE},{text:"Split right image",type:ne.SPLIT_RIGHT_IMAGE}],imaginative:[{text:"Centered",type:ne.CENTERED},{text:"Centered overlay",type:ne.CENTERED_OVERLAY},{text:"Centered image",type:ne.CENTERED_IMAGE},{text:"Centered accent tint",type:ne.CENTERED_ACCENT_TINT},{text:"Split left image",type:ne.SPLIT_LEFT_IMAGE},{text:"Split right image",type:ne.SPLIT_RIGHT_IMAGE},{text:"Two-thirds left image",type:ne.TWO_THIRDS_LEFT_IMAGE},{text:"Two-thirds right image",type:ne.TWO_THIRDS_RIGHT_IMAGE}]},Wue=null,Kue=null,Que=[{text:"Image",type:ne.IMAGE},{text:"Accent",type:ne.ACCENT},{text:"White",type:ne.WHITE}],ea={CLOSED:"closed",HIDDEN:"hidden",OPEN:"open"},pe=kn({AUTO:null,BLACK:null,LIGHT:null,DARK:null}),CN=kn({ROUNDED:null,SQUARED:null}),xN=Rs()({ROUNDED:null,SQUARED:null}),bN=Rs()({FLOATING:null,FULL:null}),nt=Rs()({ACCENT:null,DARK:null,LIGHT:null}),Zue=[{value:pe.AUTO,label:"Auto"},{value:pe.DARK,label:"Dark"},{value:pe.LIGHT,label:"Light"}],Ue={accentContrast:pe.AUTO,allowSearch:!0,animateBlockEntrance:!0,blockBackgroundColor:null,blockBackgroundColorContrast:pe.AUTO,blockBackgroundType:q.LIGHT,blockContinueCompletionType:"",blockContinueCompleteHint:"Complete the content above before moving on.",blockContinueLabel:"Continue",blockCorners:CN.ROUNDED,blockPaddingEnd:qr,blockPaddingStart:qr,blockTextBackgroundColor:null,blockTextBackgroundColorContrast:pe.AUTO,blockTextBackgroundType:q.LIGHT,blockTextBodyFontSize:uN,blockTextHeadingFontSize:hN,blockTextPaddingEnd:qr,blockTextPaddingStart:qr,blockTextSubheadingFontSize:mN,buttonInlineStyle:xN.ROUNDED,buttonNavigationStyle:bN.FULL,buttonScheme:Si.LIGHT,colorAccent:dN,compactShowLessonCount:!0,coverImageAlpha:pN,coverPageType:ne.SPLIT_LEFT_IMAGE,customColorLessonHeaderContrast:pe.AUTO,enableVideoPlaybackSpeed:!0,lessonHeaderImageAlpha:fN,lessonHeaderImageColor:nt.DARK,lessonHeaderSize:Li.MEDIUM,lessonHeaderStyle:q.LIGHT,markLessonsComplete:!1,navigation:!0,navigationRestricted:!1,navigationSectionsExpanded:!0,navigationStyle:Yn.LIGHT,navigationType:dr.SIDEBAR,progressIndicatorStyle:Je.THEME_DEFAULT,showAuthor:!0,showLessonCount:!0,showNavigationButtons:!0,showStartButton:!0,sidebarStartsOpen:!0,themeId:ul.RISE_CLASSIC},Yue=[{label:"None (Always show button)",value:""},{label:"Complete Block Directly Above",value:"completeBlock"},{label:"Complete All Blocks Above",value:"completeAll"}],yN=["bodyTypeface","coverImage","experiments","headingTypeface","lessonHeaderImage","media","theme","uiTypeface"],LN=e=>e.theme?.colorAccent||e.color||Ue.colorAccent,jg=e=>e.theme?.navigationRestricted??Ue.navigationRestricted?To.RESTRICTED:To.FREE,wg=e=>e.theme?.sidebarStartsOpen??Ue.sidebarStartsOpen?ea.OPEN:ea.CLOSED,SN=e=>e.theme?.showLessonCount??e.showLessonCount??Ue.showLessonCount,TN=({sidebarMode:e})=>e!==ea.HIDDEN,NN=({navigationMode:e})=>e===To.RESTRICTED,kN=({sidebarMode:e})=>e===ea.OPEN,IN=e=>e.coverImage?.media?.image?Yn.LIGHT_IMAGE:Yn.LIGHT,EN=e=>e.coverImage?.media?.image?ne.LEFT_OVERLAY:ne.LEFT,Jn=(e,t)=>t[e]??t.theme?.[e]??Ue[e],Ag=e=>{const t=wg(e),s=jg(e),o={allowSearch:Jn("allowSearch",e),animateBlockEntrance:Jn("animateBlockEntrance",e),bodyTypefaceId:e.bodyTypefaceId,colorAccent:(e.color||"").toLowerCase(),compactShowLessonCount:Jn("compactShowLessonCount",e),coverImageDefault:null,coverPageType:EN(e),enableVideoPlaybackSpeed:Jn("enableVideoPlaybackSpeed",e),headingTypefaceId:e.headingTypefaceId,markLessonsComplete:Jn("markComplete",e),navigation:TN({sidebarMode:t}),navigationSectionsExpanded:Jn("navigationSectionsExpanded",e),navigationRestricted:NN({navigationMode:s}),navigationStyle:IN(e),showAuthor:Jn("showAuthor",e),showLessonCount:Jn("showLessonCount",e),showNavigationButtons:Jn("showNavigationButtons",e),sidebarStartsOpen:kN({sidebarMode:t}),uiTypefaceId:e.uiTypefaceId},r={...Ue,...o};return{...e,theme:{...r,isLegacyCourse:!0}}},V0=e=>{const t=LN(e),s={allowSearch:e.theme?.allowSearch??Ue.allowSearch,animateBlockEntrance:e.theme?.animateBlockEntrance??Ue.animateBlockEntrance,buttonNavigationStyle:e.theme?.buttonNavigationStyle??Ue.buttonNavigationStyle,buttonScheme:e.theme?.buttonScheme??Ue.buttonScheme,color:t,colorAccentTint:t?O0(t):void 0,coverImage:kg(e),coverPageType:e.theme?.coverPageType??Ue.coverPageType,enableVideoPlaybackSpeed:e.theme?.enableVideoPlaybackSpeed??Ue.enableVideoPlaybackSpeed,lessonHeaderImage:Ig(e),lessonHeaderSize:e.theme?.lessonHeaderSize??Ue.lessonHeaderSize,lessonHeaderStyle:e.theme?.lessonHeaderStyle??Ue.lessonHeaderStyle,markComplete:e.theme?.markLessonsComplete??Ue.markLessonsComplete,navigation:e.theme?.navigation??Ue.navigation,navigationSectionsExpanded:e.theme?.navigationSectionsExpanded??Ue.navigationSectionsExpanded,navigationMode:jg(e),navigationRestricted:e.theme?.navigationRestricted??Ue.navigationRestricted,navigationStyle:e.theme?.navigationStyle??Ue.navigationStyle,navigationType:e.theme?.navigationType??Ue.navigationType,progressIndicatorStyle:e.theme?.progressIndicatorStyle??Je.THEME_DEFAULT,themeId:e.theme?.themeId??Ue.themeId,showAuthor:e.theme?.showAuthor??Ue.showAuthor,showLessonCount:SN(e),showStartButton:e.theme?.showStartButton??Ue.showStartButton,sidebarMode:wg(e),sidebarStartsOpen:e.theme?.sidebarStartsOpen??Ue.sidebarStartsOpen,showNavigationButtons:e.theme?.showNavigationButtons??Ue.showNavigationButtons};return{...e,...s}},jN=({course:e,updates:t})=>{const s=Object.fromEntries(Object.entries(t||{}).filter(([r])=>yN.includes(r))),o={...e,...s};return V0(o)},wN={padding:"medium",alignment:"left"},AN={embed:{aspectRatio:"16:9"},video:{},labeledgraphic:{hotspotStyle:"numbers"},process:{navigation:"stepped"},sorting:{feedback:"immediate"},timeline:{orientation:"vertical"},paragraph:{fontSize:"medium"}},nn=(e,t=0)=>`item_${e}_${t}`,Rg=(e,t)=>[{id:nn(`${t}_placeholder`,0),placeholder:!0,type:e,title:`Add ${e} content`}],hr=e=>({...wN,...AN[e]??{}}),RN=e=>typeof e=="string"?e.replace(/<p><br><\/p>/g,""):e,Pg=e=>e.map(t=>{if(t&&typeof t=="object"&&!Array.isArray(t)){const s={};for(const[o,r]of Object.entries(t))s[o]=RN(r);return s}return t}),PN=e=>["Introduction","Summary"].map((t,s)=>({id:nn(`${e}_process`,s),title:t,type:t.toLowerCase(),description:null,isHidden:!0})),MN=(e,t)=>[{id:nn(`${t}_text`,0),paragraph:e}],ON=(e,t)=>[...PN(t),...e],BN=(e,t)=>[{id:nn(`${t}_video`,0),caption:"",media:e}],DN=(e=[],t)=>({family:"multimedia",id:nn(`${t}_embed`,0),items:e.length?e:Rg("embed",t),media:{},settings:hr("embed"),type:"multimedia",variant:"embed"}),HN=(e,t,s)=>({family:"interactive-fullscreen",id:nn(`${s}_labeledgraphic`,0),items:e,media:t,settings:hr("labeledgraphic"),type:"interactive",variant:"labeledgraphic"}),FN=(e,t)=>({family:"interactive-fullscreen",id:nn(`${t}_process`,0),items:Pg(e),media:{},settings:hr("process"),type:"interactive",variant:"process"}),VN=({items:e,piles:t},s)=>({family:"interactive-fullscreen",id:nn(`${s}_sorting`,0),items:e,media:{},piles:t,settings:hr("sorting"),type:"interactive",variant:"sorting"}),zN=(e,t)=>({family:"text",id:nn(`${t}_text`,0),items:Pg(e),settings:hr("paragraph"),type:"text",variant:"paragraph"}),$N=(e,t)=>({family:"interactive-fullscreen",id:nn(`${t}_timeline`,0),items:e,media:{},settings:hr("timeline"),type:"interactive",variant:"timeline"}),_N=(e,t={},s)=>({family:"multimedia",id:nn(`${s}_video`,0),items:e?.video?BN(e,s):Rg("video",s),media:{},settings:{...t,...hr("video")},type:"multimedia",variant:"video"}),UN=({items:e=[]},t)=>DN(e.map(({icon:s,...o})=>o),t),GN=({items:e=[],media:t},s)=>HN(e.map(({hasMedia:o,...r})=>r),t,s),WN=({items:e=[]},t)=>{const s=e.map(o=>({...o,isHidden:!1,type:"step"}));return FN(ON(s,t),t)},KN=({items:e=[]},t)=>$N(e.map(({linePosition:s,...o})=>o),t),QN=(e,t)=>zN(MN(e,t),t),ZN=(e,t)=>{switch(e.type){case"embed":return UN(e,t);case"map":return GN(e,t);case"process":return WN(e,t);case"sorting":return VN(e,t);case"timeline":return KN(e,t);case"screencast":case"slidecast":case"video":return _N(e.media,e.settings,t);default:throw new Error(`Unknown legacy lesson type: ${e.type}`)}},Mg=e=>typeof e?.type=="string"&&F2.includes(e.type),YN=e=>{if(!Mg(e))return e;const t=String(e.id),s={description:"",icon:"Article",type:"blocks"},o=[ZN(e,t)],r=typeof e.description=="string"?e.description.trim():"";return r&&o.unshift(QN(r,`${t}_desc`)),{...e,...s,items:o,media:{}}},Og=e=>`rise/rise-com/${e}`,Bg=Og("FAVORITE_ADDED"),Dg=Og("FAVORITE_REMOVED"),XN=()=>(0,le.action)(Bg,void 0),JN=()=>(0,le.action)(Dg,void 0),Hg=(e=>`rise/partnerContent/${e}`)("SET_ALL_PARTNER_CONTENT"),mr=(e=>`rise/status/${e}`)("SET_LOADED"),qN=(e,t)=>({...e,...t}),ek={connection:"connected",courseLoaded:!1,fatalError:!1,fontsLoaded:!1,notFound:!1,partnerContentLoaded:!1},tk=(0,le.handle)(ek,{[mr]:qN}),sk=(e=!1)=>(0,le.action)(mr,{fontsLoaded:e}),nk=(e=!1)=>(0,le.action)(mr,{courseLoaded:e}),ok=(e=!1)=>(0,le.action)(mr,{coverLoaded:e}),rk=(e=!1)=>(0,le.action)(mr,{notFound:e}),ak=(e=!1)=>(0,le.action)(mr,{fatalError:e}),Fg=(e=!1)=>(0,le.action)(mr,{partnerContentLoaded:e}),ik=(e=[],t)=>t?.partnerContentId?e.concat(t.partnerContentId):e,ck=(e,t)=>t?.items?.reduce(ik,e)??e,lk=(e,t)=>t?.items?.reduce(ck,e)??e,dk=({course:e,lessons:t})=>{const s=t?.reduce(lk,[])||[],o=e?.partnerContentId||null,r=o?[o]:[],a=new Set([...s,...r]);return Array.from(a)},uk=e=>typeof e=="string"&&e.length>0,que=`${ye("CDN_URI")}/assets/rise/assets/themes/thumbnails/sample-avatar.jpeg`,e0e=Rs()({ACTIVE:null,PREVIEW:null}),t0e=({themeId:e,themeCoverImage:t,coverImageDefault:s})=>e==="classic"&&uk(s)?s:t,hk=e=>({...e,theme:{...e?.theme,hideLessonHeaders:e?.theme?.hideLessonHeaders??!1,showStartButton:e?.theme?.showStartButton??!0}});var s0e;const mk=ns()([[T0()([Kt()(!0),Kt()(Te.ALL)]),Ne()(Te.ALL)],[T0()([Kt()(!1),Kt()(Te.NONE)]),Ne()(Te.NONE)],[Kt()(Te.INCORRECT),Ne()(Te.INCORRECT)],[nr(),Ne()(Te.ALL)]]),n0e="draw from question bank",o0e="fillin",r0e="matching",a0e="multiple choice",i0e="multiple response",c0e=null;var pk=f(80029),z0=f.n(pk);const $0={LESSON:"lesson",QUIZ:"quiz",SECTION:"section"},ta={KNOWLEDGE_CHECK:"KNOWLEDGE_CHECK",ORDER:"ORDER",QUIZ:"QUIZ"},Os=e=>`/lessons/${encodeURIComponent(e)}`,fk="/lessons/progress-summary",gk=e=>e.type===$0.SECTION,vk=e=>e.type===$0.QUIZ,Ck=e=>e.settings?.passToContinue===!0,Vg=e=>e?.items?.find(t=>t.family==="knowledgeCheck"&&t.settings?.requireCorrectAnswer),pr=e=>e.type!=="quiz"||e.settings?.asLesson!==!1,xk=e=>e!=null&&e.type==="blocks",bk=e=>{const t=z0()(e);return t!=null&&Array.isArray(t.items)&&(t.items=t.items.reduce((s,o)=>(o!=null&&s.push(yk(o)),s),[])),t},yk=e=>{const t=z0()(e);return t!=null&&Array.isArray(t.items)&&(t.items=t.items.filter(Boolean)),t};var Lk=f(60911),Sk=f.n(Lk);const zg="^1.5.0";class _0 extends Error{}function Tk(e){try{if(e==null)return;if(typeof e!="object"||!("version"in e)||typeof e.version!="string")throw new _0("Missing Runtime.version");if(!Sk()(e.version,zg))throw new _0(`Runtime.version ${e.version} does not satisfy ${zg}`)}catch(t){console.warn(t)}}const sa="rise/course/LOAD_COURSE",Nk="rise/course/UPDATE_COMPLETED_AT",ml="rise/course/UPDATE_COURSE_PREVIEW",$g="rise/course/UPDATE_LESSON_PREVIEW",U0="rise/course/APPLY_CHANGESET";let G0;(async()=>{try{({applyReviewDataToManifest:G0}=await f.e("webpack_container_remote_mondrian_learn-react").then(f.t.bind(f,4246,23)))}catch{}})();const Ti=nb(),kk=e=>{if("settings"in e&&e.settings&&er(e.settings)&&"revealAnswers"in e.settings){const s=e.settings;return{...e,settings:{...e.settings,revealAnswers:mk(s.revealAnswers)}}}return e},Ik=e=>xk(e)?bk(e):e,_g=e=>Ik(kk(e)),Ek=e=>({...e,lessons:e.lessons?.map(_g)||[]}),jk=e=>{const t=e.lessons?.filter(s=>s.type!=="section")||[];return{...e,lessonsOnly:t}},wk=e=>e.theme==null,Ak=e=>V0(Ag(e)),Rk=e=>wk(e)?Ak(e):V0(e),Pk=e=>hk(Rk(e)),Mk=(e,t)=>{let s=(0,Ur.TJ)(["course"],t,e).result;const o=(0,Ur.TJ)(["lessons"],t,s.lessons).result;return t.some(r=>r.path[0]==="mondrian")&&s.mondrian&&G0&&(s={...s,mondrian:G0(s.mondrian,t)}),{...s,lessons:o}},Ok=e=>({...e,lessons:e.lessons?.map(YN)||[]}),Bk=(e,{completedAt:t,course:s,favoritedAt:o,riseComCurrentUser:r,riseComCourseId:a,riseComEnrollmentType:i,riseComLearningPathId:c})=>{const d=Ek(s),l=jk(d),u={...l,theme:l.theme??Ag(l).theme};return{...Pk(u),completedAt:t,favoritedAt:o,riseComCourseId:a,riseComEnrollmentType:i,riseComCurrentUser:r,riseComLearningPathId:c}},Dk=e=>({...e,favoritedAt:new Date}),Hk=e=>({...e,favoritedAt:null}),Fk=e=>({...e,completedAt:new Date().toISOString()}),Vk={[Bg]:Dk,[Dg]:Hk,[sa]:Bk,[Nk]:Fk,[ml]:(e,{course:t})=>t,[$g]:(e,{lessons:t})=>({...e,lessons:t.map(_g)}),[U0]:Mk},zk=(0,le.handle)({},Vk),Ug=e=>t=>{Wk(t)?e(rk(!0)):t instanceof _0&&(e(ak(!0)),console.error(t))},$k=e=>t=>t([{type:Hg,payload:e},Fg(!0)]),_k=Zo().fromPromise(async(...e)=>await wT(...e)),Uk=e=>e.length===0?Fg(!0):_k(e).map($k),Gk=e=>pl(e)===401||W0(e)&&pl(e.response)===401,Wk=e=>pl(e)===404||W0(e)&&pl(e.response)===404,pl=e=>W0(e)?e.status??e.statusCode:void 0,W0=e=>e!=null&&typeof e=="object",Kk=e=>t=>{const{course:s}=t,o=Ok(s),r=dk({course:o,lessons:o.lessons});e([Ti(sa,{...t,course:o,_originalLessons:s.lessons}),nk(!0),Uk(r)])},Qk=e=>async t=>{let s;try{Tk(window.Runtime),s=e?.password!=null?await cg(void 0,{password:e.password}):await cg()}catch(o){if(e?.onUnauthorized!=null&&Gk(o)){e.onUnauthorized();return}e?.onError?.(),await Ug(t)(o);return}e?.onAuthorized?.();try{Kk(t)(s),$T(s)}catch(o){await Ug(t)(o)}},Zk=Ti(sa),Yk=Ti(ml),Xk=Ti($g),Jk=Ti(U0),qk=(e,{labelSet:t})=>({...e,...t}),eI=(0,le.handle)({},{[sa]:qk}),qn=e=>`rise/course/${e}`,Gg=qn("BLOCKS_LESSON_COMPLETE"),Wg=qn("BLOCKS_LESSON_INCREMENT_RETRY_ATTEMPT"),Kg=qn("BLOCKS_LESSON_RESET"),Qg=qn("BLOCKS_LESSON_RETRY_SORTING_ACTIVITY"),Zg=qn("BLOCKS_LESSON_SET_ITEMS_PROGRESS"),Yg=qn("BLOCKS_LESSON_SET_MEDIA_PLAY_PROGRESS"),Xg=qn("BLOCKS_LESSON_SET_SORTING_ITEM_RESULT"),Jg=qn("BLOCKS_LESSON_SET_SURVEY_PARTIAL"),qg=qn("BLOCKS_LESSON_SET_SURVEY_SUBMITTED"),ev=(0,le.action)(Gg),tI=(0,le.action)(Wg),sI=(0,le.action)(Kg),nI=(0,le.action)(Qg),tv=(0,le.action)(Zg),oI=(0,le.action)(Yg),rI=(0,le.action)(Xg),aI=(0,le.action)(Jg),iI=(0,le.action)(qg),on=e=>`rise/course/${e}`,sv=on("QUIZ_LESSON_ADVANCE_STEP"),nv=on("QUIZ_LESSON_CLEAR_ANSWER_SELECTION"),ov=on("QUIZ_LESSON_INITIALIZE_DRAWN_QUESTIONS"),rv=on("QUIZ_LESSON_RESTART"),av=on("QUIZ_LESSON_SELECT_QUIZ_ANSWER"),iv=on("QUIZ_LESSON_SET_ANSWER_MATCHES"),cv=on("QUIZ_LESSON_SET_ANSWER_TEXT"),lv=on("QUIZ_LESSON_ADVANCE_TO_END"),dv=on("QUIZ_LESSON_SET_TIME_REMAINING"),uv=on("QUIZ_LESSON_SUBMIT_ANSWER"),hv=on("QUIZ_LESSON_TOGGLE_ANSWER_SELECTION"),K0=(0,le.action)(sv),cI=(0,le.action)(lv),mv=(0,le.action)(rv),pv=(0,le.action)(av),fv=(0,le.action)(cv),gv=(0,le.action)(hv),lI=(0,le.action)(dv),vv=(0,le.action)(iv),Q0=(0,le.action)(uv),dI=(0,le.action)(nv),uI=(0,le.action)(ov),Z0=e=>e&&typeof e=="object"&&e.type&&F2.includes(e.type),hI=(e,t)=>{const s=new Map;return e.forEach(o=>{if(Mg(o)){const r=t.find(a=>String(a.id)===String(o.id));r&&r.type==="blocks"&&s.set(String(o.id),String(r.id))}}),s},mI=(e,t)=>{const s={id:String(e.id),index:e.index,type:"blocks",items:{}};return typeof e.isComplete=="boolean"&&(s.isComplete=e.isComplete),typeof e.percentComplete=="number"&&(s.percentComplete=e.percentComplete),t.type==="blocks"&&t.items&&t.items.forEach((o,r)=>{if(o?.id!=null&&(s.items[o.id]={id:o.id,index:r,isComplete:e.isComplete===!0&&r===0,items:o.items?{}:void 0},o.items&&Array.isArray(o.items))){const a={};o.items.forEach((i,c)=>{i?.id!=null&&(a[i.id]={id:i.id,index:c,isComplete:e.isComplete===!0})}),Object.keys(a).length>0&&(s.items[o.id].items=a)}}),s},pI=(e,t)=>{const s=new Set(t.map(r=>String(r.id))),o=[];return Object.values(e.lessons).forEach(r=>{Z0(r)&&(s.has(String(r.id))||o.push(r))}),o},fI=(e,t,s)=>{const o={totalLegacyLessons:0,successfulMigrations:0,failedMigrations:0},r={...e,lessons:{...e.lessons}},a=pI(e,s);o.totalLegacyLessons=a.length;const i=hI(t,s),c=[];return a.forEach(d=>{try{const l=i.get(String(d.id))||String(d.id),u=s.find(m=>String(m.id)===l);if(u&&u.type==="blocks"){const m=mI(d,u);r.lessons[String(u.id)]=m,String(d.id)!==String(u.id)&&delete r.lessons[String(d.id)],o.successfulMigrations++}else c.push(String(d.id)),o.failedMigrations++}catch(l){console.warn(`Failed to migrate legacy lesson progress for lesson ${d.id}:`,l),c.push(String(d.id)),o.failedMigrations++}}),{migratedProgress:r,orphanedLessonIds:c,migrationSummary:o}},Cv=e=>Object.values(e.lessons).some(Z0),l0e=e=>{let t=0,s=0;const o=[];return Object.values(e.lessons).forEach(r=>{s++,Z0(r)&&(t++,o.includes(r.type)||o.push(r.type))}),{legacyCount:t,totalCount:s,legacyTypes:o,hasLegacyProgress:t>0}},gI=(e,t,s)=>{if(!Cv(e))return e;const o=fI(e,t,s);return o.orphanedLessonIds.length>0&&console.warn("Some legacy lessons could not be migrated:",o.orphanedLessonIds),o.migratedProgress},Y0=e=>`rise/course/${e}`,xv=Y0("BOOKMARK_LESSON"),vI=Y0("LOAD_COURSE"),bv=Y0("PREVIEW_COMPLETE_PRECEDING_LESSONS"),CI=(0,le.action)(xv),xI=(0,le.action)(bv),bI={lessons:{},percentComplete:0},yI=(0,le.handle)(bI,{[Gg]:L2,[Wg]:Cy,[Kg]:xy,[Qg]:by,[Zg]:yy,[Yg]:Ly,[Xg]:Sy,[Jg]:Ty,[qg]:Ny,[sv]:Oy,[lv]:By,[nv]:Dy,[ov]:Hy,[rv]:Vy,[av]:zy,[iv]:$y,[cv]:Fy,[dv]:_y,[uv]:Uy,[hv]:Gy,[xv]:SI,[vI]:LI,[bv]:TI});function LI(e,t){const s=t.course?.lessons??[],o=t._originalLessons??s,r=lg(jI(s));if(typeof r!="object"||r===null)return e;const a={...e,...r};return Cv(e)&&o!==s?gI(a,o,s):a}function SI(e,t){return AT(t),{...e,currentLesson:t}}function TI(e,{targetLessonId:t,lessons:s}){const o=e.lessons[t];if(!o)return e;let r=o.index;for(const i of s){if(i.type!=="quiz")continue;const c=e.lessons[i.id];if(!c||c.index>=r)continue;const d=i.settings;if(!d?.skipLessonsIfPassed||!d.skipToLessonId)continue;const l=e.lessons[d.skipToLessonId];l&&l.index>r&&(r=l.index)}const a=Object.fromEntries(Object.entries(e.lessons).map(([i,c])=>c.index>=r||c.isComplete?[i,c]:[i,NI(c)]));return{...e,lessons:a}}function NI(e){return Ln(e)?p0(e):ss(e)?kI(e):e}function kI(e){const t=Object.fromEntries(Object.entries(e.items??{}).map(([o,r])=>[o,{...r,isComplete:!0,isCorrect:!0}])),s=Object.keys(t).length;return{...e,items:t,activeIndex:s+1,isComplete:!0,passed:!0,passingScore:e.passingScore??Wr,percentComplete:100,reportResults:!0,score:100}}const II=({index:e,lessonId:t,settings:s,type:o})=>o==="quiz"?{id:t,index:e,type:o,items:{},passingScore:Number(s?.passingScore??Wr)}:{id:t,index:e,type:"blocks",items:{}};function EI(e){return e.type==="quiz"&&"settings"in e}function jI(e){return{lessons:e.reduce((s,o,r)=>EI(o)?yv({index:r,items:o.items,lessonId:o.id,lessonProgress:s,settings:o.settings,type:o.type}):o.type==="blocks"?yv({index:r,items:o.items,lessonId:o.id,lessonProgress:s,type:o.type}):s,{})}}function yv(e){const{lessonId:t,index:s,items:o,lessonProgress:r={},settings:a,type:i}=e,c=II({lessonId:t,index:s,settings:a,type:i});if(o.length===0)return{...r,[t]:c};const d=i==="quiz"?AI(o):wI(o);return{...r,[t]:{...c,items:d}}}function wI(e){return e.reduce((t,s,o)=>{const r=s.id,a=s.items??[],i=dy(a);return t[r]={id:r,index:o,items:i},t},{})}function AI(e){return e.reduce((t,s,o)=>(t[s.id]={id:s.id,index:o},t),{})}var RI=f(30358),na=f.n(RI),PI=f(5752),MI=f.n(PI),d0e=f(59641),Lv,Sv;const X0=5e3,OI=tt()(Zc()(en())(":n3,n4,i4,n7,n9")),BI=ce()(na()(","),dl()),DI=(e,t)=>{const s=new FontFace(t.name,e,{family:t.name,style:t.style,weight:t.weight});return s.load().then(()=>document.fonts.add(s))},HI=(e,t)=>{const s=document.createElement("style");return s.innerText=`@font-face { font-family: '${t.name}'; src: ${e}; font-weight: ${t.weight}; font-style: ${t.style}; }`,document.head.appendChild(s),new(MI())(t.name,{style:t.style,weight:t.weight}).load()},FI=e=>{const t=`url(${Db(e)}) format('woff')`;return("fonts"in document?DI:HI)(t,e)},Tv=(e,t)=>{const s=Promise.all(e.map(FI));let o;const r=new Promise(a=>{o=setTimeout(a,X0)});return Promise.race([s,r]).catch(a=>{console.error("Failed to load learn course fonts:",{fonts:e,error:a.message||a})}).finally(()=>{clearTimeout(o),t()})},h0e=({baseUri:e,typefaces:t,onLoad:s,onError:o})=>{const r=Lv(t).join(", ");return Sv.load({active:s,fontinactive:(a,i)=>{console.error("Individual font failed to load:",{familyName:a,fvd:i,typefaces:t})},inactive:()=>{console.error("Failed to load course fonts:",{typefaces:t,typefaceList:r}),o?.(),s?.()},timeout:X0,custom:{families:OI(Lv(t)),urls:[`${e}/course_fonts.css?typefaceIds=${BI(t)}`]}})},m0e=()=>Sv.load({google:{families:["Noto Sans Myanmar:300,400,500,600,700"]},timeout:X0}),VI=(e,{fonts:t})=>[...e,...t],zI=(e,{fonts:t})=>t,$I=(0,le.handle)([],{[sa]:VI,[ml]:zI}),_I=e=>t=>{Tv(e,()=>{t(sk(!0))})},UI={isPreview:window.viewType==="preview"},J0=((e=UI)=>e);(Object.getOwnPropertyDescriptor(J0,"name")||{}).writable||Object.defineProperty(J0,"name",{value:"default",configurable:!0});const Nv="rise/l10n/TOGGLE_LOCALE_SELECTOR",kv=(e,{l10n:t})=>t?{...e,...t}:e,GI=(e,t)=>(0,Ur.TJ)(["l10n"],t,e).result,q0=(0,le.action)(Nv),WI=(e,t)=>e&&{...e,...!t&&{localeSelectorOptions:void 0},showLocaleSelector:t},KI=(0,le.handle)(null,{[sa]:kv,[ml]:kv,[U0]:GI,[Nv]:WI});var QI=f(63630),fl=f.n(QI);const ZI=fl()(2,e=>g0()((0,le.error)(e),(0,le.action)(e))),{RiseDotCom:eo}=window,fr=e=>eo&&eo[e],YI=()=>{fr("exit")&&eo.exit()},Iv=(...e)=>{fr("on")&&eo.on(...e)},Ev=(...e)=>{fr("off")&&eo.off(...e)},XI=(...e)=>{fr("goToLearn")&&eo.goToLearn(...e)},JI=(...e)=>{if(fr("downloadCertificate"))return eo.downloadCertificate(...e)},qI=(...e)=>{if(fr("downloadCertificateCancel"))return eo.downloadCertificateCancel(...e)},eE=(...e)=>{if(fr("fetchLpUpNext"))return eo.fetchLpUpNext(...e)},jv="rise/learningPathUpNext/FETCH_LP_UP_NEXT",wv="rise/learningPathUpNext/FETCH_LP_UP_NEXT_PENDING",tE={isPending:!1,isSuccess:!1,learningPathComplete:!1,nextCourse:{}},sE=e=>!("id"in e),nE=(e,t)=>{const s=sE(t);return{...e,isPending:!1,isSuccess:!0,learningPathComplete:s,lpHasFailedQuiz:t.lpHasFailedQuiz,nextCourse:s?{}:t}},oE=e=>({...e,isPending:!0}),rE=(0,le.handle)(tE,{[jv]:(0,le.onSuccess)(nE),[wv]:oE}),aE=e=>[(0,le.action)(wv),ZI(jv)(Zo().fromPromise(eE)(e))],iE=(e,t)=>{const s=e.content.findIndex(r=>r.id===t.id),o=[...e.content];return s===-1?o.push(t):o[s]=t,{...e,content:o}},cE=(e,t)=>t.reduce(iE,e),lE={[Hg]:cE},dE=(0,le.handle)({content:[]},lE),Av="rise/search/RESET_SEARCH",Rv="rise/search/SET_SEARCH_ACTIVE",Pv="rise/search/SET_SEARCH_ACTIVE_LESSONS",Mv="rise/search/SET_SEARCH_TRANSLATIONS",Ov="rise/search/SET_SEARCH_LESSONS",Bv="rise/search/SET_SEARCH_TERM",Dv={active:!1,activeLessons:[],translations:{},lessons:[],term:null},uE=(e,t)=>t?{...Dv,active:e.active}:e,hE=(e,t)=>({...e,active:t}),mE=(e,t)=>({...e,activeLessons:t}),pE=(e,t)=>({...e,translations:t}),fE=(e,t)=>({...e,lessons:t}),gE=(e,t)=>({...e,term:t}),vE=(0,le.handle)(Dv,{[Av]:uE,[Rv]:hE,[Pv]:mE,[Mv]:pE,[Ov]:fE,[Bv]:gE}),oa=e=>(0,le.action)(e),Hv=oa(Av),Ni=oa(Rv),Fv=oa(Pv),Vv=oa(Mv),zv=oa(Ov),gr=oa(Bv),e1=e=>`rise/sessionPreferences/${e}`,$v=e1("LOAD_SESSION_PREFERENCES"),_v=e1("SET_PREFERS_KEYBOARD_NAVIGATION"),CE=e1("SET_STARTING_COURSE_LESSON_SELECTED"),xE={prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},bE=(e,t)=>({...e,prefersKeyboardNavigation:t}),yE=(e,t)=>({...e,startedCourseWithLessonSelected:t}),LE=(0,le.handle)(xE,{[$v]:(e,t)=>({...e,...t}),[_v]:bE,[CE]:yE}),SE=()=>(0,le.action)($v,null),TE=(0,le.action)(_v),Uv="rise/slidesUI/SET_SLIDE_DIRECTION",Gv="rise/slidesUI/SET_EXITING_SLIDE_OFFSET",NE={slideDirection:Ps.UP,exitingSlideOffset:0},kE=(0,le.handle)(NE,{[Uv]:(e,t)=>({...e,slideDirection:t}),[Gv]:(e,t)=>({...e,exitingSlideOffset:t})}),ko=(0,le.action)(Uv),IE=(0,le.action)(Gv),t1=en()("rise/transcriptPanel/"),Wv=t1("OPEN_TRANSCRIPT_PANEL"),Kv=t1("CLOSE_TRANSCRIPT_PANEL"),Qv=t1("UPDATE_TRANSCRIPT_PANEL"),EE={audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null},jE=(e,t)=>t.audioPlayerId?{...e,audioPlayerIdOpen:t.audioPlayerId,focusing:t.focusing??!1,refocusTarget:t.refocusTarget??null,transcriptMedia:t.transcriptMedia??null}:e,Zv=()=>({audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null}),wE=(e,t)=>e.audioPlayerIdOpen?t.audioPlayerId?{...e,audioPlayerIdOpen:t.audioPlayerId,focusing:t.focusing??e.focusing,transcriptMedia:t.transcriptMedia??e.transcriptMedia}:Zv():e,AE={[Wv]:jE,[Kv]:Zv,[Qv]:wE},RE=(0,le.handle)(EE,AE),Yv=(e=>`rise/ui/${e}`)("SET_SKIP_TO_NAV_BUTTON_UI"),PE={skipToNavButton:null},ME=(0,le.handle)(PE,{[Yv]:(e,t)=>({...e,skipToNavButton:t})}),s1=(0,le.action)(Yv),OE=ke?{learningPathUpNext:rE}:{},BE=(0,Wc.HY)({course:zk,courseLabels:eI,courseProgress:yI,fonts:$I,global:J0,l10n:KI,partnerContent:dE,search:vE,sessionPreferences:LE,slidesUI:kE,status:tk,transcriptPanel:RE,ui:ME,...OE}),{Provider:DE,dispatch:Cs,store:Xv,useDispatch:at,useSelector:ae}=Zx(BE),Jv="_course_token",n1=new URLSearchParams(window.location.hash.substr(1)),qv=n1.get(Jv);qv&&(n1.delete(Jv),window.history.replaceState(null,null,`#${n1.toString()}`));const HE=e=>{const{data:{method:t,id:s,jsonrpc:o}}=e;if(o==="2.0"&&t==="getBearerToken"){const r=qv||pt();navigator.serviceWorker.ready.then(a=>{a.active.postMessage({id:s,jsonrpc:"2.0",method:t,result:{token:r}})})}};navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",HE);const e3=(0,h.createContext)({});function FE(e,{type:t,message:s}){switch(t){case"polite":return{...e,politeMessage1:e.alternatePolite?s:"",politeMessage2:e.alternatePolite?"":s,alternatePolite:!e.alternatePolite};case"assertive":return{...e,assertiveMessage1:e.alternateAssertive?s:"",assertiveMessage2:e.alternateAssertive?"":s,alternateAssertive:!e.alternateAssertive};default:return{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}}}function gl({ariaLive:e,message:t}){return(0,n.jsx)("div",{"aria-atomic":"true","aria-live":e,"aria-relevant":"additions text",className:"visually-hidden-always",role:"log",children:t})}function VE({children:e}){const[{politeMessage1:t,politeMessage2:s,assertiveMessage1:o,assertiveMessage2:r},a]=(0,h.useReducer)(FE,{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}),i=(0,h.useMemo)(()=>({announcePolite:c=>{a({type:"polite",message:c})},announceAssertive:c=>{a({type:"assertive",message:c})},clearAnnouncements:()=>{a({type:"clear"})}}),[a]);return(0,n.jsxs)(e3.Provider,{value:i,children:[(0,n.jsx)(gl,{ariaLive:"polite",id:"polite-announcer1",message:t}),(0,n.jsx)(gl,{ariaLive:"polite",id:"polite-announcer2",message:s}),(0,n.jsx)(gl,{ariaLive:"assertive",id:"assertive-announcer1",message:o}),(0,n.jsx)(gl,{ariaLive:"assertive",id:"assertive-announcer2",message:r}),e]})}function In(){return(0,h.useContext)(e3)}var zE=f(76294),U=f.n(zE),Ge=f(10595);const t3={BLOCKS:"blocks",QUIZ:"quiz",SECTION:"section"},s3=e=>e?.type===t3.QUIZ,o1=e=>e?.type===t3.QUIZ,r1=({locales:e,course:t,locale:s})=>!!(e?.find(a=>a.locale===s)?.rightToLeft||t?.experiments?.rtl),n3=(0,h.createContext)({currentLocale:void 0,setCurrentLocale:()=>{}});function $E({children:e,currentLocale:t,setCurrentLocale:s}){const o=(0,h.useMemo)(()=>({currentLocale:t,setCurrentLocale:s}),[t,s]);return(0,n.jsx)(n3.Provider,{value:o,children:e})}function Qe(){return(0,h.useContext)(n3)}function _E(e){const t=s=>{const o=Qe();return(0,n.jsx)(e,{...s,...o})};return t.displayName=`withCurrentLocale(${e.displayName||e.name})`,t}const ki=(e,t,s)=>(0,Et.uW)(e)&&t?s?.[t]?.[e.l10nId]:void 0,vl=(e,t,s,o)=>{if(!(0,Et.uW)(e))return e;if(!t||!s||!o)return;const r=ki(e,t,o);if(r!==void 0)return r;const a=ki(e,s,o);if(a!==void 0)return a;const i=o3(e,o);return i.length>0?i[0].value:void 0},a1=new WeakMap,i1=(e,t)=>{if(e&&t in e)return e[t]},c1=(e,t,s,o)=>{if(!t||!s||!o||!e)return e;if(typeof e=="object"){const l=a1.get(e)?.get(o);if(l&&l.locale===t&&l.defaultLocale===s)return l.result}const r=o[t],a=o[s],i=Object.values(o).filter(l=>l!==r&&l!==a);function c(l){let u;if(u=i1(r,l),u!==void 0||(u=i1(a,l),u!==void 0))return u;for(const m of i)if(u=i1(m,l),u!==void 0)return u}let d;if(!Array.isArray(e)&&typeof e=="object"&&typeof e.l10nId=="string")d=c(e.l10nId);else{d=structuredClone(e);for(const{mutate:l,l10nId:u}of(0,Ur.pr)(d))l(c(u))}if(typeof e=="object"){let l=a1.get(e);l||(l=new WeakMap,a1.set(e,l)),l.set(o,{locale:t,defaultLocale:s,result:d})}return d},g0e=(e,t,s)=>c1(e,t,ra(s),Io(s)),v0e=(e,t,s)=>vl(e,t,ra(s),Io(s)),C0e=(e,t,s)=>ki(e,t,Io(s));function x0e(e,t){return t?.find(s=>s.locale===e)}function UE(e){return e?.l10n?.locales??[]}function ra(e){return e?.l10n?.defaultLocale}function GE(e,t){const s=ra(t);return!!(e&&s&&e!==s)}function Io(e){return e?.l10n?.translations??{}}function o3(e,t){return(0,Et.uW)(e)?Object.keys(t).flatMap(s=>{const o=ki(e,s,t);return o?{locale:s,value:o}:[]}):[]}const b0e=(e,t)=>o3(e,Io(t)),jt=e=>(0,Et.uW)(e)?e.l10nId:void 0;function WE(e){return e?.l10n?.localeSelectorOptions}function l1(e){return e?.l10n?.languageCodeMetadata}function KE(e){return e?.l10n?.showLocaleSelector}function d1(e,t="#ffffff"){if(e==null||e.trim()==="")return null;const s=Jr(e);if(s==null)return null;const o=s.alpha??1,r=Jr(t),a=o<1&&r!=null?(0,P0.jh)(r,{...s,alpha:1},o,{space:"srgb"}):s;return(0,QT.A)(a,"srgb")}function QE(e,t){const s=d1(t);if(s==null)return 1;const o=d1(e,(0,M0.A)(s));return o==null?1:(0,WT.A)(o,s,"WCAG21")}const Bs=e=>e==null?pe.DARK:QE("#fff",e)>=4.5?pe.LIGHT:pe.DARK,u1=(0,h.createContext)(null);u1.displayName="CourseContext";function ZE({children:e,course:t,courseProgress:s,labels:o,labelsLocale:r,lessons:a,partnerContent:i,search:c}){const d=(0,h.useMemo)(()=>({course:t,courseProgress:s,labels:o,labelsLocale:r,lessons:a,partnerContent:i,search:c}),[t,s,o,r,a,i,c]);return(0,n.jsx)(u1.Provider,{value:d,children:e})}function aa(){return(0,h.useContext)(u1)}function Me(){return aa()?.course}function r3(){return Ie(Me()?.title)}function as(){const{labels:e}=aa()??{};return e}function YE(){return aa()?.labelsLocale}function h1(){return aa().search}function a3(e){const o=Me()?.theme?.accentContrast;return typeof o!="string"?pe.LIGHT:o===pe.AUTO?Bs(e):o}function Ii(){const e=Me();return e?.theme?.colorAccent??e?.color}function m1(){const{currentLocale:e}=Qe(),t=Cl(),s=Me();return s?r1({course:s,locales:t,locale:e}):!1}function XE(){const{lessons:e}=aa();return e}const Ei=(0,h.createContext)({l10n:null});Ei.displayName="TranslationContext";const p1=(0,h.createContext)({l10n:null});p1.displayName="LocalesContext";function is(){const{currentLocale:e}=Qe(),t=Ds(),s=xl();return(0,h.useCallback)(o=>vl(o,e,t,s),[e,t,s])}function i3(){const{currentLocale:e}=Qe(),t=Ds(),s=xl();return(0,h.useCallback)(o=>c1(o,e,t,s),[e,t,s])}function Ie(e,t){const{currentLocale:s}=Qe(),o=Ds();let r=xl();const a=qE();return a&&Object.keys(a).length&&s&&r&&(r={...r,[s]:a}),vl(e,t??s,o,r)}function JE(e){const{currentLocale:t}=Qe(),s=Ds(),o=xl();return(0,h.useMemo)(()=>c1(e,t,s,o),[t,s,e,o])}function ia(){return(0,h.use)(p1)}function Cl(){const e=ia();return UE(e)}function Ds(){const e=ia();return ra(e)}function xl(){const e=(0,h.use)(Ei);return Io(e)}function qE(){return aa()?.search?.translations}function ej(){const e=(0,h.use)(Ei);return KE(e)}function tj(){const e=(0,h.use)(Ei);return WE(e)}const sj=()=>(0,Ge.Mz)(t=>t,(t,s)=>s,(t,s,o)=>ra(o),(t,s,o)=>Io(o),vl);function it(e){const{currentLocale:t}=Qe(),s=(0,h.useMemo)(()=>sj(),[]);return ae(o=>s(e,t,o))}const nj=(0,Ge.Mz)(e=>e,(e,t)=>Io(t),(e,t)=>t?.[e]);function c3(){const{currentLocale:e}=Qe();return ae(t=>nj(e,t))}const oj=(0,Ge.Mz)(e=>e.course?.title,ra,Io,(e,t,s)=>{if(e)return ki(e,t,s)});function rj(){return ae(oj)}function bl(){return ae(e=>e.l10n)}var aj=f(80588);function l3(e){return e?.search}function Eo(){return ae(l3)}function ij(e){return l3(e)?.activeLessons}const cj=(0,Ge.Mz)(ij,e=>e?e.reduce((t,s)=>(s?.id&&(t[s.id]=s),t),{}):{});function lj(){return(0,Ge.Mz)(e=>e,(e,t)=>cj(t),(e,t)=>t?.[e])}function dj(e){const t=aj.useMemo(()=>lj(),[]);return ae(s=>t(e,s))}function xs(e){return e.course}function ee(){return ae(xs)}function uj(e){return xs(e)?.navigationMode}function f1(e){return xs(e)?.trackingQuizId}function ca(){const e=ee();return it(e?.title)}function hj(e){return xs(e)?.type}function mj(){return ae(e=>hj(e))}function g1(e){const t=xs(e);return yo(t)}function d3(){return ae(g1)}const pj=e=>e.filter(t=>t.type!=="section");function ji(){const e=ee(),t=Eo();return(0,h.useMemo)(()=>t?.active&&t?.lessons?.length>0?{...e,lessons:t.lessons,lessonsOnly:pj(t.lessons)}:e,[e,t?.active,t?.lessons])}const fj=(0,Ge.Mz)(xs,e=>(e?.lessons??[]).filter(s3).some(t=>t.settings?.skipLessonsIfPassed&&t.settings?.skipToLessonId));function v1(e){const t=uj(e);return fj(e)?To.RESTRICTED:t??To.FREE}function yl(){return ae(v1)}function gj(e){return xs(e)?.theme?.buttonNavigationStyle??Ue.buttonNavigationStyle}function vj(){return ae(gj)}function C1(){const e=ee();return e?.selectedAuthorId==="none"||!("authors"in(e??{}))?null:e?.selectedAuthorId?e?.authors?.find(t=>t.id===e.selectedAuthorId):e?.authors?.find(t=>t.id===e?.author)}function u3(){return ee()?.theme?.coverImageColor??nt.DARK}function h3(){return ee()?.lessonsOnly?.[0]}function Cj(){const e=ee(),{selectedAuthorId:t}=e?.lessons?.[0]??{};return t==="none"||!t?null:e?.authors?.find(s=>s.id===t)??null}function rn(){const{currentLocale:e}=Qe(),t=Cl(),s=ee();return s?r1({course:s,locales:t,locale:e}):!1}function m3(){const t=ee()?.lessons;return(0,h.useMemo)(()=>Array.isArray(t)?t.filter(({type:s})=>s!=="section").length:0,[t])}class xj extends h.Component{static defaultProps={scope:"error-boundary"};constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return console.error(t),{hasError:!0,error:t}}render(){const{hasError:t,error:s}=this.state,{FallbackComponent:o}=this.props;return t||s?(0,n.jsx)(o,{}):this.props.children}}const bj=xj;var yj=f(90526),Lj=f.n(yj),Sj=f(35592),Tj=f.n(Sj),Nj=f(35905),Hs=f.n(Nj),kj=f(37853),p3=f.n(kj),Ij=f(29464),la=f.n(Ij),Ej=f(20746),Qt=f.n(Ej),jj=f(79905),wi=f.n(jj),wj=f(20137),Aj=f.n(wj);const x1=({course:e,courseProgress:t})=>!e||!t?{}:e.lessons.filter(r=>!!r.settings?.passToContinue).filter(r=>!t.lessons[String(r.id)]?.passed)[0]??{},Rj=({courseProgress:e,lesson:t,restrictingQuiz:s})=>{if(!e)return{};const o=c=>e.lessons[String(c)]?.index,r=o(t.id),a="id"in s?s.id:void 0,i=a!=null?o(a):void 0;return r!==void 0&&i!==void 0&&r>i?s:{}};var Pj=f(34558),f3=f.n(Pj),Mj=f(58986),b1=f.n(Mj);const jo=ye("CDN_USER_CONTENT_URI"),g3=ye("CDN_URI"),Ai=Zr()("useCrushedKey"),an=ye("IMAGES_URI"),Oj=b1()(/-stock[-_]image.jpg/),y1=ye("RBC_IMAGES_URI"),Bj=ye("ASSETS_URI"),Dj=b1()(new RegExp(`^${jo}/review`)),v3=ye("CDN_US_URI"),Ri=e=>{const{crushedKey:t,key:s,useCrushedKey:o,src:r}=e;return Ai(e)?mt(o&&t?t:s):mt(r)},y0e=e=>`${jo}/${e}`,L0e=e=>!e||!e.key?"":`${y1}/b:fff,f:jpg,s:cover,w:550,h:296/${e.key}`,S0e=e=>{if(!e||!e.key)return"";const{crushedKey:t,key:s,useCrushedKey:o}=e;return Ai(e)&&o?t?`${an}/f:jpg,b:fff,s:cover,w:340/${t}`:"":`${an}/f:jpg,b:fff,s:cover,w:340/${s}`},C3=e=>{if(!e||!e.key)return"";const{crushedKey:t,key:s,useCrushedKey:o}=e;return an?Ai(e)&&o&&t?`${an}/f:png,a:retain,s:cover,t:true,w:340/${t}`:`${an}/f:png,a:retain,s:cover,t:true,w:340/${s}`:Ri(e)},vt=e=>{if(!e||!e.key)return"";const{crushedKey:t,key:s,useCrushedKey:o,sourcedFrom:r}=e;if(!an)return Ri(e);const a=r==="AI",i=r==="LIBRARY",c=r==="EXTRACTED";return Oj(s)||a||i?`${an}/f:jpg,a:retain,b:fff,w:1680,q:90/${s}`:Ai(e)?o&&t?`${jo}/${t}`:`${jo}/${s}`:c&&e.src||Dj(e.src)?e.src:`${an}/f:jpg|png,a:retain,b:fff/${s}`},Hj=(e,t="src")=>{const{key:s,src:o,thumbnail:r,thumbnailKey:a}=e,i=jo?`${jo}/${s}`:Ri({key:s,src:o}),c=jo?`${jo}/${a}`:Ri({key:a,src:r});return t==="src"?i:c},T0e=e=>{if(!e||!e.key)return"";const{crushedKey:t,key:s,useCrushedKey:o}=e;return Ai(e)&&o&&t?`${an}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${t}`:`${an}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${s}`},da=({height:e,imageKey:t,width:s})=>{if(y1){const o=encodeURIComponent(t);return`${y1}/b:fff,f:jpg,s:cover,w:${s},h:${e}/${o}`}return mt(`partnerContent/${t}`)},Fj=()=>{const e=Bj||an,t="NBIC_logo_light_bulb.png";return e?`${e}/f:png,a:retain,s:cover,w:276,h:160/assets/rise/assets/partner-content/${t}`:mt(`partnerContent/${t}`)},Vj=()=>{const e="NBIC_logo_blue.svg";return g3?`${g3}/assets/rise/assets/partner-content/${e}`:mt(`partnerContent/${e}`)},zj=e=>{const{key:t,src:s}=e;return v3?`${v3}/${t}`:Ri({key:t,src:s})};var $j=f(17776);const Ll=({alpha:e,color:t,url:s})=>{const o=(0,$j.A)(t,e);return{backgroundImage:`linear-gradient(0deg,${o},${o}), url("${s}")`}};var L1,S1;const k0e=Yr()(Pe()("sidebarMode","hidden")),ua=({alpha:e,color:t=void 0,hasOverlay:s=!0,media:o={}})=>{const{image:r={}}=o,{key:a,src:i}=r,c=a?vt(r):i,d=t===nt.LIGHT?H0:D0;return c?s?Ll({alpha:e/100,color:d,url:c}):{backgroundImage:`url("${c}")`}:null},wo=e=>[ur.DARK,ur.DARK_ACCENT,ur.DARK_IMAGE,No.DARK,Yn.DARK,Yn.DARK_IMAGE].includes(e),_j=st()(Ce()("lessons"),rs()),Uj=Pe()("navigationMode",To.RESTRICTED),Gj=Yr()(Pe()("sidebarMode",ea.HIDDEN)),Wj=Pe()("navigationType",dr.SIDEBAR),x3=Pe()("navigationType",dr.COMPACT),T1=Ut()(f3()(Xe(),"navigation"),Gj,Pe()("navigation",!0)),Kj=({course:e,search:t,isMobile:s})=>yo(e)?!1:(Wj(e)||x3(e)&&!!s)&&T1(e)||t.active,Qj=({course:e,isMobile:t})=>x3(e)&&T1(e)&&!t,Pi=e=>[ur.DARK_IMAGE,ur.LIGHT_IMAGE,No.DARK_IMAGE,No.IMAGE,Yn.DARK_IMAGE,Yn.LIGHT_IMAGE].includes(e),Zj=e=>[Yn.DARK,Yn.LIGHT].includes(e),Yj=(e,t)=>{if(e===ul.RISE_CLASSIC||e===ul.HORIZON)switch(t){case ne.SPLIT_LEFT_IMAGE:case ne.SPLIT_RIGHT_IMAGE:case ne.TWO_THIRDS_LEFT_IMAGE:case ne.TWO_THIRDS_RIGHT_IMAGE:return!0;default:return!1}else if(e===ul.APEX)switch(t){case ne.SPLIT_LEFT_IMAGE:case ne.SPLIT_RIGHT_IMAGE:return!0;default:return!1}return!1},I0e=(e,t)=>{switch(e){case L1.RISE_CLASSIC:case L1.APEX:case L1.HORIZON:return t===S1.CENTERED_OVERLAY||t===S1.LEFT_OVERLAY||t===S1.IMAGE;default:return!1}},b3=e=>e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1,cn=e=>!b3(e),y3=ce()(As()(pr),Ce()("lessonsOnly")),Xj=({course:e,courseProgress:t})=>Hs()(Jj(t))(e.lessonsOnly),Jj=e=>t=>wi()(Ft()(["lessons",t.id,"isComplete"],e)),qj=({lesson:e,currentLesson:t})=>e&&Pe()("id",e.id,t),ew=({course:e,lesson:t})=>Pe()("id",t.id,rs()(Ce()("lessonsOnly",e))),tw=({course:e,lesson:t})=>Pe()("id",t.id,bo()(Ce()("lessonsOnly",e))),L3=ce()(wi(),Pe()("type","section")),sw=({lesson:e,courseProgress:t})=>Fe()(!1,["lessons",e.id,"isComplete"],t),N1=({course:e,courseProgress:t,lesson:s,restrictingQuiz:o})=>{const r=Rj({courseProgress:t,lesson:s,restrictingQuiz:o}),a=Uj(e),i=a||cn(r),c=Xj({course:e,courseProgress:t}),d=L3(s)&&wi()(sw({lesson:s,courseProgress:t}));return{isRestricted:i&&d&&wi()(qj({lesson:s,currentLesson:c})),restrictingQuiz:r,isRestrictedCourse:a,currentLesson:c}},nw=({labels:e,restrictions:t})=>{const{lessonRestricted:s,quizRequirePassingScore:o}=e,{isRestrictedCourse:r,restrictingQuiz:a,currentLesson:i}=t,c=i&&Tj()("id",a,i);return!r||r&&c?a.title?o.replace("quiz",`"${a.title}"`):o:s},S3=Lj()(e=>p3()(Aj()(Sn()(["id"],e||{})))),ow=({course:e,lesson:t})=>ce()(la(),S3(t),y3)(e),T3=({course:e,lesson:t})=>!tw({course:e,lesson:t})&&e.lessonsOnly[la()(S3(t,e.lessonsOnly))],rw=ce()(Qt(),y3),aw=e=>typeof e=="object"&&Object.keys(e).length>0,iw=e=>e==null||e===!1,N3=e=>iw(e?.isComplete),cw=e=>e?.passed===!1||N3(e),lw=(e,t)=>e.find(([s,o])=>s===t?cw(o):N3(o)),dw=(e,t)=>{const s=Object.entries(e),[o]=lw(s,t)||[];return o},uw=(e,t)=>aw(e)?dw(e,t):t,k3=(e,t,s)=>{if(!s)return{outOfAttempts:!1,quizPassed:!0};const o=Ft()(["lessons",s],e),r=Fe()(-1,["settings","retryCount"],t),a=Fe()(0,["retryAttempts"],o),i=Ft()(["passed"],o);return{outOfAttempts:Ft()(["isComplete"],o)&&r>-1&&Number(a)===Number(r),quizPassed:i}};function k1(e){return e.courseProgress}function hw(e){return e.courseProgress?.currentLesson??""}function mw(e){return e.courseProgress?.percentComplete??0}const I3=(0,Ge.Mz)(f1,xs,(e,t)=>{const{lessons:s}=t;return Array.isArray(s)?s.find(({id:o,type:r})=>r==="quiz"&&o===e)??null:null}),pw=(0,Ge.Mz)(k1,I3,(e,t)=>t?k3(e,t,t.id):null);function E3(e){const t=k1(e);return mg()?t?.percentComplete===100:!!ug()}function ha(e){return e.courseProgress?.lessons}function Mi(e,t){if(e!=null)return ha(t)?.[e]}function Ao(){return ae(k1)}function Sl(){return ae(hw)}function ma(){return ae(mw)}function fw(){return ae(I3)}function I1(){return ae(pw)??{outOfAttempts:!1,quizPassed:!1}}function gw(){return ae(E3)}function Ro(e){return ae(t=>Mi(e,t))}function Tl(e){const t=Ro(e);if(t?.type==="quiz")return t}const vw=(0,Ge.Mz)(ha,e=>e?Object.values(e).some(t=>t.type==="quiz"&&t.activeIndex!==void 0&&!t.isComplete):!1);function Cw(){return ae(vw)}const j3=e=>e>9999?1:e,xw=({current:e,restart:t,restartValue:s})=>{const o=Number(s),r=j3(Number.isInteger(o)&&o>0?o:1),a=t?r:e+1;return j3(a)},bw=(e,t)=>{if(t.family==="divider"&&t.variant==="numbered divider"){const s=t.settings??{},o=xw({current:e.currentNumber,restart:s.restartNumbering,restartValue:s.restartNumberingValue});return{map:{...e.map,[t.id]:o},currentNumber:o}}return e},w3=e=>gk(e),Nl=e=>vk(e),yw=e=>Ck(e),Lw=e=>!!Vg(e);function pa(){return(0,Ge.Mz)(e=>e,(e,t)=>M3(t),(e,t)=>t[String(e)])}function wt(e){const t=(0,h.useMemo)(()=>pa(),[]);return ae(s=>t(e,s))}function fa(e){const t=wt(e);return it(t?.title)}function Sw(){const e=pa();return(0,Ge.Mz)(e,t=>w3(t))}function A3(){const e=kl();return(0,Ge.Mz)(t=>t,(t,s)=>e(s),(t,s)=>v1(s),(t,s)=>ww(s),(t,s)=>Aw(s),(t,s)=>ha(s),(t,s,o,r,a,i)=>{const c=i?.[t],d=i?.[s];if(t!==s&&!c?.isComplete&&c?.index>d?.index){const l=i?.[r?.id]?.index??1/0,u=o==="restricted"?d?.index??1/0:i?.[a?.id]?.index??1/0;if(c?.index>Math.min(l,u))return u<l?o==="restricted"?{type:ta.ORDER}:{type:ta.KNOWLEDGE_CHECK}:{type:ta.QUIZ,data:r.title}}return null})}function Oi(e){const t=(0,h.useMemo)(()=>A3(),[]);return ae(s=>t(e,s))}function kl(){return(0,Ge.Mz)(ha,f1,(e,t)=>uw(e,t))}function Tw(){const e=(0,h.useMemo)(()=>kl(),[]);return ae(t=>e(t))}function Nw(){const e=kl();return(0,Ge.Mz)(e,M3,(t,s)=>{if(!(!t||!s[t]))return s[String(t)]})}function kw(){const e=pa();return(0,Ge.Mz)(e,Mi,(t,s)=>{const o=s?.percentComplete??0,r=s?.isComplete??!1,a=s?.passed??!1;return o===100&&(!r||Nl(t)&&!a)})}function R3(e){const t=(0,h.useMemo)(()=>kw(),[]);return ae(s=>t(e,s))}function Iw(){const e=pa();return(0,Ge.Mz)(e,Mi,(t,s)=>{const o=s?.percentComplete??0,r=s?.isComplete??!1,a=s?.passed??!1;return o===100&&r&&(!Nl(t)||a)})}function P3(e){const t=(0,h.useMemo)(()=>Iw(),[]);return ae(s=>t(e,s))}const E1=(0,Ge.Mz)(xs,e=>e?.lessons??[]),M3=(0,Ge.Mz)(E1,e=>e.reduce((t,s)=>(s?.id&&(t[s.id]=s),t),{})),ga=(0,Ge.Mz)(xs,e=>e?.lessonsOnly??[]),Ew=(0,Ge.Mz)(ga,e=>e.reduce((t,s,o)=>(t[s.id]=o+1,t),{}));function O3(){return ae(e=>Ew(e))}const j1=(0,Ge.Mz)(ga,e=>e.filter(t=>pr(t))),B3=(0,Ge.Mz)(j1,e=>e.length),jw=(0,Ge.Mz)(E1,e=>e.reduce((t,s)=>{const o=t[t.length-1];return w3(s)||o==null?t.push([s.id]):o.push(s.id),t},[])),ww=(0,Ge.Mz)(ga,ha,(e,t)=>e.find(s=>Nl(s)&&yw(s)&&!t?.[s.id]?.isComplete)),Aw=(0,Ge.Mz)(ga,ha,(e,t)=>e.find(s=>!Nl(s)&&Lw(s)&&!t?.[s.id]?.isComplete));function Il(e){const t=(0,h.useMemo)(Sw,[]);return ae(s=>t(e[0],s))}function w1(e){const t=(0,h.useMemo)(()=>pa(),[]),s=(0,h.useMemo)(()=>A3(),[]),o=yl();return ae(r=>{const a=xs(r),i=t(e,r),c=Mi(e,r),l=s(e,r)?.type!=null;return o!==To.RESTRICTED&&a?.markComplete&&!l&&i?.type!==$0.QUIZ&&!(ke&&c?.percentComplete===100)})}const El=(e,t)=>t.findIndex(s=>s.id===e);function D3(){return(0,Ge.Mz)(e=>e,(e,t)=>ga(t),(e,t)=>{if(e==="progress-summary")return t[t.length-1];const o=El(e,t)-1;return t[o]})}function H3(){return(0,Ge.Mz)(e=>e,(e,t)=>ga(t),(e,t)=>{const o=El(e,t)+1;return t[o]})}function F3(e){return(0,Ge.Mz)((s,o)=>e(s,o),(s,o)=>j1(o),(s,o)=>El(s?.id||"",o)+1)}function Rw(){return F3(H3())}function Pw(){return F3(D3())}function Mw(e){const t=(0,h.useMemo)(()=>H3(),[]);return ae(s=>t(String(e),s))}function Ow(e){const t=(0,h.useMemo)(()=>Rw(),[]);return ae(s=>t(String(e),s))}function Bw(e){return ae(t=>{if(!e)return 0;const s=j1(t);return El(String(e),s)+1})}function A1(){return ae(B3)}function jl(){return ae(e=>jw(e))}function Dw(){const e=kl();return(0,Ge.Mz)(E3,e,f1,(t,s,o)=>{const r=!!s,a=o!=null;return t||!r&&!a})}function Hw(){const e=(0,h.useMemo)(()=>Dw(),[]);return ae(t=>e(t))}function Fw(){const e=ee(),t=Ao();return(0,h.useMemo)(()=>{if(!e||!t||!e.lessonsOnly)return[];const s=x1({course:e,courseProgress:t});return e.lessonsOnly.filter(o=>{const{isRestricted:r}=N1({course:e,courseProgress:t,lesson:o,restrictingQuiz:s});return r}).map(o=>o.id)},[e,t])}const Vw=e=>e?.items?.reduce?.(bw,{map:{},currentNumber:0})?.map||{},zw=e=>{const t=(0,h.useMemo)(()=>pa(),[]),s=ae(o=>t(e,o));return(0,h.useMemo)(()=>Vw(s),[s])},$w=({blockId:e,lessonId:t})=>zw(t)?.[e];function _w(e){const s=ee()?.lessonsOnly??[],o=s.findIndex(a=>a.id===e);return(o>=0?s[o+1]:void 0)?.id??null}function Uw(e){const t=wt(e),s=ee(),o=t?.settings,r=s?.lessonsOnly;return(0,h.useMemo)(()=>{const a=o?.skipToLessonId,i=a&&r?.some(c=>c.id===a)?a:void 0;return{continueType:o?.continueType??"",retryCount:Number(o?.retryCount??-1),skipLessonsIfPassed:o?.skipLessonsIfPassed??!1,skipToLessonId:i}},[o,r])}function Gw(){return ae(E1)}function Ww(e){const t=(0,h.useMemo)(()=>D3(),[]);return ae(s=>t(e,s))}function Kw(e){const t=(0,h.useMemo)(()=>Pw(),[]);return ae(s=>t(e,s))}function Qw(){const e=(0,h.useMemo)(()=>Nw(),[]);return ae(e)}function V3(){const e=Qw();return it(e?.title)}function Zw(e){return e.courseLabels}function Yw(){return ae(Zw)}function Xw(e,t){return t?.l10n?.localeLabelSets?.[e]?.labels||t?.courseLabels?.labels}function ue(){const{currentLocale:e}=Qe();return ae(t=>Xw(e,t))}function Jw({isCourseComplete:e,percentCourseComplete:t}){const s=ue()??{},{courseResume:o,courseStart:r,processStartAgain:a}=s;return{courseCTALabel:e?a:t>0?o:r}}function R1(){const{pathname:e}=new URL(window.location.href);return e.split("/")[1]==="review"}function qw(){const e=window.location.hash.slice(1),t=new URLSearchParams(e.split("?")[1]??"");return R1()&&!!t.get("locale")}const eA=(0,h.lazy)(()=>f.e("webpack_container_remote_learn_distribution_frontend_learn_ai-learner-popout").then(f.t.bind(f,68789,23))),tA=()=>{const{currentLocale:e}=Qe(),t=JE(ee()),s=rn(),o=Sl(),r=Cw(),a=wt(o),i=ue(),c=window,d=c?.growth?.getSubscription?.()?.id||t?.tenantId||void 0,l=c?.growth?.getUser?.()?.id||(t?`learner_${t.author}`:void 0),u=Fw(),m=async()=>{try{await mi()}catch{}},p=t?.aiTutorImage?.media?.image?.key??null,g=p?gg(p):null,C=it(t?.aiTutorConfig?.name)??null,[v,x]=(0,h.useState)(!1),y=`rise_ai_tutor_nudge_${l}`,S=(0,h.useCallback)(()=>{localStorage.setItem(y,"1")},[y]);(0,h.useEffect)(()=>{if(localStorage.getItem(y))return;let T=null;const N=setTimeout(()=>{const k=document.getElementById("page-wrap");if(!k)return;const E=()=>{if(localStorage.getItem(y)){k.removeEventListener("scroll",E);return}const{scrollTop:I,scrollHeight:A,clientHeight:R}=k,j=A-R,O=j>0?I/j:0;j<=0||O>=.75&&(localStorage.setItem(y,"1"),x(!0),k.removeEventListener("scroll",E))};k.addEventListener("scroll",E,{passive:!0}),T=()=>k.removeEventListener("scroll",E),E()},0);return()=>{clearTimeout(N),T?.()}},[l,y,o]);const L=r||a?.type==="quiz",b=L?i?.aiTutorDisabledWhileQuiz??"AI Tutor is disabled while a quiz is in progress.":void 0;return(0,n.jsx)(eA,{aiTutorImageUrl:g,aiTutorName:C,apiKey:t.aiLearnerCourseApiKey??null,course:t,currentLessonId:o,currentLocale:e,disabled:L,disabledReason:b,labels:i,onOpen:S,resetSession:m,restrictedLessonIds:u,rtl:s,scrollTriggered:v,subscriptionId:d,userId:l})},sA=()=>{const e=ee();return!R1()&&!!e?.settings?.aiTutorEnabled?(0,n.jsx)(bj,{FallbackComponent:()=>null,children:(0,n.jsx)(h.Suspense,{fallback:null,children:(0,n.jsx)(tA,{})})}):null},z3=(0,h.createContext)(null);function nA({appType:e,children:t}){return(0,n.jsx)(z3.Provider,{value:e,children:t})}function oA(){const e=(0,h.useContext)(z3);if(e==null)throw new Error("useAppType must be used within an AppTypeProvider");return e}function P1(){return oA()==="author"}const M1=Object.assign((0,h.createContext)(void 0),{displayName:"BlockContext"});function O1({block:e,children:t}){const[s,o]=(0,h.useState)(e);return(0,h.useEffect)(()=>o(r=>e||r),[e]),(0,n.jsx)(M1.Provider,{value:s,children:(0,n.jsx)(V1,{...s?.settings,children:t})})}const E0e=M1.Consumer;function St(){return(0,h.useContext)(M1)}function wl(e){return function(s){const o=St();return(0,n.jsx)(e,{...s,block:o})}}const rA={text:{backgroundType:"blockTextBackgroundType",backgroundColor:"blockTextBackgroundColor",backgroundColorContrast:"blockTextBackgroundColorContrast",paddingStart:"blockTextPaddingStart",paddingEnd:"blockTextPaddingEnd",bodyFontSize:"blockTextBodyFontSize",headingFontSize:"blockTextHeadingFontSize",subheadingFontSize:"blockTextSubheadingFontSize"},continue:{completionType:"blockContinueCompletionType",label:"blockContinueLabel",completeHint:"blockContinueCompleteHint"}},j0e={continue:{blockContinueCompletionType:"type",blockContinueLabel:"title",blockContinueCompleteHint:"completeHint"}};function aA(e,t){if(!e||!t)return null;const s=rA[e];if(!s)return null;const o=r=>r?t[r]:void 0;return{backgroundType:o(s.backgroundType),backgroundColor:o(s.backgroundColor),backgroundColorContrast:o(s.backgroundColorContrast),paddingStart:o(s.paddingStart),paddingEnd:o(s.paddingEnd),bodyFontSize:o(s.bodyFontSize),headingFontSize:o(s.headingFontSize),subheadingFontSize:o(s.subheadingFontSize),completionType:o(s.completionType),label:o(s.label),completeHint:o(s.completeHint)}}function Po(){const e=St(),t=Me(),s=e?.family,o=t?.theme;return(0,h.useMemo)(()=>aA(s,o),[s,o])}var iA=f(38413),cA=f.n(iA);const En=(e,t)=>{const s=Jr(t);return s==null?null:(0,M0.A)((0,P0.jh)(s,Jr("#000000"),e),{format:"hex",collapse:!1})};function lA(e){if(e==null)return 0;const t=d1(e);return t==null?0:(0,KT.J1)(t)}const ct=kn({NEAR_BLACK:null,DARK:null,MED:null,LIGHT:null}),va=e=>{const t=lA(e);return t<=.01?ct.NEAR_BLACK:t<=.05?ct.DARK:t<=.35?ct.MED:ct.LIGHT},dA=e=>{switch(va(e)){case ct.NEAR_BLACK:return sn(.1,e);case ct.DARK:return En(.4,e);case ct.MED:return En(.2,e);case ct.LIGHT:return sn(.3,e)}};var uA,hA,mA,B1,$3,Mo;const _3=2,w0e=(e,t,s)=>e??t??s,U3=(e,t,s,o)=>e??t??s??o,Fs=Rs()({WHITE:null,TRANSPARENT:null}),pA={markerColorContrast:pe.AUTO,paddingBottom:3,paddingLinked:!0,paddingTop:3,snippetColorContrast:pe.AUTO},fA={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 gA(e,t){return fA[e]?.includes(t)??!1}const vA={360:{storyline:"#fafafa"},impact:{c:"#ececec",d:"#f5f5f5"},"interactive-fullscreen":{process:"#f5f5f5",sorting:"#f5f5f5",timeline:"#f5f5f5"},quote:{d:"#f5f5f5"}};function D1(e,t){const s=vA[e]?.[t];return s==null?{}:{backgroundColor:s,backgroundType:q.COLOR}}const CA={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 A0e(e,t){return CA[e]?.includes(t)??!1?.1:.5}function xA(e){switch(e.backgroundType){case q.COLOR:return e.backgroundColor;case q.ACCENT:return e.courseColor;case q.TINT:return O0(e.courseColor);case q.LIGHT:return"#ffffff";case q.GRAY:return"#fafafa";case q.DARK:return"#303030";case q.BLACK:return"#000000"}}const bA={multimedia:{embed(e){return{cardMode:e.showBorder===!1?Fs.TRANSPARENT:Fs.WHITE}}}};function yA(e,t,s){return LA(e,t,s)}function LA(e,t,s){const o=D1(e,t);if(s.v==null||s.v<_3){s=SA(s);const d=o.backgroundColor,l=s.backgroundColor?.toLowerCase(),u=d!=null&&l===d.toLowerCase(),m=d==null&&l==="#ffffff";l&&(u||m)&&(s=cA()("backgroundColor",s))}const r=bA[e]?.[t]?.(s),a=s.backgroundColor&&s.backgroundType==null?{backgroundType:q.COLOR}:{};return[{accentColor:null},pA,r,s,a,{v:_3}].reduce((d,l)=>l==null?d:{...d,...j0()(b3,l)},{})}function SA(e){return{...e,backgroundType:null,cardMode:null,v:1}}const TA={text:["table"],divider:["divider","numbered divider","spacing divider"],knowledgeCheck:["draw from question bank"],multimedia:[]};function R0e(e,t){return!TA[e]?.includes(t)}const NA={};function P0e(e,t){return!NA[e]?.includes(t)}function kA(e){return e===mA.LIGHT?Mo.LIGHT:Mo.DARK}function IA(e,t){if(t===B1.AUTO){if(!e)return Mo.DARK;const s=uA(e);return hA(s)===B1.DARK?Mo.DARK:Mo.LIGHT}else return t===B1.LIGHT?Mo.LIGHT:Mo.DARK}function M0e(e,t,s,o,r){const a=e?.backgroundType;return e?.cardMode===Fs.TRANSPARENT?a===$3.IMAGE?kA(t?.overlayColor):o&&a!==$3.ACCENT?r:IA(s,e?.customBackgroundColorContrast):o?r:Mo.DARK}const EA={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 O0e(e,t){return EA[e]?.includes(t)??!1}const jA=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),H1=(e,t)=>t!=null&&jA.test(t)?t:e;function At(e){const{contrast:t=pe.AUTO,backgroundColor:s="#fff"}=e,o=H1("#fff",s),r=Bs(o);return t===pe.DARK||t===pe.AUTO&&r===pe.DARK?ft.DARK:ft.LIGHT}const wA=e=>e.blockBackgroundType??e.familyBackgroundType??e.courseBackgroundType??e.blockTypeFallbackType??q.LIGHT,AA=e=>e.effectiveBackgroundType===q.COLOR?e.blockBackgroundColor||e.familyBackgroundColor||e.courseBackgroundColor||e.blockTypeFallbackColor||null:e.settingsBackgroundColor??null,RA=e=>e.blockCustomContrast??e.familyBackgroundColorContrast??e.courseBackgroundColorContrast??pe.AUTO,G3=e=>{const{family:t,variant:s,customBackgroundColorContrast:o}=e;return!o&&(t==="image"&&s!=="text aside"||t==="chart"||s==="sorting")},PA=e=>{const{backgroundType:t,backgroundColor:s,accentColor:o,customBackgroundColorContrast:r,accentContrast:a,family:i,variant:c}=e;if(!(t===q.ACCENT||t===q.COLOR))return null;const l=t===q.ACCENT?o:s;let u;return t===q.ACCENT?u=a:G3({family:i,variant:c,customBackgroundColorContrast:r})?u=Bs(s):u=r??pe.DARK,At({backgroundColor:l??void 0,contrast:u})},MA=e=>PA(e)===ft.LIGHT,OA=e=>{const t=e.blockBackgroundType!=null||e.familyBackgroundType!=null||e.courseBackgroundType!=null,s=e.blockCustomContrast!=null||e.familyBackgroundColorContrast!=null||e.courseBackgroundColorContrast!=null;return!t&&!s},BA=e=>{const{backgroundColor:t,family:s,variant:o,blockCustomContrast:r,familyBackgroundColorContrast:a,courseBackgroundColorContrast:i}=e,c=r??a??i??pe.AUTO,l=G3({family:s,variant:o,customBackgroundColorContrast:c})?Bs(t):c;return At({backgroundColor:t??void 0,contrast:l})};var DA=f(71239),Ca=f.n(DA);const HA=e=>{const{effectiveBackgroundType:t,blockImage:s}=e;return t!==q.IMAGE?null:s??null},FA=e=>yg(e?.alt),VA=e=>{if(!e)return null;const{alpha:t,overlayColor:s=nt.DARK}=e,o=vt(e),r=s===nt.LIGHT?H0:D0;return Ll({alpha:t,color:r,url:o})};function jn(){const e=Me(),t=Po(),s=Zt(),o=St(),r=o?D1(o.family,o.variant):{};return wA({blockBackgroundType:s?.backgroundType,familyBackgroundType:t?.backgroundType,courseBackgroundType:e?.theme?.blockBackgroundType,blockTypeFallbackType:r.backgroundType})}function zA(){return jn().toLowerCase()}function Al(){const e=St(),t=jn(),s=e?.background,o=Ie(s?.media)?.image;return HA({effectiveBackgroundType:t,blockImage:o})}function $A(){const e=Al();return FA(e)}function _A(){const e=Al();return VA(e)}function UA(){const e=Al();return!!e&&e?.overlayColor===nt.LIGHT}function GA(){const e=St(),t=e?.family,s=e?.variant,o=gA(t,s),r=e?.settings?.cardMode??Fs.WHITE;return o?r.toLowerCase():null}function WA(){const e=bs(),t=e?va(e):ct.LIGHT;return Ca()(t.toLowerCase())}function KA(){const e=St(),t=Me(),s=Po();return RA({blockCustomContrast:e?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:s?.backgroundColorContrast,courseBackgroundColorContrast:t?.theme?.blockBackgroundColorContrast})}function QA(){const e=Me(),t=Zt(),s=bs(),o=St(),r=jn(),a=KA(),i=t.accentColor||e?.theme?.colorAccent;return MA({accentColor:i,accentContrast:e?.theme?.accentContrast,backgroundColor:s,backgroundType:r,customBackgroundColorContrast:a,family:o?.family,variant:o?.variant})}function ZA(){const e=St(),t=Me(),s=bs(),o=Po();return BA({backgroundColor:s,blockCustomContrast:e?.settings?.customBackgroundColorContrast,courseBackgroundColorContrast:t?.theme?.blockBackgroundColorContrast,family:e?.family,familyBackgroundColorContrast:o?.backgroundColorContrast,variant:e?.variant})}function YA(){const e=St(),t=Me(),s=Po();return OA({blockBackgroundType:e?.settings?.backgroundType,familyBackgroundType:s?.backgroundType,courseBackgroundType:t?.theme?.blockBackgroundType,blockCustomContrast:e?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:s?.backgroundColorContrast,courseBackgroundColorContrast:t?.theme?.blockBackgroundColorContrast})}function XA(){const e=zA(),t=WA(),s=GA(),o=QA(),r=UA(),a=YA(),i=bs(),c=_A(),d=$A();return{backgroundColor:i,backgroundImageAlt:d,backgroundImageCss:c,backgroundTypeLowercase:e,cardMode:s,colorRange:t,isContrastLight:o,isLegacyBackground:a,isOverlayLight:r}}var W3=f(80588);const K3=Object.assign((0,h.createContext)({}),{displayName:"BlockSettingsContext"});function Zt(){return(0,h.useContext)(K3)}const JA="settings";function F1(e){return t=>{const s=W3.forwardRef((o,r)=>{const a=Zt(),i={...o,[e??JA]:a};return(0,n.jsx)(t,{...i,ref:r})});return s.displayName=`withBlockSettings(${t.displayName||t.name})`,s}}function bs(){const e=Me(),t=Zt(),s=Po(),o=jn(),r=St();if(t==null)return null;const a=r?D1(r.family,r.variant):{},i=AA({effectiveBackgroundType:o,blockBackgroundColor:t.backgroundColor,familyBackgroundColor:s?.backgroundColor,courseBackgroundColor:e?.theme?.blockBackgroundColor,blockTypeFallbackColor:a.backgroundColor,settingsBackgroundColor:t.backgroundColor}),c={...t,backgroundType:o,backgroundColor:i};return xA(c)}const qA="backgroundColor";function eR(e){return t=>{const s=W3.forwardRef((o,r)=>{const a=bs(),i={...o,[e??qA]:a};return(0,n.jsx)(t,{ref:r,...i})});return s.displayName=`withBackgroundColor(${t.displayName||t.name})`,s}}function V1({children:e,...t}){const s=St(),o=Zt(),r=Ii(),a=(0,h.useMemo)(()=>{const i=s==null?t:yA(s.family,s.variant,t);return{courseColor:r,...o,...i}},[s,t,r,o]);return(0,n.jsx)(K3.Provider,{value:a,children:e})}const wn={get isInstantLink(){return!!window.InstantLinks?.publicId}};var tR=f(50172);const _=(0,tR.setup)({el:"__",mod:"--",modValue:"-"}),sR=({value:e,fallback:t})=>{const s=Ie(e),o=jt(e);return t?(0,n.jsx)("span",{"data-l10n-id":o,children:s||t}):(0,n.jsx)("span",{"data-l10n-id":o,children:s})};function nR({value:e,children:t}){const s=Ie(e);return t(s)}const lt=sR,z1=_("lesson-navigation-dropdown"),Q3=({lessonTitle:e})=>(0,n.jsx)("li",{children:(0,n.jsxs)("div",{className:z1("option",{"ai-loading":!0}),children:[(0,n.jsx)(lt,{value:e||"Generating lesson..."}),(0,n.jsx)("div",{className:z1("ai-loading-progress"),children:(0,n.jsx)("div",{className:z1("spinner")})})]})});var Z3=f(84793),oR=f(6022),rR=f(19794),aR=f(36790),iR=f(45422),cR=f(67412),lR=f(68410),dR=f(5085),uR=f(37773),hR=f(34428),mR=f(89200),pR=f(10490),fR=f(67204),gR=f(14830),vR=f(51371),CR=f(28591),xR=f(87467),bR=f(97331),yR=f(13102),LR=f(77142),SR=f(44727),TR=f(67023),NR=f(79624),kR=f(74586),IR=f(73545),ER=f(72159),jR=f(7384),wR=f(6306),AR=f(48202),RR=f(44859),PR=f(3209),MR=f(25992),OR=f(42298),BR=f(59895),DR=f(19704),HR=f(13020),FR=f(52075),VR=f(83285),zR=f(76787),$R=f(18646),_R=f(38474),UR=f(14477),GR=f(8442),WR=f(19300),KR=f(58551),QR=f(3112),ZR=f(94490),YR=f(10567),XR=f(90648),JR=f(77257),qR=f(52210),eP=f(40029),tP=f(18148),sP=f(54062),nP=f(12936),oP=f(47540),rP=f(15501),aP=f(11129),iP=f(82478),cP=f(8685),lP=f(78194),dP=f(41221),uP=f(63842),hP=f(62566),mP=f(13234),pP=f(42036),fP=f(72051),gP=f(80349),vP=f(93057),CP=f(23119),xP=f(11358),bP=f(45890),yP=f(62208),LP=f(18819),SP=f(14097),TP=f(71431),NP=f(52736),kP=f(7490),IP=f(30438),EP=f(6899),jP=f(26529),wP=f(79872),AP=f(31511),RP=f(17783),PP=f(89072),MP=f(43436),OP=f(87565),BP=f(75643),DP=f(26594),HP=f(30405),FP=f(74686),VP=f(79906),zP=f(85248),$P=f(48587),Y3=f(91485),_P=f(5923),UP=f(58882),GP=f(26642),WP=f(65679),KP=f(6094),QP=f(59857),ZP=f(12124),YP=f(2244),XP=f(3784),JP=f(62909),qP=f(50344),eM=f(75991),tM=f(91201),sM=f(47571),nM=f(18796),oM=f(89023),rM=f(88946),aM=f(8525),iM=f(36079),cM=f(7486),lM=f(20557),dM=f(14784),uM=f(75588),hM=f(31314),mM=f(81133),pM=f(86961),fM=f(95672),gM=f(43965),vM=f(15465),CM=f(77853),xM=f(75044),bM=f(62394),yM=f(55924),LM=f(60674),SM=f(33405),TM=f(77852),NM=f(33746),kM=f(41262),IM=f(52058),EM=f(87090),jM=f(99784),wM=f(22635),AM=f(71609),RM=f(64426),PM=f(50040),MM=f(64003),OM=f(71859),BM=f(63407),DM=f(80620),HM=f(45263),FM=f(9263),VM=f(41126),zM=f(74285),$M=f(77093),_M=f(66274),X3=f(90832),UM=f(77190),GM=f(93867),WM=f(28081),KM=f(15297),QM=f(99941),ZM=f(86171),YM=f(36734),XM=f(76392),JM=f(99476),qM=f(38933),eO=f(61188),tO=f(9713),sO=f(19996),nO=f(36476),oO=f(99651),rO=f(89873),aO=f(12425),iO=f(49965),cO=f(6783),lO=f(34444),dO=f(78128),uO=f(68433),hO=f(24726),mO=f(65734),pO=f(5312),fO=f(14635),gO=f(62428),vO=f(84096),CO=f(55260),xO=f(33919),bO=f(4398),yO=f(39475),LO=f(7057);const SO={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"]},TO={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"]]},NO={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"]},kO={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"]},IO={"alert-circle-solid":dP.lE,"alert-circle":Y3.lE,"alert-diamond":oM.xG,"angle-right":gP.vm,"arrow-down-from-line":CP.xZ,"arrow-down-to-bracket":xP.a_,"arrow-down-to-line":bP.yH,"arrow-down":vP.B0,"arrow-left":yP.Ce,"arrow-right-from-line":SP.Pe,"arrow-right":LP.dm,"arrow-rotate-left-light":CR.V3,"arrow-rotate-left":TP.V3,"arrow-up-from-bracket":kP.MN,"arrow-up-from-line":IP.s8,"arrow-up-right-from-square":EP.faArrowUpRightFromSquare,"arrow-up":NP.IN,"arrows-two-from-center":oR.A1,"arrows-two-to-center":rR.hL,"badge-check":BR.Zs,"bar-chart":jP.X8,bars:DR.ck,"bars-regular":wP.ck,"block-selector":hP.iH,"book-open":RP.Re,"book-sparkles":PP.E4,book:AP.LB,"browser-light":cR.c9,browser:MP.c9,building:aR.UR,"building-regular":iR.UR,"cards-blank":OP.Xm,"caret-down":FR.xB,"caret-right":VR.fU,"chart-column":OR.q9,"check-regular":pP.e6,check:HR.e6,"chevron-down-solid":zR.Jt,"chevron-down":BP.Jt,"chevron-left-light":lR.Wz,"chevron-left-solid":_R.Wz,"chevron-left":DP.Wz,"chevron-right-light":dR.Xk,"chevron-right-solid":UR.Xk,"chevron-right":HP.Xk,"chevron-up-solid":$R.w2,"chevron-up":FP.w2,"circle-arrow-right":KR.Ni,"circle-arrow-up":WR.yi,"circle-check-regular":zP.QR,"circle-check-solid":QR.QR,"circle-check":NR.QR,"circle-dot":$P.pp,"circle-half-stroke":_P.B2,"circle-exclamation":Y3.lE,"circle-info":UP.faCircleInfo,"circle-notch":KP.s4,"circle-plus-duotone":kR.q_,"circle-plus-regular":GP.q_,"circle-plus":ZR.q_,"circle-small-solid":YR.ZP,"circle-small":WP.ZP,"circle-solid":GR.GE,"circle-x":XR.Ub,"circle-xmark":QP.bn,"circle-xmark-solid":JR.bn,"circle-xmark-duotone":IR.bn,circle:VP.GE,"clipboard-list-check":ZP.S3,"clock-rotate-left":YP.Yj,clone:JP.$3,close:qP.yY,"closed-captioning":XP.UM,"code-fork-duotone":ER.zt,"code-fork-regular":eM.zt,code:yO.jT,comment:tM.DN,copy:sM.jP,crop:nM.K1,"edit-regular":rM.MT,"ellipsis-regular":aM.Dw,"ellipsis-vertical-regular":iM.nx,envelope:cM.y_,"external-link":lM.vM,"eye-slash":hR.k6,eye:uR.pS,"face-frown":xR.Ho,"face-frown-regular":bR.Ho,"face-laugh":yR.ou,"face-laugh-regular":LR.ou,"face-smile":SR.H8,"face-smile-regular":TR.H8,"file-audio":uM.qe,"file-duotone":jR.A4,"file-export-light":pR.o1,"file-export":hM.o1,"file-import":mM.$M,"file-lines":pM.bL,"file-pdf-light":mR.O_,"file-pdf":fM.O_,file:dM.A4,"folder-image":gM.JK,"folder-open":wR.Uj,gear:vM.BH,globe:CM.Bw,"graduation-cap":xM.eS,"grid-2":bM.Qy,"grid-solid":qR.Qy,"grip-dots-vertical":yM.IM,"hand-pointer":LM.A8,"image-landscape":TM.oC,"image-portrait":NM.E4,image:SM.jb,"photo-film":kM._Z,"info-circle":IM.iW,"layers-solid":lP.qI,"link-simple-slash":wM.r2,"link-simple":jM.wi,"link-slash":AM.TH,link:EM.CQ,list:RM.IT,"list-check":PM.UN,"location-dot":gR.gK,"lock-keyhole-light":fR.Yp,lock:eP.DW,"magnifying-glass-plus":OM.bM,"magnifying-glass":MM.$U,megaphone:uP.OR,"message-quote":BM.ps,"minus-solid":tP.EZ,minus:DM.EZ,paintbrush:AR.ue,palette:HM.fy,paste:FM.R9,pause:VM.G1,"pause-solid":sP.G1,"pen-line":zM.pg,"pen-nib":_M.us,"pen-to-square":$M.faPenToSquare,"pencil-duotone":RR.zL,"pencil-regular":fP.zL,"pencil-thin":LO.zL,pencil:vR.zL,"play-regular":X3.ij,"play-solid":nP.ij,play:X3.ij,"plus-regular":UM.QL,plus:GM.TS,"quote-left":WM.$7,"rectangle-history-circle-plus":QM.Hu,"rectangle-regular":KM.vt,"rectangle-vertical-history":ZM.Lt,rocket:YM.KM,"ruler-horizontal":XM.Si,"ruler-triangle":JM.cb,"sliders-simple":oP.AD,"sparkles-solid":rP.p7,sparkles:qM.p7,"spinner-third":eO.sq,"square-arrow-down":sO.Y1,"square-arrow-right":nO.mT,"square-arrow-up-right":oO.fL,"square-check-solid":aP.Dn,"square-check":rO.Dn,"square-duo":PR.Nf,"square-info":aO.Lg,"square-plus":iO.Vd,square:tO.Nf,"stopwatch-regular":cO.nw,table:lO.w9,tag:dO._2,text:uO.jw,"trash-can":mO.sj,trash:hO.yL,"user-group":iP.US,"users-regular":pO.gd,users:MR.gd,video:fO.n2,volume:gO.eF,volumeHigh:vO.AI,volumeLow:CO.gN,volumeXmark:xO.H_,"wand-magic-sparkles":bO.Ys,"waveform-lines":mP.Wx,xmark:cP.Jy},EO={"audio-plus":NO,"clone-plus":kO,reach:TO,"rise-com":SO},ie=(0,h.memo)(function({"aria-label":t,className:s,classNameIcon:o,color:r,"data-testid":a,name:i,rotation:c,spin:d,style:l,styleIcon:u}){return(0,n.jsx)("span",{className:s,"data-testid":a,style:{color:r,...l},children:(0,n.jsx)(Z3.g,{"aria-label":t,className:o,icon:IO[i],rotation:c,spin:d,style:u})})}),D0e=(0,h.memo)(function({className:t,classNameIcon:s,color:o,name:r,style:a,styleIcon:i}){return(0,n.jsx)("span",{className:t,style:{color:o,...a},children:(0,n.jsx)(Z3.g,{className:s,icon:EO[r],style:i})})}),J3=(0,h.createContext)(!1);function Bi({children:e,inert:t}){const s=$1();return(0,n.jsx)(J3.Provider,{value:s||t,children:e})}function $1(){return(0,h.useContext)(J3)}function Di(e){const{to:t,children:s}=e,o=(0,ge.zy)(),r=(0,h.useMemo)(()=>f0(t,o),[o,t]);return(0,n.jsx)(ge.k2,{...e,to:r,children:s})}var q3=f(80588);const Hi=_("lesson-navigation-dropdown"),jO=({disabled:e,index:t,option:s,selectedLessonId:o,onSelect:r,getLessonPath:a})=>{const[i,c]=q3.useState(!0),d=`lesson-navigation-dropdown-section-${t}`,l=q3.useCallback(m=>{m.stopPropagation(),m.preventDefault(),c(p=>!p)},[]),u=Hi("group-header-icon",{collapsed:!i});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{"aria-controls":d,"aria-expanded":i,className:Hi("group-header"),onClick:l,type:"button",children:[(0,n.jsx)(ie,{className:u,name:"caret-down"}),(0,n.jsx)("span",{className:Hi("group-header-text"),children:(0,n.jsx)(lt,{value:s.label})})]}),(0,n.jsx)(Bi,{inert:!i,children:(0,n.jsx)("ol",{"aria-hidden":i?void 0:!0,className:Hi("group-list",{collapsed:!i}),id:d,children:s.options?.map((m,p)=>{const g=String(m.value),C=e||m.disabled;return m.lesson?.settings?.isGeneratingAIContent?(0,n.jsx)(Q3,{lessonTitle:m.label},`${g}-${p}`):(0,n.jsx)("li",{children:(0,n.jsx)(Di,{className:Hi("option",{disabled:C,selected:m.value===o}),onClick:C?void 0:()=>r(g),to:C?void 0:a(g),children:(0,n.jsx)(lt,{value:m.label})})},`${g}-${p}`)})})})]})};var Be=f(49408);const e6={course:({courseId:e})=>`/authoring/${e}`,courseLocales:({courseId:e})=>`/manage/locales/${e}`,dashboard:"/manage/all-content",lesson:({courseId:e,lessonId:t})=>`/authoring/${e}/lesson/${t}`},wO=(e,t="section")=>e.reduce((s,o)=>(o.type===t?s.grouped.push([o]):s.grouped.length===0||s.grouped[s.grouped.length-1][0].type!==t?s.ungrouped.push(o):s.grouped[s.grouped.length-1].push(o),s),{grouped:[],ungrouped:[]}),AO=(e,t={})=>{if(!Array.isArray(e))return{options:[],hasGrouping:!1};const{sectionType:s}=t;if(!e.some(l=>l.type===s))return{options:e.filter(u=>u&&u.id).map(u=>({label:u.title||"Untitled Lesson",type:u.type,value:String(u.id),disabled:u.type===null,lesson:u})),hasGrouping:!1};const{grouped:r,ungrouped:a}=wO(e,s),i=r.map((l,u)=>{const[m,...p]=l,g=m&&"title"in m?m.title:void 0;return{label:g||"Untitled Section",type:m?.type||null,value:g||`section-${u}`,options:p.filter(C=>C&&C.id).map(C=>({label:C.title||"Untitled Lesson",type:C.type,value:String(C.id),disabled:C.type===null,lesson:C}))}}).filter(l=>l.options&&l.options.length>0);return{options:[...a.filter(l=>l&&l.id).map(l=>({label:l.title||"Untitled Lesson",type:l.type,value:String(l.id),disabled:l.type===null,lesson:l})),...i],hasGrouping:!0}};function RO(e="course-overview"){const t=Me(),s=XE()??{},o=P1(),r=t.id,a=s,i=t.lessons||Object.keys(s),c=e6,d=AO,[l,u]=(0,h.useState)(e),m=(0,h.useMemo)(()=>Array.isArray(a)?a:i.map(L=>a[L]).filter(Boolean),[i,a]),{options:p,hasGrouping:g}=(0,h.useMemo)(()=>d(m,{sectionType:"section"}),[m,d]),C=(0,h.useMemo)(()=>{for(const L of p){if(L.value===l)return L.label;if(L.options){for(const b of L.options)if(b.value===l)return b.label}}return l},[p,l]),v=Ie(C)??"Untitled Lesson",x=(0,h.useMemo)(()=>{for(const L of p)if(L.value===l)return L.type??null;return null},[p,l]),y=(0,h.useCallback)(L=>{u(L),L==="course-stack"&&(window.location.href=c.courseLocales({courseId:r}))},[c,r]),S=(0,h.useCallback)(L=>{switch(L){case"course-overview":return o?c.course({courseId:r}):"/";case"course-stack":return c.courseLocales({courseId:r});default:return o?c.lesson({courseId:r,lessonId:L}):`/lessons/${L}`}},[r,o,c]);return{options:p,hasGrouping:g,selectedLessonId:l,selectedLessonType:x,selectedOptionLabel:v,onLessonChange:y,getLessonPath:S}}var to=f(80588);const ys=_("lesson-navigation-dropdown"),PO=({disabled:e,options:t,selectedLessonId:s,handleOnSelect:o,getLessonPath:r})=>{const a=Me(),i=(0,Et.HX)(a);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ys("course-nav-links"),children:[i&&(0,n.jsxs)(Di,{className:ys("option",{selected:s==="course-stack","with-icon":!0}),onClick:()=>o("course-stack"),to:r("course-stack"),children:[(0,n.jsx)(Be.ArcIcon,{icon:"fa-regular fa-globe"}),(0,n.jsx)(lt,{value:"Course Stack"})]}),(0,n.jsxs)(Di,{className:ys("option",{disabled:e,selected:s==="course-overview","with-icon":!0}),onClick:()=>o("course-overview"),to:r("course-overview"),children:[(0,n.jsx)(Be.ArcIcon,{className:ys("book-icon"),icon:"fa-regular fa-book-open"}),(0,n.jsx)(lt,{value:"Course Overview"})]})]}),(0,n.jsx)("div",{"aria-labelledby":"lesson-navigation-title",className:ys("list-header"),role:"group",children:(0,n.jsx)("div",{id:"lesson-navigation-title",children:(0,n.jsx)(lt,{value:"Lessons"})})}),(0,n.jsx)("ol",{className:ys("list"),children:t.map((c,d)=>{if(c.options&&c.options.length>0)return(0,n.jsx)("li",{children:(0,n.jsx)(jO,{disabled:e,getLessonPath:r,index:d,onSelect:o,option:c,selectedLessonId:String(s)})},`${String(c.value)}-${d}`);{const l=String(c.value),u=e||c.disabled;return c.lesson?.settings?.isGeneratingAIContent?(0,n.jsx)(Q3,{lessonTitle:String(c.label)},l):(0,n.jsx)("li",{children:(0,n.jsx)(Di,{className:ys("option",{disabled:u,selected:c.value===s}),onClick:u?void 0:()=>o(l),to:u?void 0:r(l),children:(0,n.jsx)(lt,{value:c.label})})},l)}})})]})},MO=({badge:e,currentLessonId:t,sendTrackingEvent:s})=>{const[o,r]=to.useState(!1),a=to.useRef(!1),i=to.useRef(null),{onLessonChange:c,options:d,selectedLessonId:l,selectedOptionLabel:u,getLessonPath:m}=RO(t),p=to.useCallback(()=>{setTimeout(()=>{const b=document.querySelector("[popover]#lesson-navigation-dropdown");if(!b)return;const T=b.querySelector(`.${ys("option--selected")}`);T&&(T.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),T.focus())},100)},[]),g=to.useCallback(b=>{if(!o)return;const T=document.querySelector("[popover]#lesson-navigation-dropdown");if(!T)return;const N=T.querySelectorAll(`.${ys("option")}, .${ys("group-header")}`);if(N.length===0)return;const k=document.activeElement,E=Array.from(N).indexOf(k);let I=E;switch(b.key){case"ArrowDown":b.preventDefault(),I=E===-1?0:(E+1)%N.length;break;case"ArrowUp":b.preventDefault(),I=E===-1?N.length-1:(E-1+N.length)%N.length;break;case"Home":b.preventDefault(),I=0;break;case"End":b.preventDefault(),I=N.length-1;break;case"Escape":b.preventDefault(),Be.ArcPopover.handlePopover("lesson-navigation-dropdown","hide");return;case"Enter":case" ":case"Space":b.preventDefault(),E>=0&&N[E]?.click();return;default:return}N[I]?.focus(),N[I]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[o]);to.useEffect(()=>{if(o)return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[o,g]);const C=to.useCallback(b=>{c(b),Be.ArcPopover.handlePopover("lesson-navigation-dropdown","hide")},[c]),v=to.useCallback(b=>{o||(b.currentTarget.style.borderColor="var(--arc-color-border-stark)")},[o]),x=to.useCallback(b=>{b.currentTarget.style.borderColor="transparent"},[]),y={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"},S={fontSize:"1.1rem",fontWeight:"var(--arc-font-weight-600)",marginBlockStart:"var(--arc-space-0-25)"},L=e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:ys("badge"),children:e}),u]}):u;return(0,n.jsx)("nav",{children:(0,n.jsx)(Be.ArcPopover,{anchorAt:"bottom-start",anchorProps:{className:ys("anchor"),iconEnd:(0,n.jsx)("i",{className:"fa-regular fa-chevron-down",style:S}),layout:"hug",text:L,onMouseEnter:v,onMouseLeave:x,style:y,variant:"tertiary",ref:i},"aria-labelledby":"lesson-navigation-title",className:ys(),hasTail:!1,id:"lesson-navigation-dropdown",onToggle:b=>{const T=b.newState==="open";if(r(T),T)s();else{a.current=!1;return}a.current||(p(),a.current=!0)},variant:"common",children:(0,n.jsx)(PO,{disabled:!1,getLessonPath:m,handleOnSelect:C,options:d,selectedLessonId:String(l)})})})},vr=_("app-header"),OO=({children:e,className:t="",currentLessonId:s,isArcButtonGroup:o=!1,isAIAssistantEnabled:r=!1,isBlockActionsSidebarOpen:a=!1,isMicrolearning:i=!1,badge:c,localesDropdown:d=null,menuButton:l=null,sendLessonNavDropdownTrackingEvent:u=()=>{},snapshotDropdown:m=null,versionDropdown:p=null,downloadDropdown:g=null,title:C})=>{const v=vr({v2:r}).mix(t),x=!!(m||d||p||g),S=s!=null&&s!=="course-overview"&&!ke&&!i&&!a;return(0,n.jsxs)("div",{className:v,dir:"ltr",id:"app-header",children:[l,(0,n.jsxs)("div",{className:vr("title-dropdowns"),children:[C&&!S&&(0,n.jsxs)("div",{className:vr("title"),"data-testid":"AppHeaderTitle",children:[c&&(0,n.jsx)("div",{className:vr("badge"),children:c}),(0,n.jsx)("span",{className:vr("title-text"),children:(0,n.jsx)(lt,{value:C})})]}),S&&(0,n.jsx)(MO,{badge:c,currentLessonId:s,sendTrackingEvent:u}),x&&(0,n.jsxs)("div",{className:vr("dropdowns"),children:[m,d,p,g]})]}),(0,n.jsx)("div",{className:vr("btn-group",{arc:o}),"data-testid":"AppHeaderButtonGroup",children:e})]})};var BO=f(98929),xe=f.n(BO);const DO=e=>U()("button",{[e.className]:!Xe()(e.className),"button--default":e.mode===void 0,"button--extraPadding":e.extraPadding,"button--sidebar brand--ui":e.sidebar,"button--header":e.header,"button--header-done":e.headerDone,"button--outline":e.outline,"button--outline button--outline-transparent":e.outlineTransparent,"button--condensed":e.condensed,"button--inverted":e.inverted,"button--logo":e.logo,"button--inline":e.mode==="inline","button--next":e.next,"button--disabled":e.disabled,"button--controls":e.controls,"button--controls-enhanced":e.controlsEnhanced,"brand--ui":e.accent,"brand--background brand--border":e.branded}),HO=({icon:e})=>e?(0,n.jsx)("i",{className:`button__icon icon-${e}`}):null,FO=({onlyIcon:e,children:t})=>h.Children.map(t,s=>e&&s.type===void 0?null:s),t6=h.memo(({accent:e,ariaControls:t,ariaExpanded:s,ariaHidden:o,ariaLabel:r,ariaPressed:a,branded:i,className:c,children:d,condensed:l,controls:u,controlsEnhanced:m,disabled:p,el:g,extraPadding:C,header:v,headerDone:x,icon:y,inverted:S,mode:L,next:b,onClick:T=Function.prototype,onlyIcon:N,onMouseDown:k=Function.prototype,outline:E,outlineTransparent:I,sidebar:A,tabIndex:R,type:j,...O})=>{const w=g||"button";return w==="button"&&!j&&(j="button"),(0,n.jsxs)(w,{"aria-controls":t,"aria-expanded":s,"aria-hidden":o,"aria-label":r,"aria-pressed":a,className:DO({accent:e,branded:i,className:c,condensed:l,controls:u,controlsEnhanced:m,disabled:p,extraPadding:C,header:v,headerDone:x,inverted:S,mode:L,next:b,outline:E,outlineTransparent:I,sidebar:A}),disabled:p,onClick:T,onMouseDown:k,tabIndex:R,type:j,...O,children:[(0,n.jsx)(HO,{icon:y}),FO({onlyIcon:N,children:d})]})});t6.displayName="Button";const VO=t6;function zt(e){return(0,n.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e})}var s6,zO;const V0e=e=>s6(zO,{...e,viewBox:"0 0 8 8",children:s6("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 "})}),z0e=null;var _1,$O,_O;const $0e=e=>_1(_O,{viewBox:"0 0 10 10",...e,children:$O("g",{fillRule:"evenodd",children:[_1("path",{d:"M0 4.107h10v2H0z"}),_1("path",{d:"M4 0h2v10H4z"})]})}),_0e=null;var U1,UO;const U0e=({width:e="18",height:t="18",className:s})=>U1("svg",{"aria-hidden":"true",className:UO("i i-alert",s),focusable:"false",height:t,viewBox:"0 0 18 18",width:e,children:U1("g",{fill:"none",fillRule:"evenodd",stroke:"#DE1D1D",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:U1("path",{d:"M9 1a8 8 0 1 1 0 16A8 8 0 0 1 9 1zM9 5.364V9.53M9 11.91v.726"})})}),G0e=null;function GO(e){return(0,n.jsxs)(zt,{viewBox:"0 0 16 12",...e,children:[(0,n.jsx)("path",{d:"M8.4148147,12 L1.05185184,12 C0.471229623,12 0,11.552 0,11 C0,10.448 0.471229623,10 1.05185184,10 L8.4148147,10 C8.99543692,10 9.46666654,10.448 9.46666654,11 C9.46666654,11.552 8.99543692,12 8.4148147,12"}),(0,n.jsx)("path",{d:"M12.2500002,2 L0.816666683,2 C0.365866674,2 0,1.552 0,1 C0,0.448 0.365866674,0 0.816666683,0 L12.2500002,0 C12.7008002,0 13.0666669,0.448 13.0666669,1 C13.0666669,1.552 12.7008002,2 12.2500002,2"}),(0,n.jsx)("path",{d:"M15,7 L1,7 C0.448,7 0,6.552 0,6 C0,5.448 0.448,5 1,5 L15,5 C15.552,5 16,5.448 16,6 C16,6.552 15.552,7 15,7"})]})}var WO,Rl;const W0e=({width:e="20",height:t="20"})=>WO("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:t,viewBox:"0 0 20 20",width:e,xmlns:"http://www.w3.org/2000/svg",children:[Rl("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"}),Rl("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"}),Rl("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"}),Rl("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.6665 15.4602 1.6665 15Z",fill:"currentColor",fillRule:"evenodd"})]}),K0e=null;var n6,KO;const Q0e=({width:e="15",height:t="15",className:s})=>n6("svg",{"aria-hidden":"true",className:KO("i i-all-blocks",s),focusable:"false",height:t,viewBox:"0 0 15 15",width:e,children:n6("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"})}),Z0e=null;var o6,QO;const Y0e=e=>o6(QO,{...e,viewBox:"0 0 15 15",children:o6("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"})}),X0e=null;var ZO,r6,YO;const J0e=({width:e="24",height:t="16",leftMovement:s="0",className:o})=>ZO("svg",{"aria-hidden":"true",className:YO("i i-alt",o),focusable:"false",height:t,style:{marginLeft:s},viewBox:"0 0 24 16",width:e,children:[r6("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"}),r6("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"})]}),q0e=null;var XO,a6;const e1e=({className:e,width:t="20",height:s="20",focusable:o="false"})=>XO("svg",{className:e,fill:"none",focusable:o,height:s,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[a6("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"}),a6("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"})]}),t1e=null;var JO,G1,qO;const s1e=({title:e="Export",desc:t="An arrow bending itself to the right",width:s="16",height:o="13",className:r,focusable:a="false"})=>JO("svg",{className:qO("i",r),focusable:a,height:o,viewBox:"0 0 16 13",width:s,children:[G1("title",{children:e}),G1("desc",{children:t}),G1("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"})]}),n1e=null;var i6,eB;function o1e(e){return i6(eB,{viewBox:"0 0 384 512",...e,children:i6("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 tB,c6,sB;function r1e(e){return tB(sB,{viewBox:"0 0 22 22",...e,children:[c6("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"}),c6("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 nB,W1,oB;const a1e=({title:e="Export",desc:t="An arrow pointing right",width:s="16",height:o="8",className:r,focusable:a="false",decorative:i})=>nB("svg",{"aria-hidden":i?"true":"false",className:oB("i",r),focusable:a,height:o,viewBox:"0 0 16 8",width:s,children:[W1("title",{children:e}),W1("desc",{children:t}),W1("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"})]}),i1e=null;var l6,rB;function c1e(e){return l6(rB,{viewBox:"0 0 384 512",...e,children:l6("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 aB,d6,iB;function l1e(e){return aB(iB,{viewBox:"0 0 22 22",...e,children:[d6("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"}),d6("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 u6,cB;const d1e=e=>u6(cB,{viewBox:"0 0 10 12",...e,children:u6("path",{d:"M7.09677 6.92617C8.14516 6.28188 8.79032 5.07383 8.79032 3.78523C8.79032 1.69128 7.09677 0 5 0C2.90323 0 1.20968 1.69128 1.20968 3.78523C1.20968 5.07383 1.85484 6.20134 2.90323 6.92617C1.20968 7.73154 0 9.42282 0 11.4362C0 11.7584 0.241936 12 0.564516 12C0.887097 12 1.12903 11.7584 1.12903 11.4362C1.12903 9.34228 2.90323 7.57047 5 7.57047C7.09677 7.57047 8.87097 9.34228 8.87097 11.4362C8.87097 11.7584 9.1129 12 9.43548 12C9.75806 12 10 11.7584 10 11.4362C9.91935 9.42282 8.79032 7.73154 7.09677 6.92617ZM5 1.12752C6.45161 1.12752 7.66129 2.33557 7.66129 3.78523C7.66129 5.2349 6.45161 6.44295 5 6.44295C3.54839 6.44295 2.33871 5.2349 2.33871 3.78523C2.33871 2.33557 3.46774 1.12752 5 1.12752Z"})}),u1e=null;var h6,Fi,lB;const h1e=({title:e="Background Image",desc:t="Background Image",width:s="18",height:o="18",className:r,focusable:a="false"})=>h6("svg",{className:lB("i i-background-image",r),focusable:a,height:o,viewBox:"0 0 18 18",width:s,children:[Fi("title",{children:e}),Fi("desc",{children:t}),h6("g",{children:[" ",Fi("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"})," ",Fi("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"})," ",Fi("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"})," "]})]}),m1e=null;var dB,K1,uB;const p1e=({title:e="Bank",desc:t="A building with four columns",width:s="16",height:o="16",className:r,focusable:a="false"})=>dB("svg",{className:uB("i i-bank",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[K1("title",{children:e}),K1("desc",{children:t}),K1("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"})]}),f1e=null;var hB,m6,mB;function g1e(e){return hB(mB,{fill:"none",viewBox:"0 0 14 14",...e,children:[m6("rect",{height:"8.3",stroke:"currentColor",strokeWidth:"1.5",width:"8.3",x:"0.75",y:"0.75"}),m6("rect",{height:"8.3",rx:"1.35",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",width:"8.3",x:"4.9502",y:"4.9502"})]})}var pB,Vi,fB;function v1e(e){return pB(fB,{viewBox:"0 0 14 15",...e,children:[Vi("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"}),Vi("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"}),Vi("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"}),Vi("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"}),Vi("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 gB,Pl,vB;const C1e=({title:e="All Authors",desc:t="A circle with the outline of the head and shoulders of two people inside",width:s="30",height:o="30",className:r,focusable:a="false"})=>gB("svg",{className:vB("i i-blockTemplateAllAuthors",r),focusable:a,height:o,viewBox:"0 0 30 30",width:s,children:[Pl("title",{children:e}),Pl("desc",{children:t}),Pl("circle",{cx:"14.963",cy:"14.963",fill:"#E9E9E9",r:"14.963"}),Pl("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"})]}),x1e=null;var Ml,ln,CB;const b1e=({title:e="Check Mark",desc:t="A circle with a check mark inside",width:s="112",height:o="112",className:r,focusable:a="false"})=>Ml("svg",{className:CB("i i-blockTemplateCheckMark",r),focusable:a,height:o,viewBox:"0 0 112 112",width:s,children:[ln("title",{children:e}),ln("desc",{children:t}),ln("defs",{children:Ml("filter",{filterUnits:"objectBoundingBox",height:"186.1%",id:"a",width:"186.1%",x:"-43.1%",y:"-40.3%",children:[ln("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),ln("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"10"}),ln("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"}),Ml("feMerge",{children:[ln("feMergeNode",{in:"shadowMatrixOuter1"}),ln("feMergeNode",{in:"SourceGraphic"})]})]})}),Ml("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(20 18)",children:[ln("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"}),ln("circle",{className:"inner",cx:"36",cy:"36",r:"30"}),ln("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"})]})]}),y1e=null;var p6,Ol,xB;const L1e=({title:e="Folder Outline",desc:t="Outline of a folder",width:s="42",height:o="42",className:r,focusable:a="false"})=>p6("svg",{className:xB("i i-blockTemplateFolder",r),focusable:a,height:o,viewBox:"0 0 42 42",width:s,children:[Ol("title",{children:e}),Ol("desc",{children:t}),p6("g",{fill:"#ADAEAF",fillRule:"nonzero",stroke:"#ADAEAF",strokeWidth:".3",children:[Ol("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"}),Ol("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"})]})]}),S1e=null,bB=({width:e="17",height:t="15",title:s="Book",desc:o="Book",focusable:r="false",className:a})=>(0,n.jsxs)("svg",{className:a,focusable:r,height:t,viewBox:"0 0 17 15",width:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:s}),(0,n.jsx)("desc",{children:o}),(0,n.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 yB,Q1,LB;const N1e=({title:e="Building",desc:t="Building with windows",width:s="18",height:o="18",className:r,focusable:a="false"})=>yB("svg",{className:LB("icon",r),focusable:a,height:o,viewBox:"0 0 18 18",width:s,children:[Q1("title",{children:e}),Q1("desc",{children:t}),Q1("path",{d:"M10.6666 5.66797H11.5C11.721 5.66797 11.9329 5.58017 12.0892 5.42389C12.2455 5.26761 12.3333 5.05565 12.3333 4.83464C12.3333 4.61362 12.2455 4.40166 12.0892 4.24538C11.9329 4.0891 11.721 4.0013 11.5 4.0013H10.6666C10.4456 4.0013 10.2337 4.0891 10.0774 4.24538C9.92109 4.40166 9.83329 4.61362 9.83329 4.83464C9.83329 5.05565 9.92109 5.26761 10.0774 5.42389C10.2337 5.58017 10.4456 5.66797 10.6666 5.66797ZM10.6666 9.0013H11.5C11.721 9.0013 11.9329 8.9135 12.0892 8.75723C12.2455 8.60094 12.3333 8.38898 12.3333 8.16797C12.3333 7.94696 12.2455 7.73499 12.0892 7.57871C11.9329 7.42243 11.721 7.33464 11.5 7.33464H10.6666C10.4456 7.33464 10.2337 7.42243 10.0774 7.57871C9.92109 7.73499 9.83329 7.94696 9.83329 8.16797C9.83329 8.38898 9.92109 8.60094 10.0774 8.75723C10.2337 8.9135 10.4456 9.0013 10.6666 9.0013ZM6.49996 5.66797H7.33329C7.55431 5.66797 7.76627 5.58017 7.92255 5.42389C8.07883 5.26761 8.16663 5.05565 8.16663 4.83464C8.16663 4.61362 8.07883 4.40166 7.92255 4.24538C7.76627 4.0891 7.55431 4.0013 7.33329 4.0013H6.49996C6.27895 4.0013 6.06698 4.0891 5.9107 4.24538C5.75442 4.40166 5.66663 4.61362 5.66663 4.83464C5.66663 5.05565 5.75442 5.26761 5.9107 5.42389C6.06698 5.58017 6.27895 5.66797 6.49996 5.66797ZM6.49996 9.0013H7.33329C7.55431 9.0013 7.76627 8.9135 7.92255 8.75723C8.07883 8.60094 8.16663 8.38898 8.16663 8.16797C8.16663 7.94696 8.07883 7.73499 7.92255 7.57871C7.76627 7.42243 7.55431 7.33464 7.33329 7.33464H6.49996C6.27895 7.33464 6.06698 7.42243 5.9107 7.57871C5.75442 7.73499 5.66663 7.94696 5.66663 8.16797C5.66663 8.38898 5.75442 8.60094 5.9107 8.75723C6.06698 8.9135 6.27895 9.0013 6.49996 9.0013ZM16.5 15.668H15.6666V1.5013C15.6666 1.28029 15.5788 1.06833 15.4225 0.912046C15.2663 0.755766 15.0543 0.667969 14.8333 0.667969H3.16663C2.94561 0.667969 2.73365 0.755766 2.57737 0.912046C2.42109 1.06833 2.33329 1.28029 2.33329 1.5013V15.668H1.49996C1.27895 15.668 1.06698 15.7558 0.910704 15.912C0.754423 16.0683 0.666626 16.2803 0.666626 16.5013C0.666626 16.7223 0.754423 16.9343 0.910704 17.0906C1.06698 17.2468 1.27895 17.3346 1.49996 17.3346H16.5C16.721 17.3346 16.9329 17.2468 17.0892 17.0906C17.2455 16.9343 17.3333 16.7223 17.3333 16.5013C17.3333 16.2803 17.2455 16.0683 17.0892 15.912C16.9329 15.7558 16.721 15.668 16.5 15.668ZM9.83329 15.668H8.16663V12.3346H9.83329V15.668ZM14 15.668H11.5V11.5013C11.5 11.2803 11.4122 11.0683 11.2559 10.912C11.0996 10.7558 10.8876 10.668 10.6666 10.668H7.33329C7.11228 10.668 6.90032 10.7558 6.74404 10.912C6.58776 11.0683 6.49996 11.2803 6.49996 11.5013V15.668H3.99996V2.33464H14V15.668Z"})]}),k1e=null;var Z1,zi,SB;const I1e=({title:e="Captions",desc:t="Two capital letter C inside a square",width:s="24",height:o="16",className:r,focusable:a="false"})=>Z1("svg",{className:SB("i i-captions",r),focusable:a,height:o,viewBox:"0 0 24 16",width:s,children:[zi("title",{children:e}),zi("desc",{children:t}),Z1("g",{fill:"none",fillRule:"evenodd",transform:"translate(-.355)",children:[zi("rect",{height:"13.25",rx:"1",stroke:"#000",strokeWidth:"1.75",width:"18.25",x:"1.447",y:"1.402"}),Z1("text",{fill:"#000",fontFamily:"Lato-Black, Lato",fontSize:"9",fontWeight:"700",letterSpacing:".75",children:[zi("tspan",{x:"4.222",y:"11.5",children:"C"})," ",zi("tspan",{x:"10.885",y:"11.5",children:"C"})]})]})]}),E1e=null;var TB,Y1;const j1e=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>TB("svg",{"aria-hidden":e,"aria-label":t,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Y1("title",{children:i}),o&&Y1("desc",{children:o}),Y1("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"})]}),w1e=null;var NB,X1,kB;const A1e=({title:e="Character",desc:t="Character",width:s="13",height:o="16",className:r,focusable:a="false"})=>NB("svg",{className:kB("i i-character",r),focusable:a,height:o,viewBox:"0 0 13 16",width:s,children:[X1("title",{children:e}),X1("desc",{children:t}),X1("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"})]}),R1e=null;function f6(e){return(0,n.jsx)(zt,{viewBox:"0 0 11 8",...e,children:(0,n.jsx)("path",{d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"})})}var IB,J1,EB;const P1e=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="21",role:a="img",title:i,width:c="21"})=>IB("svg",{"aria-hidden":e,"aria-label":t,className:EB("i i-checkMarkFilled",s),focusable:"false",height:r,role:a,viewBox:"0 0 21 21",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&J1("title",{children:i}),o&&J1("desc",{children:o}),J1("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"})]}),M1e=null;var g6,jB;function O1e(e){return g6(jB,{viewBox:"0 0 7 5",...e,children:g6("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 v6,wB;const B1e=({width:e="16",height:t="16",className:s,focusable:o="false"})=>v6("svg",{"aria-hidden":"true",className:wB("i i-chevronLeft",s),focusable:o,height:t,viewBox:"0 0 16 16",width:e,children:v6("polygon",{points:"11.1,15.7 3.4,8 11.1,0.3 12.6,1.7 6.3,8 12.6,14.3 "})}),D1e=null;var C6,AB;const H1e=e=>C6(AB,{viewBox:"0 0 6 10",...e,children:C6("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"})}),F1e=null,RB=({className:e,dataTestId:t})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:e,"data-testid":t,fill:"currentColor",focusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("circle",{cx:"5",cy:"5",r:"5"})});var x6,Bl,PB;const z1e=({title:e="Clock",desc:t="Image of a clock with two hands",width:s="14",height:o="13",className:r,focusable:a="false"})=>x6("svg",{className:PB("i",r),focusable:a,height:o,viewBox:"0 0 14 13",width:s,children:[Bl("title",{children:e}),Bl("desc",{children:t}),x6("g",{children:[Bl("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"}),Bl("path",{d:"M7.81299 3.25H6.18799V7.313H10.25V5.688H7.81199L7.81299 3.25Z"})]})]}),$1e=null,MB=({className:e})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"currentColor",foocusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M9.78572 9.78572C9.5 10.0714 9.07143 10.0714 8.78571 9.78572L5 6.00001L1.21429 9.78572C0.928571 10.0714 0.500001 10.0714 0.214285 9.78572C-0.0714284 9.49999 -0.0714284 9.07144 0.214285 8.78571L4 5L0.214285 1.21429C-0.0714284 0.928564 -0.0714284 0.500007 0.214285 0.214279C0.357143 0.0714143 0.500001 0 0.714286 0C0.928571 0 1.07143 0.0714143 1.21429 0.214279L5 3.99999L8.78571 0.214279C8.92857 0.0714143 9.14286 0 9.28572 0C9.42857 0 9.64286 0.0714143 9.78572 0.214279C10.0714 0.500007 10.0714 0.928564 9.78572 1.21429L6 5L9.78572 8.78571C10.0714 9.07144 10.0714 9.49999 9.78572 9.78572Z"})});var OB,b6,BB;function U1e(e){return OB(BB,{viewBox:"0 0 16 16",...e,children:[b6("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"}),b6("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 DB,Vs;const G1e=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="18",role:a="img",title:i,width:c="18"})=>DB("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 18 18",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Vs("title",{children:i}),o&&Vs("desc",{children:o}),Vs("path",{d:"M9 9V1a8 8 0 015.657 2.343L9 9z",fill:"red",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9l5.657-5.656A8 8 0 0117 9H9z",fill:"#F90",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9h8a8 8 0 01-2.343 5.657L9 9z",fill:"#FFF500",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9l5.657 5.657A8 8 0 019 17V9z",fill:"#ADFF00",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9v8a8 8 0 01-5.657-2.343L9 9z",fill:"#00FF94",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9l-5.657 5.657A8 8 0 011 9h8z",fill:"#06F",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9H1a8 8 0 012.343-5.656L9 9z",fill:"#8000FF",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9L3.343 3.343A8 8 0 019 1v8z",fill:"#EB00FF",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 6a3 3 0 110 6 3 3 0 010-6z",fill:"#fff"}),Vs("path",{d:"M9 17A8 8 0 109 1a8 8 0 000 16z",stroke:"#EAEAEB"})]}),W1e=null;var HB,q1,FB;const K1e=({title:e="Continue Block",desc:t="Continue Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>HB("svg",{className:FB("i i-continue-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:s,children:[q1("title",{children:e}),q1("desc",{children:t}),q1("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"})]}),Q1e=null;var VB,eh,zB;const Z1e=({title:e="Convert",desc:t="Convert to block",width:s="14",height:o="12",className:r,focusable:a="false"})=>VB("svg",{className:zB("i i-convert",r),focusable:a,height:o,viewBox:"0 0 14 12",width:s,children:[eh("title",{children:e}),eh("desc",{children:t}),eh("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.143c0-.473.392-.857.875-.857H7c.483 0 .875.384.875.857A.867.867 0 0 1 7 12z",fillRule:"evenodd"})]}),Y1e=null;var $B,y6,_B;function X1e(e){return $B(_B,{...e,viewBox:"0 0 16 16",children:[y6("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"}),y6("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 UB,th,GB;const J1e=({title:e="Copy",desc:t="A document stacked on top of another one",width:s="15",height:o="18",className:r=null,focusable:a="false"})=>UB("svg",{className:GB("i i-stack",r),focusable:a,height:o,viewBox:"0 0 15 18",width:s,children:[th("title",{children:e}),th("desc",{children:t}),th("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"})]}),q1e=null;var WB,sh,KB;const ehe=({title:e="Copy lesson",desc:t="Copy lesson",width:s="15",height:o="15",className:r,focusable:a="false"})=>WB("svg",{className:KB("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[sh("title",{children:e}),sh("desc",{children:t}),sh("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"})]}),the=null;var QB,Dl;const she=({title:e="Corner up-right",desc:t="An arrow moving up & to the right",width:s="16",height:o="16",className:r,focusable:a="false"})=>QB("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:s,xmlns:"http://www.w3.org/2000/svg",children:[Dl("title",{children:e}),Dl("desc",{children:t}),Dl("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"}),Dl("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"})]}),nhe=null;var ZB,nh,YB;const ohe=e=>{const{className:t,desc:s="Crop",focusable:o="false",height:r="19",title:a="Crop",width:i="19"}=e,c={className:YB("i i-crop",t),focusable:o,height:r,viewBox:`0 0 ${i} ${r}`,width:i};return ZB("svg",{...c,children:[nh("title",{children:a}),nh("desc",{children:s}),nh("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"})]})},rhe=null;var XB,oh,JB;const ahe=({"aria-hidden":e,"aria-label":t="Dash mark",className:s,desc:o,height:r="3",role:a="img",title:i,width:c="7"})=>XB("svg",{"aria-hidden":e,"aria-label":t,className:JB("i i-dashMark",s),focusable:"false",height:r,role:a,viewBox:"0 0 7 3",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&oh("title",{children:i}),o&&oh("desc",{children:o}),oh("rect",{height:"3",width:"7"})]}),ihe=null;var qB,L6;const che=({width:e="20",height:t="20",focusable:s="false"})=>qB("svg",{fill:"none",focusable:s,height:t,viewBox:"0 0 20 20",width:e,xmlns:"http://www.w3.org/2000/svg",children:[L6("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"}),L6("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"})]}),lhe=null,eD=({title:e="DestinationArrow",desc:t="DestinationArrow",width:s="13",height:o="10",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:U()("i i-destinationArrow",r),focusable:a,height:o,viewBox:"0 0 13 10",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("path",{d:"M0 5c0 .345.264.625.59.625h10.393L7.855 8.933a.65.65 0 0 0 0 .884.573.573 0 0 0 .418.183.573.573 0 0 0 .418-.183l4.136-4.374a.66.66 0 0 0 0-.885L8.691.183a.568.568 0 0 0-.836 0 .65.65 0 0 0 0 .884l3.128 3.308H.591C.264 4.375 0 4.655 0 5"})]});var tD,rh,sD;const uhe=({title:e="Dialogue Slide",desc:t="Dialogue Slide",width:s="16",height:o="16",className:r,focusable:a="false"})=>tD("svg",{className:sD("i i-dialogue-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[rh("title",{children:e}),rh("desc",{children:t}),rh("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"})]}),hhe=null;var nD,$i;const mhe=({title:e="Disk",desc:t="An old floppy disk",width:s="16",height:o="16",className:r,focusable:a="false"})=>nD("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:s,xmlns:"http://www.w3.org/2000/svg",children:[$i("title",{children:e}),$i("desc",{children:t}),$i("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"}),$i("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"}),$i("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"})]}),phe=null;var oD,fhe;class ghe extends null{render(){return oD("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 vhe=null;var S6,rD;const Che=({width:e=20,height:t=20,...s})=>S6(rD,{height:t,width:e,...s,viewBox:"0 0 20 20",children:S6("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"})}),xhe=null;var aD,ah,iD;const bhe=({title:e="Vertical Dots",desc:t="Vertical Dots",width:s="4",height:o="24",className:r=null,focusable:a="false"})=>aD("svg",{className:iD("i i-dotsVertical",r),focusable:a,height:o,viewBox:"0 0 4 24",width:s,children:[ah("title",{children:e}),ah("desc",{children:t}),ah("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"})]}),yhe=null,cD=({title:e="Download",desc:t="Arrow down with horizontal line beneath it",width:s="16",height:o="19",className:r,focusable:a="false"},i)=>(0,n.jsxs)("svg",{className:U()("i i-download",r),focusable:a,height:o,ref:i,viewBox:"0 0 16 19",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("rect",{height:"2",rx:"1",width:"16",y:"17"}),(0,n.jsx)("path",{d:"M4.464 8.293A1 1 0 1 0 3.05 9.707l4.24 4.24c.4.4 1.028.392 1.42 0l4.24-4.24a1 1 0 1 0-1.414-1.414L8 4.757 4.464 8.293zm0 0L8 4.757l3.536 3.536L8 11.828 4.464 8.293z"}),(0,n.jsx)("path",{d:"M7 0h2v12H7z"})]}),lD=(0,h.forwardRef)(cD);var dD,_i,uD;const Lhe=({title:e="Download Circle",desc:t="Arrow down with horizontal line beneath it wrapped up in a circle",width:s="51",height:o="51",className:r,focusable:a="false"})=>dD("svg",{className:uD("i i-downloadCircle",r),focusable:a,height:o,viewBox:"0 0 51 51",width:s,children:[_i("title",{children:e}),_i("desc",{children:t}),_i("g",{fill:"none",stroke:"none",children:_i("g",{fill:"#000",transform:"translate(-695, -227)",children:_i("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"})})})]}),She=null;var hD,T6,mD;function The(e){return hD(mD,{viewBox:"0 0 13 13",...e,children:[T6("path",{d:"M7.08297 7.92452V1.49952C7.08297 1.34476 7.02149 1.19635 6.91207 1.08692C6.80264 0.977491 6.65422 0.916016 6.49947 0.916016C6.34472 0.916016 6.1963 0.977491 6.08687 1.08692C5.97745 1.19635 5.91597 1.34476 5.91597 1.49952V7.92452L4.57997 6.58652C4.47057 6.47711 4.32219 6.41565 4.16747 6.41565C4.01275 6.41565 3.86437 6.47711 3.75497 6.58652C3.64557 6.69592 3.58411 6.8443 3.58411 6.99902C3.58411 7.15373 3.64557 7.30211 3.75497 7.41152L6.08797 9.74552C6.19771 9.85428 6.34596 9.91529 6.50047 9.91529C6.65497 9.91529 6.80323 9.85428 6.91297 9.74552L9.24597 7.41152C9.34926 7.30115 9.40564 7.15499 9.40323 7.00385C9.40082 6.85271 9.3398 6.70842 9.23304 6.60141C9.12629 6.49439 8.98215 6.43303 8.83102 6.43025C8.67989 6.42747 8.53358 6.4835 8.42297 6.58652L7.08197 7.92452H7.08297Z"}),T6("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 pD,Hl,fD;const Nhe=({title:e="Draw",desc:t="Arrow down with horizontal line beneath it",width:s="15",height:o="15",className:r,focusable:a="false"})=>pD("svg",{className:fD("i i-drawFromQuestionBank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[Hl("title",{children:e}),Hl("desc",{children:t}),Hl("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"}),Hl("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"})]}),khe=null;var gD,ih,vD;const Ihe=e=>gD(vD,{height:"16",viewBox:"0 0 16 4",width:"4",...e,children:[ih("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"}),ih("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"}),ih("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"})]}),Ehe=null;var CD,Ui,xD;const jhe=({title:e="More",desc:t="Three dots next to one another",width:s="16",height:o="4",className:r=null,focusable:a="false"})=>CD("svg",{className:xD("i",r),focusable:a,height:o,viewBox:"0 0 16 4",width:s,children:[Ui("title",{children:e}),Ui("desc",{children:t}),Ui("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"}),Ui("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"}),Ui("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"})]}),whe=null;var N6,Gi,bD;const Ahe=({title:e="Draggable",desc:t="Three dots stacked on top of one another",width:s="4",height:o="14",className:r,focusable:a="false"})=>N6("svg",{className:bD("i i-ellipsis--vert",r),focusable:a,height:o,viewBox:"0 0 4 14",width:s,children:[Gi("title",{children:e}),Gi("desc",{children:t}),N6("g",{transform:"translate(.158 .445)",children:[Gi("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),Gi("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),Gi("circle",{cx:"1.5",cy:"1.5",r:"1.5"})]})]}),Rhe=null;var yD,ch,LD;const Phe=({title:e="Embed",desc:t="Embed icon",width:s="16",height:o="15",className:r,focusable:a="false"})=>yD("svg",{className:LD("i i-embed",r),focusable:a,height:o,viewBox:"0 0 16 15",width:s,children:[ch("title",{children:e}),ch("desc",{children:t}),ch("path",{d:"M13.2 11.263l-1.4-1.4 2.3-2.3-2.3-2.3 1.4-1.4 3 3c.4.4.4 1 0 1.4l-3 3M3.8 11.263l-3-3c-.4-.4-.4-1 0-1.4l3-3 1.4 1.4-2.3 2.3 2.3 2.3-1.4 1.4M6.5 14.563c-.1 0-.2 0-.3-.1-.5-.2-.8-.7-.6-1.3l4-12c.2-.5.7-.8 1.3-.6.5.2.8.7.6 1.3l-4 12c-.2.4-.6.7-1 .7"})]}),Mhe=null;var SD,Fl,TD;const Ohe=({title:e="Empty folder",desc:t="Empty folder",width:s="46",height:o="46",className:r,focusable:a="false"})=>SD("svg",{className:TD("i i-emptyFolder",r),focusable:a,height:o,viewBox:"0 0 46 46",width:s,children:[Fl("title",{children:e}),Fl("desc",{children:t}),Fl("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"}),Fl("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"})]}),Bhe=null;var ND,Vl,kD;const Dhe=({title:e="End Slide",desc:t="End Slide",width:s="16",height:o="14",className:r,focusable:a="false"})=>ND("svg",{className:kD("i i-end-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:s,children:[Vl("title",{children:e}),Vl("desc",{children:t}),Vl("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"}),Vl("rect",{fillRule:"evenodd",height:"14",width:"2",x:"14"})]}),Hhe=null;var k6,zl,ID;const Fhe=({title:e="Envelope",desc:t="Envelope",width:s="17",height:o="14",className:r,focusable:a="false"})=>k6("svg",{className:ID("i i-envelope",r),focusable:a,height:o,viewBox:"0 0 17 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[zl("title",{children:e}),zl("desc",{children:t}),k6("g",{fillRule:"nonzero",children:[zl("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"}),zl("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"})]})]}),Vhe=null;var ED,$l,jD;const zhe=({title:e="Error",desc:t="An x with a circle",width:s="50",height:o="50",className:r,focusable:a="false"})=>ED("svg",{className:jD("i i-error",r),focusable:a,height:o,viewBox:"0 0 50 50",width:s,children:[$l("title",{children:e}),$l("desc",{children:t}),$l("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"}),$l("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"})]}),$he=null;var wD,_l,AD;const _he=({title:e="Error Alert",desc:t="A red circle with a white exclamation point in the middle",width:s="18",height:o="18",className:r,focusable:a="false"})=>wD("svg",{className:AD("i i-errorAlert",r),focusable:a,height:o,viewBox:"0 0 18 18",width:s,children:[_l("title",{children:e}),_l("desc",{children:t}),_l("circle",{cx:"9",cy:"9",r:"9"}),_l("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"})]}),Uhe=null,I6=({"aria-hidden":e,"aria-label":t="X mark",className:s,dataTestId:o="x-mark",desc:r,height:a="10",overrideStyle:i=!1,role:c="img",title:d,width:l="10"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:U()(s,{"i i-exMark":!i}),"data-testid":o,focusable:"false",height:a,role:c,viewBox:"0 0 10 10",width:l,xmlns:"http://www.w3.org/2000/svg",children:[d&&(0,n.jsx)("title",{children:d}),r&&(0,n.jsx)("desc",{children:r}),(0,n.jsx)("path",{d:"M5,4.17,9.17,0,10,.83,5.83,5,10,9.17,9.17,10,5,5.83.83,10,0,9.17,4.17,5,0,.83.83,0Z"})]});var RD,Ul,PD;const Whe=({title:e="Export",desc:t="Export",width:s="12",height:o="15",className:r,focusable:a="false"})=>RD("svg",{className:PD("i i-export",r),focusable:a,height:o,viewBox:"0 0 12 15",width:s,children:[Ul("title",{children:e}),Ul("desc",{children:t}),Ul("polygon",{points:"7,6.4 7,1 5,1 5,6.4 2.3,6.4 6,10.8 9.7,6.4"}),Ul("rect",{height:"2",width:"10",x:"1",y:"12"})]}),Khe=null,E6=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#DFE1E2",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#C7CACC",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M13.534 22.9863V24.4163H10.245V26.4458H12.984V27.8813H10.245V30.9998H8.375V22.9863H13.534Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M17.533 30.9998H15.663V22.9863H17.533V30.9998Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M21.8805 29.5148H24.8505V30.9998H20.0215V22.9863H21.8805V29.5148Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M31.8846 22.9863V24.4163H28.5956V26.2863H31.1146V27.6613H28.5956V29.5698H31.8846V30.9998H26.7256V22.9863H31.8846Z",fill:"#414448"})]}),MD=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#C3CEED",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#96A9E0",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M14.8355 26.9904C14.8355 27.5698 14.7346 28.1051 14.533 28.5964C14.335 29.0841 14.0545 29.5076 13.6915 29.8669C13.3285 30.2226 12.8903 30.5013 12.377 30.7029C11.8673 30.9009 11.3008 30.9999 10.6775 30.9999H7.56445V22.9864H10.6775C11.3008 22.9864 11.8673 23.0873 12.377 23.2889C12.8903 23.4906 13.3285 23.7693 13.6915 24.1249C14.0545 24.4806 14.335 24.9041 14.533 25.3954C14.7346 25.8831 14.8355 26.4148 14.8355 26.9904ZM12.9325 26.9904C12.9325 26.5944 12.8811 26.2369 12.7785 25.9179C12.6758 25.5989 12.5273 25.3294 12.333 25.1094C12.1423 24.8858 11.9076 24.7153 11.629 24.5979C11.3503 24.4769 11.0331 24.4164 10.6775 24.4164H9.43445V29.5699H10.6775C11.0331 29.5699 11.3503 29.5113 11.629 29.3939C11.9076 29.2729 12.1423 29.1024 12.333 28.8824C12.5273 28.6588 12.6758 28.3874 12.7785 28.0684C12.8811 27.7494 12.9325 27.3901 12.9325 26.9904Z",fill:"#0C3092"}),(0,n.jsx)("path",{d:"M24.6375 26.9904C24.6375 27.5698 24.5367 28.1088 24.335 28.6074C24.137 29.1061 23.8565 29.5406 23.4935 29.9109C23.1305 30.2776 22.6923 30.5654 22.179 30.7744C21.6693 30.9834 21.1028 31.0879 20.4795 31.0879C19.8562 31.0879 19.2878 30.9834 18.7745 30.7744C18.2612 30.5654 17.8212 30.2776 17.4545 29.9109C17.0915 29.5406 16.8092 29.1061 16.6075 28.6074C16.4095 28.1088 16.3105 27.5698 16.3105 26.9904C16.3105 26.4111 16.4095 25.8721 16.6075 25.3734C16.8092 24.8748 17.0915 24.4421 17.4545 24.0754C17.8212 23.7088 18.2612 23.4209 18.7745 23.2119C19.2878 23.0029 19.8562 22.8984 20.4795 22.8984C21.1028 22.8984 21.6693 23.0048 22.179 23.2174C22.6923 23.4264 23.1305 23.7143 23.4935 24.0809C23.8565 24.4476 24.137 24.8803 24.335 25.3789C24.5367 25.8776 24.6375 26.4148 24.6375 26.9904ZM22.7345 26.9904C22.7345 26.5944 22.6832 26.2388 22.5805 25.9234C22.4779 25.6044 22.3293 25.3349 22.135 25.1149C21.9443 24.8949 21.7097 24.7263 21.431 24.6089C21.1523 24.4916 20.8352 24.4329 20.4795 24.4329C20.1202 24.4329 19.7993 24.4916 19.517 24.6089C19.2383 24.7263 19.0018 24.8949 18.8075 25.1149C18.6168 25.3349 18.4702 25.6044 18.3675 25.9234C18.2648 26.2388 18.2135 26.5944 18.2135 26.9904C18.2135 27.3901 18.2648 27.7494 18.3675 28.0684C18.4702 28.3838 18.6168 28.6514 18.8075 28.8714C19.0018 29.0914 19.2383 29.2601 19.517 29.3774C19.7993 29.4911 20.1202 29.5479 20.4795 29.5479C20.8352 29.5479 21.1523 29.4911 21.431 29.3774C21.7097 29.2601 21.9443 29.0914 22.135 28.8714C22.3293 28.6514 22.4779 28.3838 22.5805 28.0684C22.6832 27.7494 22.7345 27.3901 22.7345 26.9904Z",fill:"#0C3092"}),(0,n.jsx)("path",{d:"M31.9109 28.9264C31.9549 28.9264 31.9989 28.9356 32.0429 28.9539C32.0869 28.9686 32.129 28.9961 32.1694 29.0364L32.9064 29.8119C32.5837 30.2336 32.1785 30.5526 31.6909 30.7689C31.2069 30.9816 30.633 31.0879 29.9694 31.0879C29.3607 31.0879 28.8144 30.9853 28.3304 30.7799C27.85 30.5709 27.4412 30.2849 27.1039 29.9219C26.7702 29.5553 26.5135 29.1226 26.3339 28.6239C26.1542 28.1216 26.0644 27.5771 26.0644 26.9904C26.0644 26.3928 26.167 25.8446 26.3724 25.3459C26.5777 24.8436 26.8637 24.4109 27.2304 24.0479C27.6007 23.6849 28.0425 23.4026 28.5559 23.2009C29.0692 22.9993 29.6357 22.8984 30.2554 22.8984C30.556 22.8984 30.8384 22.9259 31.1024 22.9809C31.37 23.0323 31.6194 23.1056 31.8504 23.2009C32.0814 23.2926 32.294 23.4044 32.4884 23.5364C32.6827 23.6648 32.855 23.8078 33.0054 23.9654L32.3784 24.8069C32.338 24.8583 32.2904 24.9059 32.2354 24.9499C32.1804 24.9903 32.1034 25.0104 32.0044 25.0104C31.9384 25.0104 31.876 24.9958 31.8174 24.9664C31.7587 24.9371 31.6964 24.9023 31.6304 24.8619C31.5644 24.8179 31.491 24.7721 31.4104 24.7244C31.3334 24.6731 31.2399 24.6273 31.1299 24.5869C31.0235 24.5429 30.897 24.5063 30.7504 24.4769C30.6074 24.4476 30.4387 24.4329 30.2444 24.4329C29.907 24.4329 29.599 24.4934 29.3204 24.6144C29.0417 24.7318 28.8015 24.9023 28.5999 25.1259C28.4019 25.3459 28.246 25.6136 28.1324 25.9289C28.0224 26.2443 27.9674 26.5981 27.9674 26.9904C27.9674 27.4011 28.0224 27.7659 28.1324 28.0849C28.246 28.4039 28.3982 28.6734 28.5889 28.8934C28.7832 29.1098 29.0087 29.2748 29.2654 29.3884C29.522 29.5021 29.797 29.5589 30.0904 29.5589C30.259 29.5589 30.413 29.5516 30.5524 29.5369C30.6917 29.5186 30.82 29.4893 30.9374 29.4489C31.0584 29.4086 31.172 29.3573 31.2784 29.2949C31.3884 29.2289 31.4984 29.1483 31.6084 29.0529C31.6524 29.0163 31.7 28.9869 31.7514 28.9649C31.8027 28.9393 31.8559 28.9264 31.9109 28.9264Z",fill:"#0C3092"})]});var OD,Gl,BD;const Yhe=({title:e="No File",desc:t="Paper icon with one corner bent inwards",width:s="40",height:o="50",className:r,focusable:a="false"})=>OD("svg",{className:BD("i i-fileNone",r),focusable:a,height:o,viewBox:"0 0 40 50",width:s,children:[Gl("title",{children:e}),Gl("desc",{children:t}),Gl("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"}),Gl("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"})]}),Xhe=null,DD=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#F5D0CE",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#EDADA9",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M10.8678 28.3213V30.9998H9.00879V22.9863H11.8358C12.4005 22.9863 12.8845 23.0542 13.2878 23.1898C13.6948 23.3218 14.0285 23.5052 14.2888 23.7398C14.5528 23.9745 14.7471 24.2513 14.8718 24.5703C14.9965 24.8893 15.0588 25.234 15.0588 25.6043C15.0588 26.004 14.9946 26.3707 14.8663 26.7043C14.738 27.038 14.5418 27.324 14.2778 27.5623C14.0138 27.8007 13.6783 27.9877 13.2713 28.1233C12.868 28.2553 12.3895 28.3213 11.8358 28.3213H10.8678ZM10.8678 26.9188H11.8358C12.3198 26.9188 12.6681 26.8033 12.8808 26.5723C13.0935 26.3413 13.1998 26.0187 13.1998 25.6043C13.1998 25.421 13.1723 25.2542 13.1173 25.1038C13.0623 24.9535 12.978 24.8252 12.8643 24.7188C12.7543 24.6088 12.6131 24.5245 12.4408 24.4658C12.2721 24.4072 12.0705 24.3778 11.8358 24.3778H10.8678V26.9188Z",fill:"#771D18"}),(0,n.jsx)("path",{d:"M24.2944 26.9903C24.2944 27.5697 24.1936 28.105 23.9919 28.5963C23.7939 29.084 23.5134 29.5075 23.1504 29.8668C22.7874 30.2225 22.3493 30.5012 21.8359 30.7028C21.3263 30.9008 20.7598 30.9998 20.1364 30.9998H17.0234V22.9863H20.1364C20.7598 22.9863 21.3263 23.0872 21.8359 23.2888C22.3493 23.4905 22.7874 23.7692 23.1504 24.1248C23.5134 24.4805 23.7939 24.904 23.9919 25.3953C24.1936 25.883 24.2944 26.4147 24.2944 26.9903ZM22.3914 26.9903C22.3914 26.5943 22.3401 26.2368 22.2374 25.9178C22.1348 25.5988 21.9863 25.3293 21.7919 25.1093C21.6013 24.8857 21.3666 24.7152 21.0879 24.5978C20.8093 24.4768 20.4921 24.4163 20.1364 24.4163H18.8934V29.5698H20.1364C20.4921 29.5698 20.8093 29.5112 21.0879 29.3938C21.3666 29.2728 21.6013 29.1023 21.7919 28.8823C21.9863 28.6587 22.1348 28.3873 22.2374 28.0683C22.3401 27.7493 22.3914 27.39 22.3914 26.9903Z",fill:"#771D18"}),(0,n.jsx)("path",{d:"M31.3465 22.9863V24.4163H28.0575V26.4458H30.7965V27.8813H28.0575V30.9998H26.1875V22.9863H31.3465Z",fill:"#771D18"})]}),HD=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#FBDACC",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#F8BFA6",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M11.2115 28.3213V30.9998H9.35254V22.9863H12.1795C12.7442 22.9863 13.2282 23.0542 13.6315 23.1898C14.0385 23.3218 14.3722 23.5052 14.6325 23.7398C14.8965 23.9745 15.0909 24.2513 15.2155 24.5703C15.3402 24.8893 15.4025 25.234 15.4025 25.6043C15.4025 26.004 15.3384 26.3707 15.21 26.7043C15.0817 27.038 14.8855 27.324 14.6215 27.5623C14.3575 27.8007 14.022 27.9877 13.615 28.1233C13.2117 28.2553 12.7332 28.3213 12.1795 28.3213H11.2115ZM11.2115 26.9188H12.1795C12.6635 26.9188 13.0119 26.8033 13.2245 26.5723C13.4372 26.3413 13.5435 26.0187 13.5435 25.6043C13.5435 25.421 13.516 25.2542 13.461 25.1038C13.406 24.9535 13.3217 24.8252 13.208 24.7188C13.098 24.6088 12.9569 24.5245 12.7845 24.4658C12.6159 24.4072 12.4142 24.3778 12.1795 24.3778H11.2115V26.9188Z",fill:"#7C2B0E"}),(0,n.jsx)("path",{d:"M19.2262 28.3213V30.9998H17.3672V22.9863H20.1942C20.7589 22.9863 21.2429 23.0542 21.6462 23.1898C22.0532 23.3218 22.3869 23.5052 22.6472 23.7398C22.9112 23.9745 23.1055 24.2513 23.2302 24.5703C23.3549 24.8893 23.4172 25.234 23.4172 25.6043C23.4172 26.004 23.353 26.3707 23.2247 26.7043C23.0964 27.038 22.9002 27.324 22.6362 27.5623C22.3722 27.8007 22.0367 27.9877 21.6297 28.1233C21.2264 28.2553 20.7479 28.3213 20.1942 28.3213H19.2262ZM19.2262 26.9188H20.1942C20.6782 26.9188 21.0265 26.8033 21.2392 26.5723C21.4519 26.3413 21.5582 26.0187 21.5582 25.6043C21.5582 25.421 21.5307 25.2542 21.4757 25.1038C21.4207 24.9535 21.3364 24.8252 21.2227 24.7188C21.1127 24.6088 20.9715 24.5245 20.7992 24.4658C20.6305 24.4072 20.4289 24.3778 20.1942 24.3778H19.2262V26.9188Z",fill:"#7C2B0E"}),(0,n.jsx)("path",{d:"M31.2008 22.9863V24.4603H28.9458V30.9998H27.0868V24.4603H24.8318V22.9863H31.2008Z",fill:"#7C2B0E"})]}),FD=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#CFEAF8",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M11.6738 28.0355V31H9.81476V22.9865H12.4218C13.0011 22.9865 13.4943 23.047 13.9013 23.168C14.3119 23.2853 14.6456 23.4503 14.9023 23.663C15.1626 23.8757 15.3514 24.1268 15.4688 24.4165C15.5861 24.7062 15.6448 25.0215 15.6448 25.3625C15.6448 25.6228 15.6099 25.8685 15.5403 26.0995C15.4706 26.3305 15.3661 26.545 15.2268 26.743C15.0911 26.9373 14.9224 27.1115 14.7208 27.2655C14.5228 27.4195 14.2936 27.546 14.0333 27.645C14.1579 27.7073 14.2734 27.7843 14.3798 27.876C14.4898 27.9677 14.5851 28.0795 14.6658 28.2115L16.3708 31H14.6878C14.3761 31 14.1524 30.8827 14.0168 30.648L12.6858 28.3215C12.6271 28.2188 12.5574 28.1455 12.4768 28.1015C12.3998 28.0575 12.2898 28.0355 12.1468 28.0355H11.6738ZM11.6738 26.754H12.4218C12.6748 26.754 12.8893 26.7228 13.0653 26.6605C13.2449 26.5945 13.3916 26.5047 13.5053 26.391C13.6189 26.2773 13.7014 26.1453 13.7528 25.995C13.8041 25.841 13.8298 25.676 13.8298 25.5C13.8298 25.148 13.7143 24.873 13.4833 24.675C13.2559 24.477 12.9021 24.378 12.4218 24.378H11.6738V26.754Z",fill:"#144E6C"}),(0,n.jsx)("path",{d:"M23.6162 22.9865V24.4605H21.3612V31H19.5022V24.4605H17.2472V22.9865H23.6162Z",fill:"#144E6C"}),(0,n.jsx)("path",{d:"M30.5411 22.9865V24.4165H27.2521V26.446H29.9911V27.8815H27.2521V31H25.3821V22.9865H30.5411Z",fill:"#144E6C"})]}),VD=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#D1E5D1",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#AFD1AE",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M11.8861 26.8804L9.40564 22.9864H11.2646C11.3856 22.9864 11.4736 23.0029 11.5286 23.0359C11.5873 23.0653 11.6386 23.1166 11.6826 23.1899L13.2776 25.8904C13.296 25.8428 13.3161 25.7969 13.3381 25.7529C13.3638 25.7089 13.3913 25.6631 13.4206 25.6154L14.8176 23.2174C14.9093 23.0634 15.034 22.9864 15.1916 22.9864H16.9736L14.4601 26.7979L17.0286 30.9999H15.1696C15.0486 30.9999 14.9496 30.9706 14.8726 30.9119C14.7993 30.8533 14.7406 30.7836 14.6966 30.7029L13.0906 27.8979C13.0613 27.9786 13.0283 28.0483 12.9916 28.1069L11.4956 30.7029C11.4516 30.7799 11.393 30.8496 11.3196 30.9119C11.2463 30.9706 11.1546 30.9999 11.0446 30.9999H9.30664L11.8861 26.8804Z",fill:"#265026"}),(0,n.jsx)("path",{d:"M20.6017 29.5149H23.5717V30.9999H18.7427V22.9864H20.6017V29.5149Z",fill:"#265026"}),(0,n.jsx)("path",{d:"M29.9128 24.6144C29.8578 24.7024 29.7991 24.7684 29.7368 24.8124C29.6781 24.8564 29.6011 24.8784 29.5058 24.8784C29.4215 24.8784 29.3298 24.8528 29.2308 24.8014C29.1355 24.7464 29.0255 24.6859 28.9008 24.6199C28.7798 24.5539 28.6405 24.4953 28.4828 24.4439C28.3251 24.3889 28.1455 24.3614 27.9438 24.3614C27.5955 24.3614 27.3351 24.4366 27.1628 24.5869C26.9941 24.7336 26.9098 24.9334 26.9098 25.1864C26.9098 25.3478 26.9611 25.4816 27.0638 25.5879C27.1665 25.6943 27.3003 25.7859 27.4653 25.8629C27.634 25.9399 27.8246 26.0114 28.0373 26.0774C28.2536 26.1398 28.4736 26.2113 28.6973 26.2919C28.921 26.3689 29.1391 26.4606 29.3518 26.5669C29.5681 26.6733 29.7588 26.8089 29.9238 26.9739C30.0925 27.1389 30.2281 27.3406 30.3308 27.5789C30.4335 27.8136 30.4848 28.0978 30.4848 28.4314C30.4848 28.8018 30.4206 29.1483 30.2923 29.4709C30.164 29.7936 29.977 30.0759 29.7313 30.3179C29.4893 30.5563 29.1886 30.7451 28.8293 30.8844C28.4736 31.0201 28.0685 31.0879 27.6138 31.0879C27.3645 31.0879 27.1096 31.0623 26.8493 31.0109C26.5926 30.9596 26.3433 30.8881 26.1013 30.7964C25.8593 30.7011 25.632 30.5893 25.4193 30.4609C25.2066 30.3326 25.0215 30.1896 24.8638 30.0319L25.4138 29.1629C25.4541 29.0969 25.511 29.0438 25.5843 29.0034C25.6576 28.9631 25.7365 28.9429 25.8208 28.9429C25.9308 28.9429 26.0408 28.9778 26.1508 29.0474C26.2645 29.1171 26.391 29.1941 26.5303 29.2784C26.6733 29.3628 26.8365 29.4398 27.0198 29.5094C27.2031 29.5791 27.4195 29.6139 27.6688 29.6139C28.0061 29.6139 28.2683 29.5406 28.4553 29.3939C28.6423 29.2436 28.7358 29.0071 28.7358 28.6844C28.7358 28.4974 28.6845 28.3453 28.5818 28.2279C28.4791 28.1106 28.3435 28.0134 28.1748 27.9364C28.0098 27.8594 27.821 27.7916 27.6083 27.7329C27.3956 27.6743 27.1775 27.6101 26.9538 27.5404C26.7301 27.4671 26.512 27.3791 26.2993 27.2764C26.0866 27.1701 25.896 27.0326 25.7273 26.8639C25.5623 26.6916 25.4285 26.4789 25.3258 26.2259C25.2231 25.9693 25.1718 25.6539 25.1718 25.2799C25.1718 24.9793 25.2323 24.6859 25.3533 24.3999C25.4743 24.1139 25.6521 23.8591 25.8868 23.6354C26.1215 23.4118 26.4093 23.2339 26.7503 23.1019C27.0913 22.9663 27.4818 22.8984 27.9218 22.8984C28.1675 22.8984 28.4058 22.9186 28.6368 22.9589C28.8715 22.9956 29.0933 23.0524 29.3023 23.1294C29.5113 23.2028 29.7056 23.2926 29.8853 23.3989C30.0686 23.5016 30.2318 23.6189 30.3748 23.7509L29.9128 24.6144Z",fill:"#265026"})]}),zD=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#CFEAF8",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M16.8968 22.9863V23.6573C16.8968 23.7527 16.8802 23.8462 16.8472 23.9378C16.8179 24.0295 16.7757 24.1157 16.7207 24.1963L12.9587 29.5698H16.7758V30.9998H10.5938V30.2848C10.5938 30.2005 10.6084 30.118 10.6377 30.0373C10.6671 29.953 10.7074 29.876 10.7587 29.8063L14.5317 24.4163H10.9017V22.9863H16.8968Z",fill:"#124F6E"}),(0,n.jsx)("path",{d:"M20.7826 30.9998H18.9126V22.9863H20.7826V30.9998Z",fill:"#124F6E"}),(0,n.jsx)("path",{d:"M25.1301 28.3213V30.9998H23.2711V22.9863H26.0981C26.6627 22.9863 27.1467 23.0542 27.5501 23.1898C27.9571 23.3218 28.2907 23.5052 28.5511 23.7398C28.8151 23.9745 29.0094 24.2513 29.1341 24.5703C29.2587 24.8893 29.3211 25.234 29.3211 25.6043C29.3211 26.004 29.2569 26.3707 29.1286 26.7043C29.0002 27.038 28.8041 27.324 28.5401 27.5623C28.2761 27.8007 27.9406 27.9877 27.5336 28.1233C27.1302 28.2553 26.6517 28.3213 26.0981 28.3213H25.1301ZM25.1301 26.9188H26.0981C26.5821 26.9188 26.9304 26.8033 27.1431 26.5723C27.3557 26.3413 27.4621 26.0187 27.4621 25.6043C27.4621 25.421 27.4346 25.2542 27.3796 25.1038C27.3246 24.9535 27.2402 24.8252 27.1266 24.7188C27.0166 24.6088 26.8754 24.5245 26.7031 24.4658C26.5344 24.4072 26.3327 24.3778 26.0981 24.3778H25.1301V26.9188Z",fill:"#124F6E"})]});var $D,Wl,_D;const nme=({title:e="More",desc:t="Filled caret pointing right",width:s="7",height:o="5",className:r,focusable:a="false"})=>$D("svg",{className:_D("i i-filledChevronRight",r),focusable:a,height:o,viewBox:"0 0 5 7",width:s,children:[Wl("title",{children:e}),Wl("desc",{children:t}),Wl("g",{children:Wl("path",{d:"M4 3.625L1 1v5.25z",strokeLinecap:"round",strokeLinejoin:"round"})})]}),ome=null,lh=({title:e="Fill in the Blank",desc:t="Pencil writing on a surface",width:s="15",height:o="15",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:U()("i i-fillInTheBlank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("path",{d:"M2.488 8.246l5.25-5.25 1.4 1.4-5.25 5.25h-1.4v-1.4zm-.875 3.15h2.625a.794.794 0 0 0 .613-.262l6.125-6.125a.846.846 0 0 0 0-1.225L8.35 1.159a.846.846 0 0 0-1.225 0L1 7.284a.794.794 0 0 0-.263.612v2.625c0 .525.35.875.875.875zM.739 13.146h14v1.75h-14z"})]});var UD,dh;const ame=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="16",role:a="img",title:i,width:c="16"})=>UD("svg",{"aria-hidden":e,"aria-label":t,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&dh("title",{children:i}),o&&dh("desc",{children:o}),dh("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"})]}),ime=null;var GD,uh,WD;const cme=({title:e="Flashcard Block",desc:t="Flashcard Block",width:s="16",height:o="15",className:r,focusable:a="false"})=>GD("svg",{className:WD("i i-flashcard-block",r),focusable:a,height:o,viewBox:"0 0 16 15",width:s,children:[uh("title",{children:e}),uh("desc",{children:t}),uh("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.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V1.9h-3.2zm-3 7.814v3.572c0 .925-.689 1.614-1.614 1.614H2.573c-.925 0-1.614-.689-1.614-1.614V9.714c0-.925.689-1.614 1.614-1.614h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V9.9h-3.2zm13-.186v3.572c0 .925-.689 1.614-1.614 1.614h-3.572c-.925 0-1.614-.689-1.614-1.614V9.714c0-.925.689-1.614 1.614-1.614h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V9.9h-3.2z",fillRule:"nonzero"})]}),lme=null;var j6,KD;const dme=e=>j6(KD,{viewBox:"0 0 15 15",...e,children:j6("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"})}),ume=null;var QD,w6,ZD;function hme(e){return QD(ZD,{...e,viewBox:"0 0 16 14",children:[w6("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"}),w6("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 YD,Kl,XD;const mme=({title:e="Folder Empty",desc:t="Folder outline empty",width:s="47",height:o="47",className:r,focusable:a="false"})=>YD("svg",{className:XD("i i-folder--empty",r),focusable:a,height:o,viewBox:"0 0 47 47",width:s,children:[Kl("title",{children:e}),Kl("desc",{children:t}),Kl("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"}),Kl("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"})]}),pme=null;var JD,hh,qD;const fme=({title:e="Folder Outline",desc:t="Outline of a folder",width:s="24",height:o="24",className:r,focusable:a="false"})=>JD("svg",{className:qD("i",r),focusable:a,height:o,viewBox:"0 0 24 24",width:s,children:[hh("title",{children:e}),hh("desc",{children:t}),hh("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"})]}),gme=null;var eH,mh,tH;const vme=({title:e="FolderSort",desc:t="Sort by Folders",width:s="13",height:o="13",className:r,focusable:a="false"})=>eH("svg",{className:tH("i",r),focusable:a,height:o,viewBox:"0 0 13 13",width:s,children:[mh("title",{children:e}),mh("desc",{children:t}),mh("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"})]}),Cme=null;var sH,ph,nH;const xme=({title:e="Font",desc:t="A capital letter T with a second smaller capital T to the right",width:s="35",height:o="27",className:r,focusable:a="false"})=>sH("svg",{className:nH("i",r),focusable:a,height:o,viewBox:"0 0 35 27",width:s,children:[ph("title",{children:e}),ph("desc",{children:t}),ph("path",{d:"M1 1v5h8.333v20h5V6h8.334V1H1zm32.667 10.333h-15v5h5V26h5v-9.667h5v-5z",fill:"none",fillRule:"nonzero",stroke:"#adaeaf",strokeWidth:"2"})]}),bme=null;var oH,Ql,rH;const yme=e=>oH(rH,{...e,viewBox:"0 0 16 16",children:[Ql("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"}),Ql("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"}),Ql("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"}),Ql("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"})]}),Lme=null;var aH,Zl,iH;const Sme=({title:e="Group",desc:t="Silhouettes of two people",width:s="18",height:o="17",className:r,focusable:a="false"})=>aH("svg",{className:iH("i",r),focusable:a,height:o,viewBox:"0 0 18 17",width:s,children:[Zl("title",{children:e}),Zl("desc",{children:t}),Zl("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"}),Zl("path",{d:"M8.75 11.5C8.75 11.6989 8.67098 11.8897 8.53033 12.0303C8.38968 12.171 8.19891 12.25 8 12.25C7.80109 12.25 7.61032 12.171 7.46967 12.0303C7.32902 11.8897 7.25 11.6989 7.25 11.5C7.25 10.7707 6.96027 10.0712 6.44454 9.55546C5.92882 9.03973 5.22935 8.75 4.5 8.75C3.77065 8.75 3.07118 9.03973 2.55546 9.55546C2.03973 10.0712 1.75 10.7707 1.75 11.5C1.75 11.5985 1.7306 11.696 1.69291 11.787C1.65522 11.878 1.59997 11.9607 1.53033 12.0303C1.46069 12.1 1.37801 12.1552 1.28701 12.1929C1.19602 12.2306 1.09849 12.25 1 12.25C0.901509 12.25 0.803982 12.2306 0.712987 12.1929C0.621993 12.1552 0.539314 12.1 0.46967 12.0303C0.400026 11.9607 0.344781 11.878 0.30709 11.787C0.269399 11.696 0.25 11.5985 0.25 11.5C0.25 10.9419 0.359929 10.3892 0.573512 9.8736C0.787094 9.35796 1.10015 8.88944 1.4948 8.4948C1.88945 8.10015 2.35796 7.78709 2.8736 7.57351C3.38923 7.35993 3.94188 7.25 4.5 7.25C5.05812 7.25 5.61077 7.35993 6.1264 7.57351C6.64204 7.78709 7.11055 8.10015 7.5052 8.4948C7.89985 8.88944 8.21291 9.35796 8.42649 9.8736C8.64007 10.3892 8.75 10.9419 8.75 11.5ZM17.75 15.402C17.75 15.6009 17.671 15.7917 17.5303 15.9323C17.3897 16.073 17.1989 16.152 17 16.152C16.8011 16.152 16.6103 16.073 16.4697 15.9323C16.329 15.7917 16.25 15.6009 16.25 15.402C16.25 14.6727 15.9603 13.9732 15.4445 13.4575C14.9288 12.9417 14.2293 12.652 13.5 12.652C12.7707 12.652 12.0712 12.9417 11.5555 13.4575C11.0397 13.9732 10.75 14.6727 10.75 15.402C10.75 15.6009 10.671 15.7917 10.5303 15.9323C10.3897 16.073 10.1989 16.152 10 16.152C9.80109 16.152 9.61032 16.073 9.46967 15.9323C9.32902 15.7917 9.25 15.6009 9.25 15.402C9.25 14.2748 9.69777 13.1938 10.4948 12.3968C11.2918 11.5998 12.3728 11.152 13.5 11.152C14.6272 11.152 15.7082 11.5998 16.5052 12.3968C17.3022 13.1938 17.75 14.2748 17.75 15.402Z",fill:"black"})]}),Tme=null;var A6,cH;function Nme(e){return A6(cH,{viewBox:"0 0 20 14",...e,children:A6("path",{d:"M0 0H20V2H0V0Z M0 6H20V8H0V6Z M20 12H0V14H20V12Z"})})}const fh=({className:e,decorative:t=!0,desc:s="Heart",focusable:o="false",height:r="16",isFilled:a=!0,title:i="Heart",width:c="16"})=>(0,n.jsxs)("svg",{"aria-hidden":t,className:U()(`i i-heart${a?"Filled":"Outline"}`,e),focusable:o,height:r,viewBox:"0 0 16 16",width:c,children:[(0,n.jsx)("title",{children:i}),(0,n.jsx)("desc",{children:s}),(0,n.jsx)("path",{d:"M11.15 1C9.838 1 8.7 1.7 8 2.75 7.3 1.7 6.162 1 4.85 1 2.75 1 1 2.75 1 4.85c0 3.85 7 9.538 7 9.538S15 8.7 15 4.85C15 2.75 13.25 1 11.15 1"})]});var lH,gh,dH;const Ime=({title:e="Hidden",desc:t="Eye crossed out",width:s="16",height:o="14",className:r=null,focusable:a="false"})=>lH("svg",{className:dH("i i-hidden",r),focusable:a,height:o,viewBox:"0 0 16 14",width:s,children:[gh("title",{children:e}),gh("desc",{children:t}),gh("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"})]}),Eme=null;var uH,vh,hH;const jme=({title:e="Image Block",desc:t="Image Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>uH("svg",{className:hH("i i-image-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:s,children:[vh("title",{children:e}),vh("desc",{children:t}),vh("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"})]}),wme=null;var mH,Ch,pH;const Ame=({title:e="Labeled Graphic Block",desc:t="Labeled Graphic Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>mH("svg",{className:pH("i i-labeled-graphic-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:s,children:[Ch("title",{children:e}),Ch("desc",{children:t}),Ch("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"})]}),Rme=null;var fH,Yl,gH;const Pme=({title:e="Label Set",desc:t="Label Set",width:s="17",height:o="17",className:r,focusable:a="false"})=>fH("svg",{className:gH("i i-labelSet",r),focusable:a,height:o,viewBox:"0 0 18 18",width:s,children:[Yl("title",{children:e}),Yl("desc",{children:t}),Yl("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"}),Yl("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"})]}),Mme=null;var vH,xh,CH;function Ome(e){return vH(CH,{fill:"none",stroke:"currentColor",viewBox:"0 0 13 14",...e,children:[xh("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"}),xh("path",{d:"M1 6.71431 L6.57031 9.57147 L12.1406 6.71431",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}),xh("path",{d:"M1 9.57147 L6.57031 12.42863 L12.1406 9.57147",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"})]})}var xH,bh;const Bme=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>xH("svg",{"aria-hidden":e,"aria-label":t,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&bh("title",{children:i}),o&&bh("desc",{children:o}),bh("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"})]}),Dme=null;var bH,yh,yH;const Hme=({title:e="Lesson",desc:t="Lesson Icon",width:s="23",height:o="17",className:r,focusable:a="false"})=>bH("svg",{className:yH("i i-lesson",r),focusable:a,height:o,viewBox:"0 0 23 17",width:s,children:[yh("title",{children:e}),yh("desc",{children:t}),yh("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"})]}),Fme=null;var LH,Lh,SH;const Vme=e=>LH(SH,{...e,viewBox:"0 0 16 16",children:[Lh("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"}),Lh("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"}),Lh("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"})]}),zme=null;var TH,Sh,NH;const $me=({title:e="List Block",desc:t="List Block",width:s="16",height:o="13",className:r,focusable:a="false"})=>TH("svg",{className:NH("i i-list-block",r),focusable:a,height:o,viewBox:"0 0 16 13",width:s,children:[Sh("title",{children:e}),Sh("desc",{children:t}),Sh("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"})]}),_me=null;var kH,Xl;const Ume=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r,role:a="img",title:i,width:c})=>kH("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 40",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Xl("title",{children:i}),o&&Xl("desc",{children:o}),Xl("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"}),Xl("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"})]}),Gme=null;var R6,IH;function Wme(e){return R6(IH,{viewBox:"0 0 20 22",...e,children:R6("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 EH,Jl,jH;const Kme=({title:e="Mail",desc:t="Mail",width:s="14",height:o="12",className:r,focusable:a="false"})=>EH("svg",{className:jH("i",r),focusable:a,height:o,viewBox:"0 0 14 12",width:s,children:[Jl("title",{children:e}),Jl("desc",{children:t}),Jl("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"}),Jl("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"})]}),Qme=null,wH=({title:e="Matching",desc:t="Two rows of stacked squares",width:s="15",height:o="15",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:U()("i i-matching",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("path",{d:"M4.814 4.975H2.19V2.35h2.625v2.625zM5.69.6H1.314C.79.6.44.95.44 1.475V5.85c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V1.475C6.564.95 6.214.6 5.69.6zM12.69 4.975h-2.626V2.35h2.625v2.625zM13.563.6H9.19c-.525 0-.875.35-.875.875V5.85c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.475c0-.525-.35-.875-.875-.875zM4.814 12.85H2.19v-2.625h2.625v2.625zm.875-4.375H1.314c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875zM12.69 12.85h-2.626v-2.625h2.625v2.625zm.874-4.375H9.19c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875z"})]});var AH,Wi,RH;const Yme=({title:e="Move to Folder",desc:t="Folder with an arrow",width:s="15",height:o="15",className:r,focusable:a="false"})=>AH("svg",{className:RH("i i-move",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[Wi("title",{children:e}),Wi("desc",{children:t}),Wi("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"}),Wi("path",{d:"M4.795 7.973a.583.583 0 0 0 0 1.167h5.834a.583.583 0 1 0 0-1.167H4.795z"}),Wi("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"})]}),Xme=null,PH=({title:e="Multiple Choice",desc:t="Stacked circles to the left of stacked lines",width:s="16",height:o="16",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:U()("i i-multipleChoice",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm0-2A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"}),(0,n.jsx)("circle",{cx:"7.904",cy:"7.904",r:"1.904"})]}),MH=({title:e="Multiple Response",desc:t="A box with a checkmark in it",width:s="16",height:o="16",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:U()("i i-multipleResponse",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("path",{d:"M15.142.332c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-1 14v-12h-12v12h12zm-7.978-3.308l-2-2-.707-.708L4.87 6.902l.707.707 1.3 1.3 3.317-3.33.707-.708 1.414 1.414-.707.707-4.03 4.032-.708.707-.707-.707z"})]});var OH,Th,BH;const epe=({"aria-hidden":e,title:t="New Folder",desc:s="Folder with plus sign",width:o="14",height:r="14",className:a,focusable:i="false"})=>OH("svg",{"aria-hidden":e,className:BH("i i-newFolder",a),focusable:i,height:r,viewBox:"0 0 14 14",width:o,children:[t&&Th("title",{children:t}),Th("desc",{children:s}),Th("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"})]}),tpe=null;var DH,ql,HH;const spe=({title:e="New Slide",desc:t="New Slide",width:s="16",height:o="16",className:r,focusable:a="false"})=>DH("svg",{className:HH("i i-new-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[ql("title",{children:e}),ql("desc",{children:t}),ql("path",{d:"M7,12h2V9h3V7H9V4H7v3H4v2h3V12z",fillRule:"evenodd"}),ql("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"})]}),npe=null;var FH,Nh,VH;const ope=({title:e="Next Slide",desc:t="Next Slide",width:s="16",height:o="13.4",className:r,focusable:a="false"})=>FH("svg",{className:VH("i i-next-slide",r),focusable:a,height:o,viewBox:"0 0 16 13.4",width:s,children:[Nh("title",{children:e}),Nh("desc",{children:t}),Nh("path",{d:"M9.3,0L7.9,1.4l4.3,4.3H0v2h12.2L7.9,12l1.4,1.4L16,6.7L9.3,0",fillRule:"evenodd"})]}),rpe=null;var zH,kh,$H;const ape=({title:e="Not Allowed",desc:t="A circle with a slanted line through it",width:s="12",height:o="12",className:r,focusable:a="false"})=>zH("svg",{className:$H("i i-notAllowed",r),focusable:a,height:o,viewBox:"0 0 12 12",width:s,children:[kh("title",{children:e}),kh("desc",{children:t}),kh("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"})]}),ipe=null;var _H,P6;const cpe=({className:e})=>_H("svg",{"aria-hidden":"true",className:e,fill:"currentColor",focusable:"false",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",children:[P6("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"}),P6("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"})]}),lpe=null;var UH,Ki,GH;const dpe=({title:e="Hide",desc:t="Shape of an eye with a stroke through it",width:s="20",height:o="16",className:r,focusable:a="false"})=>UH("svg",{className:GH("i",r),focusable:a,height:o,viewBox:"0 0 20 16",width:s,children:[Ki("title",{children:e}),Ki("desc",{children:t}),Ki("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"}),Ki("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"}),Ki("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"})]}),upe=null;var WH,M6,KH;const hpe=e=>WH(KH,{viewBox:"0 0 16 16",...e,children:[M6("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"}),M6("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"})]}),mpe=null;var QH,Ih,ZH;const ppe=({title:e="Edit",desc:t="Pencil",width:s="11",height:o="11",className:r,focusable:a="false"})=>QH("svg",{className:ZH("i i-pencil",r),focusable:a,height:o,viewBox:"0 0 10 10",width:s,children:[Ih("title",{children:e}),Ih("desc",{children:t}),Ih("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"})]}),fpe=null;var YH,Eh;const gpe=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="16",role:a="img",title:i,width:c="16"})=>YH("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Eh("title",{children:i}),o&&Eh("desc",{children:o}),Eh("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"})]}),vpe=null;var XH,ed,JH;const Cpe=({title:e="Person",desc:t="Person outline",width:s="16",height:o="18",className:r,focusable:a="false"})=>XH("svg",{className:JH("i",r),focusable:a,height:o,viewBox:"0 0 16 18",width:s,children:[ed("title",{children:e}),ed("desc",{children:t}),ed("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"}),ed("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"})]}),xpe=null;var qH=f(65610),Cr=f.n(qH);class jh extends h.Component{constructor(...t){super(...t),this.maskId=`person-unknown-mask-${Cr()()}`,this.pathId=`person-unknown-path-${Cr()()}`}render(){const{title:t="Person Unknown",desc:s,width:o="38",height:r="38",className:a,decorative:i,focusable:c="false"}=this.props;return(0,n.jsxs)("svg",{"aria-hidden":i,className:U()("i i-person-unknown",a),focusable:c,height:r,viewBox:"0 0 38 38",width:o,children:[t&&(0,n.jsx)("title",{children:t}),s&&(0,n.jsx)("desc",{children:s}),(0,n.jsx)("defs",{children:(0,n.jsx)("circle",{cx:"19",cy:"19",id:this.pathId,r:"19"})}),(0,n.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,n.jsx)("mask",{fill:"#fff",id:this.maskId,children:(0,n.jsx)("use",{href:`#${this.pathId}`})}),(0,n.jsx)("use",{fill:"#D8D8D8",href:`#${this.pathId}`}),(0,n.jsx)("path",{d:"M15.1239928,24 C12.6645753,22.6352711 11,20.0120267 11,17 C11,12.581722 14.581722,9 19,9 C23.418278,9 27,12.581722 27,17 C27,20.0120267 25.3354247,22.6352711 22.8760072,24 L23,24 C27.4182847,24 31,27.5817153 31,32 L31,43 C31,43.5522847 30.5522847,44 30,44 L8,44 C7.44771525,44 7,43.5522847 7,43 L7,32 C7,27.5817153 10.5817153,24 15,24 L15.1239928,24 Z",fill:"#ADAEAF",fillRule:"nonzero",mask:`url(#${this.maskId})`})]})]})}}const O6=({title:e="Pick One",desc:t="Pick One",width:s="16",height:o="14",className:r,focusable:a="false","aria-hidden":i})=>(0,n.jsxs)("svg",{"aria-hidden":i,className:U()("i i-pickOne",r),focusable:a,height:o,viewBox:"0 0 16 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsxs)("g",{fillRule:"evenodd",children:[(0,n.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,n.jsx)("path",{d:"M8.862 1.324h7v2h-7zM8.862 4.324h7v2h-7zM8.862 8.324h7v2h-7zM8.862 11.324h7v2h-7z"})]})]});var eF,td,tF;const ype=({title:e="Play",desc:t="Triangle facing right that will play the media",width:s="16",height:o="22",className:r,focusable:a="false"})=>eF("svg",{className:tF("i",r),focusable:a,height:o,viewBox:"0 0 16 22",width:s,children:[td("desc",{children:t}),td("title",{children:e}),td("g",{transform:"translate(-124 -107)",children:td("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"})})]}),Lpe=null;var sF,wh,nF;const Spe=({title:e="Process Block",desc:t="Process Block",width:s="29",height:o="17",className:r,focusable:a="false"})=>sF("svg",{className:nF("i i-process-block",r),focusable:a,height:o,viewBox:"0 0 29 17",width:s,children:[wh("title",{children:e}),wh("desc",{children:t}),wh("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"})]}),Tpe=null;function oF(e){return(0,n.jsxs)(zt,{viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("path",{d:"M14,14 L2,14 L2,2 L14,2 L14,14 Z M15,0 L1,0 C0.4,0 0,0.4 0,1 L0,15 C0,15.6 0.4,16 1,16 L15,16 C15.6,16 16,15.6 16,15 L16,1 C16,0.4 15.6,0 15,0 L15,0 Z"}),(0,n.jsx)("path",{d:"M7.9997,11 C8.5517,11 8.9997,11.448 8.9997,12 C8.9997,12.552 8.5517,13 7.9997,13 C7.4477,13 6.9997,12.552 6.9997,12 C6.9997,11.448 7.4477,11 7.9997,11"}),(0,n.jsx)("path",{d:"M7.0997,5.5 C7.2997,5.2 7.5997,5 7.9997,5 C8.5997,5 8.9997,5.4 8.9997,6 C8.9997,6.3 8.8997,6.4 8.3997,6.7 C7.7997,7.1 6.9997,7.7 6.9997,9 L6.9997,10 L8.9997,10 L8.9997,9 C8.9997,8.8 8.9997,8.7 9.4997,8.4 C10.0997,8 10.9997,7.4 10.9997,6 C10.9997,4.3 9.6997,3 7.9997,3 C6.8997,3 5.8997,3.6 5.3997,4.5 L4.8997,5.4 L6.5997,6.4 L7.0997,5.5 Z"})]})}var rF,Ah,aF;const Npe=({title:e="Quiz",desc:t="Quiz Icon",width:s="25",height:o="25",className:r,focusable:a="false"})=>rF("svg",{className:aF("i i-quiz",r),focusable:a,height:o,viewBox:"0 0 25 25",width:s,children:[Ah("title",{children:e}),Ah("desc",{children:t}),Ah("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"})]}),kpe=null;var B6,iF;const Ipe=e=>B6(iF,{...e,viewBox:"0 0 10 13",children:B6("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"})}),Epe=null;var cF,D6,lF;function jpe(e){return cF(lF,{viewBox:"0 0 15 14",...e,children:[D6("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"}),D6("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 H6,dF;function wpe(e){return H6(dF,{viewBox:"0 0 28 28",...e,children:H6("path",{d:"M0.602462 14.9446C-0.0244077 15.1759 -0.0720487 15.7437 0.0596979 16.4712C1.24525 23.0177 7.00549 28 13.9288 28C22.0136 28 28.5288 21.1924 27.9661 13.0292C27.4922 6.10378 21.8359 0.475002 14.8765 0.0329519C10.0788 -0.291229 5.72563 1.80126 2.97148 5.21978L1.63888 4.12944C1.07616 3.68748 0.217442 4.07044 0.217442 4.8072V9.84668C0.217442 10.4067 0.720862 10.8192 1.25405 10.7012L1.49079 10.6422L2.61619 10.4064L3.09007 10.318L6.22894 9.64027C6.93974 9.49288 7.17671 8.57935 6.58425 8.10777L4.98518 6.84067C7.32461 3.95266 11.0858 2.21377 15.2022 2.65593C20.4735 3.21591 24.738 7.45959 25.3303 12.7052C26.0709 19.5717 20.681 25.4068 13.9287 25.4068C8.30488 25.4068 3.62815 21.3639 2.64243 16.0542C2.51095 15.346 2.19718 14.5886 1.49075 14.7383L0.602462 14.9446Z",fill:"currentColor"})})}var uF,Rh;const Ape=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>uF("svg",{"aria-hidden":e,"aria-label":t,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Rh("title",{children:i}),o&&Rh("desc",{children:o}),Rh("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"})]}),Rpe=null;function hF(e){return(0,n.jsx)(zt,{viewBox:"0 0 23 17",...e,children:(0,n.jsx)("path",{d:"M19.347 8.275l1.88 1.714a.727.727 0 0 0 .98-1.074l-3.225-2.941a.727.727 0 0 0-1.027.047l-2.94 3.224a.727.727 0 0 0 1.075.98l1.802-1.976a6.545 6.545 0 0 1-11.56 4.288.727.727 0 1 0-1.114.935 8 8 0 0 0 14.129-5.197zm-16.039.162l-1.79-1.633a.727.727 0 1 0-.98 1.074l3.223 2.94c.297.272.757.25 1.028-.046l2.94-3.224a.727.727 0 0 0-1.075-.98L4.768 8.636a6.545 6.545 0 0 1 11.555-4.482.727.727 0 1 0 1.114-.936A8 8 0 0 0 3.308 8.437z",fillRule:"nonzero"})})}var F6,mF;const Ppe=({width:e="16",height:t="16",className:s})=>F6("svg",{"aria-hidden":"true",className:mF("i i-search",s),fill:"currentColor",focusable:"false",height:t,viewBox:"0 0 15.6 14.7",width:e,children:F6("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"})}),Mpe=null;var V6,pF;const Ope=e=>V6(pF,{...e,viewBox:"0 0 15 15",children:V6("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"})}),Bpe=null;var fF,Qi,gF;const Dpe=({title:e="Share Folder",desc:t="Share folder",width:s="14",height:o="14",className:r,focusable:a="false"})=>fF("svg",{className:gF("i",r),focusable:a,height:o,viewBox:"0 0 14 14",width:s,children:[Qi("title",{children:e}),Qi("desc",{children:t}),Qi("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"}),Qi("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"}),Qi("path",{d:"M10.9804 10.9804V9.1503H12.1699V10.9804H14V12.1699H12.1699V14H10.9804V12.1699H9.1503V10.9804H10.9804Z"})]}),Hpe=null;var z6,vF;const Fpe=e=>z6(vF,{viewBox:"0 0 16 16",...e,children:z6("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"})}),Vpe=null;var CF,Zi,xF;const zpe=({title:e="Sortable",desc:t="Three horizontal lines stacked on top of each other",width:s="22",height:o="7",className:r,focusable:a="false"})=>CF("svg",{className:xF("i i-sortable",r),focusable:a,height:o,viewBox:"0 0 22 7",width:s,children:[Zi("title",{children:e}),Zi("desc",{children:t}),Zi("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"0"}),Zi("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"3"}),Zi("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"6"})]}),$pe=null;var bF,Ph,yF;const _pe=({title:e="Sorting Block",desc:t="Sorting Block",width:s="22",height:o="15",className:r,focusable:a="false"})=>bF("svg",{className:yF("i i-sorting-block",r),focusable:a,height:o,viewBox:"0 0 22 15",width:s,children:[Ph("title",{children:e}),Ph("desc",{children:t}),Ph("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"})]}),Upe=null,LF=({title:e="Spinner",desc:t="Hollow circle fading from transparent to gray",width:s="21",height:o="20",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:U()("i i-spinner",r),focusable:a,height:o,viewBox:"0 0 21 20",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("defs",{children:(0,n.jsxs)("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:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#C8C8C8",stopOpacity:"0"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#979797"})]})}),(0,n.jsx)("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)"})]});var $6,sd,SF;const Wpe=({title:e="SquareIcon",desc:t="Outline of a square",width:s="30",height:o="30",className:r,focusable:a="false"})=>$6("svg",{className:SF("i i-square-outline",r),focusable:a,height:o,viewBox:"0 0 30 30",width:s,children:[sd("title",{children:e}),sd("desc",{children:t}),$6("g",{fill:"none",fillRule:"evenodd",children:[sd("rect",{className:"overlay",fill:"none",fillRule:"evenodd",height:"28",rx:"2",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"}),sd("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"})]})]}),Kpe=null;var _6,xr,TF;const Mh="overlay",Qpe=({title:e="Stack",desc:t="Three horizontal bars stacked",width:s="30",height:o="30",className:r,focusable:a="false"})=>_6("svg",{className:TF("i i-stack",r),focusable:a,height:o,viewBox:"0 0 30 30",width:s,children:[xr("title",{children:e}),xr("desc",{children:t}),_6("g",{fill:"none",fillRule:"evenodd",children:[xr("rect",{className:Mh,height:"8.824",rx:"1",width:"30"}),xr("rect",{className:Mh,height:"8.824",rx:"1",width:"30",y:"10.588"}),xr("rect",{className:Mh,height:"8.824",rx:"1",width:"30",y:"21.176"}),xr("rect",{fill:"#FFF",fillOpacity:"0.63",height:"8.824",rx:"1",width:"30"}),xr("rect",{fill:"#FFF",fillOpacity:"0.4",height:"8.824",rx:"1",width:"30",y:"10.588"})]})]}),Zpe=null;var U6,NF;function Ype(e){return U6(NF,{viewBox:"0 0 16 16",...e,children:U6("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 kF,nd,IF;const Xpe=({title:e="Success",desc:t="Checkmark with a circle",width:s="51",height:o="51",className:r=null,focusable:a="false"})=>kF("svg",{className:IF("i",r),focusable:a,height:o,viewBox:"0 0 51 51",width:s,children:[nd("title",{children:e}),nd("desc",{children:t}),nd("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"}),nd("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"})]}),Jpe=null;var EF,Oh,jF;const qpe=({title:e="Text Block",desc:t="Text Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>EF("svg",{className:jF("i i-text-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:s,children:[Oh("title",{children:e}),Oh("desc",{children:t}),Oh("path",{d:"M15.747.5c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-13 2v12h12v-12h-12zm2 1h8v3h-1l-1-1h-1v6l1 1v1h-4v-1l1-1v-6h-1l-1 1h-1v-3z",fillRule:"evenodd"})]}),efe=null;var G6,od,wF;const tfe=({title:e="Text Slide",desc:t="Text Slide",width:s="16",height:o="14",className:r,focusable:a="false"})=>G6("svg",{className:wF("i i-text-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:s,children:[od("title",{children:e}),od("desc",{children:t}),G6("g",{fillRule:"evenodd",children:[od("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"}),od("path",{d:"M4 8h8v2H4z"})]})]}),sfe=null;var AF,Bh,RF;const nfe=({title:e="TitleSort",desc:t="Letters A and Z next to a downard arrow",width:s="17",height:o="11",className:r,focusable:a="false"})=>AF("svg",{className:RF("i",r),focusable:a,height:o,viewBox:"0 0 17 11",width:s,children:[Bh("title",{children:e}),Bh("desc",{children:t}),Bh("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"})]}),ofe=null;function PF(e){return(0,n.jsxs)(zt,{viewBox:"0 0 15 16",...e,children:[(0,n.jsx)("path",{d:"M8.69169169,1.65459164 C7.42998802,0.732912554 5.79691384,0.425404591 4.21164279,0.810071145 C2.01180284,1.34426767 0.429519485,3.32166778 0.449238273,5.51223961 C0.454317355,6.09008425 0.560978072,6.64511922 0.766531499,7.16185651 C0.884545458,7.45866364 1.19914976,7.66620336 1.53138146,7.66620336 C1.60756769,7.66620336 1.72289272,7.66620336 1.80027403,7.62903206 C2.21496611,7.48682371 2.41812939,7.05879065 2.26276924,6.65638325 C2.09725092,6.18836289 2.02345485,5.8315748 2.02345485,5.49928598 C2.02345485,4.55873965 2.44860388,3.66071502 3.19044858,3.03527987 C3.94334777,2.40027029 4.91763516,2.10993997 5.93524413,2.21694824 C6.90415367,2.31888769 7.79388929,2.81901053 8.37648985,3.58890684 C8.96058425,4.36077436 9.17300938,5.31962473 8.9590904,6.21962057 C8.94235931,6.29002074 8.92204298,6.35957612 8.89754388,6.42913149 C8.84436291,6.5969655 8.8709534,6.79042518 8.97074242,6.9599488 C9.07979329,7.14524206 9.26204269,7.2823816 9.47088259,7.33616734 C9.67285078,7.38770027 9.89573284,7.36517221 10.0812687,7.27308878 C10.2742738,7.17762614 10.4108115,7.01936655 10.4654863,6.83041248 C10.6062067,6.40012662 10.6773139,5.94111748 10.6773139,5.4666203 C10.6773139,3.96597018 9.95369412,2.57655233 8.69169169,1.65459164"}),(0,n.jsx)("path",{d:"M12.4033641,9.43002363 L7.46962051,8.60458861 L7.42312479,5.65704834 C7.42257778,4.87028142 6.91659487,4.17992696 6.16391111,3.93838024 C5.57177436,3.74839098 4.94490256,3.83320301 4.44493675,4.1709044 C3.94633846,4.50757465 3.64849231,5.04841246 3.64849231,5.61734909 L3.64849231,12.0692503 L3.27543248,11.4577787 C3.01177436,11.0154157 2.60233846,10.7096799 2.12288547,10.5967691 C1.65355214,10.4859205 1.14620171,10.5673813 0.72637265,10.8220752 C0.0398769231,11.2721719 -0.184396581,12.1996907 0.158577778,13.1957809 C0.165415385,13.210217 0.18237265,13.2532675 0.209176068,13.3208077 C0.319671795,13.5979291 0.578406838,14.2475532 0.952013675,15.0616455 L0.999603419,15.1523867 C1.20227009,15.608928 1.48534701,15.7290569 1.72739829,15.7290569 C1.84445812,15.7290569 1.95139829,15.7009581 2.03563761,15.6692503 C2.21204786,15.6022256 2.33922735,15.4880258 2.40322735,15.3387669 C2.47816752,15.1637293 2.46285128,14.9407433 2.36356923,14.7319356 C2.32992821,14.653826 1.5422359,12.8165757 1.50968889,12.7477465 C1.36828718,12.295072 1.41396239,11.9890784 1.49437265,11.9455124 C1.58845812,11.9011729 1.69403077,11.8869946 1.7730735,11.9009151 C1.9133812,11.9449968 1.98832137,12.0042879 2.05697094,12.1321504 L3.53963761,14.292666 C3.71905641,14.5633426 4.15146667,14.7654479 4.59946667,14.6061353 C4.93888547,14.4857487 5.12568889,14.2596692 5.12568889,13.9699162 L5.12568889,5.69416971 C5.12568889,5.5072739 5.23317607,5.33739205 5.39317607,5.27114071 C5.54469744,5.20927175 5.70797949,5.21984103 5.84117607,5.3018174 C5.97546667,5.38456713 6.05560342,5.52196778 6.05560342,5.66916434 L6.05560342,9.09129108 C6.05560342,9.4367261 6.34715897,9.7540623 6.69232137,9.78396563 L6.6942359,9.78396563 L12.1632274,10.6988528 C12.7868171,10.8042879 13.2397402,11.3141912 13.2397402,11.9112266 L13.2397402,15.0784017 C13.2397402,15.434406 13.5457915,15.72287 13.9235009,15.72287 C14.3009368,15.72287 14.6072615,15.434406 14.6072615,15.0784017 L14.6072615,11.9112266 C14.6072615,10.6893147 13.6809026,9.64579162 12.4033641,9.43002363"})]})}var MF,Dh,OF;const rfe=({title:e="Remove",desc:t="Trash can",width:s="10",height:o="13",className:r=null,focusable:a="false"})=>MF("svg",{className:OF("i i-trash",r),focusable:a,height:o,viewBox:"0 0 10 13",width:s,children:[Dh("title",{children:e}),Dh("desc",{children:t}),Dh("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"})]}),afe=null;var BF,Hh,DF;const ife=({title:e="Trash Folder",desc:t="Solid trash can",width:s="16",height:o="17",className:r,focusable:a="false"})=>BF("svg",{className:DF("i i-trashFolder",r),focusable:a,height:o,viewBox:"0 0 16 17",width:s,children:[Hh("title",{children:e}),Hh("desc",{children:t}),Hh("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"})]}),cfe=null;var HF,xa;const lfe=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="16",role:a="img",title:i,width:c="14"})=>HF("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&xa("title",{children:i}),o&&xa("desc",{children:o}),xa("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"}),xa("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"}),xa("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"}),xa("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"})]}),dfe=null;var FF,Fh,VF;const ufe=({title:e="Remove",desc:t="Trash can",width:s="13.3",height:o="16",className:r,focusable:a="false"})=>FF("svg",{className:VF("i",r),focusable:a,height:o,viewBox:"0 0 13.3 16",width:s,children:[Fh("title",{children:e}),Fh("desc",{children:t}),Fh("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"})]}),hfe=null;var zF,rd,$F;const mfe=({title:e="Upload",desc:t="Upload icon",width:s="15",height:o="15",className:r="",focusable:a="false"})=>zF("svg",{className:$F("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[rd("title",{children:e}),rd("desc",{children:t}),rd("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"}),rd("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"})]}),pfe=null;var _F,Yi;const ffe=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="14",role:a="img",title:i,width:c="14"})=>_F("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 14",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Yi("title",{children:i}),o&&Yi("desc",{children:o}),Yi("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"}),Yi("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"}),Yi("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"})]}),gfe=null;var UF,ad,GF;const vfe=({title:e="UploadXml",desc:t="UploadXml",width:s="18",height:o="21",className:r,focusable:a="false"})=>UF("svg",{className:GF("i i-uploadXml",r),focusable:a,height:o,viewBox:"0 0 18 21",width:s,children:[ad("title",{children:e}),ad("desc",{children:t}),ad("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"}),ad("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"})]}),Cfe=null;var WF,Vh,KF;const xfe=({title:e="Video Block",desc:t="Video Block",width:s="17",height:o="13",className:r,focusable:a="false"})=>WF("svg",{className:KF("i i-video-block",r),focusable:a,height:o,viewBox:"0 0 17 13",width:s,children:[Vh("title",{children:e}),Vh("desc",{children:t}),Vh("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"})]}),bfe=null;function QF(e){return(0,n.jsx)(zt,{viewBox:"0 0 16 12",...e,children:(0,n.jsx)("g",{transform:"translate(-1 -2)",children:(0,n.jsx)("path",{d:"M11,14 L2,14 C1.4,14 1,13.6 1,13 L1,3 C1,2.4 1.4,2 2,2 L11,2 C11.6,2 12,2.4 12,3 L12,4.5 L15.6,3 C16.3,2.8 17,3.3 17,4 L17,12 C17,12.7 16.3,13.2 15.6,12.9 L12,11.5 L12,13 C12,13.6 11.6,14 11,14 L11,14 L11,14 Z M3,12 L10,12 L10,10 C10,9.3 10.7,8.8 11.4,9.1 L15,10.6 L15,5.6 L11.4,7.1 C10.7,7.2 10,6.7 10,6 L10,4 L3,4 L3,12 L3,12 L3,12 Z"})})})}var ZF,W6,YF;function yfe(e){return ZF(YF,{...e,viewBox:"0 0 14 10",children:[W6("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.39102L8.99428 5.47435C8.84098 5.36485 8.75 5.18806 8.75 4.99967C8.75 4.81129 8.84098 4.63449 8.99428 4.525L13.0776 1.60833C13.2554 1.48132 13.4893 1.46434 13.6836 1.56433ZM10.3369 4.99967L12.8333 6.78281V3.21653L10.3369 4.99967Z",fillRule:"evenodd"}),W6("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 K6,id,XF;const Lfe=({title:e="Visible",desc:t="Eye",width:s="16",height:o="12",className:r=null,focusable:a="false"})=>K6("svg",{className:XF("i i-visible",r),focusable:a,height:o,viewBox:"0 0 16 12",width:s,children:[id("title",{children:e}),id("desc",{children:t}),K6("g",{children:[id("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"}),id("path",{d:"M8 4a2 2 0 1 1 .001 3.999A2 2 0 0 1 8 4"})]})]}),Sfe=null,JF=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="20",role:a="img",title:i="",style:c,width:d="20"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:U()("i i-xMarkFilled",s),focusable:"false",height:r,role:a,style:c,viewBox:"0 0 20 20",width:d,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{d:"M10 9.08L6.904 5.986a.65.65 0 1 0-.92.92L9.082 10l-3.096 3.096a.65.65 0 0 0 .92.92L10 10.918l3.096 3.096a.65.65 0 0 0 .92-.92L10.918 10l3.096-3.096a.65.65 0 1 0-.92-.92L10 9.082zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z"})]});var Q6;const Z6={"rise-course-navigation":!0},qF={"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,"ai-quiz-generation-toggle-prototype":!1},zh=(0,h.createContext)(Z6);zh.displayName="FeatureFlagsContext";const{Provider:eV}=zh;function tV({children:e,value:t}){const s=(0,h.useMemo)(()=>({...qF,...t,...Z6}),[t]);return(0,n.jsx)(eV,{value:s,children:e})}function $h(){return(0,h.useContext)(zh)}function sV(e){return $h()[e]}function Nfe(e){function t(s){const o=$h();return Q6(e,{...s,flags:o})}return t.displayName=`withFeatureFlags(${e.displayName||e.name})`,t}function kfe(e,t){return function(s){const o=r=>{const a=sV(e),i={...r,[t]:a};return Q6(s,{...i})};return o.displayName=`withFeatureFlag(${s.displayName||s.name})`,o}}const Y6=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});Y6.displayName="On";const X6=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});X6.displayName="Off";const cd=({children:e,featureFlags:t})=>{const s=$h(),o=(0,h.useMemo)(()=>{const i=[].concat(t??[]);return i.length&&i.every(c=>s[c])},[t,s]),{on:r=null,off:a=null}=(0,h.useMemo)(()=>{const i={};return h.Children.forEach(e,c=>{switch(c.type.displayName){case cd.On.displayName:i.on=c;break;case cd.Off.displayName:i.off=c;break;default:i.on=e}}),i},[e]);return o?r:a};cd.On=Y6,cd.Off=X6;var Yt,J6,nV,oV,q6,rV,aV,iV,_h,e5,cV,lV;const An=_("app-header"),t5=ye("CDN_URI"),dV=({disabled:e,onClick:t})=>(0,n.jsx)("button",{className:An("promo-btn"),disabled:e,onClick:t,type:"button",children:"New"}),s5=({children:e,disabled:t=!1,done:s=!1,onClick:o=()=>{},tooltipText:r="",icon:a=null,isNewPromo:i=!1,el:c="button",href:d=void 0,external:l=!1,capitalize:u=!0,...m})=>{const p=Vt(),g=(0,h.useCallback)(async v=>{t||(o&&await o(v),d&&(l?window.location.href=d:p(d)))},[p,d,o,t,l]),C=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(VO,{disabled:t,el:d?"a":c,header:!s,headerDone:s,onClick:g,style:u?null:{textTransform:"none",fontWeight:600,fontSize:"1.4rem",letterSpacing:0},...m,children:e}),i&&(0,n.jsx)(dV,{disabled:t,onClick:g}),a]});return(0,n.jsx)(Be.ArcTooltip,{anchorAt:"left-center","data-testid":"AppHeaderButtonTooltipContainer",isEnabled:t&&!!r,text:r,children:C})};s5.propTypes={children:xe().node,disabled:xe().bool,done:xe().bool,el:xe().string,href:xe().string,onClick:xe().func,tooltipText:xe().string,dataBa:xe().string};const Ife=()=>Yt("div",{className:An("divider")}),Efe=({href:e,label:t,onClick:s,xhref:o,...r})=>{const a=oV(),i=q6(async c=>{if(o||c.preventDefault(),s)return s();e&&a(e)},[e,o,a,s]);return Yt("div",{className:An("menu-btn"),...r,children:Yt("a",{"aria-label":t,className:An("menu-close"),href:o,onClick:i,children:Yt(iV,{})})})},jfe=({onClick:e,label:t,...s})=>{const o=lV("rise-lesson-nav-dropdown-release"),r=cV(),a=!!r?.defaultLocaleId,c=window.location.search.includes("fromDashboard")||!r?.id,d=r?.id?_h.course({courseId:r.id}):null,l=q6(u=>{e&&e(u)},[e]);return Yt(J6,{children:o?Yt(J6,{children:a?nV(e5,{className:An("menu-btn"),onClick:l,to:_h.courseLocales,...s,children:[Yt(aV,{className:An("back-icon"),icon:"fa-regular fa-chevron-left"}),Yt("div",{className:"visually-hidden-always",children:t})]}):c?Yt("a",{className:An("menu-btn"),href:_h.dashboard,onClick:l,...s,children:Yt("img",{alt:t,src:`${t5}/assets/rise/assets/articulate-a-logo.svg`})}):Yt(e5,{className:An("menu-btn"),onClick:l,to:d,...s,children:Yt("img",{alt:t,src:`${t5}/assets/rise/assets/articulate-a-logo.svg`})})}):Yt("div",{className:An("menu-btn"),children:Yt(rV,{ariaLabel:t,icon:"up-level-2",onClick:e,...s})})})},wfe=({children:e,...t})=>Yt("div",{className:An("owner-label"),...t,children:e});var ld=f(80588);const Rt=_("curtain"),uV={curtainLoading:"Your content is loading.",curtainOffline:"Your computer is offline.",curtainOfflineReconnecting:"Attempting to reconnect\u2026",curtainSessionTimedOut:"Your session has timed out.",curtainSessionTimedOutRefresh:"Refresh",curtainSessionTimedOutRestart:"Click refresh to restart your session.",curtainSomethingWrong:"Something went wrong.",curtainSomethingWrongRefresh:"Refresh",curtainSomethingWrongTryAgain:"Click to refresh and try again."},hV=({labels:e,loadingText:t,showHeader:s,status:o})=>{const r={...uV,...e},[a,i]=ld.useState(!1),c=()=>i(!0),d=ld.useRef(null);return ld.useEffect(()=>(d.current=setTimeout(c,1e4),()=>{d.current&&clearTimeout(d.current)}),[]),ld.useEffect(()=>{if(o==="error"){const l=new Error("There was a socket connection error. The renderReconnect curtain was displayed");yL.yf.logger.error(l.message,l)}},[o]),o==="fatalError"?(0,n.jsx)(pV,{labelCurtainSomethingWrong:r.curtainSomethingWrong,labelCurtainSomethingWrongRefresh:r.curtainSomethingWrongRefresh,labelCurtainSomethingWrongTryAgain:r.curtainSomethingWrongTryAgain,showHeader:s}):o==="error"&&a?(0,n.jsx)(gV,{labelCurtainSessionTimedOut:r.curtainSessionTimedOut,labelCurtainSessionTimedOutRefresh:r.curtainSessionTimedOutRefresh,labelCurtainSessionTimedOutRestart:r.curtainSessionTimedOutRestart,showHeader:s}):o==="error"?(0,n.jsx)(fV,{labelCurtainOffline:r.curtainOffline,labelCurtainOfflineReconnecting:r.curtainOfflineReconnecting,showHeader:s}):(0,n.jsx)(mV,{labelCurtainLoading:r.curtainLoading,showHeader:s,text:t})},n5=()=>window.location.reload(),mV=({labelCurtainLoading:e,showHeader:t,text:s})=>(0,n.jsx)("div",{className:Rt("container",{"show-header":t}),children:(0,n.jsxs)("div",{className:Rt(),children:[(0,n.jsx)("div",{className:Rt("spinner")}),(0,n.jsx)("div",{className:Rt("text"),children:s||e})]})}),pV=({labelCurtainSomethingWrong:e,labelCurtainSomethingWrongRefresh:t,labelCurtainSomethingWrongTryAgain:s,showHeader:o})=>(0,n.jsx)("div",{className:Rt("container",{"show-header":o}),children:(0,n.jsxs)("div",{className:Rt(),children:[(0,n.jsx)("div",{className:Rt("title"),children:e}),(0,n.jsx)("div",{className:Rt("description"),children:s}),(0,n.jsx)(Be.ArcButton,{onClick:n5,children:t})]})}),fV=({labelCurtainOffline:e,labelCurtainOfflineReconnecting:t,showHeader:s})=>(0,n.jsx)("div",{className:Rt("container",{"show-header":s}),children:(0,n.jsxs)("div",{className:Rt(),children:[(0,n.jsx)("div",{className:Rt("spinner",{reconnect:!0})}),(0,n.jsx)("div",{className:Rt("title"),children:e}),(0,n.jsx)("div",{className:Rt("description"),children:t})]})}),gV=({labelCurtainSessionTimedOut:e,labelCurtainSessionTimedOutRefresh:t,labelCurtainSessionTimedOutRestart:s,showHeader:o})=>(0,n.jsx)("div",{className:Rt("container",{"show-header":o}),children:(0,n.jsxs)("div",{className:Rt(),children:[(0,n.jsx)("div",{className:Rt("title"),children:e}),(0,n.jsx)("div",{className:Rt("description"),children:s}),(0,n.jsx)(Be.ArcButton,{onClick:n5,children:t})]})}),o5=hV,r5=new Intl.DisplayNames(["en"],{type:"language",fallback:"code"}),vV=(e,t)=>{const s=e?.toLowerCase();try{return t?.[s]?.authorDisplayName??r5.of(e)}catch(o){return console.warn(`Language ${e} invalid`,o),e}},CV=(e,t)=>{try{return t?.[e]?.learnerDisplayName??r5.of(e)}catch(s){return console.warn(`Language ${e} invalid`,s),e}},Uh=()=>{const e=ia(),t=l1(e);return(0,h.useCallback)(o=>vV(o,t),[t])},xV=()=>{const e=ia(),t=l1(e);return(0,h.useCallback)(o=>CV(o,t),[t])};var bV=f(58117);function cs(e){const{to:t,children:s}=e,o=(0,ge.zy)(),r=(0,h.useMemo)(()=>f0(t,o),[o,t]);return(0,n.jsx)(ge.N_,{...e,to:r,children:s})}function yV({children:e,locale:t,...s}){const o=(0,ge.zy)(),r=Ds(),a=(0,h.useMemo)(()=>{const i=t===r?"":t,c=new URLSearchParams(o.search);return c.set("locale",i),o.pathname+"?"+c.toString()+o.hash},[r,t,o]);return(0,n.jsx)(cs,{...s,to:a,children:e})}var Rn=f(42965),LV=f(11007),dd=f.n(LV);const SV={keys:["End"],keyCode:Rn.KEY_END},TV={keys:["Enter"],keyCode:Rn.KEY_RETURN},NV={keys:["Home"],keyCode:Rn.KEY_HOME},kV={keys:["Tab"],keyCode:Rn.KEY_TAB},IV={keys:[" "],keyCode:Rn.KEY_SPACE},EV={keys:["Escape","Esc"],keyCode:Rn.KEY_ESCAPE},jV={keys:["ArrowUp"],keyCode:Rn.KEY_UP},wV={keys:["ArrowDown"],keyCode:Rn.KEY_DOWN},AV={keys:["ArrowLeft"],keyCode:Rn.KEY_LEFT},RV={keys:["ArrowRight"],keyCode:Rn.KEY_RIGHT},Pn=({keyCode:e,keys:t})=>s=>s.keyCode?s.keyCode===e:Tn()(s.key,t),PV=e=>e.altKey||e.ctrlKey||e.metaKey,a5=Pn(SV),ba=Pn(TV),i5=Pn(NV),ud=Pn(kV),Gh=Pn(IV),ls=Pn(EV),br=Pn(jV),yr=Pn(wV),so=Pn(AV),no=Pn(RV),Xi=Nn()(Gh,ba),Afe=Nn()(ud,ba),MV=Nn()(no,br),OV=Nn()(so,yr),BV=Nn()(br,yr),c5=Zn()(Xi),l5=25,DV=dd()((e,t)=>{e.scrollTop!==0&&(t.preventDefault(),e.scrollTop-=l5)}),HV=dd()((e,t,s)=>{t&&(s.preventDefault(),e.scrollTop+=l5)}),FV=(e,t)=>s=>{const o=HV(e,t),r=DV(e);ns()([[yr,o],[br,r]])(s)},Mn=_("locales-dropdown"),VV=({backToStackCourseId:e,currentLocale:t,defaultLocale:s,locales:o,message:r,onChange:a,optionType:i,showMessageIndicator:c})=>{const d=(0,h.useRef)(null),l=(0,h.useRef)(null),[u,m]=(0,h.useState)(!1),[p,g]=(0,h.useState)(!1),C=(0,h.useMemo)(()=>o.filter(b=>b.localeCode!==s),[s,o]),v=(0,h.useMemo)(()=>o.find(b=>b.localeCode===s),[s,o]),x=(0,h.useMemo)(()=>o.find(b=>b.localeCode===t),[t,o]);(0,h.useLayoutEffect)(()=>{u&&p&&(d.current?.querySelector(`[data-locale="${t}"]`)?.focus(),g(!1))},[u,p,t]),(0,h.useEffect)(()=>{const b=T=>{ls(T)&&(l.current?.focus(),m(!1)),ud(T)&&setTimeout(()=>{d.current.contains(document.activeElement)||m(!1)},0)};return u&&document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[u]);const y=(0,h.useCallback)(b=>{!u&&document.activeElement===b.currentTarget&&g(!0),m(!u)},[u]),S=(0,h.useCallback)(b=>{u&&!l.current?.contains(b?.target)&&m(!1)},[u]);(0,bV.A)(d,S),(0,h.useEffect)(()=>{const b=()=>setTimeout(()=>{document.activeElement.tagName==="IFRAME"&&S()},0);return window.addEventListener("blur",b),()=>window.removeEventListener("blur",b)},[S]);const L=(0,h.useCallback)(b=>{document.activeElement===b.currentTarget&&l.current?.focus(),m(!1),a?.(b.currentTarget.getAttribute("data-locale"))},[a]);return(0,n.jsxs)("div",{className:Mn({isOpen:u}),children:[(0,n.jsx)("div",{className:Mn("trigger-wrap"),children:(0,n.jsxs)("button",{className:Mn("trigger"),onClick:y,ref:l,type:"button",children:[c&&(0,n.jsx)("div",{className:Mn("message-indicator")}),(0,n.jsx)(ie,{name:"globe"}),x.displayName,(0,n.jsx)(ie,{name:"chevron-down"})]})}),(0,n.jsxs)("div",{className:Mn("contents"),ref:d,children:[r,(0,n.jsx)("div",{className:Mn("grouping-header"),children:"Source"}),(0,n.jsx)(d5,{checked:s===t,locale:v,onClick:L,type:i}),(0,n.jsx)("div",{className:Mn("grouping-header"),children:"Translations"}),C.map(b=>(0,n.jsx)(d5,{checked:b.localeCode===t,locale:b,onClick:L,type:i},b.localeCode)),e&&(0,n.jsx)("a",{className:Mn("stack-button"),href:`/manage/locales/${e}`,children:"Back to Stack"})]})]})},d5=({checked:e,locale:t,onClick:s,type:o})=>o==="link"?(0,n.jsx)(yV,{className:Mn("option",{checked:e}),"data-locale":t.localeCode,locale:t.localeCode,onClick:s,children:t.displayName},t.localeCode):(0,n.jsx)("button",{className:Mn("option",{checked:e}),"data-locale":t.localeCode,onClick:s,type:"button",children:t.displayName},t.localeCode),zV=({hideBackToStack:e,...t})=>{const s=Me(),{currentLocale:o}=Qe(),r=Cl(),a=Ds(),i=Uh(),c=e?void 0:s?.id,d=(0,h.useMemo)(()=>r.map(l=>({localeCode:l.locale,displayName:i(l.locale)})),[i,r]);return(0,n.jsx)(VV,{backToStackCourseId:c,currentLocale:o,defaultLocale:a,locales:d,optionType:"link",...t})},u5=window.location.origin,$V=1e3,_V="course:ready",h5="localizedSharePreview:ready",UV="preview:selectLocale",Wh="localizedSharePreview:toggleCurtain",m5="localizedSharePreview:togglePreview",ya=_("localized-share-preview"),La=!!window.frameElement,p5=e=>(0,Et.HX)(e)&&pg(),GV=e=>p5(e)&&!La,WV=(e,t)=>window.parent?.postMessage({type:e,data:t});let f5=null;const KV=({children:e})=>{const t=at(),s=Vt(),o=(0,ge.zy)(),{currentLocale:r,setCurrentLocale:a}=Qe(),i=Ds(),c=rj(),d=ee(),u=!!(d&&"hasPassword"in d?d.hasPassword:void 0)||fg(),m=(0,h.useRef)(null),[p,g]=(0,h.useState)(!1),[C,v]=(0,h.useState)(!1),[x,y]=(0,h.useState)(!u),S=(0,h.useMemo)(()=>`${u5}/share/${window.shareId}#/?locale=${r}`,[]),[L,b]=(0,h.useState)(null),[T,N]=(0,h.useState)(r),[k,E]=(0,h.useState)(!1),[I,A]=(0,h.useState)(!La),R=(O,w)=>m.current?.contentWindow.postMessage({type:O,data:w});(0,h.useEffect)(()=>{La||R(UV,r)},[r]),(0,h.useEffect)(()=>{La&&(WV(h5),setTimeout(()=>E(!0),0))},[]),(0,h.useEffect)(()=>{const O=w=>{if(w.origin!==u5)return;const M=w.data?.type,z=w.data?.data;if(La)switch(M){case Wh:{A(z);break}case m5:{z?(N(r),b(o),t(q0(!0)),a(i),s("/",{replace:!0})):(t(q0(!1)),a(T),s(L.pathname+L.search+L.hash||"/",{replace:!0})),document.querySelector(".cover")?.scrollTo(0,0),document.querySelector(".page-wrap")?.scrollTo(0,0);break}}else switch(M){case _V:{A(!1);break}case h5:{y(!0);break}}};return window.addEventListener("message",O),()=>{window.removeEventListener("message",O)}},[i,t,s,r,o,T,L,a]);const j=(0,h.useCallback)(()=>{const O=!p;clearTimeout(f5),v(!0),R(Wh,!0),f5=setTimeout(()=>{v(!1),R(Wh,!1),g(O)},$V),setTimeout(()=>{R(m5,O)},0)},[p]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:ya("curtain",{hide:!I}),children:(0,n.jsx)(o5,{status:"loading"})}),La?k&&e:(0,n.jsxs)("div",{className:ya(),children:[x&&(0,n.jsx)(OO,{className:ya("header"),localesDropdown:!p&&!C&&(0,n.jsx)(zV,{hideBackToStack:!0}),title:c,children:(0,n.jsx)(s5,{capitalize:!1,className:ya("preview-button"),disabled:C,done:!0,onClick:j,children:p?"Close Learner Preview":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ie,{className:ya("preview-button-icon"),name:"play-regular"}),"Preview as Learner"]})})}),(0,n.jsx)("iframe",{allowFullScreen:!0,"aria-label":"Course preview",className:ya("iframe"),ref:m,src:S})]})]})},QV=(0,h.lazy)(()=>f.e("_b106").then(f.t.bind(f,63744,23))),ZV=({children:e})=>{const t=ee(),{setCurrentLocale:s,currentLocale:o}=Qe(),r=Ie(t?.title),a=ia()?.l10n?.languageCodeMetadata??{},i=Object.entries(a).map(([c,d])=>({code:c,learnerDisplayName:d.learnerDisplayName})).sort((c,d)=>c.learnerDisplayName.localeCompare(d.learnerDisplayName));return(0,n.jsx)(h.Suspense,{fallback:null,children:(0,n.jsx)(QV,{courseTitle:r,currentLocale:o,locales:i,setCurrentLocale:s,children:e})})};function YV({children:e}){const t=ee();return t&&p5(t)?(0,n.jsx)(KV,{children:e}):wn.isInstantLink?(0,n.jsx)(ZV,{children:e}):(0,n.jsx)(n.Fragment,{children:e})}const Kh=(0,h.createContext)(void 0);Kh.displayName="RiseComPartnerTrackingContext";function XV({children:e,onTrack:t}){return(0,n.jsx)(Kh.Provider,{value:t,children:e})}function g5(){return(0,h.useContext)(Kh)}var JV=f(5605),qV=f.n(JV),ez=f(79629),tz=f.n(ez);class oo{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 t=/iPhone|iPod/.test(window.navigator.userAgent)&&!window.MSStream,s=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),o=/CriOS/.test(window.navigator.userAgent);return t&&s&&!o}static get isSafari9(){if(!window||!window.navigator)return!1;const t=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),s=/version\/9./i.test(window.navigator.userAgent);return t&&s}static get isIe11(){return!!(window&&Object.hasOwnProperty.call(window,"ActiveXObject")&&!window.ActiveXObject)}static get isEdge(){return!window||!window.navigator?!1:/Edge/.test(window.navigator.userAgent)}static get isMobile(){return!window||!window.navigator?!1:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}static get isLocalFilesystem(){return!window||!window.navigator?!1:/file:/.test(window.location.protocol)}static get isFirefox(){return window?.navigator?.userAgent.includes("Firefox")??!1}}const sz=Zc()(en()),v5=e=>t=>`${e}/${t.id}`,nz=(e,t)=>V2()({data:(0,le.action)(t),method:"POST",url:bL(sz(`/${t}`),Ce()("url"),e),...Sn()(["headers","withCredentials"],e)}),oz=e=>(t,s)=>I2()(t,v5(s),Qh(e,s)),rz=e=>st()(Fe()({},["response","data"]),Ms()(Ce()("type"),(0,le.error)(e))),az=(e,t)=>s=>e.postRequest?e.postRequest(t,s):s,C5=e=>t=>s=>o=>ol(o,nz(t,s),e,g0()(rz(s),Zn()(Zr()("data"),Ce()("data"))),tz()(Ut()(Ce()("error"),Zo().Rejected,Zo().of)),az(t,{type:s,payload:o})),iz=({url:e,method:t,data:s,headers:o})=>{if(oo.isFirefox){const r=new Blob([JSON.stringify(s)],{type:"application/json"}),a=window.navigator.sendBeacon(e,r);return Promise.resolve({type:s.type,payload:{...s.payload,queued:a}})}return fetch(e,{method:t,credentials:"include",headers:{"Content-Type":"application/json",...o},body:JSON.stringify(s),keepalive:!0}).then(r=>r.json()).then(Qr()("data"))},cz=Zo().fromPromise(iz),Qh=fl()(3,C5(bi)),lz=fl()(3,C5(cz)),dz=e=>(t,s)=>qV()(t,v5(s),Qh(e,s)),uz=e=>({debounce:oz(e),send:Qh(e),fetchWithKeepAlive:lz(e),throttle:dz(e)}),hz=`${ye("RISE_RUNTIME_URI")}/ducks`,mz=uz({headers:()=>({"x-rise-authoring-client":"af63cec50ab389fc25c5f8f13b5315a4be24d881"}),postRequest:(e,t)=>t,url:hz,withCredentials:!0});var pz=f(98366),fz=f.n(pz);const gz=fz()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:Ub(),userRole:Kb(),subId:Qb(),subPlan:Zb(),subStatus:Yb()}}),vz=en()("rise/track/")("TRACK"),Cz=e=>({...e,context:{locale:navigator.language,device:R2(),channel:w2(),userAgentData:A2(),page:P2(),userAgent:M2(),...e.context}}),xz=(e,t)=>({...e,properties:{...j2(t),...e.properties}}),bz=e=>(t,s)=>{const o=s(),r=i0();let a=Cz(e);return a=xz(a,o),a.userId=a.userId??r,a.author=a.author??r,ke&&(a=gz(a)),t(mz.send(vz)(a))};function yz({children:e}){const t=at(),s=(0,h.useCallback)(o=>t(bz(o)),[t]);return(0,n.jsx)(XV,{onTrack:s,children:e})}var x5,b5,hd;const y5=(0,h.createContext)({enabled:!0,isActive:!1,onAuthorized:()=>{},onError:()=>{},onSubmitPassword:()=>{},onUnauthorized:()=>{},status:"authorized"});let Dfe;function Hfe(){}function Lz(){return(0,h.useContext)(y5)}function Sz({children:e}){if(!wn.isInstantLink)return(0,n.jsx)(n.Fragment,{children:e});const t=void 0;return t==null?(0,n.jsx)(n.Fragment,{children:e}):(0,n.jsx)(h.Suspense,{fallback:null,children:(0,n.jsx)(t,{children:e})})}function Ffe({children:e,PasswordGate:t}){const s=window.InstantLinks?.isPasswordProtected?.()===!0,[o,r]=b5(),[a,i]=b5(s?"required":"authorized"),c=hd(()=>{i("authorized")},[]),d=hd(()=>{i("error")},[]),l=hd(p=>{r(p),i("validating")},[]),u=hd(()=>{i("unauthorized")},[]),m=a==="authorized"||a==="validating";return x5(t,{onSubmitPassword:l,status:a,children:x5(y5.Provider,{value:{enabled:m,isActive:!0,onAuthorized:c,onError:d,onSubmitPassword:l,onUnauthorized:u,password:o,status:a},children:e})})}const ro=({id:e="portal",childType:t="other",attributes:s}={})=>{const o=document.querySelector('dialog[open][aria-modal="true"]');let r,a;if(o!=null&&t!=="dialog"?(e=`${e}-dialog`,r=o.querySelector(`#${e}`),a=o):(r=document.querySelector(`#${e}`),a=document.body),r==null&&(r=document.createElement("div"),r.setAttribute("id",e),a.appendChild(r)),s)for(const[i,c]of Object.entries(s))r.setAttribute(i,c);return r},L5=ro();function Tz(e){e?e.appendChild(L5):document.body.appendChild(L5)}function Nz(e){return function({Default:s,className:o,...r}){const a=`brand--${e}`,i=o?`${o} ${a}`:a;return(0,n.jsx)(s,{...r,className:i})}}const Sa=Nz("ui"),Zh=e=>e==="<p><br></p>"?"":e,Yh="data-change-path",Xh="data-l10n-id",S5=(e,t)=>{if(e)return t?["l10n","translations",t,e.getAttribute(Xh)]:JSON.parse(e.getAttribute(Yh))};let ao;const kz=()=>{const e=Ta();e&&e.classList.add("selected")},md=()=>{Ta()&&ao&&Ji(ao)},Iz=(e,t)=>s=>{const o=document.elementsFromPoint(s.clientX,s.clientY),r=t?o.find(a=>a.getAttribute(Xh)):o.find(a=>a.getAttribute(Yh));r!=null&&(e&&ao!==r&&(ao=r,e(S5(r,t))),Ji(r))},Ez=(e,t)=>s=>{s.stopPropagation(),s.preventDefault();const o=document.elementsFromPoint(s.clientX,s.clientY),r=t?o.find(a=>a.getAttribute(Xh)):o.find(a=>a.getAttribute(Yh));if(r){Ji(r),N5();const a=S5(r,t);a&&(e(a),kz())}},Jh=()=>document.getElementById("target-container"),Ta=()=>document.getElementById("target-highlight"),T5=()=>{if(Jh())return;const t=document.createElement("div");t.classList.add("target-container"),t.id="target-container",document.body.appendChild(t);const s=document.createElement("div");s.classList.add("target-highlight"),s.id="target-highlight",t.appendChild(s)},N5=()=>{const e=Ta();e&&e.classList.add("selected")},jz=({top:e,left:t,width:s,height:o})=>{const r=document.querySelector("[data-page=true]")?.getBoundingClientRect().width??window.innerWidth-20;return s<r&&(e=e-10,o=o+20,t=t-20,s=s+40),{top:e,left:t,width:s,height:o}},Ji=e=>{const{top:t,left:s,width:o,height:r}=jz(e.getBoundingClientRect()),a=Ta();a&&(e!==ao&&a.classList.contains("selected")&&a.classList.remove("selected"),a.classList.add("active"),Object.assign(a.style,{top:`${t}px`,left:`${s}px`,width:`${o}px`,height:`${r}px`}),ao=e)},wz=()=>{window.removeEventListener("scroll",md,{capture:!0}),pd()},pd=()=>{Ta()?.classList?.remove("active"),Ta()?.classList?.remove("selected")};let Na,fd;const Az=({locale:e})=>({isActive:t},s)=>{const o=!!Jh();if(t){if(Na)return Na;T5();const r=Iz(s,e);let a;return Na=new Promise((i,c)=>{a=Ez(i,e),fd=c,document.body.classList.add("target-mode"),window.addEventListener("mousemove",r,!0),window.addEventListener("click",a,!0),window.addEventListener("resize",pd,!0),window.addEventListener("scroll",md,!0)}).finally(()=>{Na=null,fd=null,document.body.classList.remove("target-mode"),window.removeEventListener("mousemove",r,!0),window.removeEventListener("click",a,!0),window.removeEventListener("resize",pd,!0),window.removeEventListener("scroll",md,!0)}),Na}else pd(),Jh()?.remove(),ao=null;return o&&fd!=null&&fd(new Error("cancelled")),Promise.resolve()},Rz=e=>{let t=e.findIndex(s=>s==="items");return t===-1?e:e.slice(0,t+2)},k5=e=>{const t=(0,Ur.Ce)(e);return t?t.type==="translation"||t.type==="caption"&&t.l10nId?document.querySelector(`[data-l10n-id='${t.l10nId}']`)??document.querySelector(`[data-l10n-id*='${t.l10nId}']`):document.querySelector(`[data-change-path='${JSON.stringify(Rz(e))}']`):null},Pz=e=>{T5(),window.addEventListener("scroll",md,{capture:!0}),document.body.classList.add("target-mode");const t=k5(e);t&&Ji(t)},Mz=e=>{if(!Na)return;const t=k5(e);t&&(ao!==t&&(ao=t),Ji(t),N5(),t.scrollIntoView({behavior:"smooth",block:"center"}))},Oz=e=>["course",e],I5=(e,t)=>["lessons",{id:e},t],Bz=(e,t)=>[...I5(e,"items"),{id:t}],ka=e=>JSON.stringify(Oz(e)),E5=(e,t)=>JSON.stringify(I5(e,t)),Dz=(e,t)=>JSON.stringify(Bz(e,t)),ds={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"},Ia=(e,t)=>{const s={};for(let o=0;o<e.length;o++){const r=e[o];if(typeof r=="object"&&r.id){const a=e[o-1],i=a==="items"?t.shift():a.replace(/s$/,"");s[`${i??"item"}Id`]=r.id}}return s};function qh(e,t){const s=(0,h.useMemo)(()=>matchMedia(`(${e}: ${t*.0625}em)`),[e,t]),[o,r]=(0,h.useState)(s.matches);return(0,h.useEffect)(()=>{const a=s.addEventListener??s.addListener,i=s.removeEventListener??s.removeListener;return a.call(s,"change",c),()=>i.call(s,"change",c);function c(){r(s.matches)}},[s]),o}const Hz="matches";function Fz(e,t,s,o="withPxToEmMedia"){return r=>{function a(i){const c=qh(e,t);return(0,n.jsx)(r,{...i,[s??Hz]:c})}return a.displayName=`${o}(${r.displayName||r.name})`,a}}function xt(e){return qh("max-width",e-1)}function Vfe(e){return qh("min-width",e)}function Vz(e,t,s){return Fz("min-width",e,t,s)}const zz=()=>xt(1200),$z=()=>xt(768),em=()=>xt(480),tm=_("cover");function _z(e,t,s){return e===1?t:s}function Uz(){const e=m3(),t=ue(),s=_z(e,t?.coverLesson||"Lesson",t?.coverLessons||"Lessons");return(0,n.jsxs)("li",{className:tm("num-lessons"),role:"listitem",children:[(0,n.jsx)("span",{className:tm("num-lessons-value"),children:e}),"\xA0",(0,n.jsx)("span",{className:tm("num-lessons-units"),children:s})]})}var Gz=f(22630),dn=f.n(Gz);const Wz=36e5,sm=_("cover");function Kz(e){return Math.round(10*e)/10}function j5(e,t,s){return e===1?t:s}function Qz(){const{showTimeToComplete:e,timeToComplete:t}=ee(),s=ue();if(!e)return null;const o=t>=Wz,r=o?Kz(dn().duration(t).asHours()):dn().duration(t).asMinutes(),a=o?j5(r,s?.coverHour||"Hour",s?.coverHours||"Hours"):j5(r,s?.coverMinute||"Minute",s?.coverMinutes||"Minutes");return(0,n.jsxs)("li",{className:sm("time-to-complete"),role:"listitem",children:[(0,n.jsx)("span",{className:sm("time-to-complete-value"),children:r}),"\xA0",(0,n.jsx)("span",{className:sm("time-to-complete-units"),children:a})]})}const nm=_("cover");function om(){const e=ue();return ke?(0,n.jsxs)("section",{className:nm("course-length-section"),children:[(0,n.jsx)("h2",{className:nm("course-length-title"),children:e?.a11yCoverCourseLength||"Course Length"}),(0,n.jsxs)("ul",{className:nm("course-length-list"),role:"list",children:[(0,n.jsx)(Uz,{}),(0,n.jsx)(Qz,{})]})]}):null}const Zz=_("cover"),Yz="MMMM D, YYYY";function w5({format:e=Yz}){const{publishedAt:t}=ee(),s=ue(),o=Zz("details-content-published-at");if(!t)return null;const r=dn()(t);return r.isValid()?(0,n.jsxs)("div",{className:o,children:[s?.coverPublished||"Published"," ",r.format(e)]}):null}var Xz=f(91104),qi=f.n(Xz);const A5=qi()(async()=>(await f.e("math").then(f.bind(f,95861))).browserAdaptor(),{promise:!0}),R5=qi()(async()=>{const[{TeX:e},{AllPackages:t}]=await Promise.all([f.e("math").then(f.t.bind(f,96025,23)),f.e("math").then(f.bind(f,26020))]);return new e({packages:t})}),P5=qi()(async()=>{const e=await f.e("math").then(f.t.bind(f,78847,23));return new e.SVG({fontCache:"local"})},{promise:!0}),M5=qi()(async()=>{const[e,t,s,{RegisterHTMLHandler:o},{mathjax:r}]=await Promise.all([A5(),R5(),P5(),f.e("math").then(f.bind(f,67684)),f.e("math").then(f.bind(f,78626))]);return o(e),r.document(document,{InputJax:t,OutputJax:s})},{promise:!0}),Jz=qi()(async e=>{const t=new CSSStyleSheet;e.adoptedStyleSheets.push(t);const[s,o]=await Promise.all([P5(),M5()]),r=s.styleSheet(o);r instanceof HTMLStyleElement&&await t.replace(r.innerText)},{promise:!0});class qz extends HTMLElement{static observedAttributes=["long-description","short-description","tex"];_ready;_anchor=this;_renderController;constructor(){super(),this._ready=Jz(this.ownerDocument)}get longDescription(){return this.getAttribute("long-description")??null}set longDescription(t){t==null?this.removeAttribute("long-description"):this.setAttribute("long-description",t)}get shortDescription(){return this.getAttribute("short-description")??null}set shortDescription(t){t==null?this.removeAttribute("short-description"):this.setAttribute("short-description",t)}get tex(){return this.getAttribute("tex")??""}set tex(t){this.setAttribute("tex",t)}disconnectedCallback(){this._renderController?.abort()}attributeChangedCallback(t){t==="tex"?this._renderTex():this._renderAria()}async _renderTex(){this._renderController?.abort();const t=this._renderController=new AbortController,[s,o,r]=await Promise.all([M5(),A5(),R5(),this._ready]);if(t.signal.aborted)return;r.reset();const{tex:a}=this,i=a.includes("begin{")?a:String.raw`\begin{align*}${a}\end{align*}`,c=s.convert(i),d=o.firstChild(c),l=document.evaluate("//@data-mjx-error",d,null,XPathResult.STRING_TYPE).stringValue;if(l.length>0){let u=l;if(l===String.raw`Missing \begin{align*} or extra \end{align*}`){const m=s.convert(a),p=o.firstChild(m);u=document.evaluate("//@data-mjx-error",p,null,XPathResult.STRING_TYPE).stringValue??"An error occured"}this.dispatchEvent(new e$("matherror",{bubbles:!1,composed:!1,detail:{errorMessage:u}})),this._anchor.replaceChildren()}else this._anchor.replaceChildren(d);await this._renderAria()}async _renderAria(){if(await this._ready,this._renderController?.signal.aborted||this.firstElementChild==null)return;const t=[this.shortDescription,this.longDescription].filter(s=>(s?.length??0)>0).join(`

`);this.firstElementChild.ariaLabel=t.trim().length===0?null:t}}customElements.define("rise-math",qz);class e$ extends CustomEvent{}var un=f(63955);function rm(e){if(e==null)return{value:e};let t;if(typeof e=="string"?t=e:t=e.innerHTML,!t.includes("data-editor-id"))return{value:e};const s=t.match(/^<[^>]+data-editor-id=["']([^"']+)["'][^>]*>/);if(s){const o=s[1],r=t.match(/^<[^>]*>(.*)<\/[^>]*>$/s),a=r?r[1]:t;return{editorId:o,value:typeof e=="string"?a:e}}return{value:e}}const O5=(e="")=>e.split(".").slice(-2).join("."),B5=ce()(O5,ye),t$=e=>e.includes("#/lessons/"),zs=e=>{if(!e||s$(e)||t$(e))return!1;e.slice(0,2)==="//"&&(e=`https:${e}`);try{const{hostname:t}=new URL(e),s=O5(t);return s!==B5("ARTICULATE_DOMAIN")&&s!==B5("RISE_DOMAIN")}catch{return!1}},s$=e=>e?e.slice(0,7)==="mailto:":!1,am=_("external-link-disabled-popover");function gd(e={}){const{delay:t=200}=e,s=h.useRef(new Map),o=h.useCallback(c=>{const d=s.current.get(c);d&&clearTimeout(d);const l=setTimeout(()=>{const u=`trial-external-link-popover-${c}`;Be.ArcPopover.handlePopover(u,"show"),s.current.delete(c)},t);s.current.set(c,l)},[t]),r=h.useCallback(c=>{const d=s.current.get(c);d&&clearTimeout(d);const l=setTimeout(()=>{const u=`trial-external-link-popover-${c}`;Be.ArcPopover.handlePopover(u,"hide"),s.current.delete(c)},t);s.current.set(c,l)},[t]),a=h.useCallback(c=>{const d=`trial-external-link-popover-${c}`;Be.ArcPopover.handlePopover(d,"show")},[]),i=h.useCallback(c=>{const d=`trial-external-link-popover-${c}`;Be.ArcPopover.handlePopover(d,"hide")},[]);return h.useEffect(()=>{const c=s.current;return()=>{c.forEach(d=>clearTimeout(d)),c.clear()}},[]),{handleMouseEnter:o,handleMouseLeave:r,handleFocus:a,handleBlur:i}}function n$(e){return t=>{const{handleMouseEnter:s,handleMouseLeave:o,handleFocus:r,handleBlur:a}=gd(),i=h.useId();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e,{...t,attachmentId:i,onLinkBlur:a,onLinkFocus:r,onLinkMouseEnter:s,onLinkMouseLeave:o}),t.externalLinksDisabled&&(0,n.jsx)(vd,{anchorId:i})]})}}const vd=({anchorId:e})=>{const t=`trial-external-link-popover-${e}`;return h.useEffect(()=>{const s=o=>{o.key==="Escape"&&Be.ArcPopover.handlePopover(t,"hide")};return document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}},[t]),(0,n.jsx)(Be.ArcPopover,{alternateAnchorId:e,anchorAt:"top-center",boundary:"flip",className:am(),hasTail:!0,headerSlot:(0,n.jsx)("div",{className:am("header"),children:"Subscribe to unlock full access"}),hidePopoverButton:!0,id:t,offset:8,popover:"manual",variant:"common",children:(0,n.jsx)("div",{className:am("content"),children:"To protect learners from phishing, scams, or malicious redirects, external links are disabled when sharing with Quick Share during your trial."})})},o$=({allowTabNavigation:e=!0,className:t="","data-testid":s,id:o,ref:r,tagName:a="div",value:i})=>{const c=Me(),d=c&&"externalLinksDisabled"in c?c.externalLinksDisabled:!1,l=as(),u=(0,h.useRef)(null),m=Ie(i),[p,g]=(0,h.useState)([]),{handleMouseEnter:C,handleMouseLeave:v,handleFocus:x,handleBlur:y}=gd(),{currentLocale:S}=Qe(),L=Ds(),b=(0,h.useMemo)(()=>{const T=n0(m),N=Array.prototype.concat(m$,p$,c$,a$,i$(S,L),d?l$:[],e?u$:d$,h$(l?.a11yNoticeLinkNewTab));return r$(N,T)},[e,S,L,d,l,m]);return(0,h.useLayoutEffect)(()=>{if(!d||!u.current){g([]);return}const T=[];u.current.querySelectorAll("[data-tooltip-target]").forEach((k,E)=>{const I=k.nextElementSibling;if(I?.hasAttribute("data-external")){const A=I.getAttribute("data-external-text")||"",R=I.getAttribute("data-external-id")||`link-${E}`;T.push({placeholder:k,text:A,id:R})}}),g(T)},[b,d]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"aria-hidden":e?void 0:!0,className:`${t} brand--linkColor`,"data-l10n-id":jt(i),"data-testid":s,id:o,ref:T=>{u.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:b}),[b])})}),p.map(({placeholder:T,text:N,id:k})=>(0,n.jsxs)(h.Fragment,{children:[(0,un.createPortal)((0,n.jsx)("span",{id:k,onBlur:()=>y(k),onFocus:()=>x(k),onMouseEnter:()=>C(k),onMouseLeave:()=>v(k),role:"button",style:{cursor:"pointer",color:"var(--arc-color-text-disabled)",textDecoration:"underline"},tabIndex:0,children:N}),T),(0,n.jsx)(vd,{anchorId:k})]},k))]})};function r$(e,t){const s=document.createElement("div");s.innerHTML=t;for(const o of e)o(s);return s.innerHTML}const D5=e=>e.getAttribute("data-link-type")==="lesson"?!0:(e.getAttribute("href")??"").startsWith("#/lessons/");function a$(e){for(const t of e.querySelectorAll("a")){D5(t)?t.removeAttribute("target"):t.setAttribute("target","_blank");const o=new Set((t.getAttribute("rel")??"").split(/\s+/));o.delete("opener"),o.add("noopener"),o.add("noreferrer"),o.add("nofollow"),t.setAttribute("rel",Array.from(o).join(" "))}}function i$(e,t){return s=>{if(!(!e||e===t)){for(const o of s.querySelectorAll("a"))if(D5(o)){const r=o.getAttribute("href");if(r){const a=r.includes("?")?"&":"?";o.setAttribute("href",`${r}${a}locale=${encodeURIComponent(e)}`)}}}}}function c$(e){for(const t of e.querySelectorAll("table"))if(!t.parentElement.classList.contains("rise-table-wrap")){const s=document.createElement("div");s.className="rise-table-wrap",t.parentNode.replaceChild(s,t),s.appendChild(t)}}function l$(e){let t=0;const s=[];for(const o of e.querySelectorAll("a"))if(zs(o.href)){const r=o.textContent||"",a=`external-link-anchor-${Date.now()}-${t++}`;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),s.push({placeholder:i,text:r,id:a})}return s}function d$(e){for(const t of e.querySelectorAll("a"))t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}function u$(e){for(const t of e.querySelectorAll("a"))t.removeAttribute("aria-hidden"),t.hasAttribute("data-external")?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}function h$(e="(opens in a new tab)"){return t=>{for(const s of t.querySelectorAll('a[target="_blank"]')){const o=document.createElement("span");o.className="visually-hidden-always",o.textContent=e,s.appendChild(o)}}}function m$(e){return rm(e).value}function p$(e){for(const t of e.querySelectorAll("rise-math")){const{shortDescription:s,longDescription:o}=t,r=t.querySelector('[slot="short-description"]'),a=t.querySelector('[slot="long-description"]');s==null&&r!=null&&(t.shortDescription=r.textContent),o==null&&a!=null&&(t.longDescription=a.textContent)}return e}const Le=o$,H5=_("cover");function f$(){const e=ee(),t=zz(),s=Ie(e?.description);if(!s)return null;const o=ka("description"),r=(0,Et.uW)(e?.description)?{"data-l10n-id":e?.description?.l10nId}:{"data-change-path":o};return(0,n.jsx)("div",{...r,children:(0,n.jsxs)("section",{className:H5("details-content-section"),children:[t?(0,n.jsx)(om,{}):(0,n.jsx)(w5,{}),(0,n.jsx)(Le,{className:H5("details-content-description"),value:Zh(s)},"text")]})})}const im=e=>{if(!e)return"";const t=dn()(e),s=dn()(),o=dn()(s).add(24,"hours");return t.isBefore(s)?"Overdue":t.isBefore(o)?`Due in ${s.to(t,!0)}`:`Due ${t.format("MMM D")}`},F5=e=>dn()(e).isSameOrBefore(dn()().add(3,"d"),"days");function g$({Default:e,...t}){const{dueAt:s}=t,r=s&&F5(s)?"brand--background":"brand--color";return(0,n.jsx)(e,{...t,className:r})}const v$=({children:e,disabled:t,onClick:s,to:o,...r},a)=>t?(0,n.jsx)("a",{"aria-disabled":"true",ref:a,role:"link",...r,children:e}):(0,n.jsx)(cs,{onClick:s,ref:a,to:o,...r,children:e}),C$=(0,h.forwardRef)(v$);function x$(){return!(typeof document>"u"||!("startViewTransition"in document)||oo.isFirefox)}function b$(e){if(!x$()){const t=e();return Promise.resolve(t)}return new Promise(t=>{try{document.startViewTransition(async()=>{await e()}).finished.then(()=>t()).catch(()=>t())}catch{const s=e();Promise.resolve(s).then(()=>t()).catch(()=>t())}})}let cm=!1;function io(e,t="default"){return cm?Promise.resolve():(cm=!0,b$(()=>{document.documentElement.classList.add(`transition-${t}`),e()}).then(()=>{document.documentElement.classList.remove(`transition-${t}`)}).finally(()=>{cm=!1}))}const V5=_("cover"),Xt=Re("CoverAction",()=>{const e=ee(),{trackingQuizId:t,theme:s}=e,o=Vt(),r=window.viewType==="preview",a=h3(),i=Tw(),c=ma(),d=a?.id,l=s?.showStartButton??!0,u=Fb()?c===100:Hb(),m=i!=null,p=m?i:d,g=!r&&ke&&(u||!m&&!t),{courseCTALabel:C}=Jw({isCourseComplete:u,percentCourseComplete:c}),v=U()("cover__header-content-action-link","overview__button-enrolled",{"overview__start-again":g}),x=y=>{y.preventDefault(),io(()=>{o(Os(p))},"cover-to-lesson")};return l&&C?(0,n.jsx)("div",{className:V5("header-content-action-wrapper"),children:(0,n.jsx)(C$,{className:v,onClick:x,to:Os(p),children:(0,n.jsx)("span",{className:V5("header-content-action-link-text"),children:C})})}):null}),ec=en()("partner-content-course-author__"),y$=({partnerContentAuthors:e,darkText:t,isImage:s,learn:o,lesson:r,isOnePage:a,selectedContentId:i})=>{const c=Hs()(Pe()("id",i),e),d=Ft()(["data","authors"],c),u=(r?d:e).filter(v=>v.name),m=U()(ec("author-container"),{[ec("author-container-padding-top")]:t}),p=U()({[ec("gray-text")]:!o&&!a}),g=U()(ec("author-image")),C=v=>`url(${da({width:"76",height:"76",imageKey:v.image})})`;return(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Authors"}),(0,n.jsx)("ol",{className:m,"data-testid":"partner-content-course-author-container",role:"list",children:u.map(v=>(0,n.jsxs)("li",{className:ec("author"),"data-testid":"partner-content-course-author",role:"listitem",children:[(0,n.jsx)("div",{"aria-hidden":"true",className:g,"data-testid":"partner-content-course-author-image",disabled:s,style:{backgroundImage:C(v)}}),(0,n.jsx)("span",{className:p,children:v.name})]},v.name))})]})};function L$(e){return e.partnerContent}function S$(){return ae(L$)}function T$(e){return e?.partnerContent?.content??[]}function Lr(){return ae(T$)}function lm(){const t=ee()?.selectedAuthorId,s=Lr();return(0,h.useMemo)(()=>s?.find(o=>o.id===t),[s,t])}function N$(){const e=lm();return(0,h.useMemo)(()=>e?.data?.authors??null,[e])}function k$(){return Lr()?.[0]?.data?.authors}const Ea=_("cover"),I$=()=>{const e=C1();if(e==null)return null;const{avatar:t,authorName:s,title:o}=e;return(0,n.jsxs)("div",{className:Ea("author-with-title"),children:[(0,n.jsx)(z5,{avatar:t}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:Ea("author-name"),children:s}),(0,n.jsx)("div",{className:Ea("author-title"),children:o})]})]})},z5=({avatar:e})=>{const t=Ea("header-content-authors-avatar");return e?(0,n.jsx)("div",{className:t,"data-testid":"cover-header-content-authors-avatar",style:{backgroundImage:`url(${mt(e)})`}}):(0,n.jsx)("div",{className:t,"data-testid":"cover-header-content-authors-avatar",children:(0,n.jsx)(jh,{decorative:!0})})},On=Re("CoverAuthors",({className:e})=>{const{color:t,partnerContentId:s,selectedAuthorId:o,theme:r,themeId:a}=ee(),{accentContrast:i,coverPageType:c}=r??{},{authorName:d,avatar:l}=C1()??{},u=ue(),m=N$(),p=!!s&&!!m,C=xt(768)&&Yj(a,c),v=c===ne.LEFT_OVERLAY||c===ne.CENTERED_OVERLAY||C;if(o==="none")return null;const x=d||"Unknown User",y=Ea("header-content-authors").mix(e),S=Ea("header-content-authors-name");return p?(0,n.jsx)("div",{className:y,"data-testid":"cover-authors",children:(0,n.jsx)(y$,{accentContrast:i,color:t,isImage:v,learn:!0,partnerContentAuthors:m})}):(0,n.jsxs)("div",{className:y,"data-testid":"cover-authors",children:[(0,n.jsx)(z5,{avatar:l,isImage:v}),(0,n.jsxs)("div",{className:S,"data-testid":"cover-header-content-authors-name",children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:u?.a11yAuthorPrefix}),(0,n.jsx)("span",{children:x})]})]})}),E$=_("cover"),$s=Re("CoverContentNoImage",({children:e})=>{const t=E$("header-content");return(0,n.jsx)("div",{className:t,"data-testid":"cover-header-content",children:e})}),Sr=e=>{const t=Me(),s=is();return j$(t,e,s)},j$=(e,t,s)=>{const{media:o,alpha:r}=t==="coverImage"?kg(e,s):Ig(e,s),a="image"in o?yg(o?.image?.alt):void 0;return{alpha:r,ariaLabel:a,media:o,role:Lg(a)}},w$=_("cover"),dm=()=>{const e=u3(),{alpha:t,ariaLabel:s,media:o,role:r}=Sr("coverImage"),a=w$("header-image"),i=ua({alpha:t,color:e,media:o});return(0,n.jsx)("div",{"aria-label":s,className:a,role:r,style:i})},A$=_("cover"),um=({children:e})=>{const t=u3(),s=`overlay-${t.toLowerCase()}`,o=A$("header-content",{[s]:!!t});return(0,n.jsxs)("div",{className:o,"data-testid":"cover-header-content",children:[e,(0,n.jsx)(dm,{})]})},R$=_("cover"),tc=({hasOverlay:e=!1})=>{const{alpha:t,ariaLabel:s,media:o,role:r}=Sr("coverImage"),a=ua({alpha:t,hasOverlay:e,media:o}),i=R$("header-graphic",{"dot-com":ke});return(0,n.jsx)("div",{"aria-label":s,className:i,"data-testid":"cover-header-graphic",role:r,style:a})},P$=_("cover");function Jt({children:e}){const t=!!lm(),s=P$("header-content-info",{rbc:t,"rise-com":ke});return(0,n.jsx)("div",{className:s,"data-testid":"cover-header-content-info",children:e})}const $5=Tt("AlignLeft"),Cd=Tt("ArrowDown"),_5=Tt("ArrowRight"),U5=Tt("ArrowUp"),M$=Tt("Category"),O$=Tt("ChevronDown"),B$=Tt("ChevronUp"),D$=Tt("LessonsComplete"),H$=Tt("LessonsRequirement"),F$=Tt("QuestionBox"),V$=Tt("QuizFailed"),z$=Tt("QuizPassed"),$$=Tt("QuizRequirement"),sc=Tt("Search"),G5=Tt("ToggleDown"),_$=Tt("Touch"),U$=Tt("VideoCamera"),xd=Tt("X"),G$=e=>{const t=e.indexOf("-");return t===-1?e:e.slice(0,t)},Zfe=(e,t)=>{const s=G$(e);return t.find(({iso639Code:o})=>o===e)||t.find(({iso639Code:o})=>o===s)||t.find(({defaultId:o,defaultSet:r})=>r&&o===1)},ja=({percent:e,label:t,isRTL:s})=>{if(t.includes("%")){const o=s?`%${e}`:`${e}%`;return t.replace("%",o)}return`${e} ${t}`},Tr=_("cover"),W$=Re("CoverProgress",({percentComplete:e})=>{const t=rn(),s=ue(),o=V3();if(e===0||window.isPublicShare||!ke)return null;const r=ja({percent:e,label:s.progressSummaryPercentComplete,isRTL:t});return(0,n.jsxs)("div",{className:Tr("progress"),children:[(0,n.jsx)("div",{className:Tr("progress-text"),children:r}),(0,n.jsx)("div",{className:Tr("progress-outer"),children:(0,n.jsx)("div",{className:Tr("progress-inner"),style:{width:`${e}%`}})}),o&&(0,n.jsxs)("div",{className:Tr("progress-next-lesson"),children:[(0,n.jsx)(_5,{className:Tr("progress-next-lesson-icon").toString(),decorative:"true"}),(0,n.jsx)("span",{"aria-hidden":"true",className:Tr("progress-next-lesson-text"),children:o}),(0,n.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",o]})]})]})});function Pt(){const e=ma();return(0,n.jsx)(W$,{percentComplete:e})}const K$=_("cover"),qt=Re("CoverTitle",()=>{const e=ee(),t=Ie(e.title),s=K$("header-content-title"),o=ka("title"),r=(0,Et.uW)(e.title)?{"data-l10n-id":e.title.l10nId}:{"data-change-path":o};return(0,n.jsx)("h1",{...r,className:s,"data-testid":"cover-header-content-title",tabIndex:-1,children:t})}),Q$={SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"LEFT_OVERLAY"};function W5(){const e=ee(),t=$z(),s=e?.theme?.coverPageType||"CENTERED";return t?Q$[s]??s:s}const Z$=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(um,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(On,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Pt,{}),(0,n.jsx)(Xt,{})]})})}),Y$=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)($s,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(On,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Pt,{}),(0,n.jsx)(Xt,{})]})})}),X$=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(tc,{}),(0,n.jsx)($s,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(On,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Pt,{}),(0,n.jsx)(Xt,{})]})})]}),J$=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($s,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(On,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Pt,{}),(0,n.jsx)(Xt,{})]})}),(0,n.jsx)(tc,{})]});function q$(){switch(W5()){default:case ne.LEFT_OVERLAY:case ne.CENTERED_OVERLAY:return(0,n.jsx)(Z$,{});case ne.LEFT:case ne.CENTERED:return(0,n.jsx)(Y$,{});case ne.SPLIT_LEFT_IMAGE:case ne.TWO_THIRDS_LEFT_IMAGE:return(0,n.jsx)(J$,{});case ne.SPLIT_RIGHT_IMAGE:case ne.TWO_THIRDS_RIGHT_IMAGE:return(0,n.jsx)(X$,{})}}function e_(){return(0,n.jsx)("header",{className:"cover__header","data-testid":"cover-header",children:(0,n.jsx)(q$,{})})}var t_=f(80588);const s_=_("cover");function n_({children:e}){const t=ee(),{themeId:s}=t?.theme??{},o=W5(),r=t_.useMemo(()=>Ca()(o),[o]),a=s_({layout:r});return(0,n.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":s,id:"cover",children:e})}var K5=f(80588);class o_ extends K5.Component{static propTypes={id:xe().any.isRequired,lessonProgress:xe().object.isRequired,type:xe().string.isRequired,items:xe().array};refProgressWrap=K5.createRef(null);constructor(t){super(t),this.state={isSticky:!1},this.portal=ro()}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 t=document.getElementsByClassName("page-wrap")[0],s=t.scrollTop,o=t.scrollTop,r=this.refProgressWrap.current;if(!r)return;const i=r.getBoundingClientRect().top+o,c=s>i;this.state.isSticky!==c&&this.setState({isSticky:c})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:t,lessonProgress:s}=this.props,o=Lt()(-1,"activeIndex",s),r=Qt()(t);return o===-1?0:la()(o)===r?100:ir()("%","",Ft()([o,"linePosition"],t))}processProgressValue(){const{items:t,lessonProgress:s}=this.props,o=Lt()(0,"activeIndex",s),r=Qt()(t);return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:t,type:s}=this.props;switch(s){case"process":return this.processProgressValue();case"sorting":return Lt()(0,"percentViewed",t);case"timeline":return this.timelineProgressValue();default:return Lt()(0,"percentComplete",t)}}render(){const{type:t,items:s}=this.props,{isSticky:o}=this.state,r=U()("progress-wrap",{}),a=U()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":o}),i=U()("progress",{"progress--timeline":t==="timeline","progress--video":t==="video"}),c=this.progressValue(),d=t==="timeline"&&s&&s.map(u=>{const m=U()("progress__marker",{"progress__marker--active brand--background":parseInt(c)>=parseInt(u.linePosition.slice(0,-1))});return(0,n.jsx)("div",{className:m,style:{left:u.linePosition}},u.id)}),l=(0,n.jsx)("div",{className:r,children:(0,n.jsx)("div",{className:i,children:(0,n.jsxs)("div",{className:"progress__container",children:[(0,n.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${c}% * var(--dir-x)),0px,0px)`}}),d]})})});return(0,n.jsxs)("div",{ref:this.refProgressWrap,children:[l,(0,un.createPortal)((0,n.jsx)("div",{className:a,children:l}),this.portal)]})}}const hm=_("lesson-header"),Bn=Re("LessonHeaderAuthor",({avatar:e,authorName:t,className:s=""})=>{const o=ue();return(0,n.jsxs)("div",{className:`lesson-header__author ${s}`,children:[(0,n.jsx)("img",{alt:"",className:"lesson-header__author-img",src:mt(e)}),(0,n.jsx)("span",{className:"visually-hidden-always",children:o?.a11yAuthorPrefix}),(0,n.jsx)("span",{className:"lesson-header__author-name",children:t})]})}),nc=({showPartnerContent:e=!1})=>(0,n.jsx)("div",{className:hm("author",{"partner-content":e})}),Dn=()=>(0,n.jsx)("div",{className:"lesson-header__counter"}),Hn=({lessonName:e,lessonPreposition:t,totalLessons:s,lessonNumber:o,showPartnerContent:r=!1})=>{const{lmsOptions:a}=ee();return(0,n.jsx)("div",{className:hm("counter",{"partner-content":r}),children:(0,n.jsx)("div",{className:hm("count",{"exit-button-enabled":a?.enableExitCourse}),children:`${e} ${o} ${t} ${s}`})})},Nr=({description:e})=>(0,n.jsx)(Le,{className:"lesson-header__description",value:e}),r_=({children:e})=>(0,n.jsx)("div",{className:"lesson-header__grouped-row",children:e}),a_=({ariaLabel:e,imgRole:t,children:s,sectionStyles:o,topWrapClassName:r})=>(0,n.jsxs)("header",{className:"page__header",children:[(0,n.jsx)("div",{className:"page__header-limit",children:(0,n.jsx)("div",{className:"page__header-container",children:(0,n.jsx)("div",{className:"lesson-header__row",children:(0,n.jsx)("div",{className:"lesson-header__main",children:(0,n.jsx)("div",{className:"lesson-header",children:(0,n.jsx)("div",{className:r,children:s})})})})})}),(0,n.jsx)("div",{"aria-label":e,className:"page__header-bg",role:t,style:o})]}),Fn=({title:e,id:t})=>{const s=E5(t,"title");return(0,n.jsx)("h1",{className:"lesson-header__title","data-change-path":s,tabIndex:-1,children:(0,n.jsx)(Le,{value:e})})},i_=e=>{const{authorName:t,avatar:s,color:o,description:r,labels:a,lessonHeaderStyle:i,lessonId:c,lessonNumber:d,partnerContentAuthors:l,showAuthor:u,showLessonCount:m,title:p,totalLessons:g}=e,{lessonName:C,lessonPreposition:v}=a,x=L=>`url(${da({width:"76",height:"76",imageKey:L.image})})`,y=i===q.TINT?{color:o}:null,S=s&&t&&u&&!l;return(0,n.jsxs)("div",{className:"lesson-header",children:[(0,n.jsxs)("div",{className:"lesson-header__top-wrap",style:y,children:[(0,n.jsx)(Fn,{id:c,title:p}),l&&(0,n.jsx)("div",{className:"lesson-header__partner-content",children:l.map(L=>(0,n.jsxs)("div",{className:"lesson-header__partner-content-author",children:[(0,n.jsx)("div",{className:"lesson-header__partner-content-author-img",style:{backgroundImage:x(L)}}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:a?.a11yAuthorPrefix}),(0,n.jsx)("span",{children:L.name})]})]},L.name))}),(0,n.jsxs)("div",{className:"lesson-header__author-count-wrap",children:[S?(0,n.jsx)(Bn,{authorName:t,avatar:s}):(0,n.jsx)(nc,{}),m?(0,n.jsx)(Hn,{lessonName:C,lessonNumber:d,lessonPreposition:v,totalLessons:g}):(0,n.jsx)(Dn,{})]})]}),r&&(0,n.jsx)(Nr,{description:r})]})};class qfe extends h.Component{static propTypes={authorName:xe().string,avatar:xe().string,description:xe().string,showLessonCount:xe().bool,steps:xe().number,title:xe().string.isRequired,type:xe().string.isRequired};render(){const{children:t}=this.props;return(0,n.jsx)("section",{className:"page__header",children:(0,n.jsxs)("div",{className:"page__header-limit",children:[(0,n.jsx)("div",{className:"page__header-container",children:(0,n.jsx)("div",{className:"lesson-header__row",children:(0,n.jsx)("div",{className:"lesson-header__main",children:(0,n.jsx)(i_,{...this.props})})})}),h.Children.map(t,s=>s&&s.type!==o_?null:s)]})})}}const Oo=_("lesson-header"),Q5=e=>`url(${da({width:"76",height:"76",imageKey:e?.image})})`,mm=({partnerContentAuthors:e})=>{const t=e.map(o=>o.name).join(", "),s=e.length===1;return(0,n.jsxs)("div",{className:Oo("partner-content",{mobile:!0}),children:[(0,n.jsx)("div",{className:Oo("partner-content-author",{single:s}),children:e.map(o=>(0,n.jsx)("div",{className:Oo("partner-content-author-img",{single:s}),style:{backgroundImage:Q5(o)}},o.name))}),(0,n.jsx)("span",{"aria-hidden":"true",className:Oo("author-name"),children:t})]})},wa=({partnerContentAuthors:e})=>{const t=ue();return(0,n.jsx)("div",{className:Oo("partner-content"),children:e.map(s=>(0,n.jsxs)("div",{className:Oo("partner-content-author"),children:[(0,n.jsx)("div",{className:Oo("partner-content-author-img"),style:{backgroundImage:Q5(s)}}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("span",{className:"visually-hidden",children:[t?.a11yAuthorPrefix," ",s.name]}),(0,n.jsx)("span",{"aria-hidden":"true",className:Oo("author-name"),tag:"span",children:s.name})]})]},s.name))})};var Z5=f(80588);const Aa=_("lesson-header"),c_=({authorName:e,avatar:t,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:d,title:l,totalLessons:u,lessonId:m})=>{const p=i!=null&&c,g=t&&e&&c&&!p,C=g||p||d,v=d&&(g||p);return(0,n.jsxs)("div",{className:Aa("content"),children:[C&&(0,n.jsxs)("div",{className:Aa("info-row"),children:[g?(0,n.jsx)(Bn,{authorName:e,avatar:t}):(0,n.jsx)(nc,{}),p&&(0,n.jsx)(wa,{partnerContentAuthors:i}),v&&(0,n.jsx)("span",{"aria-hidden":"true",className:Aa("info-row--divider"),children:"|"}),d?(0,n.jsx)(Hn,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:u}):(0,n.jsx)(Dn,{})]}),(0,n.jsxs)("div",{className:Aa("title-wrapper",{"no-info":!C}),children:[(0,n.jsx)(Fn,{id:m,title:l}),s&&(0,n.jsx)(Nr,{description:s})]})]})},l_=({authorName:e,avatar:t,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:d,title:l,totalLessons:u,lessonId:m})=>{const p=i!=null,g=Z5.useMemo(()=>t&&e&&c&&!p,[t,e,c,p]);return(0,n.jsxs)("div",{className:Aa("content"),children:[d?(0,n.jsx)(Hn,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:u}):(0,n.jsx)(Dn,{}),g&&(0,n.jsx)(Bn,{authorName:e,avatar:t}),c&&p&&(0,n.jsx)(mm,{partnerContentAuthors:i}),(0,n.jsx)(Fn,{id:m,title:l}),s&&(0,n.jsx)(Nr,{description:s})]})},d_=({authorName:e,avatar:t,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:d,title:l,totalLessons:u,lessonId:m})=>{const p=i!=null,g=Z5.useMemo(()=>t&&e&&c&&!p,[t,e,c,p]);return(0,n.jsxs)("div",{className:Aa("content"),children:[d?(0,n.jsx)(Hn,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:u}):(0,n.jsx)(Dn,{}),(0,n.jsx)(Fn,{id:m,title:l}),g?(0,n.jsx)(Bn,{authorName:e,avatar:t}):(0,n.jsx)(nc,{showPartnerContent:p}),c&&p&&(0,n.jsx)(wa,{partnerContentAuthors:i}),s&&(0,n.jsx)(Nr,{description:s})]})};function u_(e){const t=em();return e.lessonHeaderSize===Li.SMALL&&!t?(0,n.jsx)(c_,{...e}):t?(0,n.jsx)(l_,{...e}):(0,n.jsx)(d_,{...e})}const Ra=e=>e===Xn.FLOATING||e===Xn.FLOATING_FULL;function kr(){const e=vj();return xt(480)&&e===Xn.FLOATING?Xn.FLOATING_FULL:e}function pm({className:e,ref:t}){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:"15",ref:t,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M2.34315 7.34315L8 13L13.6569 7.34315",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,n.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",width:"2",x:"7",y:"1"})]})}function Y5({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",ref:t,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 8L7.65685 13.6569L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}var Ze=f(82447);const X5="focus-lesson-content",t2e="preview-nav-to-first-lesson",s2e="preview-nav-to-cover-page",We="preview-nav-to-lesson-item",n2e="preview-scroll-to-nav-prev",o2e="preview-scroll-to-header",fm="preview-clear-state",bd="preview-show-nav-prev",yd="preview-show-nav-next",J5="preview-nav-open",q5="preview-nav-close",eC="event-lesson-transition-start",tC="event-lesson-transition-end",sC="event-lesson-nav-prev-visible",gm="event-lesson-nav-prev-hidden",nC="event-lesson-nav-next-visible",vm="event-lesson-nav-next-hidden",Cm=new WeakMap,oC=new ResizeObserver(e=>{for(const t of e)Cm.get(t.target)?.(t)});function Ld(e,t){(0,h.useEffect)(()=>{if(e)return Cm.set(e,t),()=>Cm.delete(e)},[e,t]),(0,h.useEffect)(()=>{if(e)return oC.observe(e),()=>oC.unobserve(e)},[e])}function h_(){const e=at(),[t,s]=(0,h.useState)(null),o=ue(),r=(0,h.useCallback)(a=>{e(s1({offsetHeight:a.target.offsetHeight}))},[e]);return(0,h.useLayoutEffect)(()=>{if(t)return e(s1({offsetHeight:t.offsetHeight})),()=>e(s1(null))},[e,t]),Ld(t,r),(0,n.jsx)("button",{className:"visually-hidden btn-skip-to-lesson brand--ui",onClick:rC,ref:s,type:"button",children:(0,n.jsxs)("span",{className:"btn-skip-to-lesson__wrap",children:[o?.courseSkipToLesson,(0,n.jsx)(ie,{"aria-hidden":"true",classNameIcon:"btn-skip-to-lesson__icon",name:"arrow-right"})]})})}function m_(e){(0,Ze.A)(X5,e,document)}function rC(){document.dispatchEvent(new CustomEvent(X5))}function Sd(e,t){const s=[];if(e){let o=e.parentElement;for(;o&&(t?.limit==null||s.length<t.limit);){if(o===document.body){s.push(window);break}const r=window.getComputedStyle(o);(r.overflowX==="auto"||r.overflowX==="scroll"||r.overflowY==="auto"||r.overflowY==="scroll")&&s.push(o),o=o.parentElement}}return s}function p_(e){return Sd(e,{limit:1})[0]??null}function aC(e,t){(0,h.useLayoutEffect)(()=>{let s=e.current;const o=Sd(s);for(const r of o)r?.addEventListener("scroll",t);return()=>{for(const r of o)r?.removeEventListener("scroll",t)}},[t,e])}function f_(e){return e?.sessionPreferences}function oc(){return ae(f_)}const g_=(0,h.forwardRef)((e,t)=>{const{children:s,className:o="lesson-link-item-tooltip",dark:r,visible:a}=e,i=(0,h.useMemo)(()=>_(o),[o]),c=(0,n.jsx)("div",{"aria-hidden":"true",ref:t,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,n.jsx)("div",{style:{pointerEvents:"all"},children:(0,n.jsx)("div",{className:i({visible:a}),children:(0,n.jsx)("div",{className:i("inner",{dark:r,light:!r}),children:s})})})});return(0,un.createPortal)(c,document.getElementById("portal"))});function iC(e){const{children:t,className:s,dark:o,restriction:r,tooltipClassName:a,style:i}=e,{prefersKeyboardNavigation:c}=oc()??{},d=(0,h.useRef)(null),l=(0,h.useRef)(null),u=(0,h.useRef)(null),m=ue(),p=$1(),[g,C]=(0,h.useState)(!1),v=(0,h.useCallback)(()=>C(!0),[]),x=(0,h.useCallback)(()=>C(!1),[]),y=(0,h.useCallback)(()=>{setTimeout(v,0)},[v]),S=(0,h.useCallback)(()=>{c===!0&&x()},[x,c]),L=(0,h.useCallback)(I=>{ls(I)&&g&&(I.stopPropagation(),x())},[x,g]),b=(0,h.useCallback)(()=>{document.activeElement===d.current&&(u.current!=null&&clearTimeout(u.current),v())},[v]),T=(0,h.useCallback)(()=>{u.current=setTimeout(x,150)},[x]),N=(0,h.useCallback)(()=>{if(g&&d.current&&l.current){const I=d.current.getBoundingClientRect(),A=l.current.offsetParent?.getBoundingClientRect()??I,{height:R,width:j}=I,O=I.left-A.left,w=I.top-A.top;Object.assign(l.current.style,{transform:`translate(${O}px, ${w}px)`,width:`${j}px`,height:`${R}px`})}},[g]);(0,h.useEffect)(()=>{p&&C(!1)},[p]),(0,h.useLayoutEffect)(()=>N(),[N]),(0,Ze.A)("resize",N,window),(0,Ze.A)("keydown",L,document),aC(d,x);const k=it(r?.data);let E;return r?.type===ta.QUIZ?E=`${m?.quizRequirePassingScore}: "${k}"`:r?.type===ta.ORDER?E=m?.lessonRestricted:r?.type===ta.KNOWLEDGE_CHECK&&(E=m?.knowledgeCheckCorrectAnswerRequiredNav),(0,n.jsxs)("div",{"aria-disabled":!0,className:s,onBlur:S,onFocus:y,onMouseEnter:b,onMouseLeave:T,ref:d,role:"link",style:i,tabIndex:p?-1:0,children:[t,(0,n.jsx)("div",{className:"visually-hidden-always",children:m?.a11yRestrictedNav}),(0,n.jsx)("div",{className:"visually-hidden-always",children:E}),(0,n.jsx)(g_,{className:a,dark:o,ref:l,visible:g,children:E})]})}function v_(e){const{b:t,children:s,"data-direction":o,isCurrentLesson:r,isTooltipEnabled:a,lessonId:i,onClick:c=()=>{},onFocus:d,onHideProgressTooltip:l,onNavigate:u=()=>{},onShowProgressTooltip:m,restriction:p,showProgressDelay:g,style:C}=e,v=$1(),S=(ee()?.theme?.progressIndicatorStyle??Je.THEME_DEFAULT)===Je.THEME_DEFAULT,L=(0,h.useCallback)(j=>{c(j),r?(j.preventDefault(),rC()):u(i)},[i,r,c,u]),[b,T]=(0,h.useState)(!1),N=(0,h.useCallback)(j=>{!b&&a&&(g!=null?setTimeout(()=>m?.(),g):m?.()),d?.(j)},[b,d,g,m,a]),k=(0,h.useCallback)(j=>{a&&ls(j)&&l?.()},[l,a]),E=(0,h.useCallback)(()=>{a===!0&&T(!0)},[a]),I=(0,h.useCallback)(()=>{a===!0&&T(!1)},[a]),A=p?.type!=null,R=t("link",{active:r,restricted:A,"theme-default":S}).toString();return A?(0,n.jsx)(iC,{className:R,dark:e.dark,restriction:p,style:C,tooltipClassName:e.tooltipClassName,children:s}):(0,n.jsx)(Di,{"aria-current":"page",className:R.toString(),"data-direction":o,"data-nav-item":"",onBlur:a?l:void 0,onClick:L,onFocus:N,onKeyDown:k,onMouseDown:E,onMouseUp:I,style:C,tabIndex:v?-1:void 0,to:Os(i),children:s})}function rc(e){const{className:t="lesson-link-item",isCurrentLesson:s,last:o,lessonId:r,style:a}=e,i=(0,h.useMemo)(()=>_(t),[t]),c=Oi(r),d=c?.type!=null,{isComplete:l=!1}=Ro(r)??{},u=i({active:s,complete:l,last:o,restricted:d});return(0,n.jsx)("div",{className:u,children:(0,n.jsx)(v_,{...e,b:i,isCurrentLesson:s,restriction:c,style:a})})}const C_=_("lesson-nav");function x_(e){const{children:t,finish:s,lessonId:o,onFocus:r}=e,a=Vt();if(o)return(0,n.jsx)(rc,{className:"lesson-nav-link","data-direction":e["data-direction"],lessonId:String(o),onFocus:r,tooltipClassName:"lesson-nav-link-tooltip",children:t});const i=s?"/lessons/progress-summary":"/",c=d=>{d.preventDefault(),io(()=>{a(i)},i==="/"?"lesson-to-cover":"default")};return(0,n.jsx)("span",{className:"lesson-nav-link",children:(0,n.jsx)(cs,{className:"lesson-nav-link__link","data-direction":e["data-direction"],onClick:c,onFocus:r,to:i,children:t})})}function Pa({children:e,className:t,direction:s,finish:o,navLessonId:r,onFocus:a,ref:i,restrictionType:c}){const l=ji()?.theme?.buttonScheme,u=c!=null,m=kr(),g={className:C_(null,{[s]:!0,accent:l===Si.ACCENT,dark:l===Si.DARK,floating:m===Xn.FLOATING,"floating-full":m===Xn.FLOATING_FULL,finish:o,full:m===Xn.FULL,light:l===Si.LIGHT,restricted:u,tint:l===Si.TINT}).mix(t),[`data-${s}-lesson`]:!0};return(0,n.jsx)("div",{ref:i,...g,children:(0,n.jsx)(x_,{"data-direction":s,finish:o,lessonId:r,onFocus:a,children:e})})}const cC=_("lesson-nav");function b_({allowTooltip:e,courseFinishLabel:t,onFocus:s,nextLesson:o,restrictionData:r,restrictionType:a,ref:i}){const c=o?.id,d=kr(),l=Ra(d),u=l?pm:Y5;return(0,n.jsxs)(Pa,{allowTooltip:e,direction:"next",finish:!0,isFloating:l,navLessonId:c,onFocus:s,ref:i,restrictionData:r,restrictionType:a,children:[(0,n.jsx)("span",{className:cC("link-text").mix("brand--ui"),children:t}),(0,n.jsx)(u,{className:cC("link-icon")})]})}const lC=_("lesson-nav");function y_({allowTooltip:e,lessonNameLabel:t,nextLesson:s,nextLessonNumber:o,onFocus:r,ref:a,restrictionData:i,restrictionType:c}){const d=s?.id,l=kr(),u=Ra(l),p=pr(s)&&d,g=Ie(s?.title)||"",C=u?pm:Y5,v=p?`${t} ${o} - `:"",x=u&&p?`${t} ${o}`:`${v}${g}`;return(0,n.jsxs)(Pa,{allowTooltip:e,direction:"next",isFloating:u,navLessonId:d,onFocus:r,ref:a,restrictionData:i,restrictionType:c,children:[(0,n.jsx)("span",{className:lC("link-text").mix("brand--ui"),children:x}),(0,n.jsx)(C,{className:lC("link-icon")})]})}function dC({className:e,ref:t}){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:"15",ref:t,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M13.6569 7.65685L8 2L2.34315 7.65686",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,n.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",transform:"rotate(180 9 14)",width:"2",x:"9",y:"14"})]})}function L_({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",ref:t,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 8L7.65685 2.34315L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}const Td=_("lesson-nav");function S_({allowTooltip:e,className:t,courseHomeLabel:s,lessonNameLabel:o,onFocus:r,previousLesson:a,previousLessonNumber:i,ref:c}){const d=a?.id,l=kr(),u=Ra(l),p=pr(a)&&d,g=Ie(a?.title)||s,C=u?dC:L_,v=p?`${o} ${i} - ${g}`:g,x=p&&u?`${o} ${i}`:v;return(0,n.jsx)(Pa,{allowTooltip:e,className:t,direction:"previous",isFloating:u,navLessonId:d,onFocus:r,ref:c,children:u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Td("link-text").mix("brand--ui"),children:x}),(0,n.jsx)(C,{className:Td("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C,{className:Td("link-icon")}),(0,n.jsx)("span",{className:Td("link-text").mix("brand--ui"),children:x})]})})}var Ae=f(93342);function T_({className:e,cx:t,cy:s,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:c,value:d=0}){const l=(0,h.useRef)(null),u=`mask-${(0,k2.A)()}`,m=(100-d)/100*(2*a);return(0,Ze.A)("transitionend",r,l.current),(0,n.jsxs)("svg",{height:o,viewBox:`0 0 ${o} ${o}`,width:o,children:[(0,n.jsx)("defs",{children:(0,n.jsx)("mask",{id:u,children:(0,n.jsx)("rect",{fill:"white",height:2.3*a,width:2.3*a,x:"0",y:d===0?100:m})})}),(0,n.jsx)("circle",{className:e,cx:t,cy:s,fill:"none",mask:`url(#${u})`,r:a,ref:l,strokeLinecap:i,strokeWidth:c})]})}const xm=T_;function N_({className:e,cx:t,cy:s,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:c,transform:d,value:l=0}){const u=(0,h.useRef)(null),m=Math.PI*(Number(o)-Number(c)),p=m*(100-l)/100;return(0,Ze.A)("transitionend",r,u.current),(0,n.jsx)("circle",{className:e,cx:t,cy:s,fill:"transparent",r:a,ref:u,strokeDasharray:m,strokeDashoffset:p,strokeLinecap:i,strokeWidth:c,transform:d})}const uC=N_;var bm=f(80588);const{COMPACT:k_,COVER:I_,OVERLAY:E_,SIDEBAR:j_}=So,ac=_("progress-circle");function w_({"aria-hidden":e,"aria-label":t,isCurrent:s,isFailed:o,isPassed:r,scope:a,value:i}){const[c,d]=bm.useState(i===100),l=(0,Ae.A)(i),{theme:u}=ee()??{},m=u?.progressIndicatorStyle??Je.THEME_DEFAULT,p=a===I_,g=a===E_,C=m===Je.THEME_DEFAULT,v=m===Je.CIRCULAR_FILL,x=m===Je.INCOMPLETE_COMPLETE,y=ac({compact:a===k_,cover:p,current:s,sidebar:a===j_,overlay:g}),S=ac("track",{"circular-fill":!g&&v,"incomplete-complete":p&&x}),L=ac("runner",{"circular-fill":v,done:c,failed:o,passed:r,unstarted:i===0}),b=ac("pass",{done:c,visible:r}),T=ac("fail",{done:c,visible:o}),N=bm.useMemo(()=>v||i===100?i:0,[v,i]);return bm.useEffect(()=>{if(i!==100&&l===100)d(!1);else if(i===100&&!c&&!x){const k=setTimeout(()=>d(!0),300);return clearTimeout.bind(null,k)}else i===100&&!c&&x&&d(!0)},[c,x,l,i]),(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:y,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 16",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:S,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),C?(0,n.jsx)(uC,{className:L,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,transform:"rotate(-89.9 8 8)",value:i}):(0,n.jsx)(xm,{className:L,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:N}),(0,n.jsx)("path",{className:b,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,n.jsx)("path",{className: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 ym=(0,h.createContext)(null);ym.displayName="CourseNavContext";function A_(e){const{children:t,isCourseNavOpen:s}=e;return(0,n.jsx)(ym.Provider,{value:{isCourseNavOpen:s},children:t})}function R_(){return(0,h.useContext)(ym)}const hC=960;function ic(){return xt(hC)}function P_(){const e=Me(),t=ic(),s=h1();return Kj({course:e,isMobile:t,search:s})}function M_(){const e=Me(),t=ic();return Qj({course:e,isMobile:t})}var mC=f(80588);class O_ extends mC.Component{refProgressWrap=mC.createRef();timeoutScroll;portal;constructor(t){super(t),this.state={isSticky:!1},this.portal=ro()}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 t=document.getElementsByClassName("page-wrap")[0],s=t.scrollTop,o=t.scrollTop,r=this.refProgressWrap.current;if(!r)return;const i=r.getBoundingClientRect().top+o,c=s>i&&s>0;this.state.isSticky!==c&&this.setState({isSticky:c})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:t,lessonProgress:s}=this.props,o=s.activeIndex??-1,r=t?.length??0;return o===-1?0:o+1===r?100:t?.[o]?.linePosition?.replace("%","")??"0"}processProgressValue(){const{items:t,lessonProgress:s}=this.props,o=s.activeIndex??0,r=t?.length??0;return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:t,type:s}=this.props;switch(s){case"process":return this.processProgressValue();case"sorting":return t.percentViewed??0;case"timeline":return this.timelineProgressValue();default:return t.percentComplete??0}}render(){const{type:t,items:s,sidebarAvailable:o,isCourseNavOpen:r,isMobile:a}=this.props,{isSticky:i}=this.state,c=U()("progress-wrap",{}),d=r,l=r&&a,u=U()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":i&&!l,"lesson--open":d&&o&&!this.isLessonPreview(),"lesson--open-mobile":o&&l&&!this.isLessonPreview()}),m=U()("progress",{"progress--timeline":t==="timeline","progress--video":t==="video"}),p=this.progressValue(),g=t==="timeline"&&s&&s.map(v=>{const x=U()("progress__marker",{"progress__marker--active brand--background":parseInt(String(p))>=parseInt(v.linePosition.slice(0,-1))});return(0,n.jsx)("div",{className:x,style:{left:v.linePosition}},v.id)}),C=(0,n.jsx)("div",{className:c,children:(0,n.jsx)("div",{className:m,children:(0,n.jsxs)("div",{className:"progress__container",children:[(0,n.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${p}% * var(--dir-x)),0px,0px)`}}),g]})})});return(0,n.jsxs)("div",{ref:this.refProgressWrap,children:[C,(0,un.createPortal)((0,n.jsx)("div",{"aria-hidden":"true",className:u,children:C}),this.portal)]})}}const B_=e=>{const t=P_(),{isCourseNavOpen:s}=R_()??{},o=xt(480);return(0,n.jsx)(O_,{...e,isCourseNavOpen:s,isMobile:o,sidebarAvailable:t})},D_=Sa,H_=Sa,F_=Sa,V_=Sa,z_=Sa,$_=Sa;function bt({children:e,className:t,height:s,width:o,viewBox:r}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:s,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:e})}function __(e){return(0,n.jsxs)(bt,{viewBox:"0 0 24 24",...e,children:[(0,n.jsx)("path",{d:"M1 10.9609L10 19.9609",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M1 11.9609L10 2.96094",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M2 11.5H23",stroke:"currentColor",strokeWidth:"1.5"})]})}function U_({className:e}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:"8",role:"img",viewBox:"0 0 16 8",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.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 G_(e){return(0,n.jsx)(bt,{height:"12",viewBox:"0 0 18 12",width:"18",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M0.666992 1.00002C0.666992 0.539783 1.04009 0.166687 1.50033 0.166687H14.0003C14.4606 0.166687 14.8337 0.539783 14.8337 1.00002C14.8337 1.46026 14.4606 1.83335 14.0003 1.83335H1.50033C1.04009 1.83335 0.666992 1.46026 0.666992 1.00002ZM0.666992 6.00002C0.666992 5.53978 1.04009 5.16669 1.50033 5.16669H16.5003C16.9606 5.16669 17.3337 5.53978 17.3337 6.00002C17.3337 6.46026 16.9606 6.83335 16.5003 6.83335H1.50033C1.04009 6.83335 0.666992 6.46026 0.666992 6.00002ZM0.666992 11C0.666992 10.5398 1.04009 10.1667 1.50033 10.1667H10.667C11.1272 10.1667 11.5003 10.5398 11.5003 11C11.5003 11.4603 11.1272 11.8334 10.667 11.8334H1.50033C1.04009 11.8334 0.666992 11.4603 0.666992 11Z",fill:"currentColor",fillRule:"evenodd"})})}function W_(e){return(0,n.jsx)(bt,{height:"6",viewBox:"0 0 10 6",width:"10",...e,children:(0,n.jsx)("path",{d:"M9 1L5 5L1 1",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function K_(e){return(0,n.jsx)(bt,{height:"6",viewBox:"0 0 10 6",width:"10",...e,children:(0,n.jsx)("path",{d:"M1 5L5 1L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function Q_(e){return(0,n.jsxs)(bt,{height:"21",viewBox:"0 0 20 21",width:"20",...e,children:[(0,n.jsx)("path",{d:"M9.94535 6.125C9.1938 6.125 8.52385 6.6729 8.30039 7.48015C8.17194 7.9442 7.70954 8.21104 7.26759 8.07617C6.82564 7.94129 6.5715 7.45577 6.69996 6.99172C7.11282 5.50025 8.3916 4.375 9.94535 4.375C11.8499 4.375 13.3335 6.05606 13.3335 8.05C13.3335 9.7417 12.2656 11.2082 10.7787 11.6139V12.25C10.7787 12.7332 10.4056 13.125 9.94535 13.125C9.48511 13.125 9.11201 12.7332 9.11201 12.25V10.85C9.11201 10.3668 9.48511 9.975 9.94535 9.975C10.8628 9.975 11.6668 9.14886 11.6668 8.05C11.6668 6.95114 10.8628 6.125 9.94535 6.125Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M10.0002 14C9.53992 14 9.16683 14.3918 9.16683 14.875C9.16683 15.3582 9.53992 15.75 10.0002 15.75H10.0085C10.4687 15.75 10.8418 15.3582 10.8418 14.875C10.8418 14.3918 10.4687 14 10.0085 14H10.0002Z",fill:"currentColor"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M0.833496 3.55556C0.833496 2.01519 2.09493 0.875 3.51868 0.875H16.4816C17.9054 0.875 19.1668 2.01519 19.1668 3.55556V17.4444C19.1668 18.9848 17.9054 20.125 16.4816 20.125H3.51868C2.09493 20.125 0.833496 18.9848 0.833496 17.4444V3.55556ZM3.51868 2.625C2.89693 2.625 2.50016 3.10156 2.50016 3.55556V17.4444C2.50016 17.8984 2.89693 18.375 3.51868 18.375H16.4816C17.1034 18.375 17.5002 17.8984 17.5002 17.4444V3.55556C17.5002 3.10156 17.1034 2.625 16.4816 2.625H3.51868Z",fill:"currentColor",fillRule:"evenodd"})]})}function pC(e){const t=It(e,["Default"]);return(0,n.jsx)(zt,{...t,fill:"none",viewBox:"1 1 18 18",children:(0,n.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 11.9107C13.4147 12.2362 13.4147 12.7638 13.0892 13.0893C12.7638 13.4147 12.2362 13.4147 11.9107 13.0893L9.99998 11.1785L8.08923 13.0893C7.7638 13.4147 7.23616 13.4147 6.91072 13.0893C6.58529 12.7638 6.58529 12.2362 6.91072 11.9107L8.82147 10L6.91072 8.08926C6.58529 7.76382 6.58529 7.23618 6.91072 6.91075C7.23616 6.58531 7.7638 6.58531 8.08923 6.91075L9.99998 8.82149L11.9107 6.91075C12.2362 6.58531 12.7638 6.58531 13.0892 6.91075Z",fill:"black",fillRule:"evenodd"})})}function Nd(e){const t=It(e,["Default"]);return(0,n.jsxs)(zt,{...t,fill:"none",viewBox:"0 0 18 18",children:[(0,n.jsx)("circle",{cx:"9",cy:"9",fill:"#74BF44",r:"9"}),(0,n.jsx)("path",{d:"M6.43994 9.12061L8.43994 11.1206L11.9399 7.62061",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}function Z_(e){return(0,n.jsx)(bt,{height:"12",viewBox:"0 0 12 12",width:"12",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M5.325 9.01843C3.225 9.01843 1.5 7.37868 1.5 5.29172C1.5 3.20476 3.225 1.49048 5.325 1.49048C7.425 1.49048 9.15 3.20476 9.15 5.29172C9.15 7.37868 7.425 9.01843 5.325 9.01843ZM9.525 8.42236C10.2 7.52795 10.575 6.48447 10.575 5.29193C10.575 2.38509 8.25 0 5.325 0C2.4 0 0 2.38509 0 5.29193C0 8.19876 2.4 10.5839 5.325 10.5839C6.525 10.5839 7.65 10.2112 8.475 9.54037L10.725 11.7764C10.875 11.9255 11.1 12 11.25 12C11.4 12 11.625 11.9255 11.775 11.7764C12.075 11.4783 12.075 11.0311 11.775 10.7329L9.525 8.42236Z",fill:"currentColor",fillRule:"evenodd"})})}function Y_(e){return(0,n.jsx)(bt,{height:"5",viewBox:"0 0 10 5",width:"10",...e,children:(0,n.jsx)("path",{d:"M5.56569 4.75592L8.76601 1.42259C9.27003 0.897618 8.91306 0 8.20027 0L1.79963 0C1.08683 0 0.729863 0.897618 1.23389 1.42259L4.43421 4.75592C4.74666 5.08136 5.25324 5.08136 5.56569 4.75592Z",fill:"currentColor"})})}function X_(e){return(0,n.jsxs)(bt,{height:"18",viewBox:"0 0 18 18",width:"18",...e,children:[(0,n.jsx)("path",{d:"M3.1665 6.08335C3.1665 4.01229 4.84544 2.33335 6.9165 2.33335C8.98757 2.33335 10.6665 4.01229 10.6665 6.08335C10.6665 6.37941 10.6324 6.66643 10.5681 6.9411C10.4634 7.38925 10.7417 7.83748 11.1899 7.94225C11.6381 8.04702 12.0863 7.76865 12.1911 7.3205C12.2841 6.92235 12.3332 6.50805 12.3332 6.08335C12.3332 3.09181 9.90805 0.666687 6.9165 0.666687C3.92496 0.666687 1.49984 3.09181 1.49984 6.08335C1.49984 6.46923 1.54032 6.84657 1.61756 7.21105C1.679 7.50095 1.76362 7.78236 1.86938 8.05316C1.97511 8.32389 2.10191 8.5839 2.24772 8.83119C2.48148 9.22764 2.99237 9.35953 3.38882 9.12577C3.78527 8.89201 3.91716 8.38112 3.6834 7.98467C3.58248 7.81352 3.49485 7.63379 3.42186 7.44688C3.34886 7.25994 3.29045 7.0657 3.24802 6.86551C3.1947 6.61395 3.1665 6.3524 3.1665 6.08335Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9.18922 9.34412L14.8186 10.2697C16.2762 10.5117 17.3332 11.6819 17.3332 13.0521V16.6037C17.3332 17.0029 16.9837 17.3264 16.553 17.3264C16.122 17.3264 15.7728 17.0029 15.7728 16.6037V13.0521C15.7728 12.3826 15.2561 11.8108 14.5446 11.6926L8.30452 10.6667H8.30233C7.90851 10.6331 7.57585 10.2773 7.57585 9.8899V6.0524C7.57585 5.88733 7.48441 5.73325 7.33119 5.64046C7.17921 5.54853 6.99291 5.53668 6.82002 5.60606C6.63747 5.68035 6.51483 5.87085 6.51483 6.08044V15.3607C6.51483 15.6856 6.30169 15.9391 5.91441 16.0741C5.40325 16.2528 4.90988 16.0261 4.70516 15.7226L3.01346 13.2999C2.93513 13.1565 2.84963 13.09 2.68954 13.0406C2.59935 13.0249 2.47889 13.0408 2.37154 13.0906C2.2798 13.1394 2.22768 13.4826 2.38902 13.9902C2.41984 14.0542 3.0442 15.4844 3.27756 16.0189C3.32536 16.1284 3.35676 16.2003 3.36328 16.2152C3.47656 16.4494 3.49404 16.6994 3.40853 16.8957C3.33551 17.0631 3.1904 17.1911 2.98912 17.2663C2.893 17.3018 2.77099 17.3334 2.63742 17.3334C2.36124 17.3334 2.03826 17.1986 1.80702 16.6867L1.75272 16.5849C1.3289 15.6773 1.03464 14.952 0.90735 14.6382L0.905151 14.6328L0.896561 14.6115C0.87092 14.548 0.854463 14.5072 0.847419 14.4926C0.45609 13.3756 0.711983 12.3355 1.49527 11.8308C1.97428 11.5452 2.55316 11.4538 3.08867 11.5781C3.63572 11.7047 4.10288 12.0476 4.40371 12.5436L4.82936 13.2293V5.99429C4.82936 5.3563 5.1692 4.74981 5.7381 4.37228C6.30855 3.99359 7.0238 3.89848 7.69942 4.11153C8.55823 4.3824 9.13554 5.15654 9.13617 6.03881L9.18922 9.34412Z",fill:"currentColor"})]})}function J_(e){return(0,n.jsxs)(bt,{height:"14",viewBox:"0 0 20 14",width:"20",...e,children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"M19.548 2.09234C19.8255 2.23518 20 2.52116 20 2.83331V11.1666C20 11.4788 19.8255 11.7648 19.548 11.9076C19.2704 12.0505 18.9363 12.0262 18.6823 11.8448L12.849 7.67809C12.63 7.52166 12.5 7.2691 12.5 6.99998C12.5 6.73085 12.63 6.47829 12.849 6.32187L18.6823 2.1552C18.9363 1.97376 19.2704 1.9495 19.548 2.09234ZM14.7671 6.99998L18.3333 9.54732V4.45264L14.7671 6.99998Z",fill:"currentColor",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2.5 1.99998C2.03976 1.99998 1.66667 2.37308 1.66667 2.83331V11.1666C1.66667 11.6269 2.03976 12 2.5 12H11.6667C12.1269 12 12.5 11.6269 12.5 11.1666V2.83331C12.5 2.37308 12.1269 1.99998 11.6667 1.99998H2.5ZM0 2.83331C0 1.4526 1.11929 0.333313 2.5 0.333313H11.6667C13.0474 0.333313 14.1667 1.4526 14.1667 2.83331V11.1666C14.1667 12.5474 13.0474 13.6666 11.6667 13.6666H2.5C1.11929 13.6666 0 12.5474 0 11.1666V2.83331Z",fill:"currentColor",fillRule:"evenodd"})]})}function q_(e){return(0,n.jsx)(bt,{height:"10",viewBox:"0 0 10 10",width:"10",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M9.78572 9.78572C9.5 10.0714 9.07143 10.0714 8.78571 9.78572L5 6.00001L1.21429 9.78572C0.928571 10.0714 0.500001 10.0714 0.214285 9.78572C-0.0714284 9.49999 -0.0714284 9.07144 0.214285 8.78571L4 5L0.214285 1.21429C-0.0714284 0.928564 -0.0714284 0.500007 0.214285 0.214279C0.357143 0.0714143 0.500001 0 0.714286 0C0.928571 0 1.07143 0.0714143 1.21429 0.214279L5 3.99999L8.78571 0.214279C8.92857 0.0714143 9.14286 0 9.28572 0C9.42857 0 9.64286 0.0714143 9.78572 0.214279C10.0714 0.500007 10.0714 0.928564 9.78572 1.21429L6 5L9.78572 8.78571C10.0714 9.07144 10.0714 9.49999 9.78572 9.78572Z",fill:"currentColor",fillRule:"evenodd"})})}const eU=_("cover"),kd=Re("CoverDetailsSection",({children:e,type:t})=>(0,n.jsx)("section",{className:eU("details-content-section",{type:t}),children:e})),Lm=e=>Bs(e)===pe.LIGHT,es=en()("partner-content-book-info__"),fC=e=>{const{authors:t,backgroundColor:s,bookImage:o,bookTitle:r,buyLink:a,block:i,trackingInfo:c}=e,l=Me()?.publishedAt,u=g5(),m=t.filter(E=>!gt()(E.name)),p=tt()(E=>E.name,m),g=p.length>1?na()(" & ",p):p[0],C=g.slice(-1)==="s"?"":"s",v=Lm(s),x=U()({[es("book-image-block")]:i&&!v},{[es("book-image-block")&&es("dark-theme-book-image")]:i&&v},{[es("book-image-course")]:!i}),y=es(i?"flex-block":"flex-course"),S=es(i?"image-container-block":"image-container-course"),L=U()(es("small-text"),{[es("dark-theme")]:v}),b=U()(es("black-text"),{[es("dark-theme")]:v}),T=U()(es("button"),{[es("dark-theme-button")]:v}),N=da({height:"210",width:"140",imageKey:o}),k=(0,h.useCallback)(()=>{ke&&l&&u?.({event:"Click Tracked",payload:vs()(c,{type:"Buy Link"})})},[l,u,c]);return(0,n.jsxs)("section",{className:y,children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Book Info"}),(0,n.jsx)("div",{"aria-hidden":"true",className:S,children:o?(0,n.jsx)("img",{alt:"",className:x,src:N}):(0,n.jsx)("div",{className:x})}),(0,n.jsxs)("div",{className:es("text-container"),children:[(0,n.jsxs)("p",{className:L,children:["From ",g,"'",C]}),(0,n.jsx)("p",{className:b,children:r}),(0,n.jsx)("a",{className:T,href:a,onClick:k,rel:"noopener noreferrer",target:"_blank",children:"Buy the book"})]})]})},_s=en()("partner-content-partner-info__"),gC=({backgroundColor:e,block:t,link:s,trackingInfo:o})=>{const a=Me()?.publishedAt,i=g5(),c=t?Fj():Vj(),d=_s(t?"nbic-logo-light-bulb":"nbic-logo"),l=_s(t?"block-logo-container":"logo-container"),u=Lm(e),m=U()(_s("small-text"),{[_s("dark-theme")]:u}),p=U()(_s("black-text"),{[_s("dark-theme")]:u}),g=U()(_s("button"),{[_s("dark-theme-button")]:u}),C=(0,h.useCallback)(()=>{ke&&a&&i?.({event:"Click Tracked",payload:vs()(o,{type:"Partner Link"})})},[a,i,o]);return(0,n.jsxs)("section",{className:_s("flex"),children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Partner Info"}),(0,n.jsx)("div",{"aria-hidden":"true",className:l,children:(0,n.jsx)("img",{alt:"",className:d,src:c})}),(0,n.jsxs)("div",{className:_s("text-container"),children:[(0,n.jsx)("p",{className:m,children:"In partnership with"}),(0,n.jsx)("p",{className:p,children:"Next Big Idea Club"}),(0,n.jsx)("a",{className:g,href:s,onClick:C,rel:"noopener noreferrer",target:"_blank",children:"Learn more"})]})]})},Ma=en()("partner-content-author-card__"),vC=e=>{const{partnerContent:t}=e,s=Me(),{id:o,tenantId:r}=s??{},{data:a,type:i}=t,{authors:c,bookImage:d,bookTitle:l,buyLink:u,internalId:m,nbicLink:p}=a,g=c.filter(S=>S.name),C={courseId:o,partnerContentId:t.id,partnerContentInternalId:m,tenantId:r,contentSubtype:i},v=U()(Ma("flex"),Ma("author-container")),x=S=>da({width:"122",height:"122",imageKey:S}),y=(S,L)=>(0,n.jsx)("div",{"aria-hidden":"true",className:Ma("image-container"),children:S?(0,n.jsx)("img",{alt:L,className:Ma("author-image"),src:x(S)}):(0,n.jsx)("div",{className:Ma("author-image")})});return(0,n.jsxs)("ol",{className:"partner-content-author-card","data-testid":"partner-content-author-card",role:"list",children:[(0,n.jsx)("li",{role:"listitem",children:(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Authors"}),g.map(S=>(0,n.jsxs)("li",{className:v,children:[y(S.image,S.name),(0,n.jsx)("p",{className:Ma("author-name-text"),children:S.name})]},S.name))]})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(fC,{authors:c,bookImage:d,bookTitle:l,buyLink:u,trackingInfo:C})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(gC,{link:p,trackingInfo:C})})]})},tU=_("cover");function sU(e){const{coursePartnerContent:t,hasLogo:s,hasPartnerContent:o}=e;if(!o)return null;const r=tU("details-content-aside",{logo:s});return(0,n.jsx)("div",{className:r,children:(0,n.jsx)(kd,{type:"partner-content",children:(0,n.jsx)(vC,{partnerContent:t})})})}const nU=_("cover"),oU=Re("CoverDetailsContentHeading",({className:e="",type:t,...s})=>{const o=Kr()(["Default"],s);return(0,n.jsx)("header",{...o,className:nU("details-content-heading",{type:t}).mix(e)})}),rU=_("cover");function aU({children:e,title:t,type:s}){const o=ee(),{description:r,media:a,partnerContentId:i}=o??{},c=!!i,l=(a&&"image"in a?a.image?.key:null)!=null,m=s==="outline"?r?!l&&!c?"outline-no-logo":c&&!l?"outline-has-partner-content":c&&l?"outline-has-pc-and-logo":"outline":"outline-no-description":s;return(0,n.jsxs)("section",{className:rU("details-content-section",{type:m}),children:[(0,n.jsx)(oU,{type:s,children:(0,n.jsx)("h2",{children:t})}),e]})}const iU=_("cover");function cc(){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:iU("header-star"),fill:"none",height:"18",viewBox:"0 0 18 18",width:"18",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M9 0V18",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,n.jsx)("path",{d:"M18 9H0",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,n.jsx)("path",{d:"M15.3 15.3002L2.69995 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,n.jsx)("path",{d:"M2.69995 15.3002L15.3 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}const cU=()=>xt(480),lU=()=>xt(768),dU={SPLIT_LEFT_IMAGE:"CENTERED_OVERLAY",SPLIT_RIGHT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"CENTERED_OVERLAY"};function CC(){const e=ee(),t=lU(),s=e?.theme?.coverPageType||"CENTERED";return t?dU[s]??s:s}const uU=_("cover"),hU=()=>null,mU=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(um,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(Pt,{}),(0,n.jsx)(cc,{}),(0,n.jsx)(On,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Xt,{})]})})}),pU=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)($s,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(Pt,{}),(0,n.jsx)(cc,{}),(0,n.jsx)(On,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Xt,{})]})})}),fU=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(tc,{}),(0,n.jsx)($s,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(Pt,{}),(0,n.jsx)(cc,{}),(0,n.jsx)(On,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Xt,{})]})})]}),gU=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($s,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(Pt,{}),(0,n.jsx)(cc,{}),(0,n.jsx)(On,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Xt,{})]})}),(0,n.jsx)(tc,{})]}),vU=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($s,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(Pt,{}),(0,n.jsx)(cc,{}),(0,n.jsx)(On,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Xt,{})]})}),(0,n.jsx)("div",{className:"cover__header-graphic-wrap",children:(0,n.jsx)(tc,{})})]});function CU(){switch(CC()){default:case"CENTERED_IMAGE":return(0,n.jsx)(vU,{});case"CENTERED":case"CENTERED_ACCENT_TINT":return(0,n.jsx)(pU,{});case"SPLIT_LEFT_IMAGE":case"TWO_THIRDS_LEFT_IMAGE":return(0,n.jsx)(gU,{});case"SPLIT_RIGHT_IMAGE":case"TWO_THIRDS_RIGHT_IMAGE":return(0,n.jsx)(fU,{});case"CENTERED_OVERLAY":return(0,n.jsx)(mU,{})}}function xU(){return(0,n.jsxs)("header",{className:uU("header",{meta:!1}),"data-testid":"cover-header",children:[(0,n.jsx)(CU,{}),(0,n.jsx)(h.Suspense,{children:(0,n.jsx)(hU,{})})]})}var bU=f(80588);const yU=_("cover");function LU({children:e}){const t=ee(),{themeId:s}=t?.theme??{},o=CC(),r=bU.useMemo(()=>Ca()(o),[o]),a=yU(null,{layout:r});return(0,n.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":s,id:"cover",children:e})}var xC=f(80588);const Sm=_("lesson-header"),SU=({authorName:e,avatar:t,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:d,totalLessons:l,lessonId:u})=>{const m=a!=null&&i,p=t&&e&&i&&!m,g=p||m||c,C=c&&(p||m);return(0,n.jsxs)("div",{className:Sm("content"),children:[g&&(0,n.jsxs)("div",{className:Sm("info-row"),children:[p?(0,n.jsx)(Bn,{authorName:e,avatar:t}):(0,n.jsx)(nc,{}),m&&(0,n.jsx)(wa,{partnerContentAuthors:a}),C&&(0,n.jsx)("span",{"aria-hidden":"true",className:Sm("info-row--divider"),children:"|"}),c?(0,n.jsx)(Hn,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:l}):(0,n.jsx)(Dn,{})]}),(0,n.jsx)("div",{children:(0,n.jsx)(Fn,{id:u,title:d})})]})},TU=({authorName:e,avatar:t,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:d,totalLessons:l,lessonId:u})=>{const m=a!=null,p=xC.useMemo(()=>t&&e&&i&&!m,[t,e,i,m]);return(0,n.jsxs)(n.Fragment,{children:[c?(0,n.jsx)(Hn,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:l}):(0,n.jsx)(Dn,{}),p&&(0,n.jsx)(Bn,{authorName:e,avatar:t}),i&&m&&(0,n.jsx)(mm,{partnerContentAuthors:a}),(0,n.jsx)(Fn,{id:u,title:d})]})},NU=({authorName:e,avatar:t,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:d,totalLessons:l,lessonId:u})=>{const m=a!=null,p=xC.useMemo(()=>t&&e&&i&&!m,[t,e,i,m]);return(0,n.jsxs)(n.Fragment,{children:[p?(0,n.jsx)(Bn,{authorName:e,avatar:t}):(0,n.jsx)(nc,{}),i&&m&&(0,n.jsx)(wa,{partnerContentAuthors:a}),(0,n.jsx)(Fn,{id:u,title:d}),c?(0,n.jsx)(Hn,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:l}):(0,n.jsx)(Dn,{})]})};function kU(e){const t=cU();return e.lessonHeaderSize===Li.SMALL&&!t?(0,n.jsx)(SU,{...e}):t?(0,n.jsx)(TU,{...e}):(0,n.jsx)(NU,{...e})}var Tm=f(80588);const{COMPACT:IU,COVER:EU,OVERLAY:jU,SIDEBAR:wU}=So,Oa=_("progress-circle");function AU({"aria-hidden":e,"aria-label":t,isFailed:s,isPassed:o,scope:r,value:a}){const[i,c]=Tm.useState(a===100),d=(0,Ae.A)(a),{theme:l}=ee()??{},u=l?.progressIndicatorStyle??Je.THEME_DEFAULT,m=r===EU,p=r===jU,g=u===Je.THEME_DEFAULT,C=u===Je.CIRCULAR_FILL,v=u===Je.INCOMPLETE_COMPLETE,x=Oa("default",{failed:s,passed:o}),y=Oa({compact:r===IU,cover:m,overlay:p,sidebar:r===wU}),S=Oa("track",{"circular-fill":!p&&C,"incomplete-complete":m&&v}),L=Oa("fill",{"circular-fill":C,done:i,failed:s,passed:o,unstarted:a===0}),b=Oa("pass",{done:i,visible:o}),T=Oa("fail",{done:i,visible:s}),N=Tm.useMemo(()=>C||a===100?a:0,[C,a]);return Tm.useEffect(()=>{if(a!==100&&d===100)c(!1);else if(a===100&&!i&&!v){const k=setTimeout(()=>c(!0),300);return clearTimeout.bind(null,k)}else a===100&&!i&&v&&c(!0)},[i,v,d,a]),(0,n.jsx)(n.Fragment,{children:g?(0,n.jsx)("svg",{"aria-hidden":e,"aria-label":t,className:x,focusable:"false",viewBox:"0 0 7 7",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("circle",{cx:"3.5",cy:"3.5",r:"2.5"})}):(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:y,fill:"none",focusable:"false",role:"img",viewBox:"0 0 7 7",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:S,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),(0,n.jsx)(xm,{className:L,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:N}),(0,n.jsx)("path",{className:b,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,n.jsx)("path",{className: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 RU({Default:e,...t}){return(0,n.jsx)(e,{...t,hasOverlay:!1})}var PU=f(99372),Id=f.n(PU);const bC=e=>t=>(e(t),t.preventDefault()),Bo=e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},hn=e=>t=>{e(t),t.preventDefault(),Bo(t)},Ed=_("lesson-progress"),{COMPACT:Nm,COVER:lc,OVERLAY:km,SIDEBAR:dc}=So;function MU({canComplete:e,color:t,hasRestriction:s,isComplete:o,isCurrentLesson:r,isDark:a,isEnabled:i,isFailed:c,isLegacy:d=void 0,isPassed:l,isTooltipVisible:u,navigationStyle:m,onHideTooltip:p,onMarkComplete:g=void 0,onMarkReset:C=void 0,onShowTooltip:v,percentComplete:x,progressGraphic:y,scope:S,labels:L}){const b=(0,h.useRef)(),T=(0,h.useRef)(),N=(0,h.useRef)(),k=(0,h.useRef)(),{theme:{progressIndicatorStyle:E=Je.THEME_DEFAULT}}=Me(),I=E===Je.THEME_DEFAULT,A=Ed({compact:S===Nm,cover:S===lc&&!d,"legacy-cover":S===lc&&d,inactive:s,overlay:S===km,sidebar:S===dc&&!d,"legacy-sidebar":S===dc&&d,"theme-default":I}),R=Ed("graphic",{compact:S===Nm,cover:S===lc&&!d,"legacy-cover":S===lc&&d,overlay:S===km,sidebar:S===dc&&!d,"legacy-sidebar":S===dc&&d}),j=Ed("tooltip",{legacy:d}).toString(),O=(0,h.useCallback)(()=>{o?C?.():g?.()},[o,g,C]),w=(0,h.useCallback)(F=>{Id()(p)&&ls(F)&&u&&p()},[p,u]),P=(0,h.useCallback)(()=>{clearTimeout(N.current),!s&&Id()(v)&&(T.current=setTimeout(v,600))},[s,v]),M=(0,h.useCallback)(()=>{clearTimeout(T.current),Id()(p)&&(N.current=setTimeout(p,150))},[p]),z=(0,h.useCallback)(()=>{setTimeout(()=>{if(u){const F=b.current.getBoundingClientRect(),V=k.current.offsetParent.getBoundingClientRect(),{height:K,width:Z}=F,X=F.left-V.left,te=F.top-V.top;Object.assign(k.current.style,{transform:`translate(${X}px, ${te}px)`,width:`${Z}px`,height:`${K}px`})}},0)},[u]);if((0,h.useLayoutEffect)(()=>z(),[z]),(0,Ze.A)("resize",z,window),(0,Ze.A)("keydown",w,document),aC(b,M),e){const F=ke&&x===100,V=OU({labels:L,percentComplete:x,canReset:!F}),K=!i||F,Z=Ed("action",{disabled:K});return(0,n.jsx)("span",{className:A,"data-testid":"lesson-progress",children:(0,n.jsx)("button",{"aria-label":V,className:Z,disabled:K,onBlur:p,onClick:O,onFocus:v,type:"button",children:(0,n.jsxs)("span",{className:R,onMouseEnter:P,onMouseLeave:M,ref:b,children:[(0,n.jsx)(y,{"aria-hidden":"true",color:t,isCurrent:r,isDark:a,isFailed:c,isPassed:l,navigationStyle:m,scope:S,value:x}),i&&!s&&(0,n.jsx)(yC,{className:j,dark:a,ref:k,scope:S,visible:u,children:V})]})})})}const $=BU({labels:L,isFailed:c,percentComplete:x});return(0,n.jsx)("span",{className:A,"data-testid":"lesson-progress",children:(0,n.jsxs)("span",{className:R,onMouseEnter:P,onMouseLeave:M,ref:b,children:[(0,n.jsx)(y,{"aria-label":$,color:t,isCurrent:r,isDark:a,isFailed:c,isPassed:l,navigationStyle:m,scope:S,value:x}),i&&!s&&(0,n.jsx)(yC,{className:j,dark:a,ref:k,scope:S,visible:u,children:$})]})})}const yC=(0,h.forwardRef)((e,t)=>{const{children:s,className:o,dark:r,scope:a,visible:i}=e,c=(0,h.useMemo)(()=>_(o),[o]),d=c({compact:a===Nm,cover:a===lc,overlay:a===km,sidebar:a===dc,visible:i}),l=c("inner",{dark:r,light:!r}),u=(0,n.jsx)("div",{"aria-hidden":"true",onClick:Bo,ref:t,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,n.jsx)("div",{style:{pointerEvents:"all"},children:(0,n.jsx)("div",{className:d,children:(0,n.jsx)("div",{className:l,children:s})})})});return(0,un.createPortal)(u,ro())});function OU({labels:e,canReset:t,percentComplete:s}){const o=s===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieClickToComplete:i,progressPieClickToReset:c}=e;return o&&t?`${r}. ${c}`:s===100&&!t?r:s===0?`${a}. ${i}`:`${s}% ${r}. ${i}`}function BU({labels:e,isFailed:t,percentComplete:s}){const o=s===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieQuizFailed:i}=e;return t?i:o?r:s===0?a:`${s}% ${r}`}const LC=h.memo(MU);function DU({color:e,hasRestriction:t,isComplete:s,isCurrentLesson:o,isFailed:r,isPassed:a,isTooltipVisible:i,lessonTitle:c,navigationStyle:d,onHideTooltip:l,onShowTooltip:u,percentComplete:m,progressGraphic:p,scope:g,labels:C}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"overview-list-item__progress",children:(0,n.jsx)(LC,{canComplete:!1,color:e,hasRestriction:t,isComplete:s,isCurrentLesson:o,isDark:!1,isEnabled:!0,isFailed:r,isPassed:a,isTooltipVisible:i,labels:C,navigationStyle:d,onHideTooltip:l,onShowTooltip:u,percentComplete:m,progressGraphic:p,scope:g})}),(0,n.jsx)("span",{className:"overview-list-item__title",children:c})]})}function HU(){return null}function SC({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"currentColor",focusable:"false",ref:t,viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M3.33177 4.1487L6.48034 1.00013M9.6289 4.14869L6.48034 1.00013M6.48034 1.00013L6.47966 11.9601"})})}function FU(e){const t=It(e,["Default"]);return(0,n.jsxs)(zt,{...t,fill:"none",viewBox:"0 3 16 10",children:[(0,n.jsx)("path",{d:"M1.51472 7.99993H14.4853",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,n.jsx)("path",{d:"M9.50008 12.4994L14.5004 7.99932L9.50008 3.99973",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}function VU(e){const t=It(e,["Default"]);return(0,n.jsx)(zt,{viewBox:"0 0 25 16",...t,children:(0,n.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 TC(e){return(0,n.jsx)(bt,{height:"8",viewBox:"0 0 14 8",width:"14",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M13 1L7 7L1 1",stroke:"currentColor"})})}function NC(e){const t=It(e,["Default"]);return(0,n.jsxs)(zt,{...t,fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,n.jsx)("path",{d:"M5 7.71429L7.54545 10L11.5 5.5",stroke:"white"})]})}function kC(e){const t=It(e,["Default"]);return(0,n.jsxs)(zt,{...t,fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("path",{d:"M8.00085 5.20305L5.14081 8.06339C5.14079 8.06341 5.14077 8.06343 5.14075 8.06345C5.00146 8.20273 4.92319 8.39163 4.92314 8.58861V8.5887V9.93926C4.92314 10.1851 5.12244 10.3844 5.36829 10.3844H6.71884H6.71894C6.91593 10.3844 7.10484 10.3061 7.24413 10.1668C7.24414 10.1668 7.24415 10.1667 7.24416 10.1667L10.104 7.30664C10.104 7.30657 10.1041 7.3065 10.1042 7.30643L10.1042 7.30638C10.1043 7.30631 10.1044 7.30622 10.1044 7.30615L10.9465 6.46442C11.03 6.38095 11.0769 6.26773 11.0769 6.14966C11.0769 6.0316 11.03 5.91836 10.9466 5.83487L9.47304 4.36105C9.29924 4.18722 9.01746 4.18716 8.84359 4.36091L8.00111 5.20279C8.0011 5.2028 8.0011 5.2028 8.0011 5.2028L8.00085 5.20305Z",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"0.890284"}),(0,n.jsx)("circle",{cx:"8",cy:"7.5293",r:"7",stroke:"white"})]})}function zU({className:e}){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:e,fill:"none",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"6",cy:"6",r:"5"}),(0,n.jsx)("path",{d:"M9.5 9.5L14 14"})]})}function $U(e){const t=It(e,["Default"]);return(0,n.jsxs)(zt,{...t,fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,n.jsx)("path",{d:"M10 6L6 10",stroke:"white"}),(0,n.jsx)("path",{d:"M6 6L10 10",stroke:"white"})]})}function _U({className:e}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",viewBox:"0 0 10 7",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M1 1.40002L5 5.40002L9 1.40002",strokeWidth:"1.6"})})}function UU(e){const t=It(e,["Default"]);return(0,n.jsxs)(zt,{viewBox:"0 0 12 12",...t,children:[(0,n.jsx)("path",{d:"M10.7425 0.742189L11.4496 1.4493L1.55012 11.3488L0.843012 10.6417L10.7425 0.742189Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M11.1571 10.6417L10.45 11.3488L0.550537 1.44929L1.25764 0.742188L11.1571 10.6417Z",fill:"currentColor"})]})}const GU=()=>xt(1200),WU=()=>xt(768),Im=()=>xt(480),IC=_("cover");function KU(){const e=ee(),t=GU(),s=Ie(e?.description);if(!s)return null;const o=ka("description"),r=(0,Et.uW)(e?.description)?{"data-l10n-id":e?.description?.l10nId}:{"data-change-path":o};return(0,n.jsx)("div",{...r,children:(0,n.jsxs)("section",{className:IC("details-content-section"),children:[t&&(0,n.jsx)(om,{}),(0,n.jsx)(Le,{className:IC("details-content-description"),value:Zh(s)},"text")]})})}const QU={SPLIT_LEFT:"LEFT",SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT:"LEFT",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY"};function Em(){const e=ee(),t=WU(),s=e?.theme?.coverPageType||"CENTERED";return t?QU[s]??s:s}function ZU({Default:e,...t}){const s=Em(),o=["SPLIT_RIGHT","SPLIT_RIGHT_IMAGE"].includes(s);return(0,n.jsx)(e,{...t,reverseColumns:o})}const EC=_("cover");function uc({accentColor:e,hasOverlay:t=!1,isShape:s=!1}){const{alpha:o,ariaLabel:r,media:a,role:i}=Sr("coverImage"),c=s?{backgroundColor:e}:ua({alpha:o,hasOverlay:t,media:a});return(0,n.jsx)("div",{className:EC("header-graphic-container"),children:(0,n.jsx)("div",{"aria-label":r,className:EC("header-graphic"),"data-testid":"cover-header-graphic",role:i,style:c})})}const jC=e=>(0,n.jsx)(jd,{...e,children:(0,n.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,n.jsx)("path",{d:"M0.319,0.998 L1,0.899 V0 H0 V0.899 L0.192,0.98 C0.234,0.998,0.277,1,0.319,0.998"})})}),wC=e=>(0,n.jsx)(jd,{...e,children:(0,n.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,n.jsx)("path",{d:"M0.661,0.963 L1,0.804 V0 H0 V0.804 L0.339,0.963 C0.445,1,0.555,1,0.661,0.963"})})}),AC=e=>(0,n.jsx)(jd,{...e,children:(0,n.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,n.jsx)("path",{d:"M0.481,0.991 L0.908,0.825 C0.99,0.793,1,0.694,0.982,0.616 L0.68,0.075 C0.636,-0.003,0.534,-0.023,0.465,0.033 L0.055,0.364 C-0.007,0.414,-0.017,0.505,0.031,0.568 L0.316,0.944 C0.355,0.995,0.422,1,0.481,0.991"})})}),RC=e=>(0,n.jsx)(jd,{...e,children:(0,n.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,n.jsx)("path",{d:"M0.519,0.991 L0.093,0.825 C0.01,0.793,-0.025,0.694,0.019,0.616 L0.321,0.075 C0.364,-0.003,0.466,-0.023,0.536,0.033 L0.946,0.364 C1,0.414,1,0.505,0.97,0.568 L0.685,0.944 C0.646,0.995,0.579,1,0.519,0.991"})})}),YU={LEFT_OVERLAY:jC,LEFT:jC,CENTERED:wC,CENTERED_OVERLAY:wC,SPLIT_LEFT:AC,SPLIT_LEFT_IMAGE:AC,SPLIT_RIGHT:RC,SPLIT_RIGHT_IMAGE:RC},jd=({children:e,className:t="svgPath",height:s,width:o,viewBox:r})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:s,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:e});function Ir({className:e,coverPageType:t}){const s=t?YU[t]:null;return s?(0,n.jsx)(s,{className:e}):null}const PC=_("cover"),Ba=()=>(0,n.jsxs)("div",{className:PC("author-published-wrap"),children:[(0,n.jsx)(On,{}),(0,n.jsx)(w5,{})]}),XU=({coverPageType:e})=>{const t=Im();return(0,n.jsxs)(um,{children:[(0,n.jsx)(Ir,{coverPageType:e}),(0,n.jsxs)(Jt,{children:[!t&&(0,n.jsx)(Pt,{}),(0,n.jsx)(Ba,{}),(0,n.jsx)(qt,{}),t&&(0,n.jsx)(Pt,{}),(0,n.jsx)(Xt,{})]})]})},JU=({coverPageType:e})=>{const t=Im();return(0,n.jsxs)($s,{children:[(0,n.jsx)(Ir,{coverPageType:e}),(0,n.jsxs)(Jt,{children:[!t&&(0,n.jsx)(Pt,{}),(0,n.jsx)(Ba,{}),(0,n.jsx)(qt,{}),t&&(0,n.jsx)(Pt,{}),(0,n.jsx)(Xt,{})]})]})},qU=({coverPageType:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ir,{coverPageType:e}),(0,n.jsx)(uc,{}),(0,n.jsx)($s,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(Pt,{}),(0,n.jsx)(Ba,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Xt,{})]})})]}),eG=({accentColor:e,coverPageType:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($s,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(Pt,{}),(0,n.jsx)(Ba,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Xt,{})]})}),(0,n.jsx)(Ir,{coverPageType:t}),(0,n.jsx)(uc,{accentColor:e,isShape:!0})]}),tG=({coverPageType:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($s,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(Pt,{}),(0,n.jsx)(Ba,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Xt,{})]})}),(0,n.jsx)(Ir,{coverPageType:e}),(0,n.jsx)(uc,{})]}),sG=({accentColor:e,coverPageType:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ir,{coverPageType:t}),(0,n.jsx)(uc,{accentColor:e,isShape:!0}),(0,n.jsx)($s,{children:(0,n.jsxs)(Jt,{children:[(0,n.jsx)(Pt,{}),(0,n.jsx)(Ba,{}),(0,n.jsx)(qt,{}),(0,n.jsx)(Xt,{})]})})]});function nG(e){const t=Em(),s={...e,coverPageType:t};switch(t){default:case ne.LEFT_OVERLAY:case ne.CENTERED_OVERLAY:return(0,n.jsx)(XU,{...s});case ne.LEFT:case ne.CENTERED:return(0,n.jsx)(JU,{...s});case ne.SPLIT_LEFT:return(0,n.jsx)(eG,{...s});case ne.SPLIT_LEFT_IMAGE:return(0,n.jsx)(tG,{...s});case ne.SPLIT_RIGHT:return(0,n.jsx)(sG,{...s});case ne.SPLIT_RIGHT_IMAGE:return(0,n.jsx)(qU,{...s})}}function oG(e){const{partnerContentId:t}=ee()??{},s=lm(),r=!!(!!t&&!!s||ke);return(0,n.jsx)("header",{className:PC("header",{"with-info":r}),"data-testid":"cover-header",children:(0,n.jsx)(nG,{...e})})}var rG=f(80588);const aG=_("cover");function iG({children:e}){const t=ee(),{themeId:s}=t?.theme??{},o=Em(),r=rG.useMemo(()=>Ca()(o),[o]),a=aG(null,{layout:r});return(0,n.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":s,id:"cover",children:e})}const co=_("cover");function cG({percentComplete:e}){const t=Im(),s=rn(),o=ue(),r=V3();if(e===0||!ke)return null;const a=ja({percent:e,label:o.progressSummaryPercentComplete,isRTL:s});return(0,n.jsxs)("div",{className:co("progress"),children:[t&&(0,n.jsx)("div",{className:co("progress-text"),children:a}),(0,n.jsx)("div",{className:co("progress-outer"),children:(0,n.jsx)("div",{className:co("progress-inner"),style:{width:`${e}%`}})}),(0,n.jsxs)("div",{className:co("progress-text-wrap"),children:[!t&&(0,n.jsx)("div",{className:co("progress-text"),children:a}),r&&(0,n.jsxs)("div",{className:co("progress-next-lesson"),children:[(0,n.jsx)(_5,{className:co("progress-next-lesson-icon").toString(),decorative:!0}),(0,n.jsx)("span",{"aria-hidden":"true",className:co("progress-next-lesson-text"),children:r}),(0,n.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",r]})]})]})]})}var MC=f(80588);const wd=_("lesson-header"),jm=()=>(0,n.jsx)("div",{className:wd("author--hidden")}),lG=({authorName:e,avatar:t,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:d,title:l,totalLessons:u,lessonId:m})=>{const p=i!=null&&c,g=t&&e&&c&&!p,C=g||p||d,v=d&&(g||p);return(0,n.jsxs)("div",{className:wd("content"),children:[C&&(0,n.jsxs)("div",{className:wd("info-row"),children:[g?(0,n.jsx)(Bn,{authorName:e,avatar:t}):(0,n.jsx)(jm,{}),p&&(0,n.jsx)(wa,{partnerContentAuthors:i}),v&&(0,n.jsx)("span",{"aria-hidden":"true",className:wd("info-row--divider"),children:"|"}),d?(0,n.jsx)(Hn,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:u}):(0,n.jsx)(Dn,{})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(Fn,{id:m,title:l}),s&&(0,n.jsx)(Nr,{description:s})]})]})},dG=e=>{const{authorName:t,avatar:s,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:c,showAuthor:d,showLessonCount:l,title:u,totalLessons:m,lessonId:p}=e,g=c!=null,C=MC.useMemo(()=>s&&t&&d&&!g,[s,t,d,g]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Fn,{id:p,title:u}),(0,n.jsxs)(r_,{children:[C?(0,n.jsx)(Bn,{authorName:t,avatar:s}):(0,n.jsx)(jm,{}),d&&g&&(0,n.jsx)(wa,{partnerContentAuthors:c}),l?(0,n.jsx)(Hn,{lessonName:r,lessonNumber:a,lessonPreposition:i,showPartnerContent:g,totalLessons:m}):(0,n.jsx)(Dn,{})]}),o&&(0,n.jsx)(Nr,{description:o})]})},uG=e=>{const{authorName:t,avatar:s,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:c,showAuthor:d,showLessonCount:l,title:u,totalLessons:m,lessonId:p}=e,g=c!=null,C=MC.useMemo(()=>s&&t&&d&&!g,[s,t,d,g]);return(0,n.jsxs)(n.Fragment,{children:[l?(0,n.jsx)(Hn,{lessonName:r,lessonNumber:a,lessonPreposition:i,totalLessons:m}):(0,n.jsx)(Dn,{}),C?(0,n.jsx)(Bn,{authorName:t,avatar:s}):(0,n.jsx)(jm,{}),d&&g&&(0,n.jsx)(mm,{partnerContentAuthors:c}),(0,n.jsx)(Fn,{id:p,title:u}),o&&(0,n.jsx)(Nr,{description:o})]})};function hG(e){const t=em();return e.lessonHeaderSize===Li.SMALL&&!t?(0,n.jsx)(lG,{...e}):t?(0,n.jsx)(uG,{...e}):(0,n.jsx)(dG,{...e})}var Ad=f(80588);const{COMPACT:mG,COVER:pG,OVERLAY:fG,SIDEBAR:gG}=So,hc=_("progress-circle");function vG({"aria-hidden":e,"aria-label":t,isFailed:s,isPassed:o,scope:r,value:a}){const[i,c]=Ad.useState(a===100),d=(0,Ae.A)(a),{theme:l}=ee()??{},u=l?.progressIndicatorStyle??Je.THEME_DEFAULT,m=r===pG,p=r===fG,g=u===Je.THEME_DEFAULT,C=u===Je.CIRCULAR_FILL,v=u===Je.INCOMPLETE_COMPLETE,x=hc({compact:r===mG,cover:m,sidebar:r===gG,overlay:p}),y=hc("track",{"circular-fill":!p&&C,"incomplete-complete":m&&v}),S=hc("runner",{"circular-fill":C,done:i,failed:s,passed:o,unstarted:a===0}),L=hc("pass",{done:i,visible:o}),b=hc("fail",{done:i,visible:s}),T=Ad.useMemo(()=>C||a===100?a:0,[C,a]);Ad.useEffect(()=>{if(a!==100&&d===100)c(!1);else if(a===100&&!i&&!v){const k=setTimeout(()=>c(!0),300);return clearTimeout.bind(null,k)}else a===100&&!i&&v&&c(!0)},[i,v,d,a]);const N=Ad.useCallback(()=>{a===100&&c(!0)},[a]);return(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:x,fill:"none",focusable:"false",role:"img",viewBox:"0 0 15 15",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.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,n.jsx)(uC,{className:S,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:N,r:6.5,strokeWidth:2,transform:"rotate(-89.9 7.5 7.5)",value:a}):(0,n.jsx)(xm,{className:S,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:N,r:6.5,strokeLinecap:"round",strokeWidth:2,value:T}),(0,n.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,n.jsx)("path",{className:b,clipRule:"evenodd",d:"M7.5 8.56157L8.84426 9.90564L9.90503 8.84473L8.56078 7.50066L9.90543 6.15582L8.84452 5.09504L7.49986 6.43988L6.15452 5.09473L5.09375 6.15564L6.43909 7.5008L5.09452 8.84555L6.15543 9.90632L7.5 8.56157Z",fillRule:"evenodd"})]})}const Rd=({"aria-hidden":e=void 0,"aria-label":t=void 0,progress:s=0,runnerClass:o,trackClass:r})=>(0,n.jsx)("div",{"aria-hidden":e,"aria-label":t,className:r,role:"img",children:(0,n.jsx)("div",{className:o,style:{width:`${s}%`}})}),CG=_("nav-sidebar-header");function xG(e){const{classProgressRunner:t,classProgressText:s,classProgressTrack:o,percentComplete:r,percentCompleteText:a}=e;return(0,n.jsxs)("div",{className:CG("progress"),"data-testid":"nav-sidebar-progress",children:[(0,n.jsx)("div",{className:s,children:a}),(0,n.jsx)(Rd,{"aria-hidden":"true",progress:r,runnerClass:t,trackClass:o})]})}function bG({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"currentColor",focusable:"false",height:"17",ref:t,role:"img",viewBox:"0 0 17 17",width:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,n.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 yG(e){return(0,n.jsx)(zt,{...e,viewBox:"0 0 16 8",children:(0,n.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 LG(e){const t=It(e,["Default"]);return(0,n.jsx)(zt,{...t,viewBox:"0 0 16 8",children:(0,n.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 SG({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"currentColor",focusable:"false",ref:t,version:"1.1",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:(0,n.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 TG(e){return(0,n.jsx)(bt,{height:"12",viewBox:"0 0 16 12",width:"16",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M9.6665 2H0.666504V0H9.6665V2ZM12.6665 6H0.666504V4H12.6665V6ZM0.666504 10H7.6665V8H0.666504V10Z",fill:"currentColor",fillRule:"evenodd"})})}function OC(e){return(0,n.jsx)(bt,{height:"8",viewBox:"0 0 12 8",width:"12",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M6.00008 7.91406L11.7072 2.20696L10.293 0.792742L6.00007 5.08564L1.70718 0.792742L0.292969 2.20696L6.00008 7.91406Z",fill:"currentColor",fillRule:"evenodd"})})}function NG(e){return(0,n.jsx)(bt,{height:"8",viewBox:"0 0 12 8",width:"12",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M5.99992 0.0859375L0.292818 5.79304L1.70703 7.20726L5.99993 2.91436L10.2928 7.20726L11.707 5.79304L5.99992 0.0859375Z",fill:"currentColor",fillRule:"evenodd"})})}function kG(e){return(0,n.jsxs)(bt,{height:"21",viewBox:"0 0 20 21",width:"20",...e,children:[(0,n.jsx)("path",{d:"M9.94535 6.125C9.1938 6.125 8.52385 6.6729 8.30039 7.48015C8.17194 7.9442 7.70954 8.21104 7.26759 8.07617C6.82564 7.94129 6.5715 7.45577 6.69996 6.99172C7.11282 5.50025 8.3916 4.375 9.94535 4.375C11.8499 4.375 13.3335 6.05606 13.3335 8.05C13.3335 9.7417 12.2656 11.2082 10.7787 11.6139V12.25C10.7787 12.7332 10.4056 13.125 9.94535 13.125C9.48511 13.125 9.11201 12.7332 9.11201 12.25V10.85C9.11201 10.3668 9.48511 9.975 9.94535 9.975C10.8628 9.975 11.6668 9.14886 11.6668 8.05C11.6668 6.95114 10.8628 6.125 9.94535 6.125Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M10.0002 14C9.53992 14 9.16683 14.3918 9.16683 14.875C9.16683 15.3582 9.53992 15.75 10.0002 15.75H10.0085C10.4687 15.75 10.8418 15.3582 10.8418 14.875C10.8418 14.3918 10.4687 14 10.0085 14H10.0002Z",fill:"currentColor"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M0.833496 3.55556C0.833496 2.01519 2.09493 0.875 3.51868 0.875H16.4816C17.9054 0.875 19.1668 2.01519 19.1668 3.55556V17.4444C19.1668 18.9848 17.9054 20.125 16.4816 20.125H3.51868C2.09493 20.125 0.833496 18.9848 0.833496 17.4444V3.55556ZM3.51868 2.625C2.89693 2.625 2.50016 3.10156 2.50016 3.55556V17.4444C2.50016 17.8984 2.89693 18.375 3.51868 18.375H16.4816C17.1034 18.375 17.5002 17.8984 17.5002 17.4444V3.55556C17.5002 3.10156 17.1034 2.625 16.4816 2.625H3.51868Z",fill:"currentColor",fillRule:"evenodd"})]})}function IG(e){return(0,n.jsx)(bt,{height:"15",viewBox:"0 0 16 15",width:"16",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 6.51982C2 4.02359 4.02359 2 6.51982 2C9.01605 2 11.0396 4.02359 11.0396 6.51982C11.0396 9.01605 9.01605 11.0396 6.51982 11.0396C4.02359 11.0396 2 9.01605 2 6.51982ZM6.51982 0C2.91902 0 0 2.91902 0 6.51982C0 10.1206 2.91902 13.0396 6.51982 13.0396C8.06462 13.0396 9.48394 12.5024 10.6011 11.6045L13.9964 14.9998L15.4106 13.5856L11.9518 10.1268C12.6391 9.09384 13.0396 7.8536 13.0396 6.51982C13.0396 2.91902 10.1206 0 6.51982 0Z",fill:"currentColor",fillRule:"evenodd"})})}function EG(e){return(0,n.jsxs)(bt,{height:"18",viewBox:"0 0 18 18",width:"18",...e,children:[(0,n.jsx)("path",{d:"M3.1665 6.08335C3.1665 4.01229 4.84544 2.33335 6.9165 2.33335C8.98757 2.33335 10.6665 4.01229 10.6665 6.08335C10.6665 6.37941 10.6324 6.66643 10.5681 6.9411C10.4634 7.38925 10.7417 7.83748 11.1899 7.94225C11.6381 8.04702 12.0863 7.76865 12.1911 7.3205C12.2841 6.92235 12.3332 6.50805 12.3332 6.08335C12.3332 3.09181 9.90805 0.666687 6.9165 0.666687C3.92496 0.666687 1.49984 3.09181 1.49984 6.08335C1.49984 6.46923 1.54032 6.84657 1.61756 7.21105C1.679 7.50095 1.76362 7.78236 1.86938 8.05316C1.97511 8.32389 2.10191 8.5839 2.24772 8.83119C2.48148 9.22764 2.99237 9.35953 3.38882 9.12577C3.78527 8.89201 3.91716 8.38112 3.6834 7.98467C3.58248 7.81352 3.49485 7.63379 3.42186 7.44688C3.34886 7.25994 3.29045 7.0657 3.24802 6.86551C3.1947 6.61395 3.1665 6.3524 3.1665 6.08335Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9.18922 9.34412L14.8186 10.2697C16.2762 10.5117 17.3332 11.6819 17.3332 13.0521V16.6037C17.3332 17.0029 16.9837 17.3264 16.553 17.3264C16.122 17.3264 15.7728 17.0029 15.7728 16.6037V13.0521C15.7728 12.3826 15.2561 11.8108 14.5446 11.6926L8.30452 10.6667H8.30233C7.90851 10.6331 7.57585 10.2773 7.57585 9.8899V6.0524C7.57585 5.88733 7.48441 5.73325 7.33119 5.64046C7.17921 5.54853 6.99291 5.53668 6.82002 5.60606C6.63747 5.68035 6.51483 5.87085 6.51483 6.08044V15.3607C6.51483 15.6856 6.30169 15.9391 5.91441 16.0741C5.40325 16.2528 4.90988 16.0261 4.70516 15.7226L3.01346 13.2999C2.93513 13.1565 2.84963 13.09 2.68954 13.0406C2.59935 13.0249 2.47889 13.0408 2.37154 13.0906C2.2798 13.1394 2.22768 13.4826 2.38902 13.9902C2.41984 14.0542 3.0442 15.4844 3.27756 16.0189C3.32536 16.1284 3.35676 16.2003 3.36328 16.2152C3.47656 16.4494 3.49404 16.6994 3.40853 16.8957C3.33551 17.0631 3.1904 17.1911 2.98912 17.2663C2.893 17.3018 2.77099 17.3334 2.63742 17.3334C2.36124 17.3334 2.03826 17.1986 1.80702 16.6867L1.75272 16.5849C1.3289 15.6773 1.03464 14.952 0.90735 14.6382L0.905151 14.6328L0.896561 14.6115C0.87092 14.548 0.854463 14.5072 0.847419 14.4926C0.45609 13.3756 0.711983 12.3355 1.49527 11.8308C1.97428 11.5452 2.55316 11.4538 3.08867 11.5781C3.63572 11.7047 4.10288 12.0476 4.40371 12.5436L4.82936 13.2293V5.99429C4.82936 5.3563 5.1692 4.74981 5.7381 4.37228C6.30855 3.99359 7.0238 3.89848 7.69942 4.11153C8.55823 4.3824 9.13554 5.15654 9.13617 6.03881L9.18922 9.34412Z",fill:"currentColor"})]})}function jG(e){return(0,n.jsxs)(bt,{height:"14",viewBox:"0 0 20 14",width:"20",...e,children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"M19.548 2.09234C19.8255 2.23518 20 2.52116 20 2.83331V11.1666C20 11.4788 19.8255 11.7648 19.548 11.9076C19.2704 12.0505 18.9363 12.0262 18.6823 11.8448L12.849 7.67809C12.63 7.52166 12.5 7.2691 12.5 6.99998C12.5 6.73085 12.63 6.47829 12.849 6.32187L18.6823 2.1552C18.9363 1.97376 19.2704 1.9495 19.548 2.09234ZM14.7671 6.99998L18.3333 9.54732V4.45264L14.7671 6.99998Z",fill:"currentColor",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2.5 1.99998C2.03976 1.99998 1.66667 2.37308 1.66667 2.83331V11.1666C1.66667 11.6269 2.03976 12 2.5 12H11.6667C12.1269 12 12.5 11.6269 12.5 11.1666V2.83331C12.5 2.37308 12.1269 1.99998 11.6667 1.99998H2.5ZM0 2.83331C0 1.4526 1.11929 0.333313 2.5 0.333313H11.6667C13.0474 0.333313 14.1667 1.4526 14.1667 2.83331V11.1666C14.1667 12.5474 13.0474 13.6666 11.6667 13.6666H2.5C1.11929 13.6666 0 12.5474 0 11.1666V2.83331Z",fill:"currentColor",fillRule:"evenodd"})]})}function wG(e){return(0,n.jsx)(bt,{height:"14",viewBox:"0 0 14 14",width:"14",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M13.4646 2.46462L11.8484 0.848376L7.00023 5.69652L2.15186 0.848143L0.535612 2.46439L5.38399 7.31276L0.534668 12.1621L2.15091 13.7783L7.00023 8.92901L11.8493 13.7781L13.4656 12.1619L8.61648 7.31276L13.4646 2.46462Z",fill:"currentColor",fillRule:"evenodd"})})}var BC=f(80588);const DC=yn,AG={classic:yn,default:yn,imaginative:Yu,organic:qu},HC=Object.assign(BC.createContext(DC),{displayName:"ThemeContext"});function RG(){return BC.useContext(HC)}function PG({themeId:e,...t}){return(0,n.jsx)(HC.Provider,{...t,value:AG[e]??DC})}function MG(e){return(0,n.jsx)(n.Fragment,{children:e.children})}function OG(){return null}function FC(e,t,s){function o(r){const i=RG()?.[e]?.[t]??s;return(0,n.jsx)(i,{...r,Default:s})}return o.displayName=`ThemeComponent(${t})`,o}function Re(e,t=MG){return FC("components",e,t)}function Tt(e){return FC("icons",e,OG)}var Pd=f(80588);const VC=Pd.createContext({typefaces:[]});function BG({addTypefaces:e,children:t,typefaces:s=[]}){DG(s);const o=Pd.useMemo(()=>({addTypefaces:e,typefaces:s}),[e,s]);return(0,n.jsx)(VC.Provider,{value:o,children:t})}function h2e(){return Pd.useContext(VC)}function DG(e){Pd.useEffect(()=>{const t=new CSSStyleSheet;for(const s of e){const o=`[data-rise-typeface-id="${CSS.escape(s.id)}"] { font-family: "${CSS.escape(s.name)}"; }`;t.insertRule(o)}return t.insertRule('[data-rise-typeface-id="@@heading@@"] { font-family: var(--font-family-head); }'),t.insertRule('[data-rise-typeface-id="@@body@@"] { font-family: var(--font-family-body); }'),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(s=>s!==t)}},[e])}function HG(e){return e.fonts}function zC(){return ae(HG)}var FG=f(80588);function VG({children:e}){const t=zC(),s=FG.useMemo(()=>{const o=new Map;for(const r of t)o.set(r.id,{id:String(r.id),name:r.name,default:r.default});return Array.from(o.values())},[t]);return(0,n.jsx)(BG,{typefaces:s,children:e})}function zG(){const e=ee();return{accentContrast:e.theme?.accentContrast,bodyTypeface:e.bodyTypeface,color:e.color,headingTypeface:e.headingTypeface,isLegacyCourse:e.isLegacyCourse,uiTypeface:e.uiTypeface}}function $G(){const e=Vt(),t=(0,ge.zy)(),s=(0,h.useRef)(e),o=(0,h.useRef)(new Set),r=(0,h.useRef)(window.location.href),a=(0,h.useRef)(null);s.current=e,a.current==null&&(a.current={push:(...i)=>s.current(...i),replace:i=>s.current(i,{replace:!0}),go:i=>s.current(i),goBack:()=>s.current(-1),goForward:()=>s.current(1),listen:i=>(o.current.add(i),()=>{o.current.delete(i)}),location:t}),(0,h.useEffect)(()=>{a.current&&jT(a.current)},[]),(0,h.useEffect)(()=>{if(!a.current)return;a.current.location=t,o.current.forEach(d=>d(t));const i=r.current,c=window.location.href;r.current=c,window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:i,newURL:c}))},[t])}var Da=f(55549),_G=f(30349),UG=f.n(_G);const GG=Ms()(b1()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),Ne()("#FFF")),WG=Kn()({color:GG}),KG=({accentContrast:e,bodyTypeface:t,color:s,headingTypeface:o,isLegacyCourse:r,uiTypeface:a})=>{const i=(0,h.useMemo)(()=>{const l=Bs(s),u=e??l;return!r&&(u===pe.DARK||u===pe.AUTO&&l===pe.DARK)?[ft.DARK,ft.LIGHT]:[ft.LIGHT,ft.DARK]},[e,s,r]),[c,d]=i;return(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:UG()({bodyTypeface:t,colorThemeRGB:(0,Da.A)(s)?.slice(0,3),colorTheme:s,colorThemeContrast:c,colorThemeContrastComplementary:d,colorThemeContrastComplementaryRGB:(0,Da.A)(d)?.slice(0,3),colorThemeContrastRGB:(0,Da.A)(c)?.slice(0,3),colorThemeTint:O0(s),colorThemeTransparent:s+"1A",headingTypeface:o,uiTypeface:a})}})},wm=ce()(KG,WG);wm.displayName="Branding",wm.propTypes={bodyTypeface:xe().string,color:xe().string.isRequired,headingTypeface:xe().string,uiTypeface:xe().string};const QG=(0,h.memo)(wm),ZG=e=>ke?e??"":e?`${e} | ${Hf}`:Hf,mc=e=>ui()?e:ZG(e);let Am=!1;function Er({children:e,title:t,isExplicit:s=!1}){const o=mc(r3()),r=t??o;return h.useEffect(()=>{if(s)return Am=!0,document.title=r,()=>{Am=!1};Am||(document.title=r)},[r,s]),(0,n.jsx)(n.Fragment,{children:e})}function YG(e,t){const s=bl(),{currentLocale:o}=Qe(),r=o&&s?.localeLabelSets?.[o]?.labels||e,a=o&&s?.localeLabelSets?.[o]!=null?o:t;return{labels:r,labelsLocale:a}}function XG({children:e}){const t=ee(),s=Ao(),{labels:o,iso639Code:r}=Yw(),a=S$(),i=Eo(),c=t?.locale??r,{labels:d,labelsLocale:l}=YG(o,c);return(0,n.jsx)(ZE,{course:t,courseProgress:s,labels:d,labelsLocale:l,partnerContent:a,search:i,children:e})}var JG=f(98829);function qG({children:e,l10n:t}){const s=(0,h.useMemo)(()=>({l10n:t==null?null:(0,JG.omit)(["locales","defaultLocale"],t)}),[t]),o=t?.locales,r=t?.defaultLocale,a=t?.localeSelectorOptions,i=t?.languageCodeMetadata,c=(0,h.useMemo)(()=>o==null||r==null?{l10n:null}:{l10n:{locales:o,defaultLocale:r,localeSelectorOptions:a,languageCodeMetadata:i}},[o,r,a,i]);return(0,n.jsx)(Ei.Provider,{value:s,children:(0,n.jsx)(p1.Provider,{value:c,children:e})})}function $C(e,t=window.location){const{defaultLocale:s,locales:o}=e??{},r=t.hash?(0,ge.Rr)(t.hash.slice(1)):t;let i=new URLSearchParams(r.search).get("locale");const c=new URL(window.location.href);return c.pathname.startsWith("/view-pdf/")&&(i=c.searchParams.get("locale")),o?.find(l=>l.locale===i)?.locale||s}function eW({defaultLocale:e,locales:t}){const s=Vt(),o=(0,ge.zy)(),r=(0,h.useRef)(o);r.current=o;const a=(0,h.useMemo)(()=>$C({defaultLocale:e,locales:t},o),[e,t,o]),i=(0,h.useCallback)((c,d="replace")=>{const l=r.current,u=c===e?"":c,m=new URLSearchParams(l.search);m.set("locale",u);const p=l.pathname+"?"+m.toString()+l.hash;d==="push"?s(p):s(p,{replace:!0})},[e,s]);return{currentLocale:a,setCurrentLocale:i}}const _C=e=>e===window.location.origin||e==="articulate.com"||e.endsWith(".articulate.com");function tW(e,t){const s=ee(),o=bl(),r=ae(d=>d.courseLabels.iso639Code),a=s?.locale??r,i=o?.locales;(0,h.useEffect)(()=>{document.documentElement.lang=e??a??""},[e,a]),(0,h.useEffect)(()=>{s&&r1({course:s,locales:i,locale:e})?document.documentElement.dir="rtl":document.documentElement.dir=""},[s,i,e]);const c=(0,h.useCallback)(d=>{if(!_C(d.origin))return;const u=[d.data].flat().find(m=>m?.type==="preview:selectLocale");u&&t(u.data,"replace")},[t]);(0,h.useEffect)(()=>(window.addEventListener("message",c),()=>window.removeEventListener("message",c)),[c])}function sW({children:e}){const t=bl(),{currentLocale:s,setCurrentLocale:o}=eW({defaultLocale:t?.defaultLocale,locales:t?.locales});return tW(s,o),(0,n.jsx)(qG,{l10n:t,children:(0,n.jsx)($E,{currentLocale:s,setCurrentLocale:o,children:e})})}function nW(e){const t=e,s=t?.exportSettings?.webExportSettings,o=t?.exportSettings?.exportType==="raw",r=t?.exportSettings?.exportType==="lms";return!!(o&&s?.disableCoverPage||r&&t?.lmsOptions?.disableCoverPage)}function UC(e){return!wn.isInstantLink&&nW(e)}function oW(e){return oS(e)||L0(e)?!0:UC(e)}function GC(e){return e.lessonsOnly[0]?.id}const WC=(0,h.createContext)({translationHoveredPath:null});function rW(){return(0,h.use)(WC)}const aW=WC.Provider,iW=new Set(["preview:lessonUpdate","preview:navigate","preview:scrollto","preview:showLessonNavNext","preview:showLessonNavPrev","preview:themeUpdate","preview:update","preview:navOpen","preview:navClose","preview:replace","preview:changeset","preview:selectLocale",ds.FOCUS,ds.TOGGLE,ds.CLEAR,ds.TRANSLATION_HOVERED,ds.TRANSLATION_HOVER_CLEAR]),cW=(e,t)=>!(e==="firstLesson"&&t.includes("/lessons/"))&&!(e==="cover"&&(t==="/"||t==="/preview"));function lW({course:e,fonts:t,l10n:s}){let o=!1;return Tv(t,()=>{o||(Cs(Yk({course:e,fonts:t,l10n:s})),window.parent.postMessage({type:"preview:themeUpdateComplete"},window.location.origin))}),{cancel(){o=!0}}}function dW(){let e=[],t=0;return s=>{clearTimeout(t);for(const o of s)e.push(o);t=window.setTimeout(()=>{const o=e;e=[],Cs(Jk(o))},15)}}function uW(){const e=Vt(),t=(0,ge.zy)(),s=ae(y=>y.course),[o,r]=(0,h.useState)(""),[a,i]=(0,h.useState)({translationHoveredPath:null}),[c,d]=(0,h.useState)(!1),[l,u]=(0,h.useState)(!1),m=(0,h.useRef)(e);m.current=e;const p=(0,h.useRef)(t);p.current=t;const g=(0,h.useRef)(s);g.current=s;const C=(0,h.useRef)(null),v=(0,h.useRef)(dW()),x=(0,h.useRef)(t);return(0,h.useEffect)(()=>{x.current!==t&&(u(!0),x.current=t)},[t]),(0,h.useEffect)(()=>{if(l){const y=setTimeout(()=>{u(!1),d(!1)},0);return()=>clearTimeout(y)}},[l]),(0,h.useEffect)(()=>{const y=S=>{const{data:L,origin:b}=S;if(!_C(b))return;const T=m.current,k=p.current.pathname,E=g.current,I=E?.lessonsOnly,A=Array.isArray(L)?L:[L];for(const{type:R,data:j,options:O}of A)if(iW.has(R)){if(R===ds.TOGGLE&&window.targetMode?.(j,P=>{window.parent.postMessage({type:ds.HOVERED,data:P},"*")})?.then(P=>{window.parent.postMessage({type:ds.SELECTED,data:P},"*")}).catch(()=>{window.parent.postMessage({type:ds.SELECTED,data:[]},"*")}),R==="preview:update"&&r(j),R==="preview:themeUpdate"){C.current?.();const{course:w,l10n:P,fonts:M,theme:z}=j,$={...w,theme:z},F=jN({course:E,updates:$}),{cancel:V}=lW({course:F,fonts:M,l10n:P});C.current=V}if(R==="preview:navigate"){let{type:w,lessonId:P,itemId:M}=j;const{path:z,replace:$}=j,F=$?V=>T(V,{replace:!0}):T;if(cW(w,k)){if(Array.isArray(z)){const V=(0,Ur.Ce)(z);if(V)({type:w,lessonId:P,itemId:M}=V);else if(z[0]==="mondrian")for(const K of E?.lessons??[]){const Z=K.items?.find(X=>"blockumentId"in X&&X.blockumentId===z[1]);if(Z){w="lesson",P=K.id,M=Z.id;break}}else continue}if(w==="firstLesson"&&I?.[0])F(`/lessons/${I[0].id}`);else if(w==="cover"||w==="course")F("/");else if(w==="lesson"&&I?.find(({id:K})=>K===P)!=null&&(v1(Xv.getState())===To.RESTRICTED&&Cs(xI({targetLessonId:P,lessons:E?.lessons??[]})),`/lessons/${P}`!==k&&F(`/lessons/${P}`),M||z)){const Z=()=>{window.dispatchEvent(new CustomEvent(We,{detail:{lessonId:P,itemId:M,path:z}}))};`/lessons/${P}`!==k?setTimeout(Z,1500):Z()}}}if(R===ds.CLEAR&&window.dispatchEvent(new CustomEvent(fm)),R==="preview:navOpen"&&window.dispatchEvent(new CustomEvent(J5)),R==="preview:navClose"&&window.dispatchEvent(new CustomEvent(q5)),R==="preview:showLessonNavPrev"&&window.dispatchEvent(new CustomEvent(bd)),R==="preview:showLessonNavNext"&&window.dispatchEvent(new CustomEvent(yd)),R==="preview:scrollto"&&typeof j.target=="string"){const w=document.querySelector(j.target);w&&w.scrollIntoView({behavior:"smooth",block:"start"})}R==="preview:replace"&&Cs(Zk(j)),R==="preview:changeset"&&v.current(j),R===ds.FOCUS&&Mz(j.path),R===ds.TRANSLATION_HOVERED&&(i({translationHoveredPath:j.path}),Pz(j.path)),R===ds.TRANSLATION_HOVER_CLEAR&&(i({translationHoveredPath:null}),wz()),R==="preview:lessonUpdate"&&(Cs(Xk(j)),window.parent.postMessage({type:"preview:lessonUpdateComplete"},window.location.origin)),R==="preview:selectLocale"&&O?.shouldRetainParentFocus&&d(!0)}};return window.addEventListener("message",y),()=>window.removeEventListener("message",y)},[]),{previewType:o,targetModeContext:a,didNavigate:l,shouldSkipAutoFocusOnNavigate:c}}const KC=(0,h.createContext)(null);function Rm(){const e=(0,h.useContext)(KC);if(e==null)throw new Error("usePreviewState must be used within PreviewRuntimeProvider");return e}function hW({children:e}){const{previewType:t,targetModeContext:s,didNavigate:o,shouldSkipAutoFocusOnNavigate:r}=uW(),a=(0,h.useMemo)(()=>({previewType:t||void 0,didNavigate:o,shouldSkipAutoFocusOnNavigate:r}),[t,o,r]);return(0,n.jsx)(aW,{value:s,children:(0,n.jsx)(KC,{value:a,children:e})})}const Ha=_("cover");function mW(){const{categories:e}=ee();return!Array.isArray(e)||e.length===0?null:(0,n.jsxs)("section",{className:Ha("categories-section"),children:[(0,n.jsx)("h2",{className:Ha("categories-title"),children:"Topics"}),(0,n.jsx)("ul",{className:Ha("categories-list"),role:"list",children:e.map(t=>(0,n.jsxs)("li",{className:Ha("categories-item"),role:"listitem",children:[(0,n.jsx)(M$,{className:Ha("categories-icon")}),(0,n.jsx)("span",{className:Ha("categories-item-wrap"),children:t})]},t))})]})}var pW=f(81406);const fW=`${ye("CDN_URI")}/assets/rise/assets/certificate-icon.svg`,gW=`${ye("CDN_URI")}/assets/rise/assets/error_x.svg`,vW=`${ye("CDN_URI")}/assets/rise/assets/loading_spinner.svg`,pc="downloading",Fa="error",jr="ok",Pm="contained",QC=({type:e})=>{const[t]=(0,h.useState)(()=>Cr()("certdownload-")),[s,o]=(0,h.useState)(jr),r=(0,Ae.A)(s),a=(0,h.useRef)(),i=ue(),c=`${t}-live`,d=U()("certificateDownload",{certificateDownloadContained:e===Pm}),l=(0,h.useCallback)(()=>{o(pc)},[]);return(0,h.useEffect)(()=>(s===pc&&r!==pc&&JI().then(()=>{o(jr)}).catch(u=>{(0,pW.FZ)(u)?o(jr):o(Fa)}),()=>{qI()}),[r,s]),(0,h.useEffect)(()=>{a.current&&(s===Fa&&r!==Fa||s===jr&&(r===Fa||r===pc))&&a.current.focus()},[r,s]),(0,n.jsxs)("div",{className:d,children:[(0,n.jsxs)("div",{"aria-live":"polite",id:c,role:"status",children:[s===pc&&(0,n.jsxs)("span",{className:"certificateDownload__downloading",children:[(0,n.jsx)("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:vW,width:"15"}),i?.certificateDownloadInProgress||"Downloading..."]}),s===Fa&&(0,n.jsxs)("span",{className:"certificateDownload__error",children:[(0,n.jsx)("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:gW,width:"15"}),(0,n.jsx)("span",{className:"visually-hidden",children:i?.a11yCertificateDownloadFailed||"Failed to download certificate"})]})]}),(s===jr||s===Fa)&&(0,n.jsxs)("button",{"aria-controls":c,className:"certificateDownload__btn",onClick:l,ref:a,type:"button",children:[s===jr&&e===Pm&&(0,n.jsx)("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:fW,width:"15"}),s===jr?i?.certificateDownload||"Download certificate":i?.certificateRetryDownload||"Retry download"]})]})},CW=()=>(0,n.jsx)(QC,{type:Pm}),xW=(0,h.memo)(QC);var bW=f(20108),yW=f.n(bW),LW=f(83334),SW=f.n(LW);const TW=st()(yW()({}),Q2()(["first_name","last_name"]),na()(" "),SW()),NW=({className:e,decorative:t,size:s,...o})=>{const r=Ft()(["avatars","medium"],o),a=t?"":TW(o)||"Unknown User";return r?(0,n.jsx)("img",{alt:a,className:e||"user-avatar",src:r,style:{height:s,width:s}}):(0,n.jsx)(jh,{decorative:t,height:s,title:a,width:s})},kW=`${IT("CDN_URI")}/assets/rise/assets/trophy.svg`,Md=_("cover");function IW(){const{certificateDownload:e,riseComCurrentUser:t}=ee(),s=ue(),o=Hw(),a=I1()?.quizPassed??!0;return!(o&&a&&!mg())||window.viewType==="preview"?null:(0,n.jsxs)("div",{className:Md("completed-info"),children:[(0,n.jsxs)("div",{className:Md("completed-info-avatar"),children:[(0,n.jsx)(NW,{...t,decorative:!0}),(0,n.jsx)("img",{alt:"",className:Md("completed-info-trophy"),src:kW})]}),(0,n.jsxs)("div",{className:Md("completed-info-label"),children:[(0,n.jsx)("span",{"aria-hidden":"true",children:s?.coverCompleted||"Completed"}),(0,n.jsx)("span",{className:"visually-hidden",children:s?.a11yCoverCourseCompleted||"Course Completed"})]}),e&&(0,n.jsx)(xW,{})]})}const EW=_("cover");function jW({className:e="",dueAt:t}){const s=gw(),o=I1(),r=o==null||o.quizPassed||o.outOfAttempts,a=F5(t),i=EW("due-date",{urgent:a}).mix(e);return!t||s&&r?null:(0,n.jsx)("div",{className:i,tag:"div",children:im(t)})}const wW=Re("CoverDueDate",jW);function AW(e){const{dueAt:t}=ji()??{};return(0,n.jsx)(wW,{...e,dueAt:t})}const ZC=({failed:e,complete:t})=>{const s=ue();return(0,n.jsxs)("span",{className:"visually-hidden-always",children:[e?s?.a11yCoverRequirementFailed||"Requirement failed":t?s?.a11yCoverRequirementComplete||"Requirement complete":s?.a11yCoverRequirementIncomplete||"Requirement incomplete",": "]})},mn=_("cover");function RW(){const e=ee(),t=ue(),{trackingCompletionPercentage:s,trackingQuizId:o}=e;return s==null&&!o?null:(0,n.jsxs)("section",{className:mn("requirements-section"),children:[(0,n.jsx)("h2",{className:mn("requirements-title"),children:t?.coverCourseRequirements||"Course Requirements"}),(0,n.jsxs)("ul",{className:mn("requirements-list"),children:[(0,n.jsx)(PW,{}),(0,n.jsx)(OW,{})]})]})}function PW(){const{trackingCompletionPercentage:e}=ee(),t=m3(),s=ma(),o=ue(),r=Math.ceil(e/100*t),a=r===t;if(e==null||r==null)return null;const i=s>=e,c=i?D$:H$;return(0,n.jsxs)("li",{className:mn("lesson-requirement"),role:"listitem",children:[(0,n.jsx)(c,{"aria-hidden":"true",className:mn("lesson-requirement-icon",{complete:i}).toString()}),(0,n.jsxs)("span",{className:mn("lesson-requirement-text"),children:[(0,n.jsx)(ZC,{complete:i}),a?o?.coverCompleteAllLessons||"Complete all lessons in this course":[o?.coverCompleteLessonsName||"Complete",r,o?.coverCompleteLessonsPreposition||"of",t,o?.coverCompleteLessonsInCourse||"lessons in this course"].join(" ")]})]})}const MW={passed:z$,failed:V$,requirement:$$};function OW(){const e=ue(),t=fw(),s=I1(),o=rn(),r=it(t?.title),a=t?.settings?.passingScore;if(!r||!s)return null;const{outOfAttempts:i,quizPassed:c}=s,d=!c&&i;let l="requirement";c?l="passed":d&&(l="failed");const u=MW[l],m=ja({percent:a,label:e?.coverQuizPercentOrHigher||"% or higher",isRTL:o});return(0,n.jsxs)("li",{className:mn("quiz-requirement"),role:"listitem",children:[(0,n.jsx)(u,{"aria-hidden":"true",className:mn("quiz-requirement-icon",{type:l}).toString()}),(0,n.jsxs)("span",{className:mn("quiz-requirement-text"),children:[(0,n.jsx)(ZC,{complete:c,failed:d}),r,a!=null&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":"true",className:mn("quiz-requirement-seperator"),children:"\xA0|\xA0"}),e?.coverQuizScoreOf||"Score of"," ",m]}),d&&(0,n.jsx)("div",{className:mn("quiz-requirement-no-attempts"),children:e?.coverNoAttemptsRemaining||"No attempts remaining"})]})]})}const BW=_("cover"),DW=e=>{const{coursePartnerContent:t,hasPartnerContent:s}=e;return s?(0,n.jsx)(kd,{type:"partner-content",children:(0,n.jsx)(vC,{partnerContent:t})}):null},HW=Re("CoverCourseInfo",e=>{const{coursePartnerContent:t,hasLogo:s,hasPartnerContent:o}=e,r=BW("details-content-aside",{logo:s});return(0,n.jsxs)("div",{className:r,children:[ke&&(0,n.jsx)(om,{}),(0,n.jsx)(DW,{coursePartnerContent:t,hasPartnerContent:o}),ke&&!o&&(0,n.jsx)(I$,{}),ke&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(RW,{}),(0,n.jsx)(AW,{}),(0,n.jsx)(IW,{}),(0,n.jsx)(mW,{})]})]})}),FW=_("cover"),VW=Re("CoverDescription",()=>{const e=ee(),{navigation:t}=e,s=Ie(e.description),o=t?"description":"description-no-outline";if(!s)return null;const r=ka("description"),a=(0,Et.uW)(e.description)?{"data-l10n-id":e.description.l10nId}:{"data-change-path":r};return(0,n.jsx)("div",{...a,children:(0,n.jsx)(kd,{type:o,children:(0,n.jsx)(Le,{className:FW("details-content-description"),value:Zh(s)},"text")})})}),YC=_("cover"),zW=({className:e=YC("details-logo"),imageClassName:t=YC("details-logo-image")})=>{const s=ee()??{},o=Ie(s.media)?.image??{},{height:r,key:a,width:i,scalar:c=S0.SMALL.value}=o,d={width:i*c,height:r*c};if(!a)return null;const l=vt(o);return(0,n.jsx)("div",{className:e,"data-testid":"cover-details-logo",children:(0,n.jsx)("img",{alt:"",className:t,"data-testid":"cover-details-logo-image",height:d.height,src:l,width:d.width})})},$W=(e,t)=>{const s=Ft()(["lessons",t],e),o=Fe()(0,["percentComplete"],s),r=Ft()(["passed"],s);return{isComplete:Ft()(["isComplete"],s),percentComplete:o,passedQuiz:r}};function _W({icon:e,...t}){switch(e){case Lo.ARTICLE:return(0,n.jsx)(GO,{...t});case Lo.INTERACTION:return(0,n.jsx)(PF,{...t});case Lo.QUIZ:return(0,n.jsx)(oF,{...t});case Lo.VIDEO:return(0,n.jsx)(QF,{...t});default:return(0,n.jsx)("i",{className:"icon icon-Master-02"})}}var fc=f(41496);function Us(){return(0,ge.RQ)("/lessons/:currentLessonId")?.params?.currentLessonId}const UW=Re("LessonProgressGraphic");function Od({canComplete:e,id:t,isDark:s,isEnabled:o,isTooltipVisible:r,onHideTooltip:a,onShowTooltip:i,scope:c}){const{color:d,navigationStyle:l}=ee(),u=Ro(t),m=Us(),p=R3(t),g=P3(t),C=Oi(t),v=ue(),x=C?.type!=null,y=u?.isComplete,S=t===m,L=u?.percentComplete??0,b=(0,h.useCallback)(()=>{Cs(ev(t))},[t]),T=(0,h.useCallback)(()=>{Cs(sI(t))},[t]);return(0,n.jsx)(LC,{canComplete:e,color:d,hasRestriction:x,isComplete:y,isCurrentLesson:S,isDark:s,isEnabled:o,isFailed:p,isPassed:g,isTooltipVisible:r,labels:v,navigationStyle:l,onHideTooltip:a,onMarkComplete:b,onMarkReset:T,onShowTooltip:i,percentComplete:L,progressGraphic:UW,scope:c})}const GW=_("overview-list-item");function WW({className:e,id:t,last:s}){const o=Vt(),r=Us(),{color:a,isLegacyCourse:i,navigationStyle:c,theme:d}=ee(),{accentContrast:l}=d,{icon:u,title:m}=wt(t)??{},p=it(m),g=Ro(t),C=R3(t),v=P3(t),x=Oi(t),y=ue(),S=(0,Et.uW)(m)?{"data-l10n-id":m.l10nId}:{"data-change-path":E5(t,"title")},L=g?.isComplete,b=g?.percentComplete??0,T=x?.type!=null,[N,k]=(0,h.useState)(!1),E=(0,h.useCallback)(()=>k(!0),[]),I=(0,h.useCallback)(()=>k(!1),[]),A=U()("overview-list__li",{"overview-list__li--last":s}),R=U()(e,"overview-list-item"),j=(0,h.useCallback)(O=>{const{currentTarget:{hash:w}}=O;O.preventDefault(),fc.Ay.Events.scrollEvent.register("end",()=>{io(()=>{o(w.slice(1))},"cover-to-lesson"),fc.Ay.Events.scrollEvent.remove("end")}),fc.Ay.animateScroll.scrollTo(0,{containerId:"overview"})},[o]);return(0,n.jsx)("li",{...S,className:A,"data-testid":`overview-list-item-${t}`,role:"listitem",children:(0,n.jsx)(rc,{className:R,isTooltipEnabled:!0,lessonId:t,onBlur:I,onClick:j,onHideProgressTooltip:I,onShowProgressTooltip:E,showProgressDelay:25,tooltipClassName:"overview-list-item-tooltip",children:(0,n.jsx)(ZW,{accentContrast:l,color:a,hasRestriction:T,isComplete:L,isCurrentLesson:t===r,isFailed:C,isLegacyCourse:i,isPassed:v,isTooltipVisible:N,labels:y,lessonIcon:u,lessonId:t,lessonTitle:p,navigationStyle:c,onHideTooltip:I,onShowTooltip:E,percentComplete:b,progressGraphic:KW,scope:So.COVER})})})}const KW=Re("LessonProgressGraphic");function QW({isTooltipVisible:e,lessonIcon:t,lessonId:s,lessonTitle:o,onHideTooltip:r,onShowTooltip:a,scope:i}){const c=GW("progress-circle");return(0,n.jsxs)("div",{className:c,children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"overview-list-item__icon",children:(0,n.jsx)(_W,{icon:t})}),(0,n.jsx)("span",{className:"overview-list-item__title","data-testid":`overview-list-item-title-${s}`,children:o}),(0,n.jsx)(Od,{canComplete:!1,id:s,isDark:!1,isEnabled:!0,isTooltipVisible:e,onHideTooltip:r,onShowTooltip:a,scope:i})]})}const ZW=Re("OverviewListItemLinkContent",QW),YW=_("overview-list"),XW=e=>e.reduce((t,s)=>(s.type==="section"?t.push([s]):t[t.length-1]?t[t.length-1].push(s):t.push([s]),t),[]),JW=Re("OverviewListSectionTitle",({className:e="",...t})=>{const s=Kr()(["Default"],t);return(0,n.jsx)("h2",{...s,className:`${e} overview-list__section-title`})}),qW=()=>{const e=Ao(),t=Gw(),s=ue(),o=XW(t);return(0,n.jsx)("nav",{"aria-label":s?.a11yRegionNavOverview,className:"overview-list",children:o.map((r,a)=>{const[i={},...c]=r,{title:d,type:l}=i,u=l==="section",m=u?c:r,p=YW("list",{sectionless:!u});return(0,n.jsxs)("section",{children:[u&&d&&(0,n.jsx)(JW,{children:(0,n.jsx)(lt,{value:d})}),(0,n.jsx)("ol",{className:p,role:"list",children:m.map((g,C)=>{const{passedQuiz:v}=$W(e,g.id);return(0,n.jsx)(WW,{id:g.id,last:m.length>1&&C===m.length-1,passedQuiz:v},g.id)})})]},a)})})},eK=(0,h.memo)(qW),tK=e=>Object.values(S0).find(t=>t.value==e);function sK(e){return(0,h.useMemo)(()=>tK(e)??S0.SMALL,[e])?.label.toLowerCase()}const Va=_("cover"),nK=Re("CoverDetails",({reverseColumns:e})=>{const t=xt(1200),{description:s,media:o,navigation:r,partnerContentId:a,publishedAt:i,selectedAuthorId:c}=ee(),d=Lr(),l=Hs()(Pe()("id",c),d),u=!!a&&l,m=it(o)?.image,p=!gt()(m),g=!s||!r,C=!s&&!r,v=!!(u||ke),x=Va("details",{"rise-com":ke,"rise-com-authoring":ke&&!i}),y=Va("details-content-wrap",{columns:v,logo:p}),S=Va("details-content",{"no-description-or-outline":g}),L=Va("details-logo",{centered:C,"no-description-or-outline":g,"has-partner-content":!!a}),b=v&&(0,n.jsx)(HW,{coursePartnerContent:l,hasLogo:p,hasPartnerContent:u}),T=sK(m?.scalar),N=Va("details-logo-image",{[T]:!0}),k=Va("details-description-outline");return(0,n.jsx)("section",{className:x,"data-testid":"cover-details",children:(0,n.jsxs)("div",{className:y,children:[!t&&e&&b,(0,n.jsxs)("div",{className:S,children:[(0,n.jsx)(zW,{className:L,imageClassName:N}),(0,n.jsxs)("div",{className:k,children:[s&&(0,n.jsx)(VW,{}),t&&b,r&&(0,n.jsx)(kd,{type:"outline",children:(0,n.jsx)(eK,{})})]})]}),!t&&!e&&b]})})}),oK=Re("CoverHeader"),rK=Re("CoverLayout"),aK=["[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(e=>`${e}:not([tabindex="-1"]):not([hidden]):not([aria-hidden="true"])`).join(", "),XC=(e,t=!1)=>s=>{const o=JC(s);if(o.length===0)return;const r=e>=o.length&&t?0:e;return Tf()(r,o)},JC=e=>e?Array.from(e.querySelectorAll(aK)).filter(t=>window.getComputedStyle(t).display!=="none"):[],qC=XC(0),iK=XC(-1),Mm=e=>qC(e)?.focus?.();function cK(){const e=(0,h.useRef)(null);function t(s){const o=qC(e.current),r=iK(e.current);ud(s)&&(s.shiftKey?document.activeElement===o&&(r.focus(),s.preventDefault()):document.activeElement===r&&(o.focus(),s.preventDefault()))}return(0,h.useEffect)(()=>{const s=e?.current;return s?.addEventListener("keydown",t),()=>{s?.removeEventListener("keydown",t)}},[]),e}var Om;const Bm=h.createContext(null);Bm.displayName="UndoManagerContext";function S2e(e){return Om(Bm.Provider,{value:e.undoManager,children:e.children})}function e4(){return h.useContext(Bm)}function T2e(e){function t(s){const o=e4();return Om(e,{...s,undoManager:o})}return t.displayName=`withUndoManager(${e.displayName||e.name})`,t}function t4(){const e=e4();h.useEffect(()=>{if(e!=null)return e.disable(),()=>e.enable()},[e])}function N2e(e){function t(s){return t4(),Om(e,{...s})}return t.displayName=`withDisableUndoManager(${e.displayName||e.name})`,t}const Ls=_("modal"),Dm=h.forwardRef((e,t)=>{const{children:s,className:o,"data-testid":r,darkOverlay:a,disableBackgroundScroll:i,disableCloseOnOverlayClick:c,disableCloseOnEscape:d=!1,focusFirstInput:l=!0,focusOnOpen:u=!0,footer:m,forceToTop:p=!1,fullscreen:g=!1,heading:C,hideCloseButton:v=!1,hideHeader:x=!1,skipDialogClose:y=!1,useTopLayer:S=!0,onCancel:L,onClose:b=tn,onClickBack:T,onCloseBubbles:N=!1,onOverlayClick:k,scroll:E=!1,subHeading:I,subText:A,width:R}=e;t4();const j=cK(),O=(0,h.useRef)(null),w=(0,h.useCallback)(()=>{const $=j.current;!y&&$?.open&&$.close(),b()},[b,j,y]);(0,h.useEffect)(()=>{const $=F=>{ls(F)&&!d&&(F.preventDefault(),F.stopPropagation(),L?.(F),w())};return document.addEventListener("keydown",$,!N),()=>{document.removeEventListener("keydown",$,!N)}},[d,L,w,N]),(0,h.useEffect)(()=>{const $=j.current;if($)return S?$.showModal():$.show(),u||setTimeout(()=>{$.contains(document.activeElement)&&document.activeElement?.blur()},0),()=>{$.close()}},[j,S,u]),(0,h.useEffect)(()=>{if(l&&j.current){const $=JC(j.current).find(V=>V.tagName==="INPUT"||V.tagName==="TEXTAREA"||V.tagName==="SELECT"),F=$||O?.current;F?.focus(),F instanceof HTMLTextAreaElement&&F.setSelectionRange(F.value.length,F.value.length)}},[l,j]),(0,h.useEffect)(()=>(i&&(document.scrollingElement||document.documentElement).classList.add("no-scroll"),()=>{i&&(document.scrollingElement||document.documentElement).classList.remove("no-scroll")}),[i,j]);const P=Ls({"force-to-top":p}).mix(o),M=Ls("content",{"with-footer":!!m,"force-scroll":!!E}),z=Ls("overlay",{dark:!!a});return(0,n.jsxs)("dialog",{"aria-labelledby":"modal-heading","aria-modal":"true",className:P.toString(),"data-testid":r,onClose:w,ref:$=>{j.current=$,t&&(t.current=$)},role:"dialog",children:[(0,n.jsx)("div",{id:"modal-portal"}),(0,n.jsx)("div",{className:z,onClick:c?void 0:k||w}),(0,n.jsxs)("div",{className:Ls("dialog",{fullscreen:g}),style:R&&!g?{width:R}:{},children:[(!x||!v)&&(0,n.jsxs)("div",{className:Ls("heading-wrapper"),children:[(0,n.jsxs)("div",{className:Ls("heading-flexbox"),children:[!x&&(0,n.jsxs)("div",{className:Ls("header"),children:[T&&(0,n.jsx)(Be.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,n.jsxs)("h1",{className:Ls("heading"),id:"modal-heading",children:[C,(0,n.jsx)("span",{className:Ls("subheading"),children:I})]})]}),!v&&(0,n.jsx)("button",{"aria-label":"close dialog",className:Ls("close"),onClick:w,ref:O,type:"button",children:(0,n.jsx)(ie,{className:"icon",name:"close"})})]}),A?(0,n.jsx)("h2",{className:Ls("subtitle"),children:A}):[]]}),(0,n.jsx)("div",{className:M,children:s}),m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:Ls("footer-shadow")}),(0,n.jsx)("div",{className:Ls("footer"),children:m})]})]})]})}),za=_("locale-selector"),Hm=({onClose:e})=>{const t=(0,ge.zy)(),s=ee(),o=ej(),r=Cl(),a=tj(),i=a?.length?a:o&&r?r?.map(T=>T.locale):void 0,[c,d]=(0,h.useState)(!1),l=c&&(i?.length||0)>1,u=(0,Ae.A)(l),m=it(s?.title),{currentLocale:p,setCurrentLocale:g}=Qe(),C=xV(),v=ue(),[x,y]=(0,h.useState)(!1),S=(0,h.useCallback)(T=>{zT(T),g(T)},[g]),L=()=>{Cs(q0(!1))};(0,h.useEffect)(()=>{u&&!l&&e?.()},[e,u,l]),(0,h.useEffect)(()=>{if(!i||x||o===void 0||!r)return;if(i.length===1){S(i[0]),y(!0);return}const T=lg(void 0),N=VT()??"";if(N!==""){S(N),y(!0),d(!1);return}T?.[fi]==null&&N===""?d(!0):(d(!1),L());const E=(navigator.language??"en-US").toLowerCase(),I=i.find(A=>A.toLowerCase()===E);S(I?E:i[0]),y(!0)},[i,t,S,x,o,r,d]);const b=T=>{T.preventDefault();const N=T.target.value;S(N)};return!l||o===void 0||!r?null:(0,n.jsx)(Wn,{classNames:"modal",timeout:400,children:(0,n.jsx)(Dm,{className:za("modal"),disableCloseOnOverlayClick:!0,hideCloseButton:!0,hideHeader:!0,onClose:L,children:(0,n.jsxs)("div",{className:za("container"),children:[(0,n.jsx)("div",{className:za("heading"),children:v.l10nChooseLanguage}),(0,n.jsx)("div",{className:za("course-title"),children:m}),(0,n.jsx)("div",{className:za("selector"),children:(0,n.jsx)("select",{onChange:b,value:p,children:i.map(T=>(0,n.jsx)("option",{value:T,children:C(T)},T))})}),(0,n.jsx)("div",{className:za("footer"),children:(0,n.jsx)(Be.ArcButton,{onClick:L,size:"lg",children:v.l10nChooseLanguageContinue})})]})})})};var lK=f(80588);const dK=_("cover-container"),s4=()=>document.querySelector("h1")?.focus({preventScroll:!0});function uK(){const{didNavigate:e,shouldSkipAutoFocusOnNavigate:t}=Rm(),o=ue()?.overviewPageTitleSuffix,r=ca();return lK.useEffect(()=>{t||e&&s4()},[e,t]),(0,n.jsxs)(Er,{title:mc(`${r} - ${o}`),children:[(0,n.jsx)("main",{children:(0,n.jsx)("div",{className:dK({}),children:(0,n.jsxs)(rK,{children:[(0,n.jsx)(oK,{}),(0,n.jsx)(nK,{})]})})}),(0,n.jsx)(Hm,{onClose:s4})]})}const n4=uK,o4=(0,h.createContext)(void 0);function Bd(){const e=(0,h.useContext)(o4);return e||(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 r4(e){function t(s){const o=Bd();return(0,n.jsx)(e,{...s,...o})}return t.displayName=`WithMediaContextWrapper(${e.name})`,t}function hK({children:e,lessonId:t,mode:s="readonly",openTranscript:o,closeTranscript:r,onTranscriptUpdate:a,disableTranscriptButton:i=!1}){const c={mode:s,lessonId:t||"",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,n.jsx)(o4.Provider,{value:c,children:e})}const a4=(0,h.createContext)(void 0),mK=a4.Provider;function gc(){return(0,h.useContext)(a4)}function pK({children:e}){const t=ae(s=>s.transcriptPanel);return(0,n.jsx)(mK,{value:t,children:e})}const i4=(0,le.action)(Wv),vc=(0,le.action)(Kv),Fm=(0,le.action)(Qv);function pn(e){return e.refs?Ca()("audio-id__refs_"+e.refs.toLowerCase()):""}function Vm(e){if(e)return`audio-transcript--${e}`}function c4(e){if(e)return`audio-player-transcript-toggle--${e}`}const l4=_("course-exit");function d4(e){const t=ue(),{className:s,lmsOptions:o,style:r}=e;return o?.enableExitCourse?(0,n.jsx)("div",{className:l4("wrapper"),children:(0,n.jsx)("button",{className:l4("button").mix(s),onClick:Ff,style:r,type:"button",children:t?.courseExit})}):null}const zm=_("nav-control"),fK=()=>{const[e,t]=(0,h.useState)(!1);return(0,Ze.A)(sC,()=>t(!0)),(0,Ze.A)(gm,()=>t(!1)),e},gK=({"aria-controls":e,isNavOpen:t,toggleNav:s,hideNav:o})=>{const{buttonNavigationStyle:r,lmsOptions:a,showNavigationButtons:i,...c}=ee(),d=(0,h.useRef)(null),[l,u]=(0,h.useState)(0),m=ue(),p=ic(),g=Sl(),C=fK(),x=!!(0,h.useMemo)(()=>c.lessons?.find(N=>N.id===g),[c.lessons,g])?.settings?.timer,y=a?.enableExitCourse,S=x||y,L=c.navigationType===dr.COMPACT,b=L?"fixed-course-exit":void 0;(0,h.useEffect)(()=>{d.current=document.querySelector(".page-wrap");const k=document.querySelector(".lesson-nav--previous")?.clientHeight??60,E=!i||r===Xn.FLOATING&&!p;function I({target:A}){const R=A?.scrollTop??0,j=k-R;u(j)}return C&&!E?d.current.scrollTop===0?u(k):d.current.addEventListener("scroll",I):u(0),()=>d.current.removeEventListener("scroll",I)},[r,p,C,i]);const T=(0,h.useCallback)(()=>{const N=document.getElementsByClassName("nav-control__menu--top-nav-bar")?.item(0);if(d.current&&N){const k=d.current.offsetWidth-d.current.clientWidth||0;N.style.maxWidth=`calc(100% - ${k}px)`}},[]);return(0,h.useLayoutEffect)(()=>{S&&T()},[S,T]),(0,n.jsx)("div",{className:zm("wrapper"),children:(0,n.jsxs)("div",{className:zm("menu",{"is-timed-quiz":x,"nav-off":o,"top-nav-bar":S}),style:{marginTop:l},children:[!o&&(!L||p)&&(0,n.jsx)("button",{"aria-controls":e,"aria-expanded":t,"aria-label":t?m?.a11yNavigationMenuClose:m?.a11yNavigationMenuOpen,className:zm("button"),onClick:s,type:"button",children:(0,n.jsx)(ie,{classNameIcon:"page-menu-toggle__icon",name:"bars-regular"})}),(0,n.jsx)(d4,{className:b,lmsOptions:a})]})})},u4=_("nav-compact"),vK=Re("NavCompactHeaderCounter",e=>{const{lessonPosition:t,labelLessonName:s,labelLessonPreposition:o,totalLessons:r}=e;return t<=0?null:(0,n.jsx)("div",{className:u4("header-counter"),"data-testid":"nav-compact-counter",children:`${s} ${t} ${o} ${r}`})}),CK=Re("NavCompactHeaderProgress",e=>{const{classProgressRunner:t,classProgressText:s,classProgressTrack:o,percentComplete:r,percentCompleteText:a,navExpanded:i}=e;return(0,n.jsxs)("div",{className:u4("header-progress"),"data-testid":"nav-compact-progress",children:[(0,n.jsx)("div",{className:s,children:a}),(0,n.jsx)(Rd,{"aria-hidden":i,"aria-label":a,progress:r,runnerClass:t,trackClass:o})]})}),xK=({closeNav:e,isExpanded:t,openNav:s})=>{const o=Vt(),r=at(),a=ji(),i=ee(),c=ca(),d=ma(),l=ue(),u=Eo(),m=yl(),p=Sl(),g=O3(),C=(0,h.useMemo)(()=>i?.lessonsOnly?.length??0,[i?.lessonsOnly]),v=(0,h.useMemo)(()=>g[p]??-1,[g,p]),x=a?.navigationStyle,y=(0,h.useMemo)(()=>Pi(x),[x]),S=(0,h.useCallback)(()=>{t?e():s()},[t,s,e]),L=a?.exportSettings?.webExportSettings,b=!wn.isInstantLink&&(a?.lmsOptions?.disableCoverPage||L?.disableCoverPage),T=(0,h.useCallback)(te=>{te.preventDefault(),io(()=>{o("/")},"lesson-to-cover")},[o]),E=`${rn()?`%${d}`:`${d}%`} ${l?.lessonComplete??""}`,{alpha:I,ariaLabel:A,media:R,role:j}=Sr("coverImage"),O=(0,h.useMemo)(()=>ua({alpha:I,color:a?.theme?.coverImageColor,media:R}),[I,a?.theme?.coverImageColor,R]),w=U()("nav-compact__header",{"nav-compact__header--collapsed":!t}),P=U()("nav-compact__header-image",{"nav-compact__header-image--collapsed":!t}),M="nav-compact__header-inner",z="nav-compact__header-control",$=U()("nav-compact__header-title-link",{"nav-compact__header-title-link--collapsed":!t}),F=U()("nav-compact__header-progress-text",{"nav-compact__header-progress-text--collapsed":!t}),V=U()("nav-compact__header-progress-track",{"nav-compact__header-progress-track--collapsed":!t}),K=U()("nav-compact__header-progress-runner",{"nav-compact__header-progress-runner--collapsed":!t}),Z="nav-compact__header-strip",X=(0,h.useCallback)(()=>{r(Ni(!u?.active))},[r,u?.active]);return(0,n.jsxs)("section",{"aria-label":"Course Information",className:w,"data-testid":"nav-compact-header",children:[y&&O&&(0,n.jsx)("div",{"aria-label":A,className:P,role:j,style:O}),(0,n.jsxs)("div",{className:M,children:[(0,n.jsxs)("div",{className:Z,children:[(0,n.jsxs)("div",{className:"nav-compact__header-controls",children:[a?.allowSearch&&m!=="restricted"&&t&&(0,n.jsx)("button",{"aria-label":l?.a11ySearchOpen,className:`${z} nav-compact__header-search`,"data-testid":"nav-compact-search",onClick:X,type:"button",children:(0,n.jsx)(sc,{className:"nav-compact__header-control-icon nav-compact__header-search-icon"})}),(0,n.jsxs)("button",{"aria-controls":"nav-compact-outline","aria-expanded":t,"aria-label":t?l?.a11yNavigationMenuClose:l?.a11yNavigationMenuOpen,className:`${z} nav-compact__header-toggle`,"data-testid":"nav-compact-toggle",onClick:S,type:"button",children:[t&&(0,n.jsx)(O$,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"}),!t&&(0,n.jsx)(B$,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"})]})]}),(0,n.jsx)(vK,{labelLessonName:l?.lessonName??"",labelLessonPreposition:l?.lessonPreposition??"",lessonPosition:v,totalLessons:C})]}),(0,n.jsx)("div",{className:"nav-compact__header-title","data-testid":"nav-compact-title",children:b?(0,n.jsx)("span",{className:$,children:c}):(0,n.jsx)(cs,{className:$,onClick:T,to:"/",children:c})}),(0,n.jsx)(CK,{classProgressRunner:K,classProgressText:F,classProgressTrack:V,navExpanded:t,percentComplete:d,percentCompleteText:E})]})]})};var bK=f(16733),yK=f.n(bK),LK=f(88139),SK=f.n(LK),TK=f(11406),NK=f.n(TK),kK,IK,EK,jK,wK;function h4(e,t,s="..."){const o=e?e.toString():"";return o.length>t?o.substr(0,t-1)+s:o}const R2e=e=>wK(t=>IK(t)>e,EK(0,e)),AK=null,RK=e=>AK.test(e),PK=e=>e>=0,MK=e=>e<=100,P2e=e=>e==="",M2e=e=>RK(e)&&MK(e)&&PK(e),O2e=e=>String(Number(e)),m4=ce()(na()(""),yK()(SK(),0)),B2e=ce()(na()(" "),tt()(m4),B0()(" ")),p4=ce()(na()(" "),B0()(/(?=[A-Z]|^)/)),D2e=e=>e?kK(m4,jK,p4)(e):"",H2e=ce()(NK(),p4);function f4({id:e,isEnabled:t,isSectionLesson:s,last:o}){const{navigationStyle:r}=ee(),{settings:a}=wt(e)??{},i=fa(e),c=Us(),d=w1(e),l=(0,h.useMemo)(()=>wo(r),[r]),u=e===c,m=a?.isGeneratingAIContent===!0,p=h4(i||"",45),[g,C]=(0,h.useState)(!1),v=(0,h.useCallback)(()=>C(!0),[]),x=(0,h.useCallback)(()=>C(!1),[]),y=s?"nav-compact__outline-section-item":"nav-compact__outline-item",S=`${y}__link`,L=(0,n.jsx)(Od,{canComplete:d,id:e,isDark:l,isEnabled:t,isTooltipVisible:g,onHideTooltip:x,onShowTooltip:v,scope:So.COMPACT});return(0,n.jsx)("li",{className:"nav-compact__outline-list-item","data-testid":`nav-compact-lesson-${e}`,role:"listitem",children:m?(0,n.jsx)("div",{className:y,children:(0,n.jsx)("span",{"aria-disabled":"true",className:`${S} ${S}--generating`,"data-testid":`nav-compact-lesson-${e}-generating`,children:p})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(rc,{className:y,dark:l,isCurrentLesson:u,isTooltipEnabled:!d,last:o,lessonId:e,onHideProgressTooltip:x,onShowProgressTooltip:v,showProgressDelay:0,tooltipClassName:`${y}-tooltip`,children:[p,!d&&L]}),d&&L]})})}const OK=_("nav-compact"),BK=({id:e})=>{const t=wt(e),s=it(t?.title),o=OK("outline-section-empty");return(0,n.jsx)("div",{className:o,children:(0,n.jsx)("span",{children:s})})};var $a=f(80588);const DK=({index:e,isEnabled:t,lessonIds:s,id:o})=>{const r=ee(),a=r?.theme,i=r?.themeId,c=a?.navigationSectionsExpanded??!0,d=wt(String(o)),l=it(d?.title),[u,m]=$a.useState(c);$a.useEffect(()=>{m(c)},[c]);const[p,g]=$a.useState(),C=$a.useRef(null),v=`sublistCompact-${e}`,x=String(i),y=U()("nav-compact__outline-section-toggle-icon",{"nav-compact__outline-section-toggle-icon--collapsed":!u}),S=U()("nav-compact__outline-section-list",{"nav-compact__outline-section-list--collapsed":!u}),L=U()("nav-compact__outline-section-toggle",{"nav-compact__outline-section-toggle--collapsed":!u}),b=$a.useCallback(()=>{m(T=>!T)},[]);return $a.useLayoutEffect(()=>{const T=setTimeout(()=>{C.current&&g(C.current.scrollHeight)},0);return()=>{clearTimeout(T)}},[s.length,x]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{"aria-controls":v,"aria-expanded":u,className:L,onClick:b,tabIndex:t?void 0:-1,type:"button",children:[(0,n.jsx)("span",{className:"nav-compact__outline-section-toggle-text",children:l}),(0,n.jsx)(G5,{className:y})]}),(0,n.jsx)(Bi,{inert:!u,children:(0,n.jsx)("ol",{"aria-hidden":u?void 0:!0,className:S,id:v,ref:C,role:"list",style:{maxHeight:p},children:s.map((T,N)=>(0,n.jsx)(f4,{id:T,isEnabled:t&&u,isSectionLesson:!0,last:N===s.length-1},T))})})]})},HK=({index:e,isEnabled:t,lessonIds:s})=>{const[o,...r]=s,a="nav-compact__outline-item nav-compact__outline-section";return gt()(r)?(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(BK,{id:o})}):(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(DK,{id:o,index:e,isEnabled:t,lessonIds:r})})},FK=({index:e,isEnabled:t,lessonIds:s})=>Il(s)?(0,n.jsx)(HK,{index:e,isEnabled:t,lessonIds:s}):s.map((r,a)=>(0,n.jsx)(f4,{id:r,isEnabled:t,isSectionLesson:!1,last:a===s.length-1},r)),VK=Re("NavCompactOutline",({className:e="",isEnabled:t})=>{const s=jl(),o=ue(),r=U()(e,"nav-compact__outline",{"nav-compact__outline--collapsed":!t});return(0,n.jsx)("section",{"aria-label":o?.a11yRegionNavOverview,className:r,"data-testid":"nav-compact-outline",id:"nav-compact-outline",children:cn(s)&&(0,n.jsx)("ol",{className:"nav-compact__outline-list","data-testid":"nav-compact-outline-list",role:"list",children:s.map((a,i)=>gt()(a)?null:(0,n.jsx)(FK,{index:i,isEnabled:t,lessonIds:a},i))})})});var zK=f(80588);const $K=()=>{const[e,t]=zK.useState(!1);return(0,Ze.A)(nC,()=>t(!0)),(0,Ze.A)(vm,()=>t(!1)),e},g4=_("nav-compact"),v4="nav-content-compact",_K=(0,h.forwardRef)(({closeNav:e,isExpanded:t,openNav:s},o)=>{const r=ji(),{navigationStyle:a,theme:i}=r??{},c=i?.coverImageColor,d=i?.progressIndicatorStyle,l=ae(b=>b.course?.theme?.buttonNavigationStyle==="FULL"?Math.round(-(b.ui.lessonNavNextButton?.intersectionRect?.height??0)):0),u=(0,h.useMemo)(()=>wo(a),[a]),m=(0,h.useMemo)(()=>a===ur.LIGHT_ACCENT||a===ur.DARK_ACCENT,[a]),p=$K(),g=(0,h.useMemo)(()=>Pi(a),[a]),C=d===Je.CIRCULAR_FILL,v=d===Je.INCOMPLETE_COMPLETE,x=(0,h.useMemo)(()=>g&&c===nt.LIGHT,[g,c]),y=g4({accent:m,dark:u,light:!u,"image-dark-overlay":g&&!x,"image-light-overlay":g&&x,"progress-circular-fill":C,"progress-incomplete-complete":v,collapsed:!t,navNextIsVisible:p}),S=g4("wrap",{collapsed:!t}),L={transform:`translateY(${l}px)`};return(0,n.jsx)("div",{className:y,"data-testid":"nav-compact",id:v4,ref:o,style:L,children:(0,n.jsxs)("div",{className:S,children:[(0,n.jsx)(xK,{closeNav:e,isExpanded:t,openNav:s}),(0,n.jsx)(Bi,{inert:!t,children:(0,n.jsx)(VK,{isEnabled:t})})]})})});var C4=f(14230);const x4=Object.assign((0,h.createContext)(null),{displayName:"OverlayNavControlContext"});function UK(e){const{children:t,closeNav:s,openNav:o}=e,[r,a]=(0,h.useState)(!1),i=(0,h.useCallback)(()=>{a(!0)},[]),c=(0,h.useCallback)(()=>{a(!1)},[]);return(0,n.jsx)(x4.Provider,{value:{closeNav:s,openNav:o,openSearch:i,closeSearch:c,searchActive:r},children:t})}const Dd=h.useContext.bind(null,x4),Hd=_("nav-overlay"),GK=({className:e})=>{const{navigationStyle:t}=ee(),{lessonComplete:s}=ue(),o=rn(),r=ma(),i=`${o?`%${r}`:`${r}%`} ${s}`,c=t!==No.ACCENT,d=Hd("header-progress-runner"),l=Hd("header-progress-text"),u=Hd("header-progress-track");return(0,n.jsxs)("div",{className:Hd("header-progress").mix(e),"data-testid":"nav-overlay-progress",children:[(0,n.jsx)(Rd,{"aria-hidden":!0,background:!0,disabled:c,progress:r,runnerClass:d,trackClass:u}),(0,n.jsx)("div",{className:l,children:i})]})},lo=_("nav-overlay"),WK=()=>{const e=ee(),t=Vt(),s=ca(),{allowSearch:o,lmsOptions:r={}}=e||{},a=yl(),i=ue(),c=Dd(),d=(0,h.useRef)(),l=lo("header-control-btn"),u=e?.exportSettings?.webExportSettings,m=!wn.isInstantLink&&(r?.disableCoverPage||u?.disableCoverPage),p=g=>{g.preventDefault(),io(()=>{t("/")},"lesson-to-cover")};return(0,n.jsx)("section",{"aria-label":"Course Information","data-testid":"nav-overlay-header",children:(0,n.jsxs)("div",{className:lo("header-container"),children:[(0,n.jsxs)("div",{className:lo("header-controls"),children:[(0,n.jsx)("button",{"aria-label":i?.a11yNavigationMenuClose,className:l,"data-testid":"nav-overlay-close",onClick:c.closeNav,ref:d,type:"button",children:(0,n.jsx)(xd,{className:lo("header-close-icon")})}),o&&a!=="restricted"&&(0,n.jsx)("button",{"aria-label":i?.a11ySearchOpen,className:l,"data-testid":"nav-overlay-search",onClick:c.openSearch,type:"button",children:(0,n.jsx)(sc,{className:lo("header-search-icon")})})]}),(0,n.jsxs)("div",{className:lo("header-title-progress-container"),children:[(0,n.jsx)("h1",{className:lo("header-title"),"data-testid":"nav-overlay-title",id:"nav-overlay-title",children:m?(0,n.jsx)("span",{className:lo("header-title"),children:s}):(0,n.jsx)(cs,{className:lo("header-title-link"),onClick:p,to:"/",children:s})}),(0,n.jsx)(GK,{})]})]})})},Fd=({className:e,icon:t})=>{switch(t){case Lo.INTERACTION:return(0,n.jsx)(_$,{className:e,icon:t});case Lo.QUIZ:return(0,n.jsx)(F$,{className:e,icon:t});case Lo.VIDEO:return(0,n.jsx)(U$,{className:e,icon:t});case Lo.ARTICLE:return(0,n.jsx)($5,{className:e,icon:t});default:return(0,n.jsx)($5,{className:e,icon:t})}},uo=_("nav-overlay"),b4=Re("NavOverlayOutlineLesson",({first:e,id:t,isEnabled:s,isSectionLesson:o,last:r})=>{const{navigationStyle:a}=ee(),{icon:i,settings:c}=wt(t)??{},d=fa(t),l=Dd(),u=w1(t),m=wo(a),p=c?.isGeneratingAIContent===!0,g=uo("outline-item",{section:o}),C=`${uo("outline-item")}__link`,v=uo("outline-item-link-icon",{quiz:i==="Quiz"}),x=(0,h.useCallback)(()=>{l.closeNav()},[l]),[y,S]=(0,h.useState)(!1),L=(0,h.useCallback)(()=>S(!0),[]),b=(0,h.useCallback)(()=>S(!1),[]),T=(0,n.jsx)(Od,{canComplete:u,id:t,isDark:m,isEnabled:s,isTooltipVisible:y,onHideTooltip:b,onShowTooltip:L,scope:So.OVERLAY});return(0,n.jsx)("li",{className:uo("outline-list-item",{first:e,last:r}),"data-testid":`nav-overlay-lesson-${t}`,role:"listitem",children:p?(0,n.jsx)("div",{className:g.toString(),children:(0,n.jsxs)("span",{"aria-disabled":"true",className:`${C} ${C}--generating`,"data-testid":`nav-overlay-lesson-${t}-generating`,children:[(0,n.jsx)("span",{className:uo("outline-icon-wrap"),children:(0,n.jsx)(Fd,{className:v,icon:i})}),(0,n.jsx)("span",{className:uo("outline-lesson-title"),children:d})]})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(rc,{className:g.toString(),dark:m,isTooltipEnabled:!u,lessonId:t,onHideProgressTooltip:b,onNavigate:x,onShowProgressTooltip:L,showProgressDelay:null,tooltipClassName:uo("outline-item-tooltip").toString(),children:[(0,n.jsx)("span",{className:uo("outline-icon-wrap"),children:(0,n.jsx)(Fd,{className:v,icon:i})}),(0,n.jsx)("span",{className:uo("outline-lesson-title"),children:d}),!u&&T]}),u&&T]})})}),KK=_("nav-overlay"),QK=({id:e})=>{const t=wt(e),s=it(t.title);return(0,n.jsx)("span",{className:KK("outline-section-text"),children:s})},y4=_("nav-overlay"),ZK=({isEnabled:e,lessonIds:t})=>{const s=(0,h.useRef)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:y4("outline-section-divider")}),(0,n.jsx)("ol",{className:y4("outline-section-list"),ref:s,role:"list",children:t.map((o,r)=>(0,n.jsx)(b4,{id:o,isEnabled:e,isSectionLesson:!0,last:r===t.length-1},o))})]})},YK=_("nav-overlay"),XK=({index:e,isEnabled:t,lessonIds:s})=>{const[o,...r]=s,a=YK("outline-item").mix("nav-overlay__outline-section");return gt()(r)?(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(QK,{id:o})}):(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(ZK,{index:e,isEnabled:t,lessonIds:r})})},JK=({index:e,isEnabled:t,lessonIds:s})=>{const o=Il(s),r=fa(s[0]),a=_("nav-overlay");return o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:a("outline-section-text"),children:r}),(0,n.jsx)("ol",{className:a("outline-list"),"data-testid":"nav-overlay-outline-list",role:"list",children:(0,n.jsx)(XK,{index:e,isEnabled:t,lessonIds:s})})]}):s.map((i,c)=>(0,n.jsx)(b4,{first:c===0,id:i,isEnabled:t,isSectionLesson:!1,last:c===s.length-1},i))},qK=_("nav-overlay"),eQ=Re("NavOverlayOutline",({isEnabled:e})=>{const t=jl(),s=ue();return(0,n.jsx)("section",{"aria-label":s?.a11yRegionNavOverview,className:qK("outline"),"data-testid":"nav-overlay-outline",id:"nav-overlay-outline",children:cn(t)&&(0,n.jsx)(n.Fragment,{children:t.map((o,r)=>gt()(o)?null:(0,n.jsx)(JK,{index:r,isEnabled:e,lessonIds:o},`lessonIdGroup-${r}`))})})});var tQ=f(87479),Vd=f.n(tQ),wr=f(74299),sQ=f(65205),zd=f.n(sQ);const $m=Array.isArray,nQ=e=>typeof e=="number",$d=e=>!Xe()(e)&&typeof e=="object",_m=e=>typeof e=="string",oQ=(e,t,s)=>(o,r)=>{const a=Tn()(r,e);if((0,Et.uW)(o)){const i=s[o.l10nId];return typeof i!="string"?!1:!gt()(zd()(t,(0,wr.htmlDecode)(i)))}else return $d(o)?L4(e,t,s)(o):a&&_m(o)?!gt()(zd()(t,(0,wr.htmlDecode)(o))):!1},L4=(e,t,s)=>o=>st()(gs(),Ht(),Tn()(!0))(oQ(e,t,s),o),rQ=L4;var aQ=f(47951),Um=f.n(aQ),iQ=f(23144),_d=f.n(iQ);const cQ=(e,t,s)=>(o,r)=>{const a=Tn()(r,e);return $m(o)?Ht()(Gm(e,t,s)(o)):(0,Et.uW)(o)?typeof s[o.l10nId]!="string"?0:Qt()(zd()(t,(0,wr.htmlDecode)(s[o.l10nId]))):$d(o)?Gm(e,t,s)(o):a&&_m(o)?Qt()(zd()(t,(0,wr.htmlDecode)(o))):0},Gm=(e,t,s)=>o=>gs()(cQ(e,t,s),o),Wm=e=>{if($m(e))return tt()(Wm,e);if($d(e))return Wm(Ht()(e));if(nQ(e))return e},lQ=(e,t,s)=>o=>st()(Gm(e,t,s),Ht(),tt()(Wm),di(),_d()(Um(),0),r=>os()("results",r,o))(o),dQ=(e,t,s)=>(o,r)=>{const a=Tn()(r,e);return $m(o)?Ht()(Km(e,t,s)(o)):$d(o)?Km(e,t,s)(o):a&&_m(o)?ir()(t,s,o):o},Km=(e,t,s)=>o=>gs()(dQ(e,t,s),o),S4=Km,T4=(e,t,s,o,r)=>{const a=["caption","code","description","heading","message","name","paragraph","title"];if(gt()(e))return!1;const i=e.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),c=new RegExp(`(${i})(?![^<]*>)`,"ig"),d=y=>`<mark>${y}</mark>`,l=S4(a,c,d),u=S4(Object.keys(s),c,d),m=tt()(l,t),p=o?o(e):{},g=u(s),C=y=>p[y.id]>0||rQ(a,c,s)(y),v=lQ(a,c,s),x=st()(As()(C),tt()(v))(t);x.forEach(y=>{y.results+=p[y.id]??0}),r(e,x,g,m)};function uQ(e){if(!e)return!0;for(const t in e)return!1;return!0}function N4(){const{lessons:e,mondrian:t}=ee(),{currentLocale:s}=Qe(),[o,r]=(0,h.useState)(null);return(0,h.useEffect)(()=>{uQ(t)||f.e("webpack_container_remote_mondrian_learn-react").then(f.t.bind(f,4246,23)).then(a=>r(()=>a.searchItemsByLesson))},[t]),(0,h.useCallback)(a=>o?.(a,e,t,s)??{},[o,e,t,s])}const hQ=fc.Ay.animateScroll,Gs=_("nav-overlay"),mQ=()=>{const e=at(),t=c3(),s=Dd(),{lessons:o}=ee(),[r,a]=(0,h.useState)(""),i=N4(),c=(0,h.useRef)(),d=ue(),l=Gs("search-close-btn"),u=Gs("search-clear-btn"),m=(0,h.useCallback)(()=>{s.closeSearch(),s.closeNav(),e([Hv(!0),Ni(!1),gr(null)])},[e,s]),p=(0,h.useCallback)(()=>{a(""),c.current?.focus?.()},[]);(0,h.useEffect)(()=>{c.current?.focus?.()},[]);const g=(0,h.useCallback)(x=>{ls(x)&&!Vd()(r)?(x.preventDefault(),a(""),e(gr(null))):ls(x)&&Vd()(r)&&m()},[e,m,r]);(0,Ze.A)("keydown",g);const C=(0,h.useCallback)(x=>{a(x.target.value)},[]),v=(0,h.useCallback)(x=>{if(x.preventDefault(),r){const y=(S,L,b,T)=>{e([gr(S),Fv(L),Vv(b),zv(T),Ni(!0)]),hQ.scrollToTop({duration:500,smooth:!0})};s.closeNav(),s.closeSearch(),T4(r,o,t??{},i,y)}},[r,i,s,o,t,e]);return(0,n.jsxs)("div",{className:Gs("search"),"data-testid":"nav-overlay-search-container",children:[(0,n.jsx)("div",{className:Gs("search-header"),children:(0,n.jsx)("button",{"aria-label":d?.a11ySearchClose,className:l,"data-testid":"nav-overlay-search-close",onClick:m,type:"button",children:(0,n.jsx)(xd,{className:Gs("search-close-icon")})})}),(0,n.jsx)("div",{className:Gs("search-body"),children:(0,n.jsxs)("form",{autoComplete:"off",onSubmit:v,children:[(0,n.jsxs)("div",{className:Gs("search-container"),children:[(0,n.jsx)(sc,{className:Gs("search-icon")}),(0,n.jsx)("input",{"aria-label":d?.a11ySearchInput,className:Gs("search-input").mix("brand--ui"),"data-testid":"nav-overlay-search-input",name:"search",onChange:C,placeholder:d?.search,ref:c,type:"input",value:r}),r&&(0,n.jsx)("button",{"aria-label":d?.a11ySearchInputClear,className:u,"data-testid":"nav-overlay-search-clear",onClick:p,type:"button",children:(0,n.jsx)(xd,{className:Gs("search-clear-icon").toString()})})]}),(0,n.jsx)("div",{className:Gs("search-actions"),children:(0,n.jsx)("button",{className:Gs("search-submit-btn").mix("brand--ui"),"data-testid":"nav-overlay-search-submit",type:"submit",children:d?.search})})]})})]})},Qm=_("nav-overlay"),k4="nav-content-overlay",pQ=({isExpanded:e,outlineRef:t})=>{const o=jl()[0],r=Il(o),a=Qm("body",{section:r});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(WK,{}),(0,n.jsx)("div",{className:a,ref:t,children:(0,n.jsx)(eQ,{isEnabled:e})})]})},fQ=({children:e,isImage:t,hasStickyHeader:s})=>{const o=Qm("content",{graphic:t,"has-sticky-header":s});return(0,n.jsxs)("div",{className:o,"data-nav-scrollable":!0,"data-testid":"nav-overlay-content",children:[e,t&&(0,n.jsx)(dm,{})]})},gQ=({isExpanded:e})=>{const t=(0,h.useRef)(null),s=(0,h.useRef)(),o=ee(),r=Dd(),a=(0,Ae.A)(e),{navigationStyle:i,theme:{progressIndicatorStyle:c}={}}=o||{},d=o?.theme?.coverImageColor,l=i===No.ACCENT,u=i===No.TINT,m=wo(i),p=i===No.GRAY,g=i===No.LIGHT,C=Pi(i),v=c===Je.CIRCULAR_FILL,x=c===Je.INCOMPLETE_COMPLETE,[y,S]=(0,h.useState)(!0),{isIntersecting:L=!1}=(0,C4.A)(s,{root:t?.current,threshold:1})||{},b=(0,Ae.A)(L),T=(0,h.useMemo)(()=>C&&d===nt.LIGHT,[C,d]),N=Qm({"accent-tint":u,accent:l,dark:m,gray:p,"image-dark-overlay":C&&!T,"image-light-overlay":C&&T,light:g,"progress-circular-fill":v,"progress-incomplete-complete":x,closing:a&&!e});return(0,h.useEffect)(()=>{e?t.current?.showModal():setTimeout(()=>{t.current?.close()},500)},[e]),(0,h.useEffect)(()=>{const k=E=>{ls(E)&&!r.searchActive&&(E.preventDefault(),r.closeNav())};return e?document.addEventListener("keydown",k):document.removeEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[e,r]),(0,h.useEffect)(()=>{!y&&L?S(!0):b&&!L&&S(!1)},[L,y,b,S]),(0,n.jsx)("dialog",{"aria-labelledby":"nav-overlay-title","aria-modal":"true",className:N,"data-testid":"nav-overlay",id:k4,ref:t,children:(0,n.jsx)(fQ,{hasStickyHeader:y,isImage:C,children:r.searchActive?(0,n.jsx)(mQ,{}):(0,n.jsx)(pQ,{isExpanded:e,outlineRef:s})})})},Cc=_("nav-sidebar-search"),vQ=Re("NavSidebarSearch",({className:e="",isEnabled:t})=>{const s=at(),o=c3(),r=(0,Ae.A)(t),{lessons:a}=ee(),i=Eo(),c=ue(),d=(0,h.useRef)(),l=Cc({disabled:!t}).mix(e),u=Cc("icon"),m=Cc("input"),p=Cc("close"),g=Cc("close-icon"),C=i?.term,v=t?void 0:"disabled",[x,y]=(0,h.useState)(""),S=N4(),L=(0,h.useCallback)(()=>{s([Hv(!0),Ni(!1),gr(null)]),y("")},[s]),b=(0,h.useCallback)(k=>{ls(k)&&!Vd()(x)?(k.preventDefault(),y(""),s(gr(null))):ls(k)&&Vd()(x)&&L()},[s,L,x]),T=(0,h.useCallback)(k=>{C!=null&&s(gr(null)),y(k.target.value)},[s,C]),N=(0,h.useCallback)(k=>{k.preventDefault(),T4(x,a,o??{},S,(I,A,R,j)=>s([gr(I),Fv(A),Vv(R),zv(j)]))},[s,a,o,x,S]);return(0,h.useEffect)(()=>{!r&&t&&setTimeout(()=>{d.current?.focus()},50)},[t,r]),(0,h.useEffect)(()=>{C&&C!==x&&y(C)},[x,C]),(0,n.jsxs)("form",{autoComplete:"off",className:l,"data-testid":"nav-sidebar-search",onSubmit:N,children:[(0,n.jsx)(sc,{className:u}),(0,n.jsx)("input",{"aria-label":c?.a11ySearchInput,className:m,disabled:v,name:"search",onChange:T,onKeyDown:b,placeholder:c?.search,ref:d,type:"search",value:x}),(0,n.jsx)("button",{"aria-label":c?.a11ySearchClose,className:p,onClick:L,type:"reset",children:(0,n.jsx)(xd,{className:g})})]})}),Ws=_("nav-sidebar-header"),CQ=_("nav-sidebar-header-ghost"),xQ=()=>ae(e=>e.ui.skipToNavButton?.offsetHeight??0),bQ=Re("NavSidebarHeaderProgress",e=>{const{classProgressRunner:t,classProgressText:s,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:i}=e;return(0,n.jsxs)("div",{className:Ws("progress"),"data-testid":"nav-sidebar-progress",children:[(0,n.jsx)(Rd,{"aria-hidden":"true",color:r,progress:a,runnerClass:t,trackClass:o}),(0,n.jsx)("div",{className:s,children:i})]})}),yQ=Re("NavSidebarHeader",({className:e,isCompact:t,isEnabled:s,navRefWidth:o,setIsCompact:r})=>{const a=at(),i=Vt(),[c,d]=(0,h.useState)(""),[l,u]=(0,h.useState)({height:0,width:0}),[m,p]=(0,h.useState)(l),[g,C]=(0,h.useState)(l),v=xQ(),x=(0,h.useRef)(),y=(0,h.useRef)(),S=(0,h.useRef)(),[L,b]=(0,h.useState)(null),T=ee(),N=ca(),k=ue(),E=ma(),I=Eo(),A=em(),R=rn(),j=yl(),O=T?.exportSettings?.webExportSettings,w=!wn.isInstantLink&&(T?.lmsOptions?.disableCoverPage||O?.disableCoverPage),P=T?.allowSearch&&j!=="restricted",M=T?.theme?.coverImageColor,z=T?.navigationStyle,$=(0,h.useMemo)(()=>Pi(z),[z]),F=M_(),V=(0,Ae.A)(I),K=(I?.active||F)??!1,[Z,X]=(0,h.useState)(!0),[te,W]=(0,h.useState)(null),D=Ws({compact:t,searching:K,transition:Z}).mix(e),H=Ws("inner",{compact:t}),B=Ws("content",{compact:t,hidden:K}),G=Ws("graphic",{image:$}),Y=Ws("progress-runner"),J=Ws("progress-text",{compact:t}),Q=Ws("progress-track"),se=Ws("search-area",{hidden:!K}),re=Ws("search-btn",{hidden:K}),he=Ws("search-icon"),ve=Ws("title",{compact:t}),Se=CQ({compact:t,searching:K}),kt=`${R?`%${E}`:`${E}%`} ${k?.lessonComplete}`,ps=s&&!K?void 0:-1,Ee=s&&!K?void 0:-1,{alpha:De,media:Bt}=Sr("coverImage"),vn=(0,h.useMemo)(()=>{let _e={};return $&&Object.assign(_e,ua({alpha:De,color:M,media:Bt})),K&&(_e.height=m.height),_e},[De,M,Bt,$,K,m.height]),Js=(0,h.useMemo)(()=>{let _e={};return t&&(_e.bottom=`calc(100% - ${v}px)`,_e.width=o||0,_e.transition="width 0.3s",s||(_e.transition="width 0.3s",_e.width="0rem")),l.height&&(_e.height=l.height,_e.overflow="hidden",t&&(_e.transition="height 0.3s ease .1s, transform 0.3s ease .1s")),_e},[t,s,o,l.height,v]);(0,h.useEffect)(()=>{d(t&&A?h4(N,45):N)},[N,t,A]);const po=K?void 0:{height:g.height},fo=(0,h.useCallback)(()=>{p(l),a(Ni(!0))},[a,l]),qs=(0,h.useCallback)(_e=>{_e.preventDefault(),io(()=>{i("/")},"lesson-to-cover")},[i]);(0,h.useLayoutEffect)(()=>{W(document.querySelector("[data-nav-scrollable]"))},[]);const{isIntersecting:Cn=!1}=(0,C4.A)(x,{root:te,threshold:0})||{},go=(0,Ae.A)(Cn);(0,h.useEffect)(()=>{const _e=L!=null&&window.innerHeight*.4>=L.offsetHeight;go&&!Cn&&_e?r(!0):!go&&Cn&&r(!1)},[Cn,go,L,r]);const vo=(0,h.useCallback)(({target:_e})=>{const Dt={height:_e?.scrollHeight??0,width:o??0};u(Dt),p(Dt),t||C(Dt)},[t,o]);Ld(L,vo),(0,h.useLayoutEffect)(()=>{const _e=te?.scrollTop;(te||_e>0)&&(te.scrollTop=0);const Dt={height:L?.scrollHeight??0,width:o??0};u(Dt),p(Dt),C(Dt)},[te,o,L]),(0,h.useEffect)(()=>{P&&V?.active&&!I.active&&y?.current?.focus()},[P,I,V]),(0,h.useEffect)(()=>{K?X(!0):t&&X(!1)},[K,t]);const $r=(0,h.useCallback)(_e=>{if(!_e.target.hasAttribute("data-nav-item")||!t)return;const Dt=L.getBoundingClientRect(),Ct=_e.target.getBoundingClientRect();Dt.bottom>Ct.top&&(te.scrollTop-=Dt.height-Ct.top+5)},[te,t,L]);return(0,Ze.A)("focusin",$r,te),(0,h.useEffect)(()=>d(N),[N]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:Se,ref:x,style:po}),(0,n.jsx)("div",{className:D,"data-testid":"nav-sidebar-header",ref:S,style:Js,children:(0,n.jsxs)("div",{className:H,ref:b,children:[(0,n.jsx)("div",{className:G,style:vn}),P&&(0,n.jsx)("button",{"aria-label":k?.a11ySearchOpen,className:re,onClick:fo,tabIndex:ps,type:"button",children:(0,n.jsx)(sc,{className:he})}),(0,n.jsx)("div",{className:se,children:(0,n.jsx)(vQ,{isEnabled:s&&K})}),(0,n.jsxs)("div",{className:B,children:[w?(0,n.jsx)("span",{className:ve,"data-testid":"nav-sidebar-title",tabIndex:Ee,children:c}):(0,n.jsx)(cs,{className:ve,"data-testid":"nav-sidebar-title",onClick:qs,tabIndex:Ee,to:"/",children:c}),(0,n.jsx)(bQ,{classProgressRunner:Y,classProgressText:J,classProgressTrack:Q,percentComplete:E,percentCompleteText:kt})]})]})})]})}),LQ=_("nav-sidebar");function I4({closeNav:e,id:t,isEnabled:s,isSectionLesson:o,last:r}){const{navigationStyle:a}=ee(),{icon:i,settings:c}=wt(t)??{},d=fa(t),l=Us(),u=ic(),m=w1(t),p=t===l,g=c?.isGeneratingAIContent===!0,C=(0,h.useMemo)(()=>wo(a),[a]),v=o?"nav-sidebar__outline-section-item":"nav-sidebar__outline-item",x=`${v}__link`,y=U()(`${v}-link-icon`),S=(0,n.jsx)(Fd,{className:y,icon:i}),[L,b]=(0,h.useState)(!1),T=(0,h.useCallback)(()=>b(!0),[]),N=(0,h.useCallback)(()=>b(!1),[]),k=(0,n.jsx)(Od,{canComplete:m,id:t,isDark:C,isEnabled:s,isTooltipVisible:L,onHideTooltip:N,onShowTooltip:T,scope:So.SIDEBAR}),E=()=>{e&&u&&e()};return(0,n.jsx)("li",{className:LQ("outline-list-item",{last:r}),"data-testid":`nav-outline-lesson-${t}`,role:"listitem",children:g?(0,n.jsx)("div",{className:v,children:(0,n.jsxs)("span",{"aria-disabled":"true",className:U()(x,`${x}--generating`),"data-testid":`nav-outline-lesson-${t}-generating`,children:[S,d]})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(rc,{className:v,dark:C,isCurrentLesson:p,isTooltipEnabled:!m,lessonId:t,onHideProgressTooltip:N,onNavigate:E,onShowProgressTooltip:T,showProgressDelay:0,tooltipClassName:`${v}-tooltip`,children:[S,d,!m&&k]}),m&&k]})})}const SQ=({id:e})=>{const t=wt(e),s=it(t?.title);return(0,n.jsx)("span",{className:"nav-sidebar__outline-section-text",children:s})};var _a=f(80588);const TQ=({closeNav:e,id:t,index:s,isEnabled:o,lessonIds:r})=>{const a=ee(),i=a?.theme,c=a?.themeId,d=i?.navigationSectionsExpanded??!0,l=fa(String(t)),[u,m]=_a.useState(d);_a.useEffect(()=>{m(d)},[d]);const[p,g]=_a.useState(),C=_a.useRef(null),v=`sidebar-sublist-${s}`,x=C.current?.clientWidth,y=String(c),S=U()("nav-sidebar__outline-section-toggle-icon",{"nav-sidebar__outline-section-toggle-icon--collapsed":!u}),L=U()("nav-sidebar__outline-section-list",{"nav-sidebar__outline-section-list--collapsed":!u}),b=_a.useCallback(()=>{m(T=>!T)},[]);return _a.useLayoutEffect(()=>{const T=setTimeout(()=>{C.current&&g(C.current.scrollHeight)},0);return()=>{clearTimeout(T)}},[r.length,x,y]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{"aria-controls":v,"aria-expanded":u,className:"nav-sidebar__outline-section-toggle","data-nav-item":"",onClick:b,tabIndex:o?void 0:-1,type:"button",children:[(0,n.jsx)("span",{className:"nav-sidebar__outline-section-toggle-text",children:l}),(0,n.jsx)(G5,{className:S})]}),(0,n.jsx)(Bi,{inert:!u,children:(0,n.jsx)("ol",{"aria-hidden":u?void 0:!0,className:L,id:v,ref:C,role:"list",style:{maxHeight:p},children:r.map((T,N)=>(0,n.jsx)(I4,{closeNav:e,id:T,isEnabled:o&&u,isSectionLesson:!0,last:N===r.length-1},T))})})]})},NQ=({closeNav:e,index:t,isEnabled:s,lessonIds:o})=>{const[r,...a]=o,i="nav-sidebar__outline-item nav-sidebar__outline-section";return gt()(a)?(0,n.jsx)("li",{className:i,role:"listitem",children:(0,n.jsx)(SQ,{id:r})}):(0,n.jsx)("li",{className:i,role:"listitem",children:(0,n.jsx)(TQ,{closeNav:e,id:r,index:t,isEnabled:s,lessonIds:a})})},kQ=({closeNav:e,index:t,isEnabled:s,lessonIds:o})=>Il(o)?(0,n.jsx)(NQ,{closeNav:e,index:t,isEnabled:s,lessonIds:o}):o.map((a,i)=>(0,n.jsx)(I4,{closeNav:e,id:a,isEnabled:s,isSectionLesson:!1,last:i===o.length-1},a)),IQ=Re("NavSidebarOutline",({className:e="",closeNav:t,isEnabled:s})=>{const o=jl(),[r,a]=(0,h.useState)(!s),i=ue(),c=(0,h.useRef)(),d=(0,h.useRef)(null),l=U()(e,"nav-sidebar__outline",{"nav-sidebar__outline--hidden":r,"nav-sidebar__outline--safari":oo.isSafari}),u=U()("nav-sidebar__outline-list",{"nav-sidebar__outline-list--disabled":!s,"nav-sidebar__outline-list--hidden":r});return(0,h.useEffect)(()=>(s?(clearTimeout(d.current),a(!1)):d.current=setTimeout(()=>{a(!0)},350),()=>{clearTimeout(d.current)}),[s]),(0,n.jsx)("section",{"aria-label":i?.a11yRegionNavOverview,className:l,"data-testid":"nav-sidebar-outline",id:"nav-sidebar-outline",children:cn(o)&&(0,n.jsx)("ol",{className:u,"data-testid":"nav-sidebar-outline-list",ref:c,role:"list",children:o.map((m,p)=>gt()(m)?null:(0,n.jsx)(kQ,{closeNav:t,index:p,isEnabled:s,lessonIds:m},p))})})});var EQ=f(56993);const Ua=_("nav-sidebar-result"),E4=({result:e})=>{const t=ue(),s=e?.icon,o=it(e?.title),r=e?.results??0,a=r===1?t?.result:t?.results,i=Ua("icon"),c=Ua("title"),d=Ua("count");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Fd,{className:i,icon:s}),(0,n.jsx)("span",{className:c,children:o}),(0,n.jsx)("span",{className:d,children:`${r} ${a}`})]})},jQ=({id:e,index:t,isEnabled:s,onSelectResult:o})=>{const r=ee(),a=(0,ge.RQ)("/*"),i=dj(e),c=a?.params?.id===e,d=c?"page":void 0,l=r?.color,u=r?.navigationStyle,m=s?void 0:-1,p={animationDelay:`${t/10}s`},g=Oi(i?.id),C=(0,h.useMemo)(()=>wo(u),[u]),v=Ua(),x=Ua("inner",{active:c}),y=Ua("link",{dark:C,light:!C});return(0,n.jsx)("li",{className:v,role:"listitem",style:p,children:(0,n.jsx)("div",{className:x,style:{color:l},children:s&&g==null?(0,n.jsx)(cs,{"aria-current":d,className:y,onClick:o,tabIndex:m,to:Os(e),children:(0,n.jsx)(E4,{result:i})}):(0,n.jsx)(iC,{className:y,restriction:g,tooltipClassName:"lesson-nav-link-tooltip",children:(0,n.jsx)(E4,{result:i})})})})},Ud=_("nav-sidebar-results"),wQ=[],AQ=({closeNav:e,isEnabled:t})=>{const{announcePolite:s}=In(),o=ee(),r=Eo(),a=ue(),c=(r?.activeLessons??wQ).filter(L3),d=r?.term,l=cn(c),u=(0,EQ.A)(d),m=a?.noResults??"",p=o?.navigationStyle,g=(0,h.useMemo)(()=>wo(p),[p]),C=Ud(),v=Ud("message",{dark:g,light:!g}),x=Ud("term"),y=Ud("list"),S=xt(hC),L=h.useCallback(()=>{S&&e()},[e,S]);return(0,h.useEffect)(()=>{if(u){const b=c.length===1?a?.result:a?.results,T=l?`${c.length} ${b}`:`${a?.noResults} ${d}`;s?.(T)}},[s,l,u,c,a,d]),(0,n.jsxs)("div",{className:C,"data-testid":"nav-sidebar-results",children:[!l&&u&&(0,n.jsxs)("div",{className:v,children:[m," ",(0,n.jsxs)("span",{className:x,children:['"',d,'"']})]}),l&&u&&(0,n.jsx)("ol",{className:y,"data-testid":"nav-sidebar-results-list",role:"list",children:c.map((b,T)=>(0,n.jsx)(jQ,{id:b.id,index:T,isEnabled:t,onSelectResult:L},b.id))})]})},Gd=_("nav-sidebar"),j4="nav-content-sidebar",RQ=({isExpanded:e,closeNav:t})=>{const s=ee(),o=Eo(),[r,a]=(0,h.useState)(!1),[i,c]=(0,h.useState)(0),d=(0,h.useRef)(null),l=(0,h.useRef)(null),u=s?.color,m=s?.theme?.coverImageColor,p=s?.isLegacyCourse,g=s?.navigationStyle,C=s?.theme?.accentContrast,v=s?.theme?.progressIndicatorStyle,x=o?.active??!1,y=x||e?void 0:"true";(0,h.useLayoutEffect)(()=>{d&&d?.current&&c(d.current?.scrollWidth)},[r,e,d,x,c]);const S=(0,h.useMemo)(()=>Zj(g),[g]),L=(0,h.useMemo)(()=>wo(g),[g]),b=(0,h.useMemo)(()=>Pi(g),[g]),T=b&&m===nt.LIGHT,N=Bs(u),k=v===Je.CIRCULAR_FILL,E=v===Je.INCOMPLETE_COMPLETE,I=C?C===pe.DARK||C===pe.AUTO&&N===pe.DARK:N===pe.DARK,A=Gd("header"),R=Gd("body"),j=Gd("content"),O=Gd({accent:S,"dark-contrast":!b&&I,"light-contrast":!b&&!I,"legacy-pre-themes":p,"image-dark-overlay":b&&!T,"image-light-overlay":b&&T,"progress-circular-fill":k,"progress-incomplete-complete":E,collapsed:!e,dark:L,light:!L,searching:x});return(0,n.jsx)(Bi,{inert:!e,children:(0,n.jsx)(Qo,{children:(0,n.jsx)(Kc,{in:e,mountOnEnter:!0,nodeRef:l,timeout:300,unmountOnExit:!0,children:(0,n.jsx)("div",{"aria-hidden":y,className:O,"data-testid":"nav-sidebar",ref:l,children:(0,n.jsxs)("div",{className:j,"data-nav-scrollable":!0,id:j4,children:[(0,n.jsx)(yQ,{className:A,isCompact:r,isEnabled:e,navRefWidth:i,setIsCompact:a}),(0,n.jsxs)("div",{className:R,"data-testid":"nav-sidebar-body",ref:d,children:[(0,n.jsx)(IQ,{closeNav:t,isEnabled:e&&!x}),(0,n.jsx)(AQ,{closeNav:t,isEnabled:e&&x})]})]})})})})})},Ar={x:null,y:null},Wd={passive:!0};function w4({children:e,onSwipeDown:t,onSwipeLeft:s,onSwipeRight:o,onSwipeUp:r,onShouldRecognizeGesture:a=()=>!0,thresholdX:i=100,thresholdY:c=100}){const d=(0,h.useRef)(),[l,u]=(0,h.useState)(Ar),[m,p]=(0,h.useState)(Ar),g=(0,h.useCallback)(y=>{const S=y.touches?.length??0,L=y.targetTouches[0],b=a?a():!0;S==1&&L&&b?u({x:L.clientX,y:L.clientY}):u(Ar)},[a]),C=(0,h.useCallback)(y=>{const S=y.targetTouches[0];S&&p({x:S.clientX,y:S.clientY})},[]),v=(0,h.useCallback)(()=>{u(Ar),p(Ar)},[]),x=(0,h.useCallback)(y=>{const S=y.touches?.length??0;if(l.x==null||l.y==null||m.x==null||m.y==null||S>0)return;const L=m.x-l.x,b=m.y-l.y;Math.abs(L)>Math.abs(b)?Math.abs(L)>i&&(L<0?s?.():o?.()):Math.abs(b)>c&&(b<0?r?.():t?.()),u(Ar),p(Ar)},[t,s,o,r,i,c,m,l]);return(0,Ze.A)("touchstart",g,d.current,Wd),(0,Ze.A)("touchcancel",v,d.current,Wd),(0,Ze.A)("touchmove",C,d.current,Wd),(0,Ze.A)("touchend",x,d.current,Wd),(0,n.jsx)("div",{ref:d,children:e})}w4.propTypes={children:xe().oneOfType([xe().arrayOf(xe().element),xe().element]).isRequired,onShouldRecognizeGesture:xe().func,onSwipeDown:xe().func,onSwipeLeft:xe().func,onSwipeRight:xe().func,onSwipeUp:xe().func,thresholdX:xe().number.isRequired,thresholdY:xe().number.isRequired};function Kd({isEnabled:e=!0,...t}){return e?(0,n.jsx)(w4,{...t}):(0,n.jsx)("div",{children:t.children})}Kd.propTypes={children:xe().oneOfType([xe().arrayOf(xe().element),xe().element]).isRequired,isEnabled:xe().bool.isRequired};const Qd={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},PQ=[Qd.TABLET_PORTRAIT,Qd.TABLET_LANDSCAPE,Qd.MOBILE_PORTRAIT,Qd.MOBILE_LANDSCAPE],xc=e=>PQ.includes(e),MQ=e=>(0,h.useMemo)(()=>{const t=window.matchMedia("(pointer: coarse)").matches,s=xc(e);return t||s},[e]),A4=_("course-navigation"),{COMPACT:Zd,OVERLAY:Zm,SIDEBAR:Rr}=dr,OQ={[Zd]:v4,[Rr]:j4,[Zm]:k4},BQ=({hasSearchResults:e,courseNavType:t,openNav:s,closeNav:o})=>{const[r,a]=(0,h.useState)(e);return(0,h.useEffect)(()=>{r&&!e&&!(t===Rr)?(o(),a(!1)):r&&t===Zm?s():a(e)},[e,t,s,o,r]),r},DQ=e=>{const[t,s]=(0,h.useState)();(0,h.useEffect)(()=>{const{activeNavType:o,beginWithSidebarOpen:r,isNavOpen:a,isTablet:i,openNav:c,closeNav:d}=e;o===Rr&&r&&(!t&&i&&a?d():t&&!i&&!a&&c(),s(i))},[t,e])},HQ=({beginWithSidebarOpen:e,children:t,closeNav:s,courseNavType:o,isNavOpen:r,isTablet:a,lessonNavType:i,openNav:c,previewType:d,toggleNav:l,hideNav:u})=>{const m=(0,h.useRef)(),p=(0,h.useRef)(),{active:g}=Eo(),C=ue(),v=BQ({hasSearchResults:g,courseNavType:o,openNav:c,closeNav:s}),x=(0,h.useMemo)(()=>v||o===Zd&&a?Rr:o,[o,v,a]);DQ({activeNavType:x,beginWithSidebarOpen:e,closeNav:s,openNav:c,isNavOpen:r,isTablet:a}),(0,h.useEffect)(()=>{const N=E=>{p.current?.contains(E.relatedTarget)&&s()},k=()=>{p.current?.removeEventListener("click",s),p.current?.removeEventListener("keypress",s),p.current?.removeEventListener("blur",N,!0)};return x===Zd&&r?(p.current?.addEventListener("click",s),p.current?.addEventListener("keypress",s),p.current?.addEventListener("blur",N,!0)):k(),k},[x,r,p,s]);const y=MQ(d),S=(0,h.useCallback)(()=>{const N=x===dr.SIDEBAR;y&&N&&r&&s()},[s,r,y,x]),L=(0,h.useMemo)(()=>OQ[x],[x]),b=A4(x?.toLowerCase(),{"nav-open":r,"search-open":g&&r,"course-nav-type":o?.toLowerCase()}),T=A4("lessonNav",{type:i?.toLowerCase()});return(0,n.jsx)(A_,{isCourseNavOpen:r,children:(0,n.jsx)("div",{className:b,children:(0,n.jsx)(Kd,{isEnabled:x===dr.SIDEBAR,onSwipeLeft:S,children:(0,n.jsxs)("div",{className:T,children:[(0,n.jsxs)("nav",{"aria-label":C?.a11yRegionNavLesson,children:[(0,n.jsx)(gK,{"aria-controls":L,hideNav:u,isNavOpen:r,toggleNav:l}),x===Rr&&(0,n.jsx)(RQ,{closeNav:s,isExpanded:r}),x===Zd&&(0,n.jsx)(_K,{closeNav:s,isExpanded:r,openNav:c,ref:m}),x===Zm&&(0,n.jsx)(UK,{closeNav:s,openNav:c,children:(0,n.jsx)(gQ,{isExpanded:r})})]}),(0,n.jsx)("div",{ref:p,children:t})]})})})})},FQ=({children:e,isLessonOnlyEmbed:t,...s})=>{const{buttonNavigationStyle:o,navigationType:r,lmsOptions:a,...i}=ee(),c=ic(),d=T1(i),l=!c,u=i.sidebarMode===ea.OPEN,m=d&&r===Rr&&u&&l,p=yo(i),g=p&&i?.theme?.blockNavigationType===hl.CONTINOUS,[C,v]=(0,h.useState)(m),x=(0,h.useCallback)(()=>{v(!0)},[]),y=(0,h.useCallback)(()=>{v(!1)},[]),S=(0,h.useCallback)(()=>C?y():x(),[C,y,x]);(0,Ze.A)(J5,x),(0,Ze.A)(q5,y);const L=p||t?"fixed-course-exit":void 0,b=g?{marginInlineEnd:"2rem"}:void 0,T=d?r:"";return p||t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d4,{className:L,lmsOptions:a,style:b}),e]}):(0,n.jsx)(HQ,{...s,beginWithSidebarOpen:u,closeNav:y,courseNavType:T,enableExitCourse:a?.enableExitCourse||!0,hideNav:!d,isNavOpen:C,isTablet:c,lessonNavType:o,openNav:x,toggleNav:S,children:e})};var VQ=f(44002),R4=f.n(VQ),zQ=f(16713),Yd=f.n(zQ);const $Q=Yd()(Pe()("family","continue"),Pe()("variant","continue")),P4=ce()(R4()($Q),Lt()([],"items"));var M4=f(8191),_Q=f(58533),UQ=f.n(_Q);function GQ(e){return e==="a"?46.5:7.6}function WQ(e){return e==="d"?2:3.2}function KQ(e){switch(e){case"a":return 30;case"c":case"d":return 92;default:return 76}}function O4(e){switch(e){case"b":return 95;case"background":return 52;default:return 76}}function B4(e){switch(e){case"a":case"b":case"carousel":default:return 6.4;case"c":return 18.6;case"d":return 8;case"background":return 6}}function QQ(e){return .3}function yge(e){switch(e){case 3:return"three";case 4:return"four";default:return"two"}}function ZQ(e){return e==="light"?"#fff":"#000"}function Lge(e){switch(e){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 Sge(e){return e==="b"?[52,76,95]:[52,76,92]}function Tge(e){return e==="a"?[30,76,92]:[52,76,92]}function Nge(e){return e==="d"?[2,4.8,5.6]:[3.2,4.8,5.6]}function kge(e){return e==="a"?[46.5,78,120]:[7.6,20,32]}function YQ(e){switch(e){case 3:return"sm";case 10:return"lg";default:return"med"}}function D4(e,t){switch(t){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 e==="c"?"sm":"med"}}function XQ(e){switch(e){case 52:return"sm";case 76:return"med";default:return"lg"}}function H4(e){switch(e){case 52:return"sm";case 76:return"med";default:return"lg"}}function F4(e){switch(e){case 4:return"med";case 6:return"lg";default:return"sm"}}function Ym(e){switch(e){case 52:return"sm";case 92:return"lg";default:return"med"}}function JQ(e){switch(e){case 30:case 52:return"sm";case 92:return"lg";default:return"med"}}function qQ(e){switch(e){case 4.8:return"med";case 5.6:return"lg";default:return"sm"}}function eZ(e){switch(e){case 20:case 78:return"med";case 32:case 120:return"lg";default:return"sm"}}function tZ(e){switch(e){case 1:return"sm";case 3:return"lg";default:return"med"}}function sZ(e){switch(e){case 3.2:return"med";case 5.6:return"lg";default:return"sm"}}const Ye=({value:e,className:t,allowTabNavigation:s=!0,tagName:o,id:r})=>{const{value:a}=rm(Ie(e));return a?(0,n.jsx)(Le,{allowTabNavigation:s,className:t,id:r,tagName:o,value:e}):null};function nZ(e,t){const{className:s="",tag:o="div",style:r={},...a}=e,{backgroundColor:i}=Zt(),c=ZA(),d=c===ft.DARK?ft.LIGHT:ft.DARK;return i!==""&&Object.assign(r,{"--color-background-contrast":c,"--color-background-contrast-complementary":d,"--color-background-contrast-rgb":(0,Da.A)(c)?.slice(0,3)}),(0,n.jsx)(o,{...a,className:s,ref:t,style:r})}const V4=(0,h.forwardRef)(nZ),oZ=10,z4=e=>`${e}rem`,Xm=e=>e!=null?`${e/oZ}rem`:void 0,rZ=["image full","image text overlay","quote background"];function aZ(e){const{family:t,variant:s,backgroundType:o,isOnlyBlockInStep:r,isOnePage:a}=e;if(!a||!r)return!1;if(o===q.IMAGE)return!0;if(!t||!s)return!1;const i=`${t} ${s}`;return rZ.some(c=>c===i)}const iZ={paddingBottom:"0rem",paddingTop:"0rem"},cZ=e=>{const{blockSettings:t,familyTheme:s,courseTheme:o,isFullWidthImage:r}=e;if(r)return iZ;const a=z4(Number(U3(t?.paddingTop,s?.paddingStart,o?.blockPaddingStart,qr)));return{paddingBottom:z4(Number(U3(t?.paddingBottom,s?.paddingEnd,o?.blockPaddingEnd,qr))),paddingTop:a}},lZ={},dZ=e=>e?{bodyFontSize:Xm(e.bodyFontSize),headingFontSize:Xm(e.headingFontSize),subheadingFontSize:Xm(e.subheadingFontSize)}:lZ;function uZ(){const e=St(),t=Me(),s=Po(),o=yo(t),r=aZ({backgroundType:e?.settings?.backgroundType,family:e?.family,isOnePage:o,isOnlyBlockInStep:e?.isOnlyBlockInStep,variant:e?.variant});return cZ({blockSettings:e?.settings,courseTheme:t?.theme,familyTheme:s,isFullWidthImage:r})}function hZ(){const e=Po();return dZ(e)}function mZ(){const e=uZ();return{fontSize:hZ(),padding:e}}const pZ=Kr()(["settings"]),$4=_("block-wrapper"),fZ=_("bg"),gZ=(e,t)=>{const{children:s,className:o,defaultBackgroundColor:r="",style:a,tag:i,type:c,...d}=e,l=St(),u=XA(),m=mZ(),p=H1(r,u.backgroundColor),g=p||"transparent",C=l?.className,v={...a,...u.backgroundImageCss,"--color-background":p,...m.fontSize.bodyFontSize&&{"--block-text-body-font-size":m.fontSize.bodyFontSize},...m.fontSize.headingFontSize&&{"--block-text-heading-font-size":m.fontSize.headingFontSize},...m.fontSize.subheadingFontSize&&{"--block-text-subheading-font-size":m.fontSize.subheadingFontSize},boxShadow:`0px 1px 0px ${g} `,paddingBottom:m.padding.paddingBottom,paddingTop:m.padding.paddingTop},x=U()(o,{"bg--legacy-background":u.isLegacyBackground,[`block-${c}`]:!!c}),y=fZ({card:u.cardMode,range:u.colorRange,type:u.backgroundTypeLowercase,"overlay-light":u.isOverlayLight,"contrast-light":u.isContrastLight}),S=C?$4({}).mix(y).mix(C):$4({}).mix(y),L=[x,S.toString()].join(" ");return(0,n.jsxs)(V4,{...pZ(d),className:L,ref:t,style:v,tag:i,children:[(0,n.jsx)("span",{"aria-label":u.backgroundImageAlt,role:Lg(u.backgroundImageAlt)}),s]})},we=(0,h.forwardRef)(gZ);var vZ=f(80588);function CZ(e,t){const s=Tg(e.src),o=e.width&&e.height&&!s,r=o?"async":void 0,a=o?"lazy":void 0,i=o?e.width:void 0,c=o?e.height:void 0;return(0,n.jsx)("img",{...e,decoding:r,height:c,loading:a,ref:t,width:i})}const Jm=vZ.forwardRef(CZ),_4=(0,h.createContext)(Jm);function xZ({children:e,ImageEagerOrLazy:t}){return(0,n.jsx)(_4,{value:t,children:e})}function bZ(){return(0,h.use)(_4)}function Ss(e){const t=bZ();return(0,n.jsx)(t,{...e})}var yZ=f(33e3),Ege=f(26482);function U4(e){return(0,n.jsx)(yZ.i,{IconUnzoom:SZ,IconZoom:LZ,...e})}const LZ=()=>(0,n.jsx)(ie,{name:"arrows-two-from-center"}),SZ=()=>(0,n.jsx)(ie,{name:"arrows-two-to-center"}),G4=_("block-text");function TZ({children:e,item:t,labels:s}){const o="media"in t?t.media:void 0,r=Ie(o)?.image,a=vt(r),i=lr(r?.alt??""),d=St()?.settings,l=d?.images,u=d?.zoomOnClick,m=(0,h.useRef)(void 0);let p=(0,n.jsx)(Ss,{alt:i,"data-l10n-id":jt(o),ref:m,src:a});return u&&(p=(0,n.jsx)(U4,{a11yNameButtonUnzoom:s?.a11yUnzoomImage,a11yNameButtonZoom:s?.a11yZoomImage,children:p})),(0,n.jsxs)("div",{className:G4("col"),children:[l&&r&&(0,n.jsx)("div",{className:G4("image"),children:p}),e]})}var NZ=f(1674),kZ=f.n(NZ),IZ=f(80365),Xd=f(63718);const EZ=_("portal-tooltip"),Mt={LEFT:"LEFT",RIGHT:"RIGHT",ABOVE:"ABOVE",BELOW:"BELOW"},jZ=(e,t,s)=>{const o=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=window.visualViewport;let i=s;(i===Mt.ABOVE||i===Mt.BELOW)&&(o.bottom-r.height<0&&(i=Mt.BELOW),r.height+o.top>a.height&&(i=Mt.ABOVE)),(i===Mt.LEFT||i===Mt.RIGHT)&&(r.left<0&&(i=Mt.RIGHT),r.width+o.left>a.width&&(i=Mt.LEFT));const c={left:0,right:0,top:0,bottom:0};i===Mt.ABOVE&&(c.top=o.top-r.height-25),i===Mt.BELOW&&(c.top=o.top+o.height),i===Mt.RIGHT&&(c.left=o.left+o.width+70),i===Mt.LEFT&&(c.left=o.left-r.width-25),(i===Mt.LEFT||i===Mt.RIGHT)&&(c.top=o.top-o.height/2),(i===Mt.ABOVE||i===Mt.BELOW)&&(c.left=o.left+o.width/2);const d=o.left+o.width/2,l=r.width/2+d>a.width,u=r.width/2>d;l?t.classList.add("portal-tooltip__tooltip--offset-right"):u&&t.classList.add("portal-tooltip__tooltip--offset-left"),Object.keys(c).map(m=>c[m]===0?t.style.removeProperty(m):t.style.setProperty(m,`${c[m]}px`)),t.classList.add(`portal-tooltip__tooltip--${i.toLowerCase()}`)};function wZ({children:e,className:t,direction:s=Mt.ABOVE,elementFocused:o,exitAnimation:r=!0,message:a,style:i,renderInModalWhenPresent:c=!1}){const[d,l]=(0,h.useState)(!1),[u]=(0,h.useState)(!1),m=(0,h.useRef)(null),p=(0,h.useRef)(null),[g,C]=(0,IZ.A)((()=>e)),v=(0,h.useCallback)(()=>l(!0),[l]),x=(0,h.useCallback)(()=>l(!1),[l]);return(0,h.useEffect)(()=>(document.addEventListener("scroll",v),document.addEventListener("scrollend",x),()=>{document.removeEventListener("scroll",v),document.removeEventListener("scrollend",x)})),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:m,children:g}),a&&(C||u||o)&&!d&&(0,n.jsx)(Wn,{classNames:"portal-tooltip__tooltip",exit:r,timeout:200,children:(0,n.jsx)(AZ,{buttonRef:m,className:t,direction:s,elementFocused:o,hovering:C,message:a,portalRef:p,renderInModalWhenPresent:c,style:i})})]})}function AZ({buttonRef:e,className:t,direction:s,elementFocused:o,hovering:r,message:a,portalRef:i,style:c,renderInModalWhenPresent:d=!1}){const l=(0,h.useCallback)(()=>jZ(e.current,i.current,s),[e,s,i]),u=(0,h.useCallback)(()=>{i.current&&l()},[i,l]),m=()=>{!r&&!o&&i.current&&(i.current.style=null)};return(0,Xd.A)(u),(0,un.createPortal)((0,n.jsx)("div",{"aria-hidden":!r||!o,className:EZ("tooltip").mix(t).toString(),onTransitionEnd:m,ref:i,style:c,children:a}),d?ro({id:"portal",childType:"other"}):document.getElementById("portal"))}const bc=wZ,RZ=({audioPlayerId:e,condensed:t=!1,transcriptMedia:s,onDelete:o,onTranscriptClick:r,onTranscriptClose:a})=>{const{mode:i,disableTranscriptButton:c}=Bd(),d=gc(),[l,u]=(0,h.useState)(!1),[m,p]=(0,h.useState)(!1),g=Ie(s)?.audio?.transcript,C=(0,h.useCallback)(()=>u(!0),[]),v=(0,h.useCallback)(()=>u(!1),[]),x=(0,h.useCallback)(()=>p(!0),[]),y=(0,h.useCallback)(()=>p(!1),[]),S=as(),L=d?.audioPlayerIdOpen&&d.audioPlayerIdOpen===e,b=c?"Transcripts are only available in lesson previews":L?S?.audioHideTranscript:i==="edit"?"Edit transcript":S?.audioShowTranscript,T=(0,h.useCallback)(()=>{const I=document.getElementById(Vm(e));I&&I.focus()},[e]),[N,k]=(0,h.useState)(!1);function E(){c||(L?a?.():(r?.(),k(!0)))}return(0,h.useEffect)(()=>{N&&(k(!1),T())},[N,T]),(0,n.jsxs)(n.Fragment,{children:[o&&(0,n.jsx)(bc,{elementFocused:l,message:"Remove audio",children:(0,n.jsx)(Be.ArcButton,{hierarchy:"tertiary",icon:(0,n.jsx)(ie,{name:"trash"}),layout:"icon",onBlur:v,onClick:o,onFocus:C,onMouseOut:v,onMouseOver:C,size:t?"sm":"md",type:"button"})}),(i==="edit"||g)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(bc,{elementFocused:m,message:b,renderInModalWhenPresent:i==="readonly",style:{whiteSpace:"nowrap"},children:(0,n.jsx)(Be.ArcButton,{"aria-label":b,disabled:c,hierarchy:"tertiary",icon:(0,n.jsx)(ie,{name:"file-audio"}),id:i==="readonly"?c4(e):void 0,layout:"icon",onBlur:y,onClick:E,onFocus:x,onMouseOut:y,onMouseOver:x,size:t?"sm":"md",style:c?{opacity:.5,pointerEvents:"auto"}:void 0,type:"button"})}),L?(0,n.jsx)("div",{onFocus:T,tabIndex:0}):null]})]})};var PZ=f(28505);const W4="change";class MZ extends PZ.EventEmitter{_isMuted;_isPlaying;_playerId;constructor(t){super(),this.setMaxListeners(t)}get isPlaying(){return this._isPlaying}set isPlaying(t){this._isPlaying=t,this.emit("change")}set playerId(t){this._playerId=t}get playerId(){return this._playerId}pause(){this.isPlaying=!1}addChangeListener(t){this.on(W4,t)}removeChangeListener(t){this.removeListener(W4,t)}}const de=new MZ(1/0),Ga="group",OZ="tablist",BZ="tabpanel",DZ="tab",wge="radio",yc=({caption:e,editable:t,id:s,isOverlayType:o,getL10nValue:r})=>{const a=!!(!o&&!t&&r(e));return{figcaptionId:a?`figcaption-${s}`:void 0,isFigure:a,role:a?"figure":void 0,tagName:a?"figure":"div"}},HZ=[.5,.75,1,1.25,1.5,1.75,2].toReversed().map(e=>({value:e,label:`${e}x`})),Jd=.05,K4=_("audio-player-icon"),Pr=({x:e,width:t,height:s,y:o,pulseBaseHeight:r,pulseBaseY:a,pulseHeight:i,pulseY:c,delay:d="0s"})=>(0,n.jsx)("rect",{className:K4("bar"),height:s,rx:1,style:{"--base-height":`${s/10}rem`,"--base-y":`${o/10}rem`,"--pulse-base-height":r&&`${r/10}rem`,"--pulse-base-y":a&&`${a/10}rem`,"--pulse-height":`${i/10}rem`,"--pulse-y":`${c/10}rem`,"--delay":d},width:t,x:e,y:o}),Q4=({animating:e})=>(0,n.jsx)("span",{className:K4({animating:e}),children:(0,n.jsxs)("svg",{"aria-hidden":"true",height:"16",viewBox:"0 0 20 16",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)(Pr,{delay:"0s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:0,y:7}),(0,n.jsx)(Pr,{delay:"0.1s",height:4,pulseBaseHeight:3,pulseBaseY:6.5,pulseHeight:8,pulseY:4,width:2,x:3,y:6}),(0,n.jsx)(Pr,{delay:"0.2s",height:10,pulseBaseHeight:8,pulseBaseY:4,pulseHeight:12,pulseY:2,width:2,x:6,y:3}),(0,n.jsx)(Pr,{delay:"0.3s",height:16,pulseBaseHeight:12,pulseBaseY:2,pulseHeight:16,pulseY:0,width:2,x:9,y:0}),(0,n.jsx)(Pr,{delay:"0.4s",height:8,pulseBaseHeight:6,pulseBaseY:5,pulseHeight:12,pulseY:2,width:2,x:12,y:4}),(0,n.jsx)(Pr,{delay:"0.5s",height:11,pulseBaseHeight:9,pulseBaseY:3.5,pulseHeight:15,pulseY:.5,width:2,x:15,y:2.5}),(0,n.jsx)(Pr,{delay:"0.6s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:18,y:7})]})});var FZ;function Z4(){return document.getElementById("page-wrap")}const Pge=e=>{const t=e.value.length;e.focus(),e.setSelectionRange(t,t)},Mge=e=>{const t=FZ(["current","editor"],e);if(!t)return null;const s=t.value.length;return t.focus(),t.setSelectionRange(s,s),e};function qm(e,t){const s=e.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;if(t==="start")return s.top>=0;if(t==="center"){if(s.height>o)return s.top<=0&&s.bottom>=o;const a=o/2,i=s.top+s.height/2,c=o*.25;return Math.abs(a-i)<c}return t==="end"?s.bottom<=o:s.top>=0&&s.left>=0&&s.bottom<=o&&s.right<=r}function Y4({anchor:e,popover:t,positionX:s}){if(!e||!t)return null;const o=e.getBoundingClientRect(),a=window.getComputedStyle(e).direction==="rtl",i=window.getComputedStyle(t),c=parseFloat(i.marginTop),d=t.offsetWidth,l=window.visualViewport??{width:window.innerWidth,height:window.innerHeight},u=o.top+o.height+t.offsetHeight+c>l.height?o.top-(c*2+t.offsetHeight):o.top+o.height;let m;if(s==="center"){const p=o.left+o.width/2;m=a?l.width-p-d/2:p-d/2}else s==="right"?m=a?l.width-o.left-d:o.right-d:m=Math.min(a?l.width-o.right:o.left,l.width-d);return{left:m,top:u}}var VZ,Ve=f(80588);const qd=Ve.createContext(null);function zZ({children:e,isDisabled:t,onClose:s,onOpen:o,onSelect:r,positionX:a="left"}){const[i,c]=Ve.useState(!1),d=(0,Ae.A)(i),[l,u]=Ve.useState(null),m=Ve.useRef(null),p=Ve.useRef(null),g=Ve.useRef(null),x=`${`menu-${Ve.useId()}`}-content`,y=Ve.useCallback(({direction:w,predFn:P=()=>!0})=>{if(!g.current)return;const M=Array.from(g.current.querySelectorAll('[role="menuitem"]')),z=M.length,$=M.findIndex(Z=>Z===document.activeElement);let F,V,K;switch(w){case"start":F=0,V=1;break;case"end":F=z-1,V=-1;break;case"backwards":F=$-1,V=-1;break;case"forwards":F=$+1,V=1;break;default:F=$+1,V=1}for(let Z=0;Z<=z;Z++){F>=z?F=0:F<0&&(F=z-1);const X=M[F];if(X!=null&&UZ(X)&&P(X)){K=X;break}else F=F+V}K&&K.focus()},[]),S=Ve.useCallback(()=>{y({direction:"start"})},[y]),L=Ve.useCallback(()=>{y({direction:"end"})},[y]),b=Ve.useCallback(()=>{y({direction:"backwards"})},[y]),T=Ve.useCallback(()=>{y({direction:"forwards"})},[y]),N=Ve.useCallback(w=>{y({direction:"forwards",predFn:P=>GZ(P,w)})},[y]),k=Ve.useCallback(()=>{i?c(!1):(c(!0),setTimeout(T,25))},[T,i]),E=Ve.useCallback(()=>{p.current?.focus(),c(!1)},[]),I=Ve.useCallback(()=>{c(!0),setTimeout(T,25)},[T]),A=Ve.useCallback(()=>{c(!0),setTimeout(b,25)},[b]),R=Ve.useCallback(()=>{const{left:w,top:P}=Y4({anchor:p.current,popover:g.current,positionX:a});u({transform:`translate3d(${w}px, ${P}px, 0)`,visibility:"visible"})},[a]),j=Ve.useCallback(w=>{const P=w.currentTarget;X4(P)||(r?.(P.getAttribute("data-name")),E())},[E,r]),O=Ve.useCallback(w=>{const P=w.key;if(w.altKey||w.ctrlKey||w.metaKey)return;let M=!1;if(w.shiftKey)P==="Tab"?b():P.trim()!==""&&N(P),M=!0;else switch(P){case" ":case"Enter":j(w),M=!0;break;case"Esc":case"Escape":E(),M=!0;break;case"ArrowUp":b(),M=!0;break;case"Tab":case"ArrowDown":T(),M=!0;break;case"Home":case"PageUp":S(),M=!0;break;case"End":case"PageDown":L(),M=!0;break;default:N(P);break}M&&(w.stopPropagation(),w.preventDefault())},[E,j,N,S,L,T,b]);return Ve.useEffect(()=>{const w=P=>{i&&m.current!=null&&g.current!=null&&!m.current.contains(P.target)&&!g.current.contains(P.target)&&c(!1)};return i?document.addEventListener("click",w):document.removeEventListener("click",w),()=>{document.removeEventListener("click",w)}},[i]),Ve.useEffect(()=>(i?window.addEventListener("resize",R):window.removeEventListener("resize",R),()=>{window.removeEventListener("resize",R)}),[R,i]),Ve.useEffect(()=>{const w=Sd(m.current);for(const P of w)i?P?.addEventListener("scroll",R,{passive:!0}):P?.removeEventListener("scroll",R);return()=>{for(const P of w)P?.removeEventListener("scroll",R)}},[R,i]),Ve.useEffect(()=>{i?R():u(null)},[R,i]),Ve.useEffect(()=>{if(d&&!i)s?.();else if(!d&&i&&(o?.(),m.current)){const w=new CustomEvent("menuopen",{bubbles:!0,detail:{target:m.current}});m.current.dispatchEvent(w)}},[d,i,s,o]),Ve.useEffect(()=>{const w=P=>{P.detail.target!==m.current&&c(!1)};return document.addEventListener("menuopen",w),()=>{document.removeEventListener("menuopen",w)}},[]),(0,n.jsx)(qd.Provider,{value:{htmlIdContent:x,isExpanded:i,onCloseFocusTrigger:E,onExpandFocusMenuItemNext:I,onExpandFocusMenuItemPrevious:A,onFocusMenuItemByPrefix:N,onFocusMenuItemFirst:S,onFocusMenuItemLast:L,onFocusMenuItemNext:T,onFocusMenuItemPrevious:b,onItemClick:j,onItemKeyDown:O,onTriggerClick:k,refContent:g,refTrigger:p,styleContent:l},children:(0,n.jsx)("div",{"aria-owns":x,inert:t?!0:void 0,ref:m,children:e})})}function $Z({as:e,children:t,label:s,labelledBy:o,...r}){const{htmlIdContent:a,isExpanded:i,onTriggerClick:c,onCloseFocusTrigger:d,onExpandFocusMenuItemNext:l,onExpandFocusMenuItemPrevious:u,refTrigger:m}=Ve.useContext(qd),p=Ve.useCallback(C=>{let v=!1;switch(C.key){case" ":case"Enter":case"ArrowDown":case"Down":l(),v=!0;break;case"Esc":case"Escape":d(),v=!0;break;case"Up":case"ArrowUp":u(),v=!0;break;default:break}v&&(C.stopPropagation(),C.preventDefault())},[d,l,u]),g=e??"button";return(0,n.jsx)(g,{...r,"aria-controls":a,"aria-expanded":i,"aria-haspopup":"menu","aria-label":s,"aria-labelledby":o,"data-menu-trigger":"",onClick:c,onKeyDown:p,ref:m,type:"button",children:t})}function _Z({children:e,className:t}){const{htmlIdContent:s,isExpanded:o,refContent:r,styleContent:a}=Ve.useContext(qd);return o?un.createPortal((0,n.jsx)("div",{className:t,"data-menu-content":"",hidden:o?void 0:!0,id:s,ref:r,role:"menu",style:a,children:e}),ro()):null}function eu({children:e,className:t,isDisabled:s,name:o,tooltipId:r}){const{onItemClick:a,onItemKeyDown:i}=Ve.useContext(qd),c=Ve.useCallback(d=>{d.currentTarget?.focus()},[]);return(0,n.jsx)("button",{"aria-describedby":r,"aria-disabled":s,className:t,"data-menu-item":"","data-name":o,onClick:s?void 0:a,onKeyDown:i,onMouseOver:c,role:"menuitem",tabIndex:s?-1:void 0,type:"button",children:e})}function Oge({children:e}){return VZ("span",{"data-menu-item-icon":"",children:e})}function X4(e){return e!=null&&e.getAttribute("disabled")!=null||e.getAttribute("aria-disabled")==="true"}function UZ(e){return e!=null&&e.tagName==="BUTTON"&&!X4(e)}function GZ(e,t){return e?.textContent.toLowerCase().startsWith(t?.toLowerCase())}const Lc=_("audio-player-actions-condensed"),Do=Object.freeze({DeleteAudio:"delete-audio",EditAudio:"edit-audio",EditTranscript:"edit-transcript",RevertToSource:"revert-audio-to-source"}),WZ=({audioPlayerId:e,condensed:t=!1,transcriptMedia:s,onTranscriptClick:o,onTranscriptClose:r,item:a,side:i,refs:c})=>{const{mode:d,isVariantLocale:l,handleOpenMediaModal:u,handleDelete:m,handleRevertToSource:p}=Bd(),g=gc(),C=St(),v=is(),x=a&&"media"in a&&a.media?v(a.media):void 0,y=x&&"audio"in x?x.audio.aiAudioSettings:void 0,S=Ds(),L=Uh(),b=S?L(S):"",[T,N]=(0,h.useState)(!1),k=(0,h.useCallback)(()=>N(!0),[]),E=(0,h.useCallback)(()=>N(!1),[]),I=y?.l10nAutoGenStatus==="reverted-to-source",A=l&&"audio"in x&&x.audio?.sourceType==="ai-audio"&&y?.l10nAutoGenStatus!=="unsupported-locale",R=as(),j=g?.audioPlayerIdOpen===e,O=j?R?.audioHideTranscript:d==="edit"?"Edit transcript":R?.audioShowTranscript;function w(M){switch(M){case Do.DeleteAudio:m(C.id,a,c);break;case Do.EditTranscript:j?r?.():o?.();break;case Do.EditAudio:u(C,a,c,i,{triggeredFrom:"block_audio_button"});break;case Do.RevertToSource:p(C.id,a);break}}const P=!!v(s)?.audio?.transcript;return u||m||P?(0,n.jsx)(bc,{elementFocused:T,message:"Options",children:(0,n.jsxs)(zZ,{onSelect:w,positionX:"left",children:[(0,n.jsx)($Z,{as:Be.ArcButton,hierarchy:"tertiary",icon:"fa-regular fa-ellipsis",label:"Options",layout:"icon",onBlur:E,onFocus:k,onMouseEnter:k,onMouseLeave:E,shape:"square",size:t?"sm":"md"}),(0,n.jsxs)(_Z,{className:Lc("content"),children:[u?(0,n.jsx)(eu,{className:Lc("menu-item"),name:Do.EditAudio,children:"Edit audio"}):null,d==="edit"||P?(0,n.jsx)(eu,{className:Lc("menu-item"),name:Do.EditTranscript,children:O}):null,m&&C?.variant!=="audio"?(0,n.jsx)(eu,{className:Lc("menu-item"),name:Do.DeleteAudio,children:"Remove audio"}):null,p&&A?(0,n.jsx)(Be.ArcTooltip,{id:"revert-to-source-tooltip",isEnabled:I,text:"Audio currently synced to source",children:(0,n.jsxs)(eu,{className:Lc("menu-item"),isDisabled:I,name:Do.RevertToSource,tooltipId:"revert-to-source-tooltip",children:["Revert to source audio (",b,")"]})}):null]})]})}):null};var KZ,QZ,ze=f(80588);const Sc=ze.createContext(null);function ZZ({children:e,className:t,isDisabled:s,onClose:o,onItemActiveChange:r,onOpen:a,onSelect:i,portalArgs:c,positionX:d="left",value:l}){const[u,m]=ze.useState(null),p=(0,Ae.A)(u),[g,C]=ze.useState(!1),v=(0,Ae.A)(g),[x,y]=ze.useState(null),S=ze.useRef(null),L=ze.useRef(null),b=ze.useRef(null),N=`select-${ze.useId()}`,k=`${N}-content`,E=u?.id,I=ze.useCallback(P=>{const M=P.currentTarget;J4(M)||(C(!1),m(M),i(M.getAttribute("data-value")),P.stopPropagation())},[i]),A=ze.useCallback(P=>{m(P)},[]),R=ze.useCallback(()=>{C(P=>!P)},[]),j=ze.useCallback(()=>{const{left:P,top:M}=Y4({anchor:L.current,popover:b.current,positionX:d}),F=window.getComputedStyle(L.current).direction==="rtl"?-P:P;y({transform:`translate3d(${F}px, ${M}px, 0)`,visibility:"visible",width:`${L.current?.offsetWidth}px`})},[d]),O=ze.useCallback(P=>{const M=Array.from(b.current?.querySelectorAll("[data-select-item]")??[]),z=M.length,$=M.findIndex(K=>K.getAttribute("data-select-item")==="current");let F,V=$+1;for(let K=0;K<z;K++){V>=z&&(V=0);const Z=M[K];if(Z!=null&&!J4(Z)&&qZ(Z,P)){F=K;break}else V=z-1}F&&(m(M[F]),M[F]?.scrollIntoView({block:"center"}))},[]),w=ze.useCallback(P=>{const M=P.key;if(P.ctrlKey||P.metaKey)return;let z=!1;const $=Array.from(b.current?.querySelectorAll("[data-select-item]")??[]),F=$.findIndex(V=>V.getAttribute("data-select-item")==="current");if(g)if(M.length===1&&M!==" "&&!P.altKey&&!P.ctrlKey&&!P.metaKey)O(M);else switch(M){case" ":case"Enter":C(!1),$[F]!=null&&i($[F].getAttribute("data-value")),z=!0;break;case"Esc":case"Escape":C(!1),m($.find(V=>V.getAttribute("aria-selected")==="true")),z=!0;break;case"ArrowUp":P.altKey?(C(!1),$[F]!=null&&i($[F].getAttribute("data-value")??"")):F>0&&(m($[F-1]),$[F-1].scrollIntoView({block:"center"})),z=!0;break;case"ArrowDown":F<$.length-1&&(m($[F+1]),$[F+1].scrollIntoView({block:"center"})),z=!0;break;case"Home":m($[0]),$[0]?.scrollIntoView({block:"center"}),z=!0;break;case"End":m($[$.length-1]),$[$.length-1]?.scrollIntoView({block:"center"}),z=!0;break;case"PageUp":m($[0]),$[0]?.scrollIntoView({block:"center"}),z=!0;break;case"PageDown":m($[$.length-1]),$[$.length-1]?.scrollIntoView({block:"center"}),z=!0;break;case"Tab":C(!1),$[F]!=null&&i($[F].getAttribute("data-value"));break}else if(M.length===1&&M!==" "&&!P.altKey&&!P.ctrlKey&&!P.metaKey)C(!0),O(M);else switch(M){case" ":case"Enter":C(!0),z=!0;break;case"ArrowUp":C(!0),m($[0]),z=!0;break;case"ArrowDown":C(!0),z=!0;break;case"Home":C(!0),m($[0]),z=!0;break;case"End":C(!0),m($[$.length-1]),z=!0;break}z&&(P.stopPropagation(),P.preventDefault())},[O,g,i]);return ze.useEffect(()=>{const P=b.current?.querySelector('[data-select-item][aria-selected="true"]');m(P)},[]),ze.useEffect(()=>{const P=b.current?.querySelector(`[data-select-item][data-value="${l}"]`);m(P)},[l]),ze.useEffect(()=>{const P=M=>{g&&S.current!=null&&b.current!=null&&!S.current.contains(M.target)&&!b.current.contains(M.target)&&C(!1)};return g?document.addEventListener("click",P):document.removeEventListener("click",P),()=>{document.removeEventListener("click",P)}},[g]),ze.useEffect(()=>(g?window.addEventListener("resize",j):window.removeEventListener("resize",j),()=>{window.removeEventListener("resize",j)}),[j,g]),ze.useEffect(()=>{const P=Sd(S.current);for(const M of P)g?M?.addEventListener("scroll",j,{passive:!0}):M?.removeEventListener("scroll",j);return()=>{for(const M of P)M?.removeEventListener("scroll",j)}},[j,g]),ze.useEffect(()=>{g?j():y(null)},[j,g]),ze.useEffect(()=>{g&&p!=null&&p!==u&&r?.({value:u.getAttribute("data-value")})},[g,p,u,r]),ze.useEffect(()=>{if(v&&!g)o?.();else if(!v&&g&&(a?.(),S.current)){const P=new CustomEvent("comboboxopen",{bubbles:!0,detail:{target:S.current}});S.current.dispatchEvent(P)}},[v,g,o,a]),ze.useEffect(()=>{const P=M=>{M.detail.target!==S.current&&C(!1)};return document.addEventListener("comboboxopen",P),()=>{document.removeEventListener("comboboxopen",P)}},[]),(0,n.jsx)(Sc.Provider,{value:{activeEl:u,htmlIdActiveDescendant:E,htmlIdBase:N,htmlIdContent:k,isExpanded:g,onItemClick:I,onItemHover:A,onTriggerClick:R,onTriggerKeyDown:w,portalArgs:c,refContent:b,refTrigger:L,selectedValue:l,styleContent:x},children:(0,n.jsx)("div",{"aria-owns":k,className:t,inert:s?!0:void 0,ref:S,children:e})})}function YZ({children:e,className:t,labelledBy:s,as:o,...r}){const{htmlIdActiveDescendant:a,htmlIdContent:i,isExpanded:c,onTriggerClick:d,onTriggerKeyDown:l,refTrigger:u}=ze.useContext(Sc),m=!!o,p=o??"button";return(0,n.jsxs)(p,{"aria-activedescendant":a,"aria-controls":i,"aria-expanded":c,"aria-haspopup":"listbox","aria-labelledby":s,className:t,"data-select-trigger":m?void 0:"",onClick:d,onKeyDown:l,ref:u,role:"combobox",type:"button",...r,children:[(0,n.jsx)("span",{"data-select-trigger-text":"",children:e}),(0,n.jsx)("span",{"data-select-trigger-icon":"",children:c?(0,n.jsx)(ie,{name:"chevron-up"}):(0,n.jsx)(ie,{name:"chevron-down"})})]})}function XZ({children:e,className:t,label:s,labelledBy:o,style:r={}}){const{htmlIdContent:a,isExpanded:i,portalArgs:c,refContent:d,styleContent:l}=ze.useContext(Sc);return un.createPortal((0,n.jsx)("div",{"aria-label":s,"aria-labelledby":o,className:t,"data-select-content":"",hidden:i?void 0:!0,id:a,ref:d,role:"listbox",style:{...l,...r},children:e}),ro(c))}function Dge({children:e,className:t,labelText:s}){const{htmlIdBase:o}=ze.useContext(Sc),r=ze.useId(),a=`${o}-group-label-${r}`;return KZ("div",{"aria-labelledby":a,className:t,"data-select-group":"",role:"group",children:[QZ("div",{"data-select-group-label":"",id:a,role:"presentation",children:s}),e]})}function JZ({children:e,className:t,labelledBy:s,isDisabled:o,value:r}){const{activeEl:a,htmlIdBase:i,onItemClick:c,onItemHover:d,selectedValue:l}=ze.useContext(Sc),u=ze.useRef(null),m=ze.useId(),p=u.current===a,g=r===l,C=`${i}-option-${m}`,v=ze.useCallback(()=>{d(u.current)},[d]);return(0,n.jsxs)("div",{"aria-disabled":o,"aria-labelledby":s,"aria-selected":g,className:t,"data-select-item":p?"current":"","data-value":r,id:C,onClick:o?void 0:c,onMouseEnter:v,ref:u,role:"option",children:[e,g&&(0,n.jsx)("span",{"data-select-item-selected":"",children:(0,n.jsx)(ie,{name:"check"})})]})}function J4(e){return e!=null&&e.getAttribute("disabled")!=null||e.getAttribute("aria-disabled")==="true"}function qZ(e,t){return e?.textContent.toLowerCase().startsWith(t?.toLowerCase())}const ep=_("playback-speed-menu"),eY=({onChange:e,condensed:t=!1,speed:s})=>{const o=as(),[r,a]=(0,h.useState)(!1),i=(0,h.useCallback)(()=>a(!0),[]),c=(0,h.useCallback)(()=>a(!1),[]);return(0,n.jsx)(bc,{elementFocused:r,message:o?.audioPlaySpeed,children:(0,n.jsxs)(ZZ,{className:ep(),onOpen:c,onSelect:d=>e(parseFloat(d)),portalArgs:{id:"portal",childType:"other"},value:String(s),children:[(0,n.jsxs)(YZ,{"aria-label":o?.audioPlaySpeed,as:Be.ArcButton,className:ep("trigger"),hierarchy:"tertiary",labelledBy:void 0,layout:"hug",onBlur:c,onFocus:i,onMouseEnter:i,onMouseLeave:c,shape:"square",size:t?"sm":"md",children:[s,"x"]}),(0,n.jsx)(XZ,{className:ep("content"),label:o?.audioPlaySpeed,children:HZ.map((d,l)=>(0,n.jsx)(JZ,{value:String(d.value??""),children:d.label},l))})]})})};function tY(e=!1,t=200){const s=(0,h.useRef)(void 0),[o,r]=(0,h.useState)(e),a=(0,h.useCallback)(()=>{s.current&&clearTimeout(s.current),r(!0)},[]),i=(0,h.useCallback)(c=>{s.current&&clearTimeout(s.current),c?r(!1):s.current=setTimeout(()=>{r(!1)},t)},[t]);return(0,h.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]),{isActive:o,setActive:a,setInactive:i}}const q4=_("audio-player-volume"),sY=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];function nY(e,t){return t||e<=0?"volumeXmark":e<=1/3?"volumeLow":e<=2/3?"volume":"volumeHigh"}function oY({condensed:e=!1,muted:t,onChange:s,onMute:o,volume:r}){const a=as(),i=(0,h.useRef)(null),c=(0,h.useRef)(null),d=(0,h.useRef)(null),{isActive:l,setActive:u,setInactive:m}=tY(!1,200),p=t?0:r;function g(v){if(sY.includes(v.code)){const S=window.getComputedStyle(v.currentTarget).direction==="rtl"?"ArrowLeft":"ArrowRight",L=v.code==="ArrowUp"||v.code===S?Math.min(p+Jd,1):Math.max(p-Jd,0);s(L),v.stopPropagation(),v.preventDefault()}else v.code==="KeyM"&&(o(),v.stopPropagation(),v.preventDefault())}(0,h.useEffect)(()=>{d.current.style.setProperty("--slider-volume",`${p*100}%`)},[p]);const C=`${Math.round(p*100)}%`;return(0,n.jsxs)("div",{className:q4(),onKeyDown:g,onMouseEnter:u,onMouseLeave:()=>m(!1),ref:i,children:[(0,n.jsx)(Be.ArcButton,{"aria-label":p<=0?a?.a11yMediaUnmute:a?.a11yMediaMute,color:"primary",hierarchy:"tertiary",icon:(0,n.jsx)(ie,{name:nY(p,t)}),layout:"icon",onClick:o,ref:c,size:e?"sm":"md",type:"button"}),(0,n.jsx)("input",{"aria-label":a?.a11yMediaVolume,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":p*100,"aria-valuetext":C,className:q4("slider").mix(l?"":"visually-hidden"),max:100,min:0,onChange:v=>s(v.currentTarget.valueAsNumber/100),ref:d,type:"range",value:p*100})]})}const Ts=_("audio-player"),tu=({currentTime:e,duration:t})=>Math.round(e/t*100)||0,e8=e=>{if(!e)return{hours:0,minutes:0,seconds:0};const t=Math.floor(e/3600),s=Math.floor(e%3600/60),o=e%60;return{hours:t,minutes:s,seconds:o}},t8=e=>{const{minutes:t,seconds:s}=e8(e);let o="";return t>0&&(o+=`${new Intl.NumberFormat(void 0,{style:"unit",unit:"minute",unitDisplay:"long"}).format(t)} `),o+=new Intl.NumberFormat(void 0,{style:"unit",unit:"second",unitDisplay:"long"}).format(Math.round(s)),o},rY=e=>{const{hours:t,minutes:s,seconds:o}=e8(e);function r(c,d,l){return(new Array(l+1).join(d)+c).slice(-l)}const a=r(s,"0",2),i=r(o,"0",2);return t>0?`${t}:${a}:${i}`:`${s}:${i}`};class Wa extends h.Component{audio;play;playerControls;seekSlider;onDelete;constructor(t){super(t),this.state={condensed:!1,currentTime:0,playheadPositionSaveThrottle:0,playbackSpeed:1,playerExpanded:!0,shouldLoadPlayheadPosition:!0,volume:1,muted:!1,maxTime:t.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(t){return Math.round(t*1e3)}keySeek(t){const{canRestrictSeek:s}=this.props,{currentTime:o,duration:r}=this.audio,{maxTime:a}=this.state;let i=o+t;s&&i>a&&(i=a);const c=Math.max(0,r-.01);this.audio.currentTime=t<0?Math.max(i,0):Math.min(i,c)}changeVolume=t=>{this.audio.volume=Math.round(t*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=t=>{const s=t<0?Math.max(this.audio.volume+t,0):Math.min(this.audio.volume+t,1);this.changeVolume(s)};componentDidMount(){de.addChangeListener(this.handleChange)}componentDidUpdate(t,s){const r=this.props.activeIndex!=null&&this.props.itemIndex!=null&&t.activeIndex!==this.props.activeIndex&&this.props.activeIndex!==this.props.itemIndex;(!t.shouldPause&&this.props.shouldPause||r)&&(this.audio.pause(),de.isPlaying&&de.playerId===this.props.id&&de.pause()),s.playbackSpeed!==this.state.playbackSpeed&&(this.audio.playbackRate=this.state.playbackSpeed)}componentWillUnmount(){const{recordMediaPlayheadPosition:t,id:s}=this.props;de.playerId===s&&de.pause(),de.removeChangeListener(this.handleChange),t&&t(tu(this.audio))}handleClickInsideAudioPlayer=t=>{t.stopPropagation(),t.preventDefault()};handleChange(){de.playerId===this.props.id?this.audio&&(de.isPlaying&&this.audio.paused?this.audio.play():!de.isPlaying&&!this.audio.paused&&this.audio.pause(),this.forceUpdate()):de.isPlaying&&(this.audio.pause(),this.forceUpdate())}containerResizeRef=t=>{const s=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:t.getBoundingClientRect().width<256}),s.observe(t),()=>{s.disconnect()}};render(){const{allowTabNavigation:t,id:s,isEditor:o,isOverlayAudio:r,labels:a,mediaSrc:i,mode:c,onDelete:d,onTranscriptClick:l,onTranscriptClose:u,transcriptMedia:m,item:p,side:g,refs:C,transcriptAudioPlayerIdOpen:v}=this.props,x=de.isPlaying&&de.playerId===s,{currentTime:y,playerExpanded:S}=this.state,L=this.audio?.duration??0,b=Number.isNaN(L)?0:L,T=Math.round(b-y),N=rY(T),k=t8(T),E=t8(y),I=t?0:-1,A=!o,{a11yGroupAudioPlayer:R,a11yMediaPlay:j,a11yMediaPause:O,a11yMediaSeek:w}=a??{},P=Ts({overlay:r,collapsed:r&&!S,expanded:!r||S,"volume-slider-below":this.props.volumeSliderPosition==="below"}),M=o||c==="edit"?"Collapse audio player":a?.audioCollapsePlayer,z=o||c==="edit"?"Expand audio player":a?.audioExpandPlayer,$=S?M:z,F=pn({refs:C}),K=v===F?Vm(v):void 0;return(0,n.jsx)("div",{className:Ts("container"),onClick:this.handleClickInsideAudioPlayer,ref:this.containerResizeRef,children:(0,n.jsxs)("div",{className:P,id:s,children:[A&&(0,n.jsx)("div",{className:Ts("waveform"),children:r?(0,n.jsx)(bc,{message:$,children:(0,n.jsx)("button",{"aria-label":$,className:Ts("waveform-icon"),onClick:this.onTogglePlayer,type:"button",children:(0,n.jsx)(Q4,{animating:x})})}):(0,n.jsx)("div",{className:Ts("waveform-icon",{disabled:!0}),children:(0,n.jsx)(Q4,{animating:x})})}),(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":R,"aria-owns":K,className:Ts("housing",{"with-border":A}),inert:!this.state.playerExpanded,onKeyDown:this.onKeyDown.bind(this),role:Ga,tabIndex:I,children:[(0,n.jsxs)("div",{className:Ts("play-timer-housing"),children:[(0,n.jsx)(Be.ArcButton,{"aria-label":x?O:j,className:Ts("play"),hierarchy:"tertiary",icon:(0,n.jsx)(ie,{className:Ts("icon"),name:x?"pause-solid":"play-solid"}),layout:"icon",onClick:this.onPlayClick,ref:Z=>{this.play=Z},shape:"square",size:this.state.condensed?"sm":"md",tabIndex:I,type:"button"}),(0,n.jsx)("input",{"aria-label":w,"aria-valuemax":b,"aria-valuemin":0,"aria-valuenow":y,"aria-valuetext":E,className:Ts("seek-slider"),max:b,min:0,onChange:this.onSeekSliderChange.bind(this),ref:Z=>{this.seekSlider=Z},step:.01,style:{"--seek-slider-percent":`${this.state.sliderPercent}%`},type:"range",value:y}),(0,n.jsx)("div",{"aria-label":k,className:Ts("timer").mix(this.state.condensed?"visually-hidden-always":""),role:"timer",children:N})]}),(0,n.jsxs)("div",{className:Ts("player-controls"),ref:Z=>{this.playerControls=Z},children:[(0,n.jsx)(eY,{condensed:this.state.condensed,onChange:Z=>{this.setState({playbackSpeed:Z})},speed:this.state.playbackSpeed}),(0,n.jsx)(oY,{condensed:this.state.condensed,muted:this.state.muted,onChange:this.changeVolume,onMute:this.muteToggle,volume:this.state.volume}),c==="readonly"||o?(0,n.jsx)(RZ,{audioPlayerId:F,condensed:this.state.condensed,onDelete:d,onTranscriptClick:l,onTranscriptClose:u,transcriptMedia:m}):(0,n.jsx)(WZ,{audioPlayerId:F,condensed:this.state.condensed,item:p,onTranscriptClick:l,onTranscriptClose:u,refs:C,side:g,transcriptMedia:m})]})]}),(0,n.jsx)("audio",{className:Ts("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:Z=>{this.audio=Z},src:mt(`${i}`)},"audio-"+s)]},`player-${s}`)})}onKeyDown(t){const o=hn(this.onPlayClick),r=hn(()=>this.keySeek(5)),a=hn(()=>this.keySeek(-5)),i=hn(()=>this.changeVolumeDelta(Jd)),c=hn(()=>this.changeVolumeDelta(-Jd)),d=hn(()=>this.muteToggle()),l=v=>v.target===this.play,u=v=>v.target===this.seekSlider,m=v=>this.playerControls===v.target||this.playerControls.contains(v.target),p=ns()([[Xi,o],[no,Bo],[so,Bo],[yr,Bo],[br,Bo]]),g=ns()([[Xi,o],[MV,r],[OV,a]]),C=ns()([[Xi,o],[no,r],[so,a],[br,i],[yr,c],[v=>v.code==="KeyM",d]]);ns()([[l,p],[u,g],[m,Bo],[nr(),C]])(t)}onPlayClick(t){t.stopPropagation(),t.preventDefault();const{audioVideoPlayhead:s}=this.props,{duration:o,paused:r}=this.audio;r&&s&&this.state.shouldLoadPlayheadPosition&&(this.audio.currentTime=o*s/100||0),r?this.audio.play():this.audio.pause()}onAudioPlayPause=t=>{const{id:s,onPause:o,onPlay:r,onTranscriptUpdate:a,recordMediaPlayheadPosition:i,refs:c,transcriptMedia:d}=this.props,{paused:l,currentTime:u,duration:m}=t.currentTarget;if(l)l&&de.playerId===s&&(de.isPlaying=!1,o(Wa.timeMs(u)),i&&i(tu({currentTime:u,duration:m})));else{de.playerId=s,de.isPlaying=!0,r(Wa.timeMs(u));const p=pn({refs:c});a?.({audioPlayerId:p,transcriptMedia:d})}this.setState({shouldLoadPlayheadPosition:!1})};onVolumeChangeHandler=t=>{const{volume:s,muted:o}=t.currentTarget;this.setState({volume:s,muted:o})};onSeekSliderChange(t){const{canRestrictSeek:s}=this.props,{maxTime:o}=this.state;let r=t.currentTarget.valueAsNumber;s&&r>o&&(r=o),this.audio.currentTime=r}onLoadedMetadata(t){const{currentTime:s,duration:o,muted:r,volume:a}=t.currentTarget,i=s/o*100;this.setState({currentTime:s,muted:r,volume:a,sliderPercent:i});const{onLoad:c}=this.props;c()}onEnded(t){const s=t.currentTarget;this.audio.currentTime=0,this.setState({currentTime:s.currentTime}),de.isPlaying=!1,this.props.onEnd(Wa.timeMs(s.currentTime)),this.forceUpdate()}onSeeked(t){const{id:s,onSeek:o,recordMediaPlayheadPosition:r}=this.props,{currentTime:a,duration:i}=t.currentTarget;de.isPlaying&&de.playerId!==s&&(de.isPlaying=!1),de.playerId=s,o(Wa.timeMs(a)),r&&r(tu({currentTime:a,duration:i}))}onTimeUpdate(t){const s=t.currentTarget,{recordMediaPlayheadPosition:o}=this.props,{currentTime:r,duration:a}=s,i=Math.floor(r);r>this.state.maxTime&&this.setState({maxTime:r});const c=r/a*100;Vf(),this.setState({currentTime:r,sliderPercent:c}),i%5===0&&this.state.playheadPositionSaveThrottle!==i&&o&&(o(tu(s)),this.setState({playheadPositionSaveThrottle:i}))}onTogglePlayer(t){this.setState(({playerExpanded:s})=>({playerExpanded:!s})),t.preventDefault(),t.stopPropagation()}}const aY=Wa,ho=e=>t=>t!=null&&typeof t=="object"&&"status"in t&&typeof t.status=="string"&&e.includes(t.status),iY=ho(["uploading","processing","cropping","crushing"]),Fge=ho(["canceled"]),s8=ho(["complete"]),cY=ho(["cropping"]),lY=ho(["crushing"]),dY=ho(["uploading"]),uY=ho(["processing"]),hY=ho(["errored"]),n8=ho(["cropping","crushing","errored","processing","uploading"]);function mY(e){return e==null||typeof e!="object"?0:Object.values(e).filter(iY).length}function Vge(e){return Math.round(e.loaded*100/e.total)}const zge=e=>e?.file?.name||e?.opts?.filename||"";function $ge(e){return e==null||typeof e!="object"?!1:Object.keys(e).length>0&&mY(e)>0}const su=e=>U()("upload-progress__wrapper",e),o8=(0,h.createContext)(null);function r8(){return(0,h.useContext)(o8)}const _ge=o8.Provider;function pY(e){function t(s){const o=r8();return o?(0,n.jsx)(e,{...s,getUpload:o.getUpload,handleUploadDismiss:o.handleUploadDismiss}):(0,n.jsx)(e,{...s})}return t.displayName=`withUploadStatusContext(${e.displayName||e.name})`,t}const nu=({onClick:e,text:t})=>(0,n.jsxs)(Be.ArcButton,{hierarchy:"tertiary",onClick:e,size:"sm",type:"button",children:[t,(0,n.jsx)("span",{className:"visually-hidden-always",children:" upload"})]}),tp=20,Tc=tp/2,sp=Tc-2,a8=+(2*Math.PI*sp).toFixed(3),fY=e=>a8*(100-e)/100;function i8({classes:e,percent:t}){return(0,n.jsxs)("svg",{className:U()("upload-progress__pie",e),focusable:"false",height:`${tp}px`,width:`${tp}px`,children:[(0,n.jsx)("circle",{className:"upload-progress__border",cx:Tc,cy:Tc,r:sp}),(0,n.jsx)("circle",{className:"upload-progress__progress",cx:Tc,cy:Tc,r:sp,strokeDasharray:a8,strokeDashoffset:fY(t)})]})}const gY=({text:e})=>(0,n.jsxs)("div",{className:"upload-progress",children:[(0,n.jsx)(i8,{classes:"upload-progress__pie--processing",percent:70}),(0,n.jsx)("div",{className:"upload-progress__text",children:e})]}),vY=({percentage:e,text:t="Uploading\u2026"})=>(0,n.jsxs)("div",{className:"upload-progress",children:[(0,n.jsx)(i8,{percent:e}),(0,n.jsx)("div",{className:"upload-progress__text",children:t})]}),np=({classes:e,jobId:t,onCancel:s,text:o})=>(0,n.jsxs)("div",{className:su(e),children:[(0,n.jsx)(gY,{text:o}),t&&(0,n.jsx)(nu,{onClick:s,text:"Cancel"})]}),CY=({classes:e,onCancel:t,percentage:s,text:o})=>(0,n.jsxs)("div",{className:su(e),children:[(0,n.jsx)(vY,{percentage:s,text:o}),(0,n.jsx)(nu,{onClick:t,text:"Cancel"})]}),xY=({message:e="Error"})=>(0,n.jsxs)("div",{className:"upload-error",children:[(0,n.jsx)(Be.ArcIcon,{icon:"fa-regular fa-circle-exclamation"}),(0,n.jsx)("div",{className:"upload-error__text",children:e})]}),bY=({classes:e,message:t,onClick:s})=>(0,n.jsxs)("div",{className:su(e),children:[(0,n.jsx)(xY,{message:t}),(0,n.jsx)(nu,{onClick:s,text:"Dismiss"})]}),yY=({message:e="Success"})=>(0,n.jsxs)("div",{className:"upload-success",children:[(0,n.jsx)(Be.ArcIcon,{icon:"fa-regular fa-check"}),(0,n.jsx)("div",{className:"upload-success__text",children:e})]}),LY=({classes:e,message:t,onClick:s})=>(0,n.jsxs)("div",{className:su(e),children:[(0,n.jsx)(yY,{message:t}),s?(0,n.jsx)(nu,{onClick:s,text:"Dismiss"}):null]}),SY=e=>{const{classes:t,data:s={},errorMessage:o,jobId:r,progress:a,onCancelUpload:i,onCancelProcess:c,onErrorDismiss:d,onSuccessDismiss:l,successMessage:u,uploadType:m}=e;return hY(e)?(0,n.jsx)(bY,{classes:t,message:o||s?.message,onClick:d}):dY(e)?(0,n.jsx)(CY,{classes:t,onCancel:i,percentage:a,text:`Uploading ${m}\u2026`}):uY(e)?(0,n.jsx)(np,{classes:t,jobId:r,onCancel:c,text:`Processing ${m}\u2026`}):lY(e)?(0,n.jsx)(np,{classes:t,onCancel:c,text:`Uploading ${m}\u2026`}):cY(e)?(0,n.jsx)(np,{classes:t,onCancel:c,text:"Cropping image\u2026"}):s8(e)&&u?(0,n.jsx)(LY,{classes:t,message:u,onClick:l}):(0,n.jsx)("div",{})},op=_("audio-player"),TY=op("upload-state");function c8({uploadId:e,onAIUploadFinish:t,volumeSliderPosition:s,...o}){const r=r8(),{mode:a}=Bd(),i=gc(),c=r&&e?r.getUpload(e):null,d=(0,h.useMemo)(()=>c&&c.mediaType==="audio"&&n8(c),[c]),l=(0,Ae.A)(d);if((0,h.useEffect)(()=>{!d&&l&&t?.()},[d,l,t]),d){const{jobId:u,status:m,progress:p,data:g}=c,C=x=>()=>r?.handleUploadDismiss(x,c),v=op({overlay:o.isOverlayAudio,static:o.isOverlayAudio});return(0,n.jsx)("div",{className:op("container"),children:(0,n.jsx)("div",{className:v,children:(0,n.jsx)(SY,{classes:TY,errorMessage:g?.message,jobId:u,onCancelProcess:C("process"),onCancelUpload:C("upload"),onErrorDismiss:C("error"),progress:p,status:m,successMessage:"Processing\u2026",uploadType:"audio"})})})}return(0,n.jsx)(aY,{...o,mode:a,transcriptAudioPlayerIdOpen:i?.audioPlayerIdOpen??null,volumeSliderPosition:s})}var NY=f(36285),kY=f.n(NY),IY=f(13887),EY=f.n(IY);function jY(){const t=Me()?.id,s=P1();return(0,h.useCallback)(o=>s&&t!=null?e6.lesson({courseId:t,lessonId:o}):`/lessons/${o}`,[t,s])}var wY=f(12930),AY=f(87093),RY=f.n(AY);const PY=/(\.\.\/)|(\.\.\.\.\/)+|%2e%2e\/|%252e%252e\/|%2f\/|\/%2e%2e/gi,MY=e=>typeof e=="string"&&e.replace(PY,""),us=RY()(MY,wY.J),OY="about:blank",BY=e=>{const t=e?.trim();if(!t)return null;const s=us(t);return s===OY?null:/^(https?:\/\/|mailto:)/i.test(s)||/^(\.?\/|[#?])/.test(s)?s:`http://${s.replace(/^\/\//,"")}`},Ka=h.memo(({align:e,alt:t,allowTabNavigation:s=!0,cornerRadius:o,disableZoom:r,getLessonPath:a,height:i,l10nId:c,labels:d,link:l,maxHeight:u=380,onLoad:m,shouldFillWidth:p,src:g,width:C})=>{const v=jY(),x=a??v,y=lr(t),S=l?.type==="url"&&l.destination?BY(l.destination):null,L=l?.type==="lesson"&&!!l.destination||!!S,b=s&&!r&&!L,T=U()("img-img",{"img-img--left":e==="left","img-img--right":e==="right","img-img--center":!e||e==="center","img-img--fill":p});let N={};o!=null&&(N["--corner-radius"]=`${Number(o)}px`),C>0&&i>0&&i>u?(C=Math.round(C*u/i),i=u):u&&(!C||!i)&&(N={maxHeight:u});let k=(0,n.jsx)(Ss,{alt:y,className:T,"data-l10n-id":c,height:i,onLoad:m,src:g,style:N,width:C});return L&&l?l.type==="lesson"?k=(0,n.jsx)(cs,{className:"img__link",to:x(l.destination),children:k}):S&&(k=(0,n.jsx)("a",{className:"img__link",href:S,rel:"noopener noreferrer nofollow",target:"_blank",children:k})):b&&(k=(0,n.jsx)(U4,{a11yNameButtonUnzoom:d?.a11yUnzoomImage,a11yNameButtonZoom:d?.a11yZoomImage,children:k})),(0,n.jsx)("div",{className:"img",children:k})});var Xge=f(17094),DY=f(12335),HY=f.n(DY);const FY=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,VY=/\.[a-z]{2,}\.?$/i,zY=(e,t)=>e===0||e===10||e===127||e===100&&t>=64&&t<=127||e===169&&t===254||e===172&&t>=16&&t<=31||e===192&&t===168||e>=224,l8=e=>{if(typeof e!="string")return!1;let t;try{t=e.startsWith("//")?new URL(e,"https://placeholder.invalid"):new URL(e)}catch{return!1}if(t.protocol!=="http:"&&t.protocol!=="https:")return!1;const{hostname:s}=t;if(!s)return!1;const o=FY.exec(s);return o?!zY(Number(o[1]),Number(o[2])):VY.test(s)},$Y=/^<iframe\b[^>]*\ssrc="([^"]+)"[^>]*><\/iframe>$/,_Y=e=>{if(typeof e!="string")return!1;const t=$Y.exec(e);return t?l8(t[1]):!1};var UY,GY,WY,KY,QY;const d8=os()("type","embed"),ZY=HY()("type","embedType"),YY=ir()(/http:/i,"https:"),XY=e=>({embedType:"iframe",originalUrl:e,src:e}),JY=e=>Mr(e.embed),Mr=e=>e?.embedType||e?.type,Jge=e=>WY([[KY,UY(d8,XY,YY)],[QY,GY(d8,ZY,e)]]),qge=Nn()(ce()(_Y,Sf),l8),eve="We are unable to generate an embed for this URL. Please check that the URL is valid and the content is publicly accessible.";var Or=f(80588);const u8=e=>{const t=ye("CDN_USER_CONTENT_URI"),s=new RegExp(ye("CDN_URI"),"g");return ui()?e:s.test(e)?`${t}${new URL(e).pathname}${new URL(e).search}`:e},qY=e=>{const t=new window.URL("https:"+e);return t.searchParams.set("src",t.searchParams.get("src")+"&disable-auto-focus=true"),t.toString().replace("https:","")},eX=/^\/\/cdn.embedly.+src=.*\.typeform\.com%2F/,tX=e=>eX.test(e),sX=/^\/\//,h8=e=>e?.replace(sX,"https://"),ou=e=>{try{if(e===!1)return e;const t=new URL(h8(e));if(t.host==="cdn.embedly.com"&&t.pathname==="/widgets/media.html"){const s=new URL("https://embed.articulateusercontent.com/media/");return s.search=t.search,s.searchParams.set("v","1"),s.href}return t.href}catch(t){const s=new Error("Could not parse embed url",{cause:t});return console.warn(s),e}},nX=ce()(ou,h8,Zn()(tX,qY),Zn()(Boolean,mt),us),oX=e=>{const{paddingBottom:t,ref:s,value:o}=e;return(0,n.jsx)("div",{className:"embed--iframe",dangerouslySetInnerHTML:Or.useMemo(()=>({__html:o}),[o]),ref:s,style:{paddingBottom:t}})};class rX extends Or.Component{player;refIframeContainer=Or.createRef();refIframePlayer=Or.createRef();state={duration:0,isReady:!1};static get defaultProps(){return{allowTabNavigation:!0,shouldPause:!1,showMetaData:!0}}componentDidUpdate(t){!t.shouldPause&&this.props.shouldPause&&de.isPlaying&&(this.player?.pause(),de.isPlaying=!1)}componentWillUnmount(){Mr(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}),de.addChangeListener(this.handlePlayerChange))};handlePlayerPlay=()=>{const{id:t}=this.props;de.isPlaying&&de.playerId!==t&&(de.isPlaying=!1),de.playerId=t,de.isPlaying=!0};handlePlayerUpdate=t=>{this.props.progressChanged?.({done:t.seconds/t.duration*100})};handlePlayerChange=()=>{const{id:t}=this.props;de.playerId===t&&(de.isPlaying?this.player.play():this.player.pause())};setupPlayer=()=>{this.refIframePlayer.current?.contentWindow!=null&&(this.player!=null&&this.teardownPlayer(),this.player=new(kY()).Player(this.refIframePlayer.current),this.player.on("ready",this.handlePlayerReady))};teardownPlayer=()=>{de.isPlaying=!1,de.removeChangeListener(this.handlePlayerChange),this.player&&(this.player.off("play"),this.player.off("ready"),this.player.off("timeupdate"),delete this.player)};playerSupportsMethods=t=>{const s=o=>this.player.supports("method",o);return EY()(s)(t)};togglePlay=()=>{this.playerSupportsMethods(["play","pause"])&&this.player.on("ready",()=>{this.player.getPaused(t=>{t?this.player.play():this.player.pause()})})};keySeek=t=>{this.playerSupportsMethods(["getCurrentTime","setCurrentTime"])&&this.player.on("ready",()=>{this.player.getCurrentTime(s=>{this.player.setCurrentTime(s+t)})})};changeVolume=t=>{this.playerSupportsMethods(["getVolume","setVolume"])&&this.player.getVolume(s=>{this.player.setVolume(s+t)})};onKeyDown=t=>{const r=hn(this.togglePlay),a=hn(()=>this.keySeek(5)),i=hn(()=>this.keySeek(-5)),c=hn(()=>this.changeVolume(10)),d=hn(()=>this.changeVolume(-10));ns()([[Gh,r],[no,a],[so,i],[br,c],[yr,d]])(t)};renderProvider=()=>{const{allowTabNavigation:t,embedId:s,externalLinksDisabled:o,onLinkBlur:r,onLinkFocus:a,onLinkMouseEnter:i,onLinkMouseLeave:c,showMetaData:d,data:l}=this.props,{providerUrl:u,provider:m,favicon:p}=l;if(!(d&&u))return null;const g=ou(us(u)),C=o&&zs(g),v=`${s}-provider`,x=C?"":void 0,y=C?void 0:g,S=C?void 0:"noopener noreferrer",L=C?"button":void 0,b=C?void 0:"_blank";return(0,n.jsx)("h2",{className:"embed__provider",children:(0,n.jsxs)("a",{className:"brand--hoverColor","data-external":x,href:y,id:C?v:void 0,onBlur:C?()=>r?.(v):void 0,onFocus:C?()=>a?.(v):void 0,onMouseEnter:C?()=>i?.(v):void 0,onMouseLeave:C?()=>c?.(v):void 0,rel:S,role:L,style:C?{display:"inline-block"}:void 0,tabIndex:t?0:-1,target:b,children:[(0,n.jsx)(Ss,{alt:p?m:"",className:"embed__providerIcon",src:p}),(0,n.jsx)("span",{className:"embed__providerName",children:m})]})})};renderMetaData=()=>{const{allowTabNavigation:t,data:s,embedId:o,externalLinksDisabled:r,labels:a,onLinkBlur:i,onLinkFocus:c,onLinkMouseEnter:d,onLinkMouseLeave:l,showMetaData:u}=this.props,{src:m,title:p,description:g,provider:C}=s,v=Mr(s);if(!u&&v!=="link")return null;const x=ou(us(m)),y=r&&zs(x),S=`${o}-metadata-title`,L=`${o}-metadata-readmore`,b=T=>({"data-external":y?"":void 0,href:y?void 0:x,id:y?T:void 0,onBlur:y?()=>i?.(T):void 0,onFocus:y?()=>c?.(T):void 0,onMouseEnter:y?()=>d?.(T):void 0,onMouseLeave:y?()=>l?.(T):void 0,rel:y?void 0:"noopener noreferrer nofollow",role:y?"button":void 0,style:y?{display:"inline-block"}:void 0,tabIndex:t?0:-1,target:y?void 0:"_blank"});return(0,n.jsxs)("div",{className:"embed__meta__content",children:[(0,n.jsx)("h2",{className:"embed__title",children:(0,n.jsx)("a",{className:"brand--hoverColor",...b(S),children:(0,n.jsx)(Le,{value:p})})}),(0,n.jsx)(Le,{className:"embed__description",value:g}),(0,n.jsxs)("a",{className:"embed__readMore brand--hoverColor",...b(L),children:[v==="link"?`${a?.embedReadMore} ${C}`:`${a?.embedViewOn} ${C}`,(0,n.jsx)("i",{className:"icon icon-chevron-right"})]})]})};render(){const{allowTabNavigation:t,data:s,embedId:o,externalLinksDisabled:r,isLesson:a,labels:i,onLinkBlur:c,onLinkFocus:d,onLinkMouseEnter:l,onLinkMouseLeave:u,showMetaData:m}=this.props,{useRelativePath:p}=s??{},{description:g,originalUrl:C,src:v,thumbnail:x,title:y}=s,S=Mr(s);if(S==="iframe"){const L=document.createElement("div");L.innerHTML=Sf(v);const b=L.firstChild,T=b&&b.tagName&&b.tagName.toLowerCase()==="iframe";let N=100,k=32;if(this.props.isAuthoring&&p)return(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"embed__relativeUrl--iframe",children:"Embedded iframe with a relative url"}),(0,n.jsx)("p",{className:"embed__relativeUrl--title",children:y}),(0,n.jsx)("p",{className:"embed__relativeUrl--url",children:C})]});if(T){const j=b.width.match(/%/),O=parseInt(b.width);b.src=us(b.src),N=j?700*(O/100):O||16,k=parseInt(b.height)}const E=k/N,I=T?`${E*100}%`:"3rem";let A=null;try{A=new URL(b.src)}catch{}if(A){const{hostname:j}=A,O=j==="typeform.com"||j.endsWith(".typeform.com"),w=j==="forms.office.com";O&&(A.searchParams.append("disable-auto-focus","true"),b.src=A.toString()),w&&(A.searchParams.append("embed","true"),b.src=A.toString())}const R=T?b.outerHTML:"<div>Error: Invalid iframe tag. Please check the iframe source.</div>";return(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":i?.embedPlayerGroup,className:"embed",role:Ga,children:[p&&(0,n.jsx)("div",{className:"embed__title embed--iframe__title",children:y}),(0,n.jsx)(oX,{paddingBottom:I,ref:this.refIframeContainer,value:R})]})}else if(a){const L=p?v:ou(us(v)),b=r&&zs(L),T=`${o}-lesson-title`,N=`${o}-lesson-url`,k=b?"":void 0,E=b?void 0:L,I=b?void 0:"noopener noreferrer nofollow",A=b?"button":void 0,R=b?void 0:"_blank";if(p){const j={"data-external":b?"":void 0,href:L,id:b?T:void 0,onBlur:b?()=>c?.(T):void 0,onFocus:b?()=>d?.(T):void 0,onMouseEnter:b?()=>l?.(T):void 0,onMouseLeave:b?()=>u?.(T):void 0,rel:b?void 0:"noopener noreferrer nofollow",role:b?"button":void 0,tabIndex:t?0:-1,target:b?void 0:"_blank"};return(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:Ga,children:[(0,n.jsx)("h2",{className:"embed__title",children:(0,n.jsx)("a",{className:"brand--hoverColor",...j,children:(0,n.jsx)(Le,{value:y})})}),["link","photo"].includes(S)?(0,n.jsxs)("a",{className:"embed__relativeUrl--url","data-external":k,href:E,id:b?N:void 0,onBlur:b?()=>c?.(N):void 0,onFocus:b?()=>d?.(N):void 0,onMouseEnter:b?()=>l?.(N):void 0,onMouseLeave:b?()=>u?.(N):void 0,rel:I,role:A,tabIndex:t?0:-1,target:R,children:[L,S==="photo"?(0,n.jsx)("div",{className:"embed__relativeUrl--image",children:(0,n.jsx)(Ss,{alt:x?y:"",className:"embed__img",src:L})}):null]}):this.renderEmbedIframe({allowTabNavigation:t,labels:i,src:v,thumbnail:x,title:y,type:S})]})}return(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:Ga,children:[this.renderProvider(),["link","photo"].includes(S)?(0,n.jsx)("a",{"data-external":k,href:E,id:b?N:void 0,onBlur:b?()=>c?.(N):void 0,onFocus:b?()=>d?.(N):void 0,onMouseEnter:b?()=>l?.(N):void 0,onMouseLeave:b?()=>u?.(N):void 0,rel:I,role:A,tabIndex:t?0:-1,target:R,children:(0,n.jsx)(Ss,{alt:x?y:"",className:"embed__img",src:u8(x)})}):this.renderEmbedIframe({allowTabNavigation:t,labels:i,src:v,thumbnail:x,title:y,type:S}),this.renderMetaData()]})}else if(S==="link"){const L=p?v:us(v),b=p||r&&zs(L),T=`${o}-link-readmore`,N=b?"":void 0,k=b?void 0:L,E=b?void 0:"noopener noreferrer nofollow",I=b?"button":void 0,A=b?void 0:"_blank";return(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":i?.embedLinkGroup,className:"embed embed--link brand--linkColor",role:Ga,children:[(0,n.jsx)(Le,{className:"embed__title",value:y}),(0,n.jsx)(Le,{className:"embed__description",value:g}),(0,n.jsx)("a",{className:"embed__readMore brand--hoverColor","data-external":N,href:k,id:b?T:void 0,onBlur:b?()=>c?.(T):void 0,onFocus:b?()=>d?.(T):void 0,onMouseEnter:b?()=>l?.(T):void 0,onMouseLeave:b?()=>u?.(T):void 0,rel:E,role:I,target:A,children:i?.embedReadMore})]})}else return(0,n.jsxs)("div",{className:"embed embed--media",children:[m?(0,n.jsx)(Le,{"aria-hidden":!t,className:"embed__title",value:y}):null,this.renderEmbedIframe({allowTabNavigation:t,labels:i,src:v,thumbnail:x,title:y,type:S})]})}renderEmbedIframe=t=>{const{allowTabNavigation:s,labels:o,src:r,thumbnail:a,title:i,type:c}=t,{useRelativePath:d}=this.props.data??{};if(c==="photo")return(0,n.jsx)("figure",{className:"embed__media-wrap embed__media-wrap--photo",children:(0,n.jsx)(Ka,{allowTabNavigation:s,labels:o,src:u8(a)})});{const l=oo.isIe11||oo.isEdge,u=U()("embed__media-wrap",{"embed__media-wrap--ms_browser":l});return(0,n.jsxs)("figure",{"aria-hidden":!s,"aria-label":o?.embedPlayerGroup,className:u,onKeyDown:this.onKeyDown,ref:this.refIframeContainer,tabIndex:s?0:-1,children:[(0,n.jsx)("meta",{content:"origin",name:"referrer"}),(0,n.jsx)("iframe",{allowFullScreen:!0,className:"embed__media",frameBorder:"0",inert:s?void 0:!0,loading:"lazy",onLoad:this.setupPlayer,ref:this.refIframePlayer,scrolling:d?"yes":"no",src:d?r:nX(r),title:i})]})}}}const m8=e=>{const t=P1(),s=Me(),o=e.externalLinksDisabled??(s&&"externalLinksDisabled"in s?s.externalLinksDisabled:!1),{handleMouseEnter:r,handleMouseLeave:a,handleFocus:i,handleBlur:c}=gd(),[d,l]=Or.useState([]),u=Or.useId();return Or.useEffect(()=>{if(!o||!e.data){l([]);return}const m=[],{providerUrl:p,src:g,useRelativePath:C}=e.data,v=Mr(e.data);e.isLesson&&g&&zs(us(g))&&(m.push(`${u}-lesson-title`),["link","photo"].includes(v)&&m.push(`${u}-lesson-url`),v!=="iframe"&&(m.push(`${u}-metadata-title`),m.push(`${u}-metadata-readmore`)),p&&zs(us(p))&&m.push(`${u}-provider`)),!e.isLesson&&e.showMetaData&&p&&zs(us(p))&&m.push(`${u}-provider`),!e.isLesson&&e.showMetaData&&g&&zs(us(g))&&v!=="iframe"&&(m.push(`${u}-metadata-title`),m.push(`${u}-metadata-readmore`)),v==="link"&&(C||g&&zs(us(g)))&&m.push(`${u}-link-readmore`),l(m)},[o,e.data,e.showMetaData,e.isLesson,u]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(rX,{...e,embedId:u,externalLinksDisabled:o,isAuthoring:t,onLinkBlur:c,onLinkFocus:i,onLinkMouseEnter:r,onLinkMouseLeave:a}),d.map(m=>(0,n.jsx)(vd,{anchorId:m},m))]})};var aX=f(70249);const iX=()=>{const e=ia();return l1(e)},p8=(e,t)=>e in t?"Articulate":e.length===2?"ISO-639-1":e.length===3?"ISO-639-3":null,cX=e=>Object.entries(e).reduce((t,[,s])=>(s.ISO639_1&&(t.iso1Map[s.ISO639_1]=t.iso1Map[s.ISO639_1]||[],t.iso1Map[s.ISO639_1].push(s)),s.ISO639_3&&(t.iso3Map[s.ISO639_3]=t.iso3Map[s.ISO639_3]||[],t.iso3Map[s.ISO639_3].push(s)),t),{iso1Map:{},iso3Map:{}}),lX=(e,t,s)=>{let o=e,r="",a=s??p8(e,t);return!a&&e.includes("-")&&([o,r]=e.split("-"),a=p8(o,t),a&&(e=o)),{languageCode:o,code:e,regionCode:r,standard:a??"Articulate"}},Nc=(e,t,s={})=>{const{code:o,standard:r}=lX(e.toLowerCase(),t,s.standard),{location:a,script:i,variant:c}=s;if(r!=="Articulate"){const{iso1Map:d,iso3Map:l}=cX(t),u=r==="ISO-639-1"?d[o]??null:l[o]??null;return u?u.length===1?u[0]:u.find(m=>{const p=c&&"variant"in m&&m.variant?m.variant.toLocaleLowerCase()===c.toLocaleLowerCase():!1,g=a&&"location"in m&&m.location?m.location.toLocaleLowerCase()===a.toLocaleLowerCase():!1,C=i&&"script"in m&&m.script?m.script.toLocaleLowerCase()===i.toLocaleLowerCase():!1;return p||g||C})||u[0]||null:null}return t[o]??null},sve=(e,t,s={})=>Nc(e,t,{standard:"Articulate",...s})?.ISO639_1||null,nve=(e,t,s={})=>Nc(e,t,{standard:"Articulate",...s})?.ISO639_3||null,ove=(e,t,s={})=>Nc(e,t,{standard:"ISO-639-1",...s})?.code||null,rve=(e,t,s={})=>Nc(e,t,{standard:"ISO-639-3",...s})?.code||null,f8=e=>!!(e&&"video"in e&&e.video&&"key"in e.video&&e.video.key),g8=e=>!!(e&&"customVideo"in e&&e.customVideo&&"src"in e.customVideo&&e.customVideo.src),v8=e=>!!(e&&"customVideo"in e&&e.customVideo&&"key"in e.customVideo&&e.customVideo.key),dX=(e,t)=>{const s=f8(e)&&f8(t)&&e.video.key===t.video.key,o=g8(e)&&g8(t)&&e.customVideo.src===t.customVideo.src,r=v8(e)&&v8(t)&&e.customVideo.key===t.customVideo.key;return s||o||r},uX=e=>!!(e&&"video"in e&&e.video&&"captions"in e.video&&e.video.captions?.length),hX=e=>{const t=Ds(),{currentLocale:s}=Qe(),o=Ie(e,t),r=Ie(e,s),a=iX();return(0,h.useMemo)(()=>{if(!!(s&&s!==t)&&a&&dX(o,r)&&uX(r))return r.video.captions.find(d=>Nc(d.code,a)?.code===s)?.id},[t,s,o,r,a])};function rp({allowTabNavigation:e=!0,audioVideoPlayhead:t,canAdjustPlaybackSpeed:s,canRestrictSeek:o,captions:r,cornerRadius:a,id:i,media:c,onLoad:d,poster:l,progressChanged:u,recordMediaPlayheadPosition:m,ref:p,shouldPause:g,src:C,subtitle:v,type:x}){const y=h.useRef(null),S=h.useCallback(V=>{y.current=V,typeof p=="function"?p(V):p&&(p.current=V)},[p]),L=(0,Ae.A)(g),{currentLocale:b}=Qe(),T=as(),N=YE(),k=Uh(),E=hX(c),I=x==="customVideo",A=h.useCallback(V=>{Vf(),u?.(V)},[u]),R=h.useCallback(V=>{m?.(V)},[m]),j=h.useCallback(()=>{de.playerId=i,de.isPlaying=!0},[i]),O=h.useCallback(()=>{de.playerId===i&&(de.isPlaying=!1)},[i]),[w,P]=h.useState(!1),M=h.useRef(!1),z=h.useCallback(()=>{P(!0),d?.()},[d]);h.useEffect(()=>{M.current||w&&(t!=null&&t>0&&y.current?.seekToPercent(t),M.current=!0)},[w,t]),h.useEffect(()=>{!L&&g&&y.current?.pause()},[L,g]),h.useEffect(()=>{const V=()=>{(!de.isPlaying||de.playerId!==i)&&y.current?.pause()};return de.addChangeListener(V),()=>{de.removeChangeListener(V)}},[i]);const $=h.useMemo(()=>{const V={};return(typeof a=="number"||typeof a=="string")&&(V["--video-corner-radius"]=`${Number(a)}px`),V},[a]),F=l==null?void 0:I?l:mt(l);return(0,n.jsxs)(aX.L,{crossOrigin:oo.isLocalFilesystem?void 0:"anonymous",enablePlaybackSpeed:s??void 0,enableSeek:o==null?void 0:!o,inert:!e,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:N??b??void 0,onLoad:z,onPause:O,onPlay:j,onPlayheadSave:R,onTimeUpdate:A,poster:F,ref:S,style:$,timeUpdateInterval:1e3,children:[(0,n.jsx)("source",{src:`${I?C:mt(C)}?v=1`,type:I?"application/x-mpegURL":void 0}),r==null&&v&&(0,n.jsx)("track",{kind:"captions",label:"English",src:I?v:mt(v),srcLang:"en"}),r?.map(V=>(0,n.jsx)("track",{default:V.id===E?!0:void 0,kind:"captions",label:V.name||k?.(V.code),src:V.url||(V.key!=null?mt(V.key):void 0),srcLang:V.code},V.id))??null]})}var mX=f(80588);function Ke(e){const t=mX.forwardRef((s,o)=>{const r=is();return(0,n.jsx)(e,{...s,getL10nValue:r,ref:o})});return t.displayName=`withLocalizedLookup(${e.displayName||e.name})`,t}var pX=f(68418),C8=f.n(pX),fX=f(97367),gX=f.n(fX);const vX=e=>({...e,courseId:e.courseId||Ft()(["course","id"],e)}),CX=e=>({...e,lessonId:e.lessonId||Ft()(["lesson","id"],e)}),xX=({id:e,courseId:t,lessonId:s,refs:o})=>e||(o&&s?`${s}-${o}`:s||t),ap=ce()(xX,CX,vX),ave=st()(Ms()(Ce()("id"),C8()("id",ap)),Nn()(gX()(Ce(),[Ce()("id"),Ce()("uploads")]),Sn()(["id"])),C8()("isUploading",Pe()("status","uploading")));function ive(e){const t=e.match(/^(.*\/)?([^/]+)$/);if(!t)return encodeURIComponent(e);const s=t[1]??"",o=t[2],r=encodeURIComponent(o);return`${s}${r}`}function bX(e){return e.replace(/%2F/g,"/")}var yX=f(80588);const ip=e=>!!(e&&("key"in e&&e.key||"src"in e&&e.src)),ru=e=>ip(e)&&!e.isProcessing&&!e.error,LX=(e,t)=>t?.mediaType==="audio"?!!e&&(ip(e)||n8(t)||s8(t)&&!ip(e)):ru(e),SX=e=>Zn()(Ne()(!!e),kZ()(`-${e}`));class TX extends yX.Component{constructor(t){super(t),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:t,blockId:s,openTranscript:o,refs:r}=this.props,a=t?.items?.length===1?t.items[0]:void 0,i=this.props.item??a;let c=s;try{t!=null&&typeof t=="object"&&!Array.isArray(t)?"blockId"in t?c=t.blockId:"id"in t&&(c=t.id):t?.id&&(c=t.id)}catch{c=s}let d="";try{i!=null&&typeof i=="object"&&!Array.isArray(i)&&"id"in i&&(d=String(i.id))}catch{d=""}const l=r??`items:${c||""}/items:${d}`;if((t||s)&&i&&o)return o({blockId:t?.id??s,item:i,refs:l})}renderAudio(t,s){const{activeIndex:o,allowTabNavigation:r,block:a,blockId:i,getL10nValue:c,index:d,isOverlayAudio:l,item:u,itemIndex:m,labels:p,lessonNumber:g,shouldPause:C,side:v}=this.props,{audio:x}=c(t),y=a&&typeof a=="object"&&"blockId"in a?a.blockId:a?.id||i||"",S=u&&typeof u=="object"&&"id"in u?u.id:"",L=this.props.refs??`items:${y}/items:${S}`,b=`audio-${g}-${d}`;return(0,n.jsx)(c8,{activeIndex:o,allowTabNavigation:r,id:b,isOverlayAudio:l,item:u,itemIndex:m,labels:p,mediaSrc:x.key,onTranscriptClick:this.onTranscriptClick,onTranscriptClose:this.props.closeTranscript??void 0,onTranscriptUpdate:this.props.onTranscriptUpdate,refs:L,shouldPause:x.pause||C,side:v,transcriptMedia:t,uploadId:s,volumeSliderPosition:this.props.volumeSliderPosition},b)}renderImage(t){const{allowTabNavigation:s,cornerRadius:o,defaultAlign:r,imageMaxHeight:a,index:i,labels:c,onLoad:d,opts:l}=this.props,u=t?.align??r,m=t?.dimensions,p=`image-${i}`,{disableZoom:g}=l??{};return(0,n.jsx)(Ka,{align:u,allowTabNavigation:s,alt:t?.alt,cornerRadius:o,disableZoom:g,height:m?.height||m?.originalHeight,labels:c,link:t?.link,maxHeight:a,onLoad:d,shouldFillWidth:t?.fillWidth,src:vt(t),width:m?.width||m?.originalWidth},p)}renderVideo(t,s){const{allowTabNavigation:o,blockId:r,lessonNumber:a,index:i,enableVideoPlaybackSpeed:c,shouldPause:d}=this.props,l=t.skipProcess?bX(t.poster):t.poster,u=SX(r)(`video-${a}-${i}-${l||""}`);return(0,n.jsx)(rp,{allowTabNavigation:o,canAdjustPlaybackSpeed:c,captions:t.captions,id:u,media:s,poster:l,shouldPause:t.pause||d,src:t.key},u)}renderEmbed(t){const{allowTabNavigation:s,embedClass:o,labels:r,opts:a,shouldPause:i}=this.props,{fullEmbed:c,showMetaData:d=!0}=a,l=`embed-${this.props.index}`;return(0,n.jsx)("div",{className:o,children:(0,n.jsx)(m8,{allowTabNavigation:s,data:t,id:l,isLesson:c,labels:r,shouldPause:t.pause||i,showMetaData:d},l)})}render(){const{blockId:t,hasPadding:s,item:o,lessonId:r,mediaType:a}=this.props,i=o&&typeof o=="object"&&"id"in o?o.id:"",c=this.props.refs??`items:${t??""}/items:${i}`,d=this.props.media,l=U()({"media-group":s}),{audio:u,embed:m,image:p,video:g}=this.props.getL10nValue(d)??{},C=ap({lessonId:r,refs:c}),v=this.props.getUpload?this.props.getUpload(C):null;return(0,n.jsxs)("div",{className:l,"data-l10n-id":jt(d),children:[(!a||a==="image")&&ru(p)&&this.renderImage(p),(!a||a==="audio")&&LX(u,v)&&this.renderAudio(d,C),(!a||a==="video")&&ru(g)&&this.renderVideo(g,d),(!a||a==="embed")&&ru(m)&&this.renderEmbed(m)]})}}const $t=pY(wl(r4(Ke(TX))));function fn(e,t,s,o){const a=t==="bottom"||!s&&t!=="top"?"bottom":"top",i={renderOrder:["text"],isOverlayAudio:!1};if(!e)return i;const c=!!e.audio,d=!!e.image,l=!!e.video,u=!!e.embed,m=d||l,p=()=>{const v=d?"image":"video",x={top:c?["audio","text",v]:["text",v],bottom:c?["text","audio",v]:["text",v],legacyTop:c?["audio",v,"text"]:[v,"text"],legacyBottom:c?[v,"text","audio"]:[v,"text"]};return s&&o==="timeline"&&!t?x.top:s&&o!=="timeline"?a==="bottom"?x.legacyBottom:x.legacyTop:a==="bottom"?x.bottom:x.top},g=()=>{const v={top:c?["audio","text","embed"]:["text","embed"],bottom:c?["text","embed","audio"]:["text","embed"],legacyTop:c?["audio","embed","text"]:["embed","text"],legacyBottom:c?["embed","text","audio"]:["embed","text"]};return s&&o==="timeline"&&!t?v.legacyTop:s&&o!=="timeline"?a==="bottom"?v.legacyBottom:v.legacyTop:a==="bottom"?v.bottom:v.top},C=()=>a==="bottom"?["text","audio"]:["audio","text"];return c&&!m&&!u?{...i,renderOrder:C()}:m&&!c&&!u?{...i,renderOrder:p()}:u&&!c&&!m?{...i,renderOrder:g()}:c&&m&&!u?o==="statement"?{...i,renderOrder:C()}:o==="labeled-graphic"||a==="top"||o==="process"?{...i,renderOrder:p(),audioOnlyMedia:{audio:e.audio},imageOnlyMedia:{image:e.image},videoOnlyMedia:{video:e.video}}:{...i,renderOrder:e.video?["text","video","audio"]:["text","overlay"],audioOnlyMedia:{audio:e.audio},imageOnlyMedia:{image:e.image},videoOnlyMedia:{video:e.video},isOverlayAudio:!e.video}:c&&u&&!m?{...i,renderOrder:g(),audioOnlyMedia:{audio:e.audio},embedOnlyMedia:{embed:e.embed}}:i}var NX=f(80588);const Vn=_("block-text"),kX=class extends NX.Component{renderHeadingDelegate;renderTextDelegate;constructor(e){super(e),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:e}=this.props;return e?e==="heading"?"h2":"h3":"div"};renderHeading(e){const t="heading"in e?e.heading:null;return(0,n.jsx)(Le,{value:t})}renderText(e){const{labels:t,takingSnapshot:s,variant:o}=this.props,r=o?.includes("column"),a="paragraph"in e?e.paragraph:void 0;return r||s?(0,n.jsx)(TZ,{item:e,labels:t,children:(0,n.jsx)(Ye,{value:a||""})}):(0,n.jsx)(Ye,{className:Vn("col"),value:a||""})}render(){const{blockId:e,columns:t,defaultBackgroundColor:s,heading:o,isLearner:r,items:a,labels:i,lessonId:c,media:d,settings:l,type:u,variant:m,renderText:p=this.renderTextDelegate,renderHeading:g=this.renderHeadingDelegate,getL10nValue:C}=this.props,v=C(d),x=Object.keys(v?.audio??{}).length>0,{audioPosition:y,entranceAnimation:S,cellPadding:L=1.5,tableWidth:b=76,textPadding:T=.8,textWidth:N=76}=l,k=m==="table",E=t===1,I=t>1,A=k?b:N,R=!k&&E,j=k,O=tZ(L),w=sZ(T),P=Ym(A),M=Vn({[u]:!R&&!j||I,[`${u}-custom-width`]:!I,[`${u}-custom-width-table-${P}`]:j,[`${u}-custom-width-text-${P}`]:R,[`heading-custom-text-padding-${w}`]:R,[`${u}-custom-cell-padding-${O}`]:j,"no-animation":!S}),z=t>2?Vn("container-wide"):Vn("container",{authoring:!r}),$=this.getHeadingComponent(),F=C(Array.isArray(d)?{}:d),V=fn(F,y);return(0,n.jsx)(we,{className:M.toString(),defaultBackgroundColor:s,children:(0,n.jsxs)("div",{className:z,"data-block-id":e,"data-block-text":"",children:[(0,n.jsx)("div",{className:Vn("row"),children:o!==""?a.slice(0,1).map((K,Z)=>(0,n.jsx)("div",{className:Vn("col"),children:(0,n.jsx)("div",{className:Vn("heading"),children:(0,n.jsx)($,{children:g(K)})})},"id"in K?K.id:Z)):null}),V.renderOrder.map((K,Z)=>{if(K==="text")return(0,n.jsx)("div",{className:Vn("row"),children:u!=="heading"?a.slice(0,t).map((X,te)=>(0,n.jsx)(h.Fragment,{children:p(X)},"id"in X?X.id:te)):null},`text-${Z}`);if(K==="audio"&&x){const X=V.renderOrder.indexOf("audio")<V.renderOrder.indexOf("text");return(0,n.jsx)("div",{className:Vn("row",{media:!0,top:X,bottom:!X,hasHeading:m==="heading paragraph"||m==="subheading paragraph"}),children:(0,n.jsx)("div",{className:Vn("col",{media:!0}),children:(0,n.jsx)($t,{blockId:e,hasPadding:!1,index:e,item:{id:e,media:d},labels:i,lessonId:c,media:d,refs:`items:${e}`})})},`audio-${Z}`)}})]})})}},Ho=Ke(kX),IX=Ho,EX=e=>(0,n.jsx)(Ho,{columns:2,type:"twocol",...e}),jX=e=>(0,n.jsx)(Ho,{columns:3,type:"threecol",...e}),wX=e=>(0,n.jsx)(Ho,{columns:4,type:"fourcol",...e}),AX=e=>(0,n.jsx)(Ho,{heading:"heading",type:"heading",...e}),RX=e=>(0,n.jsx)(Ho,{heading:"subheading",type:"heading",...e}),PX=e=>(0,n.jsx)(Ho,{heading:"heading",...e}),MX=e=>(0,n.jsx)(Ho,{heading:"subheading",...e});var kc=f(80588);const OX=1e3,BX={fadeInGrow:"scale(0.95)",fadeInLeft:"translateX(-50px)",fadeInLeftSmall:"translateX(-25px)",fadeInRight:"translateX(50px)",fadeInUp:"translateY(25px)"},DX=e=>{const{afterAnimatedIn:t,animateIn:s="fadeIn",children:o,className:r,duration:a=1,initiallyVisible:i,siblingDelay:c=0}=e,d=kc.useRef(null),[l,u]=kc.useState(!1);kc.useEffect(()=>{const p=d.current;if(i&&p){u(!0);return}if(l||!p||typeof window>"u")return;const g=Z4(),C=new IntersectionObserver(([x])=>{x!=null&&(x.isIntersecting||x.intersectionRatio>0)&&(u(!0),C.unobserve(x.target))},{root:g,rootMargin:D2,threshold:0});C.observe(p);const v=setTimeout(()=>{u(x=>{if(x)return x;const y=d.current;if(!y)return x;const S=y.getBoundingClientRect(),L=g?.getBoundingClientRect(),b=L?.top??0,T=L?.bottom??window.innerHeight,N=(T-b)*.1;return S.bottom>b-N&&S.top<T+N?!0:x})},OX);return()=>{C.disconnect(),clearTimeout(v)}},[i,l]),kc.useEffect(()=>{const p=d.current;if(!p||!t)return;const g=C=>{C.target instanceof Element&&C.target.parentElement===p&&C.propertyName==="opacity"&&t()};return p.addEventListener("transitionend",g),()=>{p.removeEventListener("transitionend",g)}},[t]),kc.useEffect(()=>{const p=d.current;if(!p||!Array.isArray(o))return;Array.from(p.children).forEach((C,v)=>{C instanceof HTMLElement&&C.style.setProperty("--idx",String(v))})},[o]);const m={"--scroll-animation-step":`${c}s`,"--scroll-animation-duration":s==="none"?"0s":`${a}s`,"--scroll-animation-from":BX[s]??"translateY(0)"};return(0,n.jsx)("div",{className:U()("scroll-animation",r,{"scroll-animation--in":l}),ref:d,style:m,children:o})},HX=matchMedia("(prefers-reduced-motion: reduce)");function Ns(){return HX.matches}const Oe=e=>{const{afterAnimatedIn:t,animateBlockEntrance:s,animateIn:o,children:r,className:a,duration:i,initiallyVisible:c,isLearner:d,siblingDelay:l}=e;return d&&s&&!Ns()?(0,n.jsx)(DX,{afterAnimatedIn:t,animateIn:o,className:a,duration:i,initiallyVisible:c,siblingDelay:l,children:r}):Array.isArray(r)?(0,n.jsx)("div",{children:r}):r};var x8=f(80588);const FX=x8.lazy(async()=>{const[e,t]=await Promise.all([f.e("ace").then(f.t.bind(f,89857,23)),f.e("ace").then(f.bind(f,63864)),f.e("ace").then(f.t.bind(f,81e3,23)),f.e("ace").then(f.t.bind(f,32949,23)),f.e("ace").then(f.t.bind(f,28761,23)),f.e("ace").then(f.t.bind(f,39011,23)),f.e("ace").then(f.t.bind(f,28761,23)),f.e("ace").then(f.t.bind(f,4384,23)),f.e("ace").then(f.t.bind(f,14603,23)),f.e("ace").then(f.t.bind(f,83608,23)),f.e("ace").then(f.t.bind(f,9586,23)),f.e("ace").then(f.t.bind(f,70806,23)),f.e("ace").then(f.t.bind(f,75782,23)),f.e("ace").then(f.t.bind(f,10465,23)),f.e("ace").then(f.t.bind(f,52307,23)),f.e("ace").then(f.t.bind(f,78954,23)),f.e("ace").then(f.t.bind(f,79460,23)),f.e("ace").then(f.t.bind(f,83653,23)),f.e("ace").then(f.t.bind(f,11188,23)),f.e("ace").then(f.t.bind(f,22667,23)),f.e("ace").then(f.t.bind(f,5068,23)),f.e("ace").then(f.t.bind(f,67431,23))]);return{default:t.default}}),VX=({classNames:e,code:t,blockId:s})=>{const[o,r]=(0,h.useState)(!1),{announcePolite:a}=In(),i=async()=>{const c=(0,wr.htmlDecode)(t);await navigator.clipboard.writeText(c),r(!0),setTimeout(()=>r(!1),1e3),a("Copied!")};return(0,n.jsx)("div",{className:e,children:(0,n.jsx)(Be.ArcTooltip,{id:`code-snippet-copy-tooltip-${s}`,text:o?"Copied!":"Copy",children:(0,n.jsx)(Be.ArcButton,{icon:(0,n.jsx)(ie,{name:o?"check":"copy"}),layout:"icon",onClick:i,shape:"square",size:"md",variant:"tertiary"})})})};class zX extends x8.Component{renderCaptionDelegate;constructor(t){super(t),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption({caption:t}){return(0,n.jsx)(Ye,{className:"block-text__code-caption",value:t||""})}render(){const{animateBlockEntrance:t,blockId:s,defaultBackgroundColor:o="",getL10nValue:r,initiallyVisible:a,isLearner:i,items:c,labels:d,settings:l,renderCaption:u=this.renderCaptionDelegate}=this.props,{entranceAnimation:m,language:p,paddingBottom:g,paddingTop:C,snippetBackgroundColor:v,snippetColorContrast:x,theme:y,useAdvancedEditor:S,wrapWords:L}=l,b=U()("block-text block-text--code",{"block-text--padding-top":Number(C)===2,"block-text--padding-bottom":Number(g)===2,"block-text--no-animation":!m}),T={backgroundColor:v},N=v==="#fafafa"||Xe()(v),k=x??pe.DARK;if(!N){const E=At({backgroundColor:v,contrast:k});Object.assign(T,{"--color-snippet-contrast":E})}return(0,n.jsx)(we,{className:b,defaultBackgroundColor:o,children:(0,n.jsx)(Oe,{animateBlockEntrance:t,initiallyVisible:a,isLearner:i,children:(0,n.jsx)("div",{className:"block-text__container",children:c.slice(0,1).map(E=>{const I=yc({...E,getL10nValue:r});return(0,n.jsx)("div",{className:"block-text__row",children:(0,n.jsx)("div",{"aria-label":d?.a11yBlockCodeSnippet,className:"block-text__col",role:Ga,children:(0,n.jsxs)("figure",{"aria-labelledby":I.figcaptionId,className:"block-text__figure block-text__figure--with-copy",role:"figure",children:[(0,n.jsx)(nR,{value:E.code,children:A=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(VX,{blockId:s,classNames:"block-text__copy-button",code:A}),S?(0,n.jsx)(h.Suspense,{fallback:null,children:(0,n.jsx)(FX,{editorProps:{$blockScrolling:!0},maxLines:25,mode:p,name:String(E.id),readOnly:!0,setOptions:{enableSnippets:!1,showLineNumbers:!0,tabSize:2,fontSize:"1.6rem",useWorker:!1},theme:y,value:(0,wr.htmlDecode)(n0(A)),width:"100%",wrapEnabled:L})}):(0,n.jsx)("pre",{className:"block-text__code",dangerouslySetInnerHTML:{__html:n0(A)},dir:"ltr",style:T})]})}),E.caption&&(0,n.jsx)("figcaption",{id:I.figcaptionId,children:u(E)})]})})},E.id)})})})})}}const b8=Ke(zX);function $X({accentColor:e,backgroundType:t,blockBackgroundColor:s,noteColor:o,imageBackgroundDefault:r="#ffffff"}){return o!=null&&o!==""?o:_X({accentColor:e,backgroundType:t,blockBackgroundColor:s,imageBackgroundDefault:r})}function _X({accentColor:e,backgroundType:t,blockBackgroundColor:s,imageBackgroundDefault:o="#ffffff"}){if(t!==q.IMAGE&&s==null)return"#000000b3";switch(t){case q.IMAGE:return o;case q.LIGHT:case q.GRAY:return sn(.9,e);case q.DARK:return"#494949";case q.BLACK:return"#333333";default:{if(!s)return e;switch(va(s)){case ct.LIGHT:return sn(.3,s);case ct.MED:return En(.2,s);case ct.DARK:case ct.NEAR_BLACK:return En(.4,s);default:return e}}}}function UX(e,t){const s=Zt(),{cardMode:o,className:r="",children:a,disabled:i=!1,tag:c="div",overrideBackground:d=!1,style:l={},...u}=e,{cardMode:m,customBackgroundColorContrast:p}=s,C=Me()?.theme,v=jn(),x=o??m??Fs.WHITE,y=bs()??"#ffffff",S=x===Fs.WHITE,L=v===q.COLOR,b=v===q.ACCENT,T=C?.accentContrast,N=v===q.ACCENT||v===q.COLOR,k=T===pe.AUTO&&b||p===pe.AUTO&&L,E=v===q.COLOR?p:T,I=[r,"block-card"];if(S)I.push("bg--range-light","block-card--white");else if(i){I.push("block-card--disabled");const A=At({backgroundColor:y,contrast:E});k&&(l["--color-text"]=A,l["--color-text-opposite"]=A===ft.DARK?ft.LIGHT:ft.DARK)}else{I.push("block-card--transparent");const R=dA(y)??y??"#ffffff";switch(v){case q.LIGHT:case q.GRAY:I.push("bg--range-light");break;case q.IMAGE:I.push("bg--range-dark");break;case q.DARK:case q.BLACK:I.push("bg--range-dark"),l["--color-background-rgb"]=(0,Da.A)(R)?.slice(0,3);break;default:{const O=l["--color-background"]??(d?y:R),w=At({backgroundColor:O,contrast:E});N&&w==ft.LIGHT&&I.push("block-card--contrast-light");const P=va(O);I.push(`bg--range-${Ca()(P.toLowerCase())}`),l["--color-background"]=O,l["--color-background-rgb"]=(0,Da.A)(O)?.slice(0,3);break}}}return(0,n.jsx)(c,{...u,className:I.join(" "),ref:t,style:l,children:a})}const Ot=(0,h.forwardRef)(UX);var GX=f(80588);const ks=_("block-statement");class WX extends GX.Component{renderTextDelegate;constructor(t){super(t),this.renderTextDelegate=this.renderText.bind(this)}static get defaultProps(){return{items:[],type:"a",getL10nValue:()=>{}}}getEntranceAnimationType(){const{type:t}=this.props;switch(t){case"a":return"fadeIn";case"b":case"d":return"fadeInUp";case"c":return"fadeInRight";case"note":return"fadeInGrow"}}getEntranceAnimationDuration(){const{type:t}=this.props;switch(t){case"a":return 1;case"b":case"c":case"d":return .75;case"note":return .5}}renderText({blockId:t,getL10nValue:s,type:o,labels:r,lessonId:a,media:i,settings:c},{paragraph:d}){const l=o==="note",u=s(Array.isArray(i)?{}:i),m=!!u?.audio,p=fn(u,c.audioPosition,!1,"statement"),g=(0,n.jsx)("div",{className:ks("quote"),children:p.renderOrder.map((C,v)=>{if(C==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(Ye,{value:d})},`text-${v}`);if(C==="audio"&&m){const x=p.renderOrder.indexOf("audio")<p.renderOrder.indexOf("text");return(0,n.jsx)("div",{className:ks("audio-container",{top:x,bottom:!x}),children:(0,n.jsx)($t,{blockId:t,hasPadding:!1,index:t,item:{media:i,id:t},labels:r,lessonId:a,media:i,mediaType:"audio",refs:`items:${t}`})},`audio-${v}`)}return null})});return l?(0,n.jsx)(JX,{getL10nValue:s,media:i,children:g}):g}render(){const{animateBlockEntrance:t,isLearner:s,items:o,renderText:r=this.renderTextDelegate,settings:a,type:i,initiallyVisible:c}=this.props,{entranceAnimation:d,divider:l=!0,dividerPadding:u=WQ(i),dividerSize:m=GQ(i),noteIcon:p=!0,noteSize:g="sm",statementWidth:C=KQ(i)}=a,v=JQ(C),x=qQ(u),y=eZ(m),S=g,L=i==="a"||i==="b"||i==="d",b=i==="note",T=ks({[i]:!0,[`${i}-custom-width-${v}`]:!0,[`${i}-divider-off`]:L&&!l,[`${i}-divider-padding-${x}`]:L&&l,[`${i}-divider-size-${y}`]:L&&l,[`note-size-${S}`]:b,[`note-size-${S}-no-icon`]:b&&!p,"no-animation":!d});return(0,n.jsx)(we,{className:T.toString(),children:(0,n.jsx)("div",{className:ks("wrap"),children:(0,n.jsx)("div",{className:ks("container"),children:(0,n.jsx)("div",{className:ks("row"),children:o.slice(0,1).map(N=>(0,n.jsx)(Oe,{animateBlockEntrance:t,animateIn:this.getEntranceAnimationType(),duration:this.getEntranceAnimationDuration(),initiallyVisible:c,isLearner:s,children:(0,n.jsxs)("div",{className:ks("col"),children:[(0,n.jsx)("div",{className:ks("divider-top-container"),children:(0,n.jsx)("div",{className:ks("divider-top")})}),r(this.props,N),(0,n.jsx)("div",{className:ks("divider-bottom")})]})},N.id))})})})})}}const Ic=Ke(WX),KX=Ic,QX=e=>(0,n.jsx)(Ic,{type:"b",...e}),ZX=e=>(0,n.jsx)(Ic,{type:"c",...e}),YX=e=>(0,n.jsx)(Ic,{type:"d",...e}),XX=e=>(0,n.jsx)(Ic,{type:"note",...e}),JX=({children:e,getL10nValue:t,media:s})=>{const o=Zt(),{accentColor:r,cardMode:a,cornerRadius:i,courseColor:c,customBackgroundColorContrast:d,noteIcon:l=!0,noteIconColor:u}=o,m=o.noteColor,p=o.noteColorContrast,{theme:g}=Me(),C=bs(),v=jn(),x=v===q.COLOR,y=v===q.ACCENT,S=g?.accentContrast,L=v===q.DARK||v===q.BLACK,b=m!=null&&m!=="",N=x||y||L||b?Fs.TRANSPARENT:a,k=b&&(p??pe.AUTO)===pe.AUTO||S===pe.AUTO&&y||d===pe.AUTO&&x,E=(0,h.useMemo)(()=>$X({accentColor:r??c,backgroundType:v,blockBackgroundColor:C,noteColor:m,imageBackgroundDefault:""}),[r,v,C,c,m]),I=b?p??pe.AUTO:v===q.COLOR?d:S,A=At({backgroundColor:E,contrast:I}),R={"--color-background":E,...(k||b)&&{"--color-text":A},...i&&{"--corner-radius":`${Number(i)}px`},...u&&{"--color-theme-decorative":u},...b&&{"--color-theme":m}},j=ks("note-icon",{off:!l}),w=(t?t(Array.isArray(s)?{}:s):void 0)?.image,P=w?.key&&Object.keys(w).length>0,M=P?tN(w)?mt(w.key):vt(w):null,z=()=>l?P&&M?(0,n.jsx)("div",{"aria-hidden":!0,className:ks("note-icon__custom"),style:{WebkitMaskImage:`url('${M}')`,maskImage:`url('${M}')`}}):(0,n.jsx)(ie,{name:"circle-info"}):null;return(0,n.jsxs)(Ot,{cardMode:N,className:ks("note-card"),style:R,children:[(0,n.jsx)("div",{className:j,children:z()}),e]})};var dt=f(80588);function y8({ariaLabel:e,children:t,className:s="carousel-controls-item-btn",isActive:o,onClick:r,onKeyDown:a}){return(0,n.jsx)("li",{className:"carousel-controls-item",role:"listitem",children:(0,n.jsx)("button",{"aria-current":o,"aria-label":e,className:s,onClick:r,onKeyDown:a,tabIndex:o?0:-1,type:"button",children:t})})}function au({children:e,iconNameLeft:t="chevron-left-light",iconNameRight:s="chevron-right-light",isInfinite:o=!0,isRTL:r=!1,labelCarousel:a="Carousel",labelCarouselRoleDesc:i="Carousel",labelSlideControls:c="Slide controls",labelSlideControlsGoToNext:d="Go to next slide",labelSlideControlsGoToPrevious:l="Go to previous slide",labelSlideControlsGoToSlide:u="Go to slide",labelSlideCounterPreposition:m="of",labelSlidePreposition:p="of",labelSlideRoleDesc:g="Slide",onChange:C,ref:v,renderSlideIndicator:x,shouldMouseEmulateTouch:y=!1,shouldUseCounter:S=!1,shouldUseGoToSlide:L=!0}){const b=dt.useId(),[T,N]=dt.useState(0),k=(0,Ae.A)(T)??0,E=dt.useRef(null),I=dt.useRef(null),A=dt.useRef(!1),R=dt.useRef(!1),j=dt.useRef(void 0),O=dt.useRef(void 0),w=`carousel-${b}`,P=dt.Children.count(e),M=(0,Ae.A)(P),z=dt.useMemo(()=>Array.from({length:P}),[P]),$=P>1;dt.useImperativeHandle(v,()=>({navigateToSlide:(W,D=!0)=>{N(W);const H=E.current?.children?.[W]?.firstElementChild;D&&H?.focus()}}),[]);const F=dt.useCallback(({activeIndex:W,dir:D})=>{const H=o?W-1>=0?W-1:P-1:Math.max(0,W-1),B=o?W+1<=P-1?W+1:0:Math.min(P-1,W+1);return D==="left"?r?B:H:r?H:B},[o,r,P]),V=dt.useCallback(()=>{N(W=>F(r?{activeIndex:W,dir:"right"}:{activeIndex:W,dir:"left"}))},[F,r]),K=dt.useCallback(()=>{N(W=>F(r?{activeIndex:W,dir:"left"}:{activeIndex:W,dir:"right"}))},[F,r]),Z=dt.useCallback(W=>{const D=E.current?.children?.[W],H=E.current;if(D&&H){const B=D.getBoundingClientRect(),G=H.getBoundingClientRect(),Y=B.left+B.width/2,J=G.left+G.width/2,Q=Y-J;H.scrollBy({left:Q,behavior:"smooth"})}},[]),X=dt.useCallback(W=>{let D=!1,H=T;switch(W.key){case"ArrowLeft":D=!0,H=F({activeIndex:T,dir:"left"});break;case"ArrowRight":D=!0,H=F({activeIndex:T,dir:"right"});break;case"Home":D=!0,H=0;break;case"End":D=!0,H=P-1;break}D&&(W.stopPropagation(),W.preventDefault()),T!==H&&(E.current?.children?.[H]?.firstChild?.focus(),Z(H),N(H))},[T,F,Z,P]);dt.useEffect(()=>{k!==T&&C?.(T)},[T,C,k]),dt.useEffect(()=>{P<M&&T>P-1&&N(P-1)},[T,M,P]),dt.useEffect(()=>{const W=Q=>{Q.target.tagName==="IMG"&&Q.preventDefault(),j.current=Q.screenX},D=Q=>{const se=window.visualViewport?.scale??1,re=window.getSelection().toString()!=="";if(!R.current&&se<=1.01&&!re&&j.current!=null){O.current=Q.screenX;const he=O.current-j.current;Math.abs(he)>50&&(window.getSelection().empty(),A.current=!0,j.current=void 0,O.current=void 0,he<0?N(Se=>F({activeIndex:Se,dir:"right"})):N(Se=>F({activeIndex:Se,dir:"left"})))}},H=Q=>{A.current&&Q.stopPropagation(),A.current=!1,R.current=!1,j.current=void 0,O.current=void 0},B=Q=>{if(Q.touches.length>1){R.current=!0;return}Q.changedTouches.length===1&&Q.changedTouches[0]&&(j.current=Q.changedTouches[0].screenX)},G=Q=>{const se=window.visualViewport?.scale??1,re=window.getSelection().toString()!=="";if(!R.current&&se<=1.01&&!re&&j.current!=null&&Q.changedTouches[0]){O.current=Q.changedTouches[0].screenX;const he=O.current-j.current;Math.abs(he)>50&&(A.current=!0,j.current=void 0,O.current=void 0,he<0?N(Se=>F({activeIndex:Se,dir:"right"})):N(Se=>F({activeIndex:Se,dir:"left"})))}},Y=()=>{A.current=!1,R.current=!1,j.current=void 0,O.current=void 0},J=I.current;return y&&(J?.addEventListener("mousedown",W,{capture:!0}),J?.addEventListener("mousemove",D,{capture:!0}),J?.addEventListener("click",H,{capture:!0})),J?.addEventListener("touchstart",B,{passive:!0}),J?.addEventListener("touchmove",G,{passive:!0}),J?.addEventListener("touchend",Y,{passive:!0}),J?.addEventListener("touchcancel",Y,{passive:!0}),()=>{y&&(J?.removeEventListener("mousedown",W),J?.removeEventListener("mousemove",D),J?.removeEventListener("mouseup",Y)),J?.removeEventListener("touchstart",B),J?.removeEventListener("touchmove",G),J?.removeEventListener("touchend",Y),J?.removeEventListener("touchcancel",Y)}},[F,y,P]);const te=dt.useCallback(W=>()=>{Z(W),N(W)},[Z]);return(0,n.jsxs)("div",{"aria-label":a,"aria-roledescription":i,className:"carousel",dir:r?"rtl":void 0,role:"region",style:{"--carousel-active-index":T},children:[$&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{"aria-label":c,className:"carousel-controls",role:"group",children:[L&&(0,n.jsx)("ul",{className:"carousel-controls-items",ref:E,role:"list",children:z.map((W,D)=>{const H=T===D,B=te(D);return x?x({index:D,isActive:H,onClick:B,onKeyDown:X}):(0,n.jsx)(y8,{ariaLabel:u+" "+(D+1),isActive:H,onClick:B,onKeyDown:X,children:(0,n.jsx)(ie,{className:"carousel-controls-item-btn-icon",name:H?"circle":"circle-solid"})},D)})}),(0,n.jsx)("button",{"aria-disabled":o?void 0:T===0,"aria-label":l,className:"carousel-controls-prev",onClick:!o&&T===0?void 0:V,type:"button",children:(0,n.jsx)(ie,{className:"carousel-controls-prev-icon",name:r?s:t})}),(0,n.jsx)("button",{"aria-disabled":o?void 0:T===P-1,"aria-label":d,className:"carousel-controls-next",onClick:!o&&T===P-1?void 0:K,type:"button",children:(0,n.jsx)(ie,{className:"carousel-controls-next-icon",name:r?t:s})}),S&&(0,n.jsxs)("div",{className:"carousel-controls-counter",children:[(0,n.jsx)("div",{className:"carousel-controls-counter-text",children:`${T+1} ${m} ${P}`}),(0,n.jsx)("div",{className:"carousel-controls-counter-line",children:(0,n.jsx)("div",{className:"carousel-controls-counter-line-runner",style:{width:`${Number(((T+1)/P).toFixed(2))*100}%`}})})]})]})}),(0,n.jsx)("div",{"aria-live":"polite",className:"carousel-slides",ref:I,children:dt.Children.map(e,(W,D)=>{const H=`${w}-${D}-counter`;return(0,n.jsxs)("div",{"aria-labelledby":H,"aria-roledescription":g,className:"carousel-slide",hidden:T!==D,inert:T!==D,role:"group",children:[(0,n.jsx)("div",{className:"visually-hidden-always",id:H,children:`${D+1} ${p} ${P}`}),W]})})})]})}var Ec=f(80588);const qX="div",L8=Ec.createContext(void 0);function eJ({children:e,element:t,...s},o){const[r,a]=Ec.useState(null);return(0,n.jsx)(L8.Provider,{value:r,children:Ec.createElement(t??qX,{...s,ref:o},e,(0,n.jsx)("div",{ref:a}))})}const iu=Ec.forwardRef(eJ);function lve(){return Ec.useContext(L8)}function cp(e){const t=s=>{const o=m1();return(0,n.jsx)(e,{...s,isRTL:o})};return t.displayName=`withRTL(${e.displayName||e.name})`,t}const cu=({blockId:e,carouselRef:t,children:s,items:o})=>{const r=(0,h.useRef)(null),a=t??r;return(0,h.useEffect)(()=>{const i=c=>{const{path:d}=c.detail,{blockId:l,cardId:u}=Ia(d,["block","card"]);if(l===e){const m=o.findIndex(p=>p.id===u);m>=0&&a.current?.navigateToSlide?.(m,!1)}};return window.addEventListener(We,i),()=>{window.removeEventListener(We,i)}},[o,e,a]),(0,n.jsx)(n.Fragment,{children:s({carouselRef:t})})},He=_("block-quote"),jc=({avatar:e,alt:t,l10nId:s,showAvatar:o})=>o?(0,n.jsx)(Ss,{alt:lr(t),className:He("avatar"),"data-l10n-id":s,src:e}):null,tJ=({alt:e,animateBlockEntrance:t,avatar:s,children:o,l10nId:r,initiallyVisible:a,isAuthorBlank:i=!1,isLearner:c,showAvatar:d,type:l})=>{const u=He("col",{"no-avatar":!s}),m=s?(0,n.jsx)("div",{className:He("image"),children:(0,n.jsx)("div",{className:He("avatar-wrap"),children:l==="c"?(0,n.jsx)(Oe,{animateBlockEntrance:t,animateIn:"fadeInLeftSmall",initiallyVisible:a,isLearner:c,children:(0,n.jsx)(jc,{alt:e,avatar:s,l10nId:r,showAvatar:d})}):(0,n.jsx)(jc,{alt:e,avatar:s,l10nId:r,showAvatar:d})})}):null;return(0,n.jsx)("div",{className:He("container"),children:(0,n.jsx)("div",{className:He("row"),children:(0,n.jsxs)("div",{className:u,children:[(0,n.jsx)("div",{className:He("divider-top")}),(0,n.jsxs)("div",{className:He("figure",{"no-author":i,"no-avatar":!i&&!d}),children:[m,o]}),(0,n.jsx)("div",{className:He("divider-bottom")})]})})})},sJ=({avatar:e,children:t,alt:s,l10nId:o,showAvatar:r})=>(0,n.jsx)("div",{className:He("figure"),children:(0,n.jsx)("div",{className:He("container"),children:(0,n.jsxs)("div",{className:He("row"),children:[(0,n.jsx)("div",{className:He("col"),children:e&&r?(0,n.jsx)(jc,{alt:s,avatar:e,l10nId:o,showAvatar:r}):null}),(0,n.jsx)("div",{className:He("col"),children:t})]})})}),nJ=({background:e,avatar:t,children:s,alt:o,l10nId:r,showAvatar:a})=>(0,n.jsx)("div",{className:He("background"),style:{backgroundImage:e??""},children:(0,n.jsx)("div",{className:He("container"),children:(0,n.jsx)("div",{className:He("row"),children:(0,n.jsx)("div",{className:He("col"),children:(0,n.jsxs)("div",{className:He("figure"),children:[t&&a?(0,n.jsx)(jc,{alt:o,avatar:t,l10nId:r,showAvatar:a}):null,s]})})})})});class oJ extends h.Component{renderTextDelegate;renderCaptionDelegate;constructor(t){super(t),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:t}=this.props;switch(t){case"a":case"b":case"background":return"fadeInUp";case"d":case"c":return"fadeInRight"}}getBackgroundImageUrl(t,s){const o=t?.alpha??QQ(s),r=vt(t),a=ZQ(s);return Ll({alpha:o,color:a,url:r})?.backgroundImage}renderText(t,{paragraph:s}){const o=s||"",r=He("text",{blank:o===""}).toString();return(0,n.jsx)(Ye,{className:r,value:o})}renderCaption(t,{name:s}){const o=He("caption",{blank:s===""}).toString();return(0,n.jsx)(Ye,{className:o,value:s})}render(){const{animateBlockEntrance:t,getL10nValue:s,initiallyVisible:o,isLearner:r,items:a,settings:i,type:c,renderText:d=this.renderTextDelegate,renderCaption:l=this.renderCaptionDelegate}=this.props,u=92,{avatarSize:m=B4(c),divider:p=!0,dividerSize:g=u,entranceAnimation:C,quoteAlignment:v="left",quoteIcon:x=!0,quotesInline:y,quotePadding:S=2,quoteWidth:L=O4(c)}=i,[b]=a,{avatar:T,background:N}=b,k=s(T?.media)?.image,E=C3(k),I=k?.alt,A=jt(T.media),R=s(N?.media)?.image,j=R?.overlayColor,O=this.getBackgroundImageUrl(R,j),w=i?.avatar??E!=="",P=E&&E!=="",M=c==="background",z=M&&j==="light",$=H4(L),F=F4(S),V=D4(c,m),K=XQ(g),Z=c==="a",X=c==="c"||M,te=c!=="b"&&!M,W=b?.name==="",D=b?.paragraph==="",H=He(null,{[c]:!0,[`${c}-custom-width-${$}`]:!0,[`${c}-divider-off`]:Z&&!p,[`${c}-divider-size-${K}`]:Z&&p,[`${c}-quote-padding-${F}`]:!0,[`${c}-align-${v}`]:M,[`${c}-${$}-no-avatar`]:!E||!w,[`${c}-avatar-size-${V}`]:w&&P,[`${c}-quote-icon-off`]:X&&!x,[`${c}-legacy-quote-mark`]:te&&!y,[`${c}-overlay-legacy`]:!j,[`${c}-overlay-light`]:z,"no-animation":!C}).toString(),B=(0,n.jsx)("div",{className:He("wrap",{blank:W||D}),children:(0,n.jsx)(Oe,{animateBlockEntrance:t,animateIn:this.getQuoteEntranceAnimationType(),initiallyVisible:o,isLearner:r,siblingDelay:.15,children:(0,n.jsxs)("figure",{children:[(0,n.jsx)("blockquote",{children:d(this.props,b)}),(0,n.jsx)("figcaption",{children:l(this.props,b)})]})})});let G;switch(c){case"d":G=(0,n.jsx)(sJ,{alt:I,avatar:E,initiallyVisible:o,l10nId:A,showAvatar:w,type:c,children:B});break;case"background":G=(0,n.jsx)(nJ,{alt:I,avatar:E,background:O,initiallyVisible:o,l10nId:A,showAvatar:w,type:c,children:B});break;default:G=(0,n.jsx)(tJ,{alt:I,animateBlockEntrance:t,avatar:E,initiallyVisible:o,isAuthorBlank:W,isLearner:r,l10nId:A,showAvatar:w,type:c,children:B})}return(0,n.jsx)(we,{className:H,children:G})}}const wc=Ke(oJ),lp=(e=>(0,n.jsx)(wc,{...e}));(Object.getOwnPropertyDescriptor(lp,"name")||{}).writable||Object.defineProperty(lp,"name",{value:"default",configurable:!0});const rJ=e=>(0,n.jsx)(wc,{type:"b",...e}),aJ=e=>(0,n.jsx)(wc,{type:"c",...e}),iJ=e=>(0,n.jsx)(wc,{type:"d",...e}),cJ=e=>(0,n.jsx)(wc,{type:"background",...e});class lJ extends h.Component{static get defaultProps(){return{type:"carousel",items:[],onStep:Function.prototype,getL10nValue:()=>{}}}handleChangeCarousel=t=>{this.props.onStep?.(this.props.items[t])};renderText=(t,{paragraph:s})=>{const o=s||"",r=He("text",{blank:s===""}).toString();return(0,n.jsx)(Ye,{className:r,value:o})};renderCaption=(t,{name:s})=>{const o=He("caption",{blank:s===""}).toString();return(0,n.jsx)(Ye,{className:o,value:s})};render(){const{blockId:t,animateBlockEntrance:s,editable:o,getL10nValue:r,initiallyVisible:a=!1,isRTL:i,isLearner:c,isLessonBlocksList:d=!1,items:l,labels:u,previewType:m,settings:p,renderText:g=this.renderText,renderCaption:C=this.renderCaption,type:v}=this.props,{avatar:x=!0,avatarSize:y=B4(v),entranceAnimation:S,quotesInline:L,quotePadding:b=2,quoteWidth:T=O4(v),showBorder:N=!0}=p,E=v!=="b"&&!(v==="background"),I=H4(T),A=F4(b),R=D4(v,y),j=m==="mobile-portrait"||m==="mobile-landscape",O=He({[v]:!0,[`${v}-custom-width-${I}`]:!0,[`${v}-quote-padding-${A}`]:!0,[`${v}-${I}-no-avatar`]:!x,[`${v}-avatar-size-${R}`]:x,[`${v}-legacy-quote-mark`]:!d&&E&&!L,"no-animation":!S,"hide-border":!N,editable:o}).toString(),w=l.map(P=>{const M=r(P?.avatar?.media)?.image,z=M?.alt,$=C3(M),F=x??$!=="",V="l10nId"in P.avatar.media?P.avatar.media.l10nId:void 0;return(0,n.jsx)("div",{className:He("slide"),children:(0,n.jsxs)("figure",{className:He("figure"),children:[$&&x?(0,n.jsx)(jc,{alt:z,avatar:$,l10nId:V,showAvatar:F}):null,(0,n.jsx)("blockquote",{children:g(this.props,P)}),(0,n.jsx)("figcaption",{children:C(this.props,P)})]})},P.id)});return(0,n.jsx)("div",{className:He("slider-container"),children:(0,n.jsx)(we,{className:O,children:(0,n.jsx)(iu,{className:He("wrap"),children:(0,n.jsx)("div",{className:He("container"),children:(0,n.jsx)("div",{className:He("col"),children:(0,n.jsx)(Ot,{className:He("box"),children:(0,n.jsx)(Oe,{animateBlockEntrance:s,animateIn:"fadeInUp",initiallyVisible:a,isLearner:c,children:(0,n.jsx)(cu,{blockId:t,items:l,children:({carouselRef:P})=>(0,n.jsx)(au,{isRTL:i,labelCarousel:u?.a11yBlockQuoteCarousel,labelCarouselRoleDesc:u?.a11yBlockQuoteCarouselRoleDescription,labelSlideControls:u?.a11yBlockQuoteCarouselSlideControls,labelSlideControlsGoToNext:u?.a11yBlockQuoteCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:u?.a11yBlockQuoteCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:u?.a11yBlockQuoteCarouselSlideControlsGoToSlide,labelSlideCounterPreposition:u?.blocksPreposition,labelSlidePreposition:u?.a11yBlockQuoteCarouselSlidePreposition,labelSlideRoleDesc:u?.a11yBlockQuoteCarouselSlideRoleDescription,onChange:this.handleChangeCarousel,ref:P,shouldMouseEmulateTouch:j,children:w})})})})})})})})})}}const dJ=cp(Ke(lJ));var S8=f(80588);const Ks=_("block-list"),uJ=class extends S8.Component{static get defaultProps(){return{editable:!1,items:[],onStep:Function.prototype,type:"numbered",getL10nValue:()=>{}}}nextNumber(e){const{items:t}=this.props,o=t.length>0?t[e].number:null;let r;return!isNaN(o)&&o!==""&&(r=parseInt(o,10)+1),(r<1||r>99)&&(r=null),r}render(){const{animateBlockEntrance:e,blockId:t,defaultBackgroundColor:s,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:c,labels:d,lessonId:l,media:u,onStep:m,settings:p,type:g}=this.props,{audioPosition:C,bulletPadding:v,entranceAnimation:x,listItemColor:y,listItemColorContrast:S,listWidth:L}=p,b=r(Array.isArray(u)?{}:u),T=fn(b,C),N=YQ(v),k=Ym(L),E=Ks({[g]:!0,[`${g}-custom-width-${k}`]:!0,[`${g}-bullet-padding-${N}`]:!0,"no-animation":!x}),I=g==="numbered"?"ol":"ul";return(0,n.jsx)(we,{className:E.toString(),defaultBackgroundColor:s,children:(0,n.jsx)("div",{className:Ks("container"),children:(0,n.jsx)("div",{className:Ks("row"),children:(0,n.jsx)(iu,{className:Ks("col"),children:(0,n.jsx)("div",{className:"blocks-list__container",children:T.renderOrder.map((A,R)=>{if(A==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(I,{className:Ks("list"),role:"list",children:(0,n.jsx)(Oe,{animateBlockEntrance:e,animateIn:"fadeInRight",className:Ks("animated-item").toString(),initiallyVisible:a,isLearner:i,siblingDelay:.25,children:c.map((j,O)=>{const w={key:j.id,index:O,lessonId:l,blockId:t,type:g,editable:o,nextNumber:this.nextNumber.bind(this),onStep:m,listItemColor:y,listItemColorContrast:S,...j};return this.props.renderItem?this.props.renderItem(w):(0,h.createElement)(hJ,{...w,key:w.key})})})})},`text-${R}`);if(A==="audio")return(0,n.jsx)("div",{className:U()("block-list__media",{"audio-on-top":T.renderOrder[0]==="audio","audio-on-bottom":T.renderOrder[0]!=="audio"}),children:(0,n.jsx)($t,{blockId:t,hasPadding:!1,index:t,item:{media:u,id:t},labels:d,lessonId:l,media:u,refs:`items:${t}`})},`${A}-${R}`)})})})})})})}};class hJ extends S8.Component{renderTextDelegate;animateRef=null;static get defaultProps(){return{className:""}}constructor(t){super(t),this.renderTextDelegate=this.renderText.bind(this)}renderText(t){return(0,n.jsx)(Ye,{...t})}handleChangeCheckbox=()=>{this.props.onStep(this.props)};render(){const{type:t,id:s,index:o,number:r,paragraph:a,editable:i,className:c,renderText:d=this.renderTextDelegate,style:l,listItemColor:u,listItemColorContrast:m}=this.props,p={allowTabNavigation:!0,className:"block-list__content brand--linkColor cursorAuto",editable:i,id:s,value:a};return(0,n.jsxs)("li",{className:U()("block-list__item",`block-list__item--${t}`,c),ref:g=>{this.animateRef=g},role:"listitem",style:l,children:[t==="numbered"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:Ks("number"),style:u?{backgroundColor:u,color:At({contrast:m||pe.AUTO,backgroundColor:u})}:void 0,children:r||o+1}),d(p)]}),t==="bulleted"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:"\u2022"}),(0,n.jsx)(ie,{className:Ks("bullet"),name:"circle-solid",style:u?{color:u}:void 0}),d(p)]}),t==="checkboxes"&&(0,n.jsxs)("label",{className:Ks("option"),children:[(0,n.jsx)("input",{className:Ks("checkbox-input"),onChange:this.handleChangeCheckbox,type:"checkbox"}),(0,n.jsx)("div",{className:Ks("checkbox"),style:u?{borderColor:u,"--color-background":u}:void 0,children:(0,n.jsx)(ie,{className:Ks("checkbox__icon"),name:"check",style:u?{color:At({contrast:m||pe.AUTO,backgroundColor:u})}:void 0})}),d(p)]})]})}}const mJ=Ke(uJ),dp=e=>(0,n.jsx)(mJ,{...e}),pJ=dp,fJ=e=>(0,n.jsx)(dp,{type:"checkboxes",...e}),gJ=e=>(0,n.jsx)(dp,{type:"bulleted",...e});var up=f(80588);const hp=e=>["hero","full","aside"].includes(e);class vJ extends up.Component{renderCaptionDelegate;constructor(t){super(t),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{type:"hero",editable:!1,getL10nValue:()=>{},lessonId:"",blockId:"",items:[]}}renderCaption(t,s){return(0,n.jsx)(Ye,{className:"block-image__caption",value:s})}render(){const{aiMagicIcon:t,aiOverlay:s,animateBlockEntrance:o,blockId:r,defaultBackgroundColor:a,editable:i,getL10nValue:c,initiallyVisible:d,isLearner:l,items:u,type:m,labels:p,lessonId:g,settings:C,renderCaption:v=this.renderCaptionDelegate}=this.props,{entranceAnimation:x,cornerRadius:y,zoomOnClick:S}=C,L=U()(`block-image block-image--${m}`,"block-image--flag-dimensions",{"block-image--no-animation":!x}),b=u[0],{id:T,caption:N}=b,{image:k,audio:E}=c(b.media)??{},I=k?.alt,A=vt(k),R=k?.dimensions,j=R?.width||R?.originalWidth,O=R?.height||R?.originalHeight,w=yc({caption:N,editable:i,id:T,getL10nValue:c}),P=!l&&!A,M=j&&O?j/O:void 0,z=k?.link?c(k.link.destination):void 0,$=k?.link&&typeof z=="string"?{type:k.link.type,destination:z}:void 0,F=U()("block-image__image",{"block-image__image--audio-overlay":!!E});return(0,n.jsx)(we,{className:L,defaultBackgroundColor:a,children:(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsx)("div",{className:"block-image__row",children:(0,n.jsx)("div",{className:"block-image__col",children:(0,n.jsx)(Oe,{animateBlockEntrance:o,initiallyVisible:d,isLearner:l,children:(0,n.jsxs)(w.tagName,{"aria-labelledby":w.figcaptionId,className:"block-image__figure",role:w.role,children:[(0,n.jsxs)("div",{className:F,children:[P?(0,n.jsxs)("div",{className:"block-image__waiting",style:{aspectRatio:M},children:[(0,n.jsx)("div",{children:t}),(0,n.jsx)("div",{className:"block-image__waiting-text",children:"Waiting for image\u2026"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ka,{alt:I,cornerRadius:y,disableZoom:!S,height:O,l10nId:jt(b.media),labels:p,link:$,maxHeight:m==="full"?380:900,src:A,width:j}),E&&hp(m)&&(0,n.jsx)($t,{blockId:r,cornerRadius:y,index:`${r}-${T}-0`,isOverlayAudio:!0,item:b,labels:p,lessonId:g,media:b.media,mediaType:"audio"})]}),s&&(0,n.jsx)("div",{className:"block-image__ai-overlay",children:s})]}),(i||N)&&(0,n.jsx)("figcaption",{id:w.figcaptionId,children:v(T,N)})]})})})})})})}}const CJ=Ke(vJ),xJ=(e,t,s,o,r)=>t?r:(0,n.jsx)(Oe,{animateBlockEntrance:e,initiallyVisible:s,isLearner:o,children:r});class bJ extends up.Component{renderCaptionDelegate;renderParagraphDelegate;constructor(t){super(t),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(t,s){return(0,n.jsx)(Ye,{className:"block-image__text",value:s})}renderCaption(t,s){return(0,n.jsx)(Ye,{className:"block-image__caption",value:s})}renderImage(t,s,o,r){const{blockId:a,editable:i,lessonId:c,renderCaption:d=this.renderCaptionDelegate,getL10nValue:l}=this.props,u=l(o.media),m=u?.image,p=u?.audio,g=m?.alt,C=vt(m),v=m?.dimensions,x=v?.width||v?.originalWidth,y=v?.height||v?.originalHeight,S=yc({caption:s,editable:i,id:t,getL10nValue:l}),{animateBlockEntrance:L,initiallyVisible:b,isLearner:T,labels:N,settings:{cornerRadius:k,zoomOnClick:E}}=this.props,I=U()("block-image__image",{"block-image__image--audio-overlay":!!p}),A=m?.link?l(m.link.destination):void 0,R=m?.link&&typeof A=="string"?{type:m.link.type,destination:A}:void 0;return(0,n.jsx)(Oe,{animateBlockEntrance:L,animateIn:r==="right"?"fadeInRight":"fadeInLeft",initiallyVisible:b,isLearner:T,children:(0,n.jsxs)(S.tagName,{"aria-labelledby":S.figcaptionId,className:"block-image__figure",role:S.role,children:[(0,n.jsxs)("div",{className:I,children:[(0,n.jsx)(Ka,{alt:g,cornerRadius:k,disableZoom:!E,height:y,l10nId:jt(o?.media),labels:N,link:R,maxHeight:900,src:C,width:x}),p&&hp("aside")&&(0,n.jsx)($t,{blockId:a,cornerRadius:k,index:`${a}-${t}-0`,isOverlayAudio:!0,item:o,labels:N,lessonId:c,media:o.media,mediaType:"audio"})]}),(i||s)&&(0,n.jsx)("figcaption",{id:S.figcaptionId,children:d(t,s)})]})})}render(){const{defaultBackgroundColor:t,items:s,renderParagraph:o=this.renderParagraphDelegate,settings:r,type:a}=this.props,{entranceAnimation:i,imagePosition:c,imageSize:d}=r,l=c==="right",u=U()(`block-image block-image--${a}`,{"block-image--small":d==="small","block-image--large":d==="large","block-image--reverse":l,"block-image--no-animation":!i}),m=s[0],{id:p,caption:g}=m,C="paragraph"in m?m.paragraph:void 0;return(0,n.jsx)(we,{className:u,defaultBackgroundColor:t,children:(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsxs)("div",{className:"block-image__row",children:[(0,n.jsx)("div",{className:"block-image__col",children:l?o(p,C):this.renderImage(p,g,m,"left")}),(0,n.jsx)("div",{className:"block-image__col",children:l?this.renderImage(p,g,m,"right"):o(p,C)})]})})})}}const yJ=Ke(bJ);class LJ extends up.Component{renderCaptionDelegate;renderOverlayDelegate;constructor(t){super(t),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(t,s){return(0,n.jsx)(Ye,{className:"block-image__caption",value:s})}renderOverlay(t,s){return(0,n.jsx)(Ye,{className:"block-image__paragraph",value:s})}renderOverlayCaption(t,s){const{animateBlockEntrance:o,initiallyVisible:r,isLearner:a,renderOverlay:i=this.renderOverlayDelegate}=this.props;return(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsx)("div",{className:"block-image__row",children:(0,n.jsx)("div",{className:"block-image__col",children:(0,n.jsx)(Oe,{animateBlockEntrance:o,animateIn:"fadeInUp",duration:1,initiallyVisible:r,isLearner:a,children:i(t,s)})})})})}render(){const{animateBlockEntrance:t,blockId:s,defaultBackgroundColor:o,editable:r,getL10nValue:a,initiallyVisible:i,isLearner:c,items:d,labels:l,lessonId:u,settings:m,type:p,renderCaption:g=this.renderCaptionDelegate}=this.props,{entranceAnimation:C,opacity:v,opacityColor:x}=m,y=H1(m?.backgroundColor,o),S=U()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!C,"block-image--dark":Lm(y)}),L={opacity:v||.6,backgroundColor:x||"transparent"},b=d[0],{id:T,caption:N}=b,k=a(b.media),E=k?.image,I=k?.audio,A=E?.key,R=vt(E),j=E?.dimensions,O=j?.width||j?.originalWidth,w=j?.height||j?.originalHeight,P=lr(E?.alt),M=p==="overlay",z=yc({caption:N,editable:r,id:T,isOverlayType:M,getL10nValue:a});return(0,n.jsxs)(we,{"aria-labelledby":z.figcaptionId,className:S,defaultBackgroundColor:o,role:z.role,tag:z.tagName,children:[xJ(t,M,i,c,(0,n.jsxs)("div",{className:"block-image__figure",children:[A&&(0,n.jsxs)("div",{className:"block-image__image","data-l10n-id":jt(b?.media),style:{backgroundImage:`url('${R}')`},children:[(0,n.jsx)(Ss,{alt:P,height:w,src:R,width:O}),(0,n.jsx)("div",{className:"block-image__overlay",style:L}),I&&hp(p)&&(0,n.jsx)($t,{blockId:s,index:`${s}-${T}-0`,isOverlayAudio:!0,item:b,labels:l,lessonId:u,media:b.media,mediaType:"audio"})]}),M?this.renderOverlayCaption(T,N):null]})),!M&&(r||N)&&(0,n.jsx)("figcaption",{className:"block-image__container",id:z.figcaptionId,children:g(T,N)})]})}}const mp=Ke(LJ),SJ=e=>(0,n.jsx)(mp,{type:"overlay",...e}),TJ=e=>(0,n.jsx)(mp,{type:"banner",...e});var NJ=f(80588);function T8(e){class t extends NJ.Component{static displayName=`withGalleryCaption(${e.displayName||e.name})`;renderCaptionDelegate;constructor(o){super(o),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption(o,r,a=!0){return(0,n.jsx)(Ye,{allowTabNavigation:a,className:"block-gallery__caption",value:r})}render(){const{renderCaption:o=this.renderCaptionDelegate}=this.props;return(0,n.jsx)(e,{...this.props,renderCaption:o})}}return t}var lu=f(80588);const N8=_("block-gallery-carousel");function kJ({blockId:e,animateBlockEntrance:t,defaultBackgroundColor:s,editable:o,initiallyVisible:r,isLearner:a,labels:i,lessonId:c,items:d,onStep:l,previewType:u,renderCaption:m,settings:p}){d||=[];const[g,C]=lu.useState(0),v=lu.useCallback(L=>{C(L),l?.(d[L])},[d,l]),x=u===rr.MOBILE_PORTRAIT||u===rr.MOBILE_LANDSCAPE,y=N8({noAnimation:!p?.entranceAnimation||Ns()}).toString(),S=m1();return(0,n.jsx)(we,{className:y,defaultBackgroundColor:s,children:(0,n.jsx)(Oe,{animateBlockEntrance:t,initiallyVisible:r,isLearner:a,children:(0,n.jsx)(iu,{className:N8("container").toString(),children:(0,n.jsx)(cu,{blockId:e,items:d,children:({carouselRef:L})=>(0,n.jsx)(au,{isRTL:S,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:v,ref:L,shouldMouseEmulateTouch:x,children:d.map((b,T)=>(0,n.jsx)(EJ,{activeIndex:g,blockId:e,editable:o,index:T,item:b,labels:i,lessonId:c,renderCaption:m,settings:p},b.id))})})})})})}const IJ=T8(kJ),pp=_("block-gallery-carousel-item");function EJ({activeIndex:e,blockId:t,editable:s,index:o,item:r,labels:a,lessonId:i,renderCaption:c,settings:d}){const[l,u]=lu.useState(!1),{image:m,audio:p}=Ie(r.media),g=Ie(m?.link?.destination),C=m?.dimensions,v=lu.useCallback(()=>{u(!0)},[]);return(0,n.jsxs)("figure",{className:pp(),children:[s&&!l&&(0,n.jsx)("div",{className:pp("loading"),children:"Loading image..."}),(0,n.jsxs)("div",{className:pp("image-container",{"audio-overlay":!!p}),children:[(0,n.jsx)(Ka,{alt:m?.alt,cornerRadius:d?.cornerRadius,disableZoom:!d?.zoomOnClick,height:C?.height||C?.originalHeight,l10nId:jt(r?.media),labels:a,link:m?.link&&typeof g=="string"?{type:m.link.type,destination:g}:void 0,maxHeight:900,onLoad:v,src:vt(m),width:C?.width||C?.originalWidth}),p&&(0,n.jsx)($t,{blockId:t,cornerRadius:d?.cornerRadius,index:`${t}-${r.id}-${o}`,isOverlayAudio:!0,item:r,labels:a,lessonId:i,media:r.media,mediaType:"audio",shouldPause:e!==o})]}),(s||r.caption)&&l&&(0,n.jsx)("figcaption",{children:c(r.id,r.caption)})]})}const jJ=({alt:e,cornerRadius:t,disableZoom:s,height:o,l10nId:r,labels:a,link:i,src:c,width:d})=>(0,n.jsx)("div",{className:"block-gallery__image",children:(0,n.jsx)(Ka,{alt:e,cornerRadius:t,disableZoom:s,height:o,l10nId:r,labels:a,link:i,maxHeight:900,src:c,width:d})}),wJ=e=>{switch(e){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}};function AJ(e){return(0,n.jsx)(IJ,{...e})}class RJ extends h.Component{static get defaultProps(){return{blockId:"",getL10nValue:()=>{},items:[],lessonId:"",width:2}}render(){const{animateBlockEntrance:t,defaultBackgroundColor:s,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:c,labels:d,renderCaption:l,settings:u,width:m}=this.props,{entranceAnimation:p,cornerRadius:g,zoomOnClick:C}=u,v=U()(`block-gallery block-gallery--${wJ(m)}`,{"block-gallery--no-animation":!p||Ns()});return(0,n.jsx)(we,{className:v,defaultBackgroundColor:s,children:(0,n.jsx)("div",{className:"block-gallery__container",children:(0,n.jsx)("div",{className:"block-gallery__row",children:(0,n.jsx)(Oe,{animateBlockEntrance:t,initiallyVisible:a,isLearner:i,siblingDelay:.25,children:c.map(x=>{const{id:y}=x,S=x.caption,L=r(x.media)?.image,b=L?.alt,T=L?.key,N=L?.dimensions,k=N?.width||N?.originalWidth,E=N?.height||N?.originalHeight,I=vt(L),A=r(L?.link?.destination),R=yc({caption:S,editable:o,id:y,getL10nValue:this.props.getL10nValue});return(0,n.jsx)("div",{className:"block-gallery__col",children:(0,n.jsxs)(R.tagName,{"aria-labelledby":R.figcaptionId,className:"block-gallery__figure",role:R.role,children:[T&&(0,n.jsx)(jJ,{alt:b,cornerRadius:g,disableZoom:!C,height:E,l10nId:jt(x?.media),labels:d,link:L?.link&&typeof A=="string"?{type:L.link.type,destination:A}:void 0,src:I,width:k}),(o||S)&&(0,n.jsx)("figcaption",{id:R.figcaptionId,children:l(y,S)})]})},y)})})})})})}}const fp=T8(Ke(RJ)),gp=_("block-divider"),vp=({isLearner:e,labels:{numberedDividerGroup:t},number:s,settings:o,type:r="divider"})=>{const{entranceAnimation:a}=o,i=r==="numbered",d=gp({authoring:!e,spacing:r==="spacing",numbered:i,"no-animation":!a}).toString(),l=i?(0,n.jsxs)("div",{className:gp("wrap__number"),children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:t}),s]}):null;return(0,n.jsx)(we,{className:d,children:(0,n.jsx)("div",{className:gp("wrap",{authoring:!e&&!i}),children:l})})},PJ=vp,MJ=e=>(0,n.jsx)(vp,{type:"numbered",...e}),OJ=e=>(0,n.jsx)(vp,{type:"spacing",...e});var BJ=f(4797),DJ=f.n(BJ),HJ=f(56766),k8=f.n(HJ),FJ=f(90755),du=f.n(FJ),VJ=f(85692),uu=f.n(VJ),hu=f(80588);const zJ=30,I8=F1("blockSettings");class $J extends hu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],lessonId:"",onStep:()=>{}};render(){const{animateBlockEntrance:t,blockId:s,editable:o,initiallyVisible:r,isLearner:a,items:i,labels:c,lessonId:d,onStep:l,settings:u,enableVideoPlaybackSpeed:m}=this.props,{entranceAnimation:p,accordionBehavior:g="keepOpen"}=u,C=U()("blocks-accordion",{"blocks-accordion--no-animation":!p});return(0,n.jsx)(we,{className:C,"data-block-id":s,children:(0,n.jsx)(Oe,{animateBlockEntrance:t,duration:.75,initiallyVisible:r,isLearner:a,children:(0,n.jsx)("div",{className:"blocks-accordion__container",children:(0,n.jsx)("div",{className:"blocks-accordion__row",children:(0,n.jsx)("div",{className:"blocks-accordion__col",children:(0,n.jsx)(ZJ,{blockId:s,editable:o,enableVideoPlaybackSpeed:m,items:i,keepOpen:g==="keepOpen",labels:c,lessonId:d,onStep:l,settings:u})})})})})})}}const _J={isOpen:!1,isActive:!1},UJ=e=>(t,{id:s})=>Object.assign({},t,{[s]:e[s]||_J}),E8=(e,t)=>t.reduce(UJ(e),{}),GJ=(e,t)=>(s,o)=>{const r=e==o,a=r?!s.isOpen:s.isOpen,i=r&&!s.isOpen;return{isOpen:t?a:i,isActive:r}},WJ=e=>(t,s)=>{const o=s==e;return{isOpen:o,isActive:o}},KJ=e=>(t,s)=>({isOpen:s==e,isActive:t.isActive});class QJ extends hu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],keepOpen:!1,lessonId:"",onStep:()=>{}};constructor(t){super(t);const{items:s}=this.props;this.state={itemStatusMap:E8({},s)},this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){window.addEventListener(We,this.handleNavtoTab)}componentWillUnmount(){window.removeEventListener(We,this.handleNavtoTab)}handleNavtoTab(t){const s=t.detail.path[t.detail.path.indexOf("items")+1]?.id,o=t.detail.path[t.detail.path.lastIndexOf("items")+1]?.id;if(s===this.props.blockId){const r=this.props.items.findIndex(({id:u})=>u===o),{items:a,onStep:i}=this.props,{itemStatusMap:c}=this.state,d=a[r].id,l=WJ(d);this.setState({itemStatusMap:gs()(l,c)}),open&&i(a[r])}}UNSAFE_componentWillReceiveProps(t){const s=t.items,o=Qt()(s)!==Qt()(this.props.items);!t.keepOpen&&this.props.keepOpen?this.updateMapForOneAtATimePreference():o&&this.rebuildItemStatusMap(s)}updateMapForOneAtATimePreference(){const{itemStatusMap:t}=this.state,{items:s}=this.props,o=DJ()(a=>t[a.id].isOpen,s);if(!o)return;const r=KJ(o.id);this.setState({itemStatusMap:gs()(r,t)})}rebuildItemStatusMap(t){const s=this.state.itemStatusMap;this.setState({itemStatusMap:E8(s,t)})}handleItemClick(t){const{items:s,keepOpen:o,onStep:r}=this.props,{itemStatusMap:a}=this.state,i=s[t].id,c=GJ(i,o);this.setState({itemStatusMap:gs()(c,a)}),open&&r(s[t])}render(){const{items:t,settings:s,editable:o,labels:r,lessonId:a,blockId:i,enableVideoPlaybackSpeed:c}=this.props,{itemStatusMap:d}=this.state,{zoomOnClick:l}=s,u=Object.values(d)?.find(m=>m.isOpen)?"open":"closed";return(0,n.jsx)("div",{className:"blocks-accordion__wrapper","data-accordion-status":u,children:t.map((m,p)=>(0,n.jsx)(XJ,{blockId:i,disableZoom:!l,editable:o,focused:d[m.id].isActive,index:p,item:{...m,enableVideoPlaybackSpeed:c},labels:r,lessonId:a,onClick:this.handleItemClick.bind(this,p),open:d[m.id].isOpen},m.id))})}}const ZJ=I8(QJ);class YJ extends hu.Component{static get defaultProps(){return{editable:!1,getL10nValue:()=>{},onClick:()=>{},lessonId:"",blockId:"",open:null}}id;content;constructor(t){super(t),this.id=du()(),this.toggle=this.toggle.bind(this),this.renderDescription=this.renderDescription.bind(this),this.renderTitle=this.renderTitle.bind(this)}componentDidUpdate(t){if(!this.props.open)return;const s=this.content;if(s&&(s.classList.add("blocks-accordion__content--visible"),!t.open&&this.props.open)){const o=s.parentElement,r=o?.getBoundingClientRect()?.top,a=r!=null&&r>0&&r<window.innerHeight,i=Ns()?"instant":"smooth";a||o.scrollIntoView({behavior:i,block:"start"})}}toggle(t){const{blockId:s,index:o}=this.props,r=de.playerId,a=new RegExp(`-${o}(?:-.+)?$`);open&&r&&r.includes(s.toString())&&a.test(r)&&de.pause(),this.props.onClick(),t.preventDefault()}renderTitle(t){const{title:s}=this.props.item;return(0,n.jsx)(Le,{className:"blocks-accordion__title",id:t,value:s})}renderDescription(t){const{description:s=""}=this.props.item;return(0,n.jsx)(Ye,{className:"blocks-accordion__description",value:s||""},t)}render(){const{blockId:t,blockSettings:s,editable:o,disableZoom:r,getL10nValue:a,index:i,item:c,focused:d,labels:l,lessonId:u,open:m,renderDescription:p=this.renderDescription,renderTitle:g=this.renderTitle}=this.props,{settings:C={},enableVideoPlaybackSpeed:v}=c,x=a(c.media)??{},y=fn(x,s.audioPosition),S=Object.assign({},C,{disableZoom:r,fullEmbed:!0}),L=s?.backgroundType===q.ACCENT||s?.backgroundType===q.IMAGE,b=U()("blocks-accordion__item",{"blocks-accordion__item--closed":!m}),T=U()("blocks-accordion__header",{"blocks-accordion__header--editing":o,"brand--border":m&&d&&!L}),N=U()("blocks-accordion__content",{"blocks-accordion__content--will-enter":m,"brand--border":m&&d&&!L}),k=`title-${this.id}`,E=`panel-${this.id}`,I=s?.headingLevel,A=I?`h${I}`:"h2";let R=(0,n.jsxs)("button",{"aria-controls":E,"aria-expanded":m,className:T,onClick:this.toggle,onKeyDown:!o&&c5(this.toggle)||void 0,type:"button",children:[g(k),(0,n.jsx)("span",{className:"blocks-accordion__toggler-wrap",children:(0,n.jsx)(ie,{className:"blocks-accordion__toggler",name:m?"minus":"plus"})})]});return o&&(R=(0,n.jsxs)("div",{className:T,children:[g(k),(0,n.jsx)("button",{"aria-controls":E,"aria-expanded":m,"aria-label":m?"Close":"Open",className:"blocks-accordion__toggler-wrap",onClick:this.toggle,type:"button",children:(0,n.jsx)(ie,{className:"blocks-accordion__toggler",name:m?"minus":"plus"})})]})),(0,n.jsxs)(Ot,{className:b,tag:"section",children:[(0,n.jsx)("div",{className:"blocks-accordion__header-wrap",children:(0,n.jsx)(A,{children:R})}),(0,n.jsx)("section",{"aria-labelledby":k,className:N,id:E,ref:j=>{this.content=j},children:y.renderOrder.map((j,O)=>{if(j==="text")return p(`text-${O}`);const w={blockId:t,hasPadding:!1,imageMaxHeight:1e3,item:c,labels:l,lessonId:u,enableVideoPlaybackSpeed:v,opts:S,shouldPause:!m},P=Cp(x),M=P==="image-with-audio",z=M?"left":"center",F={audio:{media:y.audioOnlyMedia||x,isOverlayAudio:!1,index:`${t}-${i}-audio`,className:"blocks-accordion__audio"},image:{media:y.imageOnlyMedia||x,isOverlayAudio:!1,index:`${t}-${i}-image`,className:U()(`blocks-accordion__${P}`,{[`blocks-accordion__${P}--${z}`]:M})},video:{media:y.videoOnlyMedia||x,isOverlayAudio:!1,index:`${t}-${i}-video`,className:U()(`blocks-accordion__${P}`,{[`blocks-accordion__${P}--${z}`]:M})},embed:{media:y.embedOnlyMedia||x,isOverlayAudio:!1,index:`${t}-${i}-embed`,className:U()(`blocks-accordion__${P}`,{[`blocks-accordion__${P}--${z}`]:M})},overlay:{media:x,isOverlayAudio:!0,index:`${t}-${i}-overlay`,className:U()(`blocks-accordion__${P}`,{[`blocks-accordion__${P}--${z}`]:M})}}[j];if(!F)return null;const{className:V,...K}=F;return(0,n.jsx)("div",{className:U()(V,{"audio-on-top":this.props.blockSettings.audioPosition==="top"}),children:(0,n.jsx)("div",{className:"blocks-accordion__figure",children:(0,n.jsx)($t,{...w,...K})})},`${j}-${O}`)})})]})}getMediaContainerClasses(t,s){const o=this.props.getL10nValue(this.props.item.media)??{},r=Cp(o),a=r==="image-with-audio",i=a&&!Array.isArray(o)?o?.image?.align:"left";return U()("blocks-accordion__media",`blocks-accordion__${r}`,{[`blocks-accordion__${r}--${i}`]:a,"blocks-accordion__media-container":t,"blocks-accordion__media-container--audio-overlay":s})}}const XJ=I8(Ke(e=>(0,n.jsx)(YJ,{...e}))),Cp=e=>{const{image:t,embed:s,video:o,audio:r}=e;return t&&!r?"image":s&&!r?"embed":o?"video":r&&!t&&!s?"audio":t&&r?"image-with-audio":r&&s?"audio-and-embed":"image"};class JJ extends hu.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(t){super(t),this.renderDescription=this.renderDescription.bind(this);const s=this.props.activeIndex;this.state={activeIndex:s,activeTouch:!1,activeMouse:!1},this.tabs=[],this.id=du()(),this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){this.handleControls(),window.addEventListener("resize",this.tabResize=uu()(this.handleControls.bind(this),100)),window.addEventListener(We,this.handleNavtoTab),this.tabsHeaderEl?.addEventListener("scroll",this.tabScroll=uu()(this.handleControls.bind(this),50))}handleNavtoTab(t){const s=t.detail.path[t.detail.path.indexOf("items")+1]?.id,o=t.detail.path[t.detail.path.lastIndexOf("items")+1]?.id;s===this.props.blockId&&(this.tabsHeaderEl.scrollIntoView({behavior:"smooth",block:"start"}),this.setState({activeIndex:this.props.items.findIndex(({id:r})=>r===o)},()=>{qm(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(We,this.handleNavtoTab)}setActive(t){this.setState({activeIndex:t});const{blockId:s}=this.props,o=de.playerId;this.state.activeIndex!=t&&o&&o.includes(s.toString())&&de.pause(),this.props.onStep?.(this.props.items[t])}handleControls(){const{isRTL:t}=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)*(t?-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(t){const{isRTL:s}=this.props,o=this.tabsHeaderEl.offsetWidth,r=this.tabsHeaderEl.scrollLeft,i=(t==="next"?s?k8():Um():s?Um():k8())(r,o*.8);this.tabsHeaderEl.scrollTo({left:i,behavior:"smooth"})}arrowPrevInset(t){const s=this.arrowPrevEl.getBoundingClientRect(),o=s.right-t,r=s.left-t;return o+r}focusTab(t){t.currentTarget?.scrollIntoView({behavior:"smooth",block:"nearest"})}handleTabKeyDown(t,s){const{isRTL:o}=this.props;let r=!1,a;so(s)?(r=!0,a=o?t+1>this.tabs.length-1?0:t+1:t-1>=0?t-1:this.tabs.length-1):no(s)&&(r=!0,a=o?t-1>=0?t-1:this.tabs.length-1:t+1>this.tabs.length-1?0:t+1),r&&s.preventDefault(),a!=null&&(this.tabs[a]?.focus(),this.setActive(a))}renderHeader(t,s){const{activeIndex:o,activeTouch:r,activeMouse:a}=this.state,i=this.tabsHeaderEl&&this.tabsHeaderEl.scrollWidth>this.tabsHeaderEl.clientWidth,c=U()("blocks-tabs__header-wrap",{touch:r,mouse:a&&i});return(0,n.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),onTouchStart:this.handleTouchStart.bind(this),children:[(0,n.jsx)("div",{className:"blocks-tabs__header",ref:d=>{this.tabsHeaderEl=d},role:OZ,children:t.map(({title:d},l)=>{const u=t.length===1||l===o,m=t.length>1&&l+1===o,p=t.length>1&&l-1===o,g=U()("blocks-tabs__header-item",{"brand--color":u&&!s,"blocks-tabs__header-item--active":u,"blocks-tabs__header-item--before-active":m,"blocks-tabs__header-item--after-active":p}),C=`tab-${this.id}-${l}`,v=`tabpanel-${this.id}-${l}`;return(0,n.jsx)("button",{"aria-controls":v,"aria-selected":u,className:g,id:C,onClick:this.setActive.bind(this,l),onFocus:this.focusTab.bind(this),onKeyDown:this.handleTabKeyDown.bind(this,l),ref:x=>{this.tabs[l]=x},role:DZ,tabIndex:u?void 0:-1,type:"button",children:(0,n.jsx)(Le,{value:d})},C)})}),(0,n.jsxs)("div",{className:"blocks-tabs__controls",ref:d=>{this.tabControls=d},children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--prev brand--background",onClick:this.scrollTabs.bind(this,"previous"),ref:d=>{this.arrowPrevEl=d},children:(0,n.jsx)(ie,{className:"blocks-tabs__arrow-icon",name:"chevron-right-solid"})}),(0,n.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--next brand--background",onClick:this.scrollTabs.bind(this,"next"),ref:d=>{this.arrowNextEl=d},children:(0,n.jsx)(ie,{className:"blocks-tabs__arrow-icon blocks-tabs__arrow-icon--next",name:"chevron-right-solid"})})]})]})}renderDescription({description:t}){return(0,n.jsx)(Ye,{className:"blocks-tabs__description",value:t})}renderItem(t,s,o){const{blockId:r,getL10nValue:a,labels:i,lessonId:c,renderDescription:d=this.renderDescription}=this.props,{activeIndex:l}=this.state,u=l===s,{settings:m={},enableVideoPlaybackSpeed:p}=t,g=a(t.media)??{},C=fn(g,this.props.settings.audioPosition,!1),v=U()("blocks-tabs__content-item",{"blocks-tabs__content-item--active":u}),x=Object.assign({},m,{disableZoom:o,fullEmbed:!0}),y=`tabpanel-${this.id}-${s}`,S=`tab-${this.id}-${s}`,L=Cp(g),b=L==="image-with-audio",T=L==="audio-and-embed",N=b?g?.image?.align:"left",k=T?"embed-border":void 0;return(0,n.jsx)("div",{"aria-labelledby":S,className:v,id:y,role:BZ,tabIndex:u?0:void 0,children:C.renderOrder.map((E,I)=>{if(E==="text")return(0,n.jsx)("div",{className:"blocks-tabs__description",children:d(t)},`text-${I}`);const A={blockId:r,embedClass:k,hasPadding:!1,imageMaxHeight:1e3,item:t,labels:i,lessonId:c,enableVideoPlaybackSpeed:p,opts:x,shouldPause:!u},j={audio:{media:C.audioOnlyMedia||g,isOverlayAudio:!1,index:`${r}-${s}-audio`,className:"blocks-tabs__audio"},image:{media:C.imageOnlyMedia||g,isOverlayAudio:!1,index:`${r}-${s}-image`,className:U()(`blocks-tabs__${L}`,{[`blocks-tabs__${L}--${N}`]:b})},video:{media:C.videoOnlyMedia||g,isOverlayAudio:!1,index:`${r}-${s}-video`,className:U()(`blocks-tabs__${L}`,{[`blocks-tabs__${L}--${N}`]:b})},embed:{media:C.embedOnlyMedia||g,isOverlayAudio:!1,index:`${r}-${s}-embed`,className:U()(`blocks-tabs__${L}`,{[`blocks-tabs__${L}--${N}`]:b})},overlay:{media:g,isOverlayAudio:!0,index:`${r}-${s}-overlay`,className:U()(`blocks-tabs__${L}`,{[`blocks-tabs__${L}--${N}`]:b})}}[E];if(!j)return null;const{className:O,...w}=j;return(0,n.jsx)("div",{className:U()(O,{"audio-on-top":this.props.settings.audioPosition==="top"}),children:(0,n.jsx)("div",{className:"blocks-tabs__figure",children:(0,n.jsx)($t,{...A,...w})})},`${E}-${I}`)})},y)}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,items:r,settings:a,enableVideoPlaybackSpeed:i}=this.props,{backgroundType:c,cardMode:d,entranceAnimation:l,zoomOnClick:u}=a,m=U()("blocks-tabs",{"blocks-tabs--no-animation":!l}),p=r.length>0?r.slice(0,zJ):[],g=d===Fs.TRANSPARENT&&(c===q.ACCENT||c===q.IMAGE),C=U()("blocks-tabs__container",{"blocks-tabs--single":p.length===1});return(0,n.jsx)(we,{className:m,children:(0,n.jsx)(Oe,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{className:C,children:(0,n.jsx)("div",{className:"blocks-tabs__row",children:(0,n.jsx)("div",{className:"blocks-tabs__col",children:(0,n.jsx)("div",{className:"blocks-tabs__wrapper",ref:v=>{this.container=v},children:(0,n.jsxs)(Ot,{children:[this.renderHeader(p,g),(0,n.jsx)("div",{className:"blocks-tabs__content",children:p.map((v,x)=>this.renderItem({...v,enableVideoPlaybackSpeed:i},x,!u))})]})})})})})})})}}const qJ=cp(Ke(e=>(0,n.jsx)(JJ,{...e}))),eq=Fe()(null,["payload","result"]),tq=e=>{if(e.meta?.thumbnail)return`${e.contentPrefix}/${e.meta.thumbnail}`},sq=e=>e.meta?.version,j8=e=>e.src??null,nq=e=>e.processing,oq=Ft()(["payload","result","completion"]),rq=Fe()(!1,["payload","result","score"]),aq=dd()((e,t)=>{if(!t)return!1;const{majorLimit:s,minorLimit:o}=e,[r,a]=t.split("."),i=parseInt(r)===s&&Number(a)>=o;return Number(r)>s||i}),iq={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},cq=e=>{const t=rs()(e.split("-"));return iq[t]},lq=aq({majorLimit:3,minorLimit:13}),dq=(e,t,s,o)=>{const r=t&&cq(s),a=r?`${e}${r}`:`${e}?rise=true`;if(o){const i=a.includes("?")?"&":"?";return`${a}${i}locale=${o}`}return a},w8="about:blank",uq="https://example.invalid",A8=new Set(["http:","https:"]),R8=e=>{if(e)try{const t=new URL(e);return A8.has(t.protocol)?t.href:void 0}catch{return}},hq=()=>R8(ye("CDN_USER_CONTENT_URI"))??R8(window.location.origin)??uq,P8=e=>{try{return A8.has(new URL(e,hq()).protocol)}catch{return!1}},M8=e=>{const t=us(e);return typeof t=="string"?t:""},mq=e=>{const t=M8(e);if(!t||t===w8||!P8(t))return;const s=M8(mt(t));return s&&s!==w8&&P8(s)?s:void 0};var pq=f(80588);class fq extends pq.Component{constructor(t){super(t),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:t,items:s,onStep:o}=this.props,r=rs()(s),a=t(r?.media)?.storyline??{},i=sq(a);lq(i)||o(r)}canFullscreen(t){const{blockId:s,hasManySlBlocks:o}=this.props,{windowName:r}=t;return s===r||!o()}handleMessages(t){const{data:s}=t,{type:o}=s,r={"fullscreen:enter":this.handleFullscreenEnter,"fullscreen:exit":this.handleFullscreenExit,"course:update":this.handleCourseUpdate}[o];r&&r(s)}handleCourseUpdate(t){const{items:s,onFinishStoryline:o,onStep:r,blockId:a}=this.props,i=rs()(s),{windowName:c}=t;if(a===c&&oq(t)){const{score:d,success:l}=eq(t);if(rq(t)){const u=d.scaled*100;o?.(a,l,!0,u)}else o?.(a,!0,!1);r(i)}}handleFullscreenEnter(t){const{menuOpen:s,handleStorylineFullscreen:o}=this.props;this.canFullscreen(t)&&(s&&o(!0),this.setState({fullscreen:!0,reopenMenu:s}))}handleFullscreenExit(t){const{handleStorylineFullscreen:s}=this.props,{reopenMenu:o}=this.state;this.canFullscreen(t)&&(o&&s(!1),this.setState({fullscreen:!1,reopenMenu:!1}))}render(){const{animateBlockEntrance:t,getL10nValue:s,initiallyVisible:o,isLesson:r,isLearner:a,isOnlyBlockInStep:i,items:c,labels:{a11yBlockStoryline:d},settings:l,takingSnapshot:u}=this.props,m=rs()(c),p=s(m?.media)?.storyline??{},{mediaWidth:g="0"}=l,C=i?{}:{display:r&&!j8(p)?"none":"block"},v=U()("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":u});return(0,n.jsx)(we,{className:"blocks-storyline",style:C,children:(0,n.jsx)(Oe,{animateBlockEntrance:t,initiallyVisible:o,isLearner:a,children:(0,n.jsx)("div",{"aria-label":d,className:v,role:"group",children:u?this.renderThumbnail(p):this.renderStorylineBlock(p)})})})}renderStorylineBlock(t){return nq(t)?this.renderProcessing():j8(t)?this.renderItem(t):this.renderEmpty()}renderThumbnail(t){const s=tq(t),o=`${ye("CDN_USER_CONTENT_URI")}/${s}`;return(0,n.jsx)("img",{alt:"Thumbnail",src:o})}renderEmpty(){const{renderEmpty:t}=this.props;return typeof t=="function"?t():null}renderItem(t){const{fullscreen:s}=this.state,{blockId:o,currentLocale:r,isLesson:a,previewType:i,settings:c}=this.props,{cornerRadius:d}=c,{src:l,meta:u,title:m}=t,{player:p}=u,g=dq(l,a,i,r),C=mq(g),x={paddingBottom:`${p.height/p.width*100}%`,...d!=null&&{"--corner-radius":`${Number(d)}px`}},y=U()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":s});return(0,n.jsx)("div",{className:"blocks-storyline__item",style:x,children:(0,n.jsx)("iframe",{allowFullScreen:!0,allowtransparency:"true",className:y,loading:"lazy",name:o.toString(),ref:S=>{this.iframe=S},src:C,title:m})})}renderProcessing(){const{renderProcessing:t}=this.props;return typeof t=="function"?t():null}}const gq=_E(Ke(fq));var vq=f(80252),xp=f.n(vq);const O8=":focus{outline: none}",Cq=":focus:not(:focus-visible){outline: none}",B8="focus-ring-style",bp=()=>document.getElementById(B8)||xq(),xq=()=>{const e=document.createElement("style");return e.id=B8,document.head.appendChild(e),e},yp=0,mu=-1,bq=e=>{const t=bp();document.addEventListener("mousedown",()=>{setTimeout(()=>{t.innerHTML=O8},0),e?.(!1)}),window.addEventListener("keydown",s=>{yq(s,e)})},yq=(e,t)=>{const s=e.target,o=bp();(ud(e)||Xi(e)&&!s.classList.contains("ignore-prefers"))&&(o.innerHTML="",t?.(!0))},D8=({focusVisible:e}={})=>bp().innerHTML=e?Cq:O8,Lq=e=>e?yp:mu,H8=({list:e,index:t})=>{t>=0&&t<Qt()(e)&&e[t].focus()},Sq=({list:e,currentIndex:t})=>{const s=la()(t||0),o=s<Qt()(e)?s:0;return H8({list:e,index:o}),o},Tq=({list:e,currentIndex:t})=>{const s=xp()(t||Qt()(e));return H8({list:e,index:s}),s};var F8=f(80588);const pu=_("blocks-button"),V8=gN,Nq=({description:e})=>(0,n.jsx)(Le,{className:pu("description"),value:e}),kq=({color:e,destination:t,editBlock:s,handleNavigate:o,isEditable:r,label:a,type:i})=>{const c=r3(),d=Me()?.externalLinksDisabled,l=Me()?.theme,u=Ii(),{mode:m}=(0,ge.g)(),p=Zt(),g=as(),C=Ie(t),v=(0,wr.htmlDecode)(ws(Ie(a))),x=i==="email",y=i==="exit-course",S=i==="lesson",L=i==="relative-url",b=pu("button"),T=!e||e===""||e===u,N=e??u,k={},E=a3(u),I=T&&l?.accentContrast===pe.AUTO?pe.AUTO:E,A=p?.buttonColorContrast??I,R=p?.buttonRadius??null,j=p?.buttonWidth??null,O=At({backgroundColor:N,contrast:A});Object.assign(k,{...!T&&{"--color-button-bg":N},...!T&&{"--color-button-text":O},...!T&&{"--color-button-border":"transparent"},...R!=null&&{"--radius-button":`${Number(R)}px`},...j!=null&&{"--width-button":`${Number(j)}rem`}});const w=d&&zs(C),{handleMouseEnter:P,handleMouseLeave:M,handleFocus:z,handleBlur:$}=gd(),F=F8.useId(),V=(0,h.useCallback)(()=>{if(r)s();else{if(w)return;if(y)return Ff()}},[s,w,r,y]),K=(0,h.useCallback)(()=>{o(C)},[C,o]);if(r||w||y){const Z=(0,n.jsx)("button",{"aria-label":v,className:b,id:w?F:void 0,onBlur:w?()=>$(F):void 0,onClick:V,onFocus:w?()=>z(F):void 0,onKeyDown:c5(V),onMouseEnter:w?()=>P(F):void 0,onMouseLeave:w?()=>M(F):void 0,style:k,tabIndex:yp,type:"button",children:v});return w?(0,n.jsxs)(n.Fragment,{children:[Z,(0,n.jsx)(vd,{anchorId:F})]}):Z}else if(S){const Z=m?`/${m}`:"",X=`/lessons/${C}${Z}`,te=C===""?"#":X;return(0,n.jsx)(cs,{"aria-label":v,className:b,onClick:K,style:k,to:te,children:v})}else{const Z=L?C:us(C),X=x?`mailto:${C}?subject=${c}`:Z,te=oo.isIphoneSafari?"_top":"_self",W=x?te:"_blank",D=W==="_blank",H=D?"noopener noreferrer nofollow":void 0,B=g?.a11yNoticeLinkNewTab||"(opens in a new tab)",G=D?`${v} ${B}`:v;return(0,n.jsx)("a",{"aria-label":G,className:b,href:X,rel:H,style:k,tabIndex:yp,target:W,children:v})}},z8=e=>{const{animateBlockEntrance:t,editable:s,editBlock:o=()=>{},handleNavigate:r,initiallyVisible:a,isLearner:i,items:c=[],renderDescription:d=Nq,settings:l}=e,{buttonAlignment:u=Eg,buttonColor:m,buttonShowDescription:p=!0,buttonStack:g,entranceAnimation:C}=l,v=pu(null,{"no-animation":!C,description:p==!0,center:u==="center",left:u==="left",right:u==="right",rounded:V8==="rounded"}),x=c?.map(({id:y,description:S,...L})=>{const b=(0,n.jsx)(kq,{...L,color:m,editBlock:o,handleNavigate:r,isEditable:s}),T=p&&d({id:y,description:S});return(0,n.jsx)("section",{className:pu("container"),children:u==="left"&&p?(0,n.jsxs)(n.Fragment,{children:[b,T]}):(0,n.jsxs)(n.Fragment,{children:[T,b]})},y)})??null;if(g){const{paddingBottom:y,paddingTop:S}=l,L={...S!=null&&{paddingTop:`${Number(S)}rem`},...y!=null&&{paddingBottom:`${Number(y)}rem`}};return(0,n.jsx)("div",{className:v.toString(),style:L,children:x})}return(0,n.jsx)(we,{className:v.toString(),children:(0,n.jsx)(Oe,{animateBlockEntrance:t,animateIn:"fadeIn",initiallyVisible:a,isLearner:i,children:(0,n.jsx)("div",{className:"blocks-button",children:x})})})},Iq=z8;class Eq extends F8.Component{renderButtonDelegate;constructor(t){super(t),this.renderButtonDelegate=this.renderButton.bind(this)}static get defaultProps(){return{items:[],lessonId:"",blockId:"",editBlock:()=>{}}}renderButton(t,s){const{blockId:o,editable:r,editBlock:a,handleNavigate:i,isLearner:c,lessonId:d,initiallyVisible:l}=this.props;return(0,n.jsx)(z8,{animateBlockEntrance:!1,blockId:o,editable:r,editBlock:a,handleNavigate:i,initiallyVisible:l,isLearner:c,items:[t],lessonId:d,settings:s,type:"right"})}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,items:r,settings:a,renderButton:i=this.renderButtonDelegate}=this.props,{entranceAnimation:c,buttonShowDescription:d=!0,buttonAlignment:l=Eg,buttonSpacing:u=3}=a,m=U()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!c,"blocks-button--description":d==!0,"blocks-button--center":l==="center","blocks-button--left":l==="left","blocks-button--right":l==="right","blocks-button--rounded":V8==="rounded"});return(0,n.jsx)(we,{className:m,children:(0,n.jsx)(Oe,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:r.map((p,g)=>{const C=g===0,v={buttonColor:a.buttonColor||this.props.color,buttonStyle:a.buttonStyle,buttonStack:!0,buttonShowDescription:d,buttonAlignment:l,...C?{}:{paddingTop:u}};return(0,n.jsx)(h.Fragment,{children:i(p,v)},p.id)})})})}}var jq=f(55817),wq=f.n(jq);const fu=_("block-video");function Aq({item:e}){const t=is(),{media:s}=e,o=t(s)??{},{customVideo:r={},tmp:a={},video:i={}}=o,c="poster"in i?i:{...i,...r},d=a.video&&"poster"in a.video?a.video:void 0,{poster:l}=ui()?c:d||c,u=l?mt(l):void 0;return(0,n.jsxs)("div",{className:fu("poster-container"),children:[(0,n.jsx)(Ss,{alt:"Video Poster",className:fu("poster"),src:u}),(0,n.jsx)("div",{className:fu("play-overlay"),children:(0,n.jsxs)("svg",{className:fu("play-icon"),fill:"currentColor",height:"80",viewBox:"0 0 24 24",width:"80",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",fill:"rgba(0,0,0,0.6)",r:"12"}),(0,n.jsx)("polygon",{fill:"white",points:"10,8 10,16 16,12"})]})})]})}const $8=_("block-video");function Rq({mediaWidth:e}){const t=$8("item",{small:e==="0",medium:e==="1",full:e==="2"});return(0,n.jsx)("div",{className:t,children:(0,n.jsx)("div",{className:$8("placeholder")})})}const Pq=en()("partner-content-block-card__"),_8=e=>{const{backgroundColor:t,blockId:s,partnerContent:o}=e,r=Me(),{id:a,tenantId:i}=r??{},{data:c,type:d}=o,{authors:l,bookImage:u,bookTitle:m,buyLink:p,internalId:g,nbicLink:C}=c,v={blockId:s,courseId:a,partnerContentId:g,tenantId:i,contentSubtype:d};return(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"More Info"}),(0,n.jsxs)("ol",{className:"partner-content-block-card",role:"list",children:[(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(fC,{authors:l,backgroundColor:t,block:!0,bookImage:u,bookTitle:m,buyLink:p,trackingInfo:v})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)("div",{className:Pq("divider")})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(gC,{backgroundColor:t,block:!0,link:C,trackingInfo:v})})]})]})};var Mq=f(80588);const Lp=_("block-video");function Oq({audioVideoPlayhead:e,backgroundColor:t,blockId:s,blockPartnerContent:o,blockPartnerContentExists:r,captions:a,cornerRadius:i,currentLocale:c,dataL10nId:d,enableVideoPlaybackSpeed:l,forwardSeekRestricted:u,id:m,isLoaded:p,item:g,lessonId:C,loadMedia:v,media:x,mediaWidth:y,onLoad:S,onProgressChanged:L,poster:b,recordMediaPlayheadPosition:T,renderCaption:N,subtitle:k,type:E,videoKey:I,videoSrc:A}){const R=Lp("item",{small:y==="0",medium:y==="1",full:y==="2"}),j=Mq.useCallback(O=>{const w=Lp("caption",{visible:p}).toString();return(0,n.jsx)(Ye,{className:w,value:O.caption})},[p]);return(0,n.jsxs)("div",{className:R,children:[(0,n.jsxs)("figure",{"data-l10n-id":d,children:[v&&(0,n.jsx)(rp,{audioVideoPlayhead:e,canAdjustPlaybackSpeed:l,canRestrictSeek:u,captions:a,cornerRadius:i,id:`${C}-${s}-${m}-${c}`,media:x,onLoad:S,poster:b,progressChanged:L,recordMediaPlayheadPosition:T,src:A,subtitle:k,type:I?"video":E},`${C}-${s}-${m}-${c}-${b||""}`),p&&(0,n.jsx)("figcaption",{className:Lp("wrapper"),children:(N??j)(g)})]}),r&&(0,n.jsx)(_8,{backgroundColor:t,blockId:s,partnerContent:o})]})}const Sp=e=>e.toString().padStart(2,"0");function U8(e){const t=Math.floor(e),s=Math.floor(t/3600),o=Math.floor(t%3600/60),r=t%60;return s>0?`${s}:${Sp(o)}:${Sp(r)}`:`${o}:${Sp(r)}`}function pve(e=[]){return e.map(({time:t,title:s})=>`${U8(t)} ${s}`).join(`
`)}const Bq=e=>{const[t,s,o]=e.split(":").reverse();return parseInt(t,10)+parseInt(s,10)*60+parseInt(o||"0",10)*3600},Dq=/^(\d*:)?\d{1,2}:\d{2}$/,fve=(e,t)=>{const s=e.split(`
`).filter(r=>r.trim()!==""),o=[];for(const r of s){const[a,...i]=r.split(" ");if(!Dq.test(a))throw new Error("Chapters must use the format M:SS or H:MM:SS. Chapters will not display.");o.push({time:Bq(a),title:i.join(" ")})}if(o.length>0&&o[0].time!==0)throw new Error("Chapters must start at 0:00. Chapters will not display.");for(let r=1;r<o.length;r++)if(o[r].time<=o[r-1].time)throw new Error("Chapters are out of order. Chapters will not display.");if(t!=null){for(const r of o)if(r.time>=t)throw new Error("Timestamps must be within the video duration. Chapters will not display.");for(let r=0;r<o.length;r++)if((r<o.length-1?o[r+1].time:t)-o[r].time<10)throw new Error("Chapters must be at least 10 seconds long. Chapters will not display.")}return o},Is=_("video-chapters-panel");function G8({activeIndex:e,chapters:t,onSeek:s}){const o=(0,h.useRef)(null),r=as(),a=(0,h.useCallback)(i=>{const c=Number(i.currentTarget.dataset.time);Number.isNaN(c)||s?.(c)},[s]);return(0,h.useEffect)(()=>{o.current&&o.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[e]),t.length===0?(0,n.jsxs)("div",{className:Is("empty-state"),children:[(0,n.jsx)("i",{className:`fa-regular fa-clapperboard ${Is("empty-state-icon")}`}),(0,n.jsx)("p",{className:Is("empty-state-title"),children:r?.videoNoChapters}),(0,n.jsx)("p",{className:Is("empty-state-body"),children:r?.videoNoChaptersMessage})]}):(0,n.jsx)("div",{className:Is(),children:(0,n.jsx)("ul",{className:Is("list"),role:"list",children:t.map((i,c)=>(0,n.jsx)("li",{ref:c===e?o:void 0,children:(0,n.jsxs)("button",{"aria-current":c===e?"true":void 0,className:Is("item",{active:c===e}),"data-chapter-button":!0,"data-time":i.time,onClick:a,type:"button",children:[(0,n.jsxs)("span",{className:Is("thumbnail"),children:[(i.thumbnailStatus==null||i.thumbnailStatus==="done")&&i.thumbnail&&(0,n.jsx)("img",{alt:"",className:Is("thumbnail-img"),src:i.thumbnail}),i.thumbnailStatus==="processing"&&(0,n.jsx)("span",{"aria-hidden":"true",children:(0,n.jsx)(LF,{className:Is("thumbnail-spinner"),height:30,width:30})}),(0,n.jsx)("span",{className:Is("timestamp"),children:U8(i.time)})]}),(0,n.jsx)("span",{className:Is("info"),children:(0,n.jsx)("span",{className:Is("title"),children:i.title})})]})},i.time))})})}const Hq={allowedTags:["b","i","u","c","ruby","rt","v","lang"],allowedAttributes:{c:["class"],v:["title"],lang:["lang"],ruby:[],rt:[]},disallowedTagsMode:"escape",allowedSchemes:[]};function Fq(e){return e.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 Vq(e){return e.replace(/<!--SCRIPT_START-->(.*?)<!--SCRIPT_END-->/g,"$1").replace(/<!--IFRAME_START-->(.*?)<!--IFRAME_END-->/g,"$1").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&amp;/g,"&")}function hs(e,t={}){if(!e)return"";let s;if(t.allowVTTTags!==!1){const o=Fq(e),r=s0()(o,Hq);s=Vq(r)}else s=s0()(e,{allowedTags:[],allowedAttributes:{}});return t.preserveWhitespace||(s=s.replace(/\s+/g," ").trim()),s}function Ac(){return typeof window<"u"?window.crypto.randomUUID():`cue_${Date.now()}_${Math.random().toString(36).substring(2,9)}`}function zq(e){return e.map(t=>({...t,stableId:t.stableId||Ac()}))}function Fo(e){return e?/^(\d{2}:)?\d{2}:\d{2}\.\d{3}\s*-->\s*(\d{2}:)?\d{2}:\d{2}\.\d{3}/.test(e):!1}function W8(e){let t=e.match(/^(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/);if(t){const[,s,o,r,a]=t;return parseInt(s)*36e5+parseInt(o)*6e4+parseInt(r)*1e3+parseInt(a)}if(t=e.match(/^(\d{2}):(\d{2})\.(\d{3})$/),t){const[,s,o,r]=t;return parseInt(s)*6e4+parseInt(o)*1e3+parseInt(r)}throw new Error(`Invalid timestamp format: ${e}`)}function $q(e,t=!1){const s=Math.round(e),o=Math.floor(s/36e5),r=Math.floor(s%36e5/6e4),a=Math.floor(s%6e4/1e3),i=s%1e3;if(t){const c=a.toString().padStart(2,"0");if(o>0){const d=r.toString().padStart(2,"0");return`${o}:${d}:${c}`}else return`${r}:${c}`}return`${o.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}.${i.toString().padStart(3,"0")}`}function K8(e){const t={};if(!e)return t;const s=e.match(/\S+/g)||[];for(const o of s){const r=o.indexOf(":");if(r>0){const a=hs(o.substring(0,r),{allowVTTTags:!1}),i=hs(o.substring(r+1),{allowVTTTags:!1});t[a]=i}}return t}function _q(e){const t=e.match(/^<v\s+/);if(t){let a=0,i=-1;for(let c=t[0].length;c<e.length;c++)if(e[c]==="<")a++;else if(e[c]===">")if(a===0){i=c;break}else a--;if(i!==-1){const c=e.substring(t[0].length,i).trim(),d=e.substring(i+1).trim();return{speaker:hs(c,{allowVTTTags:!1}),text:d}}}const s=e.match(/^<v>\s*(.*)$/s);if(s)return{text:s[1]};const o=e.match(/^\[([^\]]+)\]:\s*(.*)$/s);if(o)return{speaker:hs(o[1].trim(),{allowVTTTags:!1}),text:o[2]};const r=e.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:hs(a,{allowVTTTags:!1}),text:r[2]}}return{text:e}}function Tp(e){return hs(e,{preserveWhitespace:!1,allowVTTTags:!0})}function Uq(e){const t=hs(e.substring(6).trim(),{allowVTTTags:!1}),s=K8(t);return{id:s.id,width:s.width,lines:s.lines,regionanchor:s.regionanchor,viewportanchor:s.viewportanchor,scroll:s.scroll,...s}}function Gq(e){const t=[...new Set(e.map(s=>s.speaker).filter(Boolean))];return{cueCount:e.length,speakerCount:t.length,speakers:t,lastModified:new Date}}function*Wq(e){const t=e.cues,s=e.totalDuration;for(let o=0;o<t.length;o++){const r=t[o],a=o>0?t[o-1]:void 0,i=o<t.length-1?t[o+1]:void 0,c=a?Math.max(0,r.startTimeMs-a.endTimeMs):r.startTimeMs,d=i?Math.max(0,i.startTimeMs-r.endTimeMs):Math.max(0,s-r.endTimeMs),l=s>0?r.startTimeMs/s*100:0,u=s>0?r.endTimeMs/s*100:0,m=u-l;yield{cue:r,index:o,isFirst:o===0,isLast:o===t.length-1,previousCue:a,nextCue:i,gapBefore:c,gapAfter:d,relativeStartPercent:l,relativeEndPercent:u,relativeWidthPercent:m}}}function gve(e){return Array.from(Wq(e))}function Kq(e,t,s,o,r,a,i,c){const d=[],l=/<v\s+([^>]+)>([^<]*)<\/v>/g;let u,m=0;for(;(u=l.exec(e))!==null;){const[v,x,y]=u,S={stableId:Ac(),startTime:t,endTime:s,startTimeMs:o,endTimeMs:r,duration:a,text:Tp(y.trim()),settings:i,index:0,speaker:hs(x.trim(),{allowVTTTags:!1})};c&&(S.id=c),i.position&&(S.position=i.position),i.align&&(S.align=i.align),i.line&&(S.line=i.line),i.size&&(S.size=i.size),i.vertical&&(S.vertical=i.vertical),i.region&&(S.region=i.region),d.push(S),m=u.index+v.length}const p=/<v\s+([^>]+)>([^<]*)$/,C=e.substring(m).match(p);if(C){const[,v,x]=C,y={stableId:Ac(),startTime:t,endTime:s,startTimeMs:o,endTimeMs:r,duration:a,text:Tp(x.trim()),settings:i,index:0,speaker:hs(v.trim(),{allowVTTTags:!1})};c&&(y.id=c),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),d.push(y)}return d}function Qq(e,t){let s=t,o;!Fo(e[s])&&Fo(e[s+1])&&(o=hs(e[s],{allowVTTTags:!1}),s++);const r=e[s];if(!Fo(r))return{cues:[],nextIndex:s+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:s+1};const[,i,c,d]=a,l=K8(d.trim());s++;const u=[];for(;s<e.length&&e[s]!==""&&!Fo(e[s]);)u.push(e[s]),s++;const m=W8(i),p=W8(c),g=p-m,C=[];if(u.length===0){const v={stableId:Ac(),startTime:i,endTime:c,startTimeMs:m,endTimeMs:p,duration:g,text:"",settings:l,index:0};o&&(v.id=o),l.position&&(v.position=l.position),l.align&&(v.align=l.align),l.line&&(v.line=l.line),l.size&&(v.size=l.size),l.vertical&&(v.vertical=l.vertical),l.region&&(v.region=l.region),C.push(v)}else for(const v of u)if(v.includes("<v ")&&(v.includes("</v>")||v.match(/<v\s+[^>]+>[^<]*$/))){const x=Kq(v,i,c,m,p,g,l,o);C.push(...x)}else{const x=u.join(`
`),{text:y,speaker:S}=_q(x),L={stableId:Ac(),startTime:i,endTime:c,startTimeMs:m,endTimeMs:p,duration:g,text:Tp(y),settings:l,index:0};o&&(L.id=o),S&&(L.speaker=S),l.position&&(L.position=l.position),l.align&&(L.align=l.align),l.line&&(L.line=l.line),l.size&&(L.size=l.size),l.vertical&&(L.vertical=l.vertical),l.region&&(L.region=l.region),C.push(L);break}return{cues:C,nextIndex:s}}function Zq(e){const t=e.split(`
`).map(a=>a.trim()),s=t.find(a=>a.length>0);if(!s||!s.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<t.length&&t[r]==="";)r++;if(r<t.length&&t[r].startsWith("WEBVTT"))for(o.header=hs(t[r],{allowVTTTags:!1}),r++;r<t.length&&t[r]==="";)r++;else throw new Error("Invalid WebVTT file: Missing or malformed WEBVTT header");for(;r<t.length;){const a=t[r];if(a===""){r++;continue}if(a.startsWith("NOTE")){const i=[hs(a.substring(4).trim(),{preserveWhitespace:!0,allowVTTTags:!1})];for(r++;r<t.length&&t[r]!==""&&!Fo(t[r]);)i.push(hs(t[r],{preserveWhitespace:!0,allowVTTTags:!1})),r++;o.notes?.push(i.join(`
`));continue}if(a.startsWith("STYLE")){const i=[];for(r++;r<t.length&&t[r]!==""&&!Fo(t[r]);)i.push(hs(t[r],{preserveWhitespace:!0,allowVTTTags:!1})),r++;o.styles?.push(i.join(`
`));continue}if(a.startsWith("REGION")){const i=Uq(a);o.regions?.push(i),r++;continue}if(Fo(a)||Fo(t[r+1])){const i=Qq(t,r);i.cues&&i.cues.length>0&&o.cues.push(...i.cues),r=i.nextIndex;continue}r++}return o.cues=zq(o.cues),o.cues.sort((a,i)=>a.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=Gq(o.cues),o}function vve(e){let t="";if(e.header?t+=e.header.trim()+`
`:t+=`WEBVTT
`,t+=`
`,e.notes&&e.notes.length>0)for(const s of e.notes)t+="NOTE",s&&s.length>0&&(t+=" "+s),t+=`

`;if(e.styles&&e.styles.length>0)for(const s of e.styles)t+=`STYLE
`,t+=s.trim()+`

`;if(e.regions&&e.regions.length>0)for(const s of e.regions){t+="REGION";const o=[];for(const r in s)s[r]!==void 0&&s[r]!==null&&r!=="settings"&&o.push(`${r}:${s[r]}`);o.length>0&&(t+=" "+o.join(" ")),t+=`

`}for(const s of e.cues){s.id&&(t+=s.id+`
`),t+=`${s.startTime} --> ${s.endTime}`;const o=[];if(s.position&&o.push(`position:${s.position}`),s.align&&o.push(`align:${s.align}`),s.line&&o.push(`line:${s.line}`),s.size&&o.push(`size:${s.size}`),s.vertical&&o.push(`vertical:${s.vertical}`),s.region&&o.push(`region:${s.region}`),s.settings)for(const a in s.settings)s.settings[a]!==void 0&&s.settings[a]!==null&&!o.some(i=>i.startsWith(a+":"))&&o.push(`${a}:${s.settings[a]}`);o.length>0&&(t+=" "+o.join(" ")),t+=`
`;let r=s.text||"";s.speaker&&(r=`[${s.speaker}]: ${r}`),t+=r+`

`}return t.replace(/\s+$/,"")+`
`}const Rc=_("video-transcript-panel"),Yq=({cue:e,isCurrent:t,onSeek:s,forwardSeekRestricted:o,maxTimeReached:r})=>{const a=(0,h.useCallback)(()=>{const c=e.startTimeMs/1e3;o&&c>r||s?.(c)},[e,s,o,r]),i=(0,h.useMemo)(()=>o&&e.startTimeMs/1e3>r,[o,e.startTimeMs,r]);return(0,n.jsxs)("button",{"aria-current":t?"true":void 0,"aria-disabled":i,className:Rc("line",{current:t,disabled:i}),onClick:i?void 0:a,tabIndex:i?-1:0,type:"button",children:[(0,n.jsx)("span",{className:Rc("timestamp"),children:$q(e.startTimeMs,!0)}),(0,n.jsx)("span",{className:Rc("text"),children:e.text})]})},Q8=({captions:e,currentTime:t=0,forwardSeekRestricted:s=!1,maxTimeReached:o=0,onSeek:r})=>{const[a,i]=(0,h.useState)([]);(0,h.useEffect)(()=>{if(!e||e.length===0)return;const d=new AbortController;return(async()=>{try{const u=e[0];if(!u)return;const m=u.url||(u.key?mt(u.key):null);if(!m)return;const p=await fetch(m,{signal:d.signal});if(!p.ok)return;const g=await p.text(),C=Zq(g);i(C.cues)}catch(u){console.error("Error loading transcript:",u)}})(),()=>{d.abort()}},[e]);const c=(0,h.useMemo)(()=>{const d=t*1e3;return a.findIndex(l=>d>=l.startTimeMs&&d<l.endTimeMs)},[a,t]);return a.length===0?null:(0,n.jsx)("div",{className:Rc(),children:(0,n.jsx)("div",{className:Rc("lines"),children:a.map((d,l)=>(0,n.jsx)(Yq,{cue:d,forwardSeekRestricted:s,isCurrent:l===c,maxTimeReached:o,onSeek:r},d.stableId))})})},Es=_("video-side-panel");function Xq(e,t){for(let s=e.length-1;s>=0;s--)if(t>=e[s].time)return s;return-1}const Np=4;function Jq({captions:e,chapters:t=[],cornerRadius:s,currentTime:o=0,forwardSeekRestricted:r=!1,headingLevel:a,isLearner:i=!1,maxTimeReached:c=0,onSeek:d,showChapters:l=!0,showTranscript:u=!0}){const m=as(),p=(0,h.useMemo)(()=>l&&(!i||t.length>0),[t.length,i,l]),g=(0,h.useMemo)(()=>{const W=[];return p&&W.push({id:"chapters",label:m?.videoChapters}),u&&W.push({id:"transcript",label:m?.videoTranscript}),W},[p,u,m]),[C,v]=(0,h.useState)(g[0]??null),[x,y]=(0,h.useState)(!1),[S,L]=(0,h.useState)(!1),b=(0,h.useRef)(null),T=(0,h.useRef)(null),N=(0,h.useRef)(null),k=(0,h.useRef)(!1),E=(0,h.useId)(),I=(0,h.useMemo)(()=>g.find(W=>W.id===C?.id)??g[0]??null,[g,C]),A=(0,h.useMemo)(()=>g.findIndex(W=>W.id===I?.id),[g,I]),R=(0,h.useCallback)(W=>{const D=W.currentTarget.dataset.tabId,H=g.find(B=>B.id===D);H&&v(H)},[g]),j=(0,h.useCallback)(W=>{const D=g.length-1;let H=null;so(W)?H=A===0?D:A-1:no(W)?H=A===D?0:A+1:i5(W)?H=0:a5(W)&&(H=D),H!==null&&(W.preventDefault(),v(g[H]),b.current?.querySelectorAll('[role="tab"]')[H]?.focus())},[A,g]);(0,h.useEffect)(()=>{g.length>0&&!g.some(W=>W.id===C?.id)&&v(g[0])},[g,C]);const O=xt(768),w=(0,h.useCallback)(()=>y(!0),[]),P=(0,h.useCallback)(()=>y(!1),[]),M=(0,h.useCallback)(()=>L(W=>!W),[]);(0,h.useEffect)(()=>{let W=0;return S&&T.current?(k.current=!0,W=requestAnimationFrame(()=>{T.current?.querySelectorAll("[data-chapter-button]")?.[Np]?.focus()})):!S&&k.current&&(W=requestAnimationFrame(()=>{N.current?.focus()})),()=>cancelAnimationFrame(W)},[S]);const z=(0,h.useMemo)(()=>Xq(t,o),[t,o]),$=S?t:t.slice(0,Np),F=t.length>Np,V=a??2,K=`h${V}`,Z=s!=null?{"--side-panel-corner-radius":`${Number(s)}px`}:{};if(O)return(0,n.jsxs)("div",{className:Es("mobile"),style:Z,children:[p&&(0,n.jsxs)("div",{className:Es("mobile-section"),ref:T,children:[(0,n.jsx)(K,{className:Es("mobile-heading",{[`h${V}`]:!0}),children:m?.videoChapters}),(0,n.jsx)(G8,{activeIndex:z,chapters:$,onSeek:d}),F&&(0,n.jsxs)("button",{"aria-expanded":S,className:Es("mobile-expand"),onClick:M,ref:N,type:"button",children:[S?m?.videoShowLessChapters:m?.videoShowMoreChapters,(0,n.jsx)("i",{"aria-hidden":"true",className:`fa-solid fa-chevron-${S?"up":"down"}`})]})]}),u&&(0,n.jsxs)("div",{className:Es("mobile-section"),children:[(0,n.jsx)(K,{className:Es("mobile-heading",{[`h${V}`]:!0}),children:m?.videoTranscript}),(0,n.jsxs)("button",{className:Es("view-transcript-button"),onClick:w,type:"button",children:[(0,n.jsx)(ie,{name:"list"}),m?.videoViewTranscript]}),x&&(0,n.jsx)(Dm,{className:Es("video-transcript-modal"),heading:m?.videoTranscript,onClose:P,children:(0,n.jsx)(Q8,{captions:e,currentTime:o,forwardSeekRestricted:r,maxTimeReached:c,onSeek:d})})]})]});const X=W=>{const D={className:Es("content"),hidden:I?.id!==W};return g.length<=1?D:{...D,"aria-labelledby":`tab-${W}-${E}`,id:`tabpanel-${W}-${E}`,role:"tabpanel",tabIndex:0}},te=g.length===1?(0,n.jsx)(K,{className:Es("title",{[`h${V}`]:!0}),children:g[0].label}):(0,n.jsx)("div",{"aria-label":m?.a11yBlockVideoSidePanelTablist,className:Es("tabs"),ref:b,role:"tablist",children:g.map(W=>(0,n.jsx)("button",{"aria-controls":`tabpanel-${W.id}-${E}`,"aria-selected":I?.id===W.id,className:Es("tab",{active:I?.id===W.id}),"data-tab-id":W.id,id:`tab-${W.id}-${E}`,onClick:R,onKeyDown:j,role:"tab",tabIndex:I?.id===W.id?0:-1,type:"button",children:W.label},W.id))});return(0,n.jsxs)("div",{className:Es(),style:Z,children:[te,p&&(0,n.jsx)("div",{...X("chapters"),children:(0,n.jsx)(G8,{activeIndex:z,chapters:t,onSeek:d})}),u&&(0,n.jsx)("div",{...X("transcript"),children:(0,n.jsx)(Q8,{captions:e,currentTime:o,forwardSeekRestricted:r,maxTimeReached:c,onSeek:d})})]})}const Pc=_("block-video");function qq({audioVideoPlayhead:e,backgroundColor:t,blockId:s,blockPartnerContent:o,blockPartnerContentExists:r,captions:a,chapters:i,cornerRadius:c,currentLocale:d,dataL10nId:l,enableVideoPlaybackSpeed:u,forwardSeekRestricted:m,headingLevel:p,id:g,isLearner:C,isLoaded:v,item:x,lessonId:y,loadMedia:S,media:L,mediaWidth:b,onLoad:T,onProgressChanged:N,poster:k,recordMediaPlayheadPosition:E,renderCaption:I,showChapters:A,subtitle:R,transcriptEnabled:j,type:O,videoKey:w,videoSrc:P}){const[M,z]=(0,h.useState)(0),[$,F]=(0,h.useState)(0),V=(0,h.useRef)(null),K=(0,h.useCallback)(D=>{z(D.currentTime),F(H=>Math.max(H,D.currentTime)),N?.(D)},[N]),Z=(0,h.useCallback)(D=>{const H=Pc("caption",{visible:v}).toString();return(0,n.jsx)(Ye,{className:H,value:D.caption})},[v]),X=(0,h.useCallback)(D=>{V.current?.seekToTime(D)},[V]),te=j&&a&&a.length>0||A&&(!C||i&&i.length>0),W=Pc("item",{small:b==="0",medium:b==="1",full:b==="2","video-training":!0,"no-side-panel":!te});return(0,n.jsxs)("div",{className:W,children:[(0,n.jsxs)("figure",{"data-l10n-id":l,children:[(0,n.jsx)("div",{className:Pc("figure-container"),children:S&&(0,n.jsx)(rp,{audioVideoPlayhead:e,canAdjustPlaybackSpeed:u,canRestrictSeek:m,captions:a,cornerRadius:c,id:`${y}-${s}-${g}-${d}`,media:L,onLoad:T,poster:k,progressChanged:K,recordMediaPlayheadPosition:E,ref:V,src:P,subtitle:R,type:w?"video":O},`${y}-${s}-${g}-${d}-${k||""}`)}),te&&(0,n.jsx)("div",{className:Pc("side-panel-wrapper"),children:(0,n.jsx)(Jq,{captions:a,chapters:i,cornerRadius:c,currentTime:M,forwardSeekRestricted:m||!1,headingLevel:p,isLearner:C,maxTimeReached:$,onSeek:X,showChapters:A,showTranscript:j})}),v&&(0,n.jsx)("figcaption",{className:Pc("wrapper"),children:(I??Z)(x)})]}),r&&(0,n.jsx)(_8,{backgroundColor:t,blockId:s,partnerContent:o})]})}var kp=f(80588);function eee({backgroundColor:e,blockId:t,cornerRadius:s,enableVideoPlaybackSpeed:o,forwardSeekRestricted:r,headingLevel:a,isLearner:i,item:c,lessonId:d,loadMedia:l,mediaWidth:u,onStep:m,partnerContent:p,audioVideoPlayhead:g,recordMediaPlayheadPosition:C,renderCaption:v,showChapters:x,transcriptEnabled:y,type:S,isVideoTraining:L}){const[b,T]=kp.useState(!1),{currentLocale:N}=Qe(),k=is(),{id:E,media:I,partnerContentId:A}=c,R=k(I)??{},{customVideo:j={},tmp:O={},video:w={}}=R,P="poster"in w?w:{...w,...j},M=O.video&&"poster"in O.video?O.video:void 0,{captions:z,chapters:$,key:F,poster:V,src:K,subtitle:Z}=ui()?P:M||P,X=$??[],te=F||K,D=(Array.isArray(p)?p:p?.content)?.find(Q=>A!=null&&er(Q)&&"id"in Q&&Q.id===A),H=D!=null&&er(D),B=er(I)&&"l10nId"in I?I.l10nId:void 0,G=kp.useCallback(()=>{T(!0)},[]),Y=kp.useCallback(({percentComplete:Q})=>{Q>=100&&m?.({id:E})},[E,m]);if(!te)return(0,n.jsx)(Rq,{mediaWidth:u});const J={audioVideoPlayhead:g,backgroundColor:e,blockId:t,blockPartnerContent:D,blockPartnerContentExists:H,captions:z,cornerRadius:s,currentLocale:N,dataL10nId:B,enableVideoPlaybackSpeed:o,forwardSeekRestricted:r,id:E,isLoaded:b,item:c,lessonId:d,loadMedia:l,media:I,mediaWidth:u,onLoad:G,onProgressChanged:Y,poster:V,recordMediaPlayheadPosition:C,renderCaption:v,subtitle:Z,type:S,videoKey:F,videoSrc:te};return L?(0,n.jsx)(qq,{...J,chapters:X,headingLevel:a,isLearner:i,showChapters:x,transcriptEnabled:y},F):(0,n.jsx)(Oq,{...J},F)}const tee=_("block-video");function Ip({animateBlockEntrance:e,blockId:t,enableVideoPlaybackSpeed:s,initiallyVisible:o,isDragPreview:r,isLearner:a,isSidebarPreview:i,items:c,lessonId:d,loadMedia:l,onStep:u,partnerContent:m,progress:p,recordMediaPlayheadPosition:g,renderCaption:C,settings:v,takingSnapshot:x,type:y,isVideoTraining:S}){const L=c?.[0];if(L==null)return null;const b=tee({"no-animation":!v?.entranceAnimation}).toString(),T=S?"2":"1",N=x||r||i;return(0,n.jsx)(we,{className:b,children:(0,n.jsx)(Oe,{animateBlockEntrance:e,initiallyVisible:o,isLearner:a,children:N?(0,n.jsx)(Aq,{item:L}):(0,n.jsx)(eee,{audioVideoPlayhead:p?.items?.[t]?.items?.[L.id]?.audioVideoPlayhead??0,backgroundColor:v?.backgroundColor,blockId:t,cornerRadius:v?.cornerRadius,enableVideoPlaybackSpeed:s,forwardSeekRestricted:v?.forwardSeekRestricted,headingLevel:v?.headingLevel,isLearner:a,isVideoTraining:S,item:L,lessonId:d,loadMedia:l,mediaWidth:v?.mediaWidth??T,onStep:u,partnerContent:m,recordMediaPlayheadPosition:g,renderCaption:C,showChapters:!!v?.showChapters,transcriptEnabled:!!v?.showTranscript,type:y})})})}var Ep=f(80588);const gu=_("block-audio"),jp=_("block-embed"),js=_("block-attachment");class see extends Ep.Component{renderCaptionDelegate;constructor(t){super(t),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:t}){const{loaded:s}=this.state,o=gu("caption",{hidden:!s}).toString();return(0,n.jsx)(Ye,{className:o,value:t})}onLoad(){this.setState({loaded:!0})}renderItem(t){const{blockId:s,getL10nValue:o,labels:r,lessonId:a,loadMedia:i,progress:c,recordMediaPlayheadPosition:d,renderCaption:l=this.renderCaptionDelegate,settings:u}=this.props,m="forwardSeekRestricted"in u?u.forwardSeekRestricted:!1,p=t.media,g=o(p)??{},{id:C}=t,v=g?.tmp?.audio?.key||g?.audio?.key,x=`${a}-${s}-${C}`,y=Fe()(0,["items",s,"items",C,"audioVideoPlayhead"],c),S=ap({lessonId:a,refs:`items:${s}/items:${C}`});return(0,n.jsxs)("div",{className:gu("item"),children:[i&&(0,n.jsx)(c8,{audioVideoPlayhead:y,canRestrictSeek:!!m,id:x,item:t,labels:r,mediaSrc:v,onAIUploadFinish:this.props.onAIUploadFinish,onEnd:this.handleOnEnd.bind(this,C),onLoad:this.onLoad,onTranscriptClick:this.onTranscriptClick.bind(this,t),onTranscriptClose:this.props.closeTranscript,onTranscriptUpdate:this.props.onTranscriptUpdate??void 0,recordMediaPlayheadPosition:d,refs:`items:${s}/items:${C}`,transcriptMedia:p,uploadId:S},x),l(t)]},C)}handleOnEnd(t){this.props.onStep({id:t})}onTranscriptClick(t){const{blockId:s}=this.props;return this.props.openTranscript?.({blockId:s,item:t,refs:`items:${s}/items:${t.id}`})}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,items:r,settings:a}=this.props,{entranceAnimation:i}=a,c=gu({"no-animation":!i}).toString(),d=r.length>0?r.slice(0,1):[];return(0,n.jsx)(we,{className:c,children:(0,n.jsx)(Oe,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{className:gu("wrapper"),children:d.map(l=>this.renderItem(l))})})})}}const nee=r4(Ke(see));class oee extends Ep.Component{static get defaultProps(){return{items:[],editable:!1,lessonId:"",blockId:"",settings:{}}}renderItem(t,s){const{id:o,settings:r={}}=t,a=this.props.getL10nValue(t.media)??{},i="embed"in a?a.embed:void 0,{loadMedia:c,labels:d,settings:l}=this.props,{showMetaData:u}=r,{cardMode:m,showBorder:p=!0}=l,g=jp("item",{border:p}).toString();return(0,n.jsx)(Ot,{className:g,disabled:!p&&m==Fs.TRANSPARENT,tag:"section",children:c&&(0,n.jsx)(m8,{data:i,id:`${s}-${o}`,isLesson:!0,labels:d,showMetaData:u})},o)}render(){const{animateBlockEntrance:t,blockId:s,getL10nValue:o,initiallyVisible:r,isLearner:a,items:i,settings:c}=this.props,{entranceAnimation:d,mediaWidth:l="0"}=c,u=o(i?.[0]?.media);if(!u)return null;const m=JY(u)!=="link",p=jp({"no-animation":!d}).toString(),g=jp("wrapper",{medium:m&&l==="1",full:m&&l==="2"}),C=i.length>0?i.slice(0,1):[];return(0,n.jsx)(we,{className:p,children:(0,n.jsx)(Oe,{animateBlockEntrance:t,initiallyVisible:r,isLearner:a,children:(0,n.jsx)("div",{className:g,children:C.map(v=>this.renderItem(v,s))})})})}}const ree=Ke(F1()(oee));class aee extends Ep.Component{get attachment(){const t=this.props.items[0].media;return this.props.getL10nValue(t)?.attachment??{}}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o}=this.props;return(0,n.jsx)(we,{children:(0,n.jsx)(Oe,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{className:"block-text--onecol",children:(0,n.jsx)("div",{className:"block-text__container",children:(0,n.jsx)("div",{className:"block-text__row",children:(0,n.jsx)("div",{className:"block-text__col",children:this.renderAttachment(this.attachment)})})})})})})}renderAttachment(t){return t.key?this.renderDownload(t):this.renderNoFile()}renderDownload({key:t,mimeType:s,originalUrl:o,size:r}){const{attachmentId:a,blockId:i,externalLinksDisabled:c,onLinkBlur:d,onLinkFocus:l,onLinkMouseEnter:u,onLinkMouseLeave:m}=this.props,p=mt(t),g=c?"":void 0,C=c?void 0:p,v=c?void 0:"noopener noreferrer nofollow",x=c?"button":void 0,y=c?0:void 0,S=c?void 0:"_blank",L=js({}).mix("brandHover").toString(),b=js("info");return(0,n.jsxs)(Ot,{"aria-labelledby":`attachment-name-${i} attachment-icon-${i}`,className:L,"data-external":g,download:o,href:C,id:c?a:void 0,onBlur:c?()=>d?.(a):void 0,onFocus:c?()=>l?.(a):void 0,onMouseEnter:c?()=>u?.(a):void 0,onMouseLeave:c?()=>m?.(a):void 0,rel:v,role:x,tabIndex:y,tag:"a",target:S,children:[(0,n.jsxs)("div",{className:js("main"),children:[(0,n.jsx)("div",{className:js("icon"),id:`attachment-icon-${i}`,children:this.fileIcon(s)}),(0,n.jsxs)("div",{className:b,children:[(0,n.jsx)(Le,{className:js("title").toString(),id:`attachment-name-${i}`,value:o}),(0,n.jsx)("div",{className:js("size").toString(),children:wq()(r,{round:1})})]})]}),(0,n.jsx)("div",{className:js("rest"),children:(0,n.jsx)(lD,{className:"brandHover__target--fill"})})]})}renderNoFile(){const t=js({none:!0}).toString(),s=js("info");return(0,n.jsx)(Ot,{className:t,children:(0,n.jsxs)("div",{className:js("main"),children:[(0,n.jsx)("div",{className:js("icon"),children:(0,n.jsx)(E6,{"aria-label":"File"})}),(0,n.jsxs)("div",{className:s,children:[(0,n.jsx)("div",{className:js("title").toString(),children:"File Attachment Block"}),(0,n.jsx)("div",{className:js("size").toString(),children:"No file added"})]})]})})}fileIcon(t){const{labels:s}=this.props,o=/excel|spreadsheet/,r=/pdf/,a=/word/,i=/powerpoint|presentation/,c=/rtf|richtext/,d=/zip/;return o.test(t)?(0,n.jsx)(VD,{"aria-label":s?.a11yExcelIcon}):r.test(t)?(0,n.jsx)(DD,{"aria-label":s?.a11yPDFIcon}):a.test(t)?(0,n.jsx)(MD,{"aria-label":s?.a11yWordIcon}):i.test(t)?(0,n.jsx)(HD,{"aria-label":s?.a11yPPTIcon}):c.test(t)?(0,n.jsx)(FD,{"aria-label":s?.a11yRTFIcon}):d.test(t)?(0,n.jsx)(zD,{"aria-label":s?.a11yZipIcon}):(0,n.jsx)(E6,{"aria-label":s?.a11yFileIcon})}}function iee(e){const t=F1()(e),s=Ke(t),o=n$(s);function r(a){const i=Me(),c=a.externalLinksDisabled??(i&&"externalLinksDisabled"in i?i.externalLinksDisabled:!1);return(0,n.jsx)(o,{...a,externalLinksDisabled:c})}return r}const cee=iee(aee),gn=_("block-step"),lee=e=>{const{blockId:t,disableZoom:s,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:d,mediaType:l,audioPosition:u}=e,{settings:m}=a,p=Ie(a.media)??{},g=l==="audio"&&p.audio,C=l==="embed"&&p.embed,v=l==="image"&&p.image,x=l==="video"&&p.video;if(!g&&!C&&!v&&!x&&!(l==="image-with-audio"&&r))return;const S=p.embed?Mr(p.embed):void 0,L=!!p.image,b=!!p.audio,T=L?p.image.align:"center",N=gn("media",{audio:b&&!r,"audio-and-embed":!!(p.audio&&p.embed),"image-with-audio":r,[`image-with-audio-${T}`]:r&&!!T,"audio-on-bottom":b&&!r&&u==="bottom",linkEmbed:S==="link",videoEmbed:S==="video",visual:!r&&L||!Xe()(p.video)}),k=m||{};return(0,n.jsx)("div",{className:N,children:(0,n.jsx)($t,{blockId:t,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:d,media:p,mediaType:r?void 0:l,opts:{disableZoom:s,...k},shouldPause:!0})})},dee=e=>{const{headingLevel:t,innerRef:s,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:c,renderTitle:d,renderDescription:l,style:u}=e,{id:m}=o,p=gn({active:r}),g=!!o.step,C=!!o.title,v=t||2,x=`h${v}`,y=`h${v+1}`,S=Ie(o.media),L=fn(S,i,!0,"timeline"),b=Ie(o.description),T=(0,h.useMemo)(()=>!!Object.keys(S??{}).length||!!rm(b).value?.length,[S,b]),N=()=>{const k={audio:{item:{...o,media:L.audioOnlyMedia||S},mediaType:"audio"},image:{item:{...o,media:L.imageOnlyMedia||S},mediaType:"image"},video:{item:{...o,media:L.videoOnlyMedia||S},mediaType:"video"},embed:{item:{...o,media:L.embedOnlyMedia||S},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,n.jsx)(n.Fragment,{children:L.renderOrder.map((E,I)=>{if(E==="text")return l?(0,n.jsx)("div",{className:gn("description"),children:l(o)},`text-${I}`):(0,n.jsx)(Le,{className:gn("description"),value:o.description},`text-${I}`);if(!S||!a)return null;const A=k[E];return A?(0,h.createElement)(lee,{...e,...A,key:`${E}-${I}`}):null})})};return(0,n.jsx)(we,{children:(0,n.jsx)("div",{className:p,"data-id":m,ref:s,style:u,children:(0,n.jsx)(Ot,{className:gn("body"),onFocus:c,children:(0,n.jsxs)("div",{className:gn("main-wrap"),children:[(0,n.jsxs)("div",{className:gn("heading",{solo:!T}),children:[g&&(0,n.jsx)("div",{className:gn("step"),children:(0,n.jsx)(x,{children:(0,n.jsx)(lt,{value:o.step})})}),(C||d)&&(0,n.jsx)("div",{className:gn("title"),children:d?d(o):(0,n.jsx)(y,{children:(0,n.jsx)(Le,{value:o.title})})})]}),(0,n.jsx)("div",{className:gn("main"),children:N()})]})})})})},uee=e=>{const{id:t,settings:s,items:o,onEnter:r,enableVideoPlaybackSpeed:a,initiallyVisible:i,isLearner:c,labels:d,lessonId:l,renderTitle:u,renderDescription:m}=e,p=o[0],g=s.audioPosition,C=!(s.zoomOnClick??!0),v=s.headingLevel,x=(0,h.useCallback)((S,L)=>{r?.({id:t,payload:{activeIndex:S,itemId:L}})},[t,r]),y=(0,n.jsx)(dee,{audioPosition:g,blockId:t,disableZoom:C,enableVideoPlaybackSpeed:a,headingLevel:v,isActive:!0,item:p,labels:d,lessonId:l,lessonNumber:t,loadMedia:!0,onFocus:x,renderDescription:m,renderTitle:u,style:{"--block-step-padding-top":"1rem","--block-step-padding-bottom":"1rem","--block-step-corner-radius":s.cornerRadius!=null?`${s.cornerRadius}px`:"var(--arc-border-radius-lg)"}});return c?(0,n.jsx)(Oe,{animateBlockEntrance:!0,className:gn("animate").toString(),initiallyVisible:i,isLearner:!0,children:y}):y},Z8=_("continue-btn"),vu=({children:e,className:t,href:s,onClick:o,text:r,testId:a="continue-btn"})=>{const i=t?`${Z8()} ${t}`:Z8();return s?(0,n.jsx)(cs,{className:i,"data-continue-btn":"","data-testid":a,onClick:o,to:s,children:e??(0,n.jsx)(lt,{value:r})}):(0,n.jsx)("button",{className:i,"data-continue-btn":"","data-testid":a,onClick:o,type:"button",children:e??(0,n.jsx)(Le,{value:r})})},Y8=({bgType:e,text:t,iconType:s="locked"})=>{const o=U()("continue-hint",{"continue-hint--bg-transparent":e==="transparent"});return(0,n.jsxs)("div",{className:o,"data-continue-btn":"",children:[s==="locked"&&(0,n.jsx)(ie,{className:"continue-hint__icon",name:"lock-keyhole-light"}),(0,n.jsx)("div",{className:"continue-hint__content",children:(0,n.jsx)(lt,{value:t})})]})},wp=_("block-text");function hee({blockId:e,animateBlockEntrance:t,canContinue:s=!1,isComplete:o,isLearner:r,isLastBlock:a=!1,isOnlyBlockInStep:i,items:c=[],labels:d,onStep:l=()=>{},skipContinue:u=!1,initiallyVisible:m}){const g=(0,h.useRef)(null),C=(0,Ae.A)(o),[v,x]=h.useState(!1),{announcePolite:y}=In(),[S,L]=h.useState(!1),b=Zt(),T=Me(),N=Ii(),k=a3(N),E=Po(),I=c[0],{id:A}=I,R=I.title??E?.label??Ue.blockContinueLabel,j=I.type??E?.completionType??Ue.blockContinueCompletionType,O=I.completeHint??E?.completeHint??Ue.blockContinueCompleteHint,w=!j||(u?S:s||i&&o),P=u||!o||i,M=b?.continueColor||N,z=!M||M===N,$=z&&T?.theme?.accentContrast===pe.AUTO?pe.AUTO:k,F=b?.continueColorContrast??$,V=b?.continueRadius??null,K=b?.continueWidth??76,Z=At({backgroundColor:M,contrast:F}),X={...!z&&{"--color-button-bg":M},...!z&&{"--color-button-text":Z},...!z&&{"--color-button-border":"transparent"},...V!=null&&{"--radius-button":`${Number(V)}px`},...K!=null&&{maxWidth:`${Number(K)}rem`}},te=(0,h.useCallback)(()=>{l({id:A}),x(!0),a?setTimeout(()=>{const W=document.querySelector("[data-lesson-id]"),D=document.querySelector("main"),H=document.querySelector("h1.lesson-header__title, .lesson-header__title h1"),B=W?.querySelector('.block-wrapper, [role="region"], .lesson-content > *:first-child');let G=null;H?G=H:B&&B!==g.current?.parentElement?G=B:W?G=W:D&&(G=D),G&&(G.setAttribute("tabindex","-1"),G.focus({preventScroll:!0}))},200):setTimeout(()=>{const W=g.current;W&&W.focus()},100)},[A,l,a]);return(0,h.useEffect)(()=>{!C&&o&&(a||setTimeout(()=>{y?.(d?.a11yStatusAdditionalContent)},300))},[y,o,d,C,a]),(0,h.useEffect)(()=>{const W=D=>{const{path:H}=D.detail,{blockId:B,buttonId:G}=Ia(D.detail.path,["block","button"]);if(e==B&&G===I.id){const Y=H.at(-1);Y==="title"?L(!0):Y==="completeHint"&&L(!1)}};return window.addEventListener(We,W),()=>{window.removeEventListener(We,W)}},[e,I.id]),(0,n.jsxs)(n.Fragment,{children:[P&&(0,n.jsx)(we,{children:(0,n.jsx)(Oe,{animateBlockEntrance:t,initiallyVisible:m,isLearner:r,children:(0,n.jsx)("div",{className:wp("container"),children:(0,n.jsx)("div",{className:wp("row"),children:(0,n.jsxs)("div",{className:wp("continue"),style:X,children:[w&&(0,n.jsx)(vu,{onClick:te,text:R}),!w&&(0,n.jsx)(Y8,{text:O})]})})})})}),v&&(0,n.jsx)("div",{"aria-live":"off",className:"visually-hidden-always",ref:g,role:"status",tabIndex:-1,children:d?.a11yStatusContinued||"Continued"})]})}var mee=f(38739),Cu=f.n(mee);const pee=_("flashcard");class fee 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:t,handleFlip:s,handleSideReady:o,handleTouchEnd:r,props:{activeIndex:a,allowTabNavigation:i,backDescription:c,backMedia:d,backType:l,block:u,forceFlipped:m,frontDescription:p,frontMedia:g,frontType:C,id:v,index:x,isHidden:y,labels:S,lessonId:L,prefersKeyboardNavigation:b,settingShowHint:T,size:N,type:k,wrapElement:E,wrapRole:I},state:{areSidesReady:A,flipped:R,isMounted:j}}=this,O=m||R,w=pee({large:N==="large",small:N==="small",flipped:O,stack:k==="stack"});return(0,n.jsxs)(E,{"aria-hidden":!i,className:w,onClick:s,onTouchEnd:r,ref:t,role:I,children:[(0,n.jsx)(Ot,{activeIndex:a,allowTabNavigation:i,blockId:u?.id,blockType:k,description:p,index:x,isActiveSide:!O,isAriaHidden:O&&j&&A,isFlipped:O,isHidden:y,itemId:v,labels:S,lessonId:L,media:g,onFlip:s,onReady:o,prefersKeyboardNavigation:b,settingShowHint:T,side:"front",size:N,tag:J8,type:C}),(0,n.jsx)(Ot,{activeIndex:a,allowTabNavigation:i,blockId:u?.id,blockType:k,description:c,index:x,isActiveSide:O,isAriaHidden:!O&&j&&A,isFlipped:O,isHidden:y,itemId:v,labels:S,lessonId:L,media:d,onFlip:s,onReady:o,prefersKeyboardNavigation:b,settingShowHint:T,side:"back",size:N,tag:gee,type:l})]})}componentDidMount(){this.setState({isMounted:!0}),window.addEventListener(We,this.handleNavEvent)}componentDidUpdate(t,s){const{props:{allowTabNavigation:o,id:r,onStep:a},state:{hasFlippedOnce:i}}=this;!s.hasFlippedOnce&&i&&a({id:r}),t.allowTabNavigation&&!o&&this.setState({flipped:!1})}componentWillUnmount(){window.removeEventListener(We,this.handleNavEvent)}handleNavEvent=t=>{const{path:s}=t.detail,{cardId:o}=Ia(s,["block","card"]);if(o===this.props.id){let r=!1;s.includes("back")&&(r=!0),this.setState({flipped:r},()=>{this.props.type!=="stack"&&!qm(this.cardRef.current,"center")&&this.cardRef.current.scrollIntoView({behavior:"instant",block:"center"})})}};handleFlip=t=>{const{block:s,index:o}=this.props,r=window.getSelection(),a=r.toString()&&this.cardRef.current?.contains(r.anchorNode);if(t.detail>1&&r.empty(),t&&t.target.closest("a")||a)return;const i=!this.state.flipped;this.setState({areSidesReady:!1,flipped:i,hasFlippedOnce:!0});const c=i?"back":"front",d=s?.items?.[o],l=d?.[c]?.media,u=`items:${s?.id}/items:${d?.id}/${c}`;this.props.onTranscriptUpdate?.({audioPlayerId:pn({refs:u}),transcriptMedia:l}),this.props.onFlip?.(this.props.index,i)};handleTouchEnd=t=>{t.stopPropagation()};handleSideReady=()=>{this.setState({areSidesReady:!0})}}const X8=wl(Ke(fee)),Qa=_("flashcard-side"),xu=_("flashcard-side-flip");class Br extends h.PureComponent{static descriptionActionTypes={INITIAL:"INITIAL",INSERTING:"INSERTING",DELETING:"DELETING"};static initialState={descriptionAction:Br.descriptionActionTypes.INITIAL,isAtLongOverflowBottom:!1,isLong:!1,isLongOverflow:!1,isTooltipVisible:!1,scrollbarWidthOffset:void 0};id;constructor(t){super(t),this.handleMouseEnterAudio=this.handleMouseEnterAudio.bind(this),this.handleMouseLeaveAudio=this.handleMouseLeaveAudio.bind(this),this.id=(0,m0.uniqueId)("flashcard-side")}state=Br.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:t,index:s,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${t}-${s}-${r}-flip-btn`);a&&o&&(a.style.opacity="0.6")};handleMouseLeaveAudio=()=>{const{itemId:t,index:s,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${t}-${s}-${r}-flip-btn`);a&&o&&(a.style.opacity="1")};render(){const{props:{activeIndex:t,allowTabNavigation:s,block:o,className:r,description:a,getL10nValue:i,index:c,itemId:d,media:l,isActiveSide:u,isAriaHidden:m,isFlipped:p,labels:g,lessonId:C,onFlip:v,prefersKeyboardNavigation:x,settingShowHint:y,side:S,size:L,style:b,type:T},refDescription:N,refDescriptionBottom:k,refSide:E,state:{isAtLongOverflowBottom:I,isLong:A,isLongOverflow:R,isTooltipVisible:j,scrollbarWidthOffset:O}}=this,w=S==="front",P=S==="back",M=L==="small",z=L==="large",$=T==="description",F=T==="fullimage",V=T==="image",K=w?g?.a11yBlockFlashcardFront:g?.a11yBlockFlashcardBack,Z=`items:${o?.id}/items:${d}/${w?"front":"back"}`,X=Qa({back:P,flipped:p,front:w,fullimage:F}).mix(r),{image:te,audio:W}=i(l)??{},D=Qa("content",{small:M,large:z,front:w,fullimage:F,image:V,"long-overflow":R,"long-overflow-bottom":I,"has-audio":!!W}),H=xu({"audio-expansion":!0}),B=xu("btn",{"visually-hidden":!y,"prefers-keyboard":x,round:!0}),G=xu("icon"),Y=xu("tooltip",{visible:j}),J=Qa("img",{small:M,large:z,centered:V,full:F}),Q=Qa("description",{"has-audio":!!W,long:A&&!R,"long-overflow":R,short:!A,large:z}),se=Qa("description-bottom"),re=O==null?void 0:{right:O},he=te?.alt??`Image ${c+1}`,ve=vt(te),Se=`${this.id}-click-to-flip-text`,ut=`${this.id}-image`,kt=`${this.id}-description`;return(0,n.jsxs)("div",{"aria-label":K,className:X,inert:m,ref:E,role:"group",style:b,tabIndex:-1,children:[(0,n.jsxs)("div",{className:D,children:[(0,n.jsxs)("div",{className:H,onMouseEnter:this.handleBtnMouseEnter,onMouseLeave:this.handleBtnMouseLeave,style:re,children:[(0,n.jsx)("button",{"aria-labelledby":`${Se} ${kt} ${ut}`,className:B,id:`${d}-${c}-${S}-flip-btn`,onBlur:this.handleBtnBlur,onClick:v,onFocus:this.handleBtnFocus,tabIndex:s&&u?0:-1,type:"button",children:(0,n.jsx)(hF,{className:G})}),(0,n.jsx)("div",{"aria-hidden":"true",className:Y,id:Se,onClick:Bo,children:g?.blocksClickToFlip})]}),(F||V)&&(0,n.jsx)(vee,{alt:he,className:J,imageId:ut,l10nId:jt(l),url:ve}),$&&(0,n.jsxs)("div",{className:Q,ref:N,tabIndex:u&&R?0:void 0,children:[(0,n.jsx)(Le,{allowTabNavigation:s&&!m,id:kt,value:a}),R&&(0,n.jsx)("div",{className:se,ref:k})]})]}),W&&(0,n.jsx)("div",{className:Qa("audio-player",{text:$,image:V}),onMouseEnter:this.handleMouseEnterAudio,onMouseLeave:this.handleMouseLeaveAudio,children:(0,n.jsx)($t,{activeIndex:t,blockId:o.id,index:`${d}-${c}-${S}`,isOverlayAudio:F,item:{id:d,media:l},itemIndex:c,labels:g,lessonId:C,media:l,mediaType:"audio",refs:Z,shouldPause:!u,side:S})})]})}componentDidMount(){this.checkDescriptionSize(this.props),this.checkDescriptionSizeDebounced=Cu()(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(t,s){const{props:{allowTabNavigation:o,blockType:r,isFlipped:a,isActiveSide:i,isHidden:c,onReady:d,type:l}}=this;t.isHidden&&!c&&this.checkDescriptionSize(this.props),t.isFlipped!==a&&(i&&o?(this.refSide.current?.focus?.(),this.readyTimeout=setTimeout(()=>{d()},700)):clearTimeout(this.readyTimeout)),l==="description"&&this.handleUpdatesDescription(t,s),r==="stack"&&i&&!t.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=t=>{ls(t)&&this.state.isTooltipVisible&&this.setState({isTooltipVisible:!1})};handleUpdatesDescription=(t,s)=>{const{props:{isFlipped:o,isActiveSide:r},state:{isLongOverflow:a}}=this;t.isFlipped!==o&&r&&this.scrollDescriptionToTop(),this.handleUpdatesDescriptionSize(t,s),!s.isLongOverflow&&a?(this.setLongBottomObserver(),this.setScrollbarWidth()):s.isLongOverflow&&!a&&this.cleanupLongBottomObserver()};handleUpdatesDescriptionSize=(t,s)=>{const{INSERTING:o,DELETING:r}=Br.descriptionActionTypes,{props:{description:a,size:i,type:c,getL10nValue:d},state:{descriptionAction:l,isLong:u,isLongOverflow:m}}=this,p=d(a)?.length||0,g=d(t.description)?.length||0;l!==o&&p>g?this.setState({descriptionAction:o}):l!==r&&p<g?this.setState({descriptionAction:r}):(l!==s.descriptionAction||u!==s.isLong||m!==s.isLongOverflow||i!==t.size||c!==t.type||p!==g)&&this.checkDescriptionSize(t)};checkDescriptionSize=t=>{const{DELETING:s}=Br.descriptionActionTypes,{props:{size:o},refDescription:{current:r},state:{descriptionAction:a,isLong:i,isLongOverflow:c}}=this;if(!r)return;r&&r.scrollHeight>r.clientHeight?i&&!c?this.setState({isLongOverflow:!0}):!i&&!c&&this.setState({isLong:!0}):(a===s||o!==t.size)&&this.setState(Br.initialState)};scrollDescriptionToTop=()=>{const t=this.refDescription.current;this.state.isLong&&t&&(t.scrollTop=0)};setLongBottomObserver=()=>{const t=this.refDescriptionBottom.current;if(t&&this.longBottomObserver==null){const s=o=>{const r=o?.[0]?.isIntersecting??!1;this.setState({isAtLongOverflowBottom:!r})};this.longBottomObserver=new IntersectionObserver(s,{threshold:[0,1]}),this.longBottomObserver.observe(t)}};cleanupLongBottomObserver=()=>{this.longBottomObserver?.disconnect?.(),this.longBottomObserver=void 0};setScrollbarWidth=()=>{const t=this.refDescription.current;if(t){const s=t.offsetWidth-t.clientWidth;s>0&&this.setState({scrollbarWidthOffset:s})}}}const J8=wl(Ke(e=>(0,n.jsx)(Br,{...e}))),gee=e=>{const{cardMode:t,customBackgroundColorContrast:s}=Zt(),o=Me()?.theme,r=Al(),a=jn(),c=a===q.IMAGE&&r?.overlayColor===nt.LIGHT,d=bs(),l=o?.accentContrast,u=l===pe.AUTO,m=(0,h.useMemo)(()=>{let g="#fafafa";if(t===Fs.TRANSPARENT)switch(a){case q.DARK:g="#525252";break;case q.BLACK:g="#1a1a1a";break;case q.IMAGE:c?g="rgba(0, 0, 0, 0.7)":g="rgba(255, 255, 255, 0.7)";break;case q.ACCENT:case q.COLOR:case q.TINT:if(d!=null)switch(va(d)){case ct.LIGHT:g=sn(.5,d);break;case ct.MED:g=En(.35,d);break;case ct.DARK:g=En(.65,d);break;case ct.NEAR_BLACK:g=sn(.1,d);break}}const C={"--color-background":g},v=a===q.COLOR?s:l;if((a===q.ACCENT||a===q.COLOR)&&t===Fs.TRANSPARENT&&u){const x=At({backgroundColor:g,contrast:v});C["--color-text"]=x}return C},[d,a,t,s,u,c,l]),p={...e,style:m};return(0,n.jsx)(J8,{...p})},vee=({alt:e,className:t,imageId:s,l10nId:o,url:r})=>{const a=lr(e);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ss,{alt:a,className:t,"data-l10n-id":o,id:s,src:r}),!a&&(0,n.jsx)("span",{className:"visually-hidden-always",children:"No image alternative text"})]})};class Cee extends h.Component{static defaultProps={editable:!1,isRTL:!1,items:[],onStep:()=>{},stack:!1};state={activeIndex:0,flipStateMap:{},prefersKeyboardNavigation:!0};render(){const{blockId:t,animateBlockEntrance:s,initiallyVisible:o,isHidden:r,isLearner:a,items:i,labels:c,lessonId:d,onStep:l,previewType:u,isRTL:m,settings:p,stack:g}=this.props,{activeIndex:C}=this.state,{prefersKeyboardNavigation:v}=this.state,{entranceAnimation:x,showHint:y}=p,S=U()("block-flashcards",{"block-flashcard--column":!g,"block-flashcard--stack":g,"block-flashcards--no-animation":!x}),b=p.flashcardSize==="1"?"small":p.flashcardSize==="2"?"large":i.length>2?"small":"large",T=u===rr.MOBILE_PORTRAIT||u===rr.MOBILE_LANDSCAPE;return(0,n.jsx)(we,{className:S,children:g?(0,n.jsx)(Oe,{animateBlockEntrance:s,initiallyVisible:o,isLearner:a,children:(0,n.jsx)("div",{className:"block-flashcard-carousel",children:(0,n.jsx)(cu,{blockId:t,items:i,children:({carouselRef:N})=>(0,n.jsx)(au,{iconNameLeft:"chevron-left",iconNameRight:"chevron-right",isInfinite:!1,isRTL:m,labelCarousel:c?.a11yBlockFlashcardStack,labelCarouselRoleDesc:c?.a11yBlockFlashcardStackRoleDescription,labelSlideControls:c?.a11yBlockFlashcardStackSlideControls,labelSlideControlsGoToNext:c?.a11yBlockFlashcardStackSlideControlsGoToNext,labelSlideControlsGoToPrevious:c?.a11yBlockFlashcardStackSlideControlsGoToPrevious,labelSlideControlsGoToSlide:c?.a11yBlockFlashcardStackSlideControlsGoToSlide,labelSlideCounterPreposition:c?.blocksPreposition,labelSlidePreposition:c?.a11yBlockFlashcardStackSlidePreposition,labelSlideRoleDesc:c?.a11yBlockFlashcardStackSlideRoleDescription,onChange:this.handleCarouselChange.bind(this),ref:N,shouldMouseEmulateTouch:T,shouldUseCounter:!0,shouldUseGoToSlide:!1,children:i.map((k,E)=>(0,n.jsx)(X8,{activeIndex:C,backDescription:k?.back?.description,backMedia:k?.back?.media,backType:k?.back?.type,frontDescription:k?.front?.description,frontMedia:k?.front?.media,frontType:k?.front?.type,id:k?.id,index:E,isHidden:r,labels:c,lessonId:d,onFlip:this.handleFlip.bind(this),onStep:l,prefersKeyboardNavigation:v,settingShowHint:y,size:"large",type:"stack",wrapElement:"div"},k?.id))})})})}):(0,n.jsx)(Oe,{animateBlockEntrance:s,className:"block-flashcards__animation",initiallyVisible:o,isLearner:a,siblingDelay:.25,children:(0,n.jsx)("ol",{className:"block-flashcards__wrapper",role:"list",children:i.map((N,k)=>(0,n.jsx)(X8,{activeIndex:C,backDescription:N?.back?.description,backMedia:N?.back?.media,backType:N?.back?.type,blockId:t,frontDescription:N?.front?.description,frontMedia:N?.front?.media,frontType:N?.front?.type,id:N?.id,index:k,isHidden:r,labels:c,lessonId:d,onStep:l,prefersKeyboardNavigation:v,settingShowHint:y,size:b,type:"grid",wrapElement:"li",wrapRole:"listitem"},N?.id))})})})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("mousedown",this.handleMouseDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mousedown",this.handleMouseDown)}handleKeyDown=t=>{!this.state.prefersKeyboardNavigation&&!PV(t)&&this.setState({prefersKeyboardNavigation:!0})};handleMouseDown=()=>{this.state.prefersKeyboardNavigation&&this.setState({prefersKeyboardNavigation:!0})};handleFlip(t,s){this.setState(o=>({flipStateMap:{...o.flipStateMap,[t]:s}}))}handleCarouselChange(t){const{block:s,onTranscriptUpdate:o}=this.props,{flipStateMap:r}=this.state,a=r[t]?"back":"front",i=s.items?.[t],c=i?.[a]?.media,d=`items:${s?.id}/items:${i?.id}/${a}`;o?.({audioPlayerId:pn({refs:d}),transcriptMedia:c}),this.setState({activeIndex:t})}}const q8=cp(Ke(wl(Cee))),Ap=_("pill-button");function e9({allowTabNavigation:e=!0,ariaLabel:t,children:s,className:o,href:r,onClick:a=()=>{},onFocus:i,ref:c,size:d="sm",testId:l,variant:u="plain"}){const m=Ap({[u]:!0,[d]:!0}).mix(o),p=!e;return r?(0,n.jsx)(cs,{"aria-hidden":p,"aria-label":t,className:m,"data-testid":l,onClick:a,onFocus:i,tabIndex:e?void 0:-1,to:r,children:(0,n.jsx)("span",{className:Ap("content"),children:s})}):(0,n.jsx)("button",{"aria-hidden":p,"aria-label":t,className:m,"data-testid":l,onClick:a,onFocus:i,ref:c,tabIndex:e?void 0:-1,type:"button",children:(0,n.jsx)("span",{className:Ap("content"),children:s})})}const t9=({allowNext:e=!1,canProceed:t=!1,isReduceMotion:s=!1,onNext:o,onSubmit:r,quizNext:a,quizSubmit:i})=>{const c=t?!0:void 0,d=t?void 0:r,l=t?-1:void 0,u=t?void 0:!0,m=t?o:void 0,p=t?void 0:-1,g=(0,h.useRef)(null),C=(0,Ae.A)(t);(0,h.useEffect)(()=>{e&&!C&&t&&setTimeout(()=>{g.current?.focus?.({preventScroll:s})},0)},[e,t,s,C]);const v=U()("quiz-card__actions",{"quiz-card__actions--proceed":t}),x=U()("quiz-card__button","quiz-card__button--next","brand_ui",{"brand--background":t,"visually-hidden-always":!t});return(0,n.jsxs)("div",{className:v,children:[(0,n.jsx)("div",{className:"quiz-card__submit brand--ui",children:!c&&(0,n.jsx)("button",{className:"quiz-card__button","data-testid":"quiz-submit-button",onClick:d,tabIndex:l,type:"button",children:i})}),(0,n.jsx)("br",{className:"visually-hidden-always",role:"presentation"}),e&&(0,n.jsx)("div",{className:"quiz-card__next brand--ui",children:(0,n.jsx)("button",{"aria-disabled":u,"aria-hidden":u,className:x,"data-testid":"quiz-next-button",onClick:m,ref:g,tabIndex:p,type:"button",children:a})})]})},xee=({children:e,isActive:t,isComplete:s,isTimedQuiz:o,style:r})=>(0,n.jsx)("div",{"aria-hidden":t?void 0:!0,className:bee({isActive:t,isComplete:s,isTimedQuiz:o}),"data-testid":"quiz-card",inert:t?void 0:!0,style:r,children:(0,n.jsx)("div",{className:"quiz-card__container",children:(0,n.jsx)("div",{className:"quiz-card__row",children:(0,n.jsx)("div",{className:"quiz-card__main",children:e})})})}),bee=({isActive:e,isComplete:t,isTimedQuiz:s})=>U()("quiz-card",{"quiz-card--active":e,"quiz-card--done":t,"quiz-card--timed":s}),s9=xee,{FILL_IN_THE_BLANK:n9,MATCHING:yee,MULTIPLE_CHOICE:Lee,MULTIPLE_RESPONSE:See}=Wt;function Tee(e,t){return e.map(s=>String(t(s?.title)??"")).filter(Boolean).join(", ")}function Nee(e,t,s){const o=t!=null?e.find(r=>r.id===t):e.find(r=>r.correct===!0);return String(s(o?.title)??"")}function kee(e,t,s){return String(s(e?.[t]?.title)??"")}function o9(e,t,s){return t.filter(e).reduce((o,r,a)=>{const i=String(s(r?.title)??"");return a===0?i:o+", "+i},"")}function Iee(e,t,s){return o9(r=>Array.isArray(e)?e.includes(r.id):!!r.correct,t,s)}function Eee(e,t,s){return o9((r,a)=>t.includes(a),e,s)}function jee({answers:e,getL10nValue:t,selection:s,correctLabel:o,userLabel:r,matchLabel:a="Match Item: ",revealAnswers:i}){const c=Object.fromEntries(Object.entries(s).map(([d,l])=>[l,d]));return e.map((d,l)=>{const u=String(t(d?.title)??""),m=String(t(d?.matchTitle)??""),p=c?.[l],g=String(t(e?.[Number(p)]?.title)??"");return i===Te.INCORRECT?`${a}${m}. ${r}: ${g}.`:`${a}${m}. ${o}: ${u}. ${r}: ${g}.`}).join(" ")}function Rp({correctAnswer:e,selectedAnswer:t,correctLabel:s,userLabel:o,revealAnswers:r}){return!e||!t||r===Te.NONE?"":r===Te.INCORRECT?`${o}: ${ws(t)}.`:`${s}: ${ws(e)}. ${o}: ${ws(t)}.`}function wee(e,t){return e.type===n9?t?.quizAcceptableResponses:t?.a11yCorrectLive}function Aee({getL10nValue:e,isComplete:t,item:s,selection:o,labels:r,revealAnswers:a}){if(!s||!t)return null;const i=s?.answers??[],c=s?.correct,d=s?.corrects,l=wee(s,r),u=r?.a11yAnswerLive;switch(s.type){case yee:return jee({getL10nValue:e,answers:i,selection:o,correctLabel:l,userLabel:u,revealAnswers:a});case n9:return Rp({correctAnswer:Tee(i,e),selectedAnswer:o,correctLabel:l,userLabel:u,revealAnswers:a});case Lee:return Rp({correctAnswer:Nee(i,c,e),selectedAnswer:kee(i,o,e),correctLabel:l,userLabel:u,revealAnswers:a});case See:return Rp({correctAnswer:Iee(d,i,e),selectedAnswer:Eee(i,o,e),correctLabel:l,userLabel:u,revealAnswers:a})}return null}const r9=({canProceed:e,feedbackRef:t,feedbackValue:s,isActive:o,isComplete:r,isCorrect:a,item:i,labels:c,quizCorrect:d,quizIncorrect:l,revealAnswers:u,selection:m})=>{const{announcePolite:p,clearAnnouncements:g}=In(),C=(0,Ae.A)(e),v=is(),y=!!Ie(s),S=a?d:l,L=(0,h.useCallback)(()=>{const N=Aee({getL10nValue:v,isComplete:r,item:i,labels:c,revealAnswers:u,selection:m}),k=s?ws(v(s)):"",E=S+". "+N+" "+k;let I;return E&&(I=setTimeout(()=>{p(E)},250)),()=>{clearTimeout(I)}},[p,s,v,r,i,c,S,u,m]);(0,h.useLayoutEffect)(()=>{!C&&e&&u!==Te.NONE&&L()},[e,C,L,u]),(0,h.useEffect)(()=>g,[g]);const b=U()("quiz-card__feedback",{"quiz-card__feedback--active":e,"quiz-card__feedback--frame":y}),T=U()("quiz-card__feedback-icon",{"quiz-card__feedback-icon--correct":a});return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{"aria-hidden":o?void 0:!0,className:b,ref:t,tabIndex:o?-1:void 0,children:(0,n.jsx)("div",{className:"quiz-card__main--feedback",children:(0,n.jsxs)("div",{"aria-label":c?.a11yQuizFeedback,className:"quiz-card__feedback-wrap",role:"group",children:[(0,n.jsx)("div",{className:T,children:(0,n.jsx)("i",{"aria-hidden":"true",className:a?"icon icon-Master-05":"icon icon-Master-06"})}),(0,n.jsx)("div",{className:"quiz-card__feedback-label",children:S}),s&&(0,n.jsx)("div",{children:(0,n.jsx)(Le,{allowTabNavigation:r&&o,className:"quiz-card__feedback-text",value:s})})]})})})})},{FILL_IN_THE_BLANK:Ree}=Wt,Pee=({children:e,type:t})=>(0,n.jsx)("div",{className:Mee({type:t}),children:e}),Mee=({type:e})=>U()("quiz-card__interactive",{"quiz-card__interactive--no-border":[Ree].includes(e)}),a9=Pee,Vo=({allowTabNavigation:e,blockId:t="",enableVideoPlaybackSpeed:s,index:o,isOverlayAudio:r,item:a,labels:i={},media:c,settings:d,shouldPause:l})=>c==null||!Object.keys(c).some(u=>u!=="tmp")?null:(0,n.jsx)("div",{className:"quiz-card__media",children:(0,n.jsx)($t,{allowTabNavigation:e,blockId:t,enableVideoPlaybackSpeed:s,index:o,isOverlayAudio:r,item:a,labels:i,media:c,opts:d,shouldPause:l})}),Tve=(e,t)=>s=>s>=e&&s<t,i9=e=>e<10?`0${e}`:String(e),Oee=e=>Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(e),c9=e=>e.reduce((t,s)=>s==null||isNaN(s)?t:t+s,0),Bee=(e,t)=>{const s=Ns(),o=(0,Ae.A)(t);(0,h.useEffect)(()=>{!o&&t&&e&&Id()(e.focus)&&e.focus({preventScroll:s})},[t,s,o,e])},bu=_("question-counter"),Dee=({isActive:e=!1,labels:t,questionLabel:s,questionNumber:o,totalQuestions:r})=>{const a=(0,h.useRef)(null);Bee(a.current,e);const i=`${t?.quizQuestion} ${o} ${t?.lessonPreposition} ${r}`,c=`${i9(o)}/${i9(r)}`;return(0,n.jsx)("div",{className:bu(),children:(0,n.jsxs)("h1",{"aria-label":i,className:bu("heading"),ref:a,tabIndex:-1,children:[(0,n.jsx)("span",{"aria-hidden":"true",className:bu("label"),children:s}),(0,n.jsx)("span",{"aria-hidden":"true",className:bu("count"),children:c})]})})},Hee=_("question-title"),Fee=({allowTabNavigation:e,htmlId:t,value:s})=>(0,n.jsx)(Le,{allowTabNavigation:e,className:Hee(),"data-testid":"quiz-question-title",id:t,value:s}),Vee=({allowTabNavigation:e=!1,correctAnswerColor:t,correctAnswerColorContrast:s,errorMessageId:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:i,isCorrect:c=!1,labels:d,onEnterToSubmit:l=()=>{},onChange:u=()=>{},options:m,questionHtmlId:p="",quizAcceptableResponses:g="",quizAnswerPlaceholder:C,revealAnswers:v=Te.NONE,value:x=""})=>{const y=(0,h.useRef)(null),[S]=(0,h.useState)(()=>Cr()("fitb-")),L=is(),b=zee({options:m,getL10nValue:L}),T=`${S}-feedback`,N=`${S}-acceptable`,k=`${S}-input`,E=i?`${T} ${N}`:o||void 0,I=i?void 0:C,A=e?0:mu,R=v===Te.ALL||v===Te.INCORRECT,j=v===Te.ALL||c&&v===Te.INCORRECT,O=c?t:r,P=t&&r&&{"--fa-primary-color":At({backgroundColor:O,contrast:c?s:a}),"--fa-secondary-color":O},M=r&&{backgroundColor:At({backgroundColor:r,contrast:a}),fill:r,borderRadius:"50%"},z=U()("quiz-fill__icon",{"quiz-fill__icon--visible":i}),$=U()("quiz-fill__options",{"quiz-fill__options--visible":i}),F=(0,h.useCallback)(X=>{u(X.currentTarget.value)},[u]),V=(0,h.useCallback)(X=>{ba(X)&&l(X)},[l]),K=i?void 0:F,Z=i?void 0:V;return(0,n.jsxs)("div",{className:"quiz-fill",children:[(0,n.jsxs)("div",{className:"quiz-fill__container",children:[(0,n.jsx)("input",{"aria-describedby":E,"aria-hidden":!e,"aria-invalid":o?!0:void 0,"aria-labelledby":p,"aria-readonly":i,"aria-required":"true",autoComplete:"off",className:"quiz-fill__input ignore-prefers",id:k,onChange:K,onKeyDown:Z,placeholder:I,readOnly:i,ref:y,tabIndex:A,type:"text",value:x}),R&&(0,n.jsxs)("div",{className:z,id:T,children:[c&&(0,n.jsx)(ie,{"aria-label":d?.quizCorrect,name:"circle-check",styleIcon:{height:"2rem",...P}}),!c&&(0,n.jsx)(JF,{"aria-label":d?.quizIncorrect,style:M})]})]}),j&&i&&(0,n.jsx)("div",{className:$,id:N,children:(0,n.jsx)(Le,{value:`${g}: ${b}`})})]})},zee=({options:e,getL10nValue:t})=>e.map(o=>(t(o.title)??"").trim()).join(", "),l9=Vee;function $ee({correctAnswerColor:e,correctAnswerColorContrast:t}){const s=as(),o=At({backgroundColor:e,contrast:t}),r=e?{"--fa-primary-color":o,"--fa-secondary-color":e}:void 0;return(0,n.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,n.jsx)(ie,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--correct",name:"circle-check",style:r}),(0,n.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,n.jsx)("span",{className:"matching-results-item-feedback-text-result",children:s?.quizCorrect})})]})}var Za=f(80588);function _ee({correctAnswerValue:e,incorrectAnswerColor:t,incorrectAnswerColorContrast:s,shouldRevealCorrectAnswer:o}){const[r,a]=Za.useState(!0),[i,c]=Za.useState(!1),d=Za.useRef(null),u=`matching-text-${Za.useId()}`,m=as(),p=(0,Ae.A)(e),g=Za.useCallback(()=>{a(b=>!b)},[]);Za.useLayoutEffect(()=>{if(p!==e){const b=d.current;b!=null&&b.scrollWidth>b.clientWidth&&c(!0)}},[p,e]);const C=At({backgroundColor:t,contrast:s}),v=t?{"--fa-primary-color":C,"--fa-secondary-color":t}:void 0,x=U()("matching-results-item-feedback-text",{"matching-results-item-feedback-text--collapsed":r}),y=U()("matching-results-item-feedback-text-btn-icon",{"matching-results-item-feedback-text-btn-icon--collapsed":r}),S=U()("matching-results-item-feedback-text-extra",{"matching-results-item-feedback-text-extra--collapsed":r}),L=U()("matching-results-item-feedback-text-extra-text",{"matching-results-item-feedback-text-extra-text--collapsed":r});return(0,n.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,n.jsx)(ie,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--incorrect",name:"circle-xmark-duotone",style:v}),!o&&(0,n.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,n.jsx)("span",{className:"matching-results-item-feedback-text-result",children:m?.quizIncorrect})}),o&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("span",{className:x,children:[(0,n.jsxs)("span",{className:"matching-results-item-feedback-text-result",children:[m?.quizIncorrect,"."]}),i&&(0,n.jsx)("button",{"aria-controls":u,"aria-expanded":!r,"aria-label":r?m?.a11yMatchingItemShowMore:m?.a11yMatchingItemShowLess,className:"matching-results-item-feedback-text-btn",onClick:g,type:"button",children:(0,n.jsx)(ie,{className:y,name:"caret-down",style:v})}),(0,n.jsx)("span",{className:S,children:(0,n.jsxs)("span",{className:L,id:u,ref:d,children:[m?.quizCorrect,": ",(0,n.jsx)(lt,{value:e})]})})]})})]})}function Uee({col1Id:e,col1Value:t,col2Id:s,col2Value:o,correctAnswerColor:r,correctAnswerColorContrast:a,correctAnswerValue:i,height:c,incorrectAnswerColor:d,incorrectAnswerColorContrast:l,revealAnswers:u}){const m=e===s,p=u!=="incorrect",g=u!=="none";return(0,n.jsxs)("li",{className:"matching-results-item",role:"listitem",children:[(0,n.jsxs)("div",{className:"matching-results-item-pieces",children:[(0,n.jsxs)("div",{className:"matching-results-item-piece",style:c?{height:c}:void 0,children:[(0,n.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,n.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,n.jsx)("span",{className:"matching-results-item-piece-content",children:(0,n.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,n.jsx)(lt,{value:t})})})]}),(0,n.jsxs)("div",{className:"matching-results-item-piece",children:[(0,n.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,n.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,n.jsx)("span",{className:"matching-results-item-piece-content",children:(0,n.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,n.jsx)(lt,{value:o})})})]})]}),g&&m&&(0,n.jsx)($ee,{correctAnswerColor:r,correctAnswerColorContrast:a}),g&&!m&&(0,n.jsx)(_ee,{correctAnswerValue:i,incorrectAnswerColor:d,incorrectAnswerColorContrast:l,shouldRevealCorrectAnswer:p})]})}function Gee({answers:e,columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,itemHeight:i,revealAnswers:c,rows:d}){return(0,n.jsx)("div",{className:"matching-results",children:(0,n.jsx)("ul",{className:"matching-results-list",role:"list",children:d.map((l,u)=>{const[m,p]=l,g=t==="freezeFirst"?e.find(C=>C.id===m.id)?.matchTitle:e.find(C=>C.id===p.id)?.title;return(0,n.jsx)(Uee,{col1Id:m.id,col1Value:m.value,col2Id:p.id,col2Value:p.value,correctAnswerColor:s,correctAnswerColorContrast:o,correctAnswerValue:g,height:i,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,revealAnswers:c},u)})})})}function Wee(e){return Object.keys(e).length===0}function Kee(e,t){return t in e}function Qee(e,t){return Object.values(e).includes(t)}function Pp(e,t){for(const s in e)if(e[s]===t)return s}function Zee(e,t,s){return{...e,[t]:s}}function yu(e,t){return t in e?It(e,[t]):e}function Yee(e,t){const s=Pp(e,t);return s===void 0?e:yu(e,s)}function d9(e,t,s){let o=yu(e,t);return o=Yee(o,s),Zee(o,t,s)}function Xee(e){return Object.keys(e).length}var Jee=f(93696),Mp=f.n(Jee);Mp().dynamicDrop(!0),Mp().pointerMoveTolerance(8);const zn=Mp();var Ya=f(80588);function qee(e,{onStart:t,onMove:s,onEnd:o,isEnabled:r=!0}){const a=Ya.useRef({x:0,y:0}),i=Ya.useRef({x:0,y:0}),c=Ya.useRef(!1),d=Ya.useRef(null),l=Ya.useRef(void 0);Ya.useEffect(()=>{const u=e.current;if(!u||!r||c.current)return;d.current=p_(u);function m(){const p=d.current;return p instanceof Window?{x:window.scrollX,y:window.scrollY}:{x:p.scrollLeft,y:p.scrollTop}}return l.current=()=>{const p=m(),g=p.x-i.current.x,C=p.y-i.current.y;(g!==0||C!==0)&&(a.current.x+=g,a.current.y+=C,e.current&&(e.current.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,s?.({...a.current})),i.current=p)},zn(u).draggable({inertia:!1,autoScroll:{container:d.current,distance:5,interval:10,margin:50},listeners:{start:()=>{a.current={x:0,y:0},i.current=m(),d.current?.addEventListener("scroll",l.current,{passive:!0}),t?.()},move:p=>{a.current.x+=p.dx,a.current.y+=p.dy,u.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,s?.({...a.current})},end:()=>{a.current={x:0,y:0},u.style.transform="",d.current?.removeEventListener("scroll",l.current),setTimeout(()=>{o?.()},0)}}}),c.current=!0,()=>{zn(u).unset(),d.current?.removeEventListener("scroll",l.current),c.current=!1}},[e,t,s,o,r])}var u9=f(80588);function ete(e,{isEnabled:t=!0,onDrop:s,onEnter:o,onLeave:r,overlap:a=.015}){const i=u9.useRef(!1);u9.useEffect(()=>{const c=e.current;if(!(!c||!t||i.current))return zn(c).dropzone({overlap:a,listeners:{drop:()=>{s?.()},dragenter:()=>{o?.()},dragleave:()=>{r?.()}}}),i.current=!0,()=>{zn(c).unset(),i.current=!1}},[e,s,o,r,t,a])}var Qs=f(80588);const h9=Qs.memo(function({col:t,height:s,id:o,index:r,isActive:a,isFrozen:i,isMatched:c,isMoved:d,onClick:l,onDragEnd:u,onDragStart:m,onDrop:p,onDropZoneEnter:g,onDropZoneLeave:C,onKeyDown:v,value:x,valueOtherColumnActive:y,valueOtherColumnMatch:S}){const[L,b]=Qs.useState(!1),T=Qs.useRef(null),N=Qs.useRef(null),k=as(),E=Qs.useCallback(()=>{l({col:t,id:o,value:x})},[t,o,l,x]),I=Qs.useCallback(()=>{b(!0),m({col:t,id:o,value:x})},[t,o,m,x]),A=Qs.useCallback(()=>{u(),b(!1)},[u]),R=Qs.useCallback(()=>{p({col:t,id:o,value:x})},[t,o,p,x]),j=Qs.useCallback(()=>{g({col:t,id:o,value:x})},[t,o,g,x]),O=Qs.useCallback(()=>{C()},[C]),w=Qs.useCallback(F=>{v(F,{col:t,index:r})},[t,r,v]);Qs.useEffect(()=>{t===1&&r===0||N.current?.setAttribute("tabindex","-1")},[]),qee(T,{isEnabled:!i,onStart:I,onEnd:A}),ete(T,{isEnabled:i,onDrop:R,onEnter:j,onLeave:O});const P=U()("matching-interaction-piece",{"matching-interaction-piece--matched":c,"matching-interaction-piece--moved":d}),M=S==null?null:(0,n.jsxs)(n.Fragment,{children:[k?.a11yMatchingItemMatchedWith," ",(0,n.jsx)(lt,{value:S})]}),z=y==null?(0,n.jsx)(n.Fragment,{children:k?.a11yMatchingItemSelectableItem}):(0,n.jsxs)(n.Fragment,{children:[k?.a11yMatchingItemMatchWith," ",(0,n.jsx)(lt,{value:y})]}),$=U()("matching-interaction-item",{draggable:!i,"draggable--dragging":!i&&L,droppable:i});return(0,n.jsx)("li",{className:$,ref:T,role:"listitem",children:(0,n.jsxs)("button",{"aria-pressed":a||c?!0:void 0,className:P,"data-state":a?"active":void 0,onClick:L?void 0:E,onKeyDown:w,ref:N,style:s?{height:s}:void 0,type:"button",children:[i?(0,n.jsx)("span",{className:"matching-interaction-piece-decoration"}):(0,n.jsx)(ie,{className:"matching-interaction-piece-decoration",name:"grip-dots-vertical"}),t===2?(0,n.jsx)("span",{className:"matching-interaction-piece-jigsaw"}):null,(0,n.jsx)("span",{className:"matching-interaction-piece-content",children:(0,n.jsx)("span",{"data-matching-interaction-piece-content-inline":"",children:(0,n.jsx)(lt,{value:x})})}),(0,n.jsx)("span",{className:"visually-hidden-always",children:M}),(0,n.jsx)("span",{className:"visually-hidden-always",children:z})]},o)})});var $e=f(80588);function tte({answers:e,columnBehavior:t,isActive:s,itemHeight:o,matches:r,onChange:a,onChangeItemHeight:i,onChangeRows:c,prefersKeyboardNavigation:d}){const l=(0,Ae.A)(s),u=(0,Ae.A)(t),m=(0,Ae.A)(e),p=(0,Ae.A)(r),g=as(),[C,v]=$e.useState(void 0),[x,y]=$e.useState(void 0),[S,L]=$e.useState(void 0),[b,T]=$e.useState(!1),N=$e.useRef(null),k=$e.useRef(null),E=$e.useRef(null),I=$e.useRef(void 0),A=$e.useRef(void 0),[R,j]=$e.useState(()=>Lu({answers:e,columnBehavior:t,columnBehaviorToShuffle:"freezeSecond"})),[O,w]=$e.useState(()=>Lu({answers:e,columnBehavior:t,columnBehaviorToShuffle:"freezeFirst"})),P=$e.useMemo(()=>e.map(B=>({col:1,id:B.id,value:B.title})).toSorted((B,G)=>{const Y=R.get(B.id)??1/0,J=R.get(G.id)??1/0;return Y-J}),[e,R]),M=$e.useMemo(()=>e.map(B=>({col:2,id:B.id,value:B.matchTitle})).toSorted((B,G)=>{const Y=O.get(B.id)??1/0,J=O.get(G.id)??1/0;return Y-J}),[e,O]),z=$e.useCallback(()=>{for(const H of N.current?.querySelectorAll('button:not([tabindex="-1"])')??[])H.setAttribute("tabindex","-1")},[]),$=$e.useCallback(H=>{const B=Array.from(R),G=Array.from(O);if(t==="freezeSecond"){const Y=new Array(G.length),J=B.map(re=>re[0]).filter(re=>!(re in H));for(const[re,he]of Object.entries(H)){const ve=O.get(he);Y[ve]=[re,ve]}for(let re=0;re<Y.length;re++)if(Y[re]==null){const he=J.shift();Y[re]=[he,re]}const Q=new Map(Y),se=m9(R,Q);se.length>0&&y(se),j(Q)}else{const Y=new Array(B.length),J=new Set(Object.values(H)),Q=G.map(he=>he[0]).filter(he=>!J.has(he));for(const[he,ve]of Object.entries(H)){const Se=R.get(he);Y[Se]=[ve,Se]}for(let he=0;he<Y.length;he++)if(Y[he]==null){const ve=Q.shift();Y[he]=[ve,he]}const se=new Map(Y),re=m9(O,se);re.length>0&&L(re),w(se)}},[t,R,O]),F=$e.useCallback(H=>{I.current=H},[]),V=$e.useCallback(()=>{A.current==null&&(I.current=void 0)},[]),K=$e.useCallback(H=>{A.current=H},[]),Z=$e.useCallback(()=>{A.current=void 0},[]),X=$e.useCallback(H=>{const B=I.current;if(B!=null){const G=H.col===1?H.id:B.id,Y=H.col===1?B.id:H.id,J=d9(r,G,Y);I.current=void 0,A.current=void 0,a(J)}},[r,a]),te=$e.useCallback(H=>{let B=null,G=!1,Y=C;if(H.col===1&&H.id in r)B=yu(r,H.id),Y=null;else if(H.col===2&&Pp(r,H.id)){const J=Pp(r,H.id);B=yu(r,J),Y=null}else C==null&&(Y={col:H.col,id:H.id,value:H.value},G=!0);if(C!=null)if(C.col===H.col)C.id===H.id?Y=null:Y={col:H.col,id:H.id,value:H.value};else{const J=H.col===1?H.id:C.id,Q=H.col===1?C.id:H.id;B=d9(r,J,Q),G=!0,Y=null}if(B!=null&&a(B),C!==Y&&v(Y),G){const Q=(H.col===1?E:k).current?.querySelector('button:not([aria-pressed="true"])');Q&&(z(),Q.removeAttribute("tabindex"),Q.focus({preventScroll:!d}))}},[d,C,r,a,z]),W=$e.useCallback((H,{col:B,index:G})=>{const Y=H.currentTarget;let J=!1,Q=null;switch(H.key){case"ArrowUp":J=!0,Q=Y.parentElement.previousElementSibling?.firstElementChild;break;case"ArrowDown":J=!0,Q=Y.parentElement.nextElementSibling?.firstElementChild;break;case"ArrowRight":J=!0,Q=B===1?E.current?.children[G]?.firstElementChild:void 0;break;case"ArrowLeft":J=!0,Q=B===2?k.current?.children[G]?.firstElementChild:void 0;break;case"Home":J=!0,Q=Y.closest("ul").firstElementChild.firstElementChild;break;case"End":J=!0,Q=Y.closest("ul").lastElementChild.firstElementChild;break}J&&(H.preventDefault(),H.stopPropagation()),Q&&(z(),Q.removeAttribute("tabindex"),Q.focus())},[z]);$e.useEffect(()=>{r!==p&&!Wee(r)&&$(r)},[$,r,p]),$e.useEffect(()=>{const H=({shouldFocus:Y})=>{const J=C.col===1?k:E;z();const Q=J.current.querySelector('button[data-state="active"]');Q?.removeAttribute("tabindex"),Y&&Q?.focus(),v(null)},B=Y=>{N.current?.contains(Y.target)||H({shouldFocus:!1})},G=Y=>{ls(Y)&&C!=null&&H({shouldFocus:!0})};return C==null?(document.removeEventListener("mousedown",B),document.removeEventListener("keydown",G)):(document.addEventListener("mousedown",B),document.addEventListener("keydown",G)),()=>{document.removeEventListener("mousedown",B),document.removeEventListener("keydown",G)}},[C,z]);const D=$e.useCallback(()=>{const H=Array.from(N.current?.querySelectorAll("[data-matching-interaction-piece-content-inline]")??[]);if(H.length===0)return;const B=H[0].closest("button");let G=0,Y;if(B){const Q=window.getComputedStyle(B),se=parseFloat(Q.paddingBlockStart)+parseFloat(Q.paddingBlockEnd),re=parseFloat(Q.borderTopWidth)+parseFloat(Q.borderBottomWidth);G=se+re,Y=parseFloat(Q.minHeight)}const J=H.reduce((Q,se)=>Math.max(Q,se.scrollHeight+G),0);Y&&Y>=J?i(void 0):i(J)},[i]);return $e.useEffect(()=>{(!l&&s||m!==e)&&D()},[l,s,e,m,D]),$e.useEffect(()=>{const H=N.current?.closest(".quiz-card");let B;return H!=null&&(B=new ResizeObserver(()=>{D()}),B.observe(H)),()=>{H!=null&&B!=null&&B.unobserve(H)}},[D]),$e.useEffect(()=>{let H,B;return x&&(H=setTimeout(()=>{y(void 0)},1e3)),S&&(B=setTimeout(()=>{L(void 0)},1e3)),()=>{clearTimeout(H),clearTimeout(B)}},[x,S]),$e.useEffect(()=>{b&&u!==t&&(a({}),$({}),v(void 0),j(Lu({answers:e,columnBehavior:t,columnBehaviorToShuffle:"freezeSecond"})),w(Lu({answers:e,columnBehavior:t,columnBehaviorToShuffle:"freezeFirst"})))},[b,t,u,e,a,$]),$e.useEffect(()=>{if(P.length<=0)return;const H=P.map((B,G)=>[B,M[G]]);c(H)},[P,M,c]),$e.useEffect(()=>{T(!0)},[]),(0,n.jsxs)("div",{className:"matching-interaction","data-testid":"matching-interaction",ref:N,children:[(0,n.jsx)("ul",{"aria-label":g?.a11yMatchingColumn1,className:"matching-interaction-col matching-interaction-col-1","data-col":"1",ref:k,role:"list",children:P.map((H,B)=>{const G=Kee(r,H.id);return(0,n.jsx)(h9,{col:1,height:o,id:H.id,index:B,isActive:C?.col===1&&C?.id===H.id,isFrozen:t==="freezeFirst",isMatched:G,isMoved:x?.map(Y=>Y.id).includes(H.id)??!1,onClick:te,onDragEnd:V,onDragStart:F,onDrop:X,onDropZoneEnter:K,onDropZoneLeave:Z,onKeyDown:W,value:H.value,valueOtherColumnActive:C?.col===2?C?.value:void 0,valueOtherColumnMatch:G?M[B]?.value:void 0},H.id)})}),(0,n.jsx)("ul",{"aria-label":g?.a11yMatchingColumn2,className:"matching-interaction-col matching-interaction-col-2","data-col":"2",ref:E,role:"list",children:M.map((H,B)=>{const G=Qee(r,H.id);return(0,n.jsx)(h9,{col:2,height:o,id:H.id,index:B,isActive:C?.col===2&&C?.id===H.id,isFrozen:t==="freezeSecond",isMatched:G,isMoved:S?.map(Y=>Y.id).includes(H.id)??!1,onClick:te,onDragEnd:V,onDragStart:F,onDrop:X,onDropZoneEnter:K,onDropZoneLeave:Z,onKeyDown:W,value:H.value,valueOtherColumnActive:C?.col===1?C?.value:void 0,valueOtherColumnMatch:G?P[B]?.value:void 0},H.id)})})]})}const Lu=({answers:e,columnBehavior:t,columnBehaviorToShuffle:s})=>{let o=e.map(r=>r.id);return t===s&&(o=(0,m0.shuffle)(o)),new Map(o.map((r,a)=>[r,a]))};function m9(e,t){const s=[];for(const[o,r]of e){const a=t.get(o);a!==r&&s.push({id:o,from:r,to:a})}return s}var Su=f(80588);function p9({columnBehavior:e="freezeSecond",matches:t={},onChange:s=()=>{},revealAnswers:o="none",...r}){const[a,i]=Su.useState([]),[c,d]=Su.useState(void 0),l=Su.useCallback(m=>{i(m)},[]),u=Su.useCallback(m=>{d(m)},[]);return r.isComplete?(0,n.jsx)(Gee,{...r,columnBehavior:e,itemHeight:c,revealAnswers:o,rows:a}):(0,n.jsx)(tte,{...r,columnBehavior:e,itemHeight:c,matches:t,onChange:s,onChangeItemHeight:u,onChangeRows:l})}function f9(e){return e==null||e===-1}function ste(e,t){return e===t}const nte=({allowTabNavigation:e=!1,color:t,correctId:s="",errorMessageId:o,isComplete:r,isCorrect:a=!1,isReduceMotion:i=!1,labels:c,onChange:d=()=>{},onEnterToSubmit:l=()=>{},options:u=[],questionHtmlId:m="",renderOptionText:p,isRetaking:g,revealAnswers:C=Te.NONE,selectedIndex:v=-1,shouldFocusFirst:x,onFocusFirstComplete:y})=>{const S=f9(v);return(0,n.jsx)(iu,{"aria-invalid":o?!0:void 0,"aria-labelledby":[m,o].filter(Boolean).join(" "),"aria-required":"true",role:"radiogroup",children:u.map((L,b,T)=>(0,n.jsx)(ote,{allowTabNavigation:e,color:t,id:L.id,index:b,isComplete:r,isCorrect:a,isCorrectOption:s===L.id,isFirst:b===0,isFresh:S,isLast:b===T.length-1,isReduceMotion:i,isRetaking:g,isSelected:!g&&ste(v,b),labels:c,onChange:d,onEnterToSubmit:l,onFocusFirstComplete:y,questionHtmlId:m,renderOptionText:p,revealAnswers:C,shouldFocusFirst:x,title:L.title},L.id))})},ote=({allowTabNavigation:e,color:t,id:s,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isFresh:c,isSelected:d,isReduceMotion:l,labels:u,onChange:m,onEnterToSubmit:p,questionHtmlId:g,renderOptionText:C,isRetaking:v,revealAnswers:x,shouldFocusFirst:y,onFocusFirstComplete:S,title:L})=>{const[b]=(0,h.useState)(()=>Cr()("qmc-")),T=(0,h.useRef)(null),N=(0,Ae.A)(d),k=!!r,E=e&&(d||c&&o===0)?0:mu,I=x===Te.ALL,A=x==Te.INCORRECT,R=I||A&&a,j=I||A&&a||A&&!a&&d,O=r&&i&&R,w=r&&!i&&j,P=(O||w)&&!v,M=P?`${b}-result`:void 0,z=U()("quiz-multiple-choice-option",{"is-complete":r,"is-correct":O,"is-incorrect":w,"is-selected":d}),$=U()("quiz-multiple-choice-option__dot",{"quiz-multiple-choice-option__dot--active":d&&!r}),F=U()("quiz-multiple-choice-option__check",{"quiz-multiple-choice-option__check--active":O}),V=U()("quiz-multiple-choice-option__x",{"quiz-multiple-choice-option__x--active":w}),K=U()("quiz-multiple-choice-option__border"),Z=(0,h.useCallback)(W=>{ba(W)&&p(W)},[p]),X=(0,h.useCallback)(()=>{m({selectedIndex:o})},[o,m]),te=r?void 0:Z;return(0,h.useEffect)(()=>{e&&T.current&&(!N&&d?T.current.focus({preventScroll:l}):y&&c&&o===0&&(T.current.focus({preventScroll:l}),S?.()))},[e,d,l,N,y,c,o,S]),(0,n.jsxs)("div",{"data-testid":"quiz-card-option",children:[(0,n.jsxs)("label",{"aria-describedby":M,className:z,ref:T,children:[(0,n.jsx)("input",{checked:d,className:"quiz-multiple-choice-option__input",disabled:k,name:g,onClick:r?void 0:X,onKeyDown:te,tabIndex:E,type:"radio"}),(0,n.jsxs)("div",{className:"quiz-multiple-choice-option__indicator",style:{color:t},children:[(0,n.jsx)(RB,{className:$,dataTestId:d&&!r?"selected-dot-active":"selected-dot"}),(0,n.jsx)(f6,{className:F,"data-testid":O?"correct-check-active":"correct-check"}),(0,n.jsx)(I6,{"aria-hidden":"true",className:V,dataTestId:w?"incorrect-x-active":"incorrect-x",overrideStyle:!0})]}),(0,n.jsx)("div",{className:K}),(0,n.jsx)("div",{className:"quiz-multiple-choice-option__text","data-testid":"quiz-mc-option-text",children:C({optionId:s,title:L})})]}),P&&(0,n.jsxs)("div",{className:"visually-hidden-always",id:M,children:[d&&i&&u?.a11yQuizReviewCorrectlySelected,d&&!i&&u?.a11yQuizReviewIncorrectlySelected,!d&&i&&u?.a11yQuizReviewIncorrectlyUnselected,!d&&!i&&u?.a11yQuizReviewCorrectlyUnselected]})]})},g9=nte;function rte(e){return e.length===0}function ate(e,t){return e.includes(t)}function ite(e,t){return e.includes(t)?e.filter(s=>s!==t):[...e,t]}const cte=({allowTabNavigation:e=!1,correctIds:t=[],errorMessageId:s,isComplete:o,isCorrect:r=!1,labels:a,onChange:i=()=>{},onEnterToSubmit:c=()=>{},options:d=[],questionHtmlId:l="",renderOptionText:u,isRetaking:m,revealAnswers:p=Te.NONE,selectedIndices:g=[]})=>(0,n.jsx)("div",{"aria-labelledby":[l,s].filter(Boolean).join(" "),role:"group",children:(0,n.jsx)("ul",{children:d.map((C,v)=>(0,n.jsx)(lte,{allowTabNavigation:e,errorMessageId:s,id:C.id,index:v,isComplete:o,isCorrect:r,isCorrectOption:t.includes(C.id),isRetaking:m,isSelected:!m&&ate(g,v),labels:a,onChange:i,onEnterToSubmit:c,renderOptionText:u,revealAnswers:p,title:C.title},C.id))})}),lte=({allowTabNavigation:e,errorMessageId:t,id:s,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isSelected:c,labels:d,onChange:l,onEnterToSubmit:u,renderOptionText:m,isRetaking:p,revealAnswers:g,title:C})=>{const[v]=(0,h.useState)(()=>Cr()("qmr-")),x=r&&g===Te.ALL&&!p,y=x?`${v}-result`:void 0,S=!!r,L=e?0:mu,b=g===Te.ALL,T=g==Te.INCORRECT,N=b||T&&a||T&&!a&&c,k=U()("quiz-multiple-response-option",{"quiz-multiple-response-option--complete":r,"quiz-multiple-response-option--selected":c,"quiz-multiple-response-option--correct":r&&i&&N,"quiz-multiple-response-option--incorrect":r&&!i&&N}),E=U()("quiz-multiple-response-option__border"),I=(0,h.useCallback)(j=>{ba(j)&&u(j)},[u]),A=(0,h.useCallback)(()=>{l({optionIndex:o})},[o,l]),R=r?void 0:I;return(0,n.jsxs)("li",{children:[(0,n.jsxs)("label",{"aria-describedby":y,className:k,children:[(0,n.jsx)("input",{"aria-describedby":t||void 0,"aria-invalid":t?!0:void 0,checked:c,className:"quiz-multiple-response-option__input",disabled:S,onChange:r?void 0:A,onKeyDown:R,tabIndex:L,type:"checkbox"}),(0,n.jsxs)("div",{className:"quiz-multiple-response-option__indicator",children:[(0,n.jsx)(f6,{className:"quiz-multiple-response-option__check"}),(0,n.jsx)(I6,{"aria-hidden":"true",className:"quiz-multiple-response-option__x",height:"8",overrideStyle:!0,width:"8"})]}),(0,n.jsx)("div",{className:E}),(0,n.jsx)("div",{className:"quiz-multiple-response-option__text",children:m({optionId:s,title:C})})]}),x&&(0,n.jsxs)("div",{className:"visually-hidden-always",id:y,children:[c&&i&&d?.a11yQuizReviewCorrectlyChecked,c&&!i&&d?.a11yQuizReviewIncorrectlyChecked,!c&&i&&d?.a11yQuizReviewIncorrectlyUnchecked,!c&&!i&&d?.a11yQuizReviewCorrectlyUnchecked]})]})},v9=cte;var dte,ute;const hte=As()(Pe()("correct",!0)),Eve=e=>dte(ute(e),Op),mte=e=>({MATCHING:fe(),FILL_IN_THE_BLANK:Bp,MULTIPLE_CHOICE:fe(),MULTIPLE_RESPONSE:fe()})[e],Op=ce()(Xc()("id"),hte),pte=ce()(rs(),Op),Bp=As()(Pe()("correct",!0)),fte=ce()(Ce()("id"),rs()),jve={MULTIPLE_CHOICE:{label:"Multiple Choice",icon:(0,n.jsx)(PH,{})},MULTIPLE_RESPONSE:{label:"Multiple Response",icon:(0,n.jsx)(MH,{})},FILL_IN_THE_BLANK:{label:"Fill in the blank",icon:(0,n.jsx)(lh,{})},MATCHING:{label:"Matching",icon:(0,n.jsx)(wH,{})}},{FILL_IN_THE_BLANK:gte,MATCHING:C9,MULTIPLE_CHOICE:vte,MULTIPLE_RESPONSE:Cte}=Wt;function x9({type:e,text:t="",matches:s={},answersLength:o=0,selectedIndices:r=[],selectedIndex:a}){switch(e){case gte:return!S2(t);case C9:return Xee(s)===o;case Cte:return!rte(r);case vte:default:return!f9(a)}}function xte({answered:e=!1,...t}){return e&&t.type!==C9?!1:x9(t)}function b9(e,t){const s=e.trim();return t?s:s.toLowerCase()}function y9({answers:e,text:t,caseSensitive:s=!1,getL10nValue:o}){if(!t)return!1;const r=b9(t,s);return e.some(a=>{const i=o(a.title);return typeof i!="string"?!1:b9(i,s)===r})}function L9(e){return Object.entries(e).every(([t,s])=>t===String(s))}function bte(e){const t=e.answers??[],s=e.correct;if(s!=null)return t.findIndex(r=>r.id===s);const o=t.findIndex(r=>r.correct===!0);return o===-1?0:o}function S9({isCorrectAnswerUnshuffled:e=!1,isShuffled:t=!1,item:s,selectedIndex:o,shuffledAnswerIndices:r}){if(o==null||t&&!Array.isArray(r))return!1;const a=t&&!e?r.indexOf(o):o,i=bte(s);return a===i}function yte(e,t){return t.map(s=>e.indexOf(s))}function Lte(e){return typeof e=="object"&&e!==null&&"id"in e?e.id:e}function Ste(e){const t=e.answers??[],s=e.corrects??[];return s.length>0?s.map(a=>{const i=Lte(a);return t.findIndex(c=>c.id===i)}).filter(a=>a>=0).sort((a,i)=>a-i):t.map((r,a)=>r.correct===!0?a:-1).filter(r=>r>=0).sort((r,a)=>r-a)}function T9(e){return[...e].sort((t,s)=>t-s)}function N9({isShuffled:e=!1,item:t,selectedIndices:s,shuffledAnswerIndices:o}){if(!Array.isArray(s)||e&&!Array.isArray(o))return!1;const r=e?yte(o,s):s,a=Ste(t),i=T9(r),c=T9(a);return i.length!==c.length?!1:i.every((d,l)=>d===c[l])}function k9({answers:e,feedback:t,feedbackCorrect:s,feedbackIncorrect:o,feedbackType:r,isCorrect:a,isShuffled:i=!1,selectedIndex:c,shuffledAnswerIndices:d}){switch(r){case"CHOICE":{if(c==null||!e)return;const l=i&&Array.isArray(d)?d.indexOf(c):c;return e[l]?.feedback}case"CORRECT_INCORRECT":return a?s:o;default:return t}}var Tte=f(95838),Nte=f.n(Tte),wve=f(94205),kte,Ite,I9,Ete,jte,wte,Ate;const Rte=(e,t,s=[])=>{const o=Ite(wte("id",e),t),{parentId:r}=o||{},a=o?[o,...s]:s;return r?Rte(r,t,a):a},Dp="owner",E9="manager",j9="editor",w9=["viewer",j9,E9,Dp],Hp=({effectiveRole:e,requiredRole:t})=>{const s=I9(e,w9),o=I9(t,w9);return s>=o},Pte=e=>({editor:Hp({effectiveRole:e,requiredRole:j9}),manager:Hp({effectiveRole:e,requiredRole:E9}),owner:Hp({effectiveRole:e,requiredRole:Dp})}),Rve=(e,t,s)=>{const{authorId:o}=e,r=o===s,a=c=>r||c,i=Mte(t);return jte(Ete(["canChangePermissions","canMoveTo"]),kte({canDelete:a,canEdit:a,canMove:a,canRename:a,canUnshare:a}))(i)},Mte=e=>{const{effectiveRole:t,type:s}=e||[],o=s!==Ate?Dp:t,{editor:r,manager:a,owner:i}=Pte(o);return{canChangePermissions:a,canCreate:r,canDelete:i,canEdit:r,canMove:a,canMoveTo:r,canRename:r,canUnshare:i}};var Ote,Bte,Mc,Dte,Hte,Fte,Vte,A9,Xa,zte,R9,P9,$te,_te,Oc,Ute,Gte,M9,Wte,Tu,Kte,Qte,O9,Zte,B9,Yte,Xte,Ja;const Jte={[Wt.FILL_IN_THE_BLANK]:"fillin",[Wt.MATCHING]:"matching",[Wt.MULTIPLE_CHOICE]:"multiple choice",[Wt.MULTIPLE_RESPONSE]:"multiple response"},qa="personal",D9="team",Pve=500,Mve={id:null,deleted:!1,type:qa},Ove={id:"deleted",deleted:!0,type:qa},H9=({questions:e=[],drawnQuestionIds:t=[]})=>{const s=a=>!t.some(i=>i.includes(a.id)),o=e.filter(s),r=Math.floor(Math.random()*o.length);return o[r]??null},qte=e=>t=>t.type===qa||B9({effectiveRole:t.effectiveRole,requiredRole:e}),ese=({folders:e,requiredRole:t,teamAccount:s})=>Ja(e,O9,R9,Xa(o=>qte(t)&&(s||o.type===qa))),Bve=({questionBanks:{folders:e,questionBanks:t},requiredRole:s=Yte,teamAccount:o,term:r})=>{if(r&&_te(Qte(r)))return{folders:[],questionBanks:[]};const a=new RegExp("("+Zte(r)+")","i"),i=ese({folders:e,requiredRole:s,teamAccount:o}),c=M9("id",i),d=Xa(u=>u.title.match(a)&&!u.deleted,i),l=Xa(u=>(Oc(u.folderId)||A9(u.folderId,c))&&u.title.match(a)&&!u.deleted,t);return{folders:d,questionBanks:l}},F9=(e,t,s=!1)=>Ja(t,$te(Mc(!Oc(e)),Wte(e),Gte(O9,R9)),Kte(Tu("deleted",!s))),tse=(e,t,s,o=!1)=>{const r=e===D9,a=e===qa,i=Ja(F9(D9,s),M9("id")),c=d=>!Oc(d.folderId)&&A9(d.folderId,i);return Ja(t,Xa(Vte([[Mc(o),d=>d.deleted],[Mc(r),d=>!d.deleted&&c(d)],[Mc(a),d=>!d.deleted&&!c(d)],[Mc(Oc(e)),d=>!d.deleted],[Ote,P9]])))},sse=({type:e})=>e===qa,V9=({effectiveRole:e})=>B9({effectiveRole:e,requiredRole:Xte}),nse=(e,t)=>({id:s})=>s?Fte(Dte(P9),Ute(Bte([Tu("folderId",s),Tu("authorId",e)])))(t):!1,ose=(e,t,s,o)=>Ja(F9(t,e),Xa(Hte([sse,V9,nse(o,s)]))),rse=(e,t)=>s=>{if(Oc(s.folderId))return!0;const o=zte(Tu("id",s.folderId),e);if(!o)return!1;const r=V9(o),a=s.authorId===t;return r||a},ase=(e,t,s,o,r)=>Ja(tse(e,t,s),Xa(rse(o,r))),Dve=(e,t,s,o)=>{const r=ose(e,s,t,o),a=ase(s,t,e,r,o);return{folders:r,questionBanks:a}},ise=(e,t,s=[])=>{const o=t[e],{parentId:r}=o||{},{type:a}=t?.[r]||{},i=o?[o,...s]:s;return!r||o.type!==a?i:ise(r,t,i)},{FILL_IN_THE_BLANK:ei,MATCHING:Nu,MULTIPLE_CHOICE:ku,MULTIPLE_RESPONSE:Iu}=Wt,cse={FILL_IN_THE_BLANK:"a11yBlockKnowledgeCheckFIB",MATCHING:"a11yBlockKnowledgeCheckM",MULTIPLE_CHOICE:"a11yBlockKnowledgeCheckMC",MULTIPLE_RESPONSE:"a11yBlockKnowledgeCheckMR"},lse=Fe()(null,[0,"type"]),Fp=Ns();class z9 extends h.Component{static get defaultProps(){return{items:[],lessonId:"",blockId:"",onStep:Function.prototype}}retakeAnimationStageOne;retakeAnimationStageTwo;feedbackRef;takeAgainRef;block;wrapper;id;constructor(t){super(t),this.state={errorIncomplete:!1,selectedAnswer:null,selectedIndices:[],chosen:!1,answered:!1,fillInText:"",matches:{},questionHtmlId:`q-${du()()}`},this.retakeAnimationStageOne=null,this.retakeAnimationStageTwo=null,this.feedbackRef=(0,h.createRef)(),this.takeAgainRef=(0,h.createRef)(),this.getSelection=this.getSelection.bind(this),this.handleFillIn=this.handleFillIn.bind(this),this.handleChoiceSelect=this.handleChoiceSelect.bind(this),this.handleMultipleResponseChange=this.handleMultipleResponseChange.bind(this),this.handleRetake=this.handleRetake.bind(this),this.renderQuestionTitle=this.renderQuestionTitle.bind(this),this.renderMultipleResponseOptionText=this.renderMultipleResponseOptionText.bind(this),this.renderMultipleChoiceOptionText=this.renderMultipleChoiceOptionText.bind(this),this.previewOnly__forceShowFeedback=this.previewOnly__forceShowFeedback.bind(this),this.previewOnly__clearOverrides=this.previewOnly__clearOverrides.bind(this),window.addEventListener(We,this.previewOnly__forceShowFeedback),window.addEventListener(fm,this.previewOnly__clearOverrides),this.id=Cr()("kc-")}componentDidUpdate(t,s){s.answered&&!this.state.answered?this.getType()!==ei&&Mm(this.wrapper):!s.answered&&this.state.answered&&setTimeout(()=>{this.takeAgainRef.current?this.takeAgainRef.current.focus():this.feedbackRef.current?.focus()},0)}componentWillUnmount(){this.retakeAnimationStageOne&&(clearTimeout(this.retakeAnimationStageOne),this.retakeAnimationStageOne=null),this.retakeAnimationStageTwo&&(clearTimeout(this.retakeAnimationStageTwo),this.retakeAnimationStageTwo=null),window.removeEventListener(We,this.previewOnly__forceShowFeedback),window.removeEventListener(fm,this.previewOnly__clearOverrides)}previewOnly__forceShowFeedback(t){const{itemId:s,path:o}=t.detail,{getL10nValue:r}=this.props;if(s!==this.props.blockId)return;const a=o.at(-1);if(typeof a=="string"&&a.startsWith?.("feedback")){const i=a==="feedbackCorrect",c=o.indexOf("answers"),d=o[c+1],l=c>-1&&typeof d!="string"?d.id:null,u={forceShowFeedback:!0,forceShowFeedbackCorrect:i,forceShowFeedbackMessage:""};if(l&&"answers"in this.props.items[0]){const m=this.props.items[0].answers.find(({id:g})=>g===l),p=m&&"feedback"in m?m?.feedback:void 0;u.forceShowFeedbackCorrect=m?.correct??!1,u.forceShowFeedbackMessage=r(p)}this.setState(u)}}previewOnly__clearOverrides(){this.setState({forceShowFeedback:!1,forceShowFeedbackCorrect:!1})}getSelection({item:t}){switch(t.type){case ei:return this.state.fillInText;case Nu:return this.state.matches;case Iu:return this.state.selectedIndices;case ku:default:return this.state.selectedAnswer}}handleMatchesChange=t=>{this.setState({errorIncomplete:!1,matches:t})};handleMultipleResponseChange({optionIndex:t}){const{selectedIndices:s}=this.state;this.setState({errorIncomplete:!1,selectedIndices:ite(s,t)})}handleChoiceSelect({selectedIndex:t}){const{answered:s}=this.state;s||this.setState({errorIncomplete:!1,selectedAnswer:t,chosen:!0})}onSubmit(t,s,o,r,a){if(!s){switch(this.setState({errorIncomplete:!0}),r.type){case ei:this.wrapper?.querySelector("input")?.focus();break;case Iu:case ku:this.wrapper?.querySelector("input")?.focus();break;case Nu:default:break}return}a?.preventDefault(),this.setState({answered:!0,isRetaking:!1}),o&&this.props.onStep({id:t})}handleFillIn(t){this.setState({errorIncomplete:!1,fillInText:t})}handleRetake(t){const{blockId:s,lessonId:o,settings:r}=this.props,{id:a}=t;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},()=>{!Fp&&this.getType()===ei&&Mm(this.wrapper),this.retakeAnimationStageTwo=null}),r?.retryCount!=null&&this.props.onRetryAttempt?.({blockId:s,itemId:a,lessonId:o})},950)}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}resetShouldFocusFirst=()=>{this.state.shouldFocusFirst&&this.setState({shouldFocusFirst:!1})};renderQuestionTitle({title:t}){return(0,n.jsx)(Ye,{className:"quiz-card__title",id:this.state.questionHtmlId,value:t})}renderQuestion(t){const{answered:s,errorIncomplete:o,isRetaking:r,selectedAnswer:a}=this.state,{blockId:i,enableVideoPlaybackSpeed:c,getL10nValue:d,labels:l,progress:u,renderQuestionTitle:m=this.renderQuestionTitle,settings:p}=this.props,{quizCorrect:g,quizIncorrect:C,quizRequireAnswer:v,quizSubmit:x,quizTakeAgain:y}=l,{id:S,type:L}=t,b=t.type!=="DRAW_FROM_QUESTION_BANK"?t.settings:{},T=d("media"in t?t.media:{}),N=this.state.forceShowFeedbackCorrect||this.getIsCorrect({item:t}),k=this.getCanSubmit({item:t}),E=p?.requireCorrectAnswer?N:!0,I=this.onSubmit.bind(this,S,k,E,t),A=this.getFeedback({item:t,isCorrect:N,selectedAnswer:a}),R=this.getSelection({item:t}),{columnBehavior:j,correctAnswerColor:O,correctAnswerColorContrast:w,incorrectAnswerColor:P,incorrectAnswerColorContrast:M}=p,z=N?O:P,$=l.knowledgeCheckCorrectAnswerRequiredBlock,F=l.knowledgeCheckRetriesAttemptsRemaining,V=l.knowledgeCheckMaxRetriesReached,K=u?.items?.[i]?.items?.[S]?.retryAttemptCount??0,Z=p?.retryCount!==0&&(p?.retryCount==null||p?.retryCount===-1||K<p?.retryCount),X=p?.retryCount!=null||p?.retryCount===-1?p?.retryCount-K:-1,te=!N,W={"--color-feedback-icon":z,"--color-matching-feedback-bubble-bg":P,"--color-multiple-choice-complete-border":P,"--color-multiple-choice-correct-border":O,"--color-multiple-response-correct-border":O,"--color-multiple-response-incorrect-border":P,"--color-multiple-response-option-check":s?O:void 0,"--color-quiz-option-check":O,"--color-x-fill":P},H=p?.revealCorrectAnswers!==!1&&(p.retryCount==null||p.retryCount===-1||!Z)?Te.ALL:Te.INCORRECT,B=U()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":s,"block-knowledge__retake-container--active-attempts-left":s&&!r&&X>0}),G=U()("block-knowledge__retake",{"block-knowledge__retake--active":s&&!r&&Z}),Y=U()("block-knowledge__retake","block-knowledge__attempts-left",{"block-knowledge__retake--active":s&&!r&&Z&&X>0}),J=U()("block-knowledge__retake","block-knowledge__no-more-attempts",{"block-knowledge__retake--active":s&&!r&&!Z}),Q=!!T?.image,se=!!T?.audio,re=!!T?.video,he=!!T?.embed;let ve=null;se&&Q?ve=(0,n.jsx)(Vo,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${S}-audio`,isOverlayAudio:!0,item:t,labels:l,media:T,settings:b}):se&&(re||he)?ve=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Vo,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${S}-audio`,item:t,labels:l,media:{audio:T.audio},settings:b}),(0,n.jsx)(Vo,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${S}-video`,item:t,labels:l,media:re?{video:T.video}:{embed:T.embed},settings:b})]}):ve=(0,n.jsx)(Vo,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${S}-audio`,item:t,labels:l,media:T,settings:b});const Se=U()("block-knowledge__media",{"block-knowledge__image-with-audio":se&&Q});return(0,n.jsxs)(s9,{isActive:!0,style:W,children:[p?.requireCorrectAnswer&&(s&&!N||!s)&&(0,n.jsxs)("div",{className:"quiz-card__require-correct-answer-disclaimer",children:[(0,n.jsx)(ie,{className:"quiz-card__require-correct-answer-disclaimer-icon",name:"info-circle"}),$]}),m(t),(0,n.jsx)("div",{className:Se,children:ve}),(0,n.jsx)(a9,{type:L,children:this.renderType({columnBehavior:j,correctAnswerColor:O,correctAnswerColorContrast:w,incorrectAnswerColor:P,incorrectAnswerColorContrast:M,isCorrect:N,item:t,onSubmit:I})}),(0,n.jsx)("div",{"aria-live":"assertive",children:o&&(0,n.jsxs)("div",{className:"quiz-card__validations","data-testid":"quiz-validation-error",children:[(0,n.jsx)("span",{"data-testid":"quiz-validation-icon",children:(0,n.jsx)(ie,{className:"quiz-card__validation-icon",name:"alert-circle"})}),(0,n.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:v})]})}),(0,n.jsx)(t9,{canProceed:s,canSubmit:k,isReduceMotion:Fp,onSubmit:I,quizSubmit:x}),(0,n.jsx)(r9,{canProceed:this.state.forceShowFeedback||s,feedbackRef:this.feedbackRef,feedbackValue:A,isActive:s,isComplete:s,isCorrect:N,item:t,labels:l,quizCorrect:g,quizIncorrect:C,revealAnswers:H,selection:R}),(0,n.jsxs)("div",{"aria-hidden":!s,className:B,children:[te&&(0,n.jsxs)(n.Fragment,{children:[Z?(0,n.jsxs)(e9,{allowTabNavigation:s,className:G,onClick:this.handleRetake.bind(this,t),ref:this.takeAgainRef,size:"md",variant:"outlined",children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"arrow-rotate-left"}),y]}):null,X>0&&(0,n.jsxs)("div",{className:Y,children:[F," ",X]})]}),!Z&&!N&&(0,n.jsx)("div",{className:J,children:V})]})]},S)}getIsCorrect({item:t}){const{fillInText:s,matches:o,selectedAnswer:r,selectedIndices:a}=this.state,{type:i}=t,c="answers"in t?t.answers:void 0,d="isCaseSensitive"in t?t.isCaseSensitive:!1;switch(i){case ei:return y9({answers:Bp(c),text:s,caseSensitive:d,getL10nValue:this.props.getL10nValue});case Nu:return L9(o);case Iu:return N9({item:{answers:c},selectedIndices:a});case ku:default:return S9({item:{answers:c},selectedIndex:r})}}getType(){const{items:t}=this.props;return lse(t)}getCanSubmit({item:t}){const s="answers"in t?t.answers:void 0,{answered:o,fillInText:r,matches:a,selectedAnswer:i,selectedIndices:c}=this.state;return xte({type:t.type,text:r,matches:a,answersLength:s?.length??0,selectedIndices:c,selectedIndex:i,answered:o})}getFeedback({item:t,isCorrect:s,selectedAnswer:o}){if(this.state.forceShowFeedbackMessage)return this.state.forceShowFeedbackMessage;const r="feedback"in t?t.feedback:void 0,a="feedbackCorrect"in t?t.feedbackCorrect:void 0,i="feedbackIncorrect"in t?t.feedbackIncorrect:void 0,c="feedbackType"in t?t.feedbackType:void 0,d="answers"in t?t.answers:void 0,l=this.state.forceShowFeedbackCorrect??s;return k9({answers:d,feedback:r,feedbackCorrect:a,feedbackIncorrect:i,feedbackType:c,isCorrect:l,selectedIndex:typeof o=="number"?o:null})}getTypeLabel(){const{labels:t}=this.props,s=this.getType(),o=cse[s];return o?t?.[o]:t?.a11yBlockKnowledgeCheck}renderMultipleResponseOptionText(t,{title:s}){return(0,n.jsx)(Ye,{className:"cursorAuto",value:s})}renderMultipleChoiceOptionText(t,{title:s}){return(0,n.jsx)(Ye,{className:"quiz-multiple-choice-option__label cursorAuto",value:s})}renderType({columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isCorrect:i,item:c,onSubmit:d}){const{isHidden:l,labels:u,prefersKeyboardNavigation:m,renderMultipleResponseOptionText:p=this.renderMultipleResponseOptionText,renderMultipleChoiceOptionText:g=this.renderMultipleChoiceOptionText,settings:C,progress:v,blockId:x}=this.props,{answered:y,fillInText:S,isRetaking:L,matches:b,selectedAnswer:T,selectedIndices:N,shouldFocusFirst:k,questionHtmlId:E}=this.state,{id:I,type:A}=c,R="answers"in c?c.answers:[],{quizAcceptableResponses:j,quizAnswerPlaceholder:O}=u,w=v?.items?.[x]?.items?.[I]?.retryAttemptCount??0,P=C?.retryCount!==0&&(C?.retryCount==null||C?.retryCount===-1||w<C?.retryCount),z=C?.revealCorrectAnswers!==!1&&(C.retryCount==null||C.retryCount===-1||!P)?Te.ALL:Te.INCORRECT,$=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(A){case ei:return(0,n.jsx)(l9,{allowTabNavigation:!0,correctAnswerColor:s,correctAnswerColorContrast:o,errorMessageId:$,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:y,isCorrect:i,labels:u,onChange:this.handleFillIn,onEnterToSubmit:d,options:Bp(R),questionHtmlId:E,quizAcceptableResponses:j,quizAnswerPlaceholder:O,revealAnswers:z,value:S});case Nu:return(0,n.jsx)(p9,{answers:mte(A)(R),columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isActive:!l,isComplete:y,matches:b,onChange:this.handleMatchesChange,prefersKeyboardNavigation:m,revealAnswers:z});case Iu:return(0,n.jsx)(v9,{allowTabNavigation:!0,correctIds:Op(R),errorMessageId:$,isComplete:y,isCorrect:i,isRetaking:L,labels:u,onChange:this.handleMultipleResponseChange,onEnterToSubmit:d,options:R,questionHtmlId:E,renderOptionText:p.bind(this,c),revealAnswers:z,selectedIndices:N});case ku:default:return(0,n.jsx)(g9,{allowTabNavigation:!0,correctId:pte(R)||fte(R),errorMessageId:$,isComplete:y,isCorrect:i,isReduceMotion:Fp,isRetaking:L,labels:u,onChange:this.handleChoiceSelect,onEnterToSubmit:d,onFocusFirstComplete:this.resetShouldFocusFirst,options:R,questionHtmlId:E,renderOptionText:g.bind(this,c),revealAnswers:z,selectedIndex:T,shouldFocusFirst:k})}}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,items:r,settings:a,variant:i}=this.props,{answered:c,isRetaking:d}=this.state,{entranceAnimation:l,knowledgeCheckWidth:u=76}=a,m=Ym(u),p=U()("block-knowledge",{"block-knowledge--answered":c,"block-knowledge--no-animation":!l,"block-knowledge--retake":d}),g=U()("block-knowledge__wrapper",`block-knowledge__wrapper--${i}`,{[`block-knowledge__container--custom-width-${m}`]:!0}),C=Array.isArray(r)&&r.length>0?r.slice(0,1):[];return(0,n.jsx)(we,{className:p,"data-testid":"block-kc-card",ref:v=>{this.block=v},style:this.getStyle(),children:(0,n.jsx)(Oe,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{className:"block-knowledge__container",children:(0,n.jsx)("div",{className:"block-knowledge__row",children:(0,n.jsx)("div",{className:`block-knowledge__col--custom-width-${m}`,children:(0,n.jsx)(Ot,{"aria-label":this.getTypeLabel(),className:g,"data-testid":"block-knowledge-wrapper",ref:v=>{this.wrapper=v},children:C.map(v=>this.renderQuestion(v))})})})})})})}getStyle(){const{backgroundColor:t,settings:s}=this.props;if(s?.cardMode===Fs.TRANSPARENT)switch(s?.backgroundType){case q.ACCENT:case q.COLOR:case q.TINT:if(t)switch(va(t)){case ct.LIGHT:return{"--color-background-choice-hover":sn(.5,t),"--color-background-feedback-frame":sn(.5,t)};case ct.MED:return{"--color-background-choice-hover":En(.3,t),"--color-background-feedback-frame":En(.3,t)};case ct.DARK:return{"--color-background-choice-hover":En(.6,t),"--color-background-feedback-frame":En(.6,t)};case ct.NEAR_BLACK:return{"--color-background-choice-hover":sn(.15,t),"--color-background-feedback-frame":sn(.15,t)}}}}}const dse=e=>{const{blockId:t,items:[s]}=e,{questions:o}=s,[r,a]=(0,h.useState)(()=>H9({questions:o}));(0,h.useEffect)(()=>{if(!o)return;const c=d=>{const{path:l}=d.detail;if(l[l.indexOf("items")+1]?.id!==t)return;const m=l[l.lastIndexOf("questions")+1]?.id;if(m===r?.id)return;const p=o.find(({id:g})=>g===m);p&&a(p)};return window.addEventListener(We,c),()=>window.removeEventListener(We,c)},[t,r,o]);const i=(0,h.useMemo)(()=>r?{variant:Jte[r.type],items:[r]}:{},[r]);return r?(0,n.jsx)(z9,{...e,...i}):(0,n.jsx)("div",{})},use=e=>e.variant==="draw from question bank",ti=e=>{const t=bs()??"",s=Zt(),o=is(),r={...e,backgroundColor:t,getL10nValue:o,blockSettings:s};return use(r)?(0,n.jsx)(dse,{...r}):(0,n.jsx)(z9,{...r})};var hse=f(99291),mse=f.n(hse);class pse extends h.Component{refWrap;refBubbleTitle;portal;contentRef;scrollRef;videoContainer;constructor(t){super(t),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=ro()}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(t){t.isActive&&setTimeout(this.renderOverflowMask,100)}componentDidUpdate(t){if(!t.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 s=this.props.media;this.props.onTranscriptUpdate?.({audioPlayerId:pn({refs:`items:${this.props.blockId}/items:${this.props.item?.id}`}),transcriptMedia:s})}else t.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:t,allowNav:s,description:o,htmlId:r,isActive:a,media:i,title:c,x:d,y:l}=this.props,u=U()("bubble",{"bubble--active":a}),m=gse({x:d,y:l}),p=vse({hasOverflow:this.state.hasOverflow,x:d,y:l}),g={borderBottomColor:t},C=`${r}-title`,v=()=>{if(!i)return(0,n.jsx)(Le,{allowTabNavigation:a,className:"bubble__description",value:o});const y=this.props.getL10nValue(i)??{},S=fn(y,this.props.audioPosition,!0,"labeled-graphic"),L={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},b={audio:{media:S.audioOnlyMedia||y,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-audio`},image:{media:S.imageOnlyMedia||y,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-image`},video:{media:S.videoOnlyMedia||y,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-video`},embed:{media:S.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,n.jsx)(n.Fragment,{children:S.renderOrder.map((T,N)=>{if(T==="text")return(0,n.jsx)(Le,{allowTabNavigation:a,className:"bubble__description",value:o},`text-${N}`);const k=b[T];return!k||T==="embed"&&!a?null:(0,n.jsx)("div",{className:"bubble__media",children:(0,n.jsx)("div",{className:"bubble__figure",children:(0,n.jsx)("div",{className:U()({"labeled-graphic-bubble-media-container--audio-bottom":T==="audio"&&this.props.audioPosition==="bottom"}),children:(0,n.jsx)($t,{...L,...k})})})},`${T}-${N}`)})})},x=(0,n.jsx)("div",{className:u,ref:this.refWrap,style:m,children:(0,n.jsxs)("dialog",{"aria-hidden":!a,"aria-labelledby":C,"aria-modal":"false",className:p,id:r,onKeyDown:this.handleKeyDown,style:g,children:[(0,n.jsx)("h2",{className:"bubble__title",id:C,ref:this.refBubbleTitle,tabIndex:-1,children:(0,n.jsx)(lt,{value:c})}),(0,n.jsx)("button",{"aria-label":"Close modal",className:"bubble__close",onClick:this.handleCloseClick,type:"button",children:(0,n.jsx)(MB,{className:"bubble__close-icon"})}),(0,n.jsx)("div",{className:"bubble__content",ref:y=>{this.contentRef=y},children:v()}),s&&this.renderControls()]})});return window.matchMedia("(max-width: 767px)").matches?(0,un.createPortal)((0,n.jsx)(V4,{children:x}),this.portal):x}renderControls(){const{accentColor:t,labels:s}=this.props,o={"--color-lg-accent":t};return(0,n.jsxs)("div",{className:"bubble__controls",style:o,children:[(0,n.jsx)("button",{"aria-label":s?.a11yCarouselPrevious,className:"bubble__prev",onClick:this.handlePreviousClick,type:"button",children:(0,n.jsx)("i",{className:"icon icon-chevron-left"})}),(0,n.jsx)("button",{"aria-label":s?.a11yCarouselNext,className:"bubble__next",onClick:this.handleNextClick,type:"button",children:(0,n.jsx)("i",{className:"icon icon-chevron-right"})})]})}renderOverflowMask(){if(!this.contentRef)return;const t=this.contentRef,s=t.offsetHeight;t.scrollHeight>s?(t.addEventListener("scroll",this.scrollRef=uu()(this.handleScroll,50)),this.setState({hasOverflow:!0}),this.scrollRef()):(t.removeEventListener("scroll",this.scrollRef),this.setState({hasOverflow:!1}))}handleDocumentClick=t=>{const s=Array.from(document.querySelectorAll("dialog[open]"))?.reduce((o,r)=>r.contains(t.target)||o,!1);!this.props.isActive||s||this.props.onClose({shouldFocusMarker:!1})};handleDocumentKeyDown=t=>{ls(t)&&this.props.isActive&&this.props.onClose({shouldFocusMarker:!1})};handleKeyDown(t){const{allowNav:s,onNextClick:o,onPreviousClick:r}=this.props,a=FV(this.contentRef,this.state.hasOverflow),i=mse()(Ne()(s));ns()([[i(so),r],[i(no),o],[BV,a]])(t)}handleCloseClick=()=>{this.props.onClose()};handleNextClick(t){this.props.onNextClick(t)}handlePreviousClick(t){this.props.onPreviousClick(t)}handleScroll(){const t=this.contentRef,s=t.scrollTop,o=t.scrollHeight,r=t.offsetHeight;s>=o-r-10?this.setState({hasOverflow:!1}):this.state.hasOverflow||this.setState({hasOverflow:!0})}getMediaContainerClasses(t,s){return U()({"labeled-graphic-bubble-media-container":t,"labeled-graphic-bubble-media-container--audio-overlay":s,"labeled-graphic-bubble-media-container--audio-on-bottom":t&&this.props.audioPosition==="bottom"})}}const fse=Ke(pse),gse=({x:e,y:t})=>{const s={top:"initial",bottom:"initial",left:"0",right:"0"};return e>50?s.right=100-e+"%":s.left=e+"%",t>50?s.bottom=100-t+"%":s.top=t+"%",s},vse=({hasOverflow:e,x:t,y:s})=>{const o=t<50;let r="top";return s>33&&(r=s>66?"bottom":"middle"),U()("bubble__body","bg--range-light",{"bubble__body--has-overflow":e,"bubble__body--left":o,"bubble__body--right":!o,"bubble__body--top":r==="top","bubble__body--middle":r==="middle","bubble__body--bottom":r==="bottom"})};var Cse=f(80588);const xse=e=>new URL(e).pathname.slice(1)+new URL(e).search;class bse extends Cse.Component{imageEl;constructor(t){super(t),this.state={style:{}}}render(){const{canvasClassNames:t,children:s,cornerRadius:o,editable:r,editingDisabled:a,getL10nValue:i,imageLoaded:c,media:d,onCreateMarker:l,onShowAltDialog:u}=this.props,{style:m}=this.state,p=i(d)?.image??{},{alt:g,dimensions:C,key:v,src:x}=p,y=!!p.alt,S=lr(g),L=eN(p),b=U()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":r&&!a,"labeled-graphic-canvas__figure--editing-disabled":r&&a});let T;v?T=vt(p):x&&(T=vt({key:xse(x),...p}));const N=U()("labeled-graphic-canvas__image","labeled-graphic-canvas__image--flag-dimensions",{"labeled-graphic-canvas__image--svg":Tg(T)}),k={...m,...o!=null&&{"--corner-radius":`${Number(o)}px`}},E=(0,n.jsx)(Ss,{alt:S,className:N,"data-l10n-id":jt(d),height:C?.height||C?.originalHeight,onClick:l,onLoad:()=>this.setState({style:L}),ref:I=>{this.imageEl=I},src:T,style:k,width:C?.width||C?.originalWidth});return(0,n.jsx)("div",{className:t||"labeled-graphic-canvas",children:(0,n.jsx)("div",{className:"labeled-graphic-canvas__item",children:(0,n.jsx)("div",{className:"labeled-graphic-canvas__bounds",children:(0,n.jsxs)("figure",{className:b,children:[y&&r&&(0,n.jsx)(Be.ArcTooltip,{anchorAt:"top-center",text:"Edit alt text",children:(0,n.jsx)("div",{className:"item-media__tooltip",children:(0,n.jsx)("button",{className:"labeled-graphic-canvas__alt-tag",onClick:u,type:"button",children:"ALT"})})}),c&&E,(0,n.jsx)("ol",{role:"list",children:s})]})})})})}}const yse=Ke(bse),Lse={"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"},Sse=(e,t)=>{const s=Lse[t];return s?.startsWith("a11y")?e?.[s]||"":s||""};var Tse=f(80588);const $9=_("labeled-graphic-marker");class Nse extends Tse.Component{marker;onMouseMove;onMouseLeave;constructor(t){super(t),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 t=this.parentCanvasElement();t.addEventListener("mousemove",this.onMouseMove=s=>{this.onItemDrag(s)}),t.addEventListener("mouseleave",this.onMouseLeave=s=>{this.onItemRelease(s)})}componentWillUnmount(){const t=this.parentCanvasElement();t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mouseleave",this.onMouseLeave)}UNSAFE_componentWillReceiveProps(t){const{isSelected:s,useLocalStateForCompletion:o}=t;s&&o&&!this.state.isComplete&&this.setState({isComplete:!0})}buildMarkerLabel=({icon:t,label:s,title:o,viewed:r})=>{const{labels:a}=this.props;return[].concat(s||[]).concat(o||[]).concat(t||[]).concat(r?a?.a11yLabeledGraphicViewed:a?.a11yLabeledGraphicUnviewed).join(", ")};render(){const{accentColor:t,ariaControls:s,icon:o,isActive:r,isComplete:a,isLessonBlocksList:i,isSelected:c,isVisible:d,labels:l,markerColor:u,markerColorContrast:m,onFocus:p,styles:g,useLocalStateForCompletion:C}=this.props,v=this.props.getL10nValue(this.props.title),x=Sse(l,o),y=C?this.state.isComplete:a,S=!!u,L=Bs(u),T=At({backgroundColor:u,contrast:m??L}),N=S?u:"#ffffff",k=S?T:t,E=this.buildMarkerLabel({icon:x,label:l&&l.a11yLabeledGraphicButtonMarker||"",title:v,viewed:y}),I=$9({active:c,dragged:this.state.isDragged,visible:d,complete:y}),A={...g,"--color-lg-accent":N,"--color-lg-font":k},R=$9("pin",{selected:c,disabled:i});return(0,n.jsx)("button",{"aria-controls":s,"aria-expanded":r,"aria-label":E,className:I,onClick:this.onClick,onContextMenu:this.onItemRelease.bind(this),onFocus:p,onMouseDown:this.onItemGrab.bind(this),onMouseEnter:this.onHover.bind(this),onMouseLeave:this.onLeave.bind(this),onMouseUp:this.onItemRelease.bind(this),ref:j=>{this.marker=j},style:A,type:"button",children:(0,n.jsx)("span",{className:R,children:(0,n.jsx)("i",{className:`icon icon-Master-${o}`})})})}focus(){this.marker&&this.marker.focus&&this.marker.focus()}onHover(){this.state.wasDragged&&this.props.onHover(),this.setState({hovering:!0})}onLeave(){this.props.onLeave(),this.setState({hovering:!1})}onClick(){const{editable:t,itemId:s,onClick:o,parentId:r}=this.props,a="labeledGraphicMarkerClick",i={detail:{itemId:s,parentId:r}},c=new CustomEvent(a,i);document.dispatchEvent(c),t||o()}onItemGrab(t){const{editable:s}=this.props;if(!s)return;const o=this.marker.getBoundingClientRect(),r=o.left-t.clientX+this.marker.offsetWidth/2,a=o.top-t.clientY+this.marker.offsetHeight/2;this.setState({posX:t.clientX,posY:t.clientY,offsetX:r,offsetY:a,isDragged:!0})}onItemDrag(t){if(this.state.isDragged){const s=t.clientX-this.state.posX,o=t.clientY-this.state.posY;this.marker.style.transform=`translate3d(${s}px, ${o}px, 0)`}}onItemRelease(t){const{editable:s}=this.props,o={isDragged:!1};this.marker.style.transform="translate3d(0, 0, 0)",this.state.isDragged&&this.state.posX===t.clientX&&this.state.posY===t.clientY?this.props.onClick():s&&t.currentTarget instanceof HTMLElement&&t.currentTarget.classList.contains("labeled-graphic-marker")?this.props.onSetPosition(t,this.state.offsetX,this.state.offsetY):this.state.isDragged&&(o.offsetX=0,o.offsetY=0),this.setState(o)}}const kse=Ke(Nse);class Ise extends h.Component{static get defaultProps(){return{animateBlockEntrance:!1,editable:!0,getL10nValue:t=>t,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(t){super(t);const{isLearner:s}=t;this.afterAnimatedIn=this.afterAnimatedIn.bind(this),this.createMarker=this.createMarker.bind(this),this.onBubbleClose=this.onBubbleClose.bind(this),this.onMarkerFocus=this.onMarkerFocus.bind(this),this.markerRefs={},this.state={showMarkers:!s||Ns()}}componentDidMount(){const{isBlock:t,isLearner:s,isPreview:o,markerDelay:r}=this.props;s&&!t&&(this.timeout=setTimeout(()=>this.setState({showMarkers:!0}),o?0:r))}componentWillUnmount(){clearTimeout(this.timeout),clearTimeout(this.entranceDoneTimeout)}render(){const{accentColor:t,animateBlockEntrance:s,blockId:o,color:r,canvasClassNames:a,disableCreateMarker:i,editable:c,getL10nValue:d,imageLoaded:l=!0,isBlock:u,isLearner:m,isLessonBlocksList:p,isPreview:g,initiallyVisible:C,items:v,labels:x,lessonId:y,media:S,onItemClear:L,onItemHint:b,onItemSelected:T,onNextClick:N,onPreviousClick:k,onShowAltDialog:E,parentId:I,progress:A,selected:R,settings:j={},showBubbles:O,enableVideoPlaybackSpeed:w}=this.props,{cornerRadius:P,markerColor:M,markerColorContrast:z}=j,{showMarkers:$}=this.state,V=M||(t||r),K=U()("map-item",{"map-item--animated":!c}),Z=s?"fadeIn":"none",X=s?1:0,te=v.length>1;return(0,n.jsx)(h.Fragment,{children:(0,n.jsx)(Oe,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!g,animateIn:Z,duration:g?0:X,initiallyVisible:C,isLearner:m,children:(0,n.jsx)(yse,{canvasClassNames:a,cornerRadius:P,editable:c,editingDisabled:i,imageLoaded:l,media:S,onCreateMarker:this.createMarker,onShowAltDialog:E,ref:W=>{this.canvas=W},children:v.map((W,D)=>{const{description:H,id:B,icon:G,media:Y,title:J}=W,Q=d(W.x),se=d(W.y),re={top:se+"%",left:Q+"%"},he=Ft()(["items",B,"isComplete"],A),ve=R===B,Se=`bubble-${o}-${B}`;return(0,n.jsxs)("li",{className:K,role:"listitem",children:[(0,n.jsx)(kse,{accentColor:V,ariaControls:Se,editable:c,icon:G,isActive:R===B,isComplete:he,isLessonBlocksList:p,isSelected:ve,isVisible:$,itemId:B,labels:x,markerColor:M,markerColorContrast:z,onClick:()=>{T(B)},onFocus:this.onMarkerFocus(B),onHover:()=>{b()},onLeave:()=>{L()},onSetPosition:this.onSetPosition.bind(this,W),parentId:I,ref:ut=>{this.markerRefs[B]=ut},styles:re,title:J,useLocalStateForCompletion:u},B),!c&&O&&(0,n.jsx)(fse,{accentColor:V,allowNav:te,audioPosition:j.audioPosition,blockId:o,description:H,enableVideoPlaybackSpeed:w,htmlId:Se,index:D,isActive:ve,item:W,labels:x,lessonId:y,media:Y,mediaOpts:{disableZoom:!j.zoomOnClick},onClose:this.onBubbleClose(B),onNextClick:()=>{N(D)},onPreviousClick:()=>{k(D)},title:J,x:Number(Q),y:Number(se)},Se)]},B)})})})})}createMarker(t){const{disableCreateMarker:s,editable:o,onCreateMarker:r}=this.props;if(!o||s)return;const{x:a,y:i}=this.findItemCoordinates({e:t}),c=this.props.items.length,l={description:"",hasMedia:!1,icon:"01",id:du()(),isActive:!1,title:"",x:String(a),y:String(i)};r({index:c,payload:l})}onBubbleClose(t){const{onClose:s}=this.props;return(o={shouldFocusMarker:!0})=>{const r=this.markerRefs[t];o.shouldFocusMarker&&r?.focus?.(),s()}}onMarkerFocus(t){return()=>{const{onClose:s,selected:o}=this.props;o&&o!==t&&s()}}onSetPosition(t,s,o,r){if(!this.props.editable)return;const{lesson:a,onSetMarkerPosition:i}=this.props,{id:c,items:d}=a,{x:l,y:u}=this.findItemCoordinates({e:s,offsetX:o,offsetY:r}),m={x:String(l),y:String(u)};(0,Et.uW)(t.x)&&(0,Et.uW)(t.y)?(this.props.updateL10n({l10n:t.x,value:m.x}),this.props.updateL10n({l10n:t.y,value:m.y})):i({itemId:t.id,lessonId:c,items:d,payload:m})}findItemCoordinates({e:t,offsetX:s=0,offsetY:o=0}){const r=this.canvas.imageEl.getBoundingClientRect(),a=20,i=this.findItemCoordinate({clientPos:t.clientX,clientOffset:s,rectSubtractor:r.left,rectDivisor:r.width,validOffsetAmount:a}),c=this.findItemCoordinate({clientPos:t.clientY,clientOffset:o,rectSubtractor:r.top,rectDivisor:r.height,validOffsetAmount:a});return{x:i,y:c}}findItemCoordinate({clientPos:t,clientOffset:s,rectSubtractor:o,rectDivisor:r,validOffsetAmount:a}){const i=a/r*100,c=100-i;let d=(t+s-o)/r*100;return d>c?d=c:d<i&&(d=i),d}afterAnimatedIn(){const{isBlock:t}=this.props;t&&this.setState({showMarkers:!0})}}const Ese=Ke(Ise);var jse=f(80588);const _9="page-wrap--noscroll";class wse extends jse.Component{static get defaultProps(){return{onItemSelected:Function.prototype,onStep:Function.prototype,getL10nValue:()=>{}}}constructor(t){super(t),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(We,this.handleNavEvent)}handleNavEvent(t){const s=t.detail.path[t.detail.path.indexOf("items")+1]?.id,o=t.detail.path[t.detail.path.lastIndexOf("items")+1]?.id;s===this.props.blockId&&this.state.selectedItemId!==o&&this.onItemSelected(o)}componentWillUnmount(){this.props.readOnly||document.removeEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.removeEventListener(We,this.handleNavEvent)}render(){const{imageLoaded:t}=this.state,{initiallyVisible:s,isLessonBlocksList:o,isPreview:r,items:a,labels:i,parentId:c,settings:d={}}=this.props,{mediaWidth:l="2"}=d,u=r?a[0].id:this.state.selectedItemId,m=U()("view-labeled-graphic",{"view-labeled-graphic--small":l==="0","view-labeled-graphic--medium":l==="1","view-labeled-graphic--full":l==="2"});return(0,n.jsx)("div",{"aria-label":i?.a11yLabeledGraphicBlock,className:m,role:"group",children:(0,n.jsx)(Ese,{...this.props,canvasClassNames:this.getCanvasClassNames(),editable:!1,imageLoaded:t,initiallyVisible:s,isLessonBlocksList:o,labels:i,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:c,selected:u})})}setImageLoaded(){this.setState({imageLoaded:!0})}loadImage(){const{image:t}=this.props.getL10nValue(this.props.media),{key:s,src:o}=t??{};if(!s&&!o)return;const r=setTimeout(this.setImageLoaded,1e3),a=new Image,i=s?vt(t):o;a.src=i,a.onload=()=>{clearTimeout(r),this.setImageLoaded()}}getCanvasClassNames(){return U()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}onNextClick(t){const{blockId:s,items:o}=this.props,r=Ce()("id",o[la()(t)]||o[0]);document.querySelector(`dialog#bubble-${s}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onPreviousClick(t){const{blockId:s,items:o}=this.props,r=Ce()("id",o[xp()(t)]||o[xp()(Qt()(o))]);document.querySelector(`dialog#bubble-${s}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onItemSelected(t){const{editBlock:s,items:o,onItemSelected:r,onStep:a}=this.props,{selectedItemId:i}=this.state;s&&window.matchMedia("(max-width: 768px)").matches||(i===t?this.closeOpenedBubble():(this.openBubble(t),ce()(a,Hs()(c=>c.id===t))(o)),r(t))}handleMarkerClick(t){const{itemId:s,parentId:o}=t.detail,{selectedItemId:r}=this.state;(o!==this.props.parentId||r!==s)&&this.closeOpenedBubble()}openBubble(t){const{blockId:s}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const r=document.querySelector(".page-wrap");r&&r.classList.add(_9)}this.setState({selectedItemId:t}),document.getElementById(`bubble-${s}-${t}`).show()}closeOpenedBubble(){const{blockId:t}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const o=document.querySelector(".page-wrap");o&&o.classList.remove(_9)}document.getElementById(`bubble-${t}-${this.state.selectedItemId}`)?.close(),this.setState({selectedItemId:void 0})}}const Ase=Ke(wse),Rse=e=>{const{blockId:t,progress:s,isLessonBlocksList:o=!1}=e,r=Ft()(["items",t],s);return(0,n.jsx)(we,{className:"block-labeled-graphic",children:(0,n.jsx)(Ase,{...e,editable:!1,isBlock:!0,isLessonBlocksList:o,parentId:t,progress:r})})},be=_("block-survey"),U9={bad:1,fair:2,great:3},Pse={1:"bad",2:"fair",3:"great"},Vp=["Bad","Fair","Great"],Mse=2,Ose=10,Bse=5,G9=5,Dse=7,Eu=e=>!e||e.trim()==="",Hse=(e,t,s)=>{const o=s?.items?.[e]?.items??{};let r={};return t.forEach(a=>{let i=o?.[a.id]?.response;i!=null&&(a?.questionType==="RATING"?i=Pse[i]:a?.questionType==="LINEAR_SCALE"&&(i=String(i)),r=Object.assign({},r,{[a.id]:i}))}),r},Fse=(e,t)=>t?.items?.[e]?.isSubmitted??!1,Vse=(e,t)=>(0,n.jsx)(Ye,{className:"block-survey__question-title",id:t,value:e.question});function zse({animateBlockEntrance:e,blockId:t,initiallyVisible:s,isLearner:o,items:r=[],labels:a,onSurveySubmitted:i=tn,onSurveyPartialResponse:c=tn,lessonId:d,onStep:l,onSubmit:u,progress:m,renderQuestionTitle:p=Vse,settings:g={},title:C}){const v=is(),[x,y]=(0,h.useState)(()=>Hse(t,r,m)),[S,L]=(0,h.useState)(()=>Fse(t,m)),[b,T]=(0,h.useState)(!1),[N,k]=(0,h.useState)(!1),[E,I]=(0,h.useState)(new Set),[A,R]=(0,h.useState)(0),j=(0,h.useRef)(null),O=(0,h.useRef)(null),w=(0,h.useRef)(!1),P=(0,h.useCallback)(D=>{O.current=D},[]),{announcePolite:M}=In(),z=(0,Ae.A)(S),$=g.cardMode==="TRANSPARENT",F=`validation-error-${t}`,V=(0,h.useCallback)((D,H)=>{y(G=>({...G,[D]:H}));const B=U9[H];c({itemId:D,response:B}),E.has(D)&&(I(Y=>{const J=new Set(Y);return J.delete(D),J}),r.find(Y=>Y.id===D)&&r.filter(J=>J.isRequired&&J.id!==D&&Eu(x[J.id])).length===0&&k(!1))},[E,r,c,x]),K=(0,h.useCallback)((D,H)=>{y(B=>({...B,[D]:H})),c({itemId:D,response:Number(H)}),E.has(D)&&(I(G=>{const Y=new Set(G);return Y.delete(D),Y}),r.find(G=>G.id===D)&&r.filter(Y=>Y.isRequired&&Y.id!==D&&Eu(x[Y.id])).length===0&&k(!1))},[E,r,c,x]),Z=(0,h.useCallback)((D,H,B)=>{if(B&&H.length>B)return;const G=x[D]||"",Y=B&&H.length===B&&G.length<B;y(J=>({...J,[D]:H})),c({itemId:D,response:H}),Y&&M(`Character limit reached. ${B} characters maximum.`),E.has(D)&&H.trim()!==""&&(I(Q=>{const se=new Set(Q);return se.delete(D),se}),r.filter(Q=>Q.isRequired&&Q.id!==D&&Eu(x[Q.id])).length===0&&k(!1))},[M,r,c,x,E]),X=(0,h.useCallback)(async()=>{if(!t||!d){console.error("Missing blockId or lessonId");return}T(!0);try{const D=r.map(H=>{const B=x[H.id]||"",G=v(H.question)??"",Y={id:String(t),lessonId:String(d),itemId:H.id,questionTitle:ws(String(G)),surveyTitle:ws(String(v(C)??"")),isUnfinished:!1};return H.questionType==="RATING"?{...Y,ratingOptions:{1:v(H.labels?.[0])??Vp[0],2:v(H.labels?.[1])??Vp[1],3:v(H.labels?.[2])??Vp[2]},type:H.questionType,response:U9[B]}:H.questionType==="LINEAR_SCALE"?{...Y,type:"LINEAR_SCALE",response:B===""?void 0:Number(B)}:{...Y,type:H.questionType,response:B}});window.Runtime?.reportUngradedAnswers&&await window.Runtime.reportUngradedAnswers(D),r.forEach(H=>l?.({id:H.id})),u?.(x),L(!0),i()}catch(D){console.error("Failed to submit survey:",D)}finally{T(!1)}},[t,d,r,x,l,u,C,v,i]),te=(0,h.useCallback)(D=>{if(D.preventDefault(),b)return;const B=r.filter(G=>G.isRequired).filter(G=>Eu(x[G.id]));if(B.length>0){k(!0),I(new Set(B.map(G=>G.id))),w.current=!0,R(G=>G+1);return}X()},[b,X,r,x]);(0,h.useEffect)(()=>{w.current&&O.current&&(O.current.focus(),w.current=!1)},[A]),(0,h.useEffect)(()=>{b&&M(a.a11yBlockSurveySubmitting)},[b,M,a]),(0,h.useEffect)(()=>{!z&&S&&(M(a.a11yBlockSurveyConfirmation),j.current&&j.current.focus())},[S,z,M,a]);const W=(D,H)=>{const B=x[D.id]||"",G=`survey-q-${D.id}`,Y=`${G}-char-count`,J=`${G}-error`,Q=E.has(D.id),se=Q&&H===r.findIndex(Se=>E.has(Se.id));if(D.questionType==="LINEAR_SCALE"){const Se=Math.min(Ose,Math.max(Mse,D.scaleMax??Bse)),ut=Array.from({length:Se},(Ee,De)=>De+1),kt=be("linear-scale-options",{wide:Se<=G9,medium:Se>G9&&Se<=Dse}),ps=be("linear-scale",{error:Q});return(0,n.jsxs)("fieldset",{"aria-describedby":Q?J:void 0,className:be("question",{error:Q}),ref:se?P:void 0,tabIndex:-1,children:[(0,n.jsxs)("legend",{className:be("question-text"),children:[p(D,G),D.isRequired&&(0,n.jsxs)("span",{className:be("required-indicator"),children:[" ",(0,n.jsx)("span",{"aria-hidden":"true",children:"*"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:a.surveyRatingRequired})]})]}),(0,n.jsx)("div",{className:be("interactive"),children:(0,n.jsxs)("div",{className:ps,children:[(0,n.jsx)("span",{className:be("linear-scale-label"),children:v(D.startLabel)}),(0,n.jsx)("div",{className:kt,children:ut.map(Ee=>{const De=B===String(Ee);return(0,n.jsxs)("label",{className:be("linear-scale-option"),children:[(0,n.jsx)("span",{"aria-hidden":"true",className:be("linear-scale-number"),children:Ee}),(0,n.jsx)("div",{className:be("linear-scale-indicator"),children:(0,n.jsx)(ie,{className:be("linear-scale-dot",{active:De}),"data-testid":De?"linear-scale-dot-active":"linear-scale-dot",name:"circle-solid"})}),(0,n.jsx)("input",{"aria-label":String(Ee),checked:De,className:be("linear-scale-input"),name:`survey-${D.id}`,onChange:()=>K(D.id,String(Ee)),type:"radio",value:String(Ee)})]},Ee)})}),(0,n.jsx)("span",{className:be("linear-scale-label"),children:v(D.endLabel)})]})}),Q&&(0,n.jsxs)("div",{className:be("error-message"),id:J,children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyRatingRequired]})]},D.id)}if(D.questionType==="RATING"){const Se=[{value:"bad",label:v(D.labels?.[0])??"",icon:"face-frown"},{value:"fair",label:v(D.labels?.[1])??"",icon:"face-smile"},{value:"great",label:v(D.labels?.[2])??"",icon:"face-laugh"}],ut=be("question",{error:Q}),kt=be("rating-options",{error:Q}),ps=Q?J:void 0;return(0,n.jsxs)("fieldset",{"aria-describedby":ps,className:ut,ref:se?P:void 0,tabIndex:-1,children:[(0,n.jsxs)("legend",{className:be("question-text"),children:[p(D,G),D.isRequired&&(0,n.jsxs)("span",{className:be("required-indicator"),children:[" ",(0,n.jsx)("span",{"aria-hidden":"true",children:"*"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:a.surveyRatingRequired})]})]}),(0,n.jsx)("div",{className:be("interactive"),children:(0,n.jsx)("div",{className:kt,children:Se.map(Ee=>{const De=B===Ee.value,Bt=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{"aria-label":Ee.label,checked:De,className:be("rating-input"),name:`survey-${D.id}`,onChange:()=>V(D.id,Ee.value),type:"radio",value:Ee.value}),(0,n.jsx)(ie,{"aria-hidden":"true",className:be("rating-icon"),name:Ee.icon}),(0,n.jsx)("span",{"aria-hidden":"true",className:be("rating-label"),children:Ee.label})]}),vn=be("rating-option",{selected:De,error:Q});return $?(0,n.jsx)(Ot,{cardMode:"WHITE",className:vn,tag:"label",children:Bt},Ee.value):(0,n.jsx)("label",{className:vn,children:Bt},Ee.value)})})}),Q&&(0,n.jsxs)("div",{className:be("error-message"),id:J,children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyRatingRequired]})]},D.id)}const re=be("question",{error:Q}),he=be("text-input",{error:Q}),ve=[Q?J:null,D.maxLength?Y:null].filter(Boolean).join(" ")||void 0;return(0,n.jsxs)("div",{className:re,children:[(0,n.jsxs)("div",{className:be("question-text"),children:[p(D,G),D.isRequired&&(0,n.jsxs)("span",{className:be("required-indicator"),children:[" ",(0,n.jsx)("span",{"aria-hidden":"true",children:"*"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:a.surveyFreeResponseRequired})]})]}),(0,n.jsx)("div",{className:be("interactive"),children:(0,n.jsxs)("div",{className:be("text-response"),children:[(0,n.jsx)("textarea",{"aria-describedby":ve,"aria-invalid":Q?!0:void 0,"aria-labelledby":G,"aria-required":D.isRequired?!0:void 0,className:he,maxLength:D.maxLength,onChange:Se=>Z(D.id,Se.target.value,D.maxLength),ref:se?P:void 0,rows:D.questionType==="LONG_RESPONSE"?4:2,value:B}),D.maxLength&&(0,n.jsxs)("div",{className:be("character-count"),children:[(0,n.jsxs)("span",{"aria-hidden":"true",children:[B.length," / ",D.maxLength]}),(0,n.jsx)("span",{className:"visually-hidden-always",id:Y,children:`${a.a11yBlockSurveyCharCount} ${B.length} ${a.a11yPreposition} ${D.maxLength}`})]})]})}),Q&&(0,n.jsxs)("div",{className:be("error-message"),id:J,children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyFreeResponseRequired]})]},D.id)};return(0,n.jsx)(V1,{...g,children:(0,n.jsx)(we,{className:be(),children:(0,n.jsx)(Oe,{animateBlockEntrance:e,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{children:(0,n.jsx)(Ot,{className:be("container"),children:S?(0,n.jsx)("div",{className:be("confirmation"),ref:j,tabIndex:-1,children:(0,n.jsxs)("p",{className:be("confirmation-text"),children:[(0,n.jsx)(ie,{name:"circle-check-regular"})," ",a.surveyConfirmation]})}):(0,n.jsxs)("form",{noValidate:!0,onSubmit:te,children:[C&&(0,n.jsx)(Ye,{className:be("title"),tagName:"h2",value:C}),(0,n.jsx)("div",{className:be("questions"),children:r.map((D,H)=>W(D,H))}),(0,n.jsxs)("div",{className:be("actions"),children:[(0,n.jsx)("div",{className:be("validation-error",{visible:N}),id:`validation-error-${t}`,role:"alert",children:N&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyValidationError]})}),(0,n.jsx)("div",{className:`${be("submit")} brand--ui`,children:(0,n.jsx)("button",{"aria-describedby":N?F:void 0,className:be("submit-button"),"data-testid":"survey-submit-button",disabled:b,type:"submit",children:b?a.surveySubmitting:a.surveySubmit})})]})]})})})})})})}const zp=_("block-process-card"),W9=({icon:e,isOverlayAudio:t=!1,onClick:s,text:o,variant:r})=>{const a=`${r}-btn`;return(0,n.jsxs)("button",{className:zp(a,{"audio-overlay":t}),onClick:s,type:"button",children:[(0,n.jsx)("span",{className:zp(`${a}-text`),children:o}),(0,n.jsx)(ie,{classNameIcon:zp(`${a}-icon`),name:e})]})},$se=_("block-process-card"),_se=({activeIndex:e,enableVideoPlaybackSpeed:t,id:s,index:o,isIntroStep:r=!1,isOverlayAudio:a=!1,item:i,labels:c,lessonId:d,media:l,onMediaLoad:u,settingZoomOnClick:m})=>{const{image:p}=l??{},g=a?p?.align??"center":"center",C=$se("media",{legacy:!1,"audio-overlay":a,[`audio-overlay-${g}`]:a,"intro-step":r}),v=e===o;return(0,n.jsx)("div",{className:C,children:(0,n.jsx)($t,{activeIndex:e,blockId:s,defaultAlign:"center",enableVideoPlaybackSpeed:t,hasPadding:!1,index:`${s}-${o}`,isOverlayAudio:a,item:i,itemIndex:o,labels:c,lessonId:d,media:l,onLoad:u,opts:{disableZoom:!m},shouldPause:!v})})};var $p=f(80588);const zo=_("block-process-card"),Use=({text:e})=>{const t=$p.useRef(null),{isInView:s}=Gse({ref:t,threshold:.75});return(0,n.jsxs)("div",{className:zo("swipe-badge",{animate:s}),ref:t,children:[(0,n.jsx)("span",{className:zo("swipe-badge-text"),children:e}),(0,n.jsx)(ie,{className:zo("swipe-badge-icon"),name:"chevron-right-solid"})]})};function Gse({ref:e,rootMargin:t="0px",threshold:s=.1}){const[o,r]=$p.useState(!1);return $p.useEffect(()=>{if(!e.current||o)return;const a=new IntersectionObserver(([i])=>{i.isIntersecting&&(r(!0),a.disconnect())},{rootMargin:t,threshold:s});return a.observe(e.current),()=>a.disconnect()},[o,e,t,s]),{isInView:o}}const Wse=({activeIndex:e,className:t,description:s,enableVideoPlaybackSpeed:o,hasIntro:r,id:a,index:i,item:c,labels:d,lessonId:l,media:u,onClickRestart:m,onClickStart:p,settingAudioPosition:g,settingHeadingLevel:C=2,settingShowStepLabel:v=!0,settingStepLabel:x,settingZoomOnClick:y,showSwipeBadge:S,style:L,title:b,totalSteps:T,type:N})=>{const k=`h${C}`,E=N==="intro",I=N==="summary",A=N==="step",R=r?i:i+1,j=Ie(x)||d.processStepName,O=Ie(Array.isArray(u)?{}:u),w=fn(O,g,!0,"process"),P=()=>{if(!u)return null;const M={activeIndex:e,blockId:a,enableVideoPlaybackSpeed:o,id:a,index:i,isIntroStep:E,labels:d,lessonId:l,media:u,onMediaLoad:()=>{},settingZoomOnClick:y,item:c},z={audio:{media:w.audioOnlyMedia||O,isOverlayAudio:!1},image:{media:w.imageOnlyMedia||O,isOverlayAudio:!1},video:{media:w.videoOnlyMedia||O},embed:{media:w.embedOnlyMedia||O,isOverlayAudio:!1},overlay:{media:O,isOverlayAudio:!1}};return w.renderOrder.map(($,F)=>{if($==="text")return(0,n.jsx)(Le,{className:zo("description"),value:s},`text-${F}`);const V=z[$];return V?(0,n.jsx)(_se,{...M,...V},`${$}-${F}`):null})};return(0,n.jsxs)("div",{className:zo(null,{[N]:!0}).mix(t),style:L,children:[A&&v&&(0,n.jsx)("div",{className:zo("number"),children:`${j} ${R}`}),(0,n.jsx)("div",{className:zo("title"),children:(0,n.jsx)(k,{children:(0,n.jsx)(Le,{value:b})})}),P(),!u&&(0,n.jsx)(Le,{className:zo("description"),value:s}),E&&T>1&&(0,n.jsx)(W9,{icon:"chevron-right-solid",isOverlayAudio:w.isOverlayAudio,onClick:p,text:d.processStart,variant:"start"}),I&&T>1&&(0,n.jsx)(W9,{icon:"arrow-rotate-left",isOverlayAudio:w.isOverlayAudio,onClick:m,text:d.processStartAgain,variant:"restart"}),S&&A&&(0,n.jsx)(Use,{text:d.processSwipe})]})};var $n=f(80588);const Kse=_("block-process-carousel"),K9=e=>e?.type==="intro",_p=e=>e?.type==="summary",Up=e=>e?.type==="step",Q9=e=>e?.isHidden,Qse=({animateBlockEntrance:e,enableVideoPlaybackSpeed:t,id:s,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:c,onStep:d,onTranscriptUpdate:l,previewType:u,processRef:m,settings:{audioPosition:p,headingLevel:g,stepLabel:C,showStepLabel:v,zoomOnClick:x}})=>{const y=xt(480),S=m1(),L=is(),b=$n.useRef(null),[T,N]=$n.useState(0),[k,E]=$n.useState(!1),I=$n.useMemo(()=>u===rr.MOBILE_PORTRAIT||u===rr.MOBILE_LANDSCAPE,[u]),A=$n.useMemo(()=>{const V=a.filter(te=>!Q9(te)),K=V.find(K9),Z=V.find(_p),X=V.filter(Up);return[K,...X,Z].filter(Boolean)},[a]),R=$n.useMemo(()=>A.findIndex((V,K)=>Up(V)&&(Up(A[K+1])||_p(A[K+1]))),[A]),j=K9(A[0]),O=_p(A[A.length-1]),w=!!u;$n.useEffect(()=>{d&&(a.forEach(V=>Q9(V)&&d(V)),A.length>0&&d(A[0]))},[]);const P=$n.useCallback(()=>{b.current?.navigateToSlide?.(0)},[]),M=$n.useCallback(()=>{b.current?.navigateToSlide?.(1)},[]),z=$n.useCallback(V=>{N(V);const K=m.current;w||K?.scrollIntoView({behavior:"smooth",block:"start"}),V!==R&&!k&&E(!0),d?.(A[V]);const Z=A[V]?.media;L(Z)?.audio&&l?.({audioPlayerId:pn({refs:`items:${s}/items:${A[V]?.id}`}),transcriptMedia:Z})},[A,R,L,k,s,w,d,l,m]),$=({index:V,isActive:K,onClick:Z,onKeyDown:X})=>{const te=j&&V===0,W=O&&V===A.length-1,D=j?V:V+1;let H,B;te?(H=i?.a11yBlockProcessSlideControlsIntroduction,B=(0,n.jsx)(ie,{className:"carousel-controls-item-intro-icon",name:"chevron-right"})):W?(H=i?.a11yBlockProcessSlideControlsSummary,B=(0,n.jsx)(ie,{name:"check-regular"})):(H=D.toString(),B=D.toString());const G=`${i?.a11yBlockProcessSlideControlsGoToSlide} ${H}`;return(0,n.jsx)(y8,{"aria-label":G,ariaLabel:G,className:"carousel-controls-item-btn",isActive:K,onClick:Z,onKeyDown:X,children:B},V)},F=e?"fadeIn":"none";return(0,n.jsx)(Oe,{animateBlockEntrance:w,animateIn:F,duration:w&&e?1:0,initiallyVisible:o,isLearner:r,children:(0,n.jsx)("div",{className:Kse(),children:(0,n.jsx)(cu,{blockId:s,carouselRef:b,items:A,children:()=>(0,n.jsx)(au,{iconNameLeft:"chevron-left-solid",iconNameRight:"chevron-right-solid",isInfinite:!1,isRTL:S,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:z,ref:b,renderSlideIndicator:$,shouldMouseEmulateTouch:I,shouldUseCounter:!1,shouldUseGoToSlide:!0,children:A.map((V,K)=>(0,n.jsx)(Ot,{activeIndex:T,description:V.description,enableVideoPlaybackSpeed:t,hasIntro:j,id:s,index:K,isHidden:V.isHidden,item:V,labels:i,lessonId:c,media:V.media,onClickRestart:P,onClickStart:M,settingAudioPosition:p,settingHeadingLevel:g,settingShowStepLabel:v,settingStepLabel:C,settingZoomOnClick:x,showSwipeBadge:y&&!k&&K===R,tag:Wse,title:V.title,totalSteps:A.length,type:V.type},V.id))})})})})};var Zse=f(80588);const Yse=e=>{const{blockId:t}=e,s=Zse.useRef(null);return(0,n.jsx)(we,{className:"block-process",ref:s,children:(0,n.jsx)(Qse,{id:t,processRef:s,...e})})};var Xse=f(33907),Jse=f.n(Xse),qse=f(34224),Z9=f.n(qse),ene=f(81734),Y9=f.n(ene),tne=f(69572),sne=f.n(tne),nne=f(62449),$o=f.n(nne);const X9=e=>({...e.responses[e.response],hasCharacter:e.hasCharacter,type:"response"}),one=(e,t)=>{const s=e.responses[e.response],o={emotion:t.emotion,goTo:t.goTo,nextSlide:t.nextSlide},r="action"in t?{action:t.action}:{};return{...o,...r,description:s?.feedback||"",type:"dialogue",hasCharacter:e.hasCharacter}},rne=e=>[X9(e)],ane=e=>{const t=!!e.responses[e.response],s=X9(e),o=one(e,s);return t?[s,o]:[o]},ine=e=>e.hasFeedback?[e,...ane(e)]:e.response!=null?[e,...rne(e)]:[e],cne=(e,t)=>{if(!t)return;const{scene:s,slide:o}=t,r=e.findIndex(c=>c.id===s),i=(e[r]?.slides||[]).findIndex(c=>c.id===o);return{scene:r,slide:i}},J9=dd()(cne);var lne=f(87653),dne=f.n(lne);const une=st()(Ce()("filters"),As()(Pe()("name","rise_emotion")),Yr()(gt())),hne=st()(Ce()("filters"),Hs()(Pe()("name","rise_emotion")),Ce()("value")),q9=e=>new URL(e).pathname.slice(1),mne=e=>st()(os()("key",q9(e.src)),os()("thumbnailKey",q9(e.thumbnail)))(e),pne=st()(Ce()("poses"),As()(une),tt()(e=>[hne(e),e]),dne(),gs()(mne));var _n=f(80588);const Gp=e=>e===-1?null:e,e7=e=>Ut()(Xe(),fe(),e),t7=Yr()(Xe()),si=Yd()(t7,cn),s7=Jse()(_d()),n7=e7(ke?Hj:zj),Wp=e=>rs()(e);class fne extends _n.Component{static get defaultProps(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}continueRef;feedbackRef;resetRef;buttonRef=_n.createRef();responseItemRef=_n.createRef();scenarioRef=_n.createRef();blockContentRef=_n.createRef();endRef=_n.createRef();textRef=_n.createRef();refs=_n.createRef();dynamicRefs=_n.createRef();fadeObservers=new Map;shouldFocus=!1;constructor(t){super(t);const s={activeScene:0,activeSlide:0,initiated:!1,prevScene:0,prevSlide:0,resizes:0,slides:{}};this.refs.current={},this.state=t.initialState||s,this.fetchCharacters=this.fetchCharacters.bind(this),this.fetchCharacterPose=this.fetchCharacterPose.bind(this),this.getCharacterPose=this.getCharacterPose.bind(this),this.handleNavEvent=this.handleNavEvent.bind(this),this.onClick=this.onClick.bind(this),this.onFocus=this.onFocus.bind(this),this.onInit=this.onInit.bind(this),this.onResize=this.onResize.bind(this),this.onResponseClick=this.onResponseClick.bind(this),this.onTryAgainClick=this.onTryAgainClick.bind(this),this.renderBackground=this.renderBackground.bind(this),this.renderButton=this.renderButton.bind(this),this.renderDetails=this.renderDetails.bind(this),this.renderDialogues=this.renderDialogues.bind(this),this.renderEnd=this.renderEnd.bind(this),this.renderPose=this.renderPose.bind(this),this.renderResponse=this.renderResponse.bind(this),this.renderText=this.renderText.bind(this),this.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(t){if(!t)return;const s=this.fadeObservers.get(t);s&&(s.observer.disconnect(),t.removeEventListener("scroll",s.scrollHandler),this.fadeObservers.delete(t));const o=Array.from(t.children).find(l=>l.className.includes("-bottom"));if(!o)return;const r=t.parentElement?.classList.contains("scenario-block__dialogue__bubble")||t.parentElement?.classList.contains("scenario-block__dialogue__pane")?t.parentElement:t,a=()=>{const{scrollHeight:l,clientHeight:u}=t;return l>u+2},i=l=>{const u=l?.[0]?.isIntersecting??!1,m=a();m?r.classList.add("has-overflow"):r.classList.remove("has-overflow"),!u&&m?r.classList.add("show-fade"):r.classList.remove("show-fade")},c=new IntersectionObserver(i,{root:t,threshold:[0,1]}),d=()=>{};this.fadeObservers.set(t,{observer:c,scrollHandler:d}),c.observe(o)}componentDidMount(){const{initialState:t,items:s}=this.props,o=ce()(Zr()("poses"),Lt()({},"character"),Wp);si(s)&&!o(s)&&this.fetchCharacters(),t||this.resetSlides(),window.addEventListener("resize",this.onResize),window.addEventListener(We,this.handleNavEvent)}handleNavEvent(t){const{path:s}=t.detail,{blockId:o,sceneId:r,slideId:a,responseId:i}=Ia(s,["block","scene"]),c=s.at(-1)==="feedback";if(o!==this.props.blockId)return;const d=Gp(this.props.items.findIndex(m=>m.id===r)),l=d!==null?Gp(this.props.items[d].slides.findIndex(m=>m.id===a)):null,u=l!==null?Gp(this.props.items[d].slides[l].responses.findIndex(m=>m.id===i)):null;this.setState({activeScene:d??0,activeSlide:l??0},()=>{d!==null&&l!==null&&this.setState({slides:{...this.state.slides,[`${d}.${l}`]:{...this.state.slides[`${d}.${l}`],hasFeedback:c,response:u}}})})}componentDidUpdate(){const{items:t,onStep:s}=this.props,{activeScene:o,activeSlide:r}=this.state,a=Fe()([],[o,"slides"],t),i=Fe()(null,[r,"goTo"],a),c=Fe()(null,[r,"type"],a);if(s&&(i==="end"&&c==="text"||!i&&!c)&&Y9()(s,t),this.shouldFocus){this.shouldFocus=!1;const m=this.scenarioRef.current?.querySelector('[data-scenario-focus][tabindex="-1"]');m?m.focus():Mm(this.scenarioRef.current)}this.fadeObservers.forEach(({observer:m,scrollHandler:p},g)=>{document.contains(g)||(m.disconnect(),g.removeEventListener("scroll",p),this.fadeObservers.delete(g))})}componentWillUnmount(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize),window.removeEventListener(We,this.handleNavEvent),this.fadeObservers.forEach(({observer:t,scrollHandler:s},o)=>{t.disconnect(),o.removeEventListener("scroll",s)}),this.fadeObservers.clear()}getActiveScene(){return this.getScene(this.state.activeScene)}getScene(t){const{items:s}=this.props;return s&&t>=0&&t<s.length?s[t]:null}fetchCharacterPose(t,s){const o=this.getScene(t),r=o?.slides,a=r&&s>=0&&s<r.length;if(!o||!r||!a)return{name:"",pose:null};const{character:i}=o,c=r[s],d=`${t}.${s}`,l=[d,"response"],u=[d,"hasFeedback"],m=Fe()(null,l,this.state.slides),p=Fe()(!1,u,this.state.slides),g=Lt()("neutral","emotion",c),C=Ut()(Ne()(p),Fe()(g,["responses",m,"emotion"]),Ne()(g)),v=st()(Fe()(i?.poses?.neutral,["poses",C(c)]),n7);return{name:i?.name||"",pose:v(i)}}fetchCharacters(){const{getCharacter:t,items:s,onItemUpdate:o}=this.props,r=Sn()(["id","name","poses","src"]),a=c=>d=>o({itemId:c,payload:{character:d}}),i=({character:c,id:d})=>si(c)&&t(c.id).then(l=>os()("poses",pne(l),l)).then(r).then(a(d));s.map(i)}isCharacterHidden(){const{items:t}=this.props,{activeScene:s,activeSlide:o}=this.state,a=this.getActiveScene()?.slides?.[o],i=o===null,c=t[s];return i?!(c?.slidesHaveCharacterByDefault??!1):a&&!a.hasCharacter}getCharacterPose(){const{items:t}=this.props,{activeScene:s,activeSlide:o,prevScene:r,prevSlide:a}=this.state,i=Fe()([],[s,"slides"],t),c=Fe()(!0,[o,"hasCharacter"],i);return t7(r)&&wi()(c)?this.fetchCharacterPose(r,a):this.fetchCharacterPose(s,o)}onClick(t,s){const{items:o,onStep:r}=this.props,{activeScene:a,activeSlide:i}=this.state,c=this.getActiveScene()?.slides,d=Lt()(null,"type",c?.[i])==="dialogue",l=a===o.length-1,u=i===(c?.length??0)-1,m={activeSlide:i+1},p={activeScene:a+1,activeSlide:0},g={activeSlide:null},C={activeScene:0,activeSlide:0},v=st()(J9(o),b=>({activeScene:b.scene,activeSlide:b.slide})),x=ns()([[Ne()(u&&l),Ne()(g)],[Ne()(u&&!l),Ne()(p)],[nr(),Ne()(m)]]),y=Ut()(Ne()(d),Ne()(g),Ne()(C)),S=ns()([[Kt()("slide"),$o()(v,[s])],[Kt()("next"),x],[Kt()("end"),y]]),L=()=>this.continueRef=setTimeout(this.setNextSlide,300);this.resetRef=setTimeout(this.resetSlide.bind(this,a,i),0),this.setState({prevScene:a,prevSlide:i}),this.setState(S(t),L),t==="end"&&this.resetSlides(),t==="end"&&r&&Y9()(r,o)}onFocus(){this.shouldFocus=!0}onInit(){this.setState({initiated:!0})}onResize(){this.setState({resizes:this.state.resizes+1})}onResponseClick(t,s){const{activeScene:o,activeSlide:r,slides:a}=this.state,{getL10nValue:i,lessonId:c,blockId:d}=this.props,l=`${o}.${r}`,u=os()("response",t),m=os()("hasFeedback",!0),p=Kn()({[`${l}`]:u}),g=Kn()({[`${l}`]:m});s.media&&i(s.media)?.audio&&de.playerId===`audio-${c}-${d}`&&de.pause();const v=ce()(g,p);this.setState({slides:p(a)},()=>{this.shouldFocus=!0,this.setState({slides:v(a)})})}onTryAgainClick(){const{activeScene:t,activeSlide:s,slides:o}=this.state,r=`${t}.${s}`,a=Z9()({hasFeedback:null,response:null}),i=Kn()({[`${r}`]:a});this.setState({slides:i(o)})}render(){const{blockId:t,getL10nValue:s,isPDF:o,items:r,labels:a}=this.props,{activeScene:i,activeSlide:c,initiated:d}=this.state,u=this.getActiveScene()?.slides?.[c],m=ce()(cn,Lt()({},"character"),Wp),p=ce()(Zr()("poses"),Lt()({},"character"),Wp),g=ce()(Ht(),Fe()({},["character","poses"])),C=ce()(di(),Ht(),tt()(g)),v=this.isCharacterHidden(),x=U()("scenario-block",{"scenario-block--initiated":d,"scenario-block--mobile":oo.isMobile,"scenario-block--loading":m(r)&&!p(r),"scenario-block--character-hidden":v}),y=`scenario-live-${t}`,S={"aria-label":a?.a11yGroupScenario,"aria-describedby":y,className:x,ref:this.scenarioRef,role:"group",style:window.innerWidth<480?{height:window.innerHeight}:void 0},L=vt(s(r?.[0].background?.media)?.image),b=ns()([[Xe(),this.renderEnd],[Pe()("type","dialogue"),this.renderDialogues],[Pe()("type","text"),this.renderText],[nr(),Ne()(null)]]),T=U()("scenario-block__character",{"scenario-block__character--hidden":v}),N=`${i}.${c}`,k=this.state.slides[N],E=k?.hasFeedback?u?.responses?.[k?.response]?.alt:u?.alt,I=s(E);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{...S,"data-l10n-id":jt(E),children:[(0,n.jsx)("div",{"aria-live":"polite",className:"visually-hidden-always",id:y,children:I}),(0,n.jsx)("div",{className:"scenario-block__spinner"}),(0,n.jsx)("div",{className:"scenario-block__background-wrapper",children:si(r)&&r.map(this.renderBackground)}),L&&(0,n.jsx)(Ss,{alt:"",onLoad:this.onInit,src:L}),(0,n.jsxs)("div",{className:"scenario-block__inner",children:[(0,n.jsx)("div",{className:T,children:p(r)&&C(r).map(this.renderPose)}),(0,n.jsx)(Qo,{children:si(r)&&b(u)})]})]}),o&&u&&this.renderDetails(u)]})}renderBackground(t,s){const{activeScene:o}=this.state,{id:r,blurBackground:a}=t,i=this.props.getL10nValue(t?.background?.media)?.image,c=U()("scenario-block__background",{"scenario-block__background--active":o===s,"scenario-block__background--blur":a??!0}),d=vt(i);return d?(0,n.jsx)(Ss,{alt:"",className:c,src:d},r):(0,n.jsx)(n.Fragment,{})}renderButton(t){const{labels:s}=this.props,{scenarioContinue:o,scenarioTryAgain:r}=s,{goTo:a,nextSlide:i}=t,c="action"in t?t.action:void 0,d={appear:!0,classNames:"scenario-block__dialogue__button-",nodeRef:this.buttonRef,timeout:{enter:0,exit:1e3}},l=c==="tryAgain"?(0,n.jsxs)("span",{children:[r," ",(0,n.jsx)("i",{className:"icon icon-reload"})]}):(0,n.jsx)("span",{children:o}),m={className:"scenario-block__dialogue__button",key:"button",onClick:c==="tryAgain"?ce()(this.onFocus,this.onTryAgainClick):ce()(this.onFocus,$o()(this.onClick,[a,i]))};return(0,n.jsx)(Qo,{children:(0,n.jsx)(Wn,{...d,children:(0,n.jsx)("button",{...m,type:"button",children:l})})})}renderDetails(t){const{items:s}=this.props,{activeScene:o,activeSlide:r}=this.state,{responses:a,type:i}=t,c=(m,p)=>(0,n.jsxs)("span",{children:[m," ",(0,n.jsx)(eD,{})," ",p]},m),d=st()(J9(s),m=>`Scene ${m.scene+1} Slide ${m.slide+1}`),l=(m,{goTo:p,nextSlide:g})=>ns()([[Kt()("next"),$o()(c,[m,"Next Slide"])],[Kt()("end"),$o()(c,[m,"End of Scenario"])],[nr(),$o()(c,[m,d(g||{})])]])(p),u=i==="text"?l("Continue",t):a.map((m,p)=>l(p,m));return(0,n.jsxs)("div",{className:"scenario-block__pdf-details",children:[(0,n.jsxs)("h3",{children:["Scene ",o+1," Slide ",r+1]}),u]})}renderDialogue(t,s,o){const{description:r,id:a,hasCharacter:i}=s,c="type"in s?s.type:void 0,{count:d,firstKey:l,hasFeedback:u,slide:m,totalDialogues:p}=t,g=o===0?a:o,C=o===1?l:o-1,v=o===0&&d===1,x=o===d,y=c==="dialogue"&&(v||x),S=this.dynamicRefs.current[`dialogue-${g}`],L=x&&this.dynamicRefs.current[`dialogue-${C}`],b=S&&S.offsetHeight,T=x&&L&&L.offsetHeight,N=u?30:0,k=window.innerWidth<480?20:30,E=k*2+60+T-N,I=k+60-N,A=sne()(b+N-60),R=_n.createRef(),{settings:j,getL10nValue:O}=this.props,w=j?.audioPosition,P=O(m.media),M=fn(P,w),z=M.renderOrder.indexOf("audio")<M.renderOrder.indexOf("text"),$=!!P?.audio,F=u&&o===p-1,V=U()("scenario-block__dialogue",{"scenario-block__dialogue--response":c==="response","scenario-block__dialogue--feedback":F,"scenario-block__dialogue--done":o<d-1,"scenario-block__dialogue--audio-top":z&&$}),K=ns()([[Ne()(v),Ne()(null)],[Kt()(d),Ne()({top:`${E}px`})],[Kt()(d-1),Ne()({top:`${I}px`})],[Kt()(d-2),Ne()({top:`${A}px`})],[nr(),Ne()({top:`-${b+30}px`})]]),Z={className:V,ref:B=>{this.dynamicRefs.current[`dialogue-${g}`]=B},style:K(o)},X={appear:!0,classNames:"scenario-block__dialogue-",nodeRef:R,key:o,timeout:{enter:400,exit:400}},te=U()({"scenario-block__dialogue__bubble":i||c==="response","scenario-block__dialogue__pane":!i}),W=this.props.getL10nValue(r)||"",D=c!=="response"&&!F&&$&&z&&(0,n.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(m)}),H=(0,n.jsxs)("div",{className:te,"data-scenario-focus":y?"":void 0,tabIndex:y?-1:void 0,children:[D,(0,n.jsxs)("div",{className:"scenario-block__dialogue__bubble__content",ref:this.setupFadeObserver,children:[c!=="response"&&!F?this.renderDialogueWithAudioPositioning(m,W,M):(0,n.jsx)(Le,{value:W}),(0,n.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})]});return(0,n.jsx)(Wn,{...X,children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{...Z,children:si(r)&&H})})})}renderDialogues(t){const{activeScene:s,activeSlide:o,slides:r}=this.state,{id:a,responses:i}=t,c=`${s}.${o}`,d=r[c]||{},u=ce()(di(),ine,vs()(d))(t),{hasFeedback:m,response:p}=d,{feedback:g}=i[p]||{},C=Xe()(p)&&cn(i),v=m?u.length-1:u.length,x=(v===1&&gt()(i)||v===2&&cn(i))&&m,y={count:v,firstKey:Fe()(null,[0,"id"],u),hasFeedback:m&&si(g),slide:t,totalDialogues:u.length},S={classNames:"scenario-block__content-",nodeRef:this.blockContentRef,timeout:{enter:0,exit:1e3}},L=(0,n.jsx)("div",{className:"scenario-block__dialogues__bottom",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__bottom__inner",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__responses",children:(0,n.jsx)(Qo,{component:"ol",role:"list",children:i.map((b,T)=>this.renderResponse(b,t,T))})})})});return(0,n.jsx)(Wn,{...S,children:(0,n.jsx)("div",{className:"scenario-block__dialogues scenario-block__content",children:(0,n.jsxs)("div",{className:"scenario-block__dialogues__inner",children:[(0,n.jsx)("div",{className:"scenario-block__dialogues__top",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__top__inner",children:(0,n.jsx)(Qo,{children:u.map(this.renderDialogue.bind(this,y))})})}),C&&L,x&&this.renderButton(u[v-1])]})})},a)}renderEnd(){const{labels:t}=this.props,{scenarioComplete:s,scenarioStartOver:o}=t,r=ce()(this.onFocus,$o()(this.onClick,["end",null])),a=U()(["scenario-block__text","scenario-block__text--end","scenario-block__content"]),i={classNames:"scenario-block__content-",nodeRef:this.endRef,timeout:{enter:0,exit:400}};return(0,n.jsx)(Wn,{...i,children:(0,n.jsx)("div",{className:a,children:(0,n.jsxs)("div",{className:"scenario-block__text__inner","data-scenario-focus":"",tabIndex:-1,children:[(0,n.jsx)("div",{className:"scenario-block__text__title",children:(0,n.jsx)("h2",{children:s})}),(0,n.jsxs)("button",{className:"scenario-block__text__end",onClick:r,type:"button",children:[(0,n.jsx)("span",{children:o}),(0,n.jsx)("i",{className:"icon icon-reload"})]})]})},"end")},"end")}renderPose(t,s){const{pose:o}=this.getCharacterPose(),{filters:r,id:a}=t,i=n7(t),c=Yd()(Pe()("name","style")),d=c(Pe()("value","left_aligned")),l=c(Pe()("value","right_aligned")),u=U()("scenario-block__character__inner",{"scenario-block__character__inner--active":o===i,"scenario-block__character__inner--right":Hs()(l,r),"scenario-block__character__inner--left":Hs()(d,r)});return(0,n.jsx)("div",{className:u,"data-pose-id":a,children:(0,n.jsx)(Ss,{alt:"",src:i})},`pose-${s}-${a}`)}renderResponse({description:t},s,o){const{isPDF:r}=this.props,a=r?vne:ce()(this.onFocus,$o()(this.onResponseClick,[o,s])),i=g=>{const v=g.currentTarget.querySelector(".scenario-block__response__inner");if(v){const x=v.getBoundingClientRect();if(g.clientX>x.right-16){g.preventDefault();return}}a(g)},c=g=>{const v=g.currentTarget.querySelector(".scenario-block__response__inner");if(v){const x=v.getBoundingClientRect();g.clientX>x.right-16?v.classList.add("hovering-scrollbar"):v.classList.remove("hovering-scrollbar")}},d=g=>{const v=g.currentTarget.querySelector(".scenario-block__response__inner");v&&v.classList.remove("hovering-scrollbar")},l=U()(["scenario-block__response",`scenario-block__response--${o}`]),u=U()("scenario-block__response-item",`scenario-block__response-item--${o}`),m={appear:!0,classNames:"scenario-block__response-item-",nodeRef:this.responseItemRef,timeout:{enter:0,exit:1e3}},p=(0,n.jsx)("button",{className:l,onClick:i,onMouseLeave:d,onMouseMove:c,type:"button",children:(0,n.jsxs)("div",{className:"scenario-block__response__inner",ref:this.setupFadeObserver,children:[(0,n.jsx)("div",{className:"scenario-block__response__number",children:o+1}),(0,n.jsx)(Le,{value:t}),(0,n.jsx)("div",{className:"scenario-block__response__inner-bottom"})]})});return(0,n.jsx)(Wn,{...m,children:(0,n.jsx)("li",{className:u,role:"listitem",children:p})},o)}renderText(t){const{description:s,goTo:o,hasCharacter:r,id:a,nextSlide:i}=t,c=this.props.getL10nValue(t.title),d=this.props.getL10nValue(s)||"",{labels:l,settings:u,getL10nValue:m}=this.props,{scenarioContinue:p,scenarioStartOver:g}=l,C=!s&&(c||"").length<22,v=u?.audioPosition,x=m(t.media),y=fn(x,v),S=y.renderOrder.indexOf("audio")<y.renderOrder.indexOf("text"),L=!!x?.audio,b=U()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!r,"scenario-block__text--short":C,"scenario-block__text--audio-top":S&&L}),T={classNames:"scenario-block__content-",nodeRef:this.textRef,timeout:{enter:0,exit:400}},N=u?.headingLevel,k=N?`h${N}`:"h2",E=`scenario-title-${a}`,I=`scenario-description-${a}`,A=`${E} ${I}`,R=U()("scenario-block__text__inner",{"scenario-block__text__inner--end":o==="end"}),j=U()("scenario-block__text__title",{"scenario-block__text__title--end":o==="end"}),O=(0,n.jsx)("div",{className:j,"data-l10n-id":jt(t.title),id:E,children:(0,n.jsx)(k,{children:c})}),w=L&&S&&(0,n.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(t)}),P=(0,n.jsx)("div",{className:"scenario-block__text__description",id:I,ref:this.setupFadeObserver,children:this.renderTextWithAudioPositioning(t,d,y)}),M=ce()(this.onFocus,$o()(this.onClick,[o,i])),z=(0,n.jsx)("button",{"aria-describedby":A,className:"scenario-block__text__continue",onClick:M,type:"button",children:(0,n.jsx)("span",{children:p})}),$=(0,n.jsxs)("button",{"aria-describedby":A,className:"scenario-block__text__end",onClick:M,type:"button",children:[(0,n.jsx)("span",{children:g}),(0,n.jsx)("i",{className:"icon icon-reload"})]});return(0,n.jsx)(Wn,{...T,children:(0,n.jsx)("div",{className:b,children:(0,n.jsxs)("div",{className:R,"data-scenario-focus":"",tabIndex:-1,children:[c&&O,w,s&&P,o==="end"?$:z]})},a)},a)}renderAudioMedia(t){const{blockId:s,getL10nValue:o,labels:r,lessonId:a,items:i,settings:c}=this.props,d=o(t.media),l=i?.[this.state.activeScene];return d?(0,n.jsx)($t,{blockId:s,index:s,item:t,labels:r,lessonId:a,lessonNumber:a,media:d,refs:`items:${s}/items:${l.id}/slides:${t.id}`,shouldPause:t.type!=="dialogue",volumeSliderPosition:c?.audioPosition==="top"?"below":"above"}):null}renderDialogueWithAudioPositioning(t,s,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,n.jsxs)(n.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(Le,{value:s})},`text-${i}`);if(a==="audio"&&!r){const c=this.renderAudioMedia(t);return c?(0,n.jsx)("div",{children:c},`audio-${i}`):null}return null}),(0,n.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})}renderTextWithAudioPositioning(t,s,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,n.jsxs)(n.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(Le,{value:s})},`text-${i}`);if(a==="audio"&&!r){const c=this.renderAudioMedia(t);return c?(0,n.jsx)("div",{children:c},`audio-${i}`):null}return null}),(0,n.jsx)("div",{className:"scenario-block__text__description-bottom"})]})}resetSlide(t,s){const{slides:o}=this.state,r=`${t}.${s}`,a={hasFeedback:!1,response:null};this.setState({slides:os()(r,a,o)})}resetSlides(){const{items:t}=this.props,s=r=>(a,i,c)=>{const{type:d,responses:l=[]}=i,u=d==="dialogue"&&l.length===0;return os()(`${r}.${c}`,{hasFeedback:u,response:null},a)},o=(r,a,i)=>st()(Lt()([],"slides"),s7(s(i),{}),Z9()(r))(a);this.setState({slides:s7(o,{},t)})}setNextSlide(){const{activeScene:t,activeSlide:s,slides:o}=this.state,r=this.getActiveScene()?.slides;if(!r)return;const{responses:a=[],type:i}=r[s]||{},c=`${t}.${s}`,d=os()("hasFeedback",!0),l=Kn()({[c]:d});i==="dialogue"&&gt()(a)&&(this.shouldFocus=!0,this.setState({slides:l(o)}))}shouldComponentUpdate(t,s){return t.items!==this.props.items||t.settings!==this.props.settings||s.activeScene!==this.state.activeScene||s.activeSlide!==this.state.activeSlide||s.initiated!==this.state.initiated||s.resizes!==this.state.resizes||s.slides!==this.state.slides||t.labels!==this.props.labels}}const gne=e=>{const t=is();return(0,n.jsx)(fne,{...e,getL10nValue:t})};function vne(){}var Cne=f(80588);class xne extends Cne.Component{render(){const{animateBlockEntrance:t,isLearner:s,previewType:o,initiallyVisible:r}=this.props,a=!Xe()(o),d={animateBlockEntrance:a,animateIn:t?"fadeIn":"none",duration:a&&t?1:0,initiallyVisible:r,isLearner:s};return(0,n.jsx)(we,{className:"block-scenario",children:(0,n.jsx)(Oe,{...d,children:(0,n.jsx)(gne,{...this.props})})})}}var bne=f(39495),ju=f.n(bne);function yne(e){e&&(e.addEventListener("touchstart",_o,!0),e.addEventListener("touchmove",_o,!0),e.addEventListener("touchcancel",_o,!0),e.addEventListener("touchend",_o,!0))}function Lne(e){e&&(e.removeEventListener("touchstart",_o,!0),e.removeEventListener("touchmove",_o,!0),e.removeEventListener("touchcancel",_o,!0),e.removeEventListener("touchend",_o,!0))}function _o(e){e?.stopPropagation?.()}const ni=_("playing-card"),o7=({id:e,isDeckTopCard:t,title:s,ref:o})=>{const[r,a]=(0,h.useState)(!1),[i,c]=(0,h.useState)(!1),[d,l]=(0,h.useState)({x:0,y:0}),[u,m]=(0,h.useState)(!0),[p,g]=(0,h.useState)(!1),[C,v]=(0,h.useState)(0),x=Zt(),y=(0,h.useRef)(null),S=(0,h.useRef)(null),L=(0,h.useRef)(void 0),b=(0,h.useRef)(void 0),T=(0,h.useRef)(!1),N=(0,h.useCallback)(()=>{const{innerWidth:M}=window,z=y.current&&y.current.scrollHeight>y.current.clientHeight,$=M<C;z&&M>C&&v(M),g(z||$)},[C]),k=(0,h.useRef)(()=>{a(!0),c(!1)}),E=(0,h.useRef)(()=>{a(!1)});(0,h.useImperativeHandle)(o,()=>({onStartSortAttempt:k.current,onEndSortAttempt:E.current})),(0,h.useEffect)(()=>{const M=setTimeout(()=>{m(!1)},300);return()=>clearTimeout(M)},[]),(0,h.useEffect)(()=>{const M=S.current;if(!M)return;const z=()=>{a(!0),c(!1)},$=({dx:V,dy:K})=>{l(Z=>({x:Z.x+V,y:Z.y+K}))},F=()=>{a(!1)};return k.current=z,E.current=F,yne(M),zn(M).draggable({inertia:!0,autoScroll:!1,modifiers:[zn.modifiers.snap({targets:[(V,K)=>({x:V,y:K})],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]})]}).on("dragstart",z).on("dragmove",$).on("dragend",F),N(),L.current=Cu()(N,250),window.addEventListener("resize",L.current),()=>{Lne(M),zn(M).off("dragstart",z).off("dragmove",$).off("dragend",F),L.current&&(L.current.cancel(),window.removeEventListener("resize",L.current)),clearTimeout(b.current)}},[N]),(0,h.useEffect)(()=>{N()},[e,N]),(0,h.useEffect)(()=>{const M=T.current;T.current=r,M&&!r&&(c(!0),clearTimeout(b.current),b.current=setTimeout(()=>{l({x:0,y:0}),c(!1)},300))},[r]);const I=x?.backgroundType===q.ACCENT||x?.backgroundType===q.IMAGE,A=`translate3d(${d.x}px, ${d.y}px, 0)`,R={WebkitTransform:A,transform:A},j=ni("title",{"is-max-length":p}),O=ni({draggable:!0,moving:r,fail:i,reset:u}),w=I?ni("content"):ni("content").mix("brand--border"),P=typeof s=="string"?s:s?.["en-US"]||"Card";return(0,n.jsxs)("div",{"aria-hidden":!t,className:O,id:e.toString(),onMouseDown:M=>{M.preventDefault()},ref:S,style:R,children:[t&&(0,n.jsxs)("div",{className:"visually-hidden-always",children:["Current item: ",P]}),(0,n.jsxs)(Ot,{"aria-hidden":"true",className:w,children:[(0,n.jsx)(Le,{className:j,id:`card-title-${e}`,ref:y,value:s}),(0,n.jsx)("div",{className:ni("handle")}),(0,n.jsx)("div",{className:ni("status"),children:(0,n.jsx)("i",{className:"icon icon-check"})})]})]},`card-${e}`)},wu=_("restart-button");function Sne({allowTabNavigation:e=!0,onClick:t,onFocus:s=tn,ref:o,text:r}){const a=wu({}).mix("button");return(0,n.jsx)("button",{"aria-hidden":!e,className:a,"data-testid":"quiz-take-again-button",onClick:t,onFocus:s,ref:o,tabIndex:Lq(e),type:"button",children:(0,n.jsxs)("div",{className:wu("content"),children:[(0,n.jsx)("span",{className:wu("text").mix("brand--ui"),children:r}),(0,n.jsx)("i",{"aria-hidden":"true",className:wu("icon").mix("icon").mix("icon-reload")})]})})}const Tne=Sne,Bc=_("deck"),Nne=e=>e?.percentViewed===100,kne=(e,t)=>`${e?.correctlyAnswered??0}/${t}`,Ine=(e,t)=>String(t?.lastIncorrectCardId)===String(e.id),Ene=({count:e,items:t,labels:s,id:o,onReplay:r,progress:a,ref:i})=>{const c=(0,h.useRef)([]),d=(0,h.useRef)(null);(0,h.useImperativeHandle)(i,()=>({startKeyDrop(){c.current[0]?.onStartSortAttempt()},endKeyDrop(){c.current[0]?.onEndSortAttempt()},focusReplayButton(){d.current?.focus()}}));const l=Nne(a),u=kne(a,e),m=()=>{r?.({id:o})};return(0,n.jsxs)("div",{className:Bc({complete:a?.percentViewed===100}),children:[(0,n.jsx)("div",{className:Bc("spacer")}),l&&(0,n.jsxs)("div",{className:Bc("cardholder"),children:[(0,n.jsxs)("div",{className:Bc("title").mix("brand--ui"),children:[u," ",s.sortingCardsCorrect]}),(0,n.jsx)(Tne,{allowTabNavigation:l,onClick:m,ref:d,text:s.sortingReplay})]}),(0,n.jsx)("div",{className:Bc("content"),children:t.map((p,g)=>(0,n.jsx)(o7,{id:p.id,isDeckTopCard:c.current[g]===c.current[0],isIncorrect:Ine(p,a),ref:C=>{c.current[g]=C},title:p.title},p.id))})]})},Dr=_("pile"),jne=({id:e,lessonId:t,deckTopCard:s,nextCard:o,isComplete:r=!1,onCardDrop:a,onNavigateToNext:i,onNavigateToPrevious:c,onKeyDropStart:d,onKeyDropEnd:l,title:u,ref:m})=>{const[p,g]=(0,h.useState)(void 0),[C,v]=(0,h.useState)(!1),[x,y]=(0,h.useState)(!0),[S,L]=(0,h.useState)(!1),[b,T]=(0,h.useState)(!1),[N,k]=(0,h.useState)(0),E=(0,h.useRef)(null),I=(0,h.useRef)(null),A=(0,h.useRef)(null),R=(0,h.useRef)(void 0),j=(0,h.useRef)(void 0),O=(0,h.useRef)(void 0),w=(0,h.useRef)(void 0),P=(0,h.useRef)(void 0),{announcePolite:M}=In(),z=(0,h.useEffectEvent)(()=>{if(r||!s)return;const B=s.id.toString(),G=s.pileId===e;a?.({id:t,itemId:B,isCorrect:G});const Y=typeof s.title=="string"?s.title:s.title?.["en-US"]||"",J=typeof u=="string"?u:u?.["en-US"]||"";if(G){clearTimeout(j.current),clearTimeout(O.current),clearTimeout(w.current),g(s),v(!0),y(!1);const Q=`Correct. ${Y}, category: ${J}`;M(Q);const se=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";se&&(w.current=setTimeout(()=>{M(`Next item. ${se}`)},500)),j.current=setTimeout(()=>{g(void 0),v(!1)},1500),O.current=setTimeout(()=>{y(!0)},1300)}else clearTimeout(j.current),clearTimeout(O.current),clearTimeout(w.current),g(void 0),v(!1),y(!0),M("Incorrect. Choose another category.")});(0,h.useImperativeHandle)(m,()=>({focus(){I.current?.focus()}}));const $=(0,h.useCallback)(()=>{const{innerWidth:B}=window,G=E.current&&E.current.scrollHeight>(E.current.offsetParent?.clientHeight??0),Y=B<N;G&&B>N&&k(B),T(G||Y)},[N]),F=(0,h.useCallback)(()=>{if(r||!s)return;d?.();const B=s.id.toString(),G=s.pileId===e;a?.({id:t,itemId:B,isCorrect:G});const Y=typeof s.title=="string"?s.title:s.title?.["en-US"]||"Card",J=typeof u=="string"?u:u?.["en-US"]||"Pile";if(G){clearTimeout(j.current),clearTimeout(O.current),clearTimeout(w.current),g(s),v(!0),y(!1);const Q=`Correct. ${Y}, category: ${J}`;M(Q);const se=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";se&&(w.current=setTimeout(()=>{M(`Next item. ${se}`)},500)),j.current=setTimeout(()=>{g(void 0),v(!1)},1500),O.current=setTimeout(()=>{y(!0)},1300)}else clearTimeout(j.current),clearTimeout(O.current),clearTimeout(w.current),g(void 0),v(!1),y(!0),M("Incorrect. Choose another category.")},[r,s,o,e,t,u,d,a,M]),V=(0,h.useCallback)(B=>{so(B)?bC(()=>c?.())(B):no(B)&&bC(()=>i?.())(B)},[c,i]),K=(0,h.useCallback)(()=>{r||(F(),clearTimeout(P.current),P.current=setTimeout(()=>l?.(),100))},[F,l,r]),Z=(0,h.useCallback)(()=>{L(!0)},[]),X=(0,h.useCallback)(()=>{L(!1)},[]);(0,h.useEffect)(()=>{const B=A.current;if(!B)return;const G=Q=>{const se=zn.getElementRect(Q.target),re={x:se.left+se.width/2,y:se.top+se.height/2};Q.draggable.draggable({snap:{targets:[re]}})},Y=Q=>{Q.draggable.draggable({snap:{targets:[(se,re)=>({x:se,y:re})]}})},J=Q=>{Q.draggable.draggable({snap:{targets:[(se,re)=>({x:se,y:re})]}}),Q.stopPropagation?.(),Q.preventDefault?.(),z()};return zn(B).dropzone({overlap:"pointer"}).on("dragenter",G).on("dragleave",Y).on("drop",J),$(),R.current=Cu()($,250),window.addEventListener("resize",R.current),()=>{zn(B).off("dragenter",G).off("dragleave",Y).off("drop",J),clearTimeout(j.current),clearTimeout(O.current),clearTimeout(w.current),clearTimeout(P.current),R.current&&(R.current.cancel(),window.removeEventListener("resize",R.current))}},[]);const te=U()(Dr(),{"drop-success":C,complete:r}),W=U()(Dr("content"),{"drop-animating":!x&&!S}),D=Dr("title",{"is-max-length":b}),H=typeof u=="string"?u:u?.["en-US"]||"Category";return(0,n.jsx)("div",{className:te,ref:A,children:(0,n.jsx)("div",{className:Dr("wrapwrap"),children:(0,n.jsxs)(Ot,{className:Dr("wrap"),overrideBackground:!0,children:[(0,n.jsx)("div",{"aria-hidden":"true",className:Dr("message"),children:(0,n.jsx)(Le,{className:D,ref:E,value:u})}),(0,n.jsx)("button",{"aria-disabled":r,"aria-label":H,className:W,disabled:r,onBlur:X,onClick:K,onFocus:Z,onKeyDown:V,ref:I,type:"button",children:p&&(0,n.jsx)(o7,{id:p.id,title:p.title})}),(0,n.jsx)("div",{className:Dr("background")})]})})})},Kp=_("sorting"),wne=(e,t)=>!t||!t.items?e:e.filter(s=>!t.items?.[s.id]?.isViewed),Ane=({id:e,labels:t,items:s,piles:o,onCardDrop:r,onReplay:a,progress:i})=>{const[c,d]=(0,h.useState)(()=>ju()(s)),[l,u]=(0,h.useState)(!1),m=(0,h.useRef)([]),p=(0,h.useRef)(null),g=(0,h.useRef)(i?.retryAttempts),C=(0,h.useRef)(i?.percentViewed),v=(0,h.useRef)(void 0),x=(0,h.useRef)(void 0),y=(0,h.useRef)(void 0),{announcePolite:S}=In(),L=(0,h.useEffectEvent)(()=>{m.current[0]?.focus()}),b=(0,h.useEffectEvent)(()=>{const j=i?.correctlyAnswered??0,O=s.length;S(`${j} of ${O} cards correct`)}),T=(0,h.useEffectEvent)(()=>{p.current?.focusReplayButton()});(0,h.useEffect)(()=>{const j=O=>{const{blockId:w,cardId:P}=Ia(O.detail.path,["block","card"]);e!==w||!P||d(M=>{const z=M.find(F=>F.id===P),$=M.filter(F=>F.id!==P);return z?[z,...$]:M})};return window.addEventListener(We,j),()=>{window.removeEventListener(We,j)}},[e]),(0,h.useEffect)(()=>{const j=i?.retryAttempts,O=g.current;return j!==O?(g.current=j,d(ju()(s)),clearTimeout(v.current),v.current=setTimeout(()=>{L()},100)):d(w=>{const P=s.filter($=>!w.find(F=>F.id===$.id));return[...w.filter($=>s.find(F=>F.id===$.id)).map($=>{const F=s.find(V=>V.id===$.id);return F?{...$,...F}:$}),...P]}),()=>{clearTimeout(v.current)}},[s,i?.retryAttempts]),(0,h.useEffect)(()=>{const j=i?.percentViewed,O=C.current;return j===100&&O!==100&&(u(!0),clearTimeout(x.current),x.current=setTimeout(()=>{b()},500),clearTimeout(y.current),y.current=setTimeout(()=>{T()},100)),j!==100&&O===100&&u(!1),C.current=j,()=>{clearTimeout(x.current),clearTimeout(y.current)}},[S,i?.correctlyAnswered,i?.percentViewed,s.length]);const{sortingLandmark:N}=t,k=wne(c,i),E=N,I=k?.[0],A=I?typeof I.title=="string"?I.title:I.title?.["en-US"]||"":"",R=l?"Categories. Interaction completed.":A?`Categories. ${A}`:"Categories";return(0,n.jsxs)("div",{"aria-label":E,className:Kp(),role:"group",children:[(0,n.jsx)("div",{className:Kp("row"),children:(0,n.jsx)(Ene,{count:c.length,id:e,items:k,labels:t,onReplay:a,progress:i,ref:p})}),(0,n.jsx)("ul",{"aria-label":R,className:Kp("row"),role:"list",children:o.map((j,O)=>(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(jne,{deckTopCard:k?.[0],id:j.id,isComplete:l,lessonId:e,nextCard:k?.[1],onCardDrop:r,onKeyDropEnd:()=>{p.current?.endKeyDrop()},onKeyDropStart:()=>{p.current?.startKeyDrop()},onNavigateToNext:()=>Sq({list:m.current,currentIndex:O}),onNavigateToPrevious:()=>Tq({list:m.current,currentIndex:O}),ref:w=>{m.current[O]=w},title:j.title})},j.id))})]})},r7=()=>()=>{},Rne=e=>{const{animateBlockEntrance:t,blockId:s,initiallyVisible:o,items:r,labels:a,onCardDrop:i=r7,onReplay:c=r7,piles:d,progress:l}=e;return(0,n.jsx)(we,{type:"sorting-activity",children:(0,n.jsx)(Oe,{animateBlockEntrance:t,initiallyVisible:o,isLearner:!0,children:(0,n.jsx)(Ane,{id:s,items:r,labels:a,onCardDrop:i(e),onReplay:c(e),piles:d,progress:Fe()({},["items",s],l)})})})};class Pne extends h.Component{static defaultProps={scope:"error-boundary"};constructor(t){super(t),this.state={hasError:!1,prevScope:t.scope}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}static getDerivedStateFromProps(t,s){return s.prevScope!==t.scope?{hasError:!1,error:void 0,prevScope:t.scope}:s}componentDidCatch(t){Qn.L2.addError(t,{scope:this.props.scope},"source")}render(){const{hasError:t,error:s}=this.state,{FallbackComponent:o}=this.props;return t||s?(0,n.jsx)(o,{}):this.props.children}}const Mne=Pne,One=(0,h.lazy)(()=>f.e("webpack_container_remote_mondrian_learn-react").then(f.t.bind(f,4246,23))),Bne={subscribe(e,t){const s=`mondrian:${e}`,o=()=>{de.isPlaying&&de.playerId!==s&&t()};return de.addChangeListener(o),()=>{de.removeChangeListener(o)}},play(e){const t=`mondrian:${e}`;de.playerId=t,de.isPlaying=!0}};function Dne(e){const t={};return e.backgroundType==="IMAGE"&&(t["--color-background"]="transparent"),t.maxWidth=(e.contentWidth??9999)+"rem",t.minWidth="0",t.margin="0 auto",t}function Hne({blockumentId:e,manifest:t}){let s=920,o=600;try{const r=t.blockuments?.[e];if(r){const a=t.items?.[r.children[0]?.id];if(a){const i=a.states[a.initialState];if(i){const c=i.width.value,d=i.height.value;typeof c=="number"&&typeof d=="number"&&(s=c,o=d)}}}}catch{}return(0,n.jsx)("svg",{"aria-hidden":"true",className:"block-mondrian__fallback",height:o,width:s})}function Fne({animateBlockEntrance:e=!0,initiallyVisible:t,blockumentId:s,isLearner:o=!1,settings:r,onStep:a,onTranscriptClose:i,onTranscriptOpen:c,onTranscriptUpdate:d,labels:l,transcriptPanelState:u}){const m=Me(),p=m.mondrian,g=h1(),C={externalLinksDisabled:"externalLinksDisabled"in m?m.externalLinksDisabled:!1,isExternalLink:zs},{currentLocale:v}=Qe(),x=Ds(),y=rW(),S=(0,h.useMemo)(()=>({active:v,source:x}),[v,x]),L=(0,h.useCallback)(I=>u?.audioPlayerIdOpen===pn({refs:`items:${s}/items:${I}`}),[s,u?.audioPlayerIdOpen]),b=(0,h.useCallback)(({refocusTarget:I,itemId:A,transcript:R})=>{L(A)?i?.():c?.({audioPlayerId:pn({refs:`items:${s}/items:${A}`}),focusing:!0,refocusTarget:I,transcriptMedia:{mondrianTranscript:R}})},[s,L,i,c]),T=(0,h.useCallback)(({itemId:I,transcript:A})=>{u?.audioPlayerIdOpen&&d?.({audioPlayerId:pn({refs:`items:${s}/items:${I}`}),transcriptMedia:{mondrianTranscript:A}})},[s,d,u]),N=(0,h.useCallback)(I=>{d?.({audioPlayerId:pn({refs:`items:${s}/items:${I}`}),focusing:!0})},[s,d]),k=(0,h.useMemo)(()=>({isPanelOpenForItem:L,focusPanel:N,togglePanel:b,updateTranscript:T}),[N,L,b,T]),E=(0,h.useCallback)(I=>{if(a)for(const A of Object.values(I))A.progress>=100&&a({id:A.itemId})},[a]);return(0,n.jsx)(we,{children:(0,n.jsx)(Mne,{FallbackComponent:$ne,children:(0,n.jsx)(Oe,{animateBlockEntrance:e,initiallyVisible:t,isLearner:o,children:(0,n.jsx)("div",{style:Dne(r),children:(0,n.jsx)(h.Suspense,{fallback:(0,n.jsx)(Hne,{blockumentId:s,manifest:p}),children:(0,n.jsx)(One,{blockumentId:s,hoveredItemPath:y.translationHoveredPath,labels:l,linkRenderConfig:C,locale:S,manifest:p,mediaStoreAdapter:Bne,onMediaProgress:E,runtimeInterface:window.Runtime,searchTerm:g?.term,transcriptPanelAdapter:k})})})})})})}const Vne=(0,h.memo)(Fne,zne);function zne(e,t){return e.blockumentId===t.blockumentId&&e.settings.backgroundType===t.settings.backgroundType&&e.settings.contentWidth===t.settings.contentWidth&&e.labels===t.labels&&e.transcriptPanelState?.audioPlayerIdOpen===t.transcriptPanelState?.audioPlayerIdOpen}function $ne(){return null}const _ne=_("block-ai-scenario"),Une=(0,h.lazy)(()=>f.e("webpack_container_remote_ai_scenario_player-react").then(f.t.bind(f,79812,23)));function Gne({scenarioId:e,onExit:t,onEdit:s,isEditDisabled:o,disabledTooltip:r}){const{currentLocale:a}=Qe(),i=Ds(),c=(0,h.useMemo)(()=>({active:a,source:i}),[a,i]);return(0,n.jsx)(we,{className:_ne("wrapper"),children:(0,n.jsx)(h.Suspense,{children:(0,n.jsx)(Une,{disabled:o,disabledTooltip:r,locale:c,onEdit:o?void 0:s,onExit:t,scenarioId:e})})})}const Wne=(0,h.memo)(Gne);var a7=f(67750),qe=f(80588);const Nt=_("block-code"),Kne=`${ye("CDN_URI")}/assets/rise/assets/blocks/code_block_unavailable.svg`;function i7(e,t){const s=c7(a7.parse(e.data));for(const o of s)if(o.type==="notification")t[o.method]?.(o.params);else throw new Error(`Unsupported RPC type "${o.type}"`)}function*c7(e){if(Array.isArray(e))for(const t of e)yield*c7(t);else yield e}function l7(e,t,s){return qe.useEffect(()=>{const r=new AbortController;return window.addEventListener("message",a=>{a.origin===window.origin&&t!=null&&e.current&&a.source===e.current.contentWindow&&i7(a,t)},{signal:r.signal}),()=>r.abort()},[t,e]),qe.useCallback(r=>{e.current?.contentWindow?.postMessage(r,s)},[e,s])}const Qne=(e,t,s)=>l7(e,s,window.origin),Zne=(e,t,s)=>l7(e,s,"*"),Yne=(e,t,s)=>{const[o,r]=qe.useState(()=>new BroadcastChannel(t));return qe.useEffect(()=>()=>o.close(),[o]),qe.useEffect(()=>{o.name!==t&&r(new BroadcastChannel(t))},[o,t]),qe.useEffect(()=>{const i=new AbortController;return o.addEventListener("message",c=>i7(c,s),{signal:i.signal}),()=>i.abort()},[o,s]),qe.useCallback(i=>{o.postMessage(i)},[o])},Xne=ui()?oo.isLocalFilesystem?Zne:Yne:Qne,Jne=window.location.origin==="";function qne(e){let t=Jne?"":"lib/sandbox/sandbox.html";return t+=`#channel=${encodeURIComponent(e)}`,t}function eoe(e){return typeof e=="number"?`${e/10}rem`:"-1px"}const toe={0:"small",1:"medium",2:"full"};function soe({editBlock:e,errors:t,isDragPreview:s,isLearn:o,isSidebarPreview:r,items:a,labels:i,onClearErrors:c,onError:d,onStep:l,previewType:u,settings:m}){const p=qe.useRef(null),C=Me()?.htmlBlocksDisabled,v=s||r||!!u,[x]=a,y=Ie(x.srcdoc),S=Ie(x.media),L=S?.sandbox?.src==null?void 0:`${S.sandbox.src}/index.html`,b=m?.autoResize===!0,T=m?.width??"0",[N,k]=qe.useState("-1px");qe.useEffect(()=>{b||k(eoe(m?.height))},[b,m?.height]);const[E,I]=qe.useState(0),[A,R]=qe.useState(!1),[j,O]=qe.useState(!1),[w]=qe.useState(()=>`rise-frontend-sandbox-${window.crypto.randomUUID()}`),P=qne(w),M=qe.useCallback(()=>{l?.({id:x.id})},[x.id,l]),z=qe.useCallback(({message:D})=>{d?.({message:D}),O(!0),console.error("Sandbox Error",D)},[d,O]),$=qe.useCallback(()=>{c?.(),O(!1),I(D=>D+1)},[c]),F=qe.useCallback(()=>{R(E>0)},[E]),V=qe.useCallback(({height:D})=>{b&&k(`${D}px`)},[b]),K=qe.useMemo(()=>({oncomplete:M,onerror:z,onload:F,onready:$,onresize:V}),[M,z,$,F,V]),Z=Xne(p,w,K),X=qe.useCallback((D,H)=>{if(p==null&&E===0)throw new Error("Attempted to send message to sandbox before it is ready");const B=a7.format.notification(D,H);Z(B)},[E,p,Z]),te=qe.useCallback(()=>{window.location.reload()},[]),W=qe.useCallback(()=>{e?.()},[e]);return qe.useEffect(()=>{E&&X("onupdate",{autoResize:b,src:L,srcDoc:y})},[b,E,X,L,y]),o&&t!=null||j?(0,n.jsx)(we,{children:(0,n.jsxs)("div",{className:Nt("error-general",{learn:o}),children:[(0,n.jsx)("div",{className:Nt("error-message"),children:"Something went wrong"}),(0,n.jsx)("div",{className:Nt("error-message-subtitle"),children:"There was an error loading this code block. Please contact your admin if the issue continues."}),(0,n.jsx)(Be.ArcButton,{className:Nt("error-button"),onClick:te,size:"lg",variant:"primary",children:"Refresh page"})]})}):t!=null&&Object.keys(t).length>0?(0,n.jsx)(we,{children:t[404]?(0,n.jsxs)("div",{className:Nt("error-404"),children:[(0,n.jsx)("div",{className:Nt("error-message"),children:"We couldn\u2019t find your file"}),(0,n.jsx)("div",{className:Nt("error-message-subtitle"),children:"Make sure your zip file contains an index.html file."}),(0,n.jsx)(Be.ArcButton,{className:Nt("error-button"),onClick:W,size:"lg",variant:"primary",children:"Retry upload"})]}):(0,n.jsxs)("div",{className:Nt("error-general"),children:[(0,n.jsx)("div",{className:Nt("error-message"),children:"Something went wrong"}),(0,n.jsxs)("div",{className:Nt("error-message-subtitle"),children:["Try refreshing the page or entering your code again. If the issue isn't fixed,"," ",(0,n.jsx)("a",{href:"https://community.articulate.com/group/code-block",rel:"noopener noreferrer",target:"_blank",children:"visit our community"}),"."]}),(0,n.jsx)(Be.ArcButton,{className:Nt("error-button"),onClick:te,size:"lg",variant:"primary",children:"Refresh page"})]})}):C&&!v?(0,n.jsx)(we,{children:(0,n.jsx)("div",{className:Nt("restricted"),children:(0,n.jsxs)("div",{className:Nt("restricted-card"),children:[(0,n.jsx)(Jm,{alt:"",className:Nt("restricted-icon"),src:Kne}),(0,n.jsx)("div",{className:Nt("restricted-title"),children:"Subscribe to unlock full access"}),(0,n.jsx)("div",{className:Nt("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,n.jsx)(we,{children:(0,n.jsx)("iframe",{allow:"fullscreen",className:Nt({"auto-resize":b,loaded:v||A,width:toe[T]}),"data-rise-frontend-sandbox":"",loading:"lazy",ref:p,sandbox:"allow-forms allow-popups allow-same-origin allow-scripts",scrolling:b?"no":void 0,src:P,style:{"--block-html-height":N},title:i?.a11yBlockCode},w)})}const Uo=_("timeline-card"),noe=e=>{const{blockId:t,disableZoom:s,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:d,mediaType:l,audioPosition:u}=e,{settings:m}=a,p=Ie(a.media)??{},g=l==="audio"&&p.audio,C=l==="embed"&&p.embed,v=l==="image"&&p.image,x=l==="video"&&p.video;if(!g&&!C&&!v&&!x&&!(l==="image-with-audio"&&r))return;const S=p.embed?Mr(p.embed):void 0,L=!!p.image,b=!!p.audio,T=L?p.image.align:"center",N=Uo("media",{audio:b&&!r,"audio-and-embed":!!(p.audio&&p.embed),"image-with-audio":r,[`image-with-audio-${T}`]:r&&!!T,"audio-on-bottom":b&&!r&&u==="bottom",linkEmbed:S==="link",videoEmbed:S==="video",visual:!r&&L||!Xe()(p.video)}),k=m||{};return(0,n.jsx)("div",{className:N,children:(0,n.jsx)($t,{blockId:t,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:d,media:p,mediaType:r?void 0:l,opts:{disableZoom:s,...k}})})},ooe=e=>{const{headingLevel:t,innerRef:s,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:c}=e,{id:d}=o,l=Uo({active:r}),u=!!o.date,m=!!o.title,p=t||2,g=`h${p}`,C=`h${p+1}`,v=Ie(o.media)??{},x=fn(v,i,!0,"timeline"),y=()=>{if(!v||!a)return null;const S={audio:{item:{...o,media:x.audioOnlyMedia||v},mediaType:"audio"},image:{item:{...o,media:x.imageOnlyMedia||v},mediaType:"image"},video:{item:{...o,media:x.videoOnlyMedia||v},mediaType:"video"},embed:{item:{...o,media:x.embedOnlyMedia||v},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,n.jsx)(n.Fragment,{children:x.renderOrder.map((L,b)=>{if(L==="text")return(0,n.jsx)(Le,{className:Uo("description"),value:o.description},`text-${b}`);const T=S[L];return T?(0,h.createElement)(noe,{...e,...T,key:`${L}-${b}`}):null})})};return(0,n.jsx)("div",{className:l,"data-id":d,ref:s,children:(0,n.jsx)(Ot,{className:Uo("body"),onFocus:c,children:(0,n.jsx)("div",{className:Uo("main-wrap"),children:(0,n.jsxs)("div",{className:Uo("main"),children:[u&&(0,n.jsx)("div",{className:Uo("date"),children:(0,n.jsx)(g,{children:(0,n.jsx)(lt,{value:o.date})})}),m&&(0,n.jsx)("div",{className:Uo("title"),children:(0,n.jsx)(C,{children:(0,n.jsx)(lt,{value:o.title})})}),y()]})})})})},Dc=_("timeline"),roe=e=>{const{audioPosition:t,disableZoom:s,enableVideoPlaybackSpeed:o,headingLevel:r,id:a,initiallyVisible:i,isBlock:c,isLearner:d,item:l,labels:u,lessonId:m,onFocus:p}=e,g=(0,n.jsx)(ooe,{audioPosition:t,blockId:a,disableZoom:s,enableVideoPlaybackSpeed:o,headingLevel:r,isActive:!0,item:l,labels:u,lessonId:m,lessonNumber:a,loadMedia:!0,onFocus:p});return c?d?(0,n.jsx)(Oe,{animateBlockEntrance:!0,className:Dc("animate").toString(),initiallyVisible:i,isLearner:!0,children:g}):g:null},aoe=e=>{const{id:t,items:s,labels:o,onEnter:r=Function.prototype,settings:a={}}=e,i=(0,h.useRef)(null),c=(0,h.useCallback)((d,l)=>{r({id:t,payload:{activeIndex:d,itemId:l}})},[t,r]);return(0,h.useEffect)(()=>{function d(l){const{blockId:u,cardId:m}=Ia(l.detail.path,["block","card"]);if(u!==t)return;const p=i.current.querySelector(`[data-id="${m}"]`);p&&!qm(p,"center")&&p.scrollIntoView({behavior:"instant",block:"center"})}return window.addEventListener(We,d),()=>{window.removeEventListener(We,d)}}),(0,n.jsx)("div",{"aria-label":o?.a11yBlockTimeline,className:"page__content-container",ref:i,role:"group",children:(0,n.jsx)("div",{className:Dc("wrapper"),children:(0,n.jsx)("div",{className:Dc(),children:(0,n.jsx)("ul",{className:Dc("container"),role:"list",children:s.map((d,l)=>(0,n.jsx)("li",{className:Dc("card-wrapper"),role:"listitem",children:roe({index:l,item:d,onFocus:c,...e,disableZoom:!a.zoomOnClick,headingLevel:a.headingLevel,audioPosition:a.audioPosition})},l))})})})})},ioe=({animateBlockEntrance:e,blockId:t,enableVideoPlaybackSpeed:s,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:c,settings:d})=>(0,n.jsx)(Oe,{animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:o,isLearner:r,children:(0,n.jsx)(we,{type:"timeline",children:(0,n.jsx)(aoe,{enableVideoPlaybackSpeed:s,id:t,initiallyVisible:o,isBlock:!0,isLearner:r,items:a,labels:i,lessonId:c,settings:d})})}),coe=e=>(0,n.jsx)("div",{className:"unsupported-block",...e,children:(0,n.jsxs)("span",{children:["We no longer support this block, so you can safely delete it. If you have any questions, please"," ",(0,n.jsx)("a",{href:"https://access.articulate.com/support/contact",children:"contact Articulate Support."})]})});var ms=f(30467),loe=f(28565),d7=f(97226),doe=f(67001),u7=f.n(doe);const Xve=(e,t)=>s=>{const o=s.findIndex(a=>a.id==t);if(o===-1)return s;const r=s.slice();return r[o]=e(s[o]),r},Jve=e=>t=>t.filter(s=>s.id!=e),qve=(e,t)=>s=>{const o=s.slice(),[r]=o.splice(e,1);return o.splice(t,0,r),o};function uoe(e,t){const s=[];for(const o of t)if(s.push(o),e(o))break;return s}const hoe=e=>e.some(t=>t<0),h7=e=>Array.from(Array(e)),m7=(e,t)=>h7(t).map(()=>e),moe=(e,t,s,o)=>h7(s).map((r,a)=>a===o?t:e),e3e=(e,t,s)=>s.some(o=>o[e]==t);function t3e(e,t,s){if(t>=s.length)return s.slice(0);const o=Math.floor(t/2),r=Math.ceil(t/2),a=e-o,i=e+r;return i>s.length?s.slice(s.length-t):a>=0?s.slice(a,i):s.slice(0,t)}const Au=(e,t)=>{const s=Math.min(e.length,t.length),o=new Array(s);for(let r=0;r<s;r++)o[r]=[e[r],t[r]];return o};var p7=f(21570);const poe=matchMedia("(forced-colors: active)");function Hc(){return poe.matches}const foe=({activeIndex:e,values:t,opts:s})=>{const{background:o,variant:r}=St(),{chartColor:a,lineCurve:i}=Zt(),c=bs(),d=Ii(),l=s?.defaultFontColor,u=jn(),m=u===q.IMAGE,g=Ie(o?.media)?.image?.overlayColor??nt.DARK,C=Hc();let v=a??d,x=c||"#fff";!a&&u===q.ACCENT||a===x?v=l:m&&(v=g===nt.DARK?"#fff":"#000",x=g===nt.DARK?"#000":"#fff"),C&&(v="Highlight",x="Canvas");let y=v,S=Array(t.length).fill(v);if(e!=null&&!C){const L=m&&g===nt.LIGHT?.2:.7,b=(0,p7.A)(v,x,L);y=b,S=moe(b,v,t.length,e)}return r==="bar"?{backgroundColor:S,data:t,hoverBackgroundColor:S}:{borderColor:y,cubicInterpolationMode:i==="linear"?"default":"monotone",data:t,lineTension:i==="linear"?0:void 0,pointBackgroundColor:S,pointBorderColor:S,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:v,pointHoverBorderColor:v,pointHoverBorderWidth:0,pointRadius:4}};function goe({activeIndex:e,children:t,opts:s,values:o}){const r=foe({activeIndex:e,opts:s,values:o});return t(r)}class voe extends h.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:t,identifier:s,index:o,label:r,value:a}=this.props,i=t!=null&&t!==o,c=U()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":i});return(0,n.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,n.jsx)("dt",{className:"block-chart__cartesianLegendTerm",children:`${s}.`}),(0,n.jsxs)("dd",{className:"block-chart__cartesianLegendDefn","data-l10n-id":r.l10nId,children:[r.label,(0,n.jsx)("span",{className:"block-chart__cartesianLegendDefnPipe",role:"separator",children:"|"}),(0,n.jsx)("span",{className:"block-chart__cartesianLegendDefnVal",children:a})]})]})}}const Coe=voe,xoe=({activeIndex:e,labels:t,letters:s,onEvent:o,values:r})=>{const a=Au(s,Au(t,r));return a.length===0?null:(0,n.jsx)("dl",{className:"block-chart__cartesianLegend",children:a.map(([i,[c,d]],l)=>(0,n.jsx)(Coe,{activeIndex:e,identifier:i,index:l,label:c,onEvent:o,value:d},i))})},boe=(0,h.memo)(xoe);function yoe(e){const t=this.getLabelForValue(e),s=15,o=t.split(" "),r=[];let a="";return o.forEach(i=>{(a+i).length>s?(r.push(a),a=i):a+=(a.length>0?" ":"")+i}),r.push(a),r}const Loe={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:e=>{const{label:t,formattedValue:s}=e[0];return`${t}: ${s}`}},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom"}},responsive:!1,scales:{x:{border:{display:!1},grid:{display:!1,offset:!0},offset:!0,ticks:{autoSkip:!1,callback:yoe,padding:10}},y:{beginAtZero:!0,border:{display:!1},grid:{drawTicks:!1},ticks:{maxTicksLimit:8,padding:15}}}};function Soe({values:e,contrastColor:t}){const s=St(),o=jn(),r=o===q.IMAGE,a=(0,h.useMemo)(()=>hoe(e),[e]);let i,c;const l=Ie(s?.background?.media)?.image?.overlayColor??nt.DARK,u=r&&l===nt.LIGHT;switch(o){case q.LIGHT:case q.GRAY:case q.TINT:[i,c]=["#e1e1e1","#c9c9c9"];break;case q.DARK:case q.BLACK:case q.IMAGE:[i,c]=["#ffffff80","#ffffffe9"];break;case q.ACCENT:case q.COLOR:{[i,c]=t==="#000"?["#00000080","#0000001a"]:["#ffffff80","#ffffffe9"];break}}return r&&u&&([i,c]=["#00000080","#0000001a"]),a||(c=i),[i,c]}const Toe=({onEvent:e,reduceMotion:t,shouldAnimate:s,values:o})=>{const r=bs(),{customBackgroundColorContrast:a}=Zt(),i=Me(),c=Ii(),d=i?.theme?.accentContrast,l=jn(),u=l===q.IMAGE,m=St(),p=Hc(),g=Bs(r),C=!a&&m?.family==="chart",v=a??pe.DARK,x=C?g:v,S=Ie(m?.background?.media)?.image?.overlayColor??nt.DARK,L=u&&S===nt.LIGHT,b=l===q.ACCENT||l===q.COLOR,T=l===q.ACCENT?c:r,N=l===q.ACCENT?d:x,k=At({backgroundColor:T,contrast:N}),[E,I]=Soe({values:o,contrastColor:k}),A=(0,h.useCallback)(j=>p&&u?L?"#000000":"#FFFFFF":j.tick.value===0?I:E,[E,p,I,u,L]);return(0,h.useMemo)(()=>{let j="#000";if(p)u?j=L?"#000000":"#FFFFFF":j="FieldText";else{switch(l){case q.DARK:case q.BLACK:case q.IMAGE:j="#fff";break}b&&(j=k),u&&L&&(j="#000")}const O=s&&!t?1e3:0;let w,P;p?u?(w=j,P=L?"#FFFFFF":"#000000"):(w="Highlight",P="HighlightText"):(w=j,P=j==="#000"||j==="#000000"||j===pe.DARK?"#FFFFFF":"#000000");const M=z0()(Loe);return M.animation.duration=O,M.defaultFontColor=j,M.onClick=e,M.onHover=e,M.plugins.tooltip.animation=!t,M.plugins.tooltip.backgroundColor=w,M.plugins.tooltip.titleColor=P,p&&!u?(M.scales.x.grid.color="FieldText",M.scales.y.grid.color="FieldText"):(M.scales.x.grid.color=E,M.scales.y.grid.color=A),M.scales.x.ticks.color=j,M.scales.y.ticks.color=j,p&&(u?M.plugins.legend.labels.color=L?"#000000":"#FFFFFF":M.plugins.legend.labels.color="FieldText"),M},[l,k,E,b,p,u,L,e,t,A,s])};function Noe(e){const{children:t,onEvent:s,reduceMotion:o,shouldAnimate:r,values:a}=e,i=Toe({onEvent:s,reduceMotion:o,shouldAnimate:r,values:a});return t(i)}var koe=f(94870),Qp=f.n(koe);const Ioe=/<mark>|<\/mark>/gm,Eoe=e=>t=>{const s=e(t.type).replace(Ioe,"")??"";return{label:Qp()(s,{length:30}),l10nId:jt(t?.type)}},joe=e=>parseFloat(e.value??"0"),f7=(e,t)=>({labels:e.map(Eoe(t)),values:e.map(joe)});function woe(e,t,s){const o=[];let r=0;return s.replace(e,function(...a){const i=a.length,c=a[0],d=a[i-1],l=a[i-2],u=d.slice(r,l),m=typeof t=="function"?t(...a):t;return o.push(u,m),r=l+c.length,""}),o.push(s.slice(r)),o}const Aoe=(e,t)=>(0,n.jsx)("mark",{children:e},t),Roe=(e,t)=>woe(new RegExp(Nte()(t),"igm"),Aoe,e),g7=(e,t,s)=>{const o=Qp()(t,{length:e});return s?Roe(o,s):o};function Poe(){const[e,t]=h.useState(null),s=h.useRef(null),{announcePolite:o}=In(),{a11yBlockChartPreposition:r}=as()??{},a=h.useCallback(p=>{t(p)},[]),i=h.useCallback(()=>{s.current?.resize()},[]),c=h.useCallback(()=>{s.current?.update()},[]),d=h.useCallback(()=>{i(),c()},[i,c]),l=h.useCallback(()=>{const p=s.current;if(p==null)return;const g=p.getDatasetMeta(0),C=g.data;if(!C?.length)return;const v=0,y=[{datasetIndex:0,element:g.data[v],index:v}];p.setActiveElements(y),p.tooltip?.setActiveElements(y,{x:0,y:0}),p.update(),a(v);const S=p.data.labels[v],L=p.data.datasets[0].data[v];setTimeout(()=>{o(`${v+1} ${r??""} ${C.length} - ${S}: ${L}`)},0)},[r,o,s,a]),u=h.useCallback(()=>{const p=s.current;if(p==null)return;const g=[];p.setActiveElements(g),p.tooltip?.setActiveElements(g,{x:0,y:0}),p.update(),a(null),o(null)},[o,s,a]),m=h.useCallback(p=>{const g=s.current;if(g==null)return;const C=g.getDatasetMeta(0),v=C.data;if(!v?.length)return;let x=!1,y=e;switch(p.key){case"ArrowLeft":x=!0,y=(e-1+v.length)%v.length;break;case"ArrowRight":x=!0,y=(e+1+v.length)%v.length;break;case"Home":x=!0,y=0;break;case"End":x=!0,y=v.length-1;break}if(x&&(p.stopPropagation(),p.preventDefault()),y!==e){const L=[{datasetIndex:0,element:C.data[y],index:y}];g.setActiveElements(L),g.tooltip?.setActiveElements(L,{x:0,y:0}),g.update(),a(y);const b=g.data.labels?.[y],T=g.data.datasets[0].data[y];o(`${y+1} ${r??""} ${v.length} - ${b}: ${T}`)}},[r,e,o,s,a]);return h.useEffect(()=>{s.current&&(s.current.resize(),s.current.update())},[]),h.useEffect(()=>{s.current&&s.current.update()},[e]),{activeIndex:e,chartRef:s,onBlur:u,onFocus:l,onKeyDown:m,onEvent:a,onResize:d}}function v7(e){const t=s=>{const{activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:c,onKeyDown:d,onResize:l}=Poe();return(0,n.jsx)(e,{...s,activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:c,onKeyDown:d,onResize:l})};return t.displayName=`withChartEvents(${e.displayName||e.name})`,t}const Moe="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");class Ooe extends h.PureComponent{wrapRef;id;resizeObserver;constructor(t){super(t),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=(t,s)=>{const o=s.length?s[0].index:null;this.props.onEvent(o)};handleResize=()=>{requestAnimationFrame(()=>{this.props.onResize(),this.setLabelYTop()})};setLabelYTop=()=>{const t=this.props.chartRef.current;if(t){const{bottom:s,top:o}=t?.scales?.y??{};u7()(s)&&u7()(o)&&this.setState({labelYTop:`${(s+o)/2}px`})}};render(){const{props:{activeIndex:t,chartRef:s,getL10nValue:o,htmlIdBase:r,htmlIdTitle:a,onBlur:i,onFocus:c,onKeyDown:d,isDesktop:l,isVisible:u,items:m,itemsLabel:p,labels:g,onEvent:C,search:v,shouldAnimate:x,valuesLabel:y,variant:S},state:{labelYTop:L}}=this,b=g7(80,o(p),v),T=g7(30,o(y),v),N=f7(m,o),k=l?[]:Moe.slice(0,m.length),E=l?N.labels:k.map(w=>({label:w})),I=u?N.values:m7(0,m.length),A=`${r}-type`,R=`${r}-instructions`,j=E.map(w=>w.label),O=E.map(w=>w.l10nId).join(",");return(0,n.jsxs)("div",{className:"block-chart__cartesian",children:[(0,n.jsx)("p",{className:"visually-hidden-always",id:R,children:g?.a11yBlockChartInstructions}),(0,n.jsxs)("div",{className:"block-chart__cartesianChart",ref:this.wrapRef,children:[T&&cn(T)&&(0,n.jsxs)("div",{className:"block-chart__cartesianLabelY","data-l10n-id":jt(y),style:{insetInlineEnd:L},children:[T,(0,n.jsx)("span",{className:"visually-hidden-always",children:g?.a11yBlockChartAxisY})]}),b&&cn(b)&&(0,n.jsxs)("div",{className:"block-chart__cartesianLabelX","data-l10n-id":jt(p),children:[b,(0,n.jsx)("span",{className:"visually-hidden-always",children:g?.a11yBlockChartAxisX})]}),(0,n.jsx)(Noe,{onEvent:this.handleEvent,reduceMotion:Ns(),shouldAnimate:x,values:I,children:w=>(0,n.jsx)(goe,{activeIndex:t,opts:w,values:I,children:P=>(0,n.jsxs)("div",{"aria-describedby":R,"aria-labelledby":`${a} ${A}`,className:"block-chart__cartesian-canvas-wrap",onBlur:i,onFocus:c,onKeyDown:d,role:"application",tabIndex:0,children:[(0,n.jsx)("div",{className:"visually-hidden-always",id:A,children:S==="bar"?g?.a11yBlockChartBar:g?.a11yBlockChartLine}),(0,n.jsx)(d7.Chart,{"aria-hidden":"true",data:{labels:j,datasets:[P]},"data-l10n-id":O,options:w,ref:s,role:"presentation",type:S,updateMode:"default"})]})})})]}),!l&&(0,n.jsx)(boe,{activeIndex:t,labels:N.labels,letters:k,onEvent:C,values:I})]})}}function Boe(e){const t=Ke(e),s=Vz(960,"isDesktop","Desktop")(t),o=v7(s);function r(a){const c=h1()?.term??"";return(0,n.jsx)(o,{...a,search:c})}return r}const Doe=Boe(Ooe),Zp=({valueType:e,value:t,values:s})=>e==="numeric"?String(t):Oee(t/c9(s)),Hoe=e=>{if(Hc())return"FieldText";const t=e.dataset.backgroundColor[e.dataIndex]??"#000";return Bs(t)===pe.DARK?ft.DARK:ft.LIGHT},Foe=(e,t,s)=>Zp({valueType:e,value:t,values:s.dataset.data}),Voe=(e,t)=>{const{label:s,dataset:o,parsed:r}=t[0],a=Zp({valueType:e,value:r,values:o.data});return`${s}: ${a}`},zoe=(e,t)=>{const s=t.dataIndex,o=t.dataset.data??[1],r=o[s],a=e==null&&r/c9(o)>=.06;return e===s||a},$oe=({activeIndex:e,onEvent:t,reduceMotion:s,settings:{valueType:o},shouldAnimate:r})=>{const a=Hc();return{animation:{animateRotate:r&&!s,duration:r&&!s?1e3:0},defaultFontFamily:'"lato", sans-serif',onClick:t,onHover:t,maintainAspectRatio:!1,plugins:{datalabels:{color:Hoe,display:zoe.bind(null,e),font:{size:12,weight:"bold"},formatter:Foe.bind(null,o)},legend:{display:!1,labels:a?{color:"FieldText"}:void 0},tooltip:{animation:!s,boxPadding:"14px 10px",callbacks:{label:()=>null,title:Voe.bind(null,o)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom",backgroundColor:a?"Highlight":ft.LIGHT,titleColor:a?"HighlightText":ft.DARK}},responsive:!1,rotation:130}},_oe=({activeIndex:e,colors:t,hasBorder:s,values:o})=>{const r=bs(),a=Hc(),i=e==null?t:t.map((c,d)=>d===e?c:(0,p7.A)(c,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,...s&&{borderWidth:1,borderColor:"#000"}}};function Uoe({activeIndex:e,children:t,colors:s,hasBorder:o,values:r}){const a=_oe({activeIndex:e,colors:s,hasBorder:o,values:r});return t(a)}class Goe extends h.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:t,color:s,index:o,label:r,value:a}=this.props,i=t!=null&&t!==o,c=U()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":i});return(0,n.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,n.jsxs)("dt",{className:"block-chart__circleLegendTerm",children:[(0,n.jsx)("svg",{"aria-hidden":"true",className:"block-chart__circleLegendSymbol","data-ignore":"contrast",fill:s,focusable:"false",role:"presentation",viewBox:"0 0 10 10",children:(0,n.jsx)("rect",{height:"10",rx:"1.5",width:"10"})}),(0,n.jsx)("span",{className:"block-chart__circleLegendText","data-l10n-id":r.l10nId,children:r.label})]}),(0,n.jsx)("dd",{className:"visually-hidden-always",children:a})]})}}const Woe=Goe,Koe=({activeIndex:e,colors:t,hasBorder:s,labels:o,onEvent:r,values:a,valueType:i="numeric"})=>{const c=Au(t,Au(o,a));if(c.length===0)return null;const d=U()("block-chart__circleLegend",{"block-chart__circleLegend--border":s});return(0,n.jsx)("dl",{className:d,children:c.map(([l,[u,m]],p)=>(0,n.jsx)(Woe,{activeIndex:e,color:l,index:p,label:u,onEvent:r,value:Zp({valueType:i,value:m,values:a})},u.label))})},Qoe=(0,h.memo)(Koe),Zoe=(e,t)=>{const s=e.filter(a=>Number(a.value)>=0),o=f7(s,t),r=s.map(a=>a.color);return{...o,colors:r}};class Yoe extends h.PureComponent{wrapRef;id;resizeObserver;constructor(t){super(t),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:t,settings:s,shouldAnimate:o}=this.props;return $oe({activeIndex:t,onEvent:this.handleEvent,reduceMotion:Ns(),settings:s,shouldAnimate:o})};handleEvent=(t,s)=>{const o=s.length?s[0].index:null;this.props.onEvent(o)};render(){const{activeIndex:t,backgroundColor:s,chartRef:o,getL10nValue:r,htmlIdBase:a,htmlIdTitle:i,onBlur:c,onFocus:d,onKeyDown:l,isVisible:u,items:m,labels:p,onEvent:g,settings:C}=this.props,{colors:v,labels:x,values:y}=Zoe(m,r),S=u?y:m7(0,m.length),L=this.buildOptions(),b=`${a}-type`,T=`${a}-instructions`,N=x.map(E=>E.label),k=v.includes(s);return(0,n.jsxs)("div",{className:"block-chart__circle",children:[(0,n.jsx)("p",{className:"visually-hidden-always",id:T,children:p?.a11yBlockChartInstructions}),(0,n.jsx)("div",{className:"block-chart__circleChart",ref:this.wrapRef,children:(0,n.jsx)(Uoe,{activeIndex:t,colors:v,hasBorder:k,values:S,children:E=>(0,n.jsxs)("div",{"aria-describedby":T,"aria-labelledby":`${i} ${b}`,className:"block-chart__circle-canvas-wrap",onBlur:c,onFocus:d,onKeyDown:l,role:"application",tabIndex:0,children:[(0,n.jsx)("div",{className:"visually-hidden-always",id:b,children:p?.a11yBlockChartPie}),(0,n.jsx)(d7.Chart,{"aria-hidden":"true",data:{labels:N,datasets:[E]},options:L,ref:o,role:"presentation",type:"pie",updateMode:"default"})]})})}),(0,n.jsx)(Qoe,{activeIndex:t,colors:v,hasBorder:k,labels:x,onEvent:g,values:S,valueType:C?.valueType})]})}}function Xoe(e){const t=eR()(e),s=v7(t);return Ke(s)}const Joe=Xoe(Yoe);ms.Chart.register(ms.ArcElement,ms.BarController,ms.BarElement,ms.CategoryScale,loe.default,ms.Legend,ms.Legend,ms.LineController,ms.LineElement,ms.LinearScale,ms.PieController,ms.PointElement,ms.Title,ms.Tooltip);const qoe=e=>e.displayName||e.name||"Component";class ere extends h.PureComponent{id;constructor(t){super(t),this.state={isVisible:!1},this.id=(0,m0.uniqueId)("chart-")}componentDidMount(){this.setState({isVisible:!this.props.animateBlockEntrance||Ns()})}handleAnimationEnd=()=>{this.setState({isVisible:!0})};renderTitle=()=>{const{title:t}=this.props;return(0,n.jsx)(Le,{value:t})};render(){const{props:{animateBlockEntrance:t,children:s,editable:o,initiallyVisible:r,isLearner:a,items:i,itemsLabel:c,labels:d,settings:l,title:u,valuesLabel:m,variant:p,renderTitle:g=this.renderTitle},state:{isVisible:C}}=this,v=l?.headingLevel,x=v?`h${v}`:"h2",y=this.id,S=`${y}-title`;return(0,n.jsx)(we,{type:"chart",children:(0,n.jsx)(Oe,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:t,initiallyVisible:r,isLearner:a,children:(0,n.jsx)("div",{className:"block-chart__container",children:(0,n.jsx)("div",{className:"block-chart__row",children:(0,n.jsx)("div",{className:"block-chart__rowInner",children:(0,n.jsxs)("figure",{children:[(!o&&u||o)&&(0,n.jsx)("figcaption",{children:(0,n.jsx)(x,{className:"block-chart__title",id:S,children:g()})}),(0,n.jsx)("div",{className:"block-chart__chart",children:h.cloneElement(h.Children.only(s),{htmlIdBase:y,htmlIdTitle:S,isVisible:C,items:i,itemsLabel:c,labels:d,settings:l,shouldAnimate:t,valuesLabel:m,variant:p})})]})})})})})})}}const tre=ere;function C7(e){const t=s=>(0,n.jsx)(tre,{...s,children:(0,n.jsx)(e,{})});return t.displayName=`ChartWrap(${qoe(e)})`,t}var sre=f(80588);const nre=C7(Doe),ore=C7(Joe),rre=As()(Pe()("variant","storyline")),are=st()(rre,Qt(),UQ()(1));class ire extends sre.Component{render(){const{dividerNumber:t,family:s,handleStorylineFullscreen:o,partnerContent:r,variant:a,enableVideoPlaybackSpeed:i,initiallyVisible:c}=this.props,l={...Kr()(["type","handleStorylineFullscreen","dividerNumber"],this.props),enableVideoPlaybackSpeed:i,partnerContent:r,initiallyVisible:c};return oe("text","paragraph",l)||oe("text","table",l)?(0,n.jsx)(IX,{...l}):oe("text","heading paragraph",l)?(0,n.jsx)(PX,{...l}):oe("text","subheading paragraph",l)?(0,n.jsx)(MX,{...l}):oe("text","heading",l)?(0,n.jsx)(AX,{...l}):oe("text","subheading",l)?(0,n.jsx)(RX,{...l}):oe("text","two column",l)?(0,n.jsx)(EX,{...l}):oe("text","three column",l)?(0,n.jsx)(jX,{...l}):oe("text","four column",l)?(0,n.jsx)(wX,{...l}):oe("text","code",l)?(0,n.jsx)(b8,{...l}):oe("impact","a",l)?(0,n.jsx)(KX,{...l}):oe("impact","b",l)?(0,n.jsx)(QX,{...l}):oe("impact","c",l)?(0,n.jsx)(ZX,{...l}):oe("impact","d",l)?(0,n.jsx)(YX,{...l}):oe("impact","note",l)?(0,n.jsx)(XX,{...l}):oe("quote","a",l)?(0,n.jsx)(lp,{...l}):oe("quote","b",l)?(0,n.jsx)(rJ,{...l}):oe("quote","c",l)?(0,n.jsx)(aJ,{...l}):oe("quote","d",l)?(0,n.jsx)(iJ,{...l}):oe("quote","background",l)?(0,n.jsx)(cJ,{...l}):oe("quote","carousel",l)?(0,n.jsx)(dJ,{...l}):oe("list","numbered",l)?(0,n.jsx)(pJ,{...l}):oe("list","checkboxes",l)?(0,n.jsx)(fJ,{...l}):oe("list","bulleted",l)?(0,n.jsx)(gJ,{...l}):oe("image","hero",l)?(0,n.jsx)(CJ,{...l}):oe("image","full",l)?(0,n.jsx)(mp,{...l}):oe("image","text aside",l)?(0,n.jsx)(yJ,{...l}):oe("image","text overlay",l)?(0,n.jsx)(SJ,{...l}):oe("image","banner",l)?(0,n.jsx)(TJ,{...l}):oe("gallery","centered",l)||oe("gallery","full",l)?(0,n.jsx)(AJ,{...l}):oe("gallery","two column",l)?(0,n.jsx)(fp,{...l}):oe("gallery","three column",l)?(0,n.jsx)(fp,{width:3,...l}):oe("gallery","four column",l)?(0,n.jsx)(fp,{width:4,...l}):oe("divider","divider",l)?(0,n.jsx)(PJ,{...l}):oe("divider","numbered divider",l)?(0,n.jsx)(MJ,{number:t,...l}):oe("divider","spacing divider",l)?(0,n.jsx)(OJ,{...l}):oe("360","storyline",l)?(0,n.jsx)(gq,{...l,handleStorylineFullscreen:o,hasManySlBlocks:this.hasManySlBlocks.bind(this),isLesson:!0}):oe("interactive","accordion",l)?(0,n.jsx)($J,{...l}):oe("interactive","tabs",l)?(0,n.jsx)(qJ,{...l}):oe("interactive-fullscreen","labeledgraphic",l)?(0,n.jsx)(Rse,{...l}):oe("interactive-fullscreen","process",l)?(0,n.jsx)(Yse,{...l}):oe("interactive-fullscreen","scenario",l)?(0,n.jsx)(xne,{...l}):oe("interactive-fullscreen","sorting",l)?(0,n.jsx)(Rne,{...l}):oe("buttons","button",l)?(0,n.jsx)(Iq,{...l}):oe("buttons","button stack",l)?(0,n.jsx)(Eq,{...l}):oe("flashcard","flashcard",l)?(0,n.jsx)(q8,{...l}):oe("flashcard","stack",l)?(0,n.jsx)(q8,{stack:!0,...l}):oe("knowledge","knowledge",l)?(0,n.jsx)(ti,{...l}):oe("continue","continue",l)?(0,n.jsx)(hee,{...l}):oe("multimedia","step",l)?(0,n.jsx)(uee,{...l}):oe("multimedia","audio",l)?(0,n.jsx)(nee,{...l}):oe("multimedia","video",l)?(0,n.jsx)(Ip,{...l}):oe("multimedia","ai_avatar",l)?(0,n.jsx)(Ip,{...l}):oe("multimedia","custom video",l)?(0,n.jsx)(Ip,{...l,type:"customVideo"}):oe("multimedia","embed",l)?(0,n.jsx)(ree,{...l}):oe("multimedia","attachment",l)?(0,n.jsx)(cee,{...l}):oe("multimedia","code",l)?(0,n.jsx)(b8,{...l}):oe("knowledgeCheck","multiple choice",l)?(0,n.jsx)(ti,{...l}):oe("knowledgeCheck","multiple response",l)?(0,n.jsx)(ti,{...l}):oe("knowledgeCheck","fillin",l)?(0,n.jsx)(ti,{...l}):oe("knowledgeCheck","matching",l)?(0,n.jsx)(ti,{...l}):oe("knowledgeCheck","draw from question bank",l)?(0,n.jsx)(ti,{...l}):oe("chart","bar",l)||oe("chart","line",l)?(0,n.jsx)(nre,{...l}):oe("chart","pie",l)?(0,n.jsx)(ore,{...l}):oe("interactive-fullscreen","timeline",l)?(0,n.jsx)(ioe,{...l}):oe("ai-scenario","ai-scenario",l)?(0,n.jsx)(Wne,{...l}):oe("mondrian","mondrian",l)?(0,n.jsx)(Vne,{...l}):oe("textToVideo","textToVideo",l)?(0,n.jsx)(coe,{}):oe("survey","survey",l)?(0,n.jsx)(zse,{...l}):oe("html","inline",l)||oe("html","cdn",l)||oe("html","vibe",l)?(0,n.jsx)(soe,{...l}):`Unknown type: ${s} ${a}`}hasManySlBlocks(){const{items:t}=this.props;return t&&are(t)}}function cre(e){return(0,n.jsx)(O1,{block:e,children:(0,n.jsx)(ire,{...e})})}function oe(e,t,s){return s.family===e&&s.variant===t}const lre=1e3,dre=150,ure="onscrollend"in window;function x7(e,t){const s=e.getBoundingClientRect(),o=t?.getBoundingClientRect(),r=o?.top??0,a=o?.bottom??window.innerHeight,i=(a-r)*.02,c=s.bottom>r-i&&s.top<a+i,d=s.bottom<r;return c||d}const Yp={entries:new Map,scrollHandler:null,scrollEndHandler:null,scrollTarget:null,debounceTimer:null,register(e,t,s){const o=this.entries.size===0,r=t??window;if(this.entries.set(e,{el:e,scrollableParent:t,callback:s}),o){this.scrollTarget=r;const a=()=>{this.debounceTimer!=null&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this.checkAll(),dre)};ure?(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(e){this.entries.delete(e),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 e=[];for(const t of this.entries.values())x7(t.el,t.scrollableParent)&&e.push(t);e.forEach(t=>t.callback())})}},b7=({children:e,onViewed:t})=>{const s=(0,h.useRef)(null),o=(0,h.useRef)(!1),r=(0,h.useRef)(t);return(0,h.useEffect)(()=>{r.current=t},[t]),(0,h.useEffect)(()=>{const a=s.current;if(!a||o.current)return;const i=Z4(),c=()=>{o.current||(o.current=!0,d.disconnect(),clearTimeout(l),Yp.unregister(a),r.current())},d=new IntersectionObserver(([u])=>{u!=null&&(u.isIntersecting||u.intersectionRatio>0)&&c()},{root:i,rootMargin:D2,threshold:0});d.observe(a);const l=setTimeout(()=>{!o.current&&x7(a,i)&&c()},lre);return Yp.register(a,i,c),()=>{d.disconnect(),clearTimeout(l),Yp.unregister(a)}},[]),(0,n.jsx)("div",{ref:s,children:e})};var Xp=f(80588);class hre extends Xp.PureComponent{render(){return(0,n.jsx)(b7,{onViewed:this.handleViewed,children:Xp.cloneElement(Xp.Children.only(this.props.children),{onStep:this.handleStep})})}handleStep=t=>{t!=null&&"id"in t&&!t.isDone&&this.props.onStep(t.id)};handleViewed=()=>{const{block:t}=this.props;if(!t.items?.length){this.props.onViewed();return}if(!t.requiresInteraction){this.props.onViewed();return}(mre.test(t.variant)||pre.test(t.family))&&t.items.length>0&&this.handleStep(t.items[0])}}const mre=/tabs|carousel/,pre=/gallery/,fre=["timeline"],gre=({family:e,variant:t})=>(/interactive|flashcard|knowledge|continue|360|survey/.test(e)||/carousel|centered|checkboxes|audio|video|storyline/.test(t))&&!fre.includes(t),vre=({family:e,settings:t})=>e==="html"&&t?.hasCustomCompletion,Cre=({family:e,items:t})=>!!(e==="mondrian"&&t?.length),xre="draw from question bank",y7=e=>{const{animateBlockEntrance:t,block:s,className:o,color:r,courseTitle:a,defaultBackgroundColor:i,enableVideoPlaybackSpeed:c,handleNavigate:d,handleStorylineFullscreen:l,hideBlock:u,index:m,isLastBlock:p,isOnlyBlockInStep:g,isVideoTraining:C,labels:v,lessonId:x,lessonProgress:y,loadMedia:S,match:L,onContinue:b,partnerContent:T,prefersKeyboardNavigation:N,previewType:k}=e,{blockId:E,family:I,items:A=[],variant:R,settings:j}=s,O=`block-${E}`,w=at(),P=$w({blockId:String(E),lessonId:String(x)}),M=(0,h.useCallback)(se=>{const re=R===xre?A[0]:Hs()(Pe()("id",se),A);w(tv({blockId:E,lessonId:x,items:[re]})),I==="continue"&&b(E,se)},[E,w,I,A,x,b,R]),z=(0,h.useCallback)(()=>{w(tv({blockId:E,lessonId:x,items:A}))},[E,w,A,x]),$=(0,h.useCallback)(se=>{const re=A?.[0],he=re&&"id"in re?re.id:void 0;he&&w(oI({blockId:E,itemId:he,lessonId:x,audioVideoPlayhead:se}))},[E,w,x,A]),F=(0,h.useCallback)(()=>{w(iI({blockId:E,lessonId:x,isSubmitted:!0}))},[E,w,x]),V=(0,h.useCallback)(({itemId:se,response:re})=>{w(aI({blockId:E,itemId:se,lessonId:x,response:re}))},[E,w,x]),K=(0,h.useCallback)(se=>{w(tI(se))},[w]),Z=(0,h.useCallback)(()=>({itemId:se,isCorrect:re})=>w(rI({itemId:se,lessonId:x,blockId:E,isCorrect:re})),[E,w,x]),X=(0,h.useCallback)(()=>()=>w(nI({lessonId:x,blockId:E})),[E,w,x]),te=gc(),W=(0,h.useCallback)(se=>{w(i4(se))},[w]),D=(0,h.useCallback)(()=>{w(vc())},[w]),H=(0,h.useCallback)(se=>{w(Fm(se))},[w]),B=vs()(s,{animateBlockEntrance:t,className:o?.toString(),color:r,courseTitle:a,defaultBackgroundColor:i,dividerNumber:P,enableVideoPlaybackSpeed:c,family:I,handleNavigate:d,handleStorylineFullscreen:l,onFinishStoryline:BT,onSurveySubmitted:F,onSurveyPartialResponse:V,initiallyVisible:m===0,isHidden:u,isLastBlock:p,isLearn:!0,isLearner:!0,isOnlyBlockInStep:g,isVideoTraining:C,labels:v,lessonId:x,loadMedia:S,match:L,onCardDrop:Z,onReplay:X,onRetryAttempt:K,onTranscriptClose:D,onTranscriptOpen:W,onTranscriptUpdate:H,originalVariant:void 0,partnerContent:T,prefersKeyboardNavigation:N,previewType:k,progress:y,recordMediaPlayheadPosition:$,transcriptPanelState:te}),G=gre({family:I,variant:R})||vre({family:I,settings:j})||Cre({family:I,items:A}),Y=Dz(x,E),J=U()("noOutline",o,{"blocks-lesson__block-wrapper--hidden":u}),Q=(0,n.jsx)(cre,{...B});return(0,n.jsx)("div",{className:J,"data-block-id":E,"data-change-path":Y,children:G?(0,n.jsx)(hre,{block:s,onStep:M,onViewed:z,children:Q}):(0,n.jsx)(b7,{onViewed:z,children:Q})},O)},bre=({slides:e,currentSlide:t},s)=>(t.push(s),s.settings?.attachedToNextBlock||(e.push(t),t=[]),{slides:e,currentSlide:t}),yre=e=>{const{slides:t}=_d()(bre,{slides:[],currentSlide:[]},e);return t};function Jp(e,t,s,o){if(e.length){const a=e.slice(-1)[0];if(!Fc(a.id,s))return e}const r=uoe(Lre(s),t.slice(e.length)).map(Sre(o));return r.length?Jp(e.concat(r),t,s,o):e}const Fc=(e,t)=>Fe()(!1,["items",e,"isComplete"],t),Lre=e=>({family:t,items:s})=>{const o=Fe()({},0,s);return t==="continue"&&!Fc(o.id,e)},Sre=e=>(t,s,o)=>{const r=o.slice(-1)[0]||{},{family:a}=r,i=a==="continue"?Fe()(void 0,["items",0,"type"],r)??e?.blockContinueCompletionType??!1:!1;return t.family==="knowledgeCheck"&&t.settings?.requireCorrectAnswer?vs()(t,{requiresInteraction:!0}):t.variant!=="continue"&&(!i||i==="completeBlock"&&s!==o.length-1&&s!==o.length-2)?t:vs()(t,{requiresInteraction:!0})};function L7({id:e,...t},s,o,r,a){if(t.family==="continue"){const i=Fe()(void 0,["items",0,"type"],t)??a?.blockContinueCompletionType??"";return vs()({blockId:e,...t},{skipContinue:r,canContinue:Tre({continueType:i,blocks:s,progress:o}),lessonProgress:o,isComplete:Fc(e,o)})}return{blockId:e,...t}}const Tre=({continueType:e,blocks:t,progress:s})=>{switch(e){case"completeAll":return Kt()(Qt()(t),Ere(s));case"completeBlock":return t.length===0?!0:Fc(jre(t),s);default:return!0}},Nre=ce()(Ht(),Ce()("items")),kre=e=>ce()(Ire,Nre)(e),Ire=As()(Pe()("isComplete",!0)),Ere=ce()(Qt(),kre),jre=ce()(Ce()("id"),bo()),wre=({family:e,variant:t,isComplete:s,requiresInteraction:o})=>e==="continue"&&t==="continue"&&o&&!s,Are=(e,t)=>!!e.find(o=>{if(o?.family==="knowledgeCheck"&&o?.settings?.requireCorrectAnswer)return!t?.items?.[o?.id]?.isComplete}),Rre=e=>e.length===0?!1:R4()(wre,e),Pre=(e,t)=>e.length===0?!1:Are(e,t),Mre=({blocks:e,lessonProgress:t})=>e.findIndex(s=>{const o=t?.items?.[s?.id],r=o&&o?.isComplete==null;return s?.family==="knowledgeCheck"&&s?.settings?.requireCorrectAnswer&&r}),S7=({blocks:e,lessonProgress:t,currentBlockIndex:s})=>{const o=Mre({blocks:e,lessonProgress:t});return o>-1&&s>o},Ore=(e,t)=>{const s=["embed","video","full"];return["interactive","interactive-fullscreen","image","flashcard","gallery","chart","knowledgeCheck"].includes(e)||s.includes(t)};function Bre(e,t,s){if(!e||!t||!R1())return!1;if(GE(s,{l10n:t}))return!0;const{locales:o,defaultLocale:r}=t,a=o.find(i=>i.locale===r)?.id;return a&&a!==e}function Dre({animateBlockEntrance:e,blocks:t,className:s,color:o,courseTitle:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,isLessonEntering:d,isLessonExiting:l,labels:u,lessonId:m,lessonProgress:p,loadMedia:g,nextLesson:C,partnerContent:v,prefersKeyboardNavigation:x,previewType:y}){const S=(0,h.useRef)(null),L=(0,h.useRef)(null),b=(0,h.useRef)(null),[T,N]=(0,h.useState)(!1),{currentLocale:k}=Qe(),E=(0,ge.g)(),I=(0,h.useMemo)(()=>({params:E}),[E]),A=ae(D=>D.course?.theme),R=ae(g1),j=ae(D=>L0(xs(D))),O=ae(D=>D.course?.defaultLocaleId),w=ae(D=>D.l10n),P=Bre(O,w,k),M=(0,Ae.A)(d),z=(0,h.useRef)(l),$=(0,h.useRef)(d),F=(0,h.useRef)(m);z.current=l,$.current=d,F.current=m,(0,h.useEffect)(()=>{const D=H=>{if(H.origin!==window.location.origin)return;(Array.isArray(H.data)?H.data:[H.data]).forEach(G=>{G?.type==="preview:lessonUpdate"&&N(!0)})};return window.addEventListener("message",D),()=>window.removeEventListener("message",D)},[]),(0,h.useEffect)(()=>{const D=H=>{if(z.current||H.detail.lessonId!==F.current)return;const B=H.detail.itemId;B==null?S.current?.closest(".page")?.scrollIntoView({behavior:"smooth",block:"start"}):$.current?b.current=B:V(B)};return window.addEventListener(We,D),()=>window.removeEventListener(We,D)},[]),(0,h.useEffect)(()=>{M&&!d&&b.current!=null&&(V(b.current),b.current=null)},[d,M]),(0,h.useLayoutEffect)(()=>{K()});function V(D){const B=document.querySelector(".page-wrap")?.querySelector(`[data-block-id="${D}"]`);B?.scrollIntoView({behavior:"smooth",block:"nearest"})}function K(){if(L.current){const D=p3()(Pe()("id",L.current),t),H=la()(D),B=Fe()(null,[H,"id"],t);if(B){const G=document.querySelector(".page-wrap"),Y=G?.querySelector(`[data-block-id="${B}"]`),J=Y?Y.getBoundingClientRect().top:0;fc.Ay.animateScroll.scrollTo(J+G.scrollTop,{smooth:!0,containerId:"page-wrap"})}L.current=null}}const Z=(0,h.useCallback)((D,H)=>{Fc(H,p)||(L.current=D),D===t[t.length-1]?.id&&C&&(Cs(ev(m)),i(C))},[t,i,m,p,C]),X=P||T,te=X?t:Jp([],t,p,A),W=U()("blocks-lesson",s,{"blocks-lesson--one-page":R});return(0,n.jsx)("section",{className:W,ref:S,children:te.map((D,H,B)=>{const G=L7(D,B.slice(0,-1),p,X,A),Y=B.length-1,Q=G.family==="continue"?D.id===t[t.length-1]?.id:H===Y,se=!T&&S7({blocks:t,lessonProgress:p,currentBlockIndex:H});return(0,n.jsx)(y7,{animateBlockEntrance:e,block:G,color:o,courseTitle:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,hideBlock:se,index:H,isFirstLesson:!0,isLastBlock:Q,isVideoTraining:j,labels:u,lessonId:m,lessonProgress:p,loadMedia:g,match:I,onContinue:Z,partnerContent:v,prefersKeyboardNavigation:x,previewType:y},G.blockId)}).filter(M4.A)})}const T7=Dre;function Ru({children:e}){const t=(0,h.useRef)(null),s=(0,h.useCallback)(()=>{t.current?.focus?.()},[]);return m_(s),(0,n.jsx)("main",{className:"lesson-main",ref:t,tabIndex:-1,children:e})}const Hre=({animateBlockEntrance:e,color:t,courseTitle:s,data:o,enableVideoPlaybackSpeed:r,handleNavigate:a,handleStorylineFullscreen:i,labels:c,lessonHeader:d,lessonHeaderWrapClasses:l,lessonHeaderWrapStyles:u,lessonProgress:m,loadMedia:p,match:g,nextLesson:C,prefersKeyboardNavigation:v,previewType:x,hideLessonHeaders:y})=>{const S=Lr(),{id:L,items:b,type:T}=o,N={animateBlockEntrance:e,blocks:b,color:t,courseTitle:s,enableVideoPlaybackSpeed:r,handleNavigate:a,handleStorylineFullscreen:i,isFirstLesson:!0,labels:c,lessonId:L,lessonProgress:m,loadMedia:p,match:g,nextLesson:C,partnerContent:S,previewType:x,prefersKeyboardNavigation:v,type:T};return(0,n.jsx)("div",{className:"page","data-page":!0,children:(0,n.jsx)("div",{className:"page__wrapper page__wrapper--white",children:(0,n.jsxs)(Ru,{children:[(0,n.jsx)("div",{className:l,inert:y,style:u,children:d}),(0,n.jsx)("div",{className:"page__content",children:(0,n.jsx)(T7,{...N})})]})})})},Fre=({percentComplete:e,trackingCompletionPercentage:t,labelCompletionRequirement:s="Completion Requirement",labelPercentCompletion:o="% Completion",labelYouCompleted:r="You completed:",labelA11yRequirementCompleted:a="Requirement completed, check mark",labelA11yRequirementNotCompleted:i="Requirement not completed, empty square"})=>{const c=rn();if(Xe()(t))return null;const d=ja({percent:t,label:o,isRTL:c}),l=c?`%${e}`:`${e}%`;return(0,n.jsxs)("div",{className:"progress-summary__requirement",children:[(0,n.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,n.jsx)("h2",{className:"progress-summary__requirement-title",children:s}),(0,n.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,n.jsx)("div",{children:d}),(0,n.jsxs)("div",{children:[r,"\xA0",(0,n.jsx)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:l})]})]})]}),(0,n.jsx)(N7,{labelA11yRequirementCompleted:a,labelA11yRequirementNotCompleted:i,requirementMet:t<=e})]})},Vre=({outOfAttempts:e,quizPassed:t,quizPassingScore:s,quizScore:o,quizTitle:r,trackingQuizId:a,labelQuizRequirement:i="Quiz Requirement",labelScoreOf:c="Score of",labelScoreOfPreposition:d="% on",labelViewQuiz:l="View quiz",labelYouScored:u="You scored",labelNoAttemptsRemaining:m="No attempts remaining.",labelA11yRequirementCompleted:p="Requirement completed, check mark",labelA11yRequirementNotCompleted:g="Requirement not completed, empty square"})=>{const C=rn();if(!a)return null;const v=ja({percent:s,label:d,isRTL:C});return(0,n.jsxs)("div",{className:"progress-summary__requirement",children:[(0,n.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,n.jsx)("h2",{className:"progress-summary__requirement-title",children:i}),(0,n.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,n.jsxs)("div",{children:[c," ",v," ",r]}),Xe()(o)?(0,n.jsx)("div",{children:(0,n.jsx)(cs,{className:"progress-summary__requirement-stats-link brand--color",to:`/lessons/${a}`,children:l})}):(0,n.jsxs)("div",{children:[u,"\xA0",(0,n.jsxs)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:[o,"%"]})]})]}),e&&(0,n.jsx)("span",{className:"progress-summary__requirement-no-attempts",children:m})]}),(0,n.jsx)(N7,{labelA11yRequirementCompleted:p,labelA11yRequirementNotCompleted:g,requirementMet:t})]})},N7=({requirementMet:e,labelA11yRequirementCompleted:t,labelA11yRequirementNotCompleted:s})=>e?(0,n.jsx)(ie,{"aria-label":t,classNameIcon:"progress-summary__requirement-checkbox-checked",name:"square-check"}):(0,n.jsx)("div",{"aria-label":s,className:"progress-summary__requirement-checkbox-empty",role:"img"}),zre=({dueAt:e})=>e?(0,n.jsx)("div",{className:"progress-summary__header-due brand--color brand--border",children:im(e)}):null;var $re=f(10956),_re=f.n($re),Ure=f(80588);const Gre=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"];class Wre extends Ure.Component{constructor(...t){super(...t),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(t,s){return s.recycle!==this.state.recycle||s.run!==this.state.run}componentWillUnmount(){clearTimeout(this.timeout)}render(){const{state:{recycle:t,run:s}}=this;return(0,n.jsx)("div",{className:"progress-summary__confetti",children:(0,n.jsx)(_re(),{colors:Gre,gravity:.4,height:window.innerHeight,numberOfPieces:500,recycle:t,run:s,width:window.innerWidth})})}}const Kre=Wre;var Qre=f(51303),Zre=f.n(Qre),Yre=f(49698);const k7=_("progress-summary-card"),Xre=({completeLabel:e,isComplete:t,isUrgent:s,completedDate:o,labelDue:r})=>t?(0,n.jsxs)("div",{className:"progress-summary-card__completed-label",children:[e,(0,n.jsx)("span",{className:"progress-summary-card__completed-date",children:o})]}):r?(0,n.jsx)("div",{className:U()("progress-summary-card__due-label",{"brand--color":s}),children:r}):null,Jre=({cardImageKey:e=null,className:t,color:s="#ff6602",completedAt:o=null,coverImageKey:r=null,disable:a=!1,durationHidden:i=!1,enrolledAt:c=null,hidden:d=!1,imagesUri:l="",isLearningPath:u=!1,isUrgent:m=!1,labelAssignedToMe:p="",labelDue:g="",labelDuration:C="",labelLearningPath:v="",onClick:x=tn,progress:y=0,title:S=""})=>{const L=ue(),b=rn(),T=o!==null,N=(0,h.useCallback)(()=>{a||x?.()},[a,x]),k=(0,h.useCallback)(w=>{Gh(w)&&w.preventDefault(),!a&&ba(w)&&x?.()},[a,x]),E=ja({percent:Math.round(y),label:L?.progressSummaryPercentComplete||"% Complete",isRTL:b}),I=e||r,A=L?.progressSummaryCompleted||"Completed: ",R=`${dn()(new Date(o)).format("MM/DD/YY")}`,j=k7("card",{disabled:a}),O=k7("image-overlay",{"not-started":!(y||T),"in-progress-completed":y||T});return(0,n.jsxs)("div",{"aria-hidden":d,className:j,onClick:N,children:[(0,n.jsxs)("div",{className:"progress-summary-card__content",children:[(0,n.jsx)("button",{"aria-disabled":a,className:U()("progress-summary-card__title-button",{[t]:t}),onKeyDown:k,role:"link",tabIndex:d?-1:void 0,type:"button",children:(0,n.jsx)("span",{className:"progress-summary-card__title",children:S||L?.progressSummaryNoTitle||"(No Title)"})}),(0,n.jsxs)("div",{className:"progress-summary-card__course-info",children:[u&&(0,n.jsx)("div",{className:"progress-summary-card__hide",children:v}),c&&(0,n.jsx)("div",{className:"progress-summary-card__hide",children:p}),!!y&&!a&&!o&&(0,n.jsx)("span",{className:"progress-summary-card__hide",children:E}),!i&&!T&&(0,n.jsx)("div",{className:"progress-summary-card__duration",children:C}),(0,n.jsx)(Xre,{completedDate:R,completeLabel:A,isComplete:T,isUrgent:m,labelDue:g})]})]}),(0,n.jsxs)("div",{className:"progress-summary-card__image-wrap",children:[(0,n.jsx)(Yre.A,{alt:"","aria-hidden":"true",b:"fff",className:"progress-summary-card__image",f:"jpg",h:150,imageKey:I,imagesUri:l,s:"cover",style:{backgroundColor:s},w:300}),(0,n.jsx)("div",{className:O}),(0,n.jsx)("div",{className:"progress-summary-card__image-overlay-bottom-bar",children:!!y&&!a&&!T&&(0,n.jsx)("div",{"aria-hidden":"true",className:"progress-summary-card__progress-bar-wrap",children:(0,n.jsx)("div",{className:"progress-summary-card__wrap-light",children:(0,n.jsx)("div",{className:"progress-summary-card__progress-bar",style:{width:`${y}%`}})})})})]})]})},qre=ye("IMAGES_URI"),eae=["cardImageKey","color","coverImageKey","progress","score","title"],I7=(e,t)=>e===1?t:t.concat("s"),qp=Fe()([],["course","course","lessons"]),tae=e=>ce()(rs(),j0()(Nn()(Pe()("type","section"),f3()(Tn()(K2(),e),"id"))),qp),sae=e=>{const t=qp(e),{trackingQuizId:s}=e,{score:o}=e;if(s&&t.length){const r=Hs()(Pe()("id",s),t),{settings:{passingScore:a}={}}=r;return o<a?r:!1}},nae=ce()(Hs()(Yr()(Pe()("type","section"))),qp),oae=fl()(2,e=>ce()(Lt()("","id"),Hs()(Boolean),Zre()([tae(e),sae,nae]))),rae=e=>{const t=dn().duration(e),s=t.hours(),o=t.minutes(),r=`${s} ${I7(s,"hr")}`,a=`${o} min`;return s>=100?"100+ hrs":s>0&&o>0?[r,a].join(" "):s>0?r:a},aae=({color:e,learningPathId:t})=>{const{learningPathComplete:s,isSuccess:o,nextCourse:r}=ae(x=>x.learningPathUpNext??{}),{dueAt:a,courseId:i="",lessonCount:c,lessonsCompleted:d=[],sourceType:l,timeToComplete:u}=r??{},m=ue(),p=(0,h.useMemo)(()=>oae(d,r),[r,d]),g=r?.color??e,C=Sn()(eae,{...r,color:g}),v=(0,h.useCallback)(()=>{l==="PACKAGE"?(top.sessionStorage.setItem("upNextCourseId",i),top.location.assign(`/learning-path/${t}`)):XI(`${i}/lessons/${p}`)},[i,t,p,l]);return o&&!s&&(0,n.jsx)("div",{className:"progress-summary__lp-next",children:(0,n.jsxs)("div",{className:"progress-summary__lp-next-inner",children:[(0,n.jsxs)("div",{className:"progress-summary__lp-next-label",children:[m?.progressSummaryNextUp||"Next up"," ",(0,n.jsx)(ie,{"aria-hidden":"true",classNameIcon:"progress-summary__lp-next-label-icon",name:"arrow-right"})]}),(0,n.jsx)("div",{className:"progress-summary__lp-next-card",children:(0,n.jsx)(Jre,{imagesUri:qre,labelCount:`${c} ${I7(c,"lesson")}`,labelDue:im(a),labelDuration:rae(u),noCertDownload:!0,noFavoriteBtn:!0,onClick:v,...C})})]})})},iae=`${ye("CDN_URI")}/assets/rise/assets/trophy.svg`,cae=ce()(Qt(),As()(Ce()("isComplete")),Ht()),lae=e=>{const{color:t,course:s={},courseProgress:o={},lessons:r=[]}=e,a=at(),{learningPathComplete:i,lpHasFailedQuiz:c}=ae(X=>X.learningPathUpNext??{}),{lessons:d={},percentComplete:l}=o,{dueAt:u,certificateDownload:m,completionCelebration:p,lessonsOnly:g=[],riseComCourseId:C,riseComLearningPathId:v,trackingCompletionPercentage:x,trackingQuizId:y}=s,S=ca(),L=ue(),b=Xe()(x)&&Xe()(y),T=b?l===100:ug(),N=g.length,k=cae(d),E=(0,h.useCallback)(()=>{a(aE({courseId:C,learningPathId:v}))},[a,C,v]);(0,h.useEffect)(()=>{v&&E()},[]);const I=(0,h.useMemo)(()=>T?s.completedAt?s.completedAt:new Date:null,[s.completedAt,T]),A=(0,h.useMemo)(()=>Hs()(Yd()(Pe()("type","quiz"),Pe()("id",y)),r),[y,r]),R=it(A?.title),j=(0,h.useMemo)(()=>Fe()(100,["settings","passingScore"],A),[A]),O=Fe()(null,["lessons",y,"passed"],o),w=(0,h.useMemo)(()=>ce()(Ut()(Pe()("percentComplete",100),Ce()("score"),Ne()(null)),Fe()({},["lessons",y]))(o),[o,y]),{outOfAttempts:P}=k3(o,A,y);let M=y?O:!0,z=Ns();const $=U()("progress-summary",{"progress-summary__no-req":b}),F=yo(s),V=`You've completed ${k} of ${N} lessons.`,Z=F?T?"Complete":"Incomplete":V;return(0,n.jsx)(Er,{title:mc(S+" - Progress Summary"),children:(0,n.jsxs)("div",{className:$,children:[T&&p&&M&&!z&&(0,n.jsx)(Kre,{}),(0,n.jsxs)("header",{className:"progress-summary__header",children:[(0,n.jsx)("h1",{className:"progress-summary__header-title",tabIndex:-1,children:T&&!b&&M?L?.progressSummaryCongratulations||"Congratulations!":L?.progressSummary||"Progress Summary"}),b?(0,n.jsx)("div",{className:"progress-summary__lessons-completed",children:Z}):T?(0,n.jsxs)("div",{className:"progress-summary__header-completion-date",children:[M&&(0,n.jsx)("img",{alt:"trophy",className:"progress-summary__header-trophy",src:iae}),dn()(I).format("MMMM Do, YYYY")]}):(0,n.jsx)(zre,{dueAt:u})]}),(0,n.jsxs)("section",{className:"progress-summary__section",children:[!b&&T&&(0,n.jsx)("div",{className:"progress-summary__requirements-met",children:L?.progressSummaryRequirementsMet||"You've met all the requirements."}),b?!v&&(0,n.jsxs)(cs,{className:"progress-summary__start-over",to:"/",children:[L?.progressSummaryStartOver||"Start Over",(0,n.jsx)("i",{className:"progress-summary__start-over-icon icon icon-reload"})]}):(0,n.jsxs)("div",{className:"progress-summary__requirements",children:[(0,n.jsx)(Fre,{labelA11yRequirementCompleted:L?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:L?.a11yProgressSummaryRequirementNotCompleted,labelCompletionRequirement:L?.progressSummaryCompletionRequirement,labelPercentCompletion:L?.progressSummaryPercentCompletion,labelYouCompleted:L?.progressSummaryYouCompleted,percentComplete:l,trackingCompletionPercentage:x}),(0,n.jsx)(Vre,{labelA11yRequirementCompleted:L?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:L?.a11yProgressSummaryRequirementNotCompleted,labelNoAttemptsRemaining:L?.progressSummaryNoAttemptsRemaining,labelQuizRequirement:L?.progressSummaryQuizRequirement,labelScoreOf:L?.progressSummaryScoreOf,labelScoreOfPreposition:L?.progressSummaryScoreOfPreposition,labelViewQuiz:L?.progressSummaryViewQuiz,labelYouScored:L?.progressSummaryYouScored,outOfAttempts:P,quizPassed:O,quizPassingScore:j,quizScore:w,quizTitle:R,trackingQuizId:y})]}),(T||b)&&(0,n.jsxs)("div",{className:"progress-summary__completion-controls",children:[(0,n.jsx)("button",{className:"progress-summary__btn-back progress-summary__completion-control",onClick:YI,role:"link",type:"button",children:L?.progressSummaryBackToLearning||"Back to my learning"}),T&&(!v&&m||v&&i)&&m&&M&&!c&&(0,n.jsx)("span",{className:"progress-summary__completion-control",children:(0,n.jsx)(CW,{})})]})]}),T&&!!v&&(0,n.jsx)(aae,{color:t,learningPathId:v})]})})},E7=({contentClassName:e,...t})=>(0,n.jsx)("div",{className:"page","data-page":!0,children:(0,n.jsx)("div",{className:"page__wrapper page__wrapper--white",children:(0,n.jsx)(Ru,{children:(0,n.jsx)("div",{className:e?`page__content ${e}`:"page__content",children:(0,n.jsx)(lae,{...t})})})})}),dae={id:"progress-summary",type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"},j7=Re("Progress"),uae=e=>e===Py.CONTINUE,hae=({canShowContinue:e,isExport:t,isRiseCom:s,nextLesson:o})=>e&&s&&!o&&!t,mae=e=>er(e)&&"id"in e&&"type"in e,pae=({item:e,question:t})=>{if(e.type===Wt.DRAW_FROM_QUESTION_BANK){const s=String(t.id);return e.id===s.split("-")[0]}return e.id===t.id},fae=(e,t)=>!e||!t||e.length!==t.length?!1:e.some((s,o)=>t[s]?.id!==t[o]?.id),gae=(e,t,s)=>{if(!Array.isArray(e)||!Array.isArray(t)||!s)return!1;const o=e.map(i=>t[i]),r=t.findIndex(i=>i.id===s),a=o.findIndex(i=>i.id===s);return r===a},vae=({lesson:e,question:t})=>{const o=e?.items?.filter(mae)?.find(a=>pae({item:a,question:t}));if(o?.type!==Wt.DRAW_FROM_QUESTION_BANK)return o;const r=String(t.id).split("-")[1];return o.questions.find(a=>a.id===r)},Cae=_("quiz"),Pu=0,oi=2,xae=e=>({start:e<oi?0:e-oi,end:e+oi});function bae(e){return e+1}function yae(e){return e<Pu+oi}function Lae(e,t){const{start:s,end:o}=xae(t);return{items:e.slice(s,o),startOffset:s}}function ef({activeIndex:e,index:t}){return Cae("card",{active:t===e,done:t<e,next:t===e+1,penultimate:t===e+oi,future:t>e+oi})}function Sae({settings:e}){const t=at();return(0,h.useMemo)(()=>({onChoiceSelect:s=>{t(pv(s))},onFillInChange:s=>{t(fv(s))},onMatchSet:s=>{t(vv(s))},onResponseToggle:s=>{t(gv(s))},onSetIndex:s=>{t(K0(s))},onSubmit:s=>{const{skipLessonsIfPassed:o,skipToLessonId:r}=e||{};return t(Q0({...s,passToContinue:s.passToContinue??!1,skipLessonsIfPassed:o??void 0,skipToLessonId:r??void 0}))}}),[t,e])}function w7(e){return e.type===Wt.DRAW_FROM_QUESTION_BANK}function tf(e,t){return{...t,drawn:!0,id:`${e.id}-${t.id}`}}function Tae(e,t){const s=t.map(o=>({question:e.questions[o],idx:o})).filter(o=>o.question!=null);return{items:s.map(({question:o})=>tf(e,o)),indices:s.map(({idx:o})=>o)}}function Nae(e){const{questions:t}=e;if(qw())return{items:t.map(i=>tf(e,i)),indices:t.map((i,c)=>c)};const s=e.drawCount,o=[],r=[],a=[];for(let i=0;i<s;i++){const c=H9({questions:t,drawnQuestionIds:o});if(!c)break;r.push(tf(e,c)),a.push(t.findIndex(d=>d.id===c.id)),o.push(String(c.id))}return{items:r,indices:a}}function kae({sourceItems:e,progress:t,lessonId:s}){const o=t?.questionsDrawn?t.questionList:void 0,r=e.filter(w7).map((l,u)=>{const m=o?.[u];return m?Tae(l,m):Nae(l)});let a=0;const i=e.flatMap(l=>w7(l)?r[a++].items:[l]),c=r.map(l=>l.indices),d=Iae({items:i,progress:t,questionIndexList:c});return{concreteItems:i,drawPayload:{lessonId:s,lessonProgress:d}}}function Iae({items:e,progress:t,questionIndexList:s}){const o=t?.items??{},r=t?.originalItemProgress,a=new Map(Object.values(o).map(c=>[c.index,c])),i=Object.fromEntries(e.map((c,d)=>{const l=r?.[d]??{},u=a.get(d);return[c.id,{...l,...u,id:c.id,index:d}]}));return{...t,questionsDrawn:!0,questionList:s,items:i}}function sf(e,t){return!!t[e.id]?.isComplete}function Eae({items:e,progress:t}){const s=t?.items??{};return[...e.filter(o=>sf(o,s)),...ju()(e.filter(o=>!sf(o,s)))]}function jae(e){const t=e.answers??[],s=ju()(t),o=s.map(r=>t.findIndex(a=>a.id===r.id));return Object.assign({},e,{answers:s,shuffledAnswerIndices:o})}function A7({items:e,settings:t,progress:s}){const o=t?.randomizeQuestionOrder?Eae({items:e,progress:s}):e;if(!t?.shuffleAnswerChoices)return o;const r=s?.items??{};return o.map(a=>sf(a,r)?a:jae(a))}function wae({lessonId:e,sourceItems:t,progress:s,settings:o}){const{concreteItems:r,drawPayload:a}=kae({sourceItems:t,progress:s,lessonId:e});return{resolvedItems:A7({items:r,settings:o??void 0,progress:a.lessonProgress}),drawPayload:a}}function f3e(e){return A7({items:e.items,settings:e.settings,progress:e.progress})}function g3e({lessonIds:e,lessons:t}){return!Array.isArray(e)||!t?!1:e.some((s,o)=>{const r=t[s];return r?.type!=="quiz"||r.settings?.skipLessonsIfPassed!==!0?!1:e.slice(o+1).some(a=>{const i=t[a];return i&&i.type!=null&&i.type!=="section"})})}function Aae(e,t){const s=wt(e),o=o1(s)?s.settings:void 0,r=e?ET({id:e,passingScore:t?.passingScore??Wr}):void 0;return(0,h.useMemo)(()=>o&&{...o,passingScore:r??o?.passingScore??Wr},[o,r])}const Mu=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):void 0;function R7(){const[e,t]=(0,h.useState)(Mu?.matches??!1);return(0,h.useEffect)(()=>{if(!Mu)return;const s=o=>t(o.matches);return Mu.addEventListener("change",s),()=>Mu.removeEventListener("change",s)},[]),e}function Rae({lessonId:e}){const t=at(),s=wt(e),o=o1(s)?s:void 0,r=Tl(e),a=(0,h.useMemo)(()=>o?.items??[],[o?.items]),i=Aae(e,r),[{resolvedItems:c,drawPayload:d}]=(0,h.useState)(()=>wae({lessonId:e,progress:r,settings:i,sourceItems:a}));(0,h.useLayoutEffect)(()=>{t(uI({...d,lessonId:e}))},[]);const l=r?.activeIndex??0,u=R7();return Pae({activeIndex:l,isReduceMotion:u,progress:r,resolvedItems:c,settings:i,sourceItems:a}),{activeIndex:l,progress:r,resolvedItems:c,retryAttempts:r?.retryAttempts??0,settings:i,sourceItems:a}}function Pae({activeIndex:e,isReduceMotion:t,progress:s,resolvedItems:o,settings:r,sourceItems:a}){const i=(0,h.useRef)(e);(0,h.useEffect)(()=>{},[e])}const Mae=e=>e.length===3,Oae=e=>{const t=e.findIndex(s=>s==="answers");return t===-1?null:e[t+1]?.id},Bae=e=>{const t=e.findIndex(s=>s==="questions");return t===-1?null:e[t+1]?.id},Dae=e=>{const t=e.at(-1);return typeof t=="string"&&t.startsWith("feedback")},Hae=({items:e,itemId:t,questionBankQuestionId:s})=>{const o=e.find(({id:r})=>r===t);return o?"questions"in o?s?o.questions.find(({id:r})=>r===s):null:o:null},Fae=(e,t,s)=>{const o=s==="feedbackCorrect";return e?[e]:s==="feedback"?t.answers.slice(0,1):s==="feedbackIncorrect"&&t.type==="FILL_IN_THE_BLANK"?[{title:""}]:t.answers.filter(r=>"correct"in r?r.correct===o:"corrects"in t?t.corrects.includes(r.id)===o:t.answers)},Vae=({lessonId:e,items:t})=>{const s=at(),o=(0,h.useCallback)(({lessonId:a,progressId:i,question:c,answer:d},l=!0)=>{switch(c.type){case"MULTIPLE_CHOICE":s(pv({lessonId:a,itemId:i,selectedIndex:c.answers.indexOf(d)}));break;case"MULTIPLE_RESPONSE":s(gv({lessonId:a,itemId:i,selectedIndex:c.answers.indexOf(d)}));break;case"FILL_IN_THE_BLANK":s(fv({lessonId:a,itemId:i,text:typeof d.title=="string"?d.title:""}));break;case"MATCHING":s(vv({lessonId:a,itemId:i,matches:l?Object.fromEntries(c.answers.map(u=>[u.id,u.id])):{}}));break}},[s]),r=(0,h.useCallback)(({detail:a})=>{const{lessonId:i,path:c}=a,d=String(a.itemId);if(i!==e)return;if(Mae(c)){s(mv(e));return}const l=Bae(c),u=Hae({items:t,itemId:d,questionBankQuestionId:l});if(!u)return;const m=l?`${d}-${l}`:d;if(s(K0({lessonId:e,progressId:m})),Dae(c)){const p=Oae(c),g=p?u.answers.find(({id:y})=>y===p)??null:null,C=c.at(-1),v=C==="feedbackCorrect",x=Fae(g,u,C);u.type==="MULTIPLE_RESPONSE"&&s(dI({lessonId:e,itemId:m})),x.forEach(y=>{o({lessonId:e,question:u,progressId:m,answer:y},v)}),s(Q0({finalRetryAttempt:!1,lessonId:e,isCorrect:v,itemId:m,passToContinue:!0}))}},[s,e,t,o]);(0,h.useEffect)(()=>(window.addEventListener(We,r),()=>{window.removeEventListener(We,r)}),[r])},zae=_("quiz-item");function $ae({activeIndex:e,children:t,index:s,isActive:o,isComplete:r,isCorrect:a,isTimedQuiz:i,settings:c}){const d=c?.correctAnswerColor??void 0,l=c?.incorrectAnswerColor??void 0,p={"--color-feedback-icon":a?d:l,"--color-matching-feedback-bubble-bg":l,"--color-multiple-choice-complete-border":l,"--color-multiple-choice-correct-border":d,"--color-multiple-response-correct-border":d,"--color-multiple-response-incorrect-border":l,"--color-multiple-response-option-check":r?d:void 0,"--color-quiz-option-check":d,"--color-x-fill":l};return(0,n.jsx)("div",{className:ef({activeIndex:e,index:s}),"data-testid":"quiz-item-card",inert:o?void 0:!0,children:(0,n.jsx)("div",{className:zae("content"),children:(0,n.jsx)(s9,{isActive:o,isComplete:r,isTimedQuiz:!!i,style:p,children:(0,n.jsx)("div",{hidden:!o&&!r,children:t})})})})}const _ae=_("quiz-card");function Uae({blockId:e,enableVideoPlaybackSpeed:t,index:s,isActive:o,item:r,labels:a,media:i}){const c=is();if(!i)return null;const d=c(i),{audio:l,image:u,video:m,embed:p}=d??{},g={allowTabNavigation:o,blockId:e,enableVideoPlaybackSpeed:t,item:r,labels:a};return l&&u?(0,n.jsx)("div",{className:`${_ae("media",{"image-with-audio":!0})}`,children:(0,n.jsx)(Vo,{...g,index:String(s),isOverlayAudio:!0,media:i})}):l&&(m||p)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Vo,{...g,index:`${s}-audio`,media:{audio:l}}),(0,n.jsx)(Vo,{...g,index:String(s),media:m?{video:m}:{embed:p},shouldPause:!o})]}):(0,n.jsx)(Vo,{...g,index:String(s),media:i,shouldPause:!o})}function P7(e,t){if(e===void 0||!t)return;if(Array.isArray(e))return e.map(o=>t.indexOf(o)).filter(o=>o!==-1);const s=t.indexOf(e);return s===-1?void 0:s}const{FILL_IN_THE_BLANK:Gae,MATCHING:Wae,MULTIPLE_CHOICE:Kae,MULTIPLE_RESPONSE:Qae}=Wt;function Zae({color:e,columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,errorMessageId:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:c,isComplete:d,isCorrect:l,isReduceMotion:u,isRetaking:m,isShuffled:p,item:g,itemProgress:C,labels:v,onChoiceSelect:x,onFillInChange:y,onMatchSet:S,onResponseToggle:L,onSubmit:b,prefersKeyboardNavigation:T,questionHtmlId:N,quizAcceptableResponses:k,quizAnswerPlaceholder:E,revealAnswers:I}){const{answers:A,type:R}=g,j=c&&!d,O=A??[],w=("correct"in g?g.correct:void 0)??"",P=("corrects"in g?g.corrects:void 0)??[],M=C?.text??"",z=C?.matches??{},$=(0,h.useCallback)(({title:V})=>(0,n.jsx)(Le,{allowTabNavigation:c,className:"quiz-multiple-choice-option__label",value:V}),[c]),F=(0,h.useCallback)(({title:V})=>(0,n.jsx)(Le,{allowTabNavigation:c,tagName:"span",value:V}),[c]);switch(R){case Gae:return(0,n.jsx)(l9,{allowTabNavigation:c,correctAnswerColor:s,correctAnswerColorContrast:o,errorMessageId:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isComplete:d,isCorrect:l,labels:v,onChange:y,onEnterToSubmit:b,options:O,questionHtmlId:N,quizAcceptableResponses:k,quizAnswerPlaceholder:E,revealAnswers:I,value:M});case Wae:return(0,n.jsx)(p9,{answers:O,columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:c,isComplete:d,matches:z,onChange:S,prefersKeyboardNavigation:T,revealAnswers:I});case Qae:{const V=C?.selectedIndices,K=C?.shuffledAnswerIndices??[],Z=p?P7(V,K):V;return(0,n.jsx)(v9,{allowTabNavigation:c,correctIds:P,errorMessageId:r,isComplete:d,isCorrect:l,isRetaking:m,labels:v,onChange:L,onEnterToSubmit:b,options:O,questionHtmlId:N,renderOptionText:F,revealAnswers:I,selectedIndices:Z??[]})}case Kae:default:{const V=C?.selectedIndex,K=C?.shuffledAnswerIndices??[],Z=p?P7(V,K):V;return(0,n.jsx)(g9,{allowTabNavigation:j,color:e,correctId:w,errorMessageId:r,isComplete:d,isCorrect:l,isReduceMotion:u,isRetaking:m,labels:v,onChange:x,onEnterToSubmit:b,options:O,questionHtmlId:N,renderOptionText:$,revealAnswers:I,selectedIndex:Z??-1})}}}const Hr=_("quiz-card");function Yae({color:e,enableVideoPlaybackSpeed:t,hasStart:s,index:o,interaction:r,isQuestionBankQuiz:a,isReduceMotion:i,isShuffled:c,item:d,items:l,labels:u,onTakeAgain:m,prefersKeyboardNavigation:p,progress:g,settings:C,showNextButton:v}){const{canProceed:x,canSubmit:y,errorIncomplete:S,feedbackRef:L,errorMessageId:b,feedbackValue:T,handleChoiceSelect:N,handleFillInChange:k,handleMatchSet:E,handleNextFeedbackClick:I,handleResponseToggle:A,handleSubmit:R,handleTakeAgain:j,isActive:O,isComplete:w,isCorrect:P,isRetaking:M,itemProgress:z,quizItemHtmlId:$,selection:F,wrapperRef:V}=r,K=s?o+1:o,Z=C?.revealAnswers===!0?Te.ALL:C?.revealAnswers??Te.NONE,X=`q-${d.id}`,te=d.settings,W=C?.correctAnswerColor??void 0,D=C?.correctAnswerColorContrast??void 0,H=C?.incorrectAnswerColor??void 0,B=C?.incorrectAnswerColorContrast??void 0,G=u?.quizQuestion??"",Y=u?.quizAcceptableResponses??"",J=u?.quizAnswerPlaceholder??"",Q=u?.quizCorrect??"",se=u?.quizIncorrect??"",re=u?.quizSubmit??"",he=g?.percentComplete===100&&a?u?.quizRestart??"":u?.quizNext??"";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Dee,{isActive:O,labels:u,questionLabel:G,questionNumber:o+1,totalQuestions:l.length}),(0,n.jsx)(Fee,{allowTabNavigation:O,htmlId:X,value:d.title}),(0,n.jsx)(Uae,{blockId:d.id,enableVideoPlaybackSpeed:t,index:K,isActive:O,item:d,labels:u,media:d.media}),(0,n.jsx)(a9,{type:d.type,children:(0,n.jsx)("div",{ref:V,children:(0,n.jsx)(Zae,{canSubmit:y,color:e,columnBehavior:te?.columnBehavior,correctAnswerColor:W,correctAnswerColorContrast:D,errorMessageId:b,incorrectAnswerColor:H,incorrectAnswerColorContrast:B,isActive:O,isComplete:w,isCorrect:P,isReduceMotion:i,isRetaking:M,isShuffled:c,item:d,itemProgress:z,labels:u,onChoiceSelect:N,onFillInChange:k,onMatchSet:E,onResponseToggle:A,onSubmit:R,prefersKeyboardNavigation:p,questionHtmlId:X,quizAcceptableResponses:Y,quizAnswerPlaceholder:J,revealAnswers:Z})})}),(0,n.jsx)("div",{"aria-live":"assertive",children:S&&(0,n.jsxs)("div",{className:`${Hr("validations")}`,"data-testid":"quiz-validation-error",children:[(0,n.jsx)(ie,{className:`${Hr("validation-icon")}`,"data-testid":"quiz-validation-icon",name:"alert-circle"}),(0,n.jsx)("span",{id:`${$}-error-incomplete-message`,children:u?.quizRequireAnswer})]})}),(0,n.jsx)(r9,{canProceed:x,feedbackRef:L,feedbackValue:T,isActive:O,isComplete:w,isCorrect:P,item:d,labels:u,quizCorrect:Q,quizIncorrect:se,revealAnswers:Z,selection:F}),(0,n.jsx)(t9,{allowNext:!m,canProceed:x,canSubmit:y,isReduceMotion:i,onNext:v?I:void 0,onSubmit:R,quizNext:he,quizSubmit:re}),m&&(0,n.jsx)("div",{className:`${Hr("retake-container",{active:w})}`,children:(0,n.jsx)("button",{className:`${Hr("retake",{active:w})}`,onClick:j,type:"button",children:(0,n.jsxs)("div",{className:`${Hr("retake-content")}`,children:[(0,n.jsx)("div",{className:`${Hr("retake-text")}`,children:"TAKE AGAIN"}),(0,n.jsx)("i",{className:`${Hr("retake-icon")} icon icon-reload`})]})})})]})}const{FILL_IN_THE_BLANK:M7,MATCHING:O7,MULTIPLE_CHOICE:B7,MULTIPLE_RESPONSE:D7}=Wt;function Xae(e,t){return e?.items?.[t]??{}}function Jae(e,t,s,o,r){switch(e.type){case M7:return y9({answers:e.answers??[],text:t.text,caseSensitive:e.settings?.isCaseSensitive??!1,getL10nValue:r});case O7:return L9(t.matches??{});case D7:return N9({isShuffled:s,item:e,selectedIndices:t.selectedIndices,shuffledAnswerIndices:t.shuffledAnswerIndices});case B7:default:return S9({isCorrectAnswerUnshuffled:o,isShuffled:s,item:e,selectedIndex:t.selectedIndex,shuffledAnswerIndices:t.shuffledAnswerIndices})}}function qae(e,t){switch(e.type){case M7:return t.text;case O7:return t.matches;case D7:return t.selectedIndices;case B7:default:return t.selectedIndex}}const{FILL_IN_THE_BLANK:eie,MATCHING:tie,MULTIPLE_CHOICE:sie,MULTIPLE_RESPONSE:nie}=Wt;function oie({hasStart:e=!1,id:t,index:s,isCorrectAnswerUnshuffled:o=!1,isShuffled:r=!1,item:a,onChoiceSelect:i,onFillInChange:c,onMatchSet:d,onResponseToggle:l,onTakeAgain:u,progress:m,reportAnswer:p,retryAttempts:g=0,setNextIndex:C,settings:v,submitAction:x,title:y}){const S=is(),L=i3(),[b,T]=(0,h.useState)(!1),[N,k]=(0,h.useState)(Date.now),[E,I]=(0,h.useState)(!1),A=(0,h.useRef)(null),R=(0,h.useRef)(null),j=(0,h.useId)(),O=(0,h.useRef)({canSubmit:!1,isCorrect:!1,item:a,itemId:String(a.id),itemProgress:{},retryAttempts:g,revealAnswers:Te.NONE,settings:v,startTime:N,title:y}),w=e?s+1:s,P=m?.activeIndex??0,M=w===P,z=Xae(m,a.id),$=z?.isComplete??!1,F=Jae(a,z,r,o,S),V=v?.revealAnswers===!0?Te.ALL:v?.revealAnswers??Te.NONE,K=V===Te.ALL||V===Te.INCORRECT,Z=M&&$&&K,X=M&&!$&&x9({answersLength:a.answers?.length??0,matches:z?.matches,selectedIndex:z?.selectedIndex,selectedIndices:z?.selectedIndices,text:z?.text,type:a.type});O.current={canSubmit:X,isCorrect:F,item:a,itemId:String(a.id),itemProgress:z,retryAttempts:g,revealAnswers:V,settings:v,startTime:N,title:y};const te=z?.selectedIndex,W=k9({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:F,isShuffled:r,selectedIndex:te,shuffledAnswerIndices:a.shuffledAnswerIndices}),D=qae(a,z),H=b?`${j}-error-incomplete-message`:void 0,B=(0,h.useCallback)(()=>{T(!1)},[]),G=String(a.id),Y=(0,h.useCallback)(({selectedIndex:Ee})=>{B(),i?.({lessonId:t,itemId:G,selectedIndex:Ee,shuffledAnswerIndices:a.shuffledAnswerIndices})},[t,G,a.shuffledAnswerIndices,i,B]),J=(0,h.useCallback)(Ee=>{B(),c?.({lessonId:t,itemId:G,text:Ee})},[t,G,c,B]),Q=(0,h.useCallback)(Ee=>{B(),d?.({lessonId:t,itemId:G,matches:Ee})},[t,G,d,B]),se=(0,h.useCallback)(({optionIndex:Ee})=>{B(),l?.({lessonId:t,itemId:G,selectedIndex:Ee,shuffledAnswerIndices:a.shuffledAnswerIndices})},[t,G,a.shuffledAnswerIndices,l,B]),re=(0,h.useCallback)((Ee=()=>{},De)=>{De&&Ee(De),C?.({lessonId:t})},[t,C]),he=(0,h.useCallback)((Ee,De)=>{de.pause(),re(Ee??(()=>{}),De)},[re]),ve=(0,h.useCallback)(()=>{M&&he()},[M,he]),Se=(0,h.useCallback)(Ee=>{Ee.preventDefault();const{canSubmit:De,isCorrect:Bt,item:vn,itemId:Js,itemProgress:po,retryAttempts:fo,revealAnswers:qs,settings:Cn,startTime:go,title:vo}=O.current;if(!De){switch(T(!0),vn.type){case eie:case nie:case sie:R.current?.querySelector("input")?.focus();break;case tie:R.current?.querySelector("button")?.focus();break;default:break}return}O.current.canSubmit=!1;const $r={startTime:go,stopTime:Date.now()},{passToContinue:_e}=Cn??{},Dt=Cn?.retryCount??-1,Ct=parseInt(String(Dt),10),ht=parseInt(String(fo),10),fs=Ct===ht,xn=L({duration:$r,id:t,isCorrect:Bt,item:vn,itemProgress:po,retryAttempts:fo,title:vo});p?.(xn);const ci={finalRetryAttempt:fs,lessonId:t,isCorrect:Bt,itemId:Js,passToContinue:_e,revealAnswers:qs};if(qs===Te.ALL||qs===Te.INCORRECT){x?.(ci);return}he(x,ci)},[L,he,t,p,x]),ut=(0,h.useCallback)(()=>{I(!0),setTimeout(()=>{u?.(),I(!1)},50)},[u]),kt=(0,Ae.A)(M)??!1,ps=(0,Ae.A)($)??!1;return(0,h.useEffect)(()=>{!kt&&M&&k(Date.now())},[M,kt]),{activeIndex:P,canProceed:Z,canSubmit:X,feedbackRef:A,errorIncomplete:b,errorMessageId:H,feedbackValue:W,handleChoiceSelect:Y,handleFillInChange:J,handleMatchSet:Q,handleNextFeedbackClick:ve,handleResponseToggle:se,handleSubmit:Se,handleTakeAgain:ut,isActive:M,isComplete:$,isCorrect:F,isRetaking:E,itemProgress:z,prevIsActive:kt,prevIsComplete:ps,quizItemHtmlId:j,selection:D,wrapperRef:R}}const rie=3;function aie({feedbackRef:e,isActive:t,isComplete:s,isReduceMotion:o,prevIsActive:r,prevIsComplete:a,quizTop:i,revealAnswers:c,scrollId:d}){const l=(0,h.useRef)(void 0);(0,h.useEffect)(()=>()=>{clearTimeout(l.current)},[]),(0,h.useEffect)(()=>{if(!r&&t){const u=i??rie,m=o?"instant":"smooth";document.getElementById(d??"page-wrap")?.scrollTo({top:u,behavior:m})}},[t,r,o,i,d]),(0,h.useEffect)(()=>{if(!(!t||c===Te.NONE||o))return!a&&s&&(clearTimeout(l.current),l.current=setTimeout(()=>{const u=e.current;if(!u)return;const m=u.offsetHeight+u.offsetTop,p=o?"instant":"smooth";document.getElementById(d??"page-wrap")?.scrollTo({top:m,behavior:p})},750)),()=>{clearTimeout(l.current)}},[e,t,s,o,a,c,d])}const iie=_("quiz-item");function cie({color:e,enableVideoPlaybackSpeed:t,hasStart:s=!1,id:o,index:r,isCard:a=!1,isCorrectAnswerUnshuffled:i,isQuestionBankQuiz:c=!1,isShuffled:d=!1,isTimedQuiz:l,item:u,items:m,labels:p={},onChoiceSelect:g,onFillInChange:C,onMatchSet:v,onResponseToggle:x,onTakeAgain:y,prefersKeyboardNavigation:S,progress:L,quizTop:b,reportAnswer:T,retryAttempts:N=0,scrollId:k,setNextIndex:E,settings:I={revealAnswers:Te.ALL},showNextButton:A=!0,submitAction:R,title:j}){const O=R7(),w=oie({hasStart:s,id:o,index:r,isCorrectAnswerUnshuffled:i,isShuffled:d,item:u,onChoiceSelect:g,onFillInChange:C,onMatchSet:v,onResponseToggle:x,onTakeAgain:y,progress:L,reportAnswer:T,retryAttempts:N,setNextIndex:E,settings:I,submitAction:R,title:j}),{activeIndex:P,feedbackRef:M,isActive:z,isComplete:$,isCorrect:F,prevIsActive:V,prevIsComplete:K}=w,Z=I?.revealAnswers===!0?Te.ALL:I?.revealAnswers??Te.NONE;aie({feedbackRef:M,isActive:z,isComplete:$,isReduceMotion:O,prevIsComplete:K,prevIsActive:V,quizTop:b,revealAnswers:Z,scrollId:k});const X=(0,n.jsx)(Yae,{color:e,enableVideoPlaybackSpeed:t,hasStart:s,index:r,interaction:w,isQuestionBankQuiz:c,isReduceMotion:O,isShuffled:d,item:u,items:m,labels:p,onTakeAgain:y,prefersKeyboardNavigation:S,progress:L,settings:I,showNextButton:A});return a?(0,n.jsx)($ae,{activeIndex:P,index:s?r+1:r,isActive:z,isComplete:$,isCorrect:F,isTimedQuiz:l,settings:I,children:X}):(0,n.jsx)("div",{className:iie("wrap"),children:X})}const et=_("odometer"),H7=1e3,F7=2e3,lie=4e3,die=750,Ou=200,uie=170,V7=145,Zs=Ou/2,Ys=uie/2,Vc=70,z7=1.5,hie=2.5,mie=225,pie=135,$7=270,nf=7,ri={start:{dx:-19,dy:8},mid:{dx:-5,dy:22},end:{dx:26,dy:-7}},Go={size:12,topOffset:-3,bottomOffset:21};function fie(e){return e<.5?16*e**5:1+16*(e-1)**5}function gie(e){return e<.5?2*e**2:1-(-2*e+2)**2/2}function Bu({angle:e,centerX:t,centerY:s,radius:o}){const r=(e-90)*Math.PI/180;return{x:t+o*Math.cos(r),y:s+o*Math.sin(r)}}function of({centerX:e,centerY:t,counterClockwise:s=!1,endAngle:o,radius:r,startAngle:a}){const i=Bu({angle:a,centerX:e,centerY:t,radius:r}),c=Bu({centerX:e,centerY:t,radius:r,angle:o}),l=Math.abs(o-a)>180?"1":"0",u=s?"0":"1";return`M ${i.x} ${i.y} A ${r} ${r} 0 ${l} ${u} ${c.x} ${c.y}`}function _7(e,t,s){return t+s*$7*e/100}function vie({hasPassed:e,isResultsVisible:t,isRTL:s,onAnimationDone:o,passingLabel:r,passingScore:a,score:i=0,scoreLabel:c,shouldAnimate:d}){const[l,u]=(0,h.useState)(0),[m,p]=(0,h.useState)(0),[g,C]=(0,h.useState)(!1),x=`hatch-pattern${(0,h.useId)()}`,y=(0,h.useRef)(null),S=(0,h.useRef)(!1),L=(0,h.useRef)([]),b=(0,h.useCallback)(()=>{L.current.forEach(clearTimeout),L.current=[]},[]),T=(0,h.useCallback)(()=>{y.current!==null&&(cancelAnimationFrame(y.current),y.current=null),b()},[b]);(0,h.useEffect)(()=>{t||(T(),S.current=!1,u(0),p(0),C(!1))},[t,T]),(0,h.useEffect)(()=>{if(!t||!d||S.current)return;S.current=!0;const X=i,te=setTimeout(()=>{let W=null;const D=H=>{W===null&&(W=H);const B=H-W,G=Math.min(B/F7,1),Y=fie(G),J=gie(G);if(p(Y),u(Math.round(J*X)),G<1)y.current=requestAnimationFrame(D);else{p(1),u(X);const Q=setTimeout(()=>{C(!0);const se=setTimeout(()=>{o?.()},die);L.current.push(se)},lie-H7-F7);L.current.push(Q)}};y.current=requestAnimationFrame(D)},H7);L.current.push(te)},[t,d,i,o]),(0,h.useEffect)(()=>()=>{T()},[T]);const N=s?pie:mie,k=s?-1:1,E=_7(a,N,k),I=_7(m*i,N,k),A=N+k*$7,R=Bu({centerX:Zs,centerY:Ys,radius:Vc,angle:I}),j=Bu({centerX:Zs,centerY:Ys,radius:Vc,angle:E}),O=m*i>=a,w=s?`%${a}`:`${a}%`,P=s?`%${l}`:`${l}%`,M=`${c} ${s?`%${i}`:`${i}%`}`,z=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:et("pass-mark-label"),children:r}),(0,n.jsx)("div",{className:et("pass-mark-percent"),children:w})]}),$=of({centerX:Zs,centerY:Ys,counterClockwise:s,radius:Vc,startAngle:N,endAngle:A}),F=of({centerX:Zs,centerY:Ys,counterClockwise:s,radius:Vc+3,startAngle:E,endAngle:A}),V=m>0?of({centerX:Zs,centerY:Ys,counterClockwise:s,radius:Vc,startAngle:N,endAngle:I}):"",K={x:j.x+(s?-13:13),y:j.y-13},Z={x:K.x+(s?-13:13),y:K.y};return(0,n.jsxs)("div",{className:et(),children:[(0,n.jsxs)("svg",{"aria-hidden":"true",className:et("svg"),viewBox:`0 0 ${Ou} ${V7}`,children:[(0,n.jsx)("defs",{children:(0,n.jsx)("pattern",{height:"1.5",id:x,patternTransform:"rotate(45)",patternUnits:"userSpaceOnUse",width:"1.5",children:(0,n.jsx)("line",{className:et("hatch-line"),x1:"0",x2:"0",y1:"0",y2:"1.5"})})}),(0,n.jsx)("path",{className:et("passing-zone"),d:F,fill:"none",stroke:`url(#${x})`,strokeWidth:"6"}),(0,n.jsxs)("g",{className:et("pass-mark-lines"),children:[(0,n.jsx)("line",{className:et("pass-mark-line"),x1:j.x,x2:K.x,y1:j.y,y2:K.y}),(0,n.jsx)("line",{className:et("pass-mark-line"),x1:K.x,x2:Z.x,y1:K.y,y2:Z.y})]}),(0,n.jsx)("path",{className:et("track"),d:$,fill:"none",strokeWidth:z7}),V&&(0,n.jsx)("path",{className:et("progress",{passing:O}),d:V,fill:"none",strokeWidth:z7}),m>0&&(0,n.jsx)("circle",{className:et("dot",{passing:O}),cx:R.x,cy:R.y,r:hie}),g&&(0,n.jsx)("g",{className:et("result-icon"),children:e?(0,n.jsx)("path",{className:et("checkmark"),d:`M ${Zs+ri.start.dx} ${Ys+ri.start.dy} L ${Zs+ri.mid.dx} ${Ys+ri.mid.dy} L ${Zs+ri.end.dx} ${Ys+ri.end.dy}`,fill:"none",strokeLinecap:"square",strokeLinejoin:"miter",strokeWidth:nf}):(0,n.jsxs)("g",{className:et("x-mark"),children:[(0,n.jsx)("path",{className:et("x-line",{first:!0}),d:`M ${Zs-Go.size} ${Ys+Go.topOffset} L ${Zs+Go.size} ${Ys+Go.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:nf}),(0,n.jsx)("path",{className:et("x-line",{second:!0}),d:`M ${Zs+Go.size} ${Ys+Go.topOffset} L ${Zs-Go.size} ${Ys+Go.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:nf})]})})]}),(0,n.jsxs)("div",{className:et("score",{pass:g&&e,fail:g&&!e}),children:[(0,n.jsx)("div",{className:et("score-label"),children:c}),(0,n.jsx)("div",{className:et("pass-label"),children:M}),(0,n.jsx)("div",{className:et("fail-label"),children:M}),(0,n.jsx)("div",{className:et("score-percent",{hidden:g}),children:P})]}),(0,n.jsx)("div",{className:et("pass-mark"),style:{"--pass-mark-x":`${(s?Ou-Z.x:Z.x)/Ou*100}%`,"--pass-mark-y":`${(Z.y+3)/V7*100}%`},children:z}),(0,n.jsx)("div",{className:et("pass-mark-mobile"),children:z})]})}const U7=(0,h.createContext)({handleExpiredQuiz:tn,hideTimer:tn,quizTime:0,resetQuizTimer:tn,timerDuration:0,timerHidden:!1,timerRunning:!1});function Cie({children:e,handleExpiredQuiz:t=()=>{},isTimedQuiz:s,courseProgress:o,setQuizLessonTimeRemaining:r=()=>{},timerDuration:a=10}){const i=(0,h.useRef)(void 0),[c,d]=(0,h.useState)(),[l,u]=(0,h.useState)(!1),[m,p]=(0,h.useState)(!1),[g,C]=(0,h.useState)(),v=(0,h.useMemo)(()=>Number(a),[a]),{activeIndex:x,endIndex:y,lessonId:S,lessonProgress:L,startIndex:b}=(0,h.useMemo)(()=>{const M=o?.currentLesson,z=o?.lessons?.[M],$=z?.activeIndex||0,F=Object.keys(z?.items||{}).length+1;return{activeIndex:$,lessonId:M,endIndex:F,lessonProgress:z,startIndex:0}},[o]),T=(0,Ae.A)(S),N=(0,Ae.A)(x),k=(0,h.useCallback)(()=>{d(v*60)},[v]),E=(0,h.useCallback)(()=>{d(M=>M-1)},[d]),I=(0,h.useCallback)(()=>{u(!0),i.current||(i.current=setInterval(E,1e3))},[E,u]),A=(0,h.useCallback)(M=>{p(M!==void 0?M:!m)},[m]),R=(0,h.useCallback)(()=>{u(!1),i.current&&(i.current=clearInterval(i.current))},[u]),j=(0,h.useCallback)(()=>{c&&g!==void 0&&r({lessonId:g,timeRemaining:c})},[g,c,r]),O=(0,h.useCallback)(()=>{j(),d(void 0)},[d,j]),w=(0,h.useCallback)(()=>d(L.timeRemaining||v*60),[L,v,d]);(0,h.useEffect)(()=>{if(!s)return;const M=T!==S,z=M&&c,$=M&&s;s&&!M&&g!==S&&C(S),z&&O(),$&&w()},[s,g,S,T,c,w,O]),(0,h.useEffect)(()=>{if(s)switch(x){case b:R();break;case y:k(),R();break;default:I(),N!==x&&T===S&&j()}},[x,y,s,S,N,T,k,b,I,R,j]),(0,h.useEffect)(()=>{s&&c<1&&R()},[s,c,R]);const P=(0,h.useMemo)(()=>({handleExpiredQuiz:t,hideTimer:A,quizTime:c,resetQuizTimer:k,timerDuration:v,timerHidden:m,timerRunning:l}),[t,A,c,k,v,m,l]);return(0,n.jsx)(U7.Provider,{value:P,children:e})}const G7=()=>(0,h.useContext)(U7),xie=e=>e.isTimedQuiz?(0,n.jsx)(Cie,{...e,children:e.children}):(0,n.jsx)(n.Fragment,{children:e.children}),bie={currentLesson:void 0,isRestricted:!1,isRestrictedCourse:!1,restrictingQuiz:{}};function yie(e){const t=ee(),s=Ao(),o=wt(e??""),r=(0,h.useMemo)(()=>{if(!t||!s||!o)return bie;const d=x1({course:t,courseProgress:s});return N1({course:t,courseProgress:s,lesson:o,restrictingQuiz:d})},[t,s,o]),{restrictingQuiz:a}=r,i="title"in a?a.title:void 0,c=it(i);return(0,h.useMemo)(()=>i?{...r,restrictingQuiz:{...a,title:c}}:r,[r,a,i,c])}const Lie=_("quiz-results");function Sie({skipToLessonId:e}){const t=ue(),s=Bw(e),o=A1(),{lessonPreposition:r,quizSkipAhead:a}=t??{},i=s>0&&a&&r?`${a} ${s} ${r} ${o}`:a;return i?(0,n.jsxs)(vu,{className:"continue-btn--flex",href:Os(e),testId:"quiz-skip-ahead-btn",children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"arrow-right-from-line"}),i]}):null}function Tie({isFooterVisible:e,isResultsVisible:t,onTryAgainFocus:s}){const o=at(),r=Us(),a=Tl(r),{passed:i=!1,retryAttempts:c=0}=a??{},{continueType:d,retryCount:l,skipLessonsIfPassed:u,skipToLessonId:m}=Uw(r),{resetQuizTimer:p}=G7(),g=uae(d),C=ue(),v=_w(r),x=yie(v),{isRestricted:y}=x,{courseFinish:S,quizContinue:L,quizTakeAgain:b}=C??{},T=u&&i&&!!m,N=g,k=hae({canShowContinue:N,isExport:hg(),isRiseCom:ke,nextLesson:v}),E=(0,h.useCallback)(()=>{p(),o(mv(r))},[o,p,r]),I=N&&y&&v&&C&&(0,n.jsx)(Y8,{bgType:"transparent",text:nw({labels:C,restrictions:x})}),A=N&&!y&&v&&L&&(0,n.jsx)(vu,{className:T?"continue-btn--outline":void 0,href:Os(v),text:L}),R=k&&S&&(0,n.jsx)(vu,{href:fk,text:S}),j=(l===-1||c<l)&&(0,n.jsxs)(e9,{allowTabNavigation:t,onClick:E,onFocus:s,size:"lg",testId:"quiz-take-again-button",children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"arrow-rotate-left"}),b]});return(0,n.jsxs)("div",{className:Lie("footer",{active:t,hidden:!e}),"data-testid":"quiz-results-footer",children:[T&&(0,n.jsx)(Sie,{skipToLessonId:m}),I,A,R,j]})}const ai=_("quiz-results");function Nie({questionCount:e}){const t=Us()??"",s=Tl(t),{activeIndex:o=0,passed:r=!1,passingScore:a=Wr,reportResults:i=!1,score:c=0}=s??{},d=ue(),l=rn(),[u,m]=(0,h.useState)(!1),p=e+1===o,g=(0,h.useRef)(p),C=(0,h.useRef)(void 0),v=(0,h.useRef)(null),x=(0,h.useId)(),{a11yQuizFailed:y="",a11yQuizPassed:S="",quizPassing:L="",quizResults:b="",quizScore:T=""}=d??{},N=`quiz-results-desc-${x}`,k=(0,h.useCallback)(()=>{C.current=setTimeout(()=>{m(!0),window.dispatchEvent(new CustomEvent(yd))},My)},[]),E=(0,h.useCallback)(()=>{clearTimeout(C.current),C.current=void 0,m(!0)},[]);return(0,h.useEffect)(()=>()=>{clearTimeout(C.current)},[]),(0,h.useEffect)(()=>{p!==g.current&&(p?v.current?.focus():m(!1),g.current=p)},[p]),(0,n.jsx)("div",{className:ai(),children:(0,n.jsx)("div",{className:ai("container"),children:(0,n.jsxs)("div",{className:ai("content",{active:p}),"data-testid":"quiz-results",children:[(0,n.jsxs)("div",{className:ai("header"),children:[(0,n.jsx)("h1",{"aria-describedby":N,className:ai("label").mix("noOutline"),ref:v,tabIndex:-1,children:b}),(0,n.jsxs)("div",{className:"visually-hidden-always",id:N,children:[(0,n.jsx)("div",{children:`${L}: ${a}%`}),(0,n.jsx)("div",{children:`${T}: ${c}%`}),(0,n.jsx)("div",{children:r?S:y})]})]}),(0,n.jsx)("div",{"aria-hidden":"true",className:ai("results"),children:(0,n.jsx)(vie,{hasPassed:r,isResultsVisible:p,isRTL:l,onAnimationDone:k,passingLabel:L,passingScore:a,score:c,scoreLabel:T,shouldAnimate:i})}),(0,n.jsx)(Tie,{isFooterVisible:u,isResultsVisible:p,onTryAgainFocus:E})]})})})}const kie=5,Iie=15,Eie=30,jie=60,wie=180,W7=300,K7=600,Q7=120,Aie=e=>e<=kie?{regularInterval:jie,lowTimeThreshold:Q7}:e<=Iie?{regularInterval:wie,lowTimeThreshold:Q7}:e<=Eie?{regularInterval:W7,lowTimeThreshold:W7}:{regularInterval:K7,lowTimeThreshold:K7},Rie=(e,t,s,o)=>{const r=Math.floor(o/60),a=o%60,i=r===1?e:t;if(r>0&&a>0)return`${s}: ${r} ${i} and ${a} seconds`;if(r>0&&a===0)return`${s}: ${r} ${i}`;if(r===0&&a>0)return`${s}: ${a} seconds`};var Un=f(80588);const ts=_("quiz-timer"),rf=(e,t)=>`${e.toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`,Pie=e=>{const t=Math.floor(e/60),s=e%60;return rf(t,s)},Z7=e=>{const t=Math.floor(e/60),s=e%60;return rf(t,s)},Mie=e=>rf(e,0),Y7=({area:e,exitCourseEnabled:t=!1,isStartScreenActive:s=!1,isEndScreenActive:o=!1,labelQuizTimerElapsed:r,labelQuizTimerExpired:a,labelQuizTimerExpiredAction:i,labelQuizTimerExpiredMessage:c,labelQuizTimerHide:d,labelQuizTimerLimit:l,labelQuizTimerMinute:u,labelQuizTimerMinutePlural:m,labelQuizTimerRemaining:p,labelQuizTimerShow:g,timerDisplay:C=sr.REMAINING,timerEnabled:v=!1})=>{const[x,y]=Un.useState(!1),[S,L]=Un.useState(""),b=Un.useRef(null),T=Un.useRef(!1),{hideTimer:N,quizTime:k,timerDuration:E,timerHidden:I,timerRunning:A,handleExpiredQuiz:R}=G7(),j=E*60,{isCover:O,isHeader:w,isHidden:P}=Un.useMemo(()=>({isCover:e==="cover",isHeader:e==="header",isHidden:C===sr.HIDE_TIMER}),[e,C]),M=s&&!O,z=Un.useMemo(()=>Aie(E),[E]),$=Un.useMemo(()=>({expired:a||"Time expired",minute:u||"minute",minutePlural:m||"minutes",remaining:p||"Time left"}),[a,u,m,p]),F=()=>{y(!1),R()},V=Un.useCallback(()=>{const{regularInterval:te,lowTimeThreshold:W}=z,D=k<=W&&k>0&&!T.current,H=b.current!==null&&b.current-k>=te,B=b.current===null;if(D||H){D&&(T.current=!0),b.current=k;const G=Rie($.minute,$.minutePlural,$.remaining,k);L(G)}B&&(b.current=k)},[z,k,$]);if(Un.useEffect(()=>{v&&k!==0&&(O||V())},[V,O,v,A,k]),Un.useEffect(()=>{if(!v||k!==0||s)return;const te=setTimeout(()=>{y(!0)},1200);return()=>clearTimeout(te)},[k,v,s]),!v||M||o)return null;const K={"header-area":w,"cover-area":O,"hide-timer":P,"exit-course":t},Z={display:[O,w&&!s].some(fe())?null:"none"},X=()=>({[sr.SUMMARY]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ts("label"),children:[l,":"]}),(0,n.jsxs)("div",{className:ts("value"),children:[E," ",E===1?u:m]})]}),[sr.REMAINING]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ts("label"),children:[p,":"]}),(0,n.jsx)("div",{className:ts("value"),children:Pie(k)})]}),[sr.ELAPSED]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ts("label"),children:[r,":"]}),(0,n.jsx)("div",{className:ts("value"),children:Z7(j-k)})]}),[sr.ELAPSED_TOTAL]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ts("label"),children:[r,":"]}),(0,n.jsxs)("div",{className:ts("value"),children:[Z7(j-k)," /"," ",Mie(E)]})]})})[O?sr.SUMMARY:C];return(0,n.jsxs)("div",{className:ts(K),"data-testid":"quiz-timer",style:Z,children:[k!==0&&(0,n.jsx)("div",{"aria-atomic":"true","aria-live":"polite",className:"visually-hidden",role:"status",children:S}),k===0&&(0,n.jsx)("div",{className:"visually-hidden",role:"alert",children:a||"Time expired"}),w&&I?(0,n.jsxs)("button",{className:ts("hide"),onClick:()=>N(!1),type:"button",children:[(0,n.jsx)(ie,{className:ts("icon"),name:"stopwatch-regular"}),g]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ts("time"),children:[(0,n.jsx)(ie,{className:ts("icon"),name:"stopwatch-regular"}),(0,n.jsx)("div",{className:ts("desc"),children:X()})]}),w&&(0,n.jsx)("button",{className:ts("hide"),onClick:()=>N(!0),type:"button",children:d})]}),!O&&x&&un.createPortal((0,n.jsxs)(Dm,{className:"quiz-timer-modal","data-testid":"quiz-timer-modal",disableBackgroundScroll:!0,heading:a,hideCloseButton:!0,onCancel:F,onClose:F,onOverlayClick:()=>{},children:[(0,n.jsx)("p",{children:c}),(0,n.jsx)("button",{"data-testid":"quiz-view-results-button",onClick:F,type:"button",children:i})]}),ro({childType:"dialog"}))]})},Gn=_("quiz-start"),Oie=e=>(e?.retryAttempts??0)>0;function Bie({lessonId:e,isActive:t}){const s=at(),o=(0,h.useRef)(null),r=Tl(e),a=ue(),i=ee(),c=C1(),d=wt(e),l=O3(),u=ae(B3),m=c?.authorName,p=c?.avatar,g=i?.theme?.showAuthor??!1,C=i?.theme?.showLessonCount??!1,v=l[e]??0,x=it(d?.description),y=it(d?.title),S=d?.settings?.timer,L=d?.settings?.asLesson!==!1,{a11yAuthorPrefix:b="",lessonName:T="",lessonPreposition:N="",quizStart:k="",quizTakeAgain:E="",quizTimerElapsed:I="",quizTimerExpired:A="",quizTimerExpiredAction:R="",quizTimerExpiredMessage:j="",quizTimerHide:O="",quizTimerLimit:w="",quizTimerMinute:P="",quizTimerMinutePlural:M="",quizTimerRemaining:z="",quizTimerShow:$=""}=a??{},F=Oie(r),V=t&&F,K=F?"quiz-take-again-button":"quiz-start-button";(0,h.useEffect)(()=>{V&&o.current?.focus()},[V]);const Z=()=>{s(K0({lessonId:e}))},X=F?E:k;return(0,n.jsx)("div",{"aria-hidden":!t,className:Gn(),children:(0,n.jsx)("div",{className:Gn("container"),children:(0,n.jsxs)("div",{className:Gn("content"),children:[(0,n.jsxs)("div",{className:Gn("header"),children:[(0,n.jsx)("div",{className:Gn("counter"),children:L&&C&&(0,n.jsx)("div",{className:Gn("count"),children:`${T} ${v} ${N} ${u}`})}),(0,n.jsx)("h1",{ref:o,tabIndex:-1,children:(0,n.jsx)(Le,{className:Gn("title"),value:y})}),g&&p&&m?(0,n.jsxs)("div",{className:Gn("author"),children:[(0,n.jsx)("img",{alt:"",src:gg(p)}),(0,n.jsxs)("span",{className:"visually-hidden",children:[b," ",m]}),(0,n.jsx)("span",{"aria-hidden":"true",children:m})]}):null]}),S&&(0,n.jsx)(Y7,{area:"cover",exitCourseEnabled:i?.lmsOptions?.enableExitCourse,isStartScreenActive:t,labelQuizTimerElapsed:I,labelQuizTimerExpired:A,labelQuizTimerExpiredAction:R,labelQuizTimerExpiredMessage:j,labelQuizTimerHide:O,labelQuizTimerLimit:w,labelQuizTimerMinute:P,labelQuizTimerMinutePlural:M,labelQuizTimerRemaining:z,labelQuizTimerShow:$,timerEnabled:S}),(0,n.jsx)(Le,{allowTabNavigation:t,className:Gn("description"),value:x}),(0,n.jsx)(Be.ArcButton,{className:Gn("start-button"),"data-testid":K,hierarchy:"plain",iconEnd:(0,n.jsx)(ie,{name:"chevron-right-solid"}),onClick:t?Z:tn,size:"sm",tabIndex:t?void 0:-1,children:X})]})})})}function Die(){const[e,t]=(0,h.useState)();return(0,h.useEffect)(()=>{const s=document.querySelector("[data-previous-lesson]");if(!s)return;t(s.clientHeight);const o=new ResizeObserver(([r])=>{t(r.target.clientHeight)});return o.observe(s),()=>{o.disconnect()}},[]),e}const X7=_("quiz");function Hie(){const e=Us();return e?(0,n.jsx)(Fie,{lessonId:e}):null}function Fie({lessonId:e}){const t=ee(),s=t?.color,o=ue(),a=oc()?.prefersKeyboardNavigation??!1,i=fa(e)??"",{activeIndex:c,progress:d,resolvedItems:l,retryAttempts:u,settings:m,sourceItems:p}=Rae({lessonId:e}),g=Sae({settings:m}),C=Die();Vae({lessonId:e,items:p});const v=bae(l.length),x=yae(c),{items:y,startOffset:S}=Lae(l,c);return(0,n.jsxs)("section",{className:X7(),"data-quiz":!0,"data-testid":"quiz",children:[m?.timer&&(0,n.jsx)(Y7,{area:"header",exitCourseEnabled:t?.lmsOptions?.enableExitCourse,isEndScreenActive:c===v,isStartScreenActive:c===Pu,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:m?.timerDisplay??void 0,timerEnabled:m?.timer}),(0,n.jsxs)("div",{className:X7("wrap"),children:[x&&(0,n.jsx)("div",{className:ef({activeIndex:c,index:Pu}),children:(0,n.jsx)(Bie,{isActive:c===Pu,lessonId:e})}),y.map((L,b)=>{const T=L.type===Wt.MULTIPLE_CHOICE;return(0,n.jsx)(cie,{color:s,hasStart:!0,id:e,index:b+S,isCard:!0,isCorrectAnswerUnshuffled:T?gae(L.shuffledAnswerIndices,L.answers,L.correct):void 0,isShuffled:fae(L.shuffledAnswerIndices,L.answers),isTimedQuiz:m?.timer,item:L,items:l,labels:o??{},onChoiceSelect:g.onChoiceSelect,onFillInChange:g.onFillInChange,onMatchSet:g.onMatchSet,onResponseToggle:g.onResponseToggle,prefersKeyboardNavigation:a,progress:d,quizTop:C,reportAnswer:vg,retryAttempts:u,scrollId:"page-wrap",setNextIndex:g.onSetIndex,settings:m??void 0,submitAction:g.onSubmit,title:i},`item-${L.id}`)}),(0,n.jsx)("div",{className:ef({activeIndex:c,index:v}),inert:v===c?void 0:!0,children:(0,n.jsx)(Nie,{questionCount:l.length})})]})]})}const Vie=({lessonProgress:e})=>(0,n.jsx)("div",{className:"page page--lessonTypeQuiz","data-page":!0,children:(0,n.jsx)("div",{className:"page__wrapper",children:(0,n.jsx)(Ru,{children:(0,n.jsxs)("div",{className:"page__content",children:[(0,n.jsx)(j7,{lessonProgress:e,type:"quiz"}),(0,n.jsx)(Hie,{},e?.retryAttempts??0)]})})})});var zie=f(60891),af=f.n(zie);Object.defineProperty(J7,"name",{value:"default",configurable:!0});function J7({authors:e,lessonAuthor:t,courseAuthor:s,selectedAuthorId:o}){if(o==="none")return{};if(o){const r=af()(e,{id:o});if(r)return r}if(t){const r=af()(e,{id:t});if(r)return r}if(s){const r=af()(e,{id:s});if(r)return r}return{}}const q7={addEventListeners(e,t){e.addEventListener("animationend",t,!1)},removeEventListeners(e,t){e.removeEventListener("animationend",t,!1)}},$ie=Re("LessonHeader"),_ie=_("lesson-header"),Uie=({authorName:e,avatar:t,children:s,color:o,description:r,labels:{lessonName:a,lessonPreposition:i},lessonHeaderColor:c,lessonHeaderImageColor:d,lessonHeaderSize:l,lessonHeaderStyle:u,partnerContentAuthors:m,totalLessons:p,lessonNumber:g,showAuthor:C,showLessonCount:v,title:x})=>{const y=mj(),S=Us(),L=O2(y),b=u===q.IMAGE,T=_ie("top-wrap"),{alpha:N,ariaLabel:k,media:E,role:I}=Sr("lessonHeaderImage"),A=E?.image,R=(0,h.useMemo)(()=>{if(A&&b){const j=d===nt.LIGHT?H0:D0;return Ll({alpha:N,color:j,url:vt(A)})}},[A,b,d,N]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a_,{ariaLabel:b?k:void 0,imgRole:b?I:void 0,sectionStyles:R,topWrapClassName:T,children:(0,n.jsx)($ie,{authorName:e,avatar:t,color:o,description:r,lessonHeaderColor:c,lessonHeaderSize:l,lessonHeaderStyle:u,lessonId:S,lessonName:a,lessonNumber:g,lessonPreposition:i,partnerContentAuthors:m,showAuthor:C,showLessonCount:v&&!L,title:x,totalLessons:p})}),s]})},ii=_("one-page-authors");function Gie({className:e}){const t=ue(),s=h3(),o=Cj(),r=k$();if(!o)return null;const a=s?.isPartnerContentAuthor&&r!=null,i=ii({}).mix(e);return a?(0,n.jsx)("div",{className:i,children:(0,n.jsx)("ul",{className:ii("list"),role:"list",children:r.map((c,d)=>(0,n.jsxs)("li",{className:ii("item"),role:"listitem",children:[(0,n.jsx)(ex,{avatarUrl:c?.image?da({width:76,height:76,imageKey:c.image}):void 0}),(0,n.jsx)(tx,{a11yAuthorPrefix:t?.a11yAuthorPrefix,name:c?.name})]},d))})}):(0,n.jsxs)("div",{className:i,children:[(0,n.jsx)(ex,{avatarUrl:mt(o.avatar)}),(0,n.jsx)(tx,{a11yAuthorPrefix:t?.a11yAuthorPrefix,name:o.authorName})]})}function ex({avatarUrl:e}){return e?(0,n.jsx)("div",{className:ii("avatar"),style:{backgroundImage:`url(${e})`}}):(0,n.jsx)("div",{className:ii("avatar-fallback"),children:(0,n.jsx)(jh,{decorative:!0})})}function tx({a11yAuthorPrefix:e,name:t}){const s=t||"Unknown User",o=ii("name");return(0,n.jsxs)("div",{className:o.toString(),children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:e}),(0,n.jsx)("span",{children:s})]})}const sx=Re("OnePageAuthors",Gie),Wie=_("one-page-title"),nx=Re("OnePageTitle",({className:e,htmlId:t})=>{const s=ee(),o=Ie(s?.title),r=ka("title"),a=(0,Et.uW)(s?.title)?{"data-l10n-id":s?.title?.l10nId}:{"data-change-path":r},i=Wie({}).mix(e);return(0,n.jsx)("h1",{...a,className:i,id:t,tabIndex:-1,children:o})}),cf=_("one-page-lesson-header-info");function Kie(){const e=ee(),t=cf({}),{accentContrast:s,coverImageColor:o,coverPageType:r}=e?.theme??{},c=r===ne.IMAGE&&o===nt.LIGHT||s===pe.DARK||r===ne.WHITE||r===ne.VIDEO||r===ne.ACCENT&&Bs(e?.color)===pe.DARK;return(0,n.jsxs)("div",{className:t,children:[(0,n.jsx)(nx,{className:cf("title").toString(),hasDarkText:c}),(0,n.jsx)(sx,{className:cf("authors").toString(),hasDarkText:c})]})}const Qie=Re("OnePageCoverInfo",Kie),Zie=Re("CoverSVG"),lf=_("one-page-lesson-header"),Yie=_("page"),Xie=lf("main").mix("lesson-header__main"),Jie=lf("container").mix(Yie("header-container")),ox=()=>{const e=ee(),{alpha:t,media:s}=Sr("coverImage"),o=e?.theme?.coverImageColor,r=e?.coverPageType===ne.WHITE,a=e?.coverPageType===ne.IMAGE,i=e?.coverPageType===ne.ACCENT,c=e?.coverPageType===ne.VIDEO,d=o===nt.LIGHT,l=lf({accent:i,image:a,white:r||c,video:c,"overlay-light":a&&d}),u=a?ua({alpha:t,color:o,media:s}):{};return(0,n.jsxs)("header",{className:l,style:u,children:[(0,n.jsx)("div",{className:Jie,children:(0,n.jsx)("div",{className:Xie,children:(0,n.jsx)(Qie,{})})}),(0,n.jsx)(Zie,{coverPageType:"LEFT"})]})},df=(0,h.createContext)({visibleLessons:[],registerLesson:()=>{},unregisterLesson:()=>{}});df.displayName="LessonContentContext";function qie({children:e}){const[t,s]=(0,h.useState)(()=>[]),o=(0,h.useCallback)(i=>{s(c=>c.concat(i))},[]),r=(0,h.useCallback)(i=>{s(c=>c.filter(d=>d!==i))},[]),a=(0,h.useMemo)(()=>({visibleLessons:t,registerLesson:o,unregisterLesson:r}),[t,o,r]);return(0,n.jsx)(df.Provider,{value:a,children:e})}function ece(){return(0,h.useContext)(df)}const{LARGE:tce,SMALL:sce}=Li,{ACCENT:nce,BLACK:oce,COLOR:rx,DARK:rce,GRAY:ace,IMAGE:ax,LIGHT:ice,TINT:cce}=q,lce=_("lesson-header-wrap");function dce({handleNavigate:e,handleStorylineFullscreen:t,isMobileHeader:s,isProgressSummary:o,lessonProgress:r,navigateDirection:a,onNavigateTransitionEnd:i,onPageReady:c,ref:d,registerLesson:l,unregisterLesson:u,visibleLessons:m}){const{didNavigate:p,previewType:g}=Rm(),C=(0,h.useRef)(null),v=(0,h.useRef)(0),x=(0,h.useRef)(!1),y=is(),S=(0,ge.g)(),L=ji(),b=Ao(),T=ue(),N=Lr(),k=oc(),E=L?.theme?.themeId,[I,A]=(0,h.useState)(!1),R=S.mode||"",j=S.id,O=o?dae:r?.index!=null?L?.lessons?.[r.index]??{}:{},w=o?null:T3({course:L,lesson:O}),P=o?0:ow({course:L,lesson:O}),M=rw(L),z=(0,h.useCallback)((Ct,ht)=>{const fs=a(),xn=C.current;if(!xn){ht();return}const ci=`page ${fs}-${Ct}`,Ku=()=>{Ct==="enter"?xn.className=`page ${fs}-complete`:xn.className="page",q7.removeEventListeners(xn,Ku),window.dispatchEvent(new CustomEvent(tC)),i(),ht()};xn.className=ci,q7.addEventListeners(xn,Ku)},[a,i]);(0,h.useImperativeHandle)(d,()=>({componentWillEnter(Ct){z("enter",Ct)},componentDidEnter(){A(!0)},componentWillExit(Ct){const ht=document.getElementById("page-wrap"),fs=ht?.scrollTop??0;ht&&(ht.scrollTop=0),v.current=fs,z("leave",Ct),window.dispatchEvent(new CustomEvent(eC)),C.current&&(C.current.scrollTop=v.current)},componentDidExit(){}}),[z]),(0,h.useEffect)(()=>(A(!0),o||(FT(j),Cs(CI(j))),l(j),()=>{u(j)}),[]),(0,h.useEffect)(()=>{p&&!x.current&&I&&c(),x.current=I},[p,I,c]);const $=(0,h.useMemo)(()=>{const{theme:Ct}=L??{},ht=Bs(Ct?.lessonHeaderColor),fs=Ct?.customColorLessonHeaderContrast??ht;return(fs===pe.AUTO?ht:fs)===pe.DARK?ft.DARK:ft.LIGHT},[L]),F=(Ct,ht)=>{if(o)return(0,n.jsx)(E7,{...ht,course:L,courseProgress:b,labels:T,lessons:L?.lessons,sessionPreferences:k});switch(Ct){case"blocks":return(0,n.jsx)(Hre,{...ht,animateBlockEntrance:L?.animateBlockEntrance,handleNavigate:e,isFirstLesson:ew({course:L,lesson:O})});case"quiz":return(0,n.jsx)(Vie,{...ht,course:L});default:return null}},V=O,{author:K,selectedAuthorId:Z,type:X}=V,{prefersKeyboardNavigation:te}=k??{},{authors:W,color:D,enableVideoPlaybackSpeed:H,lessonHeaderImage:B,showLessonCount:G,showNavigationButtons:Y,theme:J}=L??{},{hideLessonHeaders:Q,lessonHeaderColor:se,lessonHeaderImageColor:re,lessonHeaderSize:he,lessonHeaderStyle:ve,navigationType:Se,showAuthor:ut}=J??{},kt=N.length>0,ps=kt?N.find(Ct=>Ct.id===Z):void 0,Ee=kt?ps?.data?.authors:void 0,{avatar:De,authorName:Bt}=J7({authors:W,lessonAuthor:K,courseAuthor:L?.author,selectedAuthorId:Z}),vn=x1({course:L,courseProgress:b}),Js=o?{}:N1({course:L,courseProgress:b,lesson:w,restrictingQuiz:vn}),po=P4(O),qs=yo(L)?ox:Uie,Cn=(0,n.jsx)(qs,{authorName:Bt,avatar:De,color:D,course:L,description:V.description,labels:T,lessonHeaderColor:se,lessonHeaderImage:B,lessonHeaderImageColor:re,lessonHeaderSize:he,lessonHeaderStyle:ve,lessonNumber:P,partnerContentAuthors:Ee,showAuthor:ut,showLessonCount:G,themeId:E,title:V.title,totalLessons:M,children:!o&&(0,n.jsx)(j7,{id:V.id,items:V.items,lessonProgress:r,navigationType:Se,scrollPosition:0,type:V.type})}),vo=`image-${(re??nt.DARK).toLowerCase()}`,$r=lce({[vo]:ve===ax,accent:ve===nce,black:ve===oce,collapsed:Q,custom:ve===rx,dark:ve===rce,gray:ve===ace,image:ve===ax,large:he===tce&&!s,light:ve===ice,mobile:s,small:he===sce&&!s,tint:ve===cce}),_e=ve===rx?{"--lesson-header-contrast-color":$,"--color-background":se}:{},Dt={authorName:Bt,avatar:De,color:D,courseTitle:y(L?.title),data:O,enableVideoPlaybackSpeed:H,handleStorylineFullscreen:t,hideLessonHeaders:Q,isLesson:pr(V),labels:T,lessonHeader:Cn,lessonHeaderImage:B,lessonHeaderWrapClasses:$r,lessonHeaderWrapStyles:_e,lessonHasContinues:po,lessonNumber:P,lessonProgress:r,loadMedia:j===m[0],mode:R,nextLesson:w?.id??null,nextLessonRestrictions:Js,partnerContent:N,prefersKeyboardNavigation:te,previewType:g,scrollPosition:0,showAuthor:ut,showLessonCount:G,showNavigationButtons:Y,totalLessons:M};return(0,n.jsx)(Er,{title:mc(`${y(V.title)} - ${Dt.courseTitle}`),children:(0,n.jsx)("div",{className:"page page-transition-complete","data-lesson-id":j,ref:C,children:F(X,Dt)})})}function uce(e){const{visibleLessons:t,registerLesson:s,unregisterLesson:o}=ece();return(0,n.jsx)(dce,{...e,registerLesson:s,unregisterLesson:o,visibleLessons:t})}const hce=uce;var ix=f(83131);function mce(e){const t=ue(),s=Mw(e),o=Ow(e),r=A1(),a=s?.id,i=Oi(a),c=it(i?.data);return{lessonNameLabel:t?.lessonName,lessonPrepositionLabel:t?.lessonPreposition,nextLesson:s,nextLessonNumber:o,restrictionData:a?c:void 0,restrictionType:a?i?.type:void 0,totalLessons:r}}const Du=_("lesson-nav");function pce({allowTooltip:e,lessonNameLabel:t,lessonPrepositionLabel:s,nextLesson:o,nextLessonNumber:r,onFocus:a,ref:i,restrictionData:c,restrictionType:d,totalLessons:l}){const u=o?.id,m=kr(),p=Ra(m),C=o&&pr(o)&&u,v=Ie(o?.title)||"",x=C?`${r} ${s} ${l} \u2014 ${v}`:v,y=p&&C?`${t} ${r}`:x;return(0,n.jsx)(Pa,{allowTooltip:e,direction:"next",navLessonId:u,onFocus:a,ref:i,restrictionData:c,restrictionType:d,children:p?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Du("link-text"),children:y}),(0,n.jsx)(Cd,{className:Du("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Cd,{className:Du("link-icon")}),(0,n.jsx)("span",{className:Du("link-text"),children:y})]})})}const fce=Re("LessonNavNext",pce);function cx({lessonId:e,...t}){const s=mce(e);return(0,n.jsx)(fce,{...t,...s})}const Hu=_("lesson-nav"),gce=({allowTooltip:e,courseFinishLabel:t,onFocus:s,restrictionData:o,restrictionType:r},a)=>{const i=kr(),c=Ra(i);return(0,n.jsx)(Pa,{allowTooltip:e,direction:"next",finish:!0,onFocus:s,ref:a,restrictionData:o,restrictionType:r,children:c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Hu("link-text"),children:t}),(0,n.jsx)(Cd,{className:Hu("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Cd,{className:Hu("link-icon")}),(0,n.jsx)("span",{className:Hu("link-text"),children:t})]})})},vce=Re("LessonNavFinish",(0,h.forwardRef)(gce));function uf(e){const s=ue()?.courseFinish||"Finish";return(0,n.jsx)(vce,{...e,courseFinishLabel:s})}const Fu=_("lesson-nav"),Cce=({allowTooltip:e,className:t,courseHomeLabel:s,lessonNameLabel:o,lessonPrepositionLabel:r,onFocus:a,previousLesson:i,previousLessonNumber:c,totalLessons:d},l)=>{const u=i?.id,m=kr(),p=Ra(m),C=pr(i)&&u,v=it(i?.title)||s,x=C?`${c} ${r} ${d} \u2014 ${v}`:v,y=p&&C?`${o} ${c}`:x;return(0,n.jsx)(Pa,{allowTooltip:e,className:t,direction:"previous",navLessonId:u,onFocus:a,ref:l,children:p?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Fu("link-text"),children:y}),(0,n.jsx)(U5,{className:Fu("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U5,{className:Fu("link-icon")}),(0,n.jsx)("span",{className:Fu("link-text"),children:y})]})})},xce=Re("LessonNavPrevious",h.forwardRef(Cce));function hf({lessonId:e,...t}){const s=Ww(e)??{},o=Kw(e),r=A1(),a=ue();return(0,n.jsx)(xce,{...t,courseHomeLabel:a?.courseHome,lessonNameLabel:a?.lessonName,lessonPrepositionLabel:a?.lessonPreposition,previousLesson:s,previousLessonNumber:o,totalLessons:r})}const bce={threshold:0},Vu=(e,t)=>{const[s,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)},t||bce);const{current:a}=r;return e.current?a.observe(e.current):o(!1),()=>{a.disconnect()}},[e,t]),s},lx=_("navButtonsFull"),yce=()=>{const[e,t]=(0,h.useState)(!1);return(0,Ze.A)(eC,()=>t(!0)),(0,Ze.A)(tC,()=>t(!1)),e},Lce=({isVisible:e})=>{(0,ix.A)(()=>window.dispatchEvent(new CustomEvent(gm))),(0,h.useEffect)(()=>{const t=e?sC:gm;window.dispatchEvent(new CustomEvent(t))},[e])},Sce=({isVisible:e})=>{(0,ix.A)(()=>window.dispatchEvent(new CustomEvent(vm))),(0,h.useEffect)(()=>{const t=e?nC:vm;window.dispatchEvent(new CustomEvent(t))},[e])},Tce=({children:e,hideNavToHome:t,navNextEnabled:s,navFinishEnabled:o})=>{const r=(0,h.useRef)(null),a=(0,h.useRef)(null),i=(0,h.createRef)(null),c=(0,h.useRef)(),d=Us(),l=Vu(a),u=Vu(i),m=yce(),p=(0,h.useCallback)(()=>{r.current?.scrollTo({top:0,behavior:"smooth"})},[]),g=(0,h.useCallback)(()=>{const v=r.current?.scrollHeight;r.current?.scrollTo({top:v,behavior:"smooth"})},[]);(0,Ze.A)(bd,p),(0,Ze.A)(yd,g),Lce({isVisible:l}),Sce({isVisible:u}),(0,h.useEffect)(()=>{if(!m&&a.current){const x=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:x})}},[m,a]);const C=lx("navPrev",{visible:l,hide:m});return(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:r,children:(0,n.jsxs)("div",{className:lx(),children:[!t&&(0,n.jsx)("div",{className:C,children:(0,n.jsx)(hf,{lessonId:d,ref:a})}),e,s&&(0,n.jsx)(cx,{lessonId:d,ref:i}),o&&(0,n.jsx)(uf,{lessonId:d,ref:c})]})})},zc=_("navButtonsFloating"),dx=({transitionIn:e,buttonType:t,children:s})=>{const o=(0,h.useRef)(),r={entered:zc(t,{entered:!0}),exiting:zc(t,{exiting:!0}),exited:zc(t,{exited:!0})};return(0,n.jsx)(Kc,{in:e,nodeRef:o,timeout:250,children:a=>(0,n.jsx)("div",{className:r[a],ref:o,children:s})})},Nce=250,ux={threshold:.2},kce=({topRef:e,bottomRef:t,pageWrapRef:s,currentLessonId:o})=>{const r=Vu(e,ux),a=Vu(t,ux),[i,c]=(0,h.useState)(!1),[d,l]=(0,h.useState)(!1),[u,m]=(0,h.useState)(!1),p=(0,h.useCallback)(()=>{s.current?.scrollTo({top:2,behavior:"smooth"})},[s]);return(0,Xd.A)(p),(0,h.useEffect)(()=>{c(!0);const g=setTimeout(()=>{p(),c(!1)},Nce);return()=>{clearTimeout(g)}},[o,p]),(0,h.useEffect)(()=>{l(a&&!i),m(r&&!i)},[a,r,i]),{showPrev:u,showNext:d}},Ice=({children:e,isCurrentLessonQuiz:t,navNextEnabled:s,hideNavToHome:o,navFinishEnabled:r})=>{const a=(0,h.useRef)(),i=(0,h.useRef)(),c=(0,h.useRef)(),d=(0,h.useRef)(),l=(0,h.useRef)(),u=(0,h.useRef)(),m=Us(),{showNext:p,showPrev:g}=kce({topRef:l,bottomRef:u,pageWrapRef:a,currentLessonId:m}),C=(0,h.useCallback)(()=>{a.current?.scrollTo({top:0,behavior:"smooth"})},[]),v=(0,h.useCallback)(()=>{const x=a.current?.scrollHeight;a.current?.scrollTo({top:x,behavior:"smooth"})},[]);return(0,Ze.A)(bd,C),(0,Ze.A)(yd,v),(0,h.useEffect)(()=>{t&&(s||r)&&v()},[t,s,r,v]),(0,n.jsxs)("div",{className:"page-wrap",id:"page-wrap",ref:a,children:[(0,n.jsx)("div",{className:zc("top"),ref:l}),!o&&(0,n.jsx)(dx,{buttonType:"prev",transitionIn:g,children:(0,n.jsx)(hf,{lessonId:m,onFocus:C,ref:i})}),e,(0,n.jsx)(dx,{buttonType:"next",transitionIn:p&&(s||r),children:s?(0,n.jsx)(cx,{lessonId:m,onFocus:v,ref:c}):r?(0,n.jsx)(uf,{lessonId:m,onFocus:v,ref:d}):null}),(0,n.jsx)("div",{className:zc("bottom"),ref:u})]})};var zu=f(80588);class Ece extends zu.Component{nodeRef=zu.createRef();constructor(t){super(t),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(t){const s=this.transitionState;s==="entering"?this.onEnter(t):s==="exiting"&&this.onExit(t)}onEnter(t){const s=this.nodeRef.current;s&&s.componentWillEnter?s.componentWillEnter(t):t()}onEntered(){const t=this.nodeRef.current;t&&t.componentDidEnter&&t.componentDidEnter()}onExit(t){const s=this.nodeRef.current;s&&s.componentWillExit?s.componentWillExit(t):t()}onExited(){const t=this.nodeRef.current;t&&t.componentDidExit&&t.componentDidExit()}render(){const{children:t}=this.props;return(0,n.jsx)(Kc,{addEndListener:this.handleTransition,nodeRef:this.nodeRef,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0,...this.props,children:s=>(this.transitionState=s,t&&zu.cloneElement(zu.Children.only(t),{ref:this.nodeRef}))})}}const{FULL:jce,FLOATING:hx}=Xn,wce=_("lessonNavigation"),Ace=({children:e})=>{const t=(0,h.createRef)();return(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:t,children:e})},Rce=(e,t)=>e+(t?.drawCount??1),Pce=(e=[])=>e.reduce(Rce,0),Mce=({children:e,isLessonOnlyEmbed:t})=>{const{buttonNavigationStyle:s}=ee(),{pathname:o}=(0,ge.zy)(),r=ee(),{showNavigationButtons:a,lessonsOnly:i,lmsOptions:c={}}=r,d=(0,h.useRef)(),l=xt(480),u=Us(),m=wt(u)||{},p=Ro(u)||{},[g,C]=(0,h.useState)(s),v=i[0].id,x=r?.exportSettings?.webExportSettings,y=!wn.isInstantLink&&(c?.disableCoverPage||x?.disableCoverPage)&&v===u,S=!wn.isInstantLink&&c?.disableCoverPage,L=c?.disableCoverPage?y:S;(0,h.useEffect)(()=>{s!==g&&(C(s),window.dispatchEvent(new CustomEvent(bd)))},[s,g]);const b=P4(m)||Vg(m)?p.isComplete:!0,T=p.activeIndex===Pce(m.items)+1,N=m.type==="quiz"&&!T||m.settings?.continueType==="continue",k=m&&T3({course:r,lesson:m}),E=u==="progress-summary",I=window.isPublicShare,A=k&&!t&&b&&!N&&!E,R=!k&&b&&ke&&!I&&!E&&!t&&!hg()&&!N,j=wce("wrapper",{full:s===jce||l,floating:s===hx&&!l}),w=!a||t?Ace:s===hx&&!l?Ice:Tce;return(0,h.useEffect)(()=>{const P=document.querySelector(".page__content");P&&P.classList.add("page__content--preview-nav")},[w]),(0,n.jsx)("div",{className:j,ref:d,children:(0,n.jsx)(w,{hideNavToHome:L,navFinishEnabled:R,navNextEnabled:A,children:(0,n.jsx)(qie,{children:(0,n.jsx)(Qo,{component:"div",children:(0,n.jsx)(Ece,{children:e},o)})})})})};var Oce=f(21166),Bce=f.n(Oce),Dce=f(77877),Hce=f.n(Dce),Fce=f(45774),mx=f(35545);function Vce(e){return e?.slidesUI?.slideDirection??Ps.UP}function zce(){return ae(Vce)}function $ce(e){return e?.slidesUI?.exitingSlideOffset??0}function _ce(){return ae($ce)}const Fr=_("blocks-lesson-slide"),px="#fff",Uce=["image full","image text overlay","quote background"],fx=({className:e})=>{const t=bs()||px;return(0,n.jsx)("div",{className:e,style:{background:t}})},Gce=({block:e})=>(0,n.jsx)(O1,{block:e,children:(0,n.jsx)(fx,{className:Fr("background-top")})}),Wce=({block:e})=>(0,n.jsx)(O1,{block:e,children:(0,n.jsx)(fx,{className:Fr("background-bottom")})});function Kce(e,t){const s=t.blocks?.length??1,o=s==1,r=s==2,a=t.blocks?.[0],i=t.blocks?.find(R=>R.settings.backgroundType===q.IMAGE),c=e.settings.backgroundType===q.IMAGE,d=e.id===a?.id,l=e.family==="multimedia",u=e.family==="mondrian",m=e.family==="survey",p=e.family==="buttons",C=e.variant==="accordion"&&document.querySelector(`[data-block-id="${e.id}"] [data-accordion-status="closed"]`)!=null,v=document.querySelector(`[data-block-id="${e.id}"] [data-block-text]`)?.clientHeight>300,x=Ore(e.family,e.variant)||v,y=document.querySelector("[data-continue-sr]")!=null,S=!x&&r&&y&&document.querySelector("[data-continue-btn]")==null,L=o&&c&&!S,b=c&&!S&&!x,T=l||p||u||m;return Fr("connected-blocks",{"min-half-height":i&&(r&&!S&&!x||C||b),"full-height":S||L,"top-block":d&&!o&&!x&&!T,"top-block-centered":d&&!o&&T})}const Qce=({hasTransitioned:e,onContinue:t,prefersKeyboardNavigation:s,previewType:o,slide:r,transitionState:a},i)=>{const c=ee(),d=Us(),l=ue(),u=Lr(),m=Ro(d),p=!0,{animateBlockEntrance:g,color:C,title:v,enableVideoPlaybackSpeed:x}=c;(0,h.useImperativeHandle)(i,()=>y.current);const y=(0,h.useRef)(),S=zce(),L=_ce(),b=`${a}-${S}`,T=Fr("wrapper",{exiting:a==="exiting"}),{blocks:N,lastBlock:k}=r,E=(0,h.useCallback)(W=>{W===k?.id&&t()},[k,t]),I=Fr("inner",{[b]:!0}),A=Fr("lesson",{slides:p,"touch-preview":xc(o)}).toString(),R=r.blocks.length==1,{settings:j,type:O,variant:w}=r.blocks?.[0]??{},P=R&&j.backgroundType===q.IMAGE,M=R&&!P&&Tn()(`${O} ${w}`,Uce),z=M||P,$=r.blocks?.[0],F=r.blocks?.[r.blocks.length-1],V=$?.settings?.backgroundType!==q.IMAGE,K=F?.settings?.backgroundType!==q.IMAGE,Z=rl(c),te=Fr("full-width-image",{legacy:M,"presentation-contain":M&&Z&&O==="image"&&w==="full",background:P});return(0,n.jsx)("div",{className:T,style:{top:L},children:(0,n.jsxs)("div",{className:I,children:[V&&(0,n.jsx)(Gce,{block:$}),K&&(0,n.jsx)(Wce,{block:F}),(0,n.jsx)("div",{className:A,ref:y,children:N.map((W,D)=>{const H=R?!1:S7({blocks:r.blocks,lessonProgress:m,currentBlockIndex:D}),B=z?te:Kce(W,r);return(0,n.jsx)(y7,{animateBlockEntrance:g,block:W,className:B,color:C,courseTitle:v,defaultBackgroundColor:px,enableVideoPlaybackSpeed:x,hideBlock:H,index:D,isFirstLesson:!0,isOnlyBlockInStep:R,labels:l,lessonId:d,lessonProgress:m,loadMedia:e,onContinue:E,partnerContent:u,prefersKeyboardNavigation:s,previewType:o},W.blockId)})})]})})},Zce=(0,h.forwardRef)(Qce);var Yce=f(7050),Xce=f.n(Yce);const gx=_("blocks-slide-indicator-tooltip"),Jce=({disabled:e,left:t,text:s,top:o,visible:r},a)=>{let i=(0,n.jsx)("span",{"aria-hidden":"true",children:s});return e&&(i=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ie,{classNameIcon:gx("icon"),name:"lock"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"(locked content)"})]})),(0,n.jsx)("div",{"aria-hidden":!r,className:gx("wrapper",{disabled:e,visible:r}),ref:a,role:"tooltip",style:{left:t,top:o},children:i})},vx=(0,h.forwardRef)(Jce);vx.propTypes={disabled:xe().bool.isRequired,left:xe().number,text:xe().string.isRequired,top:xe().number,visible:xe().bool.isRequired};const qce=vx;function ele(e){const t=(0,h.useRef)();return t.current||=e(),t}const $u=_("blocks-slide-indicator"),tle=({active:e,blockNavigationStyle:t,disabled:s,numberOfSlides:o,onKeyDown:r,onClick:a,slideIndex:i},c)=>{const{prefersKeyboardNavigation:d}=oc()??{},[l,u]=(0,h.useState)(!1),[m,p]=(0,h.useState)(),g=(0,h.useRef)(),C=(0,h.useRef)(),v=(0,h.useRef)(),x=t===F0.NUMBERS,y=i+1,S=`${y} / ${o}`,L=e?`Step ${y} of ${o}, current step`:`Go to step ${y} of ${o}`,b=ele(()=>document.getElementById("portal")),T=(0,h.useCallback)(()=>{if(g.current&&C.current){const z=g.current.getBoundingClientRect(),$=C.current.getBoundingClientRect(),F=z.left-$.width-18,V=Math.round(z.top-$.height/2+z.height/2);p({left:F,top:V})}},[]),N=(0,h.useCallback)(()=>{v.current=setTimeout(()=>{T(),u(!0)},300)},[T]),k=(0,h.useCallback)(()=>{clearTimeout(v.current),u(!1)},[]),E=(0,h.useCallback)(()=>{a(i)},[a,i]),I=(0,h.useCallback)(z=>{ls(z)&&u(!1),r(z)},[r]),A=(0,h.useCallback)(()=>{N()},[N]),R=(0,n.jsx)(qce,{disabled:s,left:m?.left,ref:C,text:S,top:m?.top,visible:l}),j=$u("button",{active:e,disabled:s,numbers:x}),O=$u("wrapper"),w=$u("circle",{active:e,disabled:s}),P=$u("number",{active:e,disabled:s}),M=x?(0,n.jsx)("span",{"aria-hidden":"true",className:P,children:y}):(0,n.jsx)(ie,{classNameIcon:w,name:"circle-solid"});return(0,n.jsxs)("div",{className:O,ref:c,children:[(0,n.jsx)("button",{"aria-current":e?"page":void 0,"aria-disabled":s,"aria-label":L+(s?" (unavailable until previous content is completed)":""),className:j,"data-control":"",onBlur:k,onClick:s?void 0:E,onFocus:d?A:void 0,onKeyDown:I,onMouseEnter:N,onMouseLeave:k,ref:g,type:"button",children:M}),(0,un.createPortal)(R,b.current)]})},sle=(0,h.forwardRef)(tle),Vr=_("blocks-slide-controls"),Cx=38,nle=8,ole=e=>{const{activeSlideIndex:t,blockNavigationStyle:s,numberOfSlides:o,onGoToCover:r,onSlideClick:a,slideDisabledState:i,previewType:c}=e,d=(0,h.useRef)(),l=(0,h.useRef)(),[u,m]=(0,h.useState)(!1),[p,g]=(0,h.useState)(!1),C=(0,h.useCallback)(S=>{let L=!1,b=-1;if(br(S)||so(S)){if(t-1>=0)b=t-1;else{r();return}L=!0}else yr(S)||no(S)?(t+1<=o-1&&(b=t+1),L=!0):i5(S)?(b=0,L=!0):a5(S)&&(b=o-1,i[b]&&(b=i.findLastIndex(T=>!T)),L=!0);b>=0&&!i[b]&&a(b),L&&(S.stopPropagation(),S.preventDefault())},[t,o,r,a,i]);(0,h.useEffect)(()=>{const S=d.current,L=l.current;if(S&&L){const b=S.getBoundingClientRect(),T=L.getBoundingClientRect(),N=b.bottom-Cx,k=b.top+Cx;T.bottom>N?S.scrollBy({top:T.bottom-N,left:0,behavior:"smooth"}):T.top<k&&S.scrollBy({top:T.top-k,left:0,behavior:"smooth"})}},[t]);const v=(0,h.useCallback)(()=>{const S=d.current;S&&(m(S.scrollTop>nle),g(S.clientHeight+S.scrollTop<S.scrollHeight))},[]);(0,Xd.A)(v);const x=(0,h.useCallback)(Cu()(v,100),[v]);Ld(d.current,v);const y=Vr({"touch-preview":xc(c)});return(0,n.jsx)("div",{className:y,children:(0,n.jsx)("div",{className:Vr("page-control-wrapper"),children:(0,n.jsxs)("div",{className:Vr("page-control-inner-wrapper"),children:[(0,n.jsx)("div",{className:Vr("page-control"),onScroll:x,ref:d,children:(0,n.jsx)("div",{className:Vr("slide-dot-wrapper"),children:Xce()(S=>{const L=S===t;return(0,n.jsx)(sle,{active:L,blockNavigationStyle:s,disabled:i[S],numberOfSlides:o,onClick:a,onKeyDown:C,ref:L?l:null,slideIndex:S},S)},o)})}),(0,n.jsx)("div",{className:Vr("overlay-top",{visible:u})}),(0,n.jsx)("div",{className:Vr("overlay-bottom",{visible:p})})]})})})},xx=100;var $c=f(80588);const rle=50,ale=1e3,ile=({onSwipeDownHandler:e,onSwipeUpHandler:t,target:s,timeoutDuration:o=ale})=>{const[r,a]=$c.useState(!1),i=$c.useRef(void 0),c=$c.useCallback(()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>a(!1),o)},[o]),d=$c.useCallback(l=>{const u=Math.abs(l.deltaY);if(r)u<rle?(i.current&&clearTimeout(i.current),a(!1)):c();else if(u>xx){const m=l.deltaY>0?e:t;a(!0),c(),m()}},[c,r,e,t]);$c.useEffect(()=>{if(!(!s||!t||!e))return s.addEventListener("wheel",d,{passive:!0}),()=>{i.current&&clearTimeout(i.current),s?.removeEventListener?.("wheel",d,{passive:!0})}},[e,t,d,s])},bx="rise-presenter-sync",j3e="presenterMode",cle="slide",lle="NAVIGATE_TO_COVER",yx="NAVIGATE_TO_SLIDE",Lx="SLIDE_CHANGE",w3e="PRESENTER_VIEW_EXIT";function dle(e){const t=new URLSearchParams(e).get(cle);if(t==null)return 0;const s=Number(t);return Number.isFinite(s)&&s>0?s:0}function Sx(){const e=window.location.hash.split("?")[1]||"";return dle(e)}const Xs=_("lesson-one-page-slides"),ule=_("page-wrap"),Tx=100;function Nx(e){if(e==null)return!1;const t=e.tagName.toLowerCase(),s=e.getAttribute("type"),o=e.getAttribute("role"),r=e.tabIndex,a=t==="button"||["div","span"].includes(t)&&(o==="button"||r===0),i=t==="input"&&["radio","text"].includes(s)||t==="textarea"||o==="radio",c=["audio","video"].includes(t),d=o==="tab",l=document.querySelector(".quiz-card__interactive")?.contains?.(e)??!1;return a||i||c||d||l}const hle=(e,t)=>(s,o,r)=>L7(s,r.slice(0,-1),e,void 0,t),mle=(e,t)=>({disabled:s,slides:o},r)=>{const a=st()(As()(l=>e[l.id]),tt()(l=>vs()(l,e[l.id])))(r),i=r[r.length-1],c=s||Rre(a)||Pre(a,t),d={blocks:a,lastBlock:i,disabled:s};return{disabled:c,slides:Bce()(d,o)}},_u=e=>{let t=!1,s=!1;if(e){const{clientHeight:o,scrollHeight:r,scrollTop:a}=e,i=Math.max(0,a),c=r-i;t=c===r,s=c-5<=o}return{isAtTop:t,isAtBottom:s}},ple=/,? +/,fle=[],gle=({lessonProgress:e,prefersKeyboardNavigation:t,previewType:s},o)=>{(0,h.useImperativeHandle)(o,Function.prototype,[]);const{announcePolite:r,clearAnnouncements:a}=In(),i=(0,h.useRef)(),c=(0,h.useRef)(),d=(0,h.useRef)(),l=(0,h.useRef)(),u=(0,h.useRef)(),m=(0,h.useRef)(),p=(0,h.useRef)(),g=(0,h.useRef)(),C=(0,h.useRef)(null),v=(0,h.useRef)(null),x=(0,h.useRef)(!1),y=(0,h.useRef)(0),S=(0,h.useRef)(0),L=Vt(),b=at(),[T,N]=(0,h.useState)(()=>{const je=Sx()-1;return je>0?je:0}),[k,E]=(0,h.useState)(!0),[I,A]=(0,h.useState)(!1),R=(0,Ae.A)(k),j=(0,Ae.A)(I),O=(0,h.useRef)(),w=Ns(),P=w?.01:600,{lessons:M,...z}=ee()||{},$=z?.theme?.blockNavigationStyle||F0.DOTS,F=M[0],V=F?.items||fle,K=(0,h.useCallback)(()=>{const je=d.current?.scrollHeight>d.current?.clientHeight,{isAtBottom:_t}=_u(d.current),yt=je&&!k&&!_t;yt!=I&&A(yt)},[I,k]);Ld(i.current,K),(0,h.useLayoutEffect)(K,[k]);const Z=(0,h.useCallback)(()=>{d.current?.scrollTo({top:0})},[]),X=z?.theme,te=(0,h.useMemo)(()=>ol(Jp([],V,e,X).map(hle(e,X)),As()(M4.A),Hce()(Ce()("blockId"))),[V,e,X]),W=(0,h.useCallback)(je=>{const _t={disabled:!1,slides:[]},{slides:yt}=_d()(mle(te,e),_t,je);return yt},[te,e]),D=(0,h.useMemo)(()=>ol(V,yre,W),[V,W]),H=(0,h.useMemo)(()=>Xc()("disabled",D),[D]),B=rl(z);(0,h.useEffect)(()=>{y.current=T},[T]),(0,h.useEffect)(()=>{S.current=D.length,D.length>0&&T>=D.length&&N(D.length-1)},[D.length,T]),(0,h.useEffect)(()=>{if(!(!B||typeof BroadcastChannel>"u"))try{C.current||(C.current=new BroadcastChannel(bx));const je=C.current,_t=yt=>{if(yt.data.type===lle)b(ko(Ps.DOWN)),v.current&&v.current(0),x.current||L("/");else if(yt.data.type===yx){const gf=yt.data.slideIndex,Uc=Math.min(gf-1,S.current-1);if(Uc>=0){const ide=Uc<y.current?Ps.DOWN:Ps.UP;b(ko(ide)),v.current&&v.current(Uc)}}};return je.addEventListener("message",_t),()=>{je.removeEventListener("message",_t)}}catch{}},[B,b,L]),(0,h.useEffect)(()=>{if(!(!B||!C.current))try{const je=T+1;C.current.postMessage({type:Lx,slideIndex:je})}catch{}},[B,T]),(0,h.useEffect)(()=>()=>{C.current?.close(),C.current=null},[]);const G=D.length,Y=G>0?Math.min(T,G-1):0,J=D[Y],Q=xc(s),se=$!==F0.NONE,re=T===G-1,he=e?.isComplete,ve=I||re?!he||!ke||window.isPublicShare:H[T+1],Se=!I&&!re,ut=re&&!ke,kt=(0,Ae.A)(ut),ps=I&&!re,Ee=(0,h.useCallback)(uu()(K,100),[K]);(0,h.useEffect)(()=>{const je=d.current;return je?.addEventListener("scroll",Ee,{passive:!0}),()=>je?.removeEventListener("scroll",Ee,{passive:!0})},[Ee]),(0,h.useEffect)(()=>{document.activeElement===m.current?!j&&I?u.current?.focus({preventScroll:!0}):!kt&&ut&&p.current?.focus({preventScroll:!0}):document.activeElement===u.current&&j&&!I&&m.current?.focus({preventScroll:!0})},[I,j,kt,R,ut,k]),(0,Fce.A)(()=>{D8(),O.current=setTimeout(()=>{E(!1),d.current?.focus?.()},P+Tx)},()=>{clearTimeout(O.current)});const De=(0,h.useCallback)(je=>{const _t=i.current?.getBoundingClientRect()?.top??0;b(IE(_t));const yt=Math.max(0,Math.min(je,D.length-1));N(yt),Z()},[b,Z,D.length]),Bt=(0,h.useCallback)(()=>{k||(E(!0),io(()=>{L("/")},"lesson-to-one-page-cover-stepped"))},[L,k]),vn=z?.exportSettings?.webExportSettings,Js=!wn.isInstantLink&&(z?.lmsOptions?.disableCoverPage||vn?.disableCoverPage),po=(0,h.useCallback)(Js?()=>{b(ko(Ps.DOWN)),De(0)}:Bt,[Js,De,Bt,b,ko]);(0,h.useEffect)(()=>{x.current=Js},[Js]),(0,h.useEffect)(()=>{v.current=De},[De]);const fo=(0,h.useCallback)(()=>{k||(T>0?(b(ko(Ps.DOWN)),De(T-1)):Bt())},[De,b,T,k,Bt]),qs=(0,h.useCallback)(()=>{k||(re&&ke?L("/lessons/progress-summary"):(b(ko(Ps.UP)),De(T+1)))},[De,b,L,re,T,k]),Cn=(0,h.useCallback)(()=>{(T<G-1||re&&ke)&&qs()},[re,T,G,qs]),go=(0,h.useCallback)(()=>{const je=d.current?.scrollTop??0,_t=d.current?.clientHeight??0,yt=w?"instant":"smooth";d.current?.scrollTo({top:je+_t,behavior:yt})},[w]),vo=(0,h.useCallback)(()=>{qs()},[qs]),$r=(0,h.useCallback)(()=>{go()},[go]),_e=(0,h.useCallback)(je=>{if(je===T||k)return;const _t=je<T?Ps.DOWN:Ps.UP;b(ko(_t)),De(je),queueMicrotask(()=>{l.current?.querySelectorAll("[data-control]")?.[je]?.focus?.()})},[De,b,T,k]),Dt=(0,h.useCallback)(()=>E(!0),[]),Ct=(0,h.useCallback)(()=>{E(!1),setTimeout(()=>{if(c.current&&l.current?.contains?.(document.activeElement)){const je=Qp()(c.current.innerText,{length:75,separator:ple});a(),r(`Content preview: ${je}`)}else d.current?.focus?.()},0)},[r,a]),ht=(0,h.useCallback)(()=>{if(Q)return;const{isAtTop:je}=_u(d.current);if(je){T===0?po():fo();return}},[Q,fo,T,po]),fs=(0,h.useCallback)(()=>{if(Q||re&&!ke||ve)return;const{isAtBottom:je}=_u(d.current);if(je){vo();return}},[re,ve,Q,vo]),xn=(0,h.useCallback)(()=>{const{isAtBottom:je,isAtTop:_t}=_u(d.current),yt=document.documentElement.clientWidth===window.innerWidth;return(je||_t)&&yt},[]),ci=(0,h.useCallback)(je=>{!l.current?.contains?.(document.activeElement)&&!Nx(je.target)&&ht()},[ht]),Ku=(0,h.useCallback)(je=>{!l.current?.contains?.(document.activeElement)&&!Nx(je.target)&&fs()},[fs]),Bx=(0,h.useCallback)(je=>{const{itemId:_t}=je.detail,yt=D.findIndex(gf=>gf.blocks.find(Uc=>Uc.id===_t));yt===-1||yt===T||(b(ko(yt>T?Ps.UP:Ps.DOWN)),De(yt))},[D,T,b,De]);(0,h.useEffect)(()=>(window.addEventListener(We,Bx),()=>{window.removeEventListener(We,Bx)})),(0,mx.A)("ArrowUp",fe(),ci),(0,mx.A)("ArrowDown",fe(),Ku),ile({target:d.current,onSwipeUpHandler:ht,onSwipeDownHandler:fs,timeoutDuration:P+Tx});const ade=Xs("gradient",{visible:I});return(0,n.jsx)("div",{className:Xs({}),children:(0,n.jsx)("div",{className:ule({transitioning:k}),id:"page-wrap",ref:d,tabIndex:"-1",children:(0,n.jsx)("div",{className:"page","data-page":!0,children:(0,n.jsx)("div",{className:"page__wrapper",children:(0,n.jsx)("div",{className:"page__content",children:(0,n.jsx)(Er,{children:(0,n.jsxs)("div",{"data-lesson-id":F?.id,children:[(0,n.jsxs)("nav",{"aria-label":"Step navigation",className:Xs("controls",{"touch-preview":Q}),ref:l,children:[(0,n.jsxs)("button",{"aria-disabled":T===0&&Js,"aria-hidden":T===0&&Js,className:Xs("prev-btn",{"touch-preview":Q}),onClick:fo,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Xs("arrow-icon",{"touch-preview":Q}),name:"arrow-up"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),se&&(0,n.jsx)(ole,{activeSlideIndex:T,blockNavigationStyle:$,numberOfSlides:G,onGoToCover:Bt,onSlideClick:_e,previewType:s,slideDisabledState:H}),(0,n.jsxs)("div",{className:Xs("next-btns"),children:[(0,n.jsxs)("button",{"aria-disabled":!ps,"aria-hidden":!ps,className:Xs("page-down-btn",{"touch-preview":Q}),onClick:ps?$r:void 0,ref:u,tabIndex:ps?void 0:-1,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Xs("arrow-icon",{"touch-preview":Q}),name:"arrow-down"}),(0,n.jsxs)("span",{className:"visually-hidden-always",children:["Scroll page down",!I&&(0,n.jsx)("span",{children:"(disabled because this is the bottom of the page)"}),re&&(0,n.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,n.jsxs)("button",{"aria-disabled":ve,"aria-hidden":!Se,className:Xs("next-btn",{"touch-preview":Q}),onClick:ve?void 0:vo,ref:m,tabIndex:re?-1:void 0,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Xs("arrow-icon",{"touch-preview":Q}),name:"arrow-down"}),(0,n.jsxs)("span",{className:"visually-hidden-always",children:["Go to next step",ve&&(0,n.jsx)("span",{children:"(disabled until content is completed)"}),re&&(0,n.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,n.jsxs)("button",{"aria-disabled":!ut,"aria-hidden":!ut,className:Xs("restart-btn",{"touch-preview":Q}),onClick:ut?po:void 0,ref:p,tabIndex:re?void 0:-1,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Xs("restart-icon",{"touch-preview":Q}),name:"arrow-rotate-left"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Restart"})]})]})]}),(0,n.jsxs)(Kd,{onShouldRecognizeGesture:xn,onSwipeDown:ht,onSwipeUp:fs,children:[(0,n.jsx)("main",{"aria-describedby":"step-counter",ref:c,tabIndex:"0",children:(0,n.jsx)(Qo,{children:(0,n.jsx)(Kc,{mountOnEnter:!0,nodeRef:g,onExited:Ct,onExiting:Dt,timeout:P,unmountOnExit:!0,children:je=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"visually-hidden-always",id:"step-counter",ref:g,children:`Step ${T+1} of ${G}`}),(0,n.jsx)(Zce,{hasTransitioned:!k,onContinue:Cn,prefersKeyboardNavigation:t,previewType:s,ref:i,slide:J,transitionState:je})]})},T)})}),(0,n.jsx)("div",{className:ade})]})]})})})})})})})},vle=(0,h.forwardRef)(gle),kx=_("blocks-lesson-restart-button"),Cle=({className:e,onClick:t})=>{const s=kx.mix(e);return(0,n.jsx)("button",{className:s,onClick:t,type:"button",children:(0,n.jsx)(ie,{classNameIcon:kx("icon"),name:"arrow-rotate-left"})})},xle=_("lesson-one-page-scroll"),ble=({previewType:e,prefersKeyboardNavigation:t,lessonProgress:s})=>{const o=(0,h.useRef)(),[r,a]=(0,h.useState)(!1),{lessons:i,...c}=ee()||{},{lmsOptions:d={}}=c||{},l=ca(),u=ue(),{match:m}=(0,ge.zy)(),p=Vt(),g=i[0],C=g?.id,v=Lr(),x=g?.items||[],y=L0(c),S=s?.isComplete&&!ke&&!y,L=s?.isComplete&&ke,b=c?.exportSettings?.webExportSettings,T=!wn.isInstantLink&&(d?.disableCoverPage||b?.disableCoverPage),N=(0,h.useCallback)(()=>{r||(T?o.current?.scrollTo({top:0,behavior:Ns()?"instant":"smooth"}):(a(!0),io(()=>{p("/")},"lesson-to-one-page-cover-continuous").finally(()=>{a(!1)})))},[p,T,r]);return(0,n.jsx)("div",{className:xle(),children:(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:o,children:(0,n.jsx)("div",{className:"page","data-page":!0,children:(0,n.jsx)("div",{className:"page__wrapper page__wrapper--white",children:(0,n.jsxs)(Ru,{children:[(0,n.jsx)(ox,{}),(0,n.jsx)("div",{className:"page__content",children:(0,n.jsx)(Er,{children:(0,n.jsxs)("div",{"data-lesson-id":g?.id,children:[(0,n.jsx)(T7,{animateBlockEntrance:c?.animateBlockEntrance,blocks:x,color:c?.color,courseTitle:l,enableVideoPlaybackSpeed:c?.enableVideoPlaybackSpeed,isFirstLesson:!0,isNavTypeStepped:!1,labels:u,lessonId:C,lessonProgress:s,loadMedia:!0,match:m,partnerContent:v,prefersKeyboardNavigation:t,previewType:e,type:c?.type}),S&&(0,n.jsx)(Cle,{onClick:N}),L&&(0,n.jsx)(uf,{lessonId:C})]})})})]})})})})})},Ix=_("microlearning-progress-summary"),yle=_("page-wrap"),Lle=({course:e,courseProgress:t,isStepped:s,lesson:o})=>{const r=(0,h.useRef)(),a=(0,h.useRef)(),[i,c]=(0,h.useState)(!1),d=Ix("content",{stepped:s,mounted:i}).toString();return(0,Xd.A)(()=>{const l=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:l}),c(!0)}),(0,n.jsxs)("div",{className:yle(),id:"page-wrap",ref:r,children:[(0,n.jsx)(hf,{className:Ix("previous").toString(),lessonId:o?.id,ref:a}),(0,n.jsx)(E7,{contentClassName:d,course:e,courseProgress:t})]})},Sle=({isProgressSummary:e,lessonProgress:t})=>{const s=ee(),o=Ao(),{prefersKeyboardNavigation:r}=oc(),{previewType:a}=Rm(),i=s?.theme?.blockNavigationType===hl.STEPPED;return e?(0,n.jsx)(Lle,{course:s,courseProgress:o,isStepped:i}):i?(0,n.jsx)(vle,{lessonProgress:t,prefersKeyboardNavigation:r,previewType:a}):(0,n.jsx)(ble,{lessonProgress:t,prefersKeyboardNavigation:r,previewType:a})};var Tle=f(80588);function Ex(){const e=at();return Tle.useMemo(()=>({advanceQuizLessonToEnd:t=>e(cI(t)),submitQuizAnswer:t=>e(Q0(t)),setQuizLessonTimeRemaining:t=>e(lI(t))}),[e])}const jx=-1,Nle="MULTIPLE_CHOICE";function kle({allowedRetries:e,currentRetries:t}){return e===jx?!1:t>=e}function Ile({lesson:e,lessonProgress:t,getL10nRecursive:s,quizActions:o,reportAnswer:r}){if(!e||!o1(e))return;const a=e.settings??{},i=a.passToContinue??!1,c=Number(a.retryCount??jx),d=Object.values(t?.items??{}).filter(l=>!l.isComplete);if(d.length>0){const l=t?.retryAttempts??0,u=kle({allowedRetries:c,currentRetries:l});d.forEach(m=>{const p=vae({lesson:e,question:m});if(!p)return;const g=p.type||Nle,C=s({duration:{startTime:0,stopTime:0},id:e.id,isCorrect:!1,isUnfinished:!0,item:{id:String(p.id||""),title:String(p.title||""),type:g},itemProgress:m,retryAttempts:l,title:e.title});r(C),o.submitQuizAnswer({finalRetryAttempt:u,isCorrect:!1,itemId:m.id,lessonId:e.id,passToContinue:i})})}o.advanceQuizLessonToEnd(e.id)}var Ele=f(80588);function jle({lesson:e,lessonProgress:t,getL10nRecursive:s}){const o=Ex();return Ele.useCallback(()=>{Ile({lesson:e,lessonProgress:t,getL10nRecursive:s,quizActions:o,reportAnswer:vg})},[e,t,s,o])}var wx=f(80588);function wle({children:e}){const t=Ao(),s=Sl(),o=wt(s),r=Ro(s),a=i3(),{setQuizLessonTimeRemaining:i}=Ex(),c=wx.useMemo(()=>r??{},[r]),d=jle({lesson:o,lessonProgress:c,getL10nRecursive:a}),l=wx.useMemo(()=>s3(o)?o.settings:void 0,[o]),u=!!l?.timer,m=l?.timerDuration;return(0,n.jsx)(xie,{courseProgress:t,currentLessonId:s,handleExpiredQuiz:d,isTimedQuiz:u,setQuizLessonTimeRemaining:i,timerDuration:m,children:e})}var Ale=f(80588);const Rle=960,mf=_("transcript-panel"),Ple=e=>{const{currentLocale:t}=Qe();return(0,h.useMemo)(()=>e?"mondrianTranscript"in e?typeof e.mondrianTranscript=="string"?e.mondrianTranscript:(t?e.mondrianTranscript[t]:void 0)??e.mondrianTranscript.default:"tmp"in e&&e.tmp?.audio?.transcript||e.audio?.transcript:null,[e,t])};function Mle({enhancedLabels:e,lessonId:t,questionBankActiveIndex:s}){const o=at(),{audioPlayerIdOpen:r,focusing:a,refocusTarget:i,transcriptMedia:c}=gc(),d=!!r,l=(0,h.useId)(),u=ae(B=>t?Mi(t,B):null),p=t?.startsWith("question-bank-")?s:u?.type==="quiz"?u.activeIndex:void 0,g=xt(Rle),[C,v]=(0,h.useState)(0),[x,y]=(0,h.useState)(!1),[S,L]=(0,h.useState)(!1),b=(0,h.useRef)(!1),T=(0,h.useRef)(null),N=(0,h.useRef)(null),k=(0,h.useRef)(c),E=(0,h.useRef)(t),I=(0,h.useRef)(p),A=ue()||e,R=(0,h.useRef)(null),j=(0,h.useRef)({panelHeight:0,startY:null,startHeight:null,startTime:null,velocity:null}),O=(0,h.useCallback)(B=>{const Y=j.current.panelHeight,J=performance.now();L(!0);const Q=se=>{const re=se-J,he=Math.min(re/300,1),ve=1-Math.pow(1-he,3),Se=Y+(B-Y)*ve;v(Se),j.current.panelHeight=Se,he<1?requestAnimationFrame(Q):(L(!1),y(!1),j.current={startY:null,startHeight:null,startTime:null,panelHeight:null,velocity:null})};requestAnimationFrame(Q)},[y,L,v]),w=(0,h.useCallback)(B=>{const{startTime:G,startY:Y,startHeight:J}=j.current;if(!g||Y===null)return;const Q=Y-(B?.clientY??B?.touches?.[0]?.clientY??0),se=J+Q;if(v(se),j.current.panelHeight=se,G!==null){const re=performance.now()-G,he=Q/re;j.current.velocity=he}},[g]),P=(0,h.useCallback)(B=>{const{velocity:G}=j.current;if(!G)return;Object.assign(j.current,{startY:null,startHeight:null,startTime:null}),y(!1);const Y=window.innerHeight*.66;let J;Math.abs(G)>.5?J=G>0?window.innerHeight:150:J=C>=Y?window.innerHeight:150,O(J),B instanceof MouseEvent&&(window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",P))},[O,C,w]),M=(0,h.useCallback)(B=>{!g||N.current.contains(B.target)||T.current.contains(B.target)||(Object.assign(j.current,{startY:B?.clientY??B?.touches?.[0]?.clientY??null,startHeight:R.current?.clientHeight??0,startTime:performance.now()}),y(!0),B.nativeEvent instanceof MouseEvent&&(window.addEventListener("mousemove",w),window.addEventListener("mouseup",P)))},[w,P,g,y]);(0,h.useEffect)(()=>{let B;const G=()=>{R?.current?.style&&(R.current.style.transition="none",R.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Q=>{Q.style.transition="none"}))},Y=()=>{clearTimeout(B),B=setTimeout(()=>{R?.current?.style&&(R.current.style.transition="",R.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Q=>{Q.style.transition=""}))},200)};return window.addEventListener("resize",G),window.addEventListener("resize",Y),()=>{window.removeEventListener("resize",G),window.removeEventListener("resize",Y),clearTimeout(B)}},[]),(0,h.useEffect)(()=>{!d&&b.current&&v(0),a&&d&&R.current&&(R.current.focus(),o(Fm({audioPlayerId:r,focusing:!1}))),b.current=d},[r,o,a,d]),(0,h.useEffect)(()=>{d&&c!==k.current&&(k.current=c)},[d,c]),(0,h.useEffect)(()=>{d&&E.current!==t&&o(vc()),E.current=t},[t,d,o]),(0,h.useEffect)(()=>{d&&I.current!==p&&I.current!==void 0&&o(vc()),I.current=p},[p,d,o]);const z={role:"button",tabIndex:0,onMouseDown:M,onTouchStart:M,onTouchEnd:P,onTouchMove:w},[$,F]=Ale.useState(!1),V=Ie($?k.current:c),K=Ple(V);let Z;d&&(Z=Vm(r));const X=(0,h.useCallback)(()=>{const B=i??document.getElementById(c4(r));return B?(B.focus(),!0):!1},[r,i]),te=(0,h.useCallback)(B=>{B.stopPropagation(),B.preventDefault(),o(vc()),X()},[o,X]),W=(0,h.useCallback)(()=>{X()||N.current.focus()},[X]),D=(0,h.useCallback)(()=>{N.current.focus()},[]),H=(0,h.useCallback)(B=>{r&&B.key==="Escape"&&te(B)},[r,te]);return(0,n.jsxs)(n.Fragment,{children:[d?(0,n.jsx)("div",{onFocus:W,tabIndex:0}):null,(0,n.jsx)(Wn,{classNames:"transcript-panel",in:d,nodeRef:R,onEnter:()=>F(!1),onEntered:()=>F(!1),onEntering:()=>F(!1),onExit:()=>F(!0),onExited:()=>F(!1),onExiting:()=>F(!0),timeout:300,unmountOnExit:!0,children:(0,n.jsxs)("section",{"aria-hidden":!d,"aria-labelledby":l,className:U()(mf({isOpen:d,isAnimatingMobileSwipe:S,isDragging:x})),id:Z,onKeyDown:H,ref:R,style:g&&d?{height:`${C/10}rem`,minHeight:C>0?"33vh":void 0}:{},tabIndex:-1,children:[(0,n.jsxs)("header",{...g?z:{},children:[(0,n.jsx)("h3",{id:l,ref:T,children:A?.audioTranscript}),(0,n.jsx)(Be.ArcButton,{"aria-label":A?.audioHideTranscript,className:mf("close-button"),hierarchy:"tertiary",icon:(0,n.jsx)(ie,{name:"close"}),layout:"icon",onClick:te,ref:N})]}),(0,n.jsx)("section",{className:mf("transcript-text",{"not-available":!K}),children:K||A?.audioNoTranscriptAvailable})]})}),d?(0,n.jsx)("div",{onFocus:D,tabIndex:0}):null]})}var _c=f(80588);const Ax={FORWARD:"page-transition",BACK:"page-transition-back"},Uu=({id:e,lessons:t})=>e==="progress-summary"?1/0:t.findIndex(s=>s.id===e),Ole=e=>{window.parent.postMessage({type:"preview:lessonChange",data:e},"*")};function Ble({currentLessonId:e,lessons:t,isProgressSummary:s}){const o=Vt(),r=_c.useRef(!1),a=_c.useRef(e),i=_c.useCallback(()=>r.current?Ax.FORWARD:Ax.BACK,[]),c=_c.useCallback(d=>{const l=Uu({id:d,lessons:t});if(s)r.current=!1;else if(d==="progress-summary")r.current=!0;else{const u=Uu({id:e,lessons:t});r.current=u<l}o(`/lessons/${encodeURIComponent(d)}`)},[o,t,s,e]);return _c.useEffect(()=>{const d=Uu({id:e,lessons:t}),l=Uu({id:a.current,lessons:t});d!==l&&t.length>0&&(r.current=l<d),a.current=e,Ole(e)},[e,t]),{getNavigateDirection:i,handleNavigate:c}}const Rx=()=>{const e=ee(),t=Ao(),s=e?.lessons??[],o=(0,ge.g)(),r=(0,ge.zy)(),[a]=(0,ge.ok)(),i=a.get("embed")==="lesson-only",c=ke&&o.id==="progress-summary",d=(0,h.useRef)(null),l=xt(480),{getNavigateDirection:u,handleNavigate:m}=Ble({currentLessonId:o.id,lessons:s,isProgressSummary:c}),p=yo(e),g=(0,h.useCallback)(()=>{p||(e.theme?.hideLessonHeaders?document.querySelector("main"):document.querySelector("h1"))?.focus({preventScroll:!0})},[e,p]),C=U()("lesson",{"lesson--preview":i}),v=at(),x=(0,h.useCallback)(({item:N,refs:k})=>{if(!N)return;const E="media"in N?N.media:null;v(i4({audioPlayerId:pn({refs:k}),transcriptMedia:E}))},[v]),y=(0,h.useCallback)(()=>{v(vc())},[v]),S=(0,h.useCallback)(N=>{v(Fm(N))},[v]),L=Ro(o.id),b=(0,h.useMemo)(()=>L??{},[L]),T=(0,h.useMemo)(()=>({handleNavigate:m,handleStorylineFullscreen:tn,isMobileHeader:l,isProgressSummary:c,lessonProgress:b,navigateDirection:u,onNavigateTransitionEnd:tn,onPageReady:g}),[u,g,m,l,c,b]);return(0,n.jsxs)(wle,{children:[(0,n.jsxs)("div",{className:"page-lesson-wrap",children:[!p&&(0,n.jsx)(h_,{}),(0,n.jsx)("div",{className:"page-lesson",children:(0,n.jsxs)(pK,{children:[(0,n.jsx)(hK,{closeTranscript:y,mode:"readonly",onTranscriptUpdate:S,openTranscript:x,children:(0,n.jsx)("div",{className:C,"data-lesson":!0,ref:d,children:(0,n.jsx)("div",{className:"lesson__content",children:(0,n.jsx)("div",{className:"page-view page-view--visible",children:(0,n.jsx)(FQ,{isLessonOnlyEmbed:i,children:p?(0,n.jsx)(Sle,{isProgressSummary:c,lessonProgress:b}):(0,n.jsx)(Mce,{isLessonOnlyEmbed:i,children:(0,n.jsx)(hce,{...T},r.pathname)})})})})})}),(0,n.jsx)(Mle,{lessonId:t?.currentLesson?.toString()})]})})]}),(0,n.jsx)(Hm,{onClose:g})]})};function Dle(){const e=ee(),t=UC(e),s=GC(e);return(0,n.jsxs)(ge.BV,{children:[(0,n.jsx)(ge.qh,{element:(0,n.jsx)(Rx,{}),path:"/lessons/:id"}),t?(0,n.jsx)(ge.qh,{element:(0,n.jsx)(ge.C5,{replace:!0,to:Os(s)}),index:!0}):(0,n.jsx)(ge.qh,{element:(0,n.jsx)(n4,{}),index:!0}),t?(0,n.jsx)(ge.qh,{element:(0,n.jsx)(ge.C5,{replace:!0,to:Os(s)}),path:"/:mode"}):(0,n.jsx)(ge.qh,{element:(0,n.jsx)(n4,{}),path:"/:mode"})]})}const pf=_("one-page-cover-info");function Hle({htmlIdTitle:e}){const t=ka("title");return(0,n.jsxs)("div",{className:pf(),"data-change-path":t,children:[(0,n.jsx)(nx,{className:pf("title").toString(),htmlId:e}),(0,n.jsx)(sx,{className:pf("authors").toString()})]})}const Fle=Re("OnePageCoverInfo",Hle),Gu=_("one-page-cover"),Vle=_("cover");function zle({previewType:e}={}){const t=(0,h.useRef)(null),s=(0,h.useRef)(null),o=(0,h.useRef)(!1),r=Vt(),a=ae(xs),i=(0,h.useRef)(a);i.current=a;const c=_j(a),d=(0,h.useCallback)(()=>{const I=c?.id;return I?Os(I):null},[c?.id]),l=(0,h.useCallback)(()=>{const I=d();if(I!=null){const R=a?.theme?.blockNavigationType===hl.STEPPED?"one-page-cover-to-lesson-stepped":"one-page-cover-to-lesson-continuous";io(()=>{r(I)},R)}},[a?.theme?.blockNavigationType,d,r]),u=(0,h.useRef)(l);u.current=l;const m=(0,h.useRef)(e);m.current=e;const p=(0,h.useCallback)(()=>{s.current?.focus?.()},[]);(0,h.useEffect)(()=>{D8(),s.current?.focus?.()},[]),(0,h.useEffect)(()=>{const I=A=>{(A.key==="ArrowDown"||A.key==="ArrowRight")&&!o.current&&(o.current=!0,document.removeEventListener("keyup",I),u.current())};return document.addEventListener("keyup",I),()=>document.removeEventListener("keyup",I)},[]),(0,h.useEffect)(()=>{const I=A=>{xc(m.current)||o.current||A.deltaY>xx&&(o.current=!0,document.removeEventListener("wheel",I,{passive:!0}),u.current())};return document.addEventListener("wheel",I,{passive:!0}),()=>document.removeEventListener("wheel",I,{passive:!0})},[]),(0,h.useEffect)(()=>{if(!rl(i.current)||typeof BroadcastChannel>"u")return;let I=null;try{I=new BroadcastChannel(bx),I.postMessage({type:Lx,slideIndex:0}),I.onmessage=A=>{A.data.type===yx&&A.data.slideIndex===1&&!o.current&&(o.current=!0,u.current())}}catch{}return()=>I?.close()},[]);const g=(0,h.useCallback)(I=>{!t.current?.contains?.(I.target)&&!o.current&&(o.current=!0,l())},[l]),C=(0,h.useCallback)(I=>{I.preventDefault(),o.current||(o.current=!0,l())},[l]),v=a?.coverPageType===ne.WHITE,x=a?.coverPageType===ne.VIDEO,y=a?.coverPageType===ne.IMAGE,S=a?.coverPageType===ne.ACCENT,L=a?.theme?.blockNavigationType===hl.STEPPED,b=a?.theme?.coverImageColor??nt.DARK,T="title",k=`overlay-${b?.toLowerCase()}`,E=Gu("wrapper",{[k]:y,accent:S,image:y,white:v||x,video:x}).mix(Vle("header-content"));return(0,n.jsxs)(Kd,{onSwipeUp:l,children:[(0,n.jsxs)("main",{className:E,ref:s,tabIndex:"-1",children:[(0,n.jsx)(Fle,{htmlIdTitle:T}),L&&(0,n.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,n.jsx)("div",{className:Gu("start-wrapper"),onClick:g,children:(0,n.jsx)(cs,{"aria-label":"Start",className:Gu("start-link"),onClick:C,ref:t,to:d(),children:(0,n.jsx)(ie,{className:Gu("start-icon"),name:"arrow-down"})})}),y&&(0,n.jsx)(dm,{})]}),(0,n.jsx)(Hm,{onClose:p})]})}const Px=zle;function $le(){const e=ee(),t=oW(e),s=GC(e),o=rl(e),r=Sx(),a=o&&r>0,i=()=>{const c=window.location.hash.split("?")[1],d=new URLSearchParams(c||"");return d.set("slide",String(r)),`${Os(s)}?${d}`};return(0,n.jsxs)(ge.BV,{children:[(0,n.jsx)(ge.qh,{element:(0,n.jsx)(Rx,{}),path:"/lessons/:id"}),t||a?(0,n.jsx)(ge.qh,{element:(0,n.jsx)(ge.C5,{replace:!0,to:a?i():Os(s)}),index:!0}):(0,n.jsx)(ge.qh,{element:(0,n.jsx)(Px,{}),index:!0}),t||a?(0,n.jsx)(ge.qh,{element:(0,n.jsx)(ge.C5,{replace:!0,to:a?i():Os(s)}),path:"/:mode"}):(0,n.jsx)(ge.qh,{element:(0,n.jsx)(Px,{}),path:"/:mode"})]})}function _le(){return d3()?(0,n.jsx)($le,{}):(0,n.jsx)(Dle,{})}const ff=_("not-found"),Ule=()=>(0,n.jsx)(Er,{title:mc(),children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:ff(),children:(0,n.jsxs)("div",{className:ff("copy"),children:[(0,n.jsx)("h1",{className:ff("copy",{heading:!0}),tabIndex:-1,children:"Hmm..."}),(0,n.jsx)("div",{children:"We can't seem to find the page you're looking for."})]})})})});var mo=f(80588);const zr=_("share-password-dialog");function Gle({failAttempt:e,onSubmit:t}){const s=ae(g1),o=mo.useRef(null),r=mo.useRef(null),[a,i]=mo.useState(!1),c=mo.useRef(!1),{announceAssertive:d}=In();mo.useEffect(()=>{r.current?.showModal()},[]),mo.useEffect(()=>{e&&!c.current&&(i(!0),d("Incorrect password. Please try again.")),c.current=e},[d,e]),mo.useEffect(()=>{const p=r.current;if(!p)return;const g=()=>i(!1);return p.addEventListener("animationend",g),()=>{p.removeEventListener("animationend",g)}},[]);const l=mo.useCallback(p=>{p.preventDefault(),o.current&&t(o.current)},[t]),u=mo.useCallback(p=>{p.preventDefault()},[]),m=s?"You need a password to view this microlearning. If you don\u2019t know it, ask the person who shared this with you.":"You need a password to view this course. If you don\u2019t know it, ask the person who shared this with you.";return(0,n.jsxs)("dialog",{"aria-describedby":"share-password-instructions share-password-constraint","aria-labelledby":"share-password-title",className:`${zr({shaking:a})} brand--border`,onCancel:u,ref:r,children:[(0,n.jsx)("h1",{className:zr("heading"),id:"share-password-title",children:"Enter Password"}),(0,n.jsx)("p",{className:zr("instructions"),id:"share-password-instructions",children:m}),(0,n.jsx)("p",{className:"visually-hidden-always",id:"share-password-constraint",children:"This dialog requires a password to proceed and cannot be dismissed."}),(0,n.jsxs)("form",{onSubmit:l,children:[(0,n.jsx)("label",{className:zr("label"),htmlFor:"share-password",children:"password"}),(0,n.jsx)("input",{className:zr("input"),id:"share-password",ref:o,type:"password"}),(0,n.jsx)("div",{className:zr("toolbar"),children:(0,n.jsx)("button",{className:`${zr("button")} brand--background`,type:"submit",children:"View"})})]})]})}const Wle=Gle;function Kle(){const e=bl();(0,h.useEffect)(()=>{window.targetMode=Az({locale:$C(e)})},[e]),(0,h.useEffect)(()=>{window.parent.postMessage({type:"ready"},"*"),window.parent.postMessage({type:ds.STATUS,data:!!window.targetMode},"*"),bq(s=>Cs(TE(s)))},[]);const t=(0,h.useRef)(!1);(0,h.useEffect)(()=>{t.current||!e||!DT()||(t.current=!0,window.parent.postMessage({type:"preview:snapshotLoaded",data:{defaultLocale:e.defaultLocale,locales:e.locales?.map(({locale:s})=>s)}}))},[e]),(0,h.useEffect)(()=>{const s=()=>Cs(XN()),o=()=>Cs(JN()),r=()=>window.parent.postMessage("coursePreviewIframeClicked","*");return Iv("favoriteAdded",s),Iv("favoriteRemoved",o),document.addEventListener("click",r),()=>{Ev("favoriteAdded",s),Ev("favoriteRemoved",o),document.removeEventListener("click",r)}},[])}const Wu=document.createElement("style");Wu.innerHTML=`
  @layer rise-reset, arc-theme, arc-utils;

  :root {
    --arc-font-size-base: 1;

    /*  Override arc body font because of Inter naming conflict in Rise
        https://github.com/articulate/rise-authoring/issues/7263
    */
    --arc-internal-font-body: 'DS Inter', system-ui, sans-serif;
  }
`;function Qle(){(0,h.useEffect)(()=>(Wu.parentElement!==document.head&&document.head.prepend(Wu),()=>{Wu.remove()}),[])}function Zle(e){return e.status}function Mx(){return ae(Zle)}function Yle({enabled:e=!0,onAuthorized:t,onError:s,onUnauthorized:o,password:r}){const a=at();(0,h.useEffect)(()=>{e&&(a(Qk({onAuthorized:t,onError:s,onUnauthorized:o,password:r})),a(SE()))},[a,e,t,s,o,r])}function Xle(){const e=at(),{courseLoaded:t,coverLoaded:s}=Mx(),o=ae(i=>i.course?.coverImage?.media),r=it(o),a=(0,h.useCallback)(()=>{e(ok(!0))},[e]);(0,h.useEffect)(()=>{if(t&&!s){const i=r?.image,{key:c,src:d}=i||{};if(c||d){const l=c?vt(i):d,u=setTimeout(a,5e3),m=new Image;return m.src=l,m.onload=()=>{clearTimeout(u),a()},()=>{clearTimeout(u),m.onload=null}}else a()}},[t,s,r,a])}function Jle(e={}){Yle(e),Xle();const t=at(),s=zC(),o=ae(p=>p.courseLabels.labels),{courseLoaded:r,coverLoaded:a,fatalError:i,fontsLoaded:c,notFound:d,partnerContentLoaded:l}=Mx(),u=(0,Ae.A)(r),m=r&&c&&a&&l;return(0,h.useEffect)(()=>{!u&&r&&!c&&(s??[]).length>0&&t(_I(s))},[t,u,r,c,s]),(0,h.useEffect)(()=>{if(!m||window.parent===window)return;window.parent.postMessage({type:"course:ready"},window.location.origin);const p=g=>{g.key==="Escape"&&window.parent.postMessage({type:"preview:escape"},window.location.origin)};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[m]),{isLoaded:!!m,notFound:!!d,fatalError:!!i,curtainLabels:o}}function qle({course:e}){const[t,s]=(0,h.useState)(!0),[o,r]=(0,h.useState)(!1),a=e&&"hasPassword"in e?!!e.hasPassword:!1,i=!!(t&&pg()&&e&&!GV(e)&&(a||fg())),c=(0,h.useCallback)(d=>(r(!1),HT(d.value).then(({isValid:l})=>{l?s(!1):(d.value="",r(!0),s(!0))}).catch(l=>console.error("Verify password error",l))),[]);return{showPasswordDialog:i,failAttempt:o,onSharePasswordSubmit:c}}function ede(){return $G(),Qle(),(0,n.jsx)(hW,{children:(0,n.jsx)(tde,{})})}function tde(){return(0,n.jsx)(Sz,{children:(0,n.jsx)(sde,{})})}function sde(){const{enabled:e,isActive:t,onAuthorized:s,onError:o,onUnauthorized:r,password:a}=Lz(),{isLoaded:i,notFound:c,fatalError:d,curtainLabels:l}=Jle({enabled:e,onAuthorized:t?s:void 0,onError:t?o:void 0,onUnauthorized:t?r:void 0,password:t?a:void 0}),u=ee(),m=d3(),p=zG();Kle();const{showPasswordDialog:g,failAttempt:C,onSharePasswordSubmit:v}=qle({course:u}),x=!t&&g;if(c)return(0,n.jsx)(Ule,{});if(!i)return(0,n.jsx)(o5,{labels:l,status:d?"fatalError":"loading"});if(x)return(0,n.jsx)(Wle,{failAttempt:C,onSubmit:v});if(!u)return null;const{themeId:y}=u,S=U()("theme",y,{"one-page":m});return(0,n.jsx)(nA,{appType:"learn",children:(0,n.jsx)(sW,{children:(0,n.jsx)(XG,{children:(0,n.jsx)(yz,{children:(0,n.jsx)(PG,{themeId:y,children:(0,n.jsx)(V1,{children:(0,n.jsx)(VG,{children:(0,n.jsxs)("div",{className:S,id:"innerApp",ref:Tz,children:[(0,n.jsx)(QG,{...p}),(0,n.jsx)(YV,{children:(0,n.jsxs)(Er,{title:void 0,children:[(0,n.jsx)(_le,{}),(0,n.jsx)(sA,{})]})})]})})})})})})})})}function nde({children:e}){return(0,n.jsx)(xZ,{ImageEagerOrLazy:Jm,children:e})}const ode={};function rde({children:e}){const s=ee()?.features??ode;return(0,n.jsx)(tV,{value:s,children:e})}const Ox=document.getElementById("app");if(!Ox)throw new Error("Root element #app not found");(0,Dx.createRoot)(Ox).render((0,n.jsx)(h.Suspense,{fallback:null,children:(0,n.jsx)(DE,{store:Xv,children:(0,n.jsx)(nde,{children:(0,n.jsx)(VE,{children:(0,n.jsx)(rde,{children:(0,n.jsx)(ge.I9,{useTransitions:!1,children:(0,n.jsx)(ge.BV,{children:(0,n.jsx)(ge.qh,{element:(0,n.jsx)(ede,{}),path:"/*"})})})})})})})}))},31926(Gc,li,f){var Wo={"./en-au":29579,"./en-au.js":29579,"./en-ca":26153,"./en-ca.js":26153,"./en-gb":89988,"./en-gb.js":89988,"./en-ie":69219,"./en-ie.js":69219,"./en-il":64324,"./en-il.js":64324,"./en-in":79246,"./en-in.js":79246,"./en-nz":28989,"./en-nz.js":28989,"./en-sg":40499,"./en-sg.js":40499};function Co(bn){var yn=_r(bn);return f(yn)}function _r(bn){if(!f.o(Wo,bn)){var yn=new Error("Cannot find module '"+bn+"'");throw yn.code="MODULE_NOT_FOUND",yn}return Wo[bn]}Co.keys=function(){return Object.keys(Wo)},Co.resolve=_r,Gc.exports=Co,Co.id=31926},54357(){},38954(){}}]);
