PageSourceSearch

https://app.memrise.com/_next/static/chunks/pages/aprender/pronunciation-check-38de4a4a97695d84.js

js memrise.com collected 2026-09-24 08:27:09 UTC 37,540 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2402],{828:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/aprender/pronunciation-check",function(){return n(40773)}])},23292:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(14232),i=n(75784),o=n(81840),a=n(42969),s=n(98068),c=n(5646),l=n(37876);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var h={initial:{translateY:0},exit:{transition:{duration:.5},translateY:-30,opacity:0},animate:{scale:[.8,1,.8,1],opacity:[.8,1,.8,1],translateY:0}},p=(0,c.Ay)(function(e){return(0,l.jsx)(s.PY1.svg,d(d(d({"data-testid":"fullHeart",viewBox:"0 0 37 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h),e),{},{children:(0,l.jsx)("path",{d:"M36.9647 10.1928C36.9307 9.88191 36.9647 9.57097 36.8967 9.29458C36.3866 6.73795 35.2643 4.52682 33.2919 2.79937C31.9996 1.65926 30.6053 0.726437 28.905 0.311849C26.8985 -0.206385 24.9601 -0.102738 23.1237 1.00283C21.0493 2.24659 19.621 4.14678 18.6688 6.42701C18.6007 6.59976 18.5667 6.7725 18.5667 6.9107C18.0566 5.52874 17.3425 4.21588 16.3562 3.07576C14.7919 1.24467 12.9215 0.0354578 10.0649 0.0354578C9.62279 0.000908846 8.84062 0.173654 8.05846 0.380947C5.54191 1.10648 3.6375 2.73028 2.10717 4.76866C0.168749 7.39438 -0.341362 10.4347 0.168749 13.5786C0.508822 15.8934 1.63107 18.0355 3.22941 19.7629C4.75974 21.4213 6.35809 23.0105 7.88842 24.7034C9.01066 25.9472 10.2009 27.1564 11.2892 28.4001C12.0373 29.2639 12.8535 30.0585 13.6017 30.9222C14.5879 32.0278 16.6963 34.4117 17.7846 35.69C18.1586 36.1046 18.8048 36.1391 19.1789 35.7245C20.4031 34.3771 22.8857 31.6477 23.9739 30.4385C26.0824 28.1583 28.2248 25.8435 30.3333 23.5633C31.5575 22.2504 32.7818 20.9721 33.9721 19.6938C34.2441 19.3829 34.5162 19.0719 34.7542 18.7264C35.9785 16.9299 36.8287 15.0297 36.9647 12.8186C36.9987 12.6113 36.9987 10.331 36.9647 10.1928Z"})}))}).withConfig({componentId:"sc-xxjfnv-0"})(function(e){var t=e.theme;return(0,c.AH)(["position:absolute;z-index:",";& *{fill:",";}"],t.zi.z2,t.co.error60)}),f=(0,c.Ay)(function(e){return(0,l.jsx)("svg",d(d({"data-testid":"emptyHeart",viewBox:"0 0 37 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:(0,l.jsx)("path",{d:"M36.9647 10.1928C36.9307 9.88191 36.9647 9.57097 36.8967 9.29458C36.3866 6.73795 35.2643 4.52682 33.2919 2.79937C31.9996 1.65926 30.6053 0.726437 28.905 0.311849C26.8985 -0.206385 24.9601 -0.102738 23.1237 1.00283C21.0493 2.24659 19.621 4.14678 18.6688 6.42701C18.6007 6.59976 18.5667 6.7725 18.5667 6.9107C18.0566 5.52874 17.3425 4.21588 16.3562 3.07576C14.7919 1.24467 12.9215 0.0354578 10.0649 0.0354578C9.62279 0.000908846 8.84062 0.173654 8.05846 0.380947C5.54191 1.10648 3.6375 2.73028 2.10717 4.76866C0.168749 7.39438 -0.341362 10.4347 0.168749 13.5786C0.508822 15.8934 1.63107 18.0355 3.22941 19.7629C4.75974 21.4213 6.35809 23.0105 7.88842 24.7034C9.01066 25.9472 10.2009 27.1564 11.2892 28.4001C12.0373 29.2639 12.8535 30.0585 13.6017 30.9222C14.5879 32.0278 16.6963 34.4117 17.7846 35.69C18.1586 36.1046 18.8048 36.1391 19.1789 35.7245C20.4031 34.3771 22.8857 31.6477 23.9739 30.4385C26.0824 28.1583 28.2248 25.8435 30.3333 23.5633C31.5575 22.2504 32.7818 20.9721 33.9721 19.6938C34.2441 19.3829 34.5162 19.0719 34.7542 18.7264C35.9785 16.9299 36.8287 15.0297 36.9647 12.8186C36.9987 12.6113 36.9987 10.331 36.9647 10.1928Z"})}))}).withConfig({componentId:"sc-xxjfnv-1"})(function(e){var t=e.theme;return(0,c.AH)(["position:absolute;& *{fill:",";}"],t.co.neutral90)}),g=c.Ay.div.withConfig({componentId:"sc-xxjfnv-2"})(function(e){var t=e.theme;return(0,c.AH)(["position:relative;width:",";margin-bottom:",";"],t.sz.s8,t.sz.s8)}),m=function(e){var t=e.lost;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.N,{children:!t&&(0,l.jsx)(p,{})}),t&&(0,l.jsx)(f,{})]})};let y=(0,r.memo)(function(e){var t=e.numLives,n=e.className;return(0,l.jsxs)(o.A,{$direction:"horizontal",$spacing:"s1","data-testid":"heartLivesLeftIndicator",className:n,children:[(0,l.jsx)(g,{children:(0,l.jsx)(m,{lost:t<1})}),(0,l.jsx)(g,{children:(0,l.jsx)(m,{lost:t<2})}),(0,l.jsx)(g,{children:(0,l.jsx)(m,{lost:t<3})})]})})},25022:(e,t,n)=>{"use strict";n.d(t,{K:()=>l});var r=n(61542),i=n(2553),o=n(5646),a=o.Ay.div.withConfig({componentId:"sc-zjxmey-0"})(function(e){var t=e.theme,n=e.$disabled;return(0,o.AH)(["padding:0;display:flex;align-items:center;gap:",";",";cursor:pointer;color:",";"],t.sz.s2,t.typography.paragraph.m,n?t.co.secondary50:t.co.secondary0)}),s=o.Ay.button.withConfig({componentId:"sc-zjxmey-1"})(function(e){var t=e.theme,n=e.$disabled,r=e.$inverseColors,i=e.$pressed,a=e.$textInside;return(0,o.AH)(["cursor:pointer;border-radius:50%;border:none;width:",";height:",";padding:0;background-color:",";color:",";text-align:-webkit-center;&:hover{background-color:",";}"," ",";",";& svg{font-size:",";}
1"],t.sz.s8,t.sz.s8,t.co.neutral98,n?t.co.secondary50:t.co.secondary0,t.co.neutral95,r&&(0,o.AH)(["background-color:",";&:hover{background-color:",";}"],n?t.co.neutral98:t.co.primary20,n?t.co.neutral95:t.co.primary40),i&&(0,o.AH)(["background-color:",";border:"," solid ",";&:hover{background-color:",";}"],t.co.primary90,t.bo.thinWidth,t.co.primary20,t.co.primary90),a&&(0,o.AH)(["display:flex;align-items:center;width:auto;padding:",";gap:",";border-radius:",";border:"," solid ",";",";"],t.sz.s2,t.sz.s2,t.bo.medium,t.bo.thinWidth,i?t.co.primary20:t.co.neutral95,t.typography.paragraph.base),t.sz.s5)}),c=n(37876),l=function(e){var t=e.disabled,n=void 0!==t&&t,o=e.handleClick,l=e.ariaLabel,u=e.icon,d=e.text,h=e.className,p=e.inverseColors,f=e.pressed,g=void 0!==f&&f,m=e.children,y=function(){n||o()};return(0,c.jsxs)(a,{$disabled:n,onClick:y,children:[(0,c.jsxs)(s,{onClick:function(){return!d&&y},onKeyDown:function(e){n||("Enter"===e.key||" "===e.key)&&(e.preventDefault(),o())},"aria-label":l,"aria-disabled":n,"aria-pressed":g,disabled:n,className:h,$disabled:n,$inverseColors:void 0!==p&&p,$pressed:g,$textInside:!!m,children:[(0,r.Ay)(u)?(0,c.jsx)(i.A,{name:u}):u,m]}),d]})}},26080:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var r={WORD:1,CHAR:2,PHRASE:3,ALPHABET:4}},40773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>eB});var r,i,o=n(5720),a=n(77328),s=n.n(a),c=n(64191),l=n(63857),u=n(60180),d=n.n(u),h=n(14232),p=n(89099),f=n(15785),g=n(49426),m=n(70874),y=n(35311),x=n(53403),v=n(51319),b=n(47019),w=n(68567),A=n(48278),_=n(14135),k=n(70610),j=n(61542),C=n(5646),I=C.Ay.div.withConfig({componentId:"sc-qmnodu-0"})(function(e){var t=e.theme;return(0,C.AH)(["display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:",";padding:"," ",";min-height:60vh;"],t.sz.s4,t.sz.s6,t.sz.s4)}),R=C.Ay.h1.withConfig({componentId:"sc-qmnodu-1"})(function(e){var t=e.theme;return(0,C.AH)(["",";color:",";margin:0;@media (max-width:","){",";}"],t.typography.heading.desktop.m,t.co.neutral10,t.sz.lg,t.typography.heading.mobile.m)}),M=C.Ay.p.withConfig({componentId:"sc-qmnodu-2"})(function(e){var t=e.theme;return(0,C.AH)(["",";color:",";margin:0;max-width:28rem;"],t.typography.paragraph.m,t.co.neutral40)}),z=C.Ay.div.withConfig({componentId:"sc-qmnodu-3"})(function(e){var t=e.theme;return(0,C.AH)(["display:flex;flex-direction:column;gap:",";width:100%;max-width:20rem;margin-top:",";"],t.sz.s3,t.sz.s2)}),O=n(37876),H=(0,o.YK)({title:{id:"pronunciation_check_session_failure_title",defaultMessage:"Out of hearts"},description:{id:"pronunciation_check_session_failure_description",defaultMessage:"You ran out of hearts. Try again when you are ready."},retry:{id:"pronunciation_check_session_failure_retry",defaultMessage:"Retry"},exit:{id:"pronunciation_check_session_failure_exit",defaultMessage:"Exit"}}),P=function(e){var t=e.onRetry,n=e.onExit,r=(0,o.tz)();return(0,O.jsxs)(I,{"data-testid":"pronunciation-check-failure",children:[(0,O.jsx)(R,{children:r.formatMessage(H.title)}),(0,O.jsx)(M,{children:r.formatMessage(H.description)}),(0,O.jsxs)(z,{children:[(0,O.jsx)(j.$n,{wide:!0,buttonType:"primary",buttonSize:"large",onClick:t,"data-testid":"pronunciation-check-failure-retry",children:r.formatMessage(H.retry)}),(0,O.jsx)(j.$n,{wide:!0,buttonType:"secondary",buttonSize:"large",onClick:n,"data-testid":"pronunciation-check-failure-exit",children:r.formatMessage(H.exit)})]})]})},E=n(26900),T=n(24470),S=n(62810),L=n(99728),$=n(85127),D=n(48158),Y=n(2553),N=n(75144),q=n(73933),F=(0,C.i7)(["0%,100%{transform:translateX(0);}20%{transform:translateX(-6px);}40%{transform:translateX(6px);}60%{transform:translateX(-4px);}80%{transform:translateX(4px);}"]),K=C.Ay.div.withConfig({componentId:"sc-1owq1sx-0"})(function(e){var t=e.theme,n=e.$variant,r=void 0===n?"default":n;return(0,C.AH)(["display:flex;flex-direction:column;align-items:center;width:100%;gap:",";padding:"," ",";border-radius:",";background-color:",";",""],t.sz.s4,t.sz.s6,t.sz.s4,t.bo.large,"almost"===r?t.co.warning95:"success"===r?t.co.success98:t.co.neutral99,"almost"===r&&(0,C.AH)(["animation:"," 400ms ease-in-out;"],F))}),B=C.Ay.p.withConfig({componentId:"sc-1owq1sx-1"})(function(e){var t=e.theme;return(0,C.AH)(["margin:0;text-align:center;color:",";",";"],t.co.secondary20,t.typography.heading.desktop.xxs)}),X=C.Ay.p.withConfig({componentId:"sc-1owq1sx-2"})(function(e){var t=e.theme;return(0,C.AH)(["margin:0;text-align:center;color:",";",";@media (max-width:","){",";}"],t.co.neutral10,t.typography.heading.desktop.m,t.sz.lg,t.typography.heading.mobile.m)}),V=C.Ay.p.withConfig({componentId:"sc-1owq1sx-3"})(function(e){var t=e.theme;return(0,C.AH)(["margin:0;text-align:center;color:",";",";@media (max-width:","){",";}"],t.co.secondary0,t.typography.heading.desktop.m,t.sz.lg,t.typography.heading.mobile.m)}),W=C.Ay.p.withConfig({componentId:"sc-1owq1sx-4"})(function(e){var t=e.theme;return(0,C.AH)(["margin:0;text-align:center;color:",";",";"],t.co.secondary50,t.typography.heading.desktop.xxs)}),U=C.Ay.p.withConfig({componentId:"sc-1owq1sx-5"})(function(e){var t=e.theme,n=e.$tone,r=void 0===n?"default":n;return(0,C.AH)(["margin:0;text-align:center;",";color:",";@media (max-width:","){",";}"],t.typography.heading.desktop.s,"almost"===r?t.co.warning20:"fail"===r?t.co.error40:"success"===r?t.co.success20:t.co.neutral10,t.sz.lg,t.typography.heading.mobile.s)}),G=C.Ay.button.withConfig({componentId:"sc-1owq1sx-6"})(function(e){var t=e.theme;return(0,C.AH)(["background-color:",";color:",";border:none;border-radius:",";display:flex;justify-content:center;align-items:center;width:",";height:",";font-size:",";cursor:pointer;&:hover:not(:disabled){background-color:",";}
1&:disabled{opacity:0.5;cursor:not-allowed;}"],t.co.tertiary60,t.co.secondary0,t.bo.round,t.sz.s16,t.sz.s16,t.sz.s10,t.co.tertiary50)}),Z=C.Ay.div.withConfig({componentId:"sc-1owq1sx-7"})(function(e){var t=e.theme;return(0,C.AH)(["display:flex;flex-direction:column;align-items:center;gap:",";width:100%;max-width:20rem;"],t.sz.s3)}),J=C.Ay.div.withConfig({componentId:"sc-1owq1sx-8"})(function(e){var t=e.theme;return(0,C.AH)(["display:flex;align-items:center;justify-content:center;gap:",";"],t.sz.s2)}),Q=(0,C.Ay)(Y.A).withConfig({componentId:"sc-1owq1sx-9"})(function(e){var t=e.theme;return(0,C.AH)(["font-size:",";color:",";"],t.sz.s28,t.co.secondary20)}),ee=C.Ay.div.withConfig({componentId:"sc-1owq1sx-10"})(function(e){var t=e.theme,n=e.$success;return(0,C.AH)(["background-color:",";border-radius:",";width:",";height:",";display:flex;justify-content:center;align-items:center;"],n?t.co.success80:t.co.tertiary60,t.bo.round,t.sz.s44,t.sz.s44)}),et=(0,o.YK)({instruction:{id:"pronunciation_check_prompt_instruction",defaultMessage:"Say the translation out loud"},analysing:{id:"pronunciationBuddy_analysing_description"},almostThere:{id:"pronunciation_check_almost_there",defaultMessage:"Almost there!"},scoreFail:{id:"pronunciation_check_fail_description",defaultMessage:"Not quite there, try again"},scorePass:{id:"pronunciationBuddy_positiveOutcome_description"},tooShort:{id:"pronunicationBuddy_messageTooShort_description"},noOrLowAudio:{id:"pronunicationBuddy_noOrLowAudio_description"},audioAltText:{id:"learning_session_learnables_card_audio"},next:{id:"pronunciation_check_next",defaultMessage:"Next"},finish:{id:"pronunciation_check_finish",defaultMessage:"Finish"},actuallyIWasRight:{id:"learning_session_actually_i_was_right",defaultMessage:"Actually, I was right!"},actuallyIWasRightTooltip:{id:"learning_session_actually_i_was_right_tooltip",defaultMessage:'If you mistakenly pressed the wrong button, but actually you knew the answer, press the "Actually I was right!" button, so that Memrise forgets about the mistake. Also useful when Memrise is a bit too strict with you.'}}),en=function(e){var t=e.learnable,n=e.viewState,r=e.isRecording,i=e.isLastLearnable,a=e.showActuallyRight,s=e.startRecording,c=e.stopRecording,l=e.onNext,u=e.onMarkActuallyRight,d=(0,o.tz)(),h=t.audios[0],p=(0,y.HO)(h),f=p.play,g=p.stopAll,m=p.playing;return"analysing"===n.kind?(0,O.jsxs)(K,{"data-testid":"pronunciation-check-analysing",children:[(0,O.jsx)(U,{children:d.formatMessage(et.analysing)}),(0,O.jsx)(ee,{children:(0,O.jsx)(Q,{name:"search"})})]}):"almost"===n.kind?(0,O.jsx)(K,{$variant:"almost","data-testid":"pronunciation-check-almost",children:(0,O.jsx)(U,{$tone:"almost",children:d.formatMessage(et.almostThere)})}):"fail"===n.kind?(0,O.jsx)(K,{"data-testid":"pronunciation-check-fail",children:(0,O.jsx)(U,{$tone:"fail",children:d.formatMessage(et.scoreFail)})}):"validation"===n.kind?(0,O.jsx)(K,{"data-testid":"pronunciation-check-validation",children:(0,O.jsx)(U,{$tone:"fail",children:d.formatMessage("too-short"===n.reason?et.tooShort:et.noOrLowAudio)})}):"revealed"===n.kind?(0,O.jsxs)(K,{$variant:"success","data-testid":"pronunciation-check-revealed",children:[(0,O.jsx)(U,{$tone:"success",children:d.formatMessage(et.scorePass)}),t.secondaryTargetValue&&(0,O.jsx)(W,{dir:"auto",children:t.secondaryTargetValue}),(0,O.jsx)(V,{dir:"auto",children:t.mainTargetValue}),(0,O.jsx)(X,{dir:"auto",children:t.sourceDefinitionValue}),(0,O.jsx)(G,{onClick:m?g:f,"aria-label":d.formatMessage(et.audioAltText),disabled:!h,"data-testid":"pronunciation-check-audio",children:(0,O.jsx)(Y.A,{name:m?"wave":"speakerVolume3"})}),(0,O.jsx)(Z,{children:(0,O.jsx)(j.$n,{wide:!0,buttonType:"primary",buttonSize:"large",onClick:l,"data-testid":"pronunciation-check-next",children:d.formatMessage(i?et.finish:et.next)})})]}):(0,O.jsxs)(K,{"data-testid":"pronunciation-check-prompt",children:[(0,O.jsx)(B,{children:d.formatMessage(et.instruction)}),(0,O.jsx)(X,{dir:"auto","data-testid":"pronunciation-check-source",children:t.sourceDefinitionValue}),(0,O.jsx)(N.u,{isRecording:r,startRecording:s,stopRecording:c,"data-testid":"pronunciation-check-mic"}),a&&(0,O.jsxs)(J,{"data-testid":"pronunciation-check-actually-right",children:[(0,O.jsx)(j.$n,{buttonSize:"small",buttonType:"secondary",onClick:u,children:d.formatMessage(et.actuallyIWasRight)}),(0,O.jsx)(q.j,{tooltip:d.formatMessage(et.actuallyIWasRightTooltip)})]})]})},er=3*$.OY,ei=(0,o.YK)({errorNotification:{id:"something_went_wrong"}}),eo=function(e){var t,n,r=e.learnable,i=e.sessionId,a=e.isRevealed,s=e.isLastLearnable,c=e.showActuallyRight,u=e.onPass,p=e.onFail,f=e.onAlmost,g=e.onNext,m=e.onMarkActuallyRight,y=(0,o.tz)(),x=(0,A.S)(),v=(0,h.useContext)(L.Ay).setNotification,b=(0,h.useState)(!1),w=b[0],_=b[1],k=(0,h.useState)(null),j=k[0],C=k[1],I=(0,h.useState)(null),R=I[0],M=I[1],z=(0,h.useState)(0),H=z[0],P=z[1];(0,h.useEffect)(function(){_(!1),C(null),M(null),P(0)},[r.learnableIdKey]);var $=(0,h.useCallback)(function(){v({text:y.formatMessage(ei.errorNotification),status:"error",snackBar:!0})},[y,v]),Y=(t=(0,l.A)(d().mark(function e(t){var n,o,a,s;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(x){e.next=3;break}return _(!1),e.abrupt("return");case 3:return e.prev=3,e.next=6,(0,D.Mu)(t);case 6:if(o=e.sent,"valid"===(a=(0,S.d)(o))){e.next=12;break}return M(a),_(!1),e.abrupt("return");case 12:n=new Blob([(0,D.PZ)(o)],{type:"audio/wav"}),e.next=21;break;case 15:return e.prev=15,e.t0=e.catch(3),console.error("Could not convert audio to wav:",e.t0),_(!1),$(),e.abrupt("return");case 21:return e.prev=21,e.next=24,E.Y_.sendLearnablePronunciation({languagePairId:x,sessionId:i,learnableId:r.learnableIdKey,wavAudioBlob:n,retryCount:H});case 24:"pass"===(s=e.sent.score).result?u():"fail"===s.result?(p(),C("fail")):(f(),C("almost")),e.next=33;break;case 29:e.prev=29,e.t1=e.catch(21),console.error("Could not send learnable pronunciation:",e.t1),$();case 33:return e.prev=33,_(!1),e.finish(33);case 36:case"end":return e.stop()}},e,null,[[3,15],[21,29,33,36]])})),function(e){return t.apply(this,arguments)}),N=(n=(0,l.A)(d().mark(function e(t){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:_(!0),setTimeout(function(){Y(t)},300);case 2:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),q=(0,T.C)({maxDurationSec:10,onStop:N,onError:function(){}}),F=q.isRecording,K=q.startRecording,B=q.stopRecording;(0,h.useEffect)(function(){if(j||R){var e=window.setTimeout(function(){C(null),M(null),P(function(e){return e+1})},er);return function(){return window.clearTimeout(e)}}},[j,R]);var X={kind:"recording"};return a?X={kind:"revealed"}:w?X={kind:"analysing"}
1:R?X={kind:"validation",reason:R}:"fail"===j?X={kind:"fail"}:"almost"===j&&(X={kind:"almost"}),(0,O.jsx)(en,{learnable:r,viewState:X,isRecording:F,isLastLearnable:s,showActuallyRight:c&&"recording"===X.kind,startRecording:K,stopRecording:B,onNext:g,onMarkActuallyRight:m})},ea=n(25022),es=n(23292),ec=C.Ay.header.withConfig({componentId:"sc-ait4ve-0"})(function(e){var t=e.theme;return(0,C.AH)(["display:flex;align-items:center;justify-content:space-between;width:100%;gap:",";padding:"," 0;"],t.sz.s3,t.sz.s3)}),el=C.Ay.div.withConfig({componentId:"sc-ait4ve-1"})(function(e){var t=e.theme,n=e.$align;return(0,C.AH)(["display:flex;align-items:center;justify-content:",";gap:",";min-width:",";flex-shrink:0;"],"end"===(void 0===n?"start":n)?"flex-end":"flex-start",t.sz.s2,t.sz.s10)}),eu=C.Ay.div.withConfig({componentId:"sc-ait4ve-2"})(function(e){var t=e.theme;return(0,C.AH)(["display:flex;flex:1;gap:",";min-width:0;"],t.sz.s1)}),ed=C.Ay.div.withConfig({componentId:"sc-ait4ve-3"})(function(e){var t=e.theme,n=e.$filled;return(0,C.AH)(["flex:1;height:",";border-radius:",";background-color:",";"],t.sz.s2,t.bo.round,n?t.co.tertiary40:t.co.neutral90)}),eh=(0,o.YK)({exit:{id:"pronunciation_check_session_exit",defaultMessage:"Exit session"},progress:{id:"pronunciation_check_session_progress",defaultMessage:"Progress: {completed} of {total}"}}),ep=function(e){var t=e.hearts,n=e.completedCount,r=e.totalCount,i=e.onExit,a=(0,o.tz)(),s=Math.max(r,0),c=Math.min(Math.max(n,0),s);return(0,O.jsxs)(ec,{"data-testid":"pronunciation-check-session-header",children:[(0,O.jsx)(el,{children:(0,O.jsx)(ea.K,{icon:"close",ariaLabel:a.formatMessage(eh.exit),handleClick:i})}),(0,O.jsx)(eu,{role:"progressbar","aria-valuemin":0,"aria-valuemax":s,"aria-valuenow":c,"aria-label":a.formatMessage(eh.progress,{completed:c,total:s}),"data-testid":"pronunciation-check-progress",children:Array.from({length:s},function(e,t){return(0,O.jsx)(ed,{$filled:t<c,"data-testid":"pronunciation-check-progress-segment-".concat(t)},t)})}),(0,O.jsx)(el,{$align:"end",children:(0,O.jsx)(es.A,{numLives:t})})]})},ef=n(79407),eg=(0,o.YK)({loadingTitle:{id:"pronunciation_check_session_loading_title",defaultMessage:"Loading exercise…"},insufficientTitle:{id:"pronunciation_check_session_insufficient_title",defaultMessage:"Not enough words yet"},insufficientDescription:{id:"pronunciation_check_session_insufficient_description",defaultMessage:"You need more words in this language before you can start a pronunciation check."},errorTitle:{id:"pronunciation_check_session_error_title",defaultMessage:"Something went wrong"},errorDescription:{id:"pronunciation_check_session_error_description",defaultMessage:"We couldn’t start the pronunciation check. Please try again later."},completionFailedTitle:{id:"pronunciation_check_session_completion_failed_title",defaultMessage:"Your progress didn’t save"},completionFailedDescription:{id:"pronunciation_check_session_completion_failed_description",defaultMessage:"Something went wrong saving your result. Please try again later."},exit:{id:"pronunciation_check_session_status_exit",defaultMessage:"Exit"},retry:{id:"pronunciation_check_session_status_retry",defaultMessage:"Retry"}}),em={insufficient:{title:eg.insufficientTitle,description:eg.insufficientDescription},generic:{title:eg.errorTitle,description:eg.errorDescription},completionFailed:{title:eg.completionFailedTitle,description:eg.completionFailedDescription}},ey=function(){var e=(0,o.tz)();return(0,O.jsxs)(ef.mc,{"data-testid":"pronunciation-check-loading",children:[(0,O.jsx)(ef.aH,{"data-testid":"pronunciation-check-loader"}),(0,O.jsx)(ef.hE,{children:e.formatMessage(eg.loadingTitle)})]})},ex=function(e){var t=e.variant,n=e.onExit,r=e.onRetry,i=(0,o.tz)(),a=em[t],s=a.title,c=a.description;return(0,O.jsxs)(ef.mc,{"data-testid":"pronunciation-check-error-".concat(t),children:[(0,O.jsx)(ef.hE,{children:i.formatMessage(s)}),(0,O.jsx)(ef.VY,{children:i.formatMessage(c)}),(0,O.jsxs)(ef.yp,{children:[r&&(0,O.jsx)(j.$n,{wide:!0,buttonType:"primary",buttonSize:"large",onClick:r,"data-testid":"pronunciation-check-error-retry",children:i.formatMessage(eg.retry)}),(0,O.jsx)(j.$n,{wide:!0,buttonType:r?"secondary":"primary",buttonSize:"large",onClick:n,"data-testid":"pronunciation-check-error-exit",children:i.formatMessage(eg.exit)})]})]})},ev=n(42969),eb=n(74359),ew=n(26080),eA=n(27925),e_=n(85106);function ek(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ej=function(e,t,n,r){return null!=r?E.Y_.getLearnablesPronunciationData(e,t,e_.b.BUDDIES_TAB,n,{futureLearnablesOffset:r}):E.Y_.getLearnablesPronunciationData(e,t,e_.b.BUDDIES_TAB,n)},eC=(r=(0,l.A)(d().mark(function e(t,n,r,i){var o,a;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ej(t,[n],r,i);case 3:return o=e.sent,a=(0,eA.A)(o,1)[0],e.abrupt("return",null!=a?a:null);case 9:return e.prev=9,e.t0=e.catch(0),e.abrupt("return",null);case 12:case"end":return e.stop()}},e,null,[[0,9]])})),function(e,t,n,i){return r.apply(this,arguments)}),eI=(i=(0,l.A)(d().mark(function e(t){var n,r,i,o,a,s,c,l,u,h;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.languagePairId,r=t.candidateIds,i=t.sessionId,o=t.futureLearnablesOffset,0!==r.length){e.next=3;break}return e.abrupt("return",[]);case 3:return a=r.slice(0,5),e.prev=4,e.next=7,ej(n,a,i,o);case 7:return e.abrupt("return",e.sent);case 10:e.prev=10,e.t0=e.catch(4);case 12:s=[],c=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return ek(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ek(e,void 0):void 0}}(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(a)throw i}}}}(r),e.prev=14,c.s();
1case 16:if((l=c.n()).done){e.next=26;break}if(u=l.value,!(s.length>=5)){e.next=20;break}return e.abrupt("break",26);case 20:return e.next=22,eC(n,u,i,o);case 22:(h=e.sent)&&s.push(h);case 24:e.next=16;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(14),c.e(e.t1);case 31:return e.prev=31,c.f(),e.finish(31);case 34:if(0!==s.length){e.next=36;break}throw Error("Could not load pronunciation data for any learnable");case 36:return e.abrupt("return",s);case 37:case"end":return e.stop()}},e,null,[[4,10],[14,28,31,34]])})),function(e){return i.apply(this,arguments)});function eR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var eM=function(e){var t=e.languagePairId,n=e.sessionId,r=e.futureLearnablesOffset,i=e.onError,o=(0,eb.I)({queryKey:["pronunciation_check_recent_learnables",t,n,r],queryFn:function(){return t?E.Y_.getRandomKnownLearnables(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eR(Object(n),!0).forEach(function(t){(0,ev.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({typesToExclude:[ew.V.ALPHABET],forPronunciation:!0},null!=r?{futureLearnablesOffset:r}:{})):null},enabled:!!t}),a=o.data,s=o.isError,c=null==a?void 0:a.learnables,l=(0,h.useMemo)(function(){return c?Object.values(c).map(function(e){return e.id}).slice(0,15):null},[c]),u=!!l&&l.length>0,d=(0,eb.I)({queryKey:["pronunciation_check_data",t,l,n,r],queryFn:function(){return t&&l?eI({languagePairId:t,candidateIds:l,sessionId:n,futureLearnablesOffset:r}):null},enabled:u,retry:!1}),p=d.data,f=d.isError,g=d.isPending,m=s||f;return((0,h.useEffect)(function(){m&&i()},[m,i]),t)?a?u?g||!p?{learnables:null,isPending:!0,isError:!1}:{learnables:p,isPending:!1,isError:!1}:{learnables:[],isPending:!1,isError:!1}:{learnables:null,isPending:!0,isError:!1}:{learnables:null,isPending:!1,isError:!0}};function ez(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ez(Object(n),!0).forEach(function(t){(0,ev.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ez(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eH=function(e){return{stage:"playing",hearts:3,currentIndex:0,totalCount:e,consecutiveAlmostCount:0,isRevealed:!1,lastResult:null,showActuallyRight:!1,lostHeartOnLastFail:!1}},eP=function(e,t){switch(t.type){case"RETRY":return eH(e.totalCount);case"FAIL":if("playing"!==e.stage||e.isRevealed)return e;var n=e.hearts-1;return eO(eO({},e),{},{hearts:n,consecutiveAlmostCount:0,lastResult:"fail",showActuallyRight:n>0,lostHeartOnLastFail:!0,stage:n<=0?"failure":"playing"});case"ALMOST":if("playing"!==e.stage||e.isRevealed)return e;var r=e.consecutiveAlmostCount+1;return eO(eO({},e),{},{consecutiveAlmostCount:r,lastResult:"almost",showActuallyRight:r>=2,lostHeartOnLastFail:!1});case"PASS":if("playing"!==e.stage||e.isRevealed)return e;return eO(eO({},e),{},{isRevealed:!0,lastResult:"pass",showActuallyRight:!1,consecutiveAlmostCount:0,lostHeartOnLastFail:!1});case"MARK_ACTUALLY_RIGHT":if("playing"!==e.stage||e.isRevealed||!e.showActuallyRight)return e;var i=e.lostHeartOnLastFail?Math.min(e.hearts+1,3):e.hearts;return eO(eO({},e),{},{hearts:i,isRevealed:!0,lastResult:"pass",showActuallyRight:!1,consecutiveAlmostCount:0,lostHeartOnLastFail:!1});case"NEXT":if("playing"!==e.stage||!e.isRevealed)return e;var o=e.currentIndex+1;if(o>=e.totalCount)return eO(eO({},e),{},{stage:"success"});return eO(eO({},e),{},{currentIndex:o},{consecutiveAlmostCount:0,isRevealed:!1,lastResult:null,showActuallyRight:!1,lostHeartOnLastFail:!1});default:return e}},eE=function(e){var t=(0,h.useReducer)(eP,e,eH),n=t[0],r=t[1];return{stage:n.stage,hearts:n.hearts,currentIndex:n.currentIndex,totalCount:n.totalCount,consecutiveAlmostCount:n.consecutiveAlmostCount,isRevealed:n.isRevealed,lastResult:n.lastResult,showActuallyRight:n.showActuallyRight,fail:function(){return r({type:"FAIL"})},almost:function(){return r({type:"ALMOST"})},pass:function(){return r({type:"PASS"})},markActuallyRight:function(){return r({type:"MARK_ACTUALLY_RIGHT"})},next:function(){return r({type:"NEXT"})},retry:function(){return r({type:"RETRY"})}}},eT=C.Ay.div.withConfig({componentId:"sc-333htr-0"})(function(e){var t=e.theme;return(0,C.AH)(["display:flex;flex-direction:column;align-items:center;min-height:100%;min-width:100vw;width:100%;background-color:",";color:",";"],t.co.neutral99,t.co.neutral20)}),eS=C.Ay.div.withConfig({componentId:"sc-333htr-1"})(function(e){var t=e.theme;return(0,C.AH)(["display:flex;flex-direction:column;align-items:center;width:100%;max-width:",";padding:",";gap:",";@media (min-width:","){padding:",";gap:",";}"],t.sz.xl,t.sz.s4,t.sz.s4,t.sz.ml,t.sz.s8,t.sz.s6)}),eL=C.Ay.h1.withConfig({componentId:"sc-333htr-2"})(function(e){var t=e.theme;return(0,C.AH)(["",";color:",";margin:0;text-align:center;width:100%;@media (max-width:","){",";}"],t.typography.heading.desktop.s,t.co.neutral10,t.sz.lg,t.typography.heading.mobile.s)}),e$=(0,o.YK)({title:{id:"pronunciation_check_session_title",defaultMessage:"Pronunciation check"}}),eD=function(e){if("string"!=typeof e)return null;var t=(0,k.oV)(e);return t instanceof k.XR?null:t},eY=function(){var e=eD((0,p.useRouter)().query.language_pair_id);return null!=e?e:(0,A.S)()},eN=function(){var e=(0,p.useRouter)();return{pathwayNodeId:eD(e.query.pathway_node_id),pathwayCheckpointId:eD(e.query.pathway_checkpoint_id)}},eq=function(e){var t=e.learnables,n=e.sessionId,r=e.onExit,i=e.onSessionComplete,a=(0,o.tz)(),s=(0,h.useState)(null),c=s[0],l=s[1],u=eE(t.length),d=u.stage,p=u.hearts,g=u.currentIndex,m=u.totalCount,y=u.isRevealed,x=u.showActuallyRight,v=u.fail,b=u.almost,w=u.pass,A=u.markActuallyRight,_=u.next,k=u.retry,j=t[g];(0,h.useEffect)(function(){"success"===d&&i()},[d,i]);var C=(0,h.useCallback)(function(){w(),j&&l(j.learnableIdKey)},[w,j]),I=(0,h.useCallback)(function(){A(),j&&l(j.learnableIdKey)},[A,j]);return"success"===d?(0,O.jsx)(ey,{}):"failure"===d?(0,O.jsx)(P,{onRetry:k,onExit:r}):j?(0,O.jsxs)(O.Fragment,{children:[null!==c&&(0,O.jsx)("audio",{autoPlay:!0,preload:"auto",src:f.A,"data-testid":"pronunciation-check-correct-sound"}
1,"correct-".concat(c)),(0,O.jsx)(ep,{hearts:p,completedCount:g+ +!!y,totalCount:m,onExit:r}),(0,O.jsx)(eL,{"data-testid":"pronunciation-check-title",children:a.formatMessage(e$.title)}),(0,O.jsx)(eo,{learnable:j,sessionId:n,isRevealed:y,isLastLearnable:g===m-1,showActuallyRight:x,onPass:C,onFail:v,onAlmost:b,onNext:_,onMarkActuallyRight:I},j.learnableIdKey)]}):(0,O.jsx)(ex,{variant:"generic",onExit:r})},eF=function(){var e=(0,p.useRouter)(),t=(0,w.A)().safePush,n=eY(),r=eN(),i=r.pathwayNodeId,o=r.pathwayCheckpointId,a=(0,_.Z)(e.query.future_learnables_offset),s=(0,v.x)(),c=s.sessionId,u=s.generateNewSession,f=(0,m.I)(),A=f.micPermissionState,k=f.handleGiveMicPermissions,j=(0,h.useState)(!1),C=j[0],I=j[1],R=(0,h.useState)(!1),M=R[0],z=R[1],H=(0,b.a)({languagePairId:n,pathwayNodeId:i,pathwayCheckpointId:o}).completePathwayProgress,P=(0,h.useCallback)(function(){I(!0)},[]),E=(0,h.useCallback)(function(){I(!1),u()},[u]),T=eM({languagePairId:n,sessionId:c,futureLearnablesOffset:a,onError:P}),S=T.learnables,L=T.isPending,$=T.isError,D=function(){var n;t("string"==typeof(n=e.query.back)&&n.startsWith("/")?n:x.b.path)},Y=(0,h.useCallback)((0,l.A)(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,H();case 3:t(x.b.path),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),z(!0);case 9:case"end":return e.stop()}},e,null,[[0,6]])})),[H,t]),N=!!S&&0===S.length;return(0,O.jsx)(y.Gy,{children:(0,O.jsx)(eT,{"data-testid":"pronunciation-check-session",children:(0,O.jsx)(eS,{children:M?(0,O.jsx)(ex,{variant:"completionFailed",onExit:D}):A?"granted"!==A?(0,O.jsx)(g.XT,{isDenied:"denied"===A,onClick:k}):!n||$||C?(0,O.jsx)(ex,{variant:"generic",onExit:D,onRetry:n?E:void 0}):L||!S?(0,O.jsx)(ey,{}):N?(0,O.jsx)(ex,{variant:"insufficient",onExit:D}):(0,O.jsx)(eq,{learnables:S,sessionId:c,onExit:D,onSessionComplete:Y}):(0,O.jsx)(ey,{})})})})},eK=(0,o.YK)({pageTitle:{id:"pronunciation_check_session_page_title",defaultMessage:"Pronunciation check"}});let eB=function(){var e=(0,o.tz)();return(0,O.jsxs)(c.co,{children:[(0,O.jsx)(s(),{children:(0,O.jsx)("title",{children:e.formatMessage(eK.pageTitle)})}),(0,O.jsx)(eF,{})]})}},73933:(e,t,n)=>{"use strict";n.d(t,{j:()=>f});var r=n(14232),i=n(53590),o=n(5720),a=n(14780),s=n(2553),c=n(5646),l=n(66185),u=c.Ay.button.withConfig({componentId:"sc-bt31n8-0"})(function(e){var t=e.theme;return(0,c.AH)(["margin-left:",";background:none;border:none;padding:0;cursor:pointer;font-size:",";display:inline-flex;align-items:center;gap:",";color:inherit;svg{transform:scaleX(",");}"],t.sz.s3,t.sz.s6,t.sz.s1,(0,l.g)(t))}),d=c.Ay.span.withConfig({componentId:"sc-bt31n8-1"})(function(e){var t=e.theme;return(0,c.AH)(["",";color:inherit;"],t.typography.paragraph.s)}),h=n(37876),p=(0,o.YK)({info:{id:"card_statistics_link_see_more"}}),f=function(e){var t=e.tooltip,n=e.label,c=(0,r.useState)(!1),l=c[0],f=c[1],g=(0,r.useRef)(null);(0,i.fy)("esc",function(){return f(!1)}),(0,i.c7)(g,function(){return f(!1)});var m=(0,o.tz)().formatMessage(p.info);return(0,h.jsx)("div",{ref:g,"aria-label":m,children:(0,h.jsx)(a.m,{tooltip:t,forceShow:l,tooltipStyle:"hint",children:(0,h.jsxs)(u,{title:m,onClick:function(){return f(!l)},children:[(0,h.jsx)(s.A,{name:"infoOutline"}),n&&(0,h.jsx)(d,{children:n})]})})})}},75144:(e,t,n)=>{"use strict";n.d(t,{u:()=>h});var r=n(5720),i=n(2553),o=n(3539),a=n(5646),s=a.Ay.div.withConfig({componentId:"sc-oxcdes-0"})(function(e){var t=e.theme;return(0,a.AH)(["display:flex;flex-direction:column;align-items:center;gap:",";"],t.sz.s3)}),c=a.Ay.button.withConfig({componentId:"sc-oxcdes-1"})(function(e){var t=e.theme,n=e.$isRecording;return(0,a.AH)(["background-color:",";color:",";border:none;border-radius:",";display:flex;justify-content:center;align-items:center;width:",";height:",";font-size:",";cursor:pointer;&:hover:not(:disabled){background-color:",";}&:disabled{opacity:0.5;cursor:not-allowed;}"],n?t.co.error50:t.co.tertiary0,t.co.neutral99,t.bo.round,t.sz.s44,t.sz.s44,t.sz.s28,n?t.co.error40:t.co.tertiary10)}),l=a.Ay.p.withConfig({componentId:"sc-oxcdes-2"})(function(e){var t=e.theme;return(0,a.AH)(["margin:0;min-height:",";text-align:center;color:",";",";user-select:none;"],t.sz.s8,t.co.tertiary0,t.typography.heading.desktop.xxs)}),u=n(37876),d=(0,r.YK)({inactiveMicrophoneTouchHint:{id:"pronunciationBuddy_testCard_pressMicro_description"},activeMicrophoneTouchHint:{id:"pronunciationBuddy_testCard_releaseMicro_description"},inactiveMicrophoneHint:{id:"pronunciationBuddy_testCard_pressMicro_description_web"},activeMicrophoneHint:{id:"pronunciationBuddy_testCard_releaseMicro_description_web"}}),h=function(e){var t=e.isRecording,n=e.startRecording,a=e.stopRecording,h=e.disabled,p=void 0!==h&&h,f=e.interactionMode,g=e["data-testid"],m=(0,r.tz)(),y=(0,o.J)(),x="toggle"===(void 0===f?"hold":f),v=m.formatMessage(x||!1===y?t?d.activeMicrophoneHint:d.inactiveMicrophoneHint:t?d.activeMicrophoneTouchHint:d.inactiveMicrophoneTouchHint),b=function(){p||(t?a():n())};return(0,u.jsxs)(s,{children:[(0,u.jsx)(c,{type:"button",$isRecording:t,disabled:p,onClick:x&&!p?b:void 0,onMouseUp:x||p?void 0:t?a:n,onKeyUp:function(e){("Enter"===e.key||" "===e.key)&&b()},onTouchStart:x||p||t?void 0:n,onTouchCancel:x||p?void 0:a,onTouchEnd:x||p?void 0:a,"aria-label":v,"data-testid":g,children:(0,u.jsx)(i.A,{name:"microphoneOutline"})}),(0,u.jsx)(l,{children:v})]})}},79407:(e,t,n)=>{"use strict";n.d(t,{VY:()=>s,aH:()=>c,hE:()=>a,mc:()=>o,yp:()=>l});var r=n(5646),i=n(90316),o=r.Ay.div.withConfig({componentId:"sc-rj5hlc-0"})(function(e){var t=e.theme;return(0,r.AH)(["display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:",";padding:"," ",";min-height:60vh;width:100%;
1"],t.sz.s4,t.sz.s6,t.sz.s4)}),a=r.Ay.h1.withConfig({componentId:"sc-rj5hlc-1"})(function(e){var t=e.theme;return(0,r.AH)(["",";color:",";margin:0;@media (max-width:","){",";}"],t.typography.heading.desktop.m,t.co.neutral10,t.sz.lg,t.typography.heading.mobile.m)}),s=r.Ay.p.withConfig({componentId:"sc-rj5hlc-2"})(function(e){var t=e.theme;return(0,r.AH)(["",";color:",";margin:0;max-width:28rem;"],t.typography.paragraph.m,t.co.neutral40)}),c=(0,r.Ay)(i.A).withConfig({componentId:"sc-rj5hlc-3"})(function(e){var t=e.theme;return(0,r.AH)(["width:",";"],t.sz.s12)}),l=r.Ay.div.withConfig({componentId:"sc-rj5hlc-4"})(function(e){var t=e.theme;return(0,r.AH)(["display:flex;flex-direction:column;gap:",";width:100%;max-width:20rem;margin-top:",";"],t.sz.s3,t.sz.s2)})}},e=>{e.O(0,[5687,663,4194,2093,1949,1799,9280,6593,636,8792],()=>e(e.s=828)),_N_E=e.O()}]);
2//# sourceMappingURL=pronunciation-check-38de4a4a97695d84.js.map

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