(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_Speechify Chrome Extension"]="13.4.1"}catch(l){}})();
import{a as Ar}from"./chunk-YSA4MTPS.js";import{a as Dr}from"./chunk-GLEW6WGL.js";import{a as kr}from"./chunk-JT6T45NR.js";import{a as Ut}from"./chunk-B7AFBP5P.js";import{a as Ro,b as Bo,c as _r,d as $t,e as oo,f as Lr,g as Mr}from"./chunk-A23U5IW7.js";import{b as Nr}from"./chunk-EVHRVMJT.js";import{a as No,b as Ur,c as $r}from"./chunk-MFJ3PPWV.js";import{a as Fr}from"./chunk-EXLYWLMO.js";import{a as lt}from"./chunk-RAYHJIUZ.js";import{a as st,d as Br}from"./chunk-QGWVBTAL.js";import"./chunk-LSJOZXIQ.js";import"./chunk-Z3FNN5ZZ.js";import{c as Dt}from"./chunk-BKGVUOY6.js";import"./chunk-4XUNBFJC.js";import{a as Rr}from"./chunk-IKU6LQOS.js";import"./chunk-6U3SPWIY.js";import"./chunk-FFEYPAP2.js";import{a as Ne,b as Ae}from"./chunk-QZO5WHCE.js";import"./chunk-6XO4FK4F.js";import{$c as ke,$d as sr,A as wt,Ae as go,Ag as Gr,Bd as ot,Be as O,Bg as Yr,Cb as Y,Cc as qo,Cd as tt,Ce as Er,Cf as at,Dd as et,De as nt,Df as Wr,Ea as Go,Eb as Ie,Ee as ho,Ef as ut,G as Se,Id as Je,Jb as ve,Je as Tr,Ld as Qe,Md as He,Nd as or,Od as tr,Oe as Ir,Pd as co,Pe as vr,Re as Or,Sa as wo,Sd as er,Td as rr,Tf as yo,U as be,Ue as wr,Uf as j,Xd as Nt,Yd as ir,Zf as mt,_ as Vo,_d as nr,ae as ar,b as D,be as lr,c as ge,ca as Ce,ce as ur,d as Oo,db as xe,de as At,ee as kt,fe as _t,gc as po,ge as U,hc as x,hd as q,he as rt,id as X,ie as it,je as Lt,kd as Jo,ke as mr,kg as pt,lc as R,ld as Qo,le as pr,mc as k,md as Xe,me as cr,nd as Z,ne as dr,oe as fr,pd as Ze,pe as gr,q as ye,qd as Ho,qe as hr,rc as zo,re as yr,sc as we,se as fo,tb as Ee,tc as C,te as Pr,uc as y,ue as Sr,ve as Mt,wc as Re,we as br,xc as Be,xe as Cr,xg as Vr,y as Pe,yb as Te,yd as je,ye as xr,yg as E,zg as _}from"./chunk-XMRXO6YU.js";import{h as Yo,i as Rt,j as Bt,m as Oe}from"./chunk-ODCFEFOB.js";import{B as Me,C as Xo,D as De,F as Ue,G as $e,H as Zo,I as Fe,J as We,K as Ve,L as Ge,M as Ye,N as ze,O as Ke,P as jo,Q as qe,a as ce,e as de,f as fe,g as vo,i as m,j as he,l as u,m as H,p as mo,q as K,s as z,t as Ko,y as _e,z as Le}from"./chunk-24ZZP5UQ.js";import{g as I}from"./chunk-GQY3J744.js";import{F as pe,M as Io}from"./chunk-NWEJW7RD.js";import"./chunk-ASZMUWWE.js";import"./chunk-4XRFE7WB.js";import"./chunk-6I7EUWRH.js";import{b as Fn,d as T,f as d,g as r,i as o,j as p,k as Ot,m as Wn,n as i}from"./chunk-CLPINNGF.js";var ti=Fn((Rl,oi)=>{i();r();function qn(){}oi.exports=qn});i();r();Wn();i();r();var S=T(I());i();r();var J=T(I()),Vn=["click","contextmenu","dblclick","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","wheel"];function ct(t=Vn){let[e,s]=(0,J.useState)(null),n=(0,J.useRef)(t);n.current=t;let a=(0,J.useCallback)(l=>{l.target?.className?.includes?.("react-switch-")||(l.stopPropagation(),l.stopImmediatePropagation())},[]);return(0,J.useEffect)(()=>{if(e)return n.current.forEach(l=>e.addEventListener(l,a)),()=>n.current.forEach(l=>e.removeEventListener(l,a))},[e,a]),s}i();r();var zr=T(I()),Po=t=>{let e=x.useTime(),s=x.useCurrentCursor();return(0,zr.useMemo)(()=>{if(t)return"save-only";let n=e.isLoading,a=e.totalEstimatedDuration>0,l=s?.ref?.ref,f=l&&!l?.isConnected;return a||f||n||j()?"content":"screenshot-only"},[e,s])};i();r();var So=T(I());var Kr=t=>{let e=(0,So.useRef)(void 0);(0,So.useEffect)(()=>{(async()=>{let{playbackSpeed:n}=await Pe("/user-settings/get");e.current=n,t(n)})()},[]),(0,So.useLayoutEffect)(()=>{let s=Vo.on("update",n=>{n.playbackSpeed!==e.current&&(t(n.playbackSpeed),e.current=n.playbackSpeed)});return()=>{s()}},[])};i();r();var Zr=T(I());i();r();function Ao(){let t=()=>{X("SKIP_CHATS_POPUP",!0),E("introduce-ai-button")},e=xe(),s=!e;return o(Z,{width:272,onClose:t,isSiteDarkMode:e},o(z,{font:"subheading-4",style:{color:s?u["icn-txt-prim"]:H["icn-txt-prim"]}},"Listen to Responses"),o(z,{font:"body-5",style:{marginTop:"8px",color:s?u["icn-txt-prim"]:H["icn-txt-prim"]}},"Play and Pause any response in your chat by clicking the button."),o(we,{style:{marginTop:"12px",width:"100%"},size:"medium",onClick:t},"OK, Got it"))}i();r();var dt=T(I());var Xr=Yo(()=>!1),qr=t=>Xr.setState(t);function ft(){let t=Xr();(0,dt.useEffect)(()=>{let l=()=>{q("SHOULD_SHOW_AUTOPLAY").then(f=>qr(!!f))};return l(),document.addEventListener("visibilitychange",l),()=>{document.removeEventListener("visibilitychange",l)}},[]);let e=l=>{k("auto-play",l.toString()),X("SHOULD_SHOW_AUTOPLAY",l),qr(l)},s=()=>e(!1),n=()=>e(!0),a=(0,dt.useCallback)(()=>{e(!t)},[t]);return{isEnabled:t,toggle:a,turnOff:s,turnOn:n}}i();r();var Gn=m.div`
  display: flex;
  gap: 16px;
  margin-top: 12px;
  justify-content: space-between;
`;function Ft(){let{turnOn:t,turnOff:e}=ft(),s=f=>{E("introduce-ai-autoplay"),R("extension_usage_new_user_education_prompt_interacted",{prompt:"introduce-ai-autoplay",action:f})},n=()=>{s("close")},a=async()=>{e(),await q("SKIP_CHATS_POPUP")||await _({component:!0,duration:0,id:"introduce-ai-button",priority:101,showOnMobile:!1,timeSensitive:!0,redesigned:!0,render:()=>o(Ao,null)}),s("keep-off")};return o(Z,{width:272,onClose:n},o(z,{font:"subheading-4"},"Autoplay Responses"),o(z,{font:"body-5",style:{marginTop:"8px"}},"Speechify can automatically read out chat responses as soon as they’re generated."),o(Gn,null,o(zo,{style:{flexGrow:1},onClick:()=>{t(),setTimeout(()=>{po.play(),s("turn-on")},500)},size:"medium"},"Turn On Autoplay"),o(lt,{style:{padding:0,color:u["icn-txt-sec"]},onClick:a},"Keep Off")))}var Yn=({enabled:t,onClick:e})=>o(lr,{enabled:t,onClick:e},t?o(_e,null):o(Le,null),o("span",null,t?"On":"Off"));function zn({showOnRight:t,triggerSource:e}){let{isEnabled:s,toggle:n}=ft(),{current:a}=Oo(),{current:l,NotificationBoard:f}=Oo({componentOnly:!0});(0,Zr.useEffect)(()=>{let P=async()=>{await E("screenshot-initial-hint-popup"),await E("introduce-ai-autoplay"),await _({component:!0,duration:0,id:"introduce-ai-autoplay",priority:151,showOnMobile:!1,timeSensitive:!0,redesigned:!0,render:()=>o(Ft,null)}),R("extension_usage_new_user_eduction_prompt_shown",{prompt:"introduce-ai-autoplay"})};e==="introduce-ai-autoplay"&&P()},[e]);let g=async()=>{await _({component:!0,duration:0,redesigned:!0,id:"introduce-ai-button",priority:101,showOnMobile:!1,timeSensitive:!0,render:()=>o(Ao,null)})};return o(p,null,o(O,{visible:!0,showOnRight:t,text:"Autoplay responses"},o(Yn,{enabled:s,onClick:async()=>{a?.id==="introduce-ai-button"&&await E("introduce-ai-button");let P=await q("SKIP_CHATS_POPUP");s&&!P&&g(),n()}})),o(it,{showOnRight:t,showAnchor:!0,topOffset:12,visible:l?.id==="introduce-ai-autoplay"},o(rt,null,o(f,null))))}var jr=zn;i();r();i();r();var Wt=T(I()),Kn=["playing","buffering"],Jr=({isPDF:t})=>{let e=x.useTime(),s=x.usePlayingState(),n=(0,Wt.useMemo)(()=>Kn.includes(s),[s]);return{duration:(0,Wt.useMemo)(()=>{if(e.isLoading===!0)return{isLoading:!0};let l=e.totalEstimatedDuration,f=e.currentTime,g=Math.max(0,l-f),h=g===0&&!n?l:g,P=Math.floor(h/3600),c=Math.floor(h%3600/60),v=t?"":Oe("short")(h);return{isLoading:!1,hours:P,minutes:c,durationText:v}},[n,e])}};var Qr=({isPDF:t})=>{let{duration:e}=Jr({isPDF:t});if(t||e.isLoading===!0)return null;let{hours:s,minutes:n,durationText:a}=e;return a?s===0?o(At,null,o(_t,{"aria-label":C("DURATION IN MINS"),"data-testid":y.DURATION_MINS,className:"left"},a?a.split(":")[0]:""," "),a?o(ur,null,":"):null,o(_t,{"aria-label":C("DURATION IN SECS"),"data-testid":y.DURATION_SECS,className:"right"},a?a.split(":")[1]:""," ")):o(At,null,o(co,{bold:!0,fontSize:"12px",lineHeight:"20px",fixedWidthNumbers:!0},s,o(kt,{"aria-label":C("DURATION IN HOURS"),"data-testid":y.DURATION_HOURS},"h"),n<10?"0":"",n,o(kt,{"aria-label":C("DURATION IN MINS"),"data-testid":y.DURATION_MINS},"m"))):null};i();r();async function ht(){let t=window.location.hostname,e=window.location.pathname;nt()&&await Te.toggleFeatureOnDomain("pill-player",!1),R("extension_pill_player_dismissed",{type:"domain",domain:t,pathname:e})}i();r();var ui=T(ti());i();r();i();r();var ei=m.div`
  background-color: ${u["bg-prim-w-110"]};
  border-radius: 12px;
  color: ${u["icn-txt-prim"]};
  display: flex;
  flex-direction: column;
  font-family: system-ui, sans-serif;
  width: 548px;
  padding-bottom: 48px;
  position: relative;
  box-shadow: 0px 12px 48px -16px rgba(0, 0, 0, 0.24);
`,ri=m.div`
  align-items: center;
  background-color: rgba(5, 7, 11, 0.5);
  display: flex;
  height: 100vh;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 2147483645;
`,ii=m.div`
  background: #fff;
  border-radius: 12px;
  height: 240px;
  overflow: hidden;
  width: 306px;
  z-index: 1;
`,ni=m.div`
  display: flex;
  justify-content: flex-end;
  padding: 16px;
`,si=m.div`
  text-align: center;
`,ai=m.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
`;var li=({handleSubmit:t})=>o(ai,null,o(si,null,o(z,{font:"subheading-2"},"Player Hidden"),o(z,{font:"body-5",style:{marginTop:"8px"}},"To bring the player back, click on the extension",o("br",null),"icon in your browser’s toolbar.")),o(ii,null,o(Ho,{src:"turn-on-extension-animation.webm",autoPlay:!0,muted:!0})),o(zo,{type:"submit",style:{width:"160px"},size:"large",onClick:t,"data-testid":y.GOT_IT},"Got it"));i();r();var _o=Yo(Ee({isModalShown:!1},t=>({showModal:()=>t({isModalShown:!0}),hideModal:()=>t({isModalShown:!1})})));var mi=()=>{let t=_o(l=>l.isModalShown),e=_o(l=>l.hideModal),s=async()=>{await ht(),await X("SKIP_CLOSE_PILL_PLAYER_MODAL",!0),e()},n=()=>{s().catch(()=>{})},a=l=>{l?.target===l?.currentTarget&&n()};return at(document.querySelector("#speechify-pill-player"),t?n:ui.default),t?o(ri,{onClick:a},o(ei,null,o(ni,{onClick:n},o(Xo,{style:{cursor:"pointer"}})),o(li,{handleSubmit:n}))):null};i();r();var A=T(I());function pi({checkIsMouseOut:t,onMouseOut:e,delayMs:s=150}){let n=(0,A.useRef)(t);n.current=t;let a=(0,A.useRef)(e);a.current=e;let[l,f]=(0,A.useState)(!0),[g,h]=(0,A.useState)(!1),[P,c]=(0,A.useState)(!1),v=(0,A.useRef)(null);(0,A.useEffect)(()=>(g?(v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{c(!0),v.current=null},s)):(v.current&&(clearTimeout(v.current),v.current=null),c(!1)),()=>{v.current&&clearTimeout(v.current)}),[g,s]),(0,A.useEffect)(()=>{if(!l)return;let B=window.setTimeout(()=>h(!1),250);return()=>clearTimeout(B)},[l]),(0,A.useEffect)(()=>{g||a.current()},[g]);let w=(0,A.useCallback)(()=>{n.current()&&f(!0)},[]),M=(0,A.useCallback)(()=>{h(!0),f(!1)},[]);return{isMouseOver:g,isMouseOverDelayed:P,handleMouseOver:M,handleMouseOut:w,setIsMouseOut:f}}i();r();i();r();var ci=({removeNotification:t,onRefresh:e})=>o(Dr,{removeNotification:t},o(D,{column:!0,xAlign:!0,separation:"12px"},o(D,{yAlign:"start",separation:"12px"},o(jn,null,o(Qe,{color:"#FA0F19"})),o(Zn,null,"The player didn’t load correctly. Please refresh it.")),o(Xn,{onClick:()=>{t(),e?.()}},"Refresh"))),Xn=m(ir)`
  font-family: var(--font-family)
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;

  display: flex;
  align-items: center;
  text-align: center;
  letter-spacing: 0.01em;

  width: 100%;
  justify-content: center;
`,Zn=m(co)`
  font-family: var(--font-family)
  font-style: normal;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
`,jn=m("div")`
  width: 20px;
  height: 20px;
`;var di=T(I());function fi(){let t=x.usePlayingState();(0,di.useEffect)(()=>{if(t!=="errored"&&E("player-error"),!["stopped","paused"].includes(t))return()=>{x.getPlayingState()==="errored"&&_({id:"player-error",priority:100,duration:0,showOnMobile:!0,timeSensitive:!0,render:({dismiss:e})=>o(ci,{removeNotification:e})})}},[t])}i();r();var Pi=T(I());i();r();var hi=T(I());i();r();var Jn=m.div(({isSiteDarkMode:t})=>{let e=t?H:u;return{...Qo(K["body-5"]),color:e["icn-txt-prim"],fontFamily:"system-ui, sans-serif"}}),gi={Description:Jn};var yi=()=>{let t=et(),e=(0,hi.useMemo)(()=>ot(),[]);if(!e)return null;let{description:s,icon:n,videoSrc:a}=e;return o(Z,{width:312,onClose:tt,headerIcon:n,showDismiss:!0,isSiteDarkMode:t},o(gi.Description,{isSiteDarkMode:t},s),o(Ho,{src:a,style:{marginTop:"8px"},autoPlay:!0,muted:!0,replayDelay:2e3}))};var Qn=async()=>{let{inlinePlayerNotification:t}=await Ce(!0);return t?Ir(new Date(t.lastSeen),new Date)>=5:!0},Si=t=>{let e=x.useTime().totalEstimatedDuration>0,s=async()=>{e||(await E("inline-player-first-time-popup"),!(ot()&&await Qn()))||await _({id:"inline-player-first-time-popup",priority:151,showOnMobile:!1,timeSensitive:!1,redesigned:!0,render:()=>o(yi,null)})};(0,Pi.useEffect)(()=>{t==="browser-action"&&s()},[t])};i();r();var Lo=T(I());function Vt(){let t=l=>{E("no-client-voices"),Vr("no-client-voices"),R("extension_no_client_voices_notification_shown",{action:l})},e=l=>{l.key==="Escape"&&t("escape")};(0,Lo.useEffect)(()=>(window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}),[]);let s=()=>{t("close")},n=(0,Lo.useCallback)(()=>{let l=Ae();if(!l){R("extension_no_client_voices_notification_shown",{action:"no download url"});return}mo(l),t("download")},[]),a=(0,Lo.useCallback)(()=>{t("upgrade"),qo("pill_player_settings_upsell","global",!0)},[]);return o(D,{xAlign:!0,column:!0,separation:"8px"},o(U.Container,null,o(U.Header,null,o(U.HeaderLogo,null,o(Re,null),o(Be,null))),o(U.Body,null,"We couldn’t find any free voices on your device. To begin listening:",o(U.DownloadButton,{onClick:n},"Download Language Pack",o(U.DownloadButtonIcon,null,o(Ke,null))),o(U.UpsellButton,{onClick:a},o(jo,null),o("span",null,"Upgrade to Premium"))),o(U.Footer,null,"To dismiss hint — press",o(U.Key,null,"esc"))),o(U.AbsoluteCloseIcon,{onClick:s}))}i();r();var qt=T(I());i();r();var L=T(I());function yt(){let[t,e]=(0,L.useState)(!1),[s,n]=(0,L.useState)(!1),a=(0,L.useRef)(!1),l=x.useTime(),f=x.useCurrentContent(),{shortcuts:g}=ho(),h=(0,L.useMemo)(()=>{let c=g["open-screenshot-mode"]?.shortcut,w=(s?`No Text Detected.
Try Capture & Listen.`:"Capture & Listen").split(`
`).map((M,B)=>o(L.Fragment,{key:B},B>0&&o("br",null),M));return o("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},o("div",null,w),c&&o(go,{keys:c}))},[s,g]),P=(0,L.useCallback)(()=>{e(!1)},[]);return(0,L.useEffect)(()=>{let c;return f&&(l.isLoading===!1&&l.totalEstimatedDuration<=0?(n(!0),a.current||(a.current=!0,e(!0),c=setTimeout(()=>{P()},3e3))):n(!1)),()=>{c&&clearTimeout(c)}},[f,l]),{closeTooltip:P,forceShowTooltip:t,noTextDetected:s,tooltipContent:h}}i();r();i();r();var Ri=T(I());i();r();var Gt=T(I());var Hn=100,os=100,ts=50,Ci=50,xi=50;function Ei({className:t,counterClockwise:e,dashRatio:s,pathRadius:n,strokeWidth:a,xOffset:l=0,yOffset:f=0}){return o("path",{className:t,d:es({pathRadius:n,counterClockwise:e,positionX:Ci+l,positionY:xi+f}),fillOpacity:0,strokeWidth:a,style:Object.assign({},rs({pathRadius:n,dashRatio:s,counterClockwise:e}))})}function es({pathRadius:t,counterClockwise:e,positionX:s=Ci,positionY:n=xi}){let a=t,l=e?1:0;return`
      M ${s},${n}
      m 0,-${a}
      a ${a},${a} ${l} 1 1 0,${2*a}
      a ${a},${a} ${l} 1 1 0,-${2*a}
    `}function rs({counterClockwise:t,dashRatio:e,pathRadius:s}){let n=Math.PI*2*s,a=(1-e)*n;return{strokeDasharray:`${n}px ${n}px`,strokeDashoffset:`${t?-a:a}px`}}var is=m.div`
  width: ${({size:t})=>t??"24px"};
  height: ${({size:t})=>t??"24px"};
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
`,ns=m.svg`
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  vertical-align: middle;
  display: flex;
  align-items: center;

  .CircularProgressBarPath {
    stroke: #4759f7;

    &.AiCircularProgressBarPath {
      stroke: url(#aiProgressGradient);
    }
  }

  .CircularProgressBarTrail {
    stroke: #2d2d2f;
  }
  .CircularProgressBarBackground {
    fill: #4759f7;

    &.AiCircularProgressBarBackground {
      fill: url(#aiProgressGradient);
    }
  }

  &:hover {
    .CircularProgressBarPath {
      stroke: #4454e3;

      &.AiCircularProgressBarPath {
        stroke: url(#aiProgressGradientHover);
      }
    }
    .CircularProgressBarBackground {
      fill: #4454e3;

      &.AiCircularProgressBarBackground {
        fill: url(#aiProgressGradientHover);
      }
    }
  }

  &:active {
    .CircularProgressBarPath {
      stroke: #3d4ac4;

      &.AiCircularProgressBarPath {
        stroke: url(#aiProgressGradientActive);
      }
    }
    .CircularProgressBarBackground {
      fill: #3d4ac4;

      &.AiCircularProgressBarBackground {
        fill: url(#aiProgressGradientActive);
      }
    }
  }
`,ss=m(Ei)`
  stroke-linecap: round;
`,as=m(Ei)`
  transition: stroke-dashoffset 0.5s ease 0s;
`,ls=t=>{let{circleRatio:e=1,counterClockwise:s=!1,maxValue:n=100,minValue:a=0,strokeWidth:l=24,value:f=0,size:g="24px",variant:h="speechify"}=t,P=(0,Gt.useMemo)(()=>ts-l/2,[l]),c=(0,Gt.useMemo)(()=>(Math.min(Math.max(f,a),n)-a)/(n-a),[f,a,n]);return o(is,{size:g},o(ns,{viewBox:`0 0 ${Hn} ${os}`,"data-test-id":"CircularProgressbar"},o("defs",null,o("linearGradient",{id:"aiProgressGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%"},o("stop",{offset:"0%",stopColor:"#EA6AFF"}),o("stop",{offset:"100%",stopColor:"#6B78FC"})),o("linearGradient",{id:"aiProgressGradientHover",x1:"0%",y1:"0%",x2:"100%",y2:"0%"},o("stop",{offset:"0%",stopColor:"#E055F5"}),o("stop",{offset:"100%",stopColor:"#5F6DEF"})),o("linearGradient",{id:"aiProgressGradientActive",x1:"0%",y1:"0%",x2:"100%",y2:"0%"},o("stop",{offset:"0%",stopColor:"#D640EB"}),o("stop",{offset:"100%",stopColor:"#5362E2"}))),o(ss,{counterClockwise:s,dashRatio:e,pathRadius:P,strokeWidth:l,className:"CircularProgressBarTrail"}),o(as,{counterClockwise:s,dashRatio:c*e,pathRadius:P,strokeWidth:l,className:["CircularProgressBarPath",h==="ai"?"AiCircularProgressBarPath":""].filter(Boolean).join(" ")})))},Ti=ls;i();r();i();r();var Ii=t=>o("svg",{"aria-label":C("PILL_PLAYER_REPEAT_ICON"),"data-testid":y.PILL_PLAYER_REPEAT_ICON,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},o("g",{id:"icons/20"},o("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M12.3391 5.13296C11.4074 3.72588 9.81131 2.79995 8.00001 2.79995C5.12813 2.79995 2.80001 5.12807 2.80001 7.99995C2.80001 10.8718 5.12813 13.1999 8.00001 13.1999C10.6694 13.2 12.87 11.1879 13.1661 8.5981C13.2162 8.15913 13.6128 7.84396 14.0518 7.89415C14.4907 7.94434 14.8059 8.34088 14.7557 8.77985C14.3683 12.1684 11.492 14.7999 8.00001 14.7999C4.24447 14.7999 1.20001 11.7555 1.20001 7.99995C1.20001 4.24441 4.24447 1.19995 8.00001 1.19995C10.2023 1.19995 12.159 2.24698 13.4011 3.86822V2.83237C13.4011 2.39054 13.7593 2.03237 14.2011 2.03237C14.6429 2.03237 15.0011 2.39054 15.0011 2.83237V5.93296C15.0011 6.37479 14.6429 6.73296 14.2011 6.73296L11.1005 6.73296C10.6587 6.73296 10.3005 6.37479 10.3005 5.93296C10.3005 5.49113 10.6587 5.13296 11.1005 5.13296L12.3391 5.13296Z",fill:"white"})));var vi=(t,e,s,n)=>t==="playing"?tr:n&&e&&s?ze:n&&!e?ke:t==="errored"?He:t==="ended"?Ii:or,Oi=(t,e,s,n)=>t==="playing"?"pause":n&&e&&s?"stop":n&&!e?"loading":t==="errored"?"alert":t==="ended"?"repeat":"play";i();r();i();r();var Yt=()=>u["sf-prim-cta"],wi=m(D)`
  // Reset button styles
  outline: none;
  border: none;

  background-color: ${({background:t,secondary:e})=>e?"transparent":t??Yt()};
  padding: ${({padding:t})=>t??"8px 16px"};
  cursor: pointer;
  border-radius: ${({borderRadius:t})=>t??"8px"};
  box-shadow: rgba(109, 117, 141, 0.2) 0 0 2px;
  color: ${({color:t,secondary:e,background:s})=>e?s??Yt():t??u["icn-txt-prim"]};
  ${({secondary:t,background:e})=>t&&`border: 2px solid ${e??Yt()}`};

  // For a tag
  text-decoration: none;
  box-sizing: border-box;
`.withComponent("button");var zt=m(wi)`
  border-radius: 20px;

  margin: 0;
  padding: 8px 12px;

  font-size: 12px;
  height: 40px; // Fixed height necessary for animations
  width: 100%;
`;zt.defaultProps={xAlign:!0,yAlign:!0};var Kt=()=>u["sf-prim-cta"],us=()=>vo`
 0% {
   transform: scale(.95);
   box-shadow: 0 0 0 0 ${Kt()}80;
 }
 70% {
   transform: scale(1);
   box-shadow: 0 0 0 12px ${Kt()}00;
 }
 100% {
   transform: scale(.95);
   box-shadow: 0 0 0 0 ${Kt()}00;
 }
`,ms=()=>fe`
  animation: ${us()} 1.5s infinite;
`,ps=m(zt)`
  ${({expanded:t,simple:e,minimal:s,pill:n,isPlayIconActive:a})=>t?"margin-right: 12px;":e?"width: 28px !important; height: 28px; border-radius: 50%;":s?"width: 36px !important; height: 36px; border-radius: 50%;":n?"width: 32px !important; height: 32px; border-radius: 50%;"+(a?"> svg { transform: translateX(1px); }":""):"width: 48px !important; height: 48px; border-radius: 50%;"};

  > span {
    white-space: nowrap;
  }

  svg {
    transition: 0.2s min-width;
    min-width: ${({expanded:t})=>t?"18px":"28px"};
    color: ${({centerWhite:t})=>t?u["icn-txt-white"]:u["icn-txt-prim-inv"]};
  }

  ${({glow:t})=>t&&ms};

  &:hover {
    scale: ${({minimal:t})=>t?"1.11":""};
  }
`,cs=m.div`
  position: absolute;
  width: 36px;
  height: 36px;
`,Bi=({children:t,expanded:e,glow:s,minimal:n,onClick:a,onMouseEnter:l,onMouseLeave:f,pill:g,progress:h=0,simple:P,state:c,playingHasStarted:v,variant:w="speechify",disabled:M,...B})=>{let[V,ro]=(0,Ri.useState)(!1),Do=vi(c,g,V,B.isLoading),Co=Oi(c,g,V,B.isLoading)==="play",b=C(c==="playing"?"PAUSE_BUTTON":"PLAY_BUTTON"),io=c==="playing"?y.PAUSE_BUTTON:y.PLAY_BUTTON;return o(p,null,o(ps,{"aria-label":b,"data-testid":io,expanded:e,glow:s&&e,minimal:n,onClick:wo(a),onMouseEnter:()=>{ro(!0),l?.()},onMouseLeave:()=>{ro(!1),f?.()},onTouchEnd:wo(a),pill:g,simple:P,isPlayIconActive:Co,...B},g&&v&&!M&&o(cs,null,o(Ti,{maxValue:100,minValue:0,size:"36px",strokeWidth:8,value:h*100,variant:w})),o(Do,{size:P?"16px":n||g?"20px":"24px"}),t),B.isLoading&&!V&&o(Rr,{variant:w}))};var ds=u["sf-prim-cta"],fs=u["sf-prim-cta-hov"],gs=u["sf-prim-cta-pres"],Ni="linear-gradient(180deg, #EA6AFF 0%, #6B78FC 100%)",hs="linear-gradient(180deg, #E055F5 0%, #5F6DEF 100%)",ys="linear-gradient(180deg, #D640EB 0%, #5362E2 100%)",Ps="transparent",Ss=u["sf-sec-hov-0-90"],Ai=u["sf-sec-pres-0-90"],bs=u["icn-txt-accent"],Cs=u["icn-txt-accent"],xs=u["icn-txt-accent"],Es=u["sf-prim-cta"],Ts=`
  background: ${u["bg-tert-20-60"]}; 
  cursor: default;

  & > svg {
    fill: ${u["icn-txt-tert"]};
  }

  &:hover, &:active {
    background: ${u["bg-tert-20-60"]} !important;

    & > svg {
      fill: ${u["icn-txt-tert"]} !important;
    }
  }
`,ki=m(Bi)`
  > svg {
    ${({playingHasStarted:t})=>t&&`fill: ${bs};`}
    max-height: ${({state:t})=>t==="playing"?"16px":"18px"};
  }

  background: ${({variant:t})=>t==="ai"?Ni:ds};
  ${({playingHasStarted:t})=>t&&`background: ${Ps};`}
  ${({disabled:t,isLoading:e})=>t||e?Ts:""}
  ${({isLoading:t})=>t?`& > svg {
        fill: ${u["icn-txt-prim"]};
      }`:""}

  ${({isLoading:t,variant:e})=>t&&`background: ${e==="ai"?Ni:Es};`}

  &:hover {
    background: ${({playingHasStarted:t,variant:e})=>t?Ss:e==="ai"?hs:fs};

    & > svg {
      ${({playingHasStarted:t})=>t&&`fill: ${Cs};`}
    }
  }

  &:active {
    background: ${({variant:t})=>t==="ai"?ys:gs};

    ${({playingHasStarted:t})=>t&&`background: ${Ai};`}

    & > svg {
      ${({playingHasStarted:t})=>t&&`fill: ${xs};`}
    }

    .CircularProgressBarTrail {
      stroke: ${Ai};
    }
  }
`;var Is=Ne()==="mac";function _i({isPDF:t,onClick:e,showSettingsOnRight:s}){let n=Po(!!t),{noTextDetected:a,tooltipContent:l}=yt(),{docTitle:f}=st(),{shortcuts:g}=ho(),h=x.useTime(),P=x.useProgress(),c=x.usePlayingState(),v=x.useCurrentContent()?.metadata.source,w=wr(no=>no.status==="recording"),{pause:M,play:B,stop:V}=po,ro=(0,qt.useMemo)(()=>{let no=g["play-pause-new"]?.shortcut||g["play-pause"]?.shortcut,so;switch(c){case"playing":so="Pause";break;case"buffering":so="Stop";break;default:so="Play"}return o(p,null,so," ",no&&o(go,{keys:no}))},[Is,c,g]),Co=Ur(()=>(e?.(),c==="playing"?M():c==="buffering"?V():B())),b=c==="playing"||c==="paused"&&P>0,io=c==="playing"||c==="buffering",Uo=h.totalEstimatedDuration>0,$o=(0,qt.useMemo)(()=>w?!0:!Uo&&(t||!f||a&&!io),[Uo,t,f,a,io,w]);return o(O,{showOnRight:s,text:$o||t?null:n==="screenshot-only"?l:ro,isPlayButton:!0},o(ki,{centerWhite:!0,duration:h.isLoading===!0?0:h.totalEstimatedDuration,onClick:Co,pill:!0,progress:P,state:c,isLoading:c==="buffering",disabled:$o,playingHasStarted:b,variant:v==="Keypoints"?"ai":"speechify"}))}i();r();var $=T(I());function Xt({children:t,isCollapsed:e}){let[s,n]=(0,$.useState)(t),a=(0,$.useRef)(null),[l,f]=(0,$.useState)("auto");(0,$.useEffect)(()=>{if(!a.current)return;let P=()=>{let w=a.current?.getBoundingClientRect().height;f(w?w+"px":"auto")},c=new MutationObserver(P);c.observe(a.current,{childList:!0});let v=setTimeout(P,Lt);return()=>{c.disconnect(),clearTimeout(v)}},[t]);let g=(0,$.useRef)();(0,$.useEffect)(()=>(clearTimeout(g.current),e?n(t):g.current=window.setTimeout(()=>n(t),Lt/2),()=>clearTimeout(g.current)),[e,t]);let h=(0,$.useCallback)(P=>{mt()&&P.target.closest("button")&&P.preventDefault()},[]);return o(p,null,o(mr,{height:l,relative:!0,onMouseDown:h,"data-visible-player":"true"},s),o(pr,{ref:a,height:"auto","data-testid":y.IGNORED,isDraggingEnabled:!1},t))}i();r();var Ui=T(I());i();r();var Os=()=>document.querySelector("#docs-title-input-label-inner")?.textContent,Li=t=>{let e=he.speechifyWebApp.baseUrl;mo(`${e}?importService=google-drive&importFilename=${t}`)},Mi=({background:t,children:e,logEventOnClick:s,source:n,...a})=>{let{saveToMobile:l,SaveToMobileIcon:f,SaveToMobilePillIcon:g}=Jo(n),{docTitle:h}=st(),P=()=>{if(yo()&&h)Li(h);else if(j()){let c=Os();if(!c){pe(new Error("No google docs title while clicking on save to library button"));return}Li(c)}else l()};return o(rr,{onClick:No(c=>{wo(P)(c),s&&s()}),background:t??"transparent",...a},n==="Pill Player"||n==="PDF"?o(g,null):o(f,null),e)},Di=m(Mi)`
  width: 32px;
  height: 32px;

  & > svg {
    height: 20px !important;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px !important;
  }

  &:hover {
    background-color: ${u["sf-sec-hov-0-80"]};
  }

  &:active {
    background-color: ${u["sf-sec-pres-0-80"]};
  }
`,tc=er(Mi);function $i({isPDF:t,showSettingsOnRight:e}){let{shortcuts:s}=ho(),{saveToMobileStatus:n}=Jo("Pill Player"),a=(0,Ui.useMemo)(()=>{if(n==="saving")return"Saving file to your library";let l=s["save-to-library"]?.shortcut;return n==="saved"?o(p,null,"View in Library",o(qe,{style:{marginLeft:"6px",marginBottom:"2px"}})):n==="failed"?"Error saving to library":o(p,null,"Save to Library ",l&&o(go,{keys:l}))},[n,s]);return o(O,{showOnRight:e,text:a},o(Di,{"aria-label":C("SAVE_TO_LIBRARY"),"data-testid":y.SAVE_TO_LIBRARY,boxShadow:"none",color:u["icn-txt-prim"],logEventOnClick:()=>{k("bookmark"),X("SHOULD_SHOW_BOOKMARK_FEATURE_HINT",!1)},source:t?"PDF":"Pill Player"}))}i();r();var Fi=T(I());var Rs=m(ar)`
  &:hover {
    svg {
      opacity: 0.75;
    }
  }

  &:active {
    svg {
      opacity: 0.5;
    }
  }

  svg {
    width: 20px;
    height: 20px;
  }
`,Bs=m.div`
  ${K["body-7"]};
  color: ${u["icn-txt-prim"]};
  display: flex;
  align-items: center;
  gap: 8px;
`,Wi=({showTooltipOnRight:t})=>{let{exitScreenshotMode:e}=je(),s=(0,Fi.useCallback)(async()=>{e(),Go("screenshotHint",{lastSeen:new Date})},[]);return o(O,{verticalAlignment:60,showOnRight:t,text:o(Bs,null,"Exit Capture and Listen",o(Xe.Key,null,"Esc"))},o(Rs,{"aria-label":C("OCR_CLOSE_ICON"),"data-testid":y.OCR_CLOSE_ICON,onClick:s},o(Fe,null)))};i();r();var tn=T(I());i();r();var Ns=u["sf-sec-hov-0-80"],Zt=u["sf-sec-pres-0-80"],Vi=`
  &:hover {
    background-color: ${Ns};
  }

  &:active {
    background-color: ${Zt};
  }
`,Gi=m.button`
  background: unset;
  border-radius: 50%;
  border: unset;
  cursor: pointer;
  height: 32px;
  outline: unset;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  width: 32px;

  & > svg {
    height: 96% !important;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 96% !important;
  }

  & > img {
    height: 80% !important;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80% !important;
  }

  ${Vi}

  ${({active:t})=>t&&`background-color: ${Zt};`}
`,As=m(Gi)`
  background: unset !important;
  img {
    &:hover {
      background: ${u["sf-prim-w-90"]};
    }

    ${({active:t})=>t?`background: ${u["sf-prim-w-80"]};`:""}
  }
`,to=({onClick:t,...e})=>o(Gi,{onClick:No(t),...e}),Yi=({onClick:t,...e})=>o(As,{onClick:No(t),...e}),jt=m(Nt)`
  background: unset;
  border: unset;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  min-height: 16px;
  min-width: 16px;
  outline: unset;
  height: 16px;
  width: 16px;
  padding: 0;

  & > svg {
    height: 16px;
    width: 16px;
  }

  ${Vi}
`,zi=m(to)`
  opacity: ${({disabled:t})=>t?.5:1};

  & > svg {
    height: 20px !important;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px !important;
  }
`,Ki=m(to)`
  & > svg {
    height: 20px !important;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px !important;
  }
`,qi=m(to)`
  & > svg {
    height: 20px !important;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px !important;
  }
`,Xi=m(to)`
  & > svg {
    height: 20px !important;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px !important;
  }
`,Zi=m(to)`
  & > svg {
    height: 24px !important;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px !important;
  }
`,ji=m.button`
  display: flex;
  background: ${u["sf-prim-w-80"]};
  border: unset;
  border-radius: 50%;
  cursor: pointer;
  outline: unset;
  padding: 0;

  & > svg path {
    fill: ${u["icn-txt-sec"]};
    height: 20px !important;
    width: 20px !important;
  }

  &:hover {
    background: ${u["sf-prim-w-80"]};
    & > svg path {
      fill: ${u["icn-txt-prim"]};
    }
  }
`,Ji=m(Nt)`
  width: 48px;
  height: 48px;
  background: unset;

  &:hover {
    & > svg {
      opacity: 0.75;
    }
  }

  &:active {
    background-color: ${Zt};
  }

  & > svg {
    height: 20px;
    width: 20px;
    fill: ${u["icn-txt-prim"]};
  }
`;i();r();var Qt=T(I());i();r();var ks=m.div(({isDarkMode:t})=>{let e=t?H:u;return{...Qo(K["body-5"]),display:"flex",flexDirection:"column",gap:"10px",color:e["icn-txt-prim"]}}),Qi=m.div`
  display: flex;
  gap: 6px;
  align-items: center;
`,Hi=()=>{let t=et();return o(Z,{width:312,onClose:()=>{E("screenshot-initial-hint-popup"),Go("screenshotInitialHint",{lastSeen:new Date})},showDismiss:!0,isSiteDarkMode:t},o(ks,{isDarkMode:t},o(Qi,null,"No text detected, but you can click"),o(Qi,null,o(Zo,null),"to select text and listen to it.")))};var Jt=()=>E("screenshot-initial-hint-popup"),on=t=>{let e=Po(t),{screenshotInitialHint:s}=Y(),{isLoading:n}=x.useTime(),a=async()=>{await Jt(),await ve(100);let{time:{totalEstimatedDuration:l,isLoading:f}}=x.getState();t||l>0||f||s?.lastSeen&&vr(new Date(s.lastSeen),new Date)||await _({id:"screenshot-initial-hint-popup",priority:101,showOnMobile:!1,timeSensitive:!1,redesigned:!0,render:()=>o(Hi,null)})};(0,Qt.useEffect)(()=>{pt()||j()||yo()||(n?Jt():a())},[n]),(0,Qt.useEffect)(()=>()=>{Jt()},[e])};function Ht({disabled:t,showTooltipOnRight:e,isPDF:s}){on(!!s);let{closeTooltip:n,tooltipContent:a}=yt(),l=(0,tn.useCallback)(async()=>{await E("screenshot-hint-popup"),await E("screenshot-initial-hint-popup"),k("screenshot"),n(),!t&&(Io("init",{},"screenshot-mode"),await Or("pill-player"))},[t]);return o(O,{disabled:!!t,showOnRight:e,text:a},o(zi,{"aria-label":C("OCR_ICON"),"data-testid":y.OCR_ICON,disabled:!!t,onClick:l},o(Zo,null)))}i();r();i();r();var Mo=T(I());i();r();var en=t=>o("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 9C14 11.7614 11.7614 14 9 14C6.23858 14 4 11.7614 4 9C4 6.23858 6.23858 4 9 4C11.7614 4 14 6.23858 14 9ZM13.1927 14.606C12.0241 15.4814 10.5726 16 9 16C5.13401 16 2 12.866 2 9C2 5.13401 5.13401 2 9 2C12.866 2 16 5.13401 16 9C16 10.5721 15.4818 12.0231 14.6068 13.1916L17.7914 16.3762C18.1819 16.7668 18.1819 17.3999 17.7914 17.7904C17.4009 18.181 16.7677 18.181 16.3772 17.7904L13.1927 14.606Z",fill:"currentColor"}));i();r();var _s=({isInputFocused:t})=>`
  width: 312px;
  background: ${u["bg-prim-w-90"]} !important;
  outline: 1.5px solid ${u["brdr-prim-10-80"]};

  svg {
    color: ${u["icn-txt-tert"]};
  }

  &:hover {
    outline-color: ${u["brdr-prim-hov"]};
  }

  ${t?`
    outline: 1.5px solid ${u["brdr-prim-foc"]} !important;
    svg {
      color: ${u["icn-txt-prim"]};
    }
  `:""}

`,Ls=m.div`
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  width: 36px;
  box-sizing: border-box;
  background: ${u["sf-sec-0-90"]};
  transition: 0.2s width;

  svg {
    color: ${u["icn-txt-prim"]};
    flex-shrink: 0;
  }

  &:hover {
    background: ${u["sf-sec-hov-0-90"]};
  }

  &:active {
    background: ${u["sf-sec-pres-0-90"]};
  }

  ${({isExpanded:t,isInputFocused:e})=>t?_s({isInputFocused:e}):""}
`,Ms=m.div`
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: 12px;

  button {
    padding: 0;
  }
`,oe={Search:Ls,SearchWrapper:Ms};var Ds=m("input")`
  box-sizing: border-box;
  background-color: transparent;
  color: ${u["icn-txt-prim"]};
  ${K["body-6"]}
  font-family: system-ui, sans-serif;
  border: none;
  outline: none;
  width: 100%;
  padding: 0;
  height: 20px;

  &::placeholder {
    color: ${u["icn-txt-tert"]};
  }
`,rn=()=>{let{searchExpanded:t}=Ro(),e=(0,Mo.useRef)(null),[s,n]=(0,Mo.useState)(!0),[a,l]=(0,Mo.useState)(!1),{search:f}=Ro(),g=()=>{t||(Bo.toggleSearch(!0),n(!1),setTimeout(()=>{n(!0),setTimeout(()=>e.current?.focus(),0)},200))},h=()=>{Bo.toggleSearch(!1),Bo.setSearch("")};return o(oe.SearchWrapper,{isExpanded:t},o(oe.Search,{isExpanded:t,isInputFocused:a,onClick:g},o(en,null),t&&s&&o(Ds,{id:"voices-search","aria-label":"Search voices",ref:e,value:f,onChange:P=>Bo.setSearch(P.target.value),autoFocus:!0,onFocus:()=>l(!0),onBlur:()=>l(!1),placeholder:"Search for languages, accents"})),t&&s&&o(lt,{onClick:h},"Cancel"))};var Us=m.button`
  background: unset;
  border: unset;
  color: ${u["icn-txt-prim"]};
  cursor: pointer;
  display: flex;
  outline: unset;
  padding: 0;
  margin-top: 4px;

  > svg {
    width: 20px !important;
    height: 20px !important;
    color: ${u["icn-txt-prim"]};

    &:hover {
      opacity: 0.75;
    }

    &:active {
      opacity: 0.5;
    }
  }
`,tf=m.button`
  background: unset;
  border: unset;
  cursor: pointer;
  display: flex;
  outline: unset;
  align-items: flex-start;
  gap: 0px;
  padding: 0px;
  margin-top: 0px;
`,$s=m.div`
  position: absolute;
  right: ${({alignLeft:t})=>t?"4px":"16px"};
  top: ${({hasTitle:t,showSearch:e})=>t?e?"16px":"8px":"16px"};
`,Fs=m.div`
  align-items: center;
  align-self: stretch;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  padding: ${({hasTitle:t})=>t?"12px 16px":"20px 16px 4px"};
  position: relative;
  min-height: 44px;
  box-sizing: border-box;
  position: relative;
  ${({showSearch:t})=>t?"height: 60px;":""}
`,nn=({alignLeft:t,onClose:e,showSearch:s=!1,titleContent:n})=>{let{searchExpanded:a}=Ro();return o(Fs,{hasTitle:!!n,showSearch:s},s&&o(rn,null),!a&&o(sr,{alignLeft:t},n),!a&&o($s,{alignLeft:t,hasTitle:!!n,showSearch:s},o(Us,{"data-testId":"Close Side Panel",onClick:e},o(Xo,null))))};i();r();var sn=m.div`
  font-family: system-ui, sans-serif;
  height: 100%;
  ${({isPopupDesign:t})=>t?"":"min-width: 240px;"}
  padding: 0;
  width: 100%;
`,Ws=(t,e)=>t?.startsWith("/help")?"top: 80px;":t?.startsWith("/featureprompt/skipsentences")?"top: 46px;":e?"bottom: -8px;":"top: -12px;",an=m(D)`
  animation: ${({visible:t=!1})=>t?nr:void 0} 0.2s ease-out;
  background: ${u["bg-sec-0-100"]};
  border-radius: 12px;
  box-shadow: 0px 0px 0px 0px rgba(106, 120, 252, 0.5), 0px 0px 2px 0px rgba(106, 120, 252, 0.49),
    0px 0px 3px 0px rgba(106, 120, 252, 0.43), 0px 0px 4px 0px rgba(106, 120, 252, 0.25),
    0px 0px 4px 0px rgba(106, 120, 252, 0.07), 0px 0px 5px 0px rgba(106, 120, 252, 0.01);
  ${({isPopupDesign:t})=>t?"box-shadow: none;":""};
  cursor: default;
  ${({showOnRight:t=!1})=>t?"left: 60px;":"right: 60px;"}
  ${({route:t,showPointer:e})=>!t?.startsWith("/voices")&&!e&&"overflow: hidden;"}
  position: absolute;
  ${({showOnBottom:t,route:e})=>Ws(e,t)}
  visibility: ${({visible:t=!1})=>t?"visible":"hidden"};

  ${({showPointer:t,showOnRight:e})=>t?`
      &::after {
        content: '';
        position: absolute;
        top: 28px;
        ${e?`
              left: -8px;
              border-right: 8px solid #1e1e1e;
            `:`
              right: -8px;
              border-left: 8px solid #1e1e1e;
            `}
        transform: translateY(-50%);
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
      }
    `:""}
`;i();r();var mn=T(I());i();r();var bo=T(I());var ln=()=>{let t=(0,bo.useRef)(),[e,s]=(0,bo.useState)(!1);return(0,bo.useEffect)(()=>{let n=Vo.on("speedUpdate",({isAutoIncrease:a})=>{a&&(s(!0),t.current=window.setTimeout(()=>{s(!1)},3e3))});return()=>{n(),t.current&&clearTimeout(t.current)}},[]),{showSpeedRampAnimation:e}};i();r();var Vs=()=>o("div",{style:{width:"14px",height:"17px",position:"relative"}},o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 17",width:"14",height:"17",preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"100%"}},o("defs",null,o("radialGradient",{id:"speedRampGradient",spreadMethod:"pad",gradientUnits:"userSpaceOnUse",cx:"-4.809000015258789",cy:"-0.949999988079071",r:"10.190258807587085",fx:"-4.809000015258789",fy:"-0.949999988079071"},o("stop",{offset:"0%",stopColor:"rgb(234,106,255)"}),o("stop",{offset:"50%",stopColor:"rgb(171,113,253)"}),o("stop",{offset:"100%",stopColor:"rgb(107,120,252)"}))),o("g",{className:"arrow-1"},o("path",{fill:"url(#speedRampGradient)",d:"M-0.7070000171661377,-2.7070000171661377 C-0.3160000145435333,-3.0980000495910645 0.3160000145435333,-3.0980000495910645 0.7070000171661377,-2.7070000171661377 C0.7070000171661377,-2.7070000171661377 4.706999778747559,1.2929999828338623 4.706999778747559,1.2929999828338623 C5.0980000495910645,1.684000015258789 5.0980000495910645,2.315999984741211 4.706999778747559,2.7070000171661377 C4.315999984741211,3.0980000495910645 3.684000015258789,3.0980000495910645 3.2929999828338623,2.7070000171661377 C3.2929999828338623,2.7070000171661377 0,-0.5860000252723694 0,-0.5860000252723694 C0,-0.5860000252723694 -3.2929999828338623,2.7070000171661377 -3.2929999828338623,2.7070000171661377 C-3.684000015258789,3.0980000495910645 -4.315999984741211,3.0980000495910645 -4.706999778747559,2.7070000171661377 C-5.0980000495910645,2.315999984741211 -5.0980000495910645,1.684000015258789 -4.706999778747559,1.2929999828338623 C-4.706999778747559,1.2929999828338623 -0.7070000171661377,-2.7070000171661377 -0.7070000171661377,-2.7070000171661377z"})),o("g",{className:"arrow-2"},o("path",{fill:"url(#speedRampGradient)",d:"M-0.7070000171661377,-2.7070000171661377 C-0.3160000145435333,-3.0980000495910645 0.3160000145435333,-3.0980000495910645 0.7070000171661377,-2.7070000171661377 C0.7070000171661377,-2.7070000171661377 4.706999778747559,1.2929999828338623 4.706999778747559,1.2929999828338623 C5.0980000495910645,1.684000015258789 5.0980000495910645,2.315999984741211 4.706999778747559,2.7070000171661377 C4.315999984741211,3.0980000495910645 3.684000015258789,3.0980000495910645 3.2929999828338623,2.7070000171661377 C3.2929999828338623,2.7070000171661377 0,-0.5860000252723694 0,-0.5860000252723694 C0,-0.5860000252723694 -3.2929999828338623,2.7070000171661377 -3.2929999828338623,2.7070000171661377 C-3.684000015258789,3.0980000495910645 -4.315999984741211,3.0980000495910645 -4.706999778747559,2.7070000171661377 C-5.0980000495910645,2.315999984741211 -5.0980000495910645,1.684000015258789 -4.706999778747559,1.2929999828338623 C-4.706999778747559,1.2929999828338623 -0.7070000171661377,-2.7070000171661377 -0.7070000171661377,-2.7070000171661377z"}))),o("style",null,`
          .arrow-1 {
            transform: translate(7px, 4.992px);
            opacity: 0;
            animation: fadeInUp 1.017s cubic-bezier(0.34, 1, 0.14, 1) forwards;
            will-change: transform, opacity;
          }
          
          .arrow-2 {
            transform: translate(7px, 11.008px);
            opacity: 0;
            animation: fadeInUpDelayed 1.017s cubic-bezier(0.34, 1, 0.14, 1) forwards ;
            will-change: transform, opacity;
          }
          
          @keyframes fadeInUp {
            0% {
              opacity: 0;
              transform: translate(7px, 14.492px);
            }
            24.6% {
              opacity: 0;
              transform: translate(7px, 14.492px);
            }
            41% {
              opacity: 1;
              transform: translate(7px, 4.992px);
            }
            100% {
              opacity: 1;
              transform: translate(7px, 4.992px);
            }
          }
          
          @keyframes fadeInUpDelayed {
            0% {
              opacity: 0;
              transform: translate(7px, 14.492px);
            }
            16.4% {
              opacity: 0;
              transform: translate(7px, 14.492px);
            }
            57.4% {
              opacity: 1;
              transform: translate(7px, 11.008px);
            }
            100% {
              opacity: 1;
              transform: translate(7px, 11.008px);
            }
          }
        `)),un=Vs;var pn=({showOnRight:t,route:e,toggleRoute:s})=>{let{autoSpeedUp:n,playbackSpeed:a}=Y(),{showSpeedRampAnimation:l}=ln(),f=()=>{R("extension_usage_speed_controller_opened",{source:"pill_player"}),s("/speed")},g=(0,mn.useMemo)(()=>{let h=parseFloat((a??1).toFixed(2)).toString();return h.length>3?h:`${h}x`},[a]);return o(O,{showOnRight:t,text:"Set Speed"},o(to,{"aria-label":C("PLAYBACK_SPEED_MENU_BUTTON"),"data-testid":y.PLAYBACK_SPEED_MENU_BUTTON,active:e==="/speed",onClick:f},o(co,{bold:!0,fontSize:"14px",lineHeight:"20px"},g)),n&&o(br,null,l?o(un,null):o(Ye,null)))};i();r();var Pt=T(I());i();r();var cn=t=>o(Ko,{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-label":C("LISTENING_BAR_SUMMARIZE_SIDEPANEL"),"data-testid":y.LISTENING_BAR_SUMMARIZE_SIDEPANEL,...t},o("path",{d:"M10 6.66663L10 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),o("path",{d:"M3.33301 8.33337L3.33301 10.8334",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),o("path",{d:"M16.667 8.33337L16.667 10.8334",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),o("path",{d:"M6.66699 4.16663L6.66699 12.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),o("path",{d:"M13.333 5L13.333 12.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}));var Gs=ye("PillPlayerSummarizeButton"),Ys=m(O)`
  & [aria-roledescription='tooltip'] {
    right: 58px;
  }
`,dn=(0,Pt.forwardRef)(function({isDisabled:e=!1,onClick:s,showOnRight:n=!1},a){let l=Er(),{updateAvailable:f}=ut(),g=!l||Se(l),h=(0,Pt.useCallback)(async()=>{R("extension_sidepanel_summarize_btn_clicked",{source:"pill_player"}),k("summarize");try{await Fr("/")}catch(c){Gs.error("🔴 [PILL-PLAYER] Failed to open side panel or request summarization:",c)}s?.()},[s]);return g||e?null:o(fr,{ref:a,style:{marginBottom:f?58:0}},o(Ys,{visible:!0,showOnRight:n,text:"Talk to Assistant",disableRelative:!0},o(Ji,{"aria-label":C("SUMMARIZE_BUTTON"),"data-testid":y.SUMMARIZE_BUTTON,onClick:h},o(cn,{style:{width:22,height:22}}),o($r,null))))});i();r();i();r();function te(){return o(Ko,{width:"18",height:"20",viewBox:"0 0 18 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},o("path",{d:"M11.0049 0.461452C11.0049 0.0159997 11.5435 -0.207084 11.8585 0.107898L15.0656 3.31501C15.2608 3.51027 15.2608 3.82685 15.0656 4.02211L11.8585 7.22922C11.5435 7.5442 11.0049 7.32112 11.0049 6.87567V4.31028C8.8951 3.58012 6.45125 4.06198 4.75705 5.75618C3.58074 6.93248 2.98925 8.46796 2.98143 10.005C2.97862 10.5573 2.52864 11.0027 1.97636 10.9999C1.42408 10.9971 0.978651 10.5471 0.981459 9.99487C0.99185 7.95088 1.78005 5.90475 3.34283 4.34197C5.42221 2.26259 8.35342 1.55518 11.0049 2.22499V0.461452Z"}),o("path",{d:"M6.99465 17.7754V19.5384C6.99465 19.9839 6.45608 20.207 6.1411 19.892L2.93399 16.6849C2.73873 16.4896 2.73873 16.173 2.93399 15.9778L6.1411 12.7707C6.45608 12.4557 6.99465 12.6788 6.99465 13.1242V15.6898C9.10524 16.4217 11.5508 15.9402 13.2459 14.2451C14.4225 13.0685 15.014 11.5325 15.0216 9.99506C15.0243 9.44278 15.4742 8.99726 16.0264 8.99996C16.5787 9.00266 17.0242 9.45256 17.0215 10.0048C17.0115 12.0494 16.2233 14.0961 14.6602 15.6593C12.5799 17.7396 9.64704 18.4467 6.99465 17.7754Z"}))}var zs="background: linear-gradient(0, #111112 0%, #2F220E 40%, #5A4015 100%);",Ks="background: linear-gradient(0, #111112 0%, #2D0606 40%, #690E0E 100%);",qs=vo`
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
`,Xs=vo`
  from {
    visibility: hidden;
    opacity: 0;
  }
  to {
    visibility: visible;
    opacity: 1;
  }
`,Zs=m.button`
  animation: ${Xs} 0s linear 300ms forwards, ${qs} 0.2s ease-in-out 300ms forwards;
  border-radius: 100px 100px 0 0;
  border: none;
  cursor: pointer;
  display: block;
  height: 78px;
  margin-bottom: -20px;
  opacity: 0;
  outline: none;
  padding: 0px;
  position: absolute;
  top: -58px;
  visibility: hidden;
  width: 48px;

  > div {
    color: ${({unsupported:t})=>t?" #FF463C":"#FBB13B"};
    margin-top: -20px;
    transition: opacity 0.2s ease-in-out;

    > span {
      font-size: 11px;
      font-weight: 700;
    }
  }

  &:hover {
    > div {
      opacity: 0.8;
    }
  }

  ${({unsupported:t})=>t?Ks:zs}
`;function ee({isInScreenshotMode:t}){let{updateAvailable:e,isLoading:s}=ut();return s||!e||t?null:o(Zs,{unsupported:e.critical,onClick:()=>{R("extension_update_clicked",{version:e.version,critical:e.critical}),Wr()}},o("div",null,o(te,null),o("span",null,"Update")))}i();r();var fn=({hasClientVoices:t,route:e,showOnRight:s,toggleRoute:n,isPremium:a})=>{let{voice:l}=Y(),f=x.usePlayingState(),g=()=>{R("extension_usage_voice_opened",{source:"pill_player"}),n("/voices")},h=()=>t?l&&l.avatarImage?o(Ze,{alt:"Selected Voice",flag:l.avatarImage,variant:"circle"}):o(Cr,null):o(xr,null);return o(O,{showOnRight:s,text:!t&&!a?"No Free Voices":"Change Voice"},o(Yi,{"aria-label":C("VOICE_MENU_BUTTON"),"data-testid":y.VOICE_MENU_BUTTON,active:e==="/voices",onClick:g,disabled:f==="buffering"},h()))};var gn=["/featureprompt","/help","/speed","/voices"];function js({animate:t,isPDF:e,noSaveToMobile:s,hideSummaryButton:n,root:a,triggerSource:l}){let[f,g]=(0,S.useState)(!0),[h,P]=(0,S.useState)(!1),[c,v]=(0,S.useState)(!1),[w,M]=(0,S.useState)(!1),[B,V]=(0,S.useState)(!1),ro=ct(),Do=ct(),{hidePlayerPill:Co,route:b}=ge(_r,["route","hidePlayerPill"]),io=(0,S.useRef)(null),Uo=(0,S.useCallback)(()=>h?!1:!gn.some(N=>b.startsWith(N)),[b,h]),{isMouseOver:$o,isMouseOverDelayed:xo,handleMouseOver:no,handleMouseOut:so,setIsMouseOut:Pn}=pi({checkIsMouseOut:Uo,onMouseOut:()=>{oo("/")},delayMs:800});fi(),Si(l);let Fo=(0,S.useMemo)(()=>new Audio,[]),{autoSpeedUp:Sn,screenshotMode:bn,hasSeenSettingsModal:Cn}=Y(),re=Ie(),{current:bt,NotificationBoard:xn}=Oo(),ao=Je(),{isDraggable:Ct}=bn??{isDraggable:!1,helpMode:!1},lo=(0,S.useMemo)(()=>!xo&&!h,[xo,h]),ie=(0,S.useMemo)(()=>xo||h,[xo,h]),{seekNext:En,seekPrevious:Tn,pause:In}=po,vn=x.useTimeLoading(),G=x.usePlayingState(),On=l!=="init"&&t,wn=(0,S.useMemo)(()=>ce({key:"player-emotion-cache",container:a}),[a]),xt=(0,S.useMemo)(()=>ao?ao.status==="expired"||!wt(ao):!1,[ao]),Wo=Mr(b),Et=(0,S.useMemo)(()=>Lr(b),[b]),ne=x.useTime(),se=!ne.isLoading&&ne.totalEstimatedDuration>0,Tt=G==="playing"||G==="buffering";(0,S.useEffect)(()=>{xt&&(async()=>{let uo=await be();if(g(uo),!uo&&se&&!Tt){if(await E("no-client-voices"),(await Yr("no-client-voices")).dismissedByUser)return;await _({duration:0,id:"no-client-voices",priority:151,showOnMobile:!1,timeSensitive:!0,render:()=>o(Vt,null)}),R("extension_no_client_voices_notification_shown",{action:"open"})}})()},[xt,se,Tt]),(0,S.useEffect)(()=>{if(!e)return()=>{Fo.pause()}},[e]),(0,S.useEffect)(()=>{(G==="playing"||G==="buffering"||G==="errored")&&Fo.pause()},[G]),(0,S.useEffect)(()=>{if(G==="playing"&&mt()){if(b==="/featureprompt/skipsentences"||re)return;oo("/featureprompt/skipsentences")}},[re,b,G]);let Eo=b!=="/voices"&&b!=="/speed";(0,S.useEffect)(()=>{if(!Eo)return;let N=kr(a,{onDrag:Rn});return()=>N()},[a,Eo]),(0,S.useEffect)(()=>{let N=uo=>{uo.type==="OPEN_SIDE_PANEL"||uo.type==="SIDE_PANEL_OPENED"?V(!0):uo.type==="SIDE_PANEL_CLOSED"&&V(!1)};return d.runtime.onMessage.addListener(N),()=>d.runtime.onMessage.removeListener(N)},[]);let It=(0,S.useCallback)(N=>{E("inline-player-first-time-popup"),oo(N===b?"/":N)},[b]),Rn=(0,S.useCallback)(N=>{M(N.top>window.innerHeight/2),v(N.left<window.innerWidth/2)},[Eo]);(0,S.useLayoutEffect)(()=>{a.style.bottom="15%"});let[Bn,ae]=(0,S.useState)(1);Kr(ae);let Nn=()=>b.startsWith("/voices")?{audioPlayer:Fo,hasClientVoices:f,route:b,showOnRight:c}:b.startsWith("/speed")?{playbackSpeed:Bn,setPlaybackSpeed:ae}:{},le=()=>{gn.some(N=>b.startsWith(N))&&Pn(!0),oo("/")};at(a,le);let An=async()=>{if(k("close"),!nt())return Io("browser-action",{animate:!1},"pill-player");await q("SKIP_CLOSE_PILL_PLAYER_MODAL")?await ht():(In(),Fo.pause(),_o.getState().showModal())},kn=(0,S.useCallback)(()=>{Tn(),b==="/featureprompt/skipsentences"&&oo("/")},[b]),_n=(0,S.useCallback)(()=>{En(),b==="/featureprompt/skipsentences"&&oo("/")},[b]),Ln=(0,S.useCallback)(()=>{k("upgrade_icon"),qo("pill_player_upsell")},[]),Mn=!n&&!j()&&!B;if(Co)return null;let vt=Po(e||!1),To=vt==="content",ue=vt==="screenshot-only"&&!To,Dn=(vt==="save-only"||!lo)&&!(ue||Ct)&&!s,me=bt?["screenshot-initial-hint-popup","screenshot-hint-popup"].includes(bt.id):!1,Un=me?52:0,$n=To;return o(de,{value:wn},o(mi,null),o(gr,{animate:!!On},Mn&&o(dn,{isDisabled:!f,ref:io,showOnRight:c}),o(cr,{onMouseOver:no,onMouseOut:so,isDraggingEnabled:Eo},o(ee,{isInScreenshotMode:Ct}),o(dr,{showContentButtons:To,isDurationLoading:vn,isDraggingEnabled:Eo},o(Pr,null,o(it,{showAnchor:me,topOffset:Un,ref:Do,showOnRight:c,visible:!!bt},o(rt,null,o(xn,null))),o(an,{isCollapsed:lo,ref:ro,route:b,showPointer:b.startsWith("/featureprompt"),showOnRight:c,showOnBottom:w,isPopupDesign:Wo.isPopupDesign,visible:!!Et},o(sn,{isPopupDesign:Wo.isPopupDesign},!Wo.isPopupDesign&&o(nn,{alignLeft:b.startsWith("/featureprompt"),onClose:le,showSearch:b==="/voices",titleContent:Wo.titleContent??""}),Et&&o(Et,{...Nn()}))),o(Xt,{isCollapsed:lo},o(yr,null,o(Qr,{isPDF:!!e}),o(_i,{...!f&&{isDisabled:!0},isPDF:e,showSettingsOnRight:c,onClick:tt}),!e&&To&&Tt&&o(p,null,o(D,{yAlign:!0,style:{position:"relative"}},o(O,{disableRelative:!0,showOnRight:c,text:"Skip Backward"},o(jt,{"aria-label":C("SKIP_SENTENCE_BACKWARD"),"data-testid":y.SKIP_SENTENCE_BACKWARD,onClick:kn},o($e,null))),o(O,{disableRelative:!0,showOnRight:c,text:"Skip Forward"},o(jt,{"aria-label":C("SKIP_SENTENCE_FORWARD"),"data-testid":y.SKIP_SENTENCE_FORWARD,onClick:_n},o(De,null))))),o(Mt,null)),!e&&To&&o(fo,{style:Sn?{overflow:"visible"}:{}},o(fn,{hasClientVoices:f,route:b,showOnRight:c,toggleRoute:It,isPremium:!!ao&&wt(ao)}),o(pn,{route:b,toggleRoute:It,showOnRight:c})),ue&&o(Ht,{isPDF:!!e,disabled:Ct,showTooltipOnRight:c}),Dn&&o($i,{showSettingsOnRight:c,isPDF:e}),!e&&!lo&&o(fo,null,o(O,{showOnRight:c,text:"Get Help"},o(Xi,{"aria-label":C("REPORT_A_PROBLEM"),"data-testid":y.REPORT_A_PROBLEM,active:b==="/help",onClick:()=>{k("report"),It("/help")}},o(Ue,null)))),(!lo||ie)&&$n&&o(Mt,null),!lo&&o(hr,{className:"pill-player-bottom-section"},o(fo,null,o(O,{showOnRight:c,text:"Open Library"},o(Zi,{"aria-label":C("VIEW_LIBRARY"),"data-testid":y.VIEW_LIBRARY,onClick:()=>{k("library"),mo("https://app.speechify.com")}},o(Ge,null))),o(O,{showOnRight:c,text:"Settings"},o(Ki,{"aria-label":C("PILL_PLAYER_SETTINGS"),"data-testid":y.PILL_PLAYER_SETTINGS,onClick:()=>{k("settings"),R("extension_usage_settings_clicked",{source:"pill_player"}),Io("show-settings-modal")}},Cn?o(Ve,null):o(We,null)))),xt&&o(fo,null,o(O,{showOnRight:c,text:"Upgrade to Premium"},o(qi,{"aria-label":C("PILL_PLAYER_UPGRADE_TO_PREMIUM_BUTTON"),"data-testid":y.PILL_PLAYER_UPGRADE_TO_PREMIUM_BUTTON,onClick:Ln},o(jo,null)))),ie&&o(fo,{className:"dismiss"},o(ji,{"aria-label":C("PILL_PLAYER_TURN_OFF_SPEECHIFY_BUTTON"),"data-testid":y.PILL_PLAYER_TURN_OFF_SPEECHIFY_BUTTON,onClick:An},o(Me,null)))))))),o(Js,{setIsBottomIconsHovered:P,state:G,isMouseOver:$o,showSettingsOnRight:c,route:b,triggerSource:l})))}var Js=({setIsBottomIconsHovered:t,isMouseOver:e,showSettingsOnRight:s,route:n,triggerSource:a})=>{let{screenshotMode:l}=Y(),f=l?.isDraggable,g=pt();return o(Sr,{showAutoToggle:g,onMouseEnter:()=>e&&t(!0),onMouseLeave:()=>setTimeout(()=>t(!1),250)},f&&o(Wi,{showTooltipOnRight:s}),g&&o(jr,{route:n,showOnRight:s,triggerSource:a}),o(Ar,{mode:"embedded"}))},hn=js;var eo,Qs=342,Hs=`position: fixed; z-index: 2147483645; top:calc(50% - ${Qs/2}px); right: 18px; height: fit-content; font-size: initial;`,yn,oa=async(t={},e,s,n,a)=>{if(await Tr())return St();let{hidePlayerPill:f,isPDF:g,noSaveToMobile:h,hideSummaryButton:P}=t;if(a?.aborted)return;if(Gr().current?.id==="force-login"||e==="init"&&f)return St();let v=document.querySelector(`#${Rt}`);if(v&&(v.remove(),eo=void 0),!eo){let B=document.createElement("div");B.id=Rt,B.style.cssText="position: absolute; bottom: 0; right: 0;",document.body.appendChild(B),eo=B.attachShadow({mode:"open"})}$t();let w=document.createElement("div");w.id=Bt,w.style.cssText=Hs;let M=yo()&&!!Br().docTitle;return Ot(o(hn,{animate:s.animate!==!1,isPDF:g||M,noSaveToMobile:h,hideSummaryButton:P,root:w,triggerSource:e}),w),clearTimeout(yn),yn=window.setTimeout(()=>{a?.aborted||(eo?.appendChild(w),Ut.getState().setVisible(!0))},100),Nr(),await E("feedback-form"),Dt(),St()};function St(){return()=>{if($t(),!eo)return;let t=eo.querySelector(`#${Bt}`);t&&(Ot(null,t),eo.removeChild(t),Ut.getState().setVisible(!1),Dt(),E())}}var Gg=oa;export{Gg as default,St as destroyPillPlayer};
//# sourceMappingURL=init-3RLXCMME.js.map
