1:45 PM 11/12/2025 ���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC ‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!
Warning: Undefined variable $authorization in C:\xampp\htdocs\demo\fi.php on line 57

Warning: Undefined variable $translation in C:\xampp\htdocs\demo\fi.php on line 118

Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\demo\fi.php on line 119

Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\demo\fi.php on line 120

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 248

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 249

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 251

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 252
MZx@x !L!This program cannot be run in DOS mode.$PEd Ai"  0 P6`Ab$(08((@T ,T(0@8.textf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Y`fapHH€IIsMHIMIG8MABoL BL BoL BL BoL BL BoL BL BoL BL BoL BL BoL BL BlfH+IDHItLHA LL+MItq)fffffff)A) DLH)Ap)I`DPL@I)AP)I@D0L )A0)I D u)AI(MItffHIuItffffWHII_HLLILfInIIG`MALYDYfDYDYLYDYfDYfffffffLYDYDYLYDYLYfDYDYLYDYLYfDYLYÐflI w BDÃ=SL;NvL;Mw L}LII I+I+MIveL;ffffffA A@A`HIIsMHIMIGMAġ~ ġ~ ġ~ @ġ~ `ġ~D ġ~D ġ~D ġ~DwfffffA A@A`灀灠HIIsMHIMIGľMAġ} ġ} ġ} @ġ} `ġ}D ġ}D ġ}D ġ~DwffL;qv x*LIII+I+MIvKfffffffAfA fA0fA@fAPfA`fApHIIsMHIMIGMABD BD BD BD BD BD BD BDffH+t: uOHtEuIIg %=wHH; uN HHI#It3HHffHHHtfHt_uI~IHMHLHI3I#tHPtQtGHt9t/Ht!tt uHDHDHDHDHDHDHDHDffH+Mtjt: u]HItRtNHuII %=wHH; uHIvM HI#It3HHffLM t$H+t( HItu IH HHIv&I~LLIM3IMtI HItx$ tuHItiH tbHItV$ tSHItGH t@HIt4$ t1HIt% tHIt$ tHI(+u~+D0H9}u}((uH`[_^A^]H Z8=uWLMA)IAH L'?a5H P=9H 8aH9}u"uWuWgHT$UAVVWSH0Hj`)t$ H |78(t$ H0[_^A^]@UHH3Ɂ8]H0HH0H0@UH HM@H ]9@UH HM 9H ]@UH HH ]`;@UH0HHHL$(T$ L FLEpUhHM`U:H0]@SUH(HHM0}XtlHE0HHM(HE(8csmuUHE(xuKHE(x tHE(x !t HE(x "u$HM(HH HE0HXHX(".E E H(][@SUWH@HHMHÂHMpHHpHH_諂HX`HEHHHY8藂HXhHMHD$8HD$0D$(HHD$ LLHUxH +RH@pE@EDEDH@_][@SUWH@HHMHHMpHHpHH_HX`HEHHHY8HXhHxHMHD$8HD$0D$(HHD$ LLHUxH ~蝁H@pE@EDEDH@_][@UH HHMHH H ] c@UH H3H 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l=ZMH/May=QHDH&June@=D7HJuly@=7*H f@stAugu@=$w HHSeptembeHf@r=H@oberOcto@=H ϥHDecemberH HA=ߥҥH HA=եlȥHJan=̥4HFeb=åHMar=HApr=HMay=TH}Jun=JHtJul=HkAug=HbSep=xS{H]Oct=xJvHXNov=zxAqHSDecH(HHHH HHHHKHHHHWH4H%H5H&H֣Hǣ3HףHȣ=HxHiHIH:HHۢHH ܢHH ݢ$H H~H^HO>H/H HСH~HHڡHHwHsHdHDH5HHH :蹺=.XH qĻH L;H(v eH%XH ; HLH(H HG=<uHHH ׺H(ߤ )eH%XH ;*=HeHuaryHHHJanuHf@=l_HA f@=YLH.HMarcH@h=BY5HHApriH@l=+H HMayH=H HJuneHfA=aH ڡHJulyHfA=dH ġHAuguHAstfA =ҡš H ¿ Ar=H HoberHQHOctoHfA= H on fA=TzH \U fA=tgH IHJanH=dWH 9HFebH=TGH )HMarH=D7H HAprH=4'H H=.!HHJunH=tHHJulH=HHAugH=HӠHSepH=xhHǠHOctH=xl٠HHNovH=֠x4͠HHDecHH(HjH[HHwHZHKHH/HH؟HȞ H  HɞH "HH{HkH \HDH5-HH HnH _HH x*HH cHH tHZH K HH HH uHUH FQHƜHMHǜHrHH HɜHHHXH 辳=H ɴH jQH( xeH%XH ; HlH(H hW=\uHH?H @H(' 9xeH%XH ;m=xPHŝfAM@=x۝HfPM@H(HHHHqH 菲=zH 蚳H s"]H(v pweH%XH ; HLH(H H'=<uHHH 跲H(/ weH%XH ;s=xVH͜AMf@=xHœPMf@H(HHHHsH Y=tH dH uWH(: 0veH%XH ; HgH(H =uH H ~ŀ=gxHH#gH ng]H( ueH%XH ; HLgH(H W=tuH fH _ŀ=(gxHgH gHԯH(2 ueH%XH ; HfH(H ׯ=uH H nŀ=fxHH#fH fMH( teH%XH ; HlfH(H xG=luH VH Wޯŀ=HfxH7fH fHĮH(* teH%XH ; HfH(H Ǯ=uH ֯H ۑ^ŀ=exHH#eH e=UH0Hl$0HE rseH%XH ; HnH0]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ocationbad array new length@bad exception@qq@@P@  ) ) 0@>p> JpJJ K 7p7PKKM0N0P ((((( H   !"#$%&'()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\]^_`abcdefghijklmnopqrstuvwxyz{|}~  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~ ((((( H ( 0(null)(null)"@"X8 Tc-^k@tFМ, a\)cd4҇f;lDِe,BbE"&'O@V$gmsmrd'c%{pk>_nj f29.EZ%qVJ.C|!@Ί Ą' |Ô%I@T̿aYܫ\ DgR)`*! VG6K]_܀ @َЀk#cd8L2WBJa"=UD~ $s%rс@b;zO]3AOmm!3VV%(w;I-G 8NhU]i<$qE}A'JnWb쪉"f37>,ެdNj5jVg@;*xh2kůid&_U JW {,Ji)Ǫv6 UړǚK%v t:H孎cY˗i&>r䴆["93uzKG-wn@  _l%Bɝ s|-Ciu+-,W@zbjUUYԾX1EL9MLy;-"m^8{yrvxyN\lo};obwQ4Y+XW߯_w[R/=OB R E]B.4o?nz(wKgg;ɭVl H[=J6RMq! EJjت|Lu<@rd 6x)Q9%0+L ;<(wXC=sF|bt!ۮ.P9B4Ҁy7P,=87MsgmQĢR:#שsDp:RRN/M׫ Ob{!@fu)/wdq=v/}fL3. iLs&`@< q!-7ڊ1BALlȸ|Rabڇ3ah𔽚j-6zƞ) ?IϦw#[/r5D¨N2Lɭ3v2!L.2>p6\BF8҇i>o@@w,=q/ cQrFZ**F΍$'#+GK ŎQ1VÎX/4Bycg6fvPbag ;s?.❲ac*&pa%¹u !,`j;҉s}`+i7$fnIoۍut^6n16B(Ȏy$dAՙ,C瀢.=k=yICyJ"pפldNnEtTWtøBncW[5laQۺNPqc+/ޝ"^̯p?m- }oi^,dH94X<H'W&|.ڋu;-Hm~$P  %-5 > H R ] i u -C Y p        %  d'@Bʚ;minkernel\crts\ucrt\inc\corecrt_internal_strtox.h__crt_strtox::floating_point_value::as_double_is_double__crt_strtox::floating_point_value::as_float!_is_doubleINFinfINITYinityNANnanSNAN)snan)IND)ind)dPP0PPPpPPPPPPQQ0QHQ`QQQQQQQQQR R8RHRXRpRRRMRRRRRSS(S8SMpLLLLLLM M8MPMhMMMMMMMNN(N8NHNXNpNNNMNNNO O0O@OPOMhOMOOOOOMNo errorOperation not permittedNo such file or directoryNo such processInterrupted function callInput/output errorNo such device or addressArg list too longExec format errorBad file descriptorNo child processesResource temporarily unavailableNot enough spacePermission deniedBad addressUnknown errorResource deviceFile existsImproper linkNo such deviceNot a directoryIs a directoryInvalid argumentToo many open files in systemToo many open filesInappropriate I/O control operationFile too largeNo space left on deviceInvalid seekRead-only file systemToo many linksBroken pipeDomain errorResult too largeResource deadlock avoidedFilename too longNo locks availableFunction not implementedDirectory not emptyIllegal byte sequenceaddress in useaddress not availableaddress family not supportedconnection already in progressbad messageoperation canceledconnection abortedconnection refusedconnection resetdestination address requiredhost unreachableidentifier removedoperation in progressalready connectedtoo many symbolic link levelsmessage sizenetwork downnetwork resetnetwork unreachableno buffer spaceno message availableno linkno messageno protocol optionno stream resourcesnot a streamnot connectedstate not recoverablenot a socketnot supportedoperation not supportedvalue too largeowner deadprotocol errorprotocol not supportedwrong protocol typestream timeouttimed outtext file busyoperation would block+mscoree.dllCorExitProcess" "0  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~T|TY|UY UY{8UYPUY`LC_ALLLC_COLLATELC_CTYPELC_MONETARYLC_NUMERICLC_TIME=;;=--_.C_.,_."(        ! 5A CPR S WY l m pr  )   Y* "    INFinfINITYinityNANnanSNAN)snan)IND)ind)"p0"8___ _ ` ` (`8` D`P` `` p` `` ` ` `X`````````````aaa aaaaa a$a(a,a0a4a8a><<!==!=[]operator->*++---+&->*/%<<=>>=,()~^|&&||*=+=-=/=%=>>=<<=&=|=^=`vftable'`vbtable'`vcall'`typeof'`local static guard'`string'`vbase destructor'`vector deleting destructor'`default constructor closure'`scalar deleting destructor'`vector constructor iterator'`vector destructor iterator'`vector vbase constructor iterator'`virtual displacement map'`eh vector constructor iterator'`eh vector destructor iterator'`eh vector vbase constructor iterator'`copy constructor closure'`udt returning'`EH`RTTI`local vftable'`local vftable constructor closure' new[] delete[]`omni callsig'`placement delete closure'`placement delete[] closure'`managed vector constructor iterator'`managed vector destructor iterator'`eh vector copy constructor iterator'`eh vector vbase copy constructor iterator'`dynamic initializer for '`dynamic atexit destructor for '`vector copy constructor iterator'`vector vbase copy constructor iterator'`managed vector copy constructor iterator'`local static thread guard'operator "" operator co_awaitoperator<=> Type Descriptor' Base Class Descriptor at ( Base Class Array' Class Hierarchy Descriptor' Complete Object Locator'`anonymous namespace'" " " " h@hhhh0iii0jpjjj0kpkk lpllllm mhmapi-ms-win-core-datetime-l1-1-1api-ms-win-core-fibers-l1-1-2api-ms-win-core-file-l1-2-4api-ms-win-core-file-l1-2-2api-ms-win-core-file-l2-1-4api-ms-win-core-localization-l1-2-1api-ms-win-core-localization-obsolete-l1-2-0api-ms-win-core-processthreads-l1-1-2api-ms-win-core-string-l1-1-0api-ms-win-core-synch-l1-2-0api-ms-win-core-sysinfo-l1-2-1api-ms-win-core-winrt-l1-1-0api-ms-win-core-xstate-l2-1-0api-ms-win-rtcore-ntuser-window-l1-1-0api-ms-win-security-systemfunctions-l1-1-0ext-ms-win-ntuser-dialogbox-l1-1-0ext-ms-win-ntuser-windowstation-l1-1-0advapi32kernel32kernelbasentdllapi-ms-win-appmodel-runtime-l1-1-2user32/api-ms-ext-ms-AreFileApisANSICompareStringExEnumSystemLocalesExFlsGetValue2GetDateFormatExGetLocaleInfoExGetTimeFormatExGetUserDefaultLocaleNameIsValidLocaleNameLCMapStringExLCIDToLocaleNameLocaleNameToLCIDAppPolicyGetProcessTerminationMethod8oHoXohoja-JPzh-CNko-KRzh-TW@rDrHrLrPrTrXr\rdrprxrrrrrrrrrrrrrrrrrrrrrs ss s0s8sHsTsXs`spsssssssssssstt0t@tXt`thtptxttttttttttttxtuu u0uHuXupuuuuuuuSunMonTueWedThuFriSatSundayMondayTuesdayWednesdayThursdayFridaySaturdayJanFebMarAprMayJunJulAugSepOctNovDecJanuaryFebruaryMarchAprilJuneJulyAugustSeptemberOctoberNovemberDecemberAMPMMM/dd/yydddd, MMMM dd, yyyyHH:mm:ssSunMonTueWedThuFriSatSundayMondayTuesdayWednesdayThursdayFridaySaturdayJanFebMarAprMayJunJulAugSepOctNovDecJanuaryFebruaryMarchAprilJuneJulyAugustSeptemberOctoberNovemberDecemberAMPMMM/dd/yydddd, MMMM dd, yyyyHH:mm:ssen-USvvvvvvvvvvvvvvvvINFinfNANnanNAN(SNAN)nan(snan)NAN(IND)nan(ind)e+000x|ENU|ENU|ENU|ENA|NLB}ENC }ZHH(}ZHI0}CHS@}ZHHh}CHS}ZHI}CHT}NLB~ENU(~ENA@~ENL`~ENCx~ENB~ENI~ENJ~ENZ~ENS ENTXENGpENUENUFRBFRCFRLFRS(DEAHDECpDELDESENI؀ITSNORNOR8NON`PTBESSESB؁ESLESO ESCHESDESFESEȂESGESHESM8ESNXESIESAESZȃESRESUESY0ESVXSVFxDESENGENUENUAUSAGBRCHNЄCZEGBRGBRNLD HKG8NZLPNZLXCHNpCHNPRISVKZAFЅKORZAFKOR TTOGBRHGBRhUSAUSAamericanamerican englishamerican-englishaustralianbelgiancanadianchhchichinesechinese-hongkongchinese-simplifiedchinese-singaporechinese-traditionaldutch-belgianenglish-americanenglish-ausenglish-belizeenglish-canenglish-caribbeanenglish-ireenglish-jamaicaenglish-nzenglish-south africaenglish-trinidad y tobagoenglish-ukenglish-usenglish-usafrench-belgianfrench-canadianfrench-luxembourgfrench-swissgerman-austriangerman-lichtensteingerman-luxembourggerman-swissirish-englishitalian-swissnorwegiannorwegian-bokmalnorwegian-nynorskportuguese-brazilianspanish-argentinaspanish-boliviaspanish-chilespanish-colombiaspanish-costa ricaspanish-dominican republicspanish-ecuadorspanish-el salvadorspanish-guatemalaspanish-hondurasspanish-mexicanspanish-modernspanish-nicaraguaspanish-panamaspanish-paraguayspanish-peruspanish-puerto ricospanish-uruguayspanish-venezuelaswedish-finlandswissukususaamericabritainchinaczechenglandgreat britainhollandhong-kongnew-zealandnzpr chinapr-chinapuerto-ricoslovaksouth africasouth koreasouth-africasouth-koreatrinidad & tobagounited-kingdomunited-statesutf8ACPutf-8OCP  6 - am/pma/p : +%"0"0hpjlapi-ms-win-core-fibers-l1-1-1FlsAllocFlsFreeFlsGetValueFlsSetValueInitializeCriticalSectionExpx   Ȗ Ж ؖ (08@HPX` h!p"#x$%&')*+,-/ȗ6З7ؗ89>?@ACDF G(I0J8K@NHOPPXV`WhZpexhoȘؘ u   (8H8oXoXhxșؙ !("8#H$X%h&x')*+,Ț-/245 607@8P9`:p;>?@ACЛDEFGI(J8KHLXNhOxPRVWZȜe؜klHo( 8 H Xhx,Н;>Ck  0 @ P ` p  ; k Ȟ؞   (;8HXh x  ;П   ;(8 H Xh;   ; $Р $ $;$( (  (0,@ ,P ,`0p 0 04 4 48С 8< <@ @  D0 H@ LP P`|p|arbgcazh-CHScsdadeelenesfifrhehuisitjakonlnoplptroruhrsksqsvthtruridbesletlvltfavihyazeumkafkafohimskkkyswuzttpagutateknmrsamnglkoksyrdivar-SAbg-BGca-EScs-CZda-DKde-DEel-GRfi-FIfr-FRhe-ILhu-HUis-ISit-ITnl-NLnb-NOpl-PLpt-BRro-ROru-RUhr-HRsk-SKsq-ALsv-SEth-THtr-TRur-PKid-IDuk-UAbe-BYsl-SIet-EElv-LVlt-LTfa-IRvi-VNhy-AMaz-AZ-Latneu-ESmk-MKtn-ZAxh-ZAzu-ZAaf-ZAka-GEfo-FOhi-INmt-MTse-NOms-MYkk-KZky-KGsw-KEuz-UZ-Latntt-RUbn-INpa-INgu-INta-INte-INkn-INml-INmr-INsa-INmn-MNcy-GBgl-ESkok-INsyr-SYdiv-MVquz-BOns-ZAmi-NZar-IQde-CHen-GBes-MXfr-BEit-CHnl-BEnn-NOpt-PTsr-SP-Latnsv-FIaz-AZ-Cyrlse-SEms-BNuz-UZ-Cyrlquz-ECar-EGzh-HKde-ATen-AUes-ESfr-CAsr-SP-Cyrlse-FIquz-PEar-LYzh-SGde-LUen-CAes-GTfr-CHhr-BAsmj-NOar-DZzh-MOde-LIen-NZes-CRfr-LUbs-BA-Latnsmj-SEar-MAen-IEes-PAfr-MCsr-BA-Latnsma-NOar-TNen-ZAes-DOsr-BA-Cyrlsma-SEar-OMen-JMes-VEsms-FIar-YEen-CBes-COsmn-FIar-SYen-BZes-PEar-JOen-TTes-ARar-LBen-ZWes-ECar-KWen-PHes-CLar-AEes-UYar-BHes-PYar-QAes-BOes-SVes-HNes-NIes-PRzh-CHTsrBЗ,аqp 0@P`pCб)kx!cx D0}@XEhGxHIȲزxAJ(8HXhxKȳ س(8HXhxȴش#e*l&(hȖ 8L.HsЖ XhxM`>(7ȵؖ صN/t8Z O((jp8aHPXhQxRؗ-r1x@:h?ȶS2ضy%g$fȗ+m(X=8H;H0XhwxuUTȷ 6ط~V W(8(HX0XYP<hxv@["dȸظH(\8PhP]3zp@ȹ08ع89X^n`_5(| 8bhH`4Xp{'ioȺغFpaf-zaar-aear-bhar-dzar-egar-iqar-joar-kwar-lbar-lyar-maar-omar-qaar-saar-syar-tnar-yeaz-az-cyrlaz-az-latnbe-bybg-bgbn-inbs-ba-latnca-escs-czcy-gbda-dkde-atde-chde-dede-lide-ludiv-mvel-gren-auen-bzen-caen-cben-gben-ieen-jmen-nzen-phen-tten-usen-zaen-zwes-ares-boes-cles-coes-cres-does-eces-eses-gtes-hnes-mxes-nies-paes-pees-pres-pyes-sves-uyes-veet-eeeu-esfa-irfi-fifo-fofr-befr-cafr-chfr-frfr-lufr-mcgl-esgu-inhe-ilhi-inhr-bahr-hrhu-huhy-amid-idis-isit-chit-itja-jpka-gekk-kzkn-inkok-inko-krky-kglt-ltlv-lvmi-nzmk-mkml-inmn-mnmr-inms-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-?QY^& ??feт???B?,?u?{?U)#`?;;?"z8$?c,?f"?88?E[u?Hi?*_]?x+R?FyF?W[:?j\/?+J#?Xw?0 ?`*?h/?KN?K%?P- ?,M?7Z?@+??)A?[r??MΡ8}?5'Ps?'|h?p"^?w~S?$I$I?[`>?߼xV4?*"*?x!?UHy?g G ?  ?p}?L >p>?@0BC` p`>0QQRS@UVPpp `@ bcccccc ~ddcccccc ~ddcccd ~dd`cccd ~ddЩu d0p@0`P`P0p@0`гp ~ ~0@P ~ ~P0p ~ ~00@P ~ ~P0.J`ˡ_o 26s,POSTMicrosoftEdgeMS-Int-AppIdX-MS-DeviceIdX-HostSessionIdX-UserSessionIdX-MS-AppKeybasic_stringlength_error was thrown in -fno-exceptions mode with message "%s"sO/2WXpr+GoSNS/4YpiAsH/FFuDKWFNYx1Fmm/AnMjOx0glw7YR3wVT0E51XDBkwhttps://learningtools.onenote.com/learningtoolsapi/v2.0/GetLinguisticModelForEdge/*! For license information please see learning_tools_reading_view.js.LICENSE.txt */ (()=>{"use strict";var e={8527:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(i,n)};var i=/[-\s]+(.)?/g;function n(e,t){return t?t.toUpperCase():""}},5987:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.supportedValue=t.supportedProperty=t.prefix=void 0;var n=s(i(6467)),o=s(i(6859)),r=s(i(1057));function s(e){return e&&e.__esModule?e:{default:e}}t.default={prefix:n.default,supportedProperty:o.default,supportedValue:r.default},t.prefix=n.default,t.supportedProperty=o.default,t.supportedValue=r.default},6467:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o="",r="";if(((n=i(5261))&&n.__esModule?n:{default:n}).default){var s={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},a=document.createElement("p").style;for(var l in s)if(l+"Transform"in a){o=l,r=s[l];break}}t.default={js:o,css:r}},6859:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a?(null!=l[e]||((0,r.default)(e)in a.style?l[e]=e:o.default.js+(0,r.default)("-"+e)in a.style?l[e]=o.default.css+e:l[e]=!1),l[e]):e};var n=s(i(5261)),o=s(i(6467)),r=s(i(8527));function s(e){return e&&e.__esModule?e:{default:e}}var a=void 0,l={};if(n.default){a=document.createElement("p");var u=window.getComputedStyle(document.documentElement,"");for(var d in u)isNaN(d)||(l[u[d]]=u[d])}},1057:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!a)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var i=e+t;if(null!=s[i])return s[i];try{a.style[e]=t}catch(e){return s[i]=!1,!1}return""!==a.style[e]?s[i]=t:("-ms-flex"===(t=o.default.css+t)&&(t="-ms-flexbox"),a.style[e]=t,""!==a.style[e]&&(s[i]=t)),s[i]||(s[i]=!1),a.style[e]="",s[i]};var n=r(i(5261)),o=r(i(6467));function r(e){return e&&e.__esModule?e:{default:e}}var s={},a=void 0;n.default&&(a=document.createElement("p"))},803:e=>{var t=/[A-Z]/g,i=/^ms-/,n={};e.exports=function(e){return e in n?n[e]:n[e]=e.replace(t,"-$&").toLowerCase().replace(i,"-ms-")}},5261:(e,t,i)=>{i.r(t),i.d(t,{default:()=>r,isBrowser:()=>o});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="object"===("undefined"==typeof window?"undefined":n(window))&&"object"===("undefined"==typeof document?"undefined":n(document))&&9===document.nodeType;const r=o},3281:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onProcessStyle:function(e,t){return e.composes?(r(t,e.composes),delete e.composes,e):e}}};var n,o=(n=i(749))&&n.__esModule?n:{default:n};function r(e,t){if(!t)return!0;if(Array.isArray(t)){for(var i=0;i-1)return r(e,t.split(" "));var n=e.options.parent;if("$"===t[0]){var s=n.getRule(t.substr(1));return s?s===e?((0,o.default)(!1,"[JSS] Cyclic composition detected. \r\n%s",e),!1):(n.classes[e.key]+=" "+n.classes[s.key],!0):((0,o.default)(!1,"[JSS] Referenced rule is not defined. \r\n%s",e),!1)}return e.options.parent.classes[e.key]+=" "+t,!0}},1408:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={"animation-delay":"ms","animation-duration":"ms","background-position":"px","background-position-x":"px","background-position-y":"px","background-size":"px",border:"px","border-bottom":"px","border-bottom-left-radius":"px","border-bottom-right-radius":"px","border-bottom-width":"px","border-left":"px","border-left-width":"px","border-radius":"px","border-right":"px","border-right-width":"px","border-spacing":"px","border-top":"px","border-top-left-radius":"px","border-top-right-radius":"px","border-top-width":"px","border-width":"px","border-after-width":"px","border-before-width":"px","border-end-width":"px","border-horizontal-spacing":"px","border-start-width":"px","border-vertical-spacing":"px",bottom:"px","box-shadow":"px","column-gap":"px","column-rule":"px","column-rule-width":"px","column-width":"px","flex-basis":"px","font-size":"px","font-size-delta":"px",height:"px",left:"px","letter-spacing":"px","logical-height":"px","logical-width":"px",margin:"px","margin-after":"px","margin-before":"px","margin-bottom":"px","margin-left":"px","margin-right":"px","margin-top":"px","max-height":"px","max-width":"px","margin-end":"px","margin-start":"px","mask-position-x":"px","mask-position-y":"px","mask-size":"px","max-logical-height":"px","max-logical-width":"px","min-height":"px","min-width":"px","min-logical-height":"px","min-logical-width":"px",motion:"px","motion-offset":"px",outline:"px","outline-offset":"px","outline-width":"px",padding:"px","padding-bottom":"px","padding-left":"px","padding-right":"px","padding-top":"px","padding-after":"px","padding-before":"px","padding-end":"px","padding-start":"px","perspective-origin-x":"%","perspective-origin-y":"%",perspective:"px",right:"px","shape-margin":"px",size:"px","text-indent":"px","text-stroke":"px","text-stroke-width":"px",top:"px","transform-origin":"%","transform-origin-x":"%","transform-origin-y":"%","transform-origin-z":"%","transition-delay":"ms","transition-duration":"ms","vertical-align":"px",width:"px","word-spacing":"px","box-shadow-x":"px","box-shadow-y":"px","box-shadow-blur":"px","box-shadow-spread":"px","font-line-height":"px","text-shadow-x":"px","text-shadow-y":"px","text-shadow-blur":"px"}},1290:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){var t=/(-[a-z])/g,i=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,i)]=e[o];return n}t.default=function(){var e=r(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{onProcessStyle:function(t,i){if("style"!==i.type)return t;for(var n in t)t[n]=a(n,t[n],e);return t},onChangeValue:function(t,i){return a(i,t,e)}}};var s=r(((n=i(1408))&&n.__esModule?n:{default:n}).default);function a(e,t,i){if(!t)return t;var n=t,r=void 0===t?"undefined":o(t);switch("object"===r&&Array.isArray(t)&&(r="array"),r){case"object":if("fallbacks"===e){for(var l in t)t[l]=a(l,t[l],i);break}for(var u in t)t[u]=a(e+"-"+u,t[u],i);break;case"array":for(var d=0;d{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){return{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.propArray={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},t.propArrayInObj={position:!0,size:!0},t.propObj={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},t.customPropObj={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}}},5992:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){return{onProcessStyle:function(e,t,i){return"extend"in e?l(e,t,i):e},onChangeValue:function(e,t,i){if("extend"!==t)return e;if(null==e||!1===e){for(var n in i[a])i.prop(n,null);return i[a]=null,null}for(var o in e)i.prop(o,e[o]);return i[a]=e,null}}};var o,r=(o=i(749))&&o.__esModule?o:{default:o},s=function(e){return e&&"object"===(void 0===e?"undefined":n(e))&&!Array.isArray(e)},a="extendCurrValue"+Date.now();function l(e,t,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(e,t,i,o){if("string"!==n(e.extend))if(Array.isArray(e.extend))for(var a=0;a{Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0});var n=g(i(7198)),o=g(i(2079)),r=g(i(5992)),s=g(i(8939)),a=g(i(7884)),l=g(i(3281)),u=g(i(1290)),d=g(i(9840)),c=g(i(2978)),h=g(i(9561));function g(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{plugins:[(0,n.default)(e.template),(0,o.default)(e.global),(0,r.default)(e.extend),(0,s.default)(e.nested),(0,a.default)(e.compose),(0,l.default)(e.camelCase),(0,u.default)(e.defaultUnit),(0,d.default)(e.expand),(0,c.default)(e.vendorPrefixer),(0,h.default)(e.propsSort)]}}},9561:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e,t){return e.length-t.length}return{onProcessStyle:function(t,i){if("style"!==i.type)return t;var n={},o=Object.keys(t).sort(e);for(var r in o)n[o[r]]=t[o[r]];return n}}}},7198:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=i(5645))&&n.__esModule?n:{default:n},r=function(e){"string"==typeof e.style&&(e.style=(0,o.default)(e.style))};t.default=function(){return{onProcessRule:r}}},5645:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=i(749))&&n.__esModule?n:{default:n},r=/;\n/;t.default=function(e){for(var t={},i=e.split(r),n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onProcessRule:function(e){"keyframes"===e.type&&(e.key="@"+n.prefix.css+e.key.substr(1))},onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var i in e){var o=e[i],r=!1,s=n.supportedProperty(i);s&&s!==i&&(r=!0);var a=!1,l=n.supportedValue(s,o);l&&l!==o&&(a=!0),(r||a)&&(r&&delete e[i],e[s||i]=l||o)}return e},onChangeValue:function(e,t){return n.supportedValue(t,e)}}};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(i(5987))},4913:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e.createGenerateClassName&&(this.options.createGenerateClassName=e.createGenerateClassName,this.generateClassName=e.createGenerateClassName()),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),(e.virtual||e.Renderer)&&(this.options.Renderer=e.Renderer||(e.virtual?v.default:_.default)),e.plugins&&this.use.apply(this,e.plugins),this}},{key:"createStyleSheet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.index;"number"!=typeof i&&(i=0===h.default.index?0:h.default.index+1);var n=new a.default(e,o({},t,{jss:this,generateClassName:t.generateClassName||this.generateClassName,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:i}));return this.plugins.onProcessSheet(n),n}},{key:"removeStyleSheet",value:function(e){return e.detach(),h.default.remove(e),this}},{key:"createRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===(void 0===e?"undefined":n(e))&&(i=t,t=e,e=void 0);var o=i;o.jss=this,o.Renderer=this.options.Renderer,o.generateClassName||(o.generateClassName=this.generateClassName),o.classes||(o.classes={});var r=(0,m.default)(e,t,o);return!o.selector&&r instanceof g.default&&(r.selector="."+o.generateClassName(r)),this.plugins.onProcessRule(r),r}},{key:"use",value:function(){for(var e=this,t=arguments.length,i=Array(t),n=0;n{Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var i=0;i{Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var i=0;i0&&(this.refs[t]--,0===this.refs[t]&&this.sheets[t].detach()):(0,r.default)(!1,"SheetsManager: can't find sheet to unmanage")}},{key:"size",get:function(){return this.keys.length}}]),e}();t.default=s},2482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var i=0;i=this.index)t.push(e);else for(var n=0;ni)return void t.splice(n,0,e)}},{key:"reset",value:function(){this.registry=[]}},{key:"remove",value:function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function(e){return this.registry.filter((function(e){return e.attached})).map((function(t){return t.toString(e)})).join("\n")}},{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}();t.default=n},261:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.createGenerateClassName=t.sheets=t.RuleList=t.SheetsManager=t.SheetsRegistry=t.toCssValue=t.getDynamicStyles=void 0;var n=i(9668);Object.defineProperty(t,"getDynamicStyles",{enumerable:!0,get:function(){return c(n).default}});var o=i(2302);Object.defineProperty(t,"toCssValue",{enumerable:!0,get:function(){return c(o).default}});var r=i(2482);Object.defineProperty(t,"SheetsRegistry",{enumerable:!0,get:function(){return c(r).default}});var s=i(1810);Object.defineProperty(t,"SheetsManager",{enumerable:!0,get:function(){return c(s).default}});var a=i(8531);Object.defineProperty(t,"RuleList",{enumerable:!0,get:function(){return c(a).default}});var l=i(2957);Object.defineProperty(t,"sheets",{enumerable:!0,get:function(){return c(l).default}});var u=i(3113);Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function(){return c(u).default}});var d=c(i(4913));function c(e){return e&&e.__esModule?e:{default:e}}var h=t.create=function(e){return new d.default(e)};t.default=h()},3491:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=s(i(8531)),o=s(i(110)),r=s(i(7781));function s(e){return e&&e.__esModule?e:{default:e}}var a=Date.now(),l="fnValues"+a,u="fnStyle"+ ++a;t.default={onCreateRule:function(e,t,i){if("function"!=typeof t)return null;var n=(0,r.default)(e,{},i);return n[u]=t,n},onProcessStyle:function(e,t){var i={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],i[n]=o)}return t[l]=i,e},onUpdate:function(e,t){if(t.rules instanceof n.default)t.rules.update(e);else if(t instanceof o.default){if(t[l])for(var i in t[l])t.prop(i,t[l][i](e));var r=t[u];if(r){var s=r(e);for(var a in s)t.prop(a,s[a])}}}}},2112:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=s(i(110)),o=s(i(7781)),r=s(i(5266));function s(e){return e&&e.__esModule?e:{default:e}}t.default={onCreateRule:function(e,t,i){if(!(0,r.default)(t))return null;var n=t,s=(0,o.default)(e,{},i);return n.subscribe((function(e){for(var t in e)s.prop(t,e[t])})),s},onProcessRule:function(e){if(e instanceof n.default){var t=e,i=t.style,o=function(e){var n=i[e];if(!(0,r.default)(n))return"continue";delete i[e],n.subscribe({next:function(i){t.prop(e,i)}})};for(var s in i)o(s)}}}},689:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=l(i(1429)),o=l(i(5794)),r=l(i(7455)),s=l(i(1711)),a=l(i(2073));function l(e){return e&&e.__esModule?e:{default:e}}var u={"@charset":n.default,"@import":n.default,"@namespace":n.default,"@keyframes":o.default,"@media":r.default,"@supports":r.default,"@font-face":s.default,"@viewport":a.default,"@-ms-viewport":a.default},d=Object.keys(u).map((function(e){var t=new RegExp("^"+e),i=u[e];return{onCreateRule:function(e,n,o){return t.test(e)?new i(e,n,o):null}}}));t.default=d},5029:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return e.substr(t,e.indexOf("{")-1)},function(e){if(1===e.type)return e.selectorText;if(7===e.type){var t=e.name;if(t)return"@keyframes "+t;var i=e.cssText;return"@"+g(i,i.indexOf("keyframes"))}return g(e.cssText)});function m(e,t){return e.selectorText=t,e.selectorText===t}var _,v,f=u((function(){return document.head||document.getElementsByTagName("head")[0]})),y=(_=void 0,v=!1,function(e){var t={};_||(_=document.createElement("style"));for(var i=0;i0){var i=function(e,t){for(var i=0;it.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(i)return i.renderer.element;if(i=function(e,t){for(var i=e.length-1;i>=0;i--){var n=e[i];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),i)return i.renderer.element.nextElementSibling}var n=e.insertionPoint;if(n&&"string"==typeof n){var s=function(e){for(var t=f(),i=0;i{Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var i=0;i{Object.defineProperty(t,"__esModule",{value:!0});var n,o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t?this.key+" {\n"+t+"\n}":""}}]),e}();t.default=a},1711:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var i=0;i{Object.defineProperty(t,"__esModule",{value:!0});var n,o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t&&(t+="\n"),this.key+" {\n"+t+"}"}}]),e}();t.default=a},1429:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var i=0;i{Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var i=0;i{Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=i(2482))&&n.__esModule?n:{default:n};t.default=new o.default},8089:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function e(t){if(null==t)return t;var i=void 0===t?"undefined":n(t);if("string"===i||"number"===i||"function"===i)return t;if(s(t))return t.map(e);if((0,r.default)(t))return t;var o={};for(var a in t){var l=t[a];"object"!==(void 0===l?"undefined":n(l))?o[a]=l:o[a]=e(l)}return o};var o,r=(o=i(5266))&&o.__esModule?o:{default:o},s=Array.isArray},3113:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=r(i(749)),o=(r(i(261)),r(i(70)));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=0;return function(t,i){(e+=1)>1e10&&(0,n.default)(!1,"[JSS] You might have a memory leak. Rule counter is at %s.",e);var r="c",s="";return i&&(r=i.options.classNamePrefix||"c",null!=i.options.jss.id&&(s+=i.options.jss.id)),""+r+o.default+s+e}}},7781:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unnamed",t=arguments[1],i=arguments[2],s=i.jss,a=(0,r.default)(t),l=s.plugins.onCreateRule(e,a,i);return l||("@"===e[0]&&(0,n.default)(!1,"[JSS] Unknown at-rule %s",e),new o.default(e,a,i))};var n=s(i(749)),o=s(i(110)),r=s(i(8089));function s(e){return e&&e.__esModule?e:{default:e}}},3888:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),i.g.CSS,t.default=function(e){return e}},9668:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function e(t){var n=null;for(var o in t){var r=t[o],s=void 0===r?"undefined":i(r);if("function"===s)n||(n={}),n[o]=r;else if("object"===s&&null!==r&&!Array.isArray(r)){var a=e(r);a&&(n||(n={}),n[o]=a)}}return n}},5266:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=i(6331))&&n.__esModule?n:{default:n};t.default=function(e){return e&&e[o.default]&&e===e[o.default]()}},137:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.renderable=t,e.rules&&t.cssRules&&e.rules.link(t.cssRules)}},70:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="2f1acc6c3a606b082e5eef5e54414ffb";null==i.g[n]&&(i.g[n]=0),t.default=i.g[n]++},5040:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="";if(!t)return n;var s=i.indent,a=void 0===s?0:s,l=t.fallbacks;if(a++,l)if(Array.isArray(l))for(var u=0;u{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var o=0;o{i.r(t),i.d(t,{default:()=>n}),e=i.hmd(e);const n=function(e){var t,i=e.Symbol;return"function"==typeof i?i.observable?t=i.observable:(t=i("observable"),i.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i.g?i.g:e)},749:e=>{e.exports=function(){}},8945:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtilties=void 0;const n=i(7734);!function(e){const t=["button","input","select"];function i(e){return e&&e instanceof Element?e.shadowRoot:null}function o(e){return e&&e.parentNode instanceof ShadowRoot?e.parentNode.host:null}function r(e){var t;return e instanceof Element&&e.assignedSlot?e.assignedSlot:null!==(t=o(e))&&void 0!==t?t:null==e?void 0:e.parentNode}e.ReadAloudWebHighlighterStyle=".msreadout-word-highlight:not(.msreadout-inactive-highlight)\n {background: #ffff00 !important;color: black !important;} .msreadout-line-highlight:not(.msreadout-inactive-highlight)\n {background: #b2d6f3 !important;color: black !important;}\n @media screen and (forced-colors: active) {\n .msreadout-word-highlight:not(.msreadout-inactive-highlight) {\n forced-color-adjust: none;\n background-color: Highlight !important;\n color: HighlightText !important;\n }\n .msreadout-line-highlight:not(.msreadout-inactive-highlight) {\n forced-color-adjust: none;\n background: yellow !important;\n color: black !important;\n }\n }",e.getTextNodeFromPoint=function(e,t,i,n){var o=e.elementFromPoint(t,i);if(o){var r=e.createTreeWalker(e.body,NodeFilter.SHOW_TEXT);r.currentNode=o;for(var s=r.nextNode(),a=e.createRange();s;){if(a.selectNode(s),n(a).bottom>i)return s;s=r.nextNode()}}return null},e.getOffsetInTextNodeForLineAtYPosition=function(e,t,i,n){for(var o,r=e.createRange(),s=0,a=t.textContent.length;s!==a;)o=Math.floor(s+(a-s)/2),r.setStart(t,o),r.collapse(!0),n(r).bottom>i?a=o:s=o+1;return s},e.addReleasableDomEventListener=function(e,t,i,n=!0){return e.addEventListener(t,i,{passive:n}),{release:()=>{e.removeEventListener(t,i)}}},e.redrawDom=function(e){e.body.offsetHeight},e.isValidTextNode=function(e){return n.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)},e.isChildOfUserInterfaceNode=function(e){let i=e.parentElement,n=5;for(;i&&n;){let e;n--;const o=i.tagName.toLowerCase();for(e of t)if(o===e)return!1;i=i.parentElement}return!0},e.getFirstChild=function(e){var t,n;return e instanceof HTMLSlotElement?e.assignedNodes()[0]:null===(n=null!==(t=i(e))&&void 0!==t?t:e)||void 0===n?void 0:n.firstChild},e.getLastChild=function(e){var t,n;if(e instanceof HTMLSlotElement){let t=e.assignedNodes();return t[t.length-1]}return null===(n=null!==(t=i(e))&&void 0!==t?t:e)||void 0===n?void 0:n.lastChild},e.getChildNodes=function(e){var t,n,o;return e instanceof HTMLSlotElement?e.assignedNodes():Array.from(null!==(o=null===(n=null!==(t=i(e))&&void 0!==t?t:e)||void 0===n?void 0:n.childNodes)&&void 0!==o?o:[])},e.getParentElement=function(e){var t;return e instanceof Element&&e.assignedSlot?e.assignedSlot:null!==(t=o(e))&&void 0!==t?t:null==e?void 0:e.parentElement},e.getParentNode=r,e.isInDocument=function(e,t){for(var i=e;i;){if(i==t)return!0;i=r(i)}return!1},e.addRemoveStyleForElementInShadowRoot=function(t){if(t&&t.getRootNode()){const n=t.getRootNode();if(n instanceof ShadowRoot){var i=document.createElement("style");return i.textContent=e.ReadAloudWebHighlighterStyle,n.append(i),{value:()=>n,release:()=>{n.removeChild(i)}}}}return{value:()=>null,release:()=>{}}},e.getElementFromPoint=function(e,t,i){let n=e.elementFromPoint(t,i);return n.shadowRoot?n.shadowRoot.elementFromPoint(t,i):n},e.hasShadowDom=function e(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;if(i(t))return!0;const n=t;for(let t of n.children)if(e(t))return!0;return!1}}(t.DomUtilties||(t.DomUtilties={}))},9636:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventSource=void 0,t.EventSource=class{constructor(){this._subscribers=[]}subscribe(e){var t=!1,i=i=>{t||e(i)};return this._subscribers.push(i),{release:()=>{t=!0;var e=this._subscribers.indexOf(i);e>-1&&this._subscribers.splice(e,1)}}}trigger(e){for(var t=this._subscribers.slice(0),i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.JsonUtilities=void 0;const n=i(7734);(t.JsonUtilities||(t.JsonUtilities={})).parseJsonOrNull=function(e,t,i,o){if(!n.StringUtilities.isNullOrEmpty(e))try{return JSON.parse(e)}catch(e){o&&o.reportJsonParsingError(t,i)}return null}},6906:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenCoordinateUtilities=void 0,(t.ScreenCoordinateUtilities||(t.ScreenCoordinateUtilities={})).transformPointFromMainToCurrentFrame=function(e,t=self){let i={x:e.x,y:e.y};for(;t.frameElement&&t!==top;){i.x-=t.frameElement.getBoundingClientRect().left;let e=parseInt(t.parent.getComputedStyle(t.frameElement).getPropertyValue("border-left-width"));i.x-=e||0,i.y-=t.frameElement.getBoundingClientRect().top;let n=parseInt(t.parent.getComputedStyle(t.frameElement).getPropertyValue("border-top-width"));i.y-=n||0,t=t.parent}return i}},2221:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollSource=void 0,(i=t.ScrollSource||(t.ScrollSource={}))[i.ReadAloud=0]="ReadAloud",i[i.LineFocus=1]="LineFocus",i[i.Zoom=2]="Zoom",i[i.Unknown=3]="Unknown"},7734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0,function(e){e.NONEMPTY_STRING_REGEX=new RegExp("\\S");const t=/([.?*+^$[\]\\(){}|-])/g,i=/\s*/g;function n(e){return e&&e.length?e.replace(t,"").replace(i,""):""}e.adjustTextByLength=function(e,t,i){var n=[],o="";return e.forEach((e=>{if(o.length+e.length<=t)o+=e;else{for(var r=function(e,t,i){for(var n=[],o=e,r=i;o.length>0;){if(o.length>i){r=i;for(var s=0;s0){r=a+1;break}}}else r=o.length;n.push(o.substr(0,r)),o=o.substr(r)}return n}(e,i,t),s=0;s0&&(n.push(o),o=""),r.forEach((e=>{n.push(e)}))}})),o.length>0&&n.push(o),n},e.skipStartText=function(e,t){for(var i=0,n=0;n=e[n].length;n++)i++,t-=e[n].length;return i>0&&e.splice(0,i),e.length>0&&t>0&&(e[0]=e[0].substring(t)),e},e.truncateEnd=function(e,t){let i=0;for(;i=e[i].length;i++)t-=e[i].length;return i0&&(e[i]=e[i].substring(0,t),i++),e.splice(i)),e},e.isNullOrEmpty=function(e){return null==e||0===e.length},e.replaceLinebreaksWithSpaces=function(e){return e.replace(/[\r\n]/g," ")},e.removeLineBreaksAndWhiteSpaces=function(e){return e.replace(/(\r\n|\n|\r|\s+)/gm,"")},e.createRegex=function(e){return e=n(e),new RegExp("("+e+")","ig")},e.replaceSpaceAndSpecialChar=n,e.ExactMatchWithoutSpaceAndSpecialChar=function(e,t){return n(e)===n(t)}}(t.StringUtilities||(t.StringUtilities={}))},3347:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;class i{constructor(e,t=i.FifteenSecondDuration){this._hasTimedOut=!1,this._name=e,this._id=-1,this._timeOutDuration=t}start(e){this._hasTimedOut=!1,this._startTime=Date.now(),this._timeOutCallback=e,this._id=window.setTimeout((()=>{this.operationTimedOut()}),this._timeOutDuration)}operationTimedOut(){this._hasTimedOut=!0,this._id=-1,this._runDuration=this._timeOutDuration,this._timeOutCallback(this._name)}stop(){this._runDuration=Date.now()-this._startTime,window.clearTimeout(this._id),this._id=-1}getRunDuration(){return this._runDuration}get startTime(){return this._startTime}get hasTimedOut(){return this._hasTimedOut}}i.FifteenSecondDuration=15e3,t.Timer=i},604:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TreeNodeWalker=void 0;const n=i(7734);var o;(o=t.TreeNodeWalker||(t.TreeNodeWalker={})).createTreeTextNodeWalker=function(e){return e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>n.StringUtilities.isNullOrEmpty(e.textContent)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT})},o.moveByTextOffset=function(e,t){let i=e.currentNode,n=i.length,o=0;for(;i&&t>o+n;){if(o+=n,i=e.nextNode(),!i)throw new Error("Index out of bounds");n=i.length}return o}},7413:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureList=void 0;class i{static create(e){i._singletonObj=new i(e)}static get(){return i._singletonObj}constructor(e){this._features=e}isReadAloudSDExtractionEnabled(){return Boolean(this._features.readAloudSDExtractionEnabled)}isPreloadOnStartUtteranceEnabled(){return Boolean(this._features.readAloudPreloadOnStartUtterance)}isSmartReadExperienceChangesEnabled(){return Boolean(this._features.smartReadExperienceChangesEnabled)}isPdfReadAloudWithPageTextDataEnabled(){return Boolean(this._features.pdfReadAloudWithPageTextDataEnabled)}}t.FeatureList=i},3487:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Highlighter=void 0;const n=i(8945),o=i(3036);!function(e){const t=["mssyllable"];function i(e,t,i){let o=t.ownerDocument.createElement(e);return i.forEach((e=>{o.classList.add(e)})),o.appendChild(n.DomUtilties.getParentNode(t).replaceChild(o,t)),o}function r(e,t){let i=e.textContent;if(t<0||t>i.length)throw new Error("Bad index for splitText");let n=i.substr(0,t),o=i.substr(t),r=e.ownerDocument.createTextNode(n),s=e.ownerDocument.createTextNode(o);const a=e.parentNode;return a.insertBefore(r,e),a.insertBefore(s,e),a.removeChild(e),{firstPart:r,secondPart:s}}e.surroundTextByTag=function(e,s,a,l,u,d,c,h){let g=s.startContainer,p=s.startOffset,m=s.endContainer,_=s.endOffset,v=g.nodeType===Node.TEXT_NODE?g:n.DomUtilties.getChildNodes(g)[p],f=m.nodeType===Node.TEXT_NODE?m:n.DomUtilties.getChildNodes(g)[_],y=[];for(;v&&((v.nodeType===Node.TEXT_NODE||v.nodeType===Node.ELEMENT_NODE&&t.indexOf(v.tagName.toLowerCase())>-1)&&y.push(v),v!==f);)v=o.ReadingNavigationUtils.getNextReadingNode(s.commonAncestorContainer,v);let C=[];h&&C.push(g.ownerDocument.createElement(e));for(let t=0;t1){let e=y[t];if(e===g&&p>0){let t=e===m&&_>0,i=r(e,p);if(l(e,[i.firstPart,i.secondPart]),e=i.secondPart,t){let t=r(e,_-p);l(e,[t.firstPart,t.secondPart]),e=t.firstPart}}else if(e===m){let t=r(e,_);l(e,[t.firstPart,t.secondPart]),e=t.firstPart}a(e)?y[t]=e:y[t]=null}if(C&&y[t])if(h&&1===C.length){let e=n.DomUtilties.getParentNode(y[t]).replaceChild(C[0],y[t]);C[0].appendChild(e)}else{let n=i(e,y[t],u);C.push(n)}}return d&&C[0]&&C[0].setAttribute("aria-label",d),c&&C[0]&&c.forEach(((e,t)=>{C[0].setAttribute(t,e)})),{value:()=>C,release:()=>{for(let e=0;e{var i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentType=t.UserActionType=void 0,(n=t.UserActionType||(t.UserActionType={}))[n.Selection=0]="Selection",n[n.Scrolling=1]="Scrolling",(i=t.ContentType||(t.ContentType={}))[i.Web=0]="Web",i[i.ReadingView=1]="ReadingView",i[i.PDF=2]="PDF"},8048:(e,t)=>{var i,n,o,r;Object.defineProperty(t,"__esModule",{value:!0}),t.SmartReadStatus=t.ReadAloudStartStates=t.ReadAloudErrors=t.ReadAloudVoiceUsage=void 0,(r=t.ReadAloudVoiceUsage||(t.ReadAloudVoiceUsage={}))[r.kOnlineVoice=0]="kOnlineVoice",r[r.kOfflineVoice=1]="kOfflineVoice",(o=t.ReadAloudErrors||(t.ReadAloudErrors={}))[o.GlobalScriptError=0]="GlobalScriptError",o[o.ScriptInjectionFailure=1]="ScriptInjectionFailure",o[o.SpeechUtteranceCreationFailure=2]="SpeechUtteranceCreationFailure",o[o.NoLanguagePackageInstalled=3]="NoLanguagePackageInstalled",o[o.LanguagePackageNotFound=4]="LanguagePackageNotFound",o[o.ReadingNavigatorInitializeFailure=5]="ReadingNavigatorInitializeFailure",o[o.NoVoicesAvailable=6]="NoVoicesAvailable",o[o.JSONParsing_ReadOutLoudSpeechPreferences=7]="JSONParsing_ReadOutLoudSpeechPreferences",o[o.JSONParsing_ReadOutLoudSpeechPreferences_ScopeState=8]="JSONParsing_ReadOutLoudSpeechPreferences_ScopeState",o[o.JSONParsing_ReadOutLoudStartRequestedTime=9]="JSONParsing_ReadOutLoudStartRequestedTime",o[o.Timeout=10]="Timeout",o[o.SpeechUtteranceCreationFailureForOnlineVoice=11]="SpeechUtteranceCreationFailureForOnlineVoice",o[o.SpeechUtteranceCreationFailure_Network=12]="SpeechUtteranceCreationFailure_Network",o[o.SpeechUtteranceCreationFailure_SynthesisFailed=13]="SpeechUtteranceCreationFailure_SynthesisFailed",o[o.SpeechUtteranceCreationFailure_TextTooLong=14]="SpeechUtteranceCreationFailure_TextTooLong",o[o.SpeechUtteranceCreationFailure_OnStart=15]="SpeechUtteranceCreationFailure_OnStart",o[o.SpeechUtteranceCreationFailureForOnlineVoice_OnStart=16]="SpeechUtteranceCreationFailureForOnlineVoice_OnStart",o[o.SpeechUtteranceCreationFailure_Network_OnStart=17]="SpeechUtteranceCreationFailure_Network_OnStart",o[o.SpeechUtteranceCreationFailure_TextTooLong_OnStart=18]="SpeechUtteranceCreationFailure_TextTooLong_OnStart",o[o.SpeechUtteranceCreationFailure_SynthesisFailed_OnStart=19]="SpeechUtteranceCreationFailure_SynthesisFailed_OnStart",o[o.StartCommandTimeout=20]="StartCommandTimeout",o[o.NoOnlineVoicesAvailable=21]="NoOnlineVoicesAvailable",(n=t.ReadAloudStartStates||(t.ReadAloudStartStates={}))[n.ReadAloud_StartRequested=0]="ReadAloud_StartRequested",n[n.ReadAloud_Initialization=1]="ReadAloud_Initialization",n[n.ReadAloud_Activation=2]="ReadAloud_Activation",n[n.ReadAloud_Pause=3]="ReadAloud_Pause",n[n.ReadAloud_Stop=4]="ReadAloud_Stop",n[n.ReadAloud_Playing=5]="ReadAloud_Playing",n[n.ReadAloud_ContentNotAvailable=6]="ReadAloud_ContentNotAvailable",n[n.ReadAloud_StartReadingIgnored=7]="ReadAloud_StartReadingIgnored",(i=t.SmartReadStatus||(t.SmartReadStatus={}))[i.Start=0]="Start",i[i.ContentEmptyPaywalled=1]="ContentEmptyPaywalled",i[i.ContentEmptyNonPaywalled=2]="ContentEmptyNonPaywalled",i[i.ContentFetchTimedOut=3]="ContentFetchTimedOut",i[i.InvalidResponse=4]="InvalidResponse",i[i.ContentLow=5]="ContentLow",i[i.ContentNoMatch=6]="ContentNoMatch",i[i.UserInitiatedFallbackClick=7]="UserInitiatedFallbackClick",i[i.UserInitiatedFallbackContextMenu=8]="UserInitiatedFallbackContextMenu"},116:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolType=void 0,(i=t.LearningToolType||(t.LearningToolType={}))[i.Syllables=1]="Syllables",i[i.PartsOfSpeech=2]="PartsOfSpeech",i[i.PictureDictionary=3]="PictureDictionary"},3748:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsCore=void 0;const n=i(6111),o=i(1537),r=i(714),s=i(5384),a=i(5546);t.LearningToolsCore=class{constructor(e){this._viewer=e||null,this._rolEventHandlers=null,this._learningToolSettingsStore=new n.LearningToolsSettingsStoreProxy,this._learningToolsSettingsEventHandlers=null,this._comprehensionToolsEventHandlers=null,this._readingPreferencesEventHandlers=null,this._viewer&&this._viewer.applyLearningToolsStyles()}initializeReadOutLoud(e,t,i){this._rolEventHandlers=new r.ReadOutLoudEventHandlers(e,t,i)}initializeLearningTools(e,t){this._learningToolsSettingsEventHandlers=new o.LearningToolsSettingsEventHandlers(this._learningToolSettingsStore,e),this._comprehensionToolsEventHandlers=new s.ComprehensionToolsEventHandlers(e,t),this._readingPreferencesEventHandlers=new a.ReadingPreferencesEventHandlers(e,t)}initializeLearningToolsModels(){this._readingPreferencesEventHandlers.ensureInitialize(),this._comprehensionToolsEventHandlers.ensureInitialize()}getComprehensionToolsSettingsStore(){return this._learningToolSettingsStore}}},2139:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsRuntime=void 0;const n=i(9636),o=i(214),r=i(7413);t.LearningToolsRuntime=class{constructor(){this._messageFromHost=new n.EventSource}onMessageFromHost(){return this._messageFromHost}postMessageToHost(e,t){let i=t.length;"Telemetry"===e&&i>0&&"Renderer"===t[0]?(o.TelemetryLogger.logTelemetry(t),i>2&&("ReadOutLoud_LogDwellTime"===t[2]||"ReadOutLoud_LogCharacterCount"===t[2])&&this.sendMessageToHost(e,t)):this.sendMessageToHost(e,t)}detectTextLanguage(e){let t="und";return learningToolsNativeHandler&&learningToolsNativeHandler.detectTextLanguage&&(t=learningToolsNativeHandler.detectTextLanguage(e)),t}initializePDFReader(){learningToolsNativeHandler&&learningToolsNativeHandler.initializePDFReader&&learningToolsNativeHandler.initializePDFReader()}raiseMessageFromHost(e){this._messageFromHost.trigger(e)}initialize(e){if(e[2].length>0){let t=JSON.parse(e[2]);r.FeatureList.create(t)}}sendMessageToHost(e,t){learningToolsNativeHandler&&("Telemetry"===e&&t.shift(),learningToolsNativeHandler.sendMessageToHost(e,t))}}},1537:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsSettingsEventHandlers=void 0;const n=i(6111);t.LearningToolsSettingsEventHandlers=class{constructor(e,t){this._learningToolsSettingsStore=e,this._hostProxy=t,this._hostProxy.initializeComprehensionToolsSettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializeGrammarToolsSettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._hostProxy.initializePictureDictionarySettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializePictureDictionarySettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._hostProxy.initializeLineFocusSettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializeLineFocusSettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._learningToolsSettingsStore.onSettingChanged().subscribe((e=>{switch(e.name){case n.ComprehensionToolsPOSColors:let t=JSON.parse(this._learningToolsSettingsStore.getComprehensionToolsSettings());t[e.name]=e.value,this._hostProxy.sendComprehensionToolsSettings(JSON.stringify(t));break;case n.ComprehensionToolsLineMarkersEnabled:let i=JSON.parse(this._learningToolsSettingsStore.getComprehensionToolsSettings());i[e.name]=e.value,this._hostProxy.sendComprehensionToolsSettings(JSON.stringify(i));break;case n.LineFocusLineCount:let o=JSON.parse(this._learningToolsSettingsStore.getLineCountSettings());o[e.name]=e.value,this._hostProxy.sendLineFocusSettings(JSON.stringify(o));break;case n.PictureDictionaryEnabled:case n.PictureDictionaryFirstRunExperienceCompleted:let r=JSON.parse(this._learningToolsSettingsStore.getPictureDictionarySettings());r[e.name]=e.value,this._hostProxy.sendPictureDictionarySettings(JSON.stringify(r))}})),this._hostProxy.settingsUpdateRequested().subscribe((e=>{this._learningToolsSettingsStore.onSettingsUpdateFromHost(e)}))}}},6111:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsSettingsStoreProxy=t.PictureDictionaryFirstRunExperienceCompleted=t.PictureDictionaryEnabled=t.LineFocusLineCount=t.ComprehensionToolsLineMarkersEnabled=t.ComprehensionToolsPOSColors=void 0;const n=i(9636),o=i(8121),r='{"ComprehensionTools_PartsOfSpeechColors": [ {"nounsColorIndex": 5, "verbsColorIndex": 4, "adjectivesColorIndex": 1, "adverbsColorIndex": 9} ], "ComprehensionTools_LineMarkersEnabled":false}';t.ComprehensionToolsPOSColors="ComprehensionTools_PartsOfSpeechColors",t.ComprehensionToolsLineMarkersEnabled="ComprehensionTools_LineMarkersEnabled",t.LineFocusLineCount="LineFocus_LineCount",t.PictureDictionaryEnabled="PictureDictionary_Enabled",t.PictureDictionaryFirstRunExperienceCompleted="PictureDictionary_FirstRunExperienceCompleted",t.LearningToolsSettingsStoreProxy=class{constructor(){this._onSettingChanged=new n.EventSource}get currentFrame(){return this._currentFrame}getComprehensionToolsSettings(){return JSON.stringify(this._comprehensionToolsSettings)}getPictureDictionarySettings(){return JSON.stringify(this._pictureDictionarySettings)}getLineCountSettings(){return JSON.stringify(this._lineFocusSettings)}onSettingChanged(){return this._onSettingChanged}getSetting(e){let i;switch(e){case t.ComprehensionToolsPOSColors:case t.ComprehensionToolsLineMarkersEnabled:i=this._comprehensionToolsSettings;break;case t.PictureDictionaryEnabled:case t.PictureDictionaryFirstRunExperienceCompleted:i=this._pictureDictionarySettings;break;case t.LineFocusLineCount:i=this._lineFocusSettings}return i&&i.hasOwnProperty(e)?i[e]:null}setSetting(e,i){let n;switch(e){case t.ComprehensionToolsPOSColors:case t.ComprehensionToolsLineMarkersEnabled:n=this._comprehensionToolsSettings;break;case t.PictureDictionaryEnabled:case t.PictureDictionaryFirstRunExperienceCompleted:n=this._pictureDictionarySettings;break;case t.LineFocusLineCount:n=this._lineFocusSettings}n&&n.hasOwnProperty(e)&&(n[e]=i,this._onSettingChanged.trigger({name:e,value:i}))}onSettingsUpdateFromHost(e){}onInitializeGrammarToolsSettingsFromHost(e,i){if(this._currentFrame=e,this._comprehensionToolsSettings=o.JsonUtilities.parseJsonOrNull(i,"ComprehensionTools","InitialSettings"),this._comprehensionToolsSettings)if(this._comprehensionToolsSettings.hasOwnProperty(t.ComprehensionToolsLineMarkersEnabled)&&this._comprehensionToolsSettings.hasOwnProperty(t.ComprehensionToolsPOSColors)){let e=this._comprehensionToolsSettings[t.ComprehensionToolsPOSColors];if(e&&(!e.hasOwnProperty("verbsColorIndex")||!e.hasOwnProperty("nounsColorIndex")||!e.hasOwnProperty("adverbsColorIndex")||!e.hasOwnProperty("adverbsColorIndex")))return void o.JsonUtilities.parseJsonOrNull(r,"ComprehensionTools","InitialSettings")}else this._comprehensionToolsSettings=o.JsonUtilities.parseJsonOrNull(r,"ComprehensionTools","InitialSettings");else this._comprehensionToolsSettings=o.JsonUtilities.parseJsonOrNull(r,"ComprehensionTools","InitialSettings")}onInitializePictureDictionarySettingsFromHost(e,i){this._currentFrame=e,this._pictureDictionarySettings=o.JsonUtilities.parseJsonOrNull(i,"PictureDictionary","InitialSettings"),this._pictureDictionarySettings&&(!this._pictureDictionarySettings||this._pictureDictionarySettings.hasOwnProperty(t.PictureDictionaryEnabled)&&this._pictureDictionarySettings.hasOwnProperty(t.PictureDictionaryFirstRunExperienceCompleted))||(this._pictureDictionarySettings=o.JsonUtilities.parseJsonOrNull('{"PictureDictionary_Enabled":false, "PictureDictionary_FirstRunExperienceCompleted":false}',"PictureDictionary","InitialSettings"))}onInitializeLineFocusSettingsFromHost(e,i){this._currentFrame=e,this._lineFocusSettings=o.JsonUtilities.parseJsonOrNull(i,"LineFocus","InitialSettings"),(!this._lineFocusSettings||this._lineFocusSettings&&!this._lineFocusSettings.hasOwnProperty(t.LineFocusLineCount))&&(this._lineFocusSettings=o.JsonUtilities.parseJsonOrNull('{"LineFocus_LineCount":1}',"LineFocus","InitialSettings"))}}},2277:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NLXAppProxy=void 0,t.NLXAppProxy=class{constructor(e,t){this.processNLXResponse=e=>{if(this._pendingRequests.has(e.contextId)){let t=this._pendingRequests.get(e.contextId);t&&t(e),this._pendingRequests.delete(e.contextId)}},this._sendNLXRequest=e,this._pendingRequests=new Map,t.subscribe(this.processNLXResponse)}processNLXRequest(e,t){this._pendingRequests.set(e.contextId,t||null),this._sendNLXRequest(e)}}},1701:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NLXProcessor=t.ProcessingState=t.maxSimultaneousRequests=void 0;const n=i(1937),o=i(5472),r=i(9636),s=i(116),a=i(8121),l=i(1694),u=i(6593),d=i(6916);var c;t.maxSimultaneousRequests=9,function(e){e[e.Unprocessed=0]="Unprocessed",e[e.Processing=1]="Processing",e[e.Processed=2]="Processed"}(c=t.ProcessingState||(t.ProcessingState={}));class h{constructor(e,t,i,o,s){this.onNLXResponse=e=>{this._numberOfOngoingRequests--,this.handlePendingRequests(),this.processNLXResponse(e)},this._targetDocument=e,this._contextIdCounter=0,this._targetDocumentIndex=t,this._nlxApp=o,this.initializeRequestAndResponseStateMaps(),this._requestCancelled=new r.EventSource,this._responseDataReceived=new r.EventSource,this._responseDataPreProcessed=new r.EventSource,this._telemetryClient=s,this._pendingRequests=[],this._numberOfOngoingRequests=0,this._nlxUnitGenerator=new n.NLXUnitGenerator(this._targetDocument,3e3,null)}onResponseDataPreprocessed(){return this._responseDataPreProcessed}onResponseDataReceived(){return this._responseDataReceived}onRequestCancellation(){return this._requestCancelled}createAndSendNLXRequests(e){const t=Date.now(),i=this.getLearningToolRequestStates(e);if(!i)return;const n=this.findUnitInViewport();if(-1!=n){let o;for(this.maybeCreateAndSendRequest(i[n],e,t,!0),o=n-1;o>=0&&this.isUnitInViewport(this._nlxUnitGenerator.getNLXUnitAt(o));o--)this.maybeCreateAndSendRequest(i[o],e,t,!0);const r=this._nlxUnitGenerator.getOrCreateNLXUnits().length;for(o=n+1;othis._targetDocument.documentElement.clientHeight}isUnitInViewport(e){return!this.isUnitAboveViewport(e)&&!this.isUnitBelowViewport(e)}cancelRequests(e){let t=this._toolRequestStates.get(e);this._pendingRequests=this._pendingRequests.filter((i=>{let n=!1;return this.getToolTypeFromContextId(i.contextId)!==e||t.some((e=>e.contextId===i.contextId&&(n=!0,!0))),n})),t.forEach((e=>{e.processingState===c.Processing&&(e.processingState=c.Unprocessed,e.contextId=null,e.toolRequestStartTime=null)}))}resetLearningToolRequestState(e){this.cancelRequests(e),this.initializeRequestAndResponseStateMaps(),this._numberOfOngoingRequests=0,this._nlxUnitGenerator&&this._nlxUnitGenerator.reset()}static getNlxStatusForLanguageError(e){return e&&e.has(l.LanguageStatus.NotSupported)?u.NlxStatus.LanguageNotSupported:u.NlxStatus.Success}static getNlxStatusForNetworkError(e){return null===e?u.NlxStatus.Success:5===e?u.NlxStatus.NetworkErrorInternetDisconnected:-1!==[24,429,499,500,503].indexOf(e)?u.NlxStatus.NetworkErrorRetryAfterSometime:-1!==[401,501,505].indexOf(e)?u.NlxStatus.NetworkErrorBrowserNeedsToBeUpdated:-1!==[400,403,404,405,409,410,412].indexOf(e)?u.NlxStatus.NetworkErrorUnexpected:u.NlxStatus.NetworkErrorUnknown}getLinguisticModelOperationResult(e){return d.HttpResponseCodeOperationResultMap.has(e)?d.HttpResponseCodeOperationResultMap.get(e):d.LinguisticModelOperationResult.HttpResponseUnknown}getLearningToolRequestStates(e){let t=this._toolRequestStates.get(e);if(!t||t.length>0)return t;const i=this._nlxUnitGenerator.getOrCreateNLXUnits().length;for(let e=0;ee.support.syllables:n===s.LearningToolType.PartsOfSpeech?i=e=>e.support.partsOfSpeech:n===s.LearningToolType.PictureDictionary&&(i=e=>e.support.pictureDictionary),t.languageError=new Set,e.forEach((e=>{let n=i(e);n!==l.LanguageStatus.NotSupported&&n!==l.LanguageStatus.Supported_NotInstalled||t.languageError.has(n)||t.languageError.add(n)}))}initializeRequestAndResponseStateMaps(){this._toolRequestStates=new Map,this._responseStates=new Map;for(let e in s.LearningToolType)Number(e)&&this._toolRequestStates.set(Number(e),[])}processNLXResponse(e){switch(e.responseType){case h.LearningToolsDataResponse:this.processNLXDataResponse(e);break;case h.LearningToolsCancellationResponse:this.processNLXCancellationResponse(e)}}handlePendingRequests(){for(;this._pendingRequests.length>0&&this._numberOfOngoingRequestsi.contextId===e&&(t.nlxUnitRequestState=i,!0)))&&(t.learningToolType=i),t.nlxUnitRequestState&&t.learningToolType?t:null}maybeCreateAndSendRequest(e,i,n,o){if(e)if(e.processingState===c.Processed&&o)this._responseDataPreProcessed.trigger(this._responseStates.get(e.contextId));else if(e.processingState===c.Unprocessed){e.processingState=c.Processing,e.toolRequestStartTime=n;const o=this.createNewRequest(i,e);this._numberOfOngoingRequests>=t.maxSimultaneousRequests?this._pendingRequests.push(o):(this._numberOfOngoingRequests++,this._nlxApp.processNLXRequest(o,this.onNLXResponse))}}createNewRequest(e,t){const i=JSON.stringify({text:this._nlxUnitGenerator.getNLXUnitAt(t.nlxUnitSequenceNumber).unitText}),n=this.createContextId(e);return t.contextId=n,{contextId:n,requestType:h.LearningToolsProcessingRequest,metaJson:o.NLXRequestConsts.Meta,action:o.NLXRequestConsts.GetLinguisticModel,version:o.NLXRequestConsts.Version,optionsJson:this.getOptionsJson(e),dataJson:i}}createContextId(e){return this._contextIdCounter++,e.toString()+"-"+this._targetDocumentIndex.toString()+this._contextIdCounter.toString()+Date.now().toString()}getToolTypeFromContextId(e){const t=e.search("-");return Number(e.substr(0,t))}getOptionsJson(e){let t;switch(e){case s.LearningToolType.Syllables:t=o.NLXRequestConsts.LinguisticModelRequestSyllablesOptions;break;case s.LearningToolType.PartsOfSpeech:t=o.NLXRequestConsts.LinguisticModelRequestPOSOptions;break;case s.LearningToolType.PictureDictionary:t=o.NLXRequestConsts.LinguisticModelRequestPictureDictionaryOptions}return t}}h.LearningToolsDataResponse="LinguisticModelResponse",h.LearningToolsCancellationResponse="OperationCancelled",h.LearningToolsProcessingRequest="GetLinguisticModel",t.NLXProcessor=h},5472:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.NLXRequestConsts=void 0,(i=t.NLXRequestConsts||(t.NLXRequestConsts={})).GetLinguisticModel="GetLinguisticModelByText",i.Meta=JSON.stringify({appId:"Edge"}),i.Version="2.0",i.LinguisticModelRequestSyllablesOptions=JSON.stringify({enableLanguageDetection:!0,returnWordSegments:!0,returnPartsOfSpeech:!1,returnSyllables:!0,returnLanguages:!0,returnPictureDictionaryEntries:!1}),i.LinguisticModelRequestPOSOptions=JSON.stringify({enableLanguageDetection:!0,returnWordSegments:!0,returnPartsOfSpeech:!0,returnSyllables:!1,returnLanguages:!0,returnPictureDictionaryEntries:!1}),i.LinguisticModelRequestPictureDictionaryOptions=JSON.stringify({enableLanguageDetection:!0,returnWordSegments:!0,returnPartsOfSpeech:!1,returnSyllables:!1,returnLanguages:!0,returnPictureDictionaryEntries:!0})},1694:(e,t)=>{var i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageStatus=t.ApiStatus=void 0,(n=t.ApiStatus||(t.ApiStatus={}))[n.Unknown=0]="Unknown",n[n.Success_200_OK=200]="Success_200_OK",n[n.Success_201_Created=201]="Success_201_Created",n[n.Success_202_Accepted=202]="Success_202_Accepted",n[n.Success_204_NoContent=204]="Success_204_NoContent",n[n.ClientError_400_BadRequest=400]="ClientError_400_BadRequest",n[n.ClientError_401_Unauthorized=401]="ClientError_401_Unauthorized",n[n.ClientError_403_Forbidden=403]="ClientError_403_Forbidden",n[n.ClientError_404_NotFound=404]="ClientError_404_NotFound",n[n.ClientError_405_MethodNotAllowed=405]="ClientError_405_MethodNotAllowed",n[n.ClientError_408_RequestTimeout=408]="ClientError_408_RequestTimeout",n[n.ClientError_409_Conflict=409]="ClientError_409_Conflict",n[n.ClientError_410_Gone=410]="ClientError_410_Gone",n[n.ClientError_412_PreconditionFailed=412]="ClientError_412_PreconditionFailed",n[n.ServerError_500_InternalServerError=500]="ServerError_500_InternalServerError",n[n.ServerError_501_NotImplemented=501]="ServerError_501_NotImplemented",n[n.ServerError_503_ServiceUnavailable=503]="ServerError_503_ServiceUnavailable",n[n.ServerError_505_VersionNotSupported=505]="ServerError_505_VersionNotSupported",(i=t.LanguageStatus||(t.LanguageStatus={}))[i.NotSupported=0]="NotSupported",i[i.Supported_NotInstalled=100]="Supported_NotInstalled",i[i.Supported_InstallPending=101]="Supported_InstallPending",i[i.Installed=200]="Installed",i[i.Installed_UpdateAvailable=201]="Installed_UpdateAvailable",i[i.Supported_FailedInstall=500]="Supported_FailedInstall"},1937:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NLXUnitGenerator=void 0;const n=i(3487),o=i(604);class r{constructor(e,t,i){this._document=e,this._treeWalker=o.TreeNodeWalker.createTreeTextNodeWalker(this._document.body),this.setStartingElementNode(this._document.body),this._approximateUnitLength=t,this._ignoreElementClass=i,this._nlxUnits=null}setStartingElementNode(e){this._treeWalker.currentNode=e,this._currentUnitStartTextNode=this._treeWalker.nextNode()}getOrCreateNLXUnits(){return this._nlxUnits?this._nlxUnits:this.createNlxUnits()}getNLXUnitAt(e){return e>=0&&e0&&this._nlxUnits.forEach((e=>{e.endMarker.release(),e.startMarker.release()})),this._nlxUnits=null,this._treeWalker=o.TreeNodeWalker.createTreeTextNodeWalker(this._document.body),this.setStartingElementNode(this._document.body)}createNlxUnits(){let e;for(this._nlxUnits=[];e=this.getNextNLXUnit();)this._nlxUnits.push(e);return this._nlxUnits}getNextNLXUnit(){if(this._currentUnitStartTextNode){let e,t,i=this._currentUnitStartTextNode,n="",o=[],s=this.getNonIgnoredParentElement(i);for(;i&&(n.lengthe===i.parentElement.tagName.toLowerCase()))>-1);)e=this.getNonIgnoredParentElement(i),s!==e&&(o.push(n.length),n+="\n"),n+=i.textContent,s=e,t=i,i=this._treeWalker.nextNode();const a=this.createMarker(t,t.textContent.length),l=this.createMarker(this._currentUnitStartTextNode,0);return this._currentUnitStartTextNode=i,{unitText:n,newLineOffsets:o,startMarker:l,endMarker:a}}return null}getNonIgnoredParentElement(e){let t=e.parentElement;for(;t&&!(r.IgnoreTagList.findIndex((e=>e===t.tagName.toLowerCase()))<0);)t=t.parentElement;return t}createMarker(e,t){const i=e.ownerDocument.createRange();return i.setStart(e,t),i.setEnd(e,t),n.Highlighter.surroundTextByTag(r.MarkerTagName,i,(()=>!0),(()=>{}),this._ignoreElementClass?[this._ignoreElementClass]:[])}}r.IgnoreTagList=["msnoun","msverb","msadjective","mssyllable","msadverb","mark","msreadoutspan","msmarker"],r.MarkerTagName="msunitmarker",t.NLXUnitGenerator=r},8182:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NlxWordSegmentFinder=void 0;const n=i(604);t.NlxWordSegmentFinder=class{constructor(e,t){e&&t&&(this._textNodeWalker=n.TreeNodeWalker.createTreeTextNodeWalker(e),this._textNodeWalker.currentNode=t.startMarker.value()[0],this._textNodeWalker.nextNode(),this._newLineOffsets=t.newLineOffsets,this._newLineOffsetIndex=0,this._currentTextOffset=0)}findWordSegment(e){let t=e.o,i=t+e.l,n=this.findNodeAndOffset(t),o=this.findNodeAndOffset(i);return this._currentTextOffset+=o.offsetInCurrentNode,{wordStartNode:n.node,wordOffsetInCurrentNode:n.offsetInCurrentNode,wordEndNode:o.node,wordOffsetInEndingNode:o.offsetInCurrentNode,textNodeWalker:this._textNodeWalker}}findNodeAndOffset(e){if(this._newLineOffsets)for(;this._newLineOffsetIndex{var i,n,o,r;Object.defineProperty(t,"__esModule",{value:!0}),t.LineFocusLineCountType=t.HttpResponseCodeOperationResultMap=t.LinguisticModelOperationResult=t.ReadAloudPdfErrors=t.LearningToolsHistogramNames=void 0,(r=t.LearningToolsHistogramNames||(t.LearningToolsHistogramNames={}))[r.ComprehensionToolsSyllabifyResultHistogram=0]="ComprehensionToolsSyllabifyResultHistogram",r[r.ComprehensionToolsPartsOfSpeechResultHistogram=1]="ComprehensionToolsPartsOfSpeechResultHistogram",r[r.ComprehensionToolsPaneInitializationResultHistogram=2]="ComprehensionToolsPaneInitializationResultHistogram",r[r.ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram=3]="ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram",r[r.ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram=4]="ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram",r[r.ComprehensionToolsPaneInitializationTimeTakenForCompletionHistogram=5]="ComprehensionToolsPaneInitializationTimeTakenForCompletionHistogram",r[r.ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram=6]="ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram",r[r.ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram=7]="ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram",r[r.ComprehensionToolsDwellTimeHistogram=8]="ComprehensionToolsDwellTimeHistogram",r[r.ReadAloudDwellTimeWeb=9]="ReadAloudDwellTimeWeb",r[r.ReadAloudDwellTimeReadingView=10]="ReadAloudDwellTimeReadingView",r[r.ReadAloudDwellTimePDF=11]="ReadAloudDwellTimePDF",r[r.ReadAloudVoiceUsageWeb=12]="ReadAloudVoiceUsageWeb",r[r.ReadAloudVoiceUsageReadingView=13]="ReadAloudVoiceUsageReadingView",r[r.ReadAloudVoiceUsagePDF=14]="ReadAloudVoiceUsagePDF",r[r.LineFocusStartStatus=15]="LineFocusStartStatus",r[r.LineFocusDwellTime=16]="LineFocusDwellTime",r[r.LineFocusTimeToStart=17]="LineFocusTimeToStart",r[r.LineFocusLineCount=18]="LineFocusLineCount",r[r.ReadAloudPdfPageCount=19]="ReadAloudPdfPageCount",r[r.ReadAloudPdfError=20]="ReadAloudPdfError",r[r.PictureDictionaryResultHistogram=21]="PictureDictionaryResultHistogram",r[r.ReadAloudPdfStartTimeToPageRatio=22]="ReadAloudPdfStartTimeToPageRatio",r[r.PictureDictionaryServiceRequestProcessingTimeHistogram=23]="PictureDictionaryServiceRequestProcessingTimeHistogram",r[r.PictureDictionaryPopupLaunchCount=24]="PictureDictionaryPopupLaunchCount",r[r.PictureDictionaryTimeTakenForPopupCreation=25]="PictureDictionaryTimeTakenForPopupCreation",r[r.PictureDictionaryWordsWithPicturesPercentage=26]="PictureDictionaryWordsWithPicturesPercentage",r[r.PictureDictionaryPopupLaunchPercentage=27]="PictureDictionaryPopupLaunchPercentage",r[r.PictureDictionaryToggleState=28]="PictureDictionaryToggleState",r[r.ReadAloudPdfAxTreeLoadTime=29]="ReadAloudPdfAxTreeLoadTime",r[r.ReadingViewToolsUsed=30]="ReadingViewToolsUsed",r[r.ReadingViewSelectionToolsUsed=31]="ReadingViewSelectionToolsUsed",r[r.ReadAloudOnlineCharacterCountWeb=32]="ReadAloudOnlineCharacterCountWeb",r[r.ReadAloudOnlineCharacterCountReadingView=33]="ReadAloudOnlineCharacterCountReadingView",r[r.ReadAloudOnlineCharacterCountPDF=34]="ReadAloudOnlineCharacterCountPDF",r[r.ReadAloudOfflineCharacterCountWeb=35]="ReadAloudOfflineCharacterCountWeb",r[r.ReadAloudOfflineCharacterCountReadingView=36]="ReadAloudOfflineCharacterCountReadingView",r[r.ReadAloudOfflineCharacterCountPDF=37]="ReadAloudOfflineCharacterCountPDF",r[r.ReadAloudStartPageNumberWeb=38]="ReadAloudStartPageNumberWeb",r[r.ReadAloudStartPageNumberReadingView=39]="ReadAloudStartPageNumberReadingView",r[r.ReadAloudStartPageNumberPDF=40]="ReadAloudStartPageNumberPDF",r[r.ReadAloudVoiceChangeCountWeb=41]="ReadAloudVoiceChangeCountWeb",r[r.ReadAloudVoiceChangeCountReadingView=42]="ReadAloudVoiceChangeCountReadingView",r[r.ReadAloudVoiceChangeCountPDF=43]="ReadAloudVoiceChangeCountPDF",r[r.ReadAloudRateChangeCountWeb=44]="ReadAloudRateChangeCountWeb",r[r.ReadAloudRateChangeCountReadingView=45]="ReadAloudRateChangeCountReadingView",r[r.ReadAloudRateChangeCountPDF=46]="ReadAloudRateChangeCountPDF",r[r.ComprehensionToolsPartsOfSpeechUsed=47]="ComprehensionToolsPartsOfSpeechUsed",r[r.ComprehensionToolsSyllablesUsed=48]="ComprehensionToolsSyllablesUsed",r[r.PictureDictionaryUsed=49]="PictureDictionaryUsed",r[r.ReadAloudSpeechSynthesisInvoked=50]="ReadAloudSpeechSynthesisInvoked",r[r.ReadAloudContinueClickCountWeb=51]="ReadAloudContinueClickCountWeb",(o=t.ReadAloudPdfErrors||(t.ReadAloudPdfErrors={}))[o.None=0]="None",o[o.AccessibilityTreeLoadTimeout=1]="AccessibilityTreeLoadTimeout",o[o.AccessibilityTreeUpdateTimeout=2]="AccessibilityTreeUpdateTimeout",o[o.MojoPipeBindingBrowserToRendererFailed=3]="MojoPipeBindingBrowserToRendererFailed",o[o.AccessibilityTreeHelperCreationFailed=4]="AccessibilityTreeHelperCreationFailed",o[o.AccessibilityTreeSerializationFailed=5]="AccessibilityTreeSerializationFailed",o[o.InitialParamsJSONFailure=6]="InitialParamsJSONFailure",o[o.kMaxValue=6]="kMaxValue",function(e){e[e.Success=0]="Success",e[e.TimedOut=1]="TimedOut",e[e.ProcessLinguisticModelRequestFailed=2]="ProcessLinguisticModelRequestFailed",e[e.BuildLiguisticModelRequestContentFailed=3]="BuildLiguisticModelRequestContentFailed",e[e.CreateLinguisticModelResourceRequestFailed=4]="CreateLinguisticModelResourceRequestFailed",e[e.RequestFailedInternetDisconnected=5]="RequestFailedInternetDisconnected",e[e.HttpResponseBadRequest=6]="HttpResponseBadRequest",e[e.HttpResponseUnAuthorized=7]="HttpResponseUnAuthorized",e[e.HttpResponseForbidden=8]="HttpResponseForbidden",e[e.HttpResponseNotFound=9]="HttpResponseNotFound",e[e.HttpResponseMethodNotAllowed=10]="HttpResponseMethodNotAllowed",e[e.HttpResponseRequestTimeout=11]="HttpResponseRequestTimeout",e[e.HttpResponseConflict=12]="HttpResponseConflict",e[e.HttpResponseGone=13]="HttpResponseGone",e[e.HttpResponsePreconditionFailed=14]="HttpResponsePreconditionFailed",e[e.HttpResponseCancelled=15]="HttpResponseCancelled",e[e.HttpResponseRequestEntityTooLarge=16]="HttpResponseRequestEntityTooLarge",e[e.HttpResponseTooManyRequests=17]="HttpResponseTooManyRequests",e[e.HttpResponseInternalServerError=18]="HttpResponseInternalServerError",e[e.HttpResponseServiceUnavailable=19]="HttpResponseServiceUnavailable",e[e.HttpResponseVersionNotSupported=20]="HttpResponseVersionNotSupported",e[e.HttpResponseNotImplemented=21]="HttpResponseNotImplemented",e[e.HttpResponseUnknown=22]="HttpResponseUnknown",e[e.BuildLiguisticModelResponseFailed=23]="BuildLiguisticModelResponseFailed",e[e.LinguisticModelResourceRequestTimedOut=24]="LinguisticModelResourceRequestTimedOut",e[e.kMaxValue=24]="kMaxValue"}(i=t.LinguisticModelOperationResult||(t.LinguisticModelOperationResult={})),t.HttpResponseCodeOperationResultMap=new Map([[0,i.HttpResponseUnknown],[2,i.ProcessLinguisticModelRequestFailed],[3,i.BuildLiguisticModelRequestContentFailed],[4,i.CreateLinguisticModelResourceRequestFailed],[5,i.RequestFailedInternetDisconnected],[23,i.BuildLiguisticModelResponseFailed],[24,i.LinguisticModelResourceRequestTimedOut],[400,i.HttpResponseBadRequest],[401,i.HttpResponseUnAuthorized],[403,i.HttpResponseForbidden],[404,i.HttpResponseNotFound],[405,i.HttpResponseMethodNotAllowed],[408,i.HttpResponseRequestTimeout],[409,i.HttpResponseConflict],[410,i.HttpResponseGone],[412,i.HttpResponsePreconditionFailed],[413,i.HttpResponseRequestEntityTooLarge],[429,i.HttpResponseTooManyRequests],[499,i.HttpResponseCancelled],[500,i.HttpResponseInternalServerError],[501,i.HttpResponseNotImplemented],[503,i.HttpResponseServiceUnavailable],[505,i.HttpResponseVersionNotSupported]]),(n=t.LineFocusLineCountType||(t.LineFocusLineCountType={}))[n.OneLine=0]="OneLine",n[n.ThreeLines=1]="ThreeLines",n[n.FiveLines=2]="FiveLines",n[n.kMaxValue=2]="kMaxValue"},5249:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryClient=void 0;const n=i(6916),o=i(6401),r=i(116),s=i(8048),a=i(4680),l=i(9737);t.TelemetryClient=class{constructor(e){this._hostProxy=e}reportJsonParsingError(e,t){this._hostProxy&&"ReadOutLoud"===e&&this._hostProxy.sendTelemetry("Browser",e,e+"_Error",s.ReadAloudErrors[t].toString())}reportLearningToolNLXRequestProcessTime(e,t,i){e!==r.LearningToolType.PartsOfSpeech&&e!==r.LearningToolType.Syllables||!this._hostProxy?e===r.LearningToolType.PictureDictionary&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_NLXRequestProcessTimeMessage",r.LearningToolType[e],t,i.toString()):this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_NLXRequestProcessTimeMessage",r.LearningToolType[e],t,i.toString())}reportComprehensionToolsResultState(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_OperationResultState",o.ComprehensionToolType[e],n.LinguisticModelOperationResult[t],i.toString())}reportComprehensionToolsDwellTime(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_LogDwellTime",e.toString())}reportComprehensionToolsUsage(e){this._hostProxy&&this._hostProxy.sendTelemetry(l.RendererHost,l.ComprehensionToolsFeatureName,l.ComprehensionToolsLogUsage,o.ComprehensionToolType[e])}reportReadOutLoudDwellTime(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogDwellTime",a.ContentType[e].toString(),t.toString())}reportReadOutLoudSuccess(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_Success",e,t.toString(),i.toString())}reportReadOutLoudVoiceUsage(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_VoiceUsage",a.ContentType[e].toString(),t.toString())}reportReadOutLoudInternalError(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_Error",e.toString())}reportReadOutLoudStartStates(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_StartStates",e.toString())}reportReadOutLoudPDFPageCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogPageCount",e.toString())}reportReadOutLoudStartPageNumber(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogStartPageNumber",a.ContentType[e].toString(),t.toString())}reportReadOutLoudPdfTimeToPageRatio(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogTimeToPageRatio",e.toString())}reportReadOutLoudPdfError(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoudPdf_Error",e.valueOf().toString())}reportReadOutLoudCharacterCount(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogCharacterCount",t.toString(),a.ContentType[e].toString(),i.toString())}reportNoPII(e,t){this._hostProxy&&this._hostProxy.sendTelemetryErrorMeasureNoPII(e,t)}reportLineFocusStartStatus(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_StartStatus",e.toString())}reportLineFocusDwellTime(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_DwellTime",e.toString())}reportLineFocusTimeToStart(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_TimeToStart",e.toString())}reportLineFocusLineCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_LineCount",e.toString())}reportPictureDictionaryResultState(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_OperationResultState",n.LinguisticModelOperationResult[e],t.toString())}reportPictureDictionaryPopupLaunchCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_PopupLaunchCount",e.toString())}reportPictureDictionaryTimeTakenForPopupCreation(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_TimeTakenForPopupCreation",e.toString())}reportPictureDictionaryWordsWithPicturesPercentage(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_WordsWithPicturesPercentage",e.toString())}reportPictureDictionaryPopupLaunchPercentage(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_PopupLaunchPercentage",e.toString())}reportPictureDictionaryToggleState(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_ToggleState",e.toString())}reportPictureDictionaryUsage(){this._hostProxy&&this._hostProxy.sendTelemetry(l.RendererHost,l.PictureDictionaryFeatureName,l.PictureDictionaryLogUsage)}reportReadOutLoudVoiceChange(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesVoiceChanged",a.ContentType[e].toString(),t.toString())}reportReadOutLoudRateChange(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesRateChanged",a.ContentType[e].toString(),t.toString())}reportReadOutLoudSpeechSynthesisInvoke(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesSpeechSynthesisInvoked",e.toString())}reportReadOutLoudContinueClickCount(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogContinueClickCount",t.toString(),a.ContentType[e].toString())}reportReadOutLoudSmartReadStatus(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_SmartReadStatus",e.toString())}reportReadOutLoudSmartReadContentMatch(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_SmartReadContentMatch",e.toString())}}},9737:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PictureDictionaryLogUsage=t.PictureDictionaryFeatureName=t.ComprehensionToolsLogUsage=t.ComprehensionToolsFeatureName=t.RendererHost=void 0,t.RendererHost="Renderer",t.ComprehensionToolsFeatureName="ComprehensionTools",t.ComprehensionToolsLogUsage="ComprehensonTools_LogUsage",t.PictureDictionaryFeatureName="PictureDictionary",t.PictureDictionaryLogUsage="PictureDictionary_LogUsage"},214:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryLogger=void 0;const n=i(6916),o=i(6401),r=i(8048),s=i(116),a=i(9737);class l{static logTelemetry(e){switch(e[1]){case"ReadOutLoud":l.handleReadAloudTelemetryMessage(e);break;case"ComprehensionTools":l.handleComprehensionToolsTelemetryMessage(e);break;case"LineFocus":l.handleLineFocusTelemetryMessage(e);break;case"PictureDictionary":l.handlePictureDictionaryTelemetryMessage(e);break;default:return}}static handleLineFocusTelemetryMessage(e){e.length<4||("LineFocus_StartStatus"===e[2]?l.logLineFocusStartStatus("true"===e[3]):"LineFocus_TimeToStart"===e[2]?l.logLineFocusTimeToStart(Number(e[3])):"LineFocus_DwellTime"===e[2]?l.logLineFocusDwellTime(Number(e[3])):"LineFocus_LineCount"===e[2]&&l.logLineFocusLineCount(Number(e[3])))}static handleComprehensionToolsTelemetryMessage(e){e.length>=6&&"ComprehensionTools_OperationResultState"===e[2]?l.logComprehensionToolOperationResult(e[3],n.LinguisticModelOperationResult[e[4]],Number(e[5])):e.length>=6&&"ComprehensionTools_NLXRequestProcessTimeMessage"===e[2]?l.logNLXRequestProcessTime(e[3],e[4],Number(e[5])):e.length>=4&&"ComprehensionTools_LogDwellTime"===e[2]?l.logComprehensionToolsDwellTime(Number(e[3])):e.length>=4&&e[2]===a.ComprehensionToolsLogUsage&&l.logComprehensionToolsUsage(e[3])}static handleReadAloudTelemetryMessage(e){"ReadOutLoud_LogDwellTime"===e[2]?l.logReadAloudDwellTime(e[3],Number(e[4])):"ReadOutLoud_VoiceUsage"===e[2]?l.logReadAloudVoiceUsage(e[3],"true"===e[4]):"ReadOutLoud_LogPageCount"===e[2]?isNaN(Number(e[3]))||l.logReadAloudPdfPageCount(Number(e[3])):"ReadOutLoud_LogTimeToPageRatio"===e[2]?isNaN(Number(e[3]))||l.logReadAloudPdfPageToTimeRatio(Number(e[3])):"ReadOutLoudPdf_Error"===e[2]?isNaN(Number(e[3]))||l.logReadAloudPdfError(Number(e[3])):"ReadOutLoud_LogCharacterCount"===e[2]?isNaN(Number(e[3]))||l.logReadAloudCharacterCount(Number(e[3]),e[4],"true"===e[5]):"ReadOutLoud_LogStartPageNumber"===e[2]?isNaN(Number(e[4]))||l.logReadAloudStartPageNumber(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesVoiceChanged"===e[2]?isNaN(Number(e[4]))||l.logReadAloudNoOfTimeVoiceChanged(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesRateChanged"===e[2]?isNaN(Number(e[4]))||l.logReadAloudNoOfTimesRateChanged(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesSpeechSynthesisInvoked"===e[2]?isNaN(Number(e[3]))||l.logReadAloudNoOfTimesSpeechSynthesisInvoked(Number(e[3])):"ReadOutLoud_LogContinueClickCount"===e[2]&&(isNaN(Number(e[3]))||l.logReadAloudContinueClickCountWebAfterROLStarted(Number(e[3]),e[4]))}static handlePictureDictionaryTelemetryMessage(e){"PictureDictionary_ToggleState"===e[2]&&4===e.length?l.logPictureDictionaryToggleState("true"===e[3]):"PictureDictionary_OperationResultState"===e[2]&&5===e.length?l.logPictureDictionaryOperationResult(n.LinguisticModelOperationResult[e[3]],Number(e[4])):"PictureDictionary_NLXRequestProcessTimeMessage"!==e[2]||6!==e.length||isNaN(Number(e[5]))?"PictureDictionary_PopupLaunchCount"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_TimeTakenForPopupCreation"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_WordsWithPicturesPercentage"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_PopupLaunchPercentage"!==e[2]||4!==e.length||isNaN(Number(e[3]))?e[2]===a.PictureDictionaryLogUsage&&l.logPictureDictionaryUsage():l.logPictureDictionaryPopupLaunchPercentage(Number(e[3])):l.logPictureDictionaryWordsWithPicturesPercentage(Number(e[3])):l.logPictureDictionaryTimeTakenForPopupCreation(Number(e[3])):l.logPictureDictionaryPopupLaunchCount(Number(e[3])):l.logNLXRequestProcessTime(e[3],e[4],Number(e[5]))}static logComprehensionToolOperationResult(e,t,i){learningToolsNativeHandler&&(e===o.ComprehensionToolType[o.ComprehensionToolType.syllables]?(learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.ComprehensionToolsSyllabifyResultHistogram,t),t===n.LinguisticModelOperationResult.Success&&learningToolsNativeHandler.logUmaHistogramMediumTimes(n.LearningToolsHistogramNames.ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram,i)):e===o.ComprehensionToolType[o.ComprehensionToolType.pos]&&(learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechResultHistogram,t),t===n.LinguisticModelOperationResult.Success&&learningToolsNativeHandler.logUmaHistogramMediumTimes(n.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram,i)))}static logComprehensionToolsDwellTime(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramLongTimes(n.LearningToolsHistogramNames.ComprehensionToolsDwellTimeHistogram,e)}static logComprehensionToolsUsage(e){if(learningToolsNativeHandler){let t;switch(e){case o.ComprehensionToolType[o.ComprehensionToolType.pos]:t=n.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechUsed;break;case o.ComprehensionToolType[o.ComprehensionToolType.syllables]:t=n.LearningToolsHistogramNames.ComprehensionToolsSyllablesUsed;break;default:return}learningToolsNativeHandler.logUmaHistogramExactLinear(t,0,1)}}static logNLXRequestProcessTime(e,t,i){learningToolsNativeHandler&&(e===s.LearningToolType[s.LearningToolType.Syllables]?"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(n.LearningToolsHistogramNames.ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram,1,18e4,50,i):e===s.LearningToolType[s.LearningToolType.PartsOfSpeech]?"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(n.LearningToolsHistogramNames.ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram,1,18e4,50,i):e===s.LearningToolType[s.LearningToolType.PictureDictionary]&&"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(n.LearningToolsHistogramNames.PictureDictionaryServiceRequestProcessingTimeHistogram,1,18e4,50,i))}static logReadAloudDwellTime(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudDwellTimeWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudDwellTimeReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudDwellTimePDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomTimes(i,1e3,36e5,50,t)}}static logReadAloudVoiceUsage(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudVoiceUsageWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudVoiceUsageReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudVoiceUsagePDF;break;default:return}let o=t?r.ReadAloudVoiceUsage.kOnlineVoice:r.ReadAloudVoiceUsage.kOfflineVoice;learningToolsNativeHandler.logUmaHistogramEnumeration(i,o)}}static logReadAloudPdfPageToTimeRatio(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.ReadAloudPdfStartTimeToPageRatio,0,18e4,50,e)}static logReadAloudPdfPageCount(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.ReadAloudPdfPageCount,0,1e4,20,e)}static logReadAloudCharacterCount(e,t,i){if(learningToolsNativeHandler){let o;if(i)switch(t){case"Web":o=n.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountWeb;break;case"ReadingView":o=n.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountReadingView;break;case"PDF":o=n.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountPDF;break;default:return}else switch(t){case"Web":o=n.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountWeb;break;case"ReadingView":o=n.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountReadingView;break;case"PDF":o=n.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(o,0,1e6,50,e)}}static logReadAloudStartPageNumber(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudStartPageNumberWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudStartPageNumberReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudStartPageNumberPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,1,1e4,40,t)}}static logLineFocusStartStatus(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramBoolean(n.LearningToolsHistogramNames.LineFocusStartStatus,e)}static logLineFocusDwellTime(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramLongTimes(n.LearningToolsHistogramNames.LineFocusDwellTime,e)}static logLineFocusTimeToStart(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramTimes(n.LearningToolsHistogramNames.LineFocusTimeToStart,e)}static logLineFocusLineCount(e){if(learningToolsNativeHandler){let t;switch(e){case 1:t=n.LineFocusLineCountType.OneLine;break;case 3:t=n.LineFocusLineCountType.ThreeLines;break;case 5:t=n.LineFocusLineCountType.FiveLines;break;default:return}learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.LineFocusLineCount,t)}}static logReadAloudPdfError(e){learningToolsNativeHandler&&e>n.ReadAloudPdfErrors.None&&e<=n.ReadAloudPdfErrors.kMaxValue&&learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.ReadAloudPdfError,e)}static logPictureDictionaryOperationResult(e,t){learningToolsNativeHandler&&e<=n.LinguisticModelOperationResult.kMaxValue&&learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.PictureDictionaryResultHistogram,e)}static logPictureDictionaryTimeTakenForPopupCreation(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramTimes(n.LearningToolsHistogramNames.PictureDictionaryTimeTakenForPopupCreation,e)}static logPictureDictionaryPopupLaunchCount(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.PictureDictionaryPopupLaunchCount,0,1e3,50,e)}static logPictureDictionaryWordsWithPicturesPercentage(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramPercentage(n.LearningToolsHistogramNames.PictureDictionaryWordsWithPicturesPercentage,e)}static logPictureDictionaryPopupLaunchPercentage(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.PictureDictionaryPopupLaunchPercentage,0,1e3,50,e)}static logPictureDictionaryToggleState(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramBoolean(n.LearningToolsHistogramNames.PictureDictionaryToggleState,e)}static logPictureDictionaryUsage(){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramExactLinear(n.LearningToolsHistogramNames.PictureDictionaryUsed,0,1)}static logReadAloudNoOfTimeVoiceChanged(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudVoiceChangeCountWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudVoiceChangeCountReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudVoiceChangeCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,t)}}static logReadAloudNoOfTimesRateChanged(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudRateChangeCountWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudRateChangeCountReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudRateChangeCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,t)}}static logReadAloudNoOfTimesSpeechSynthesisInvoked(e){if(learningToolsNativeHandler){let t=n.LearningToolsHistogramNames.ReadAloudSpeechSynthesisInvoked;learningToolsNativeHandler.logUmaHistogramCustomCounts(t,0,1e3,11,e)}}static logReadAloudContinueClickCountWebAfterROLStarted(e,t){if(learningToolsNativeHandler){let i;if("Web"!==t)return;i=n.LearningToolsHistogramNames.ReadAloudContinueClickCountWeb,learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,e)}}}t.TelemetryLogger=l},6314:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.comprehensionToolsList=t.LearningToolsList=t.PosColorDataThemeMap=t.POSList=t.HighContrastPOSColorAttributes=t.defautPOSColorIndexAdverb=t.defaultPOSColorIndexAdjective=t.defaultPOSColorIndexVerb=t.defaultPOSColorIndexNoun=t.LineMarkerTag=t.AdjectiveTag=t.AdverbTag=t.VerbTag=t.NounTag=t.SyllableTag=t.LineMarkersActiveClass=t.AdjectivesActiveClass=t.AdverbsActiveClass=t.VerbsActiveClass=t.NounsActiveClass=t.SyllablesActiveClass=void 0;const n=i(116),o=i(6593),r=i(6401);t.SyllablesActiveClass="ms-syllables-active",t.NounsActiveClass="ms-nouns-active",t.VerbsActiveClass="ms-verbs-active",t.AdverbsActiveClass="ms-adverbs-active",t.AdjectivesActiveClass="ms-adjectives-active",t.LineMarkersActiveClass="ms-linemarkers-active",t.SyllableTag="mssyllable",t.NounTag="msnoun",t.VerbTag="msverb",t.AdverbTag="msadverb",t.AdjectiveTag="msadjective",t.LineMarkerTag="mslinemarker",t.defaultPOSColorIndexNoun=5,t.defaultPOSColorIndexVerb=4,t.defaultPOSColorIndexAdjective=1,t.defautPOSColorIndexAdverb=9,t.HighContrastPOSColorAttributes=new Map([[r.ComprehensionToolType.nouns,"color-index-nouns"],[r.ComprehensionToolType.verbs,"color-index-verbs"],[r.ComprehensionToolType.adjectives,"color-index-adjectives"],[r.ComprehensionToolType.adverbs,"color-index-adverbs"]]),t.POSList=[r.ComprehensionToolType.nouns,r.ComprehensionToolType.verbs,r.ComprehensionToolType.adjectives,r.ComprehensionToolType.adverbs],t.PosColorDataThemeMap=new Map([[o.ThemeType[o.ThemeType.Light],{propertyName:"--background-light-comprehensiontools",colors:["#0c4d8a","#00661d","#815c12","#a34f00","#a80005","#9332a1","#0063c3","#008923","#c49800","#e06a00","#d82904","#b639d8"]}],[o.ThemeType[o.ThemeType.Dark],{propertyName:"--background-dark-comprehensiontools",colors:["#4da4fc","#6ec136","#e4c400","#f58f00","#ff5e5e","#c577e4","#0063c3","#008923","#c49800","#e06a00","#d82904","#b639d8"]}]]),t.LearningToolsList=[n.LearningToolType.PartsOfSpeech,n.LearningToolType.Syllables],t.comprehensionToolsList=Object.values(r.ComprehensionToolType).filter((e=>"string"==typeof e&&"pos"!==e))},6401:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolType=void 0,(i=t.ComprehensionToolType||(t.ComprehensionToolType={}))[i.syllables=1]="syllables",i[i.nouns=2]="nouns",i[i.verbs=4]="verbs",i[i.adjectives=8]="adjectives",i[i.adverbs=16]="adverbs",i[i.pos=30]="pos"},5384:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolsEventHandlers=void 0,t.ComprehensionToolsEventHandlers=class{constructor(e,t){this._releasables=[],this._hostProxy=e,this._mainViewModel=t,this._comprehensionToolsViewModel=null,this.registerHostEventHandlers(),this._isInitialized=!1}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._comprehensionToolsViewModel=null}ensureInitialize(){if(!this._isInitialized&&(this._mainViewModel.initializeLearningTools(),this._comprehensionToolsViewModel=this._mainViewModel.getComprehensionToolsViewModel(),this._comprehensionToolsViewModel)){let e=()=>{this._hostProxy.sendComprehensionToolsPaneStatus(this._comprehensionToolsViewModel.comprehensionToolsPaneStatus())};this._releasables.push(this._comprehensionToolsViewModel.onComprehensionToolsStatusChanged().subscribe((()=>{e()}))),this._releasables.push(this._comprehensionToolsViewModel.onProgressIndicatorVisibilityChanged().subscribe((e=>{e||this._hostProxy.sendProgressIndicatorVisibility(e)}))),e()}}registerHostEventHandlers(){this._hostProxy.comprehensionToolsInitialPaneStatusRequested().subscribe((()=>{this.ensureInitialize(),this._hostProxy.sendPartsOfSpeechColorsForThemes(this._comprehensionToolsViewModel.getPartsOfSpeechColorsForThemes())})),this._hostProxy.addSyllablesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addSyllables()})),this._hostProxy.addNounsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addNounHighlight()})),this._hostProxy.addVerbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addVerbHighlight()})),this._hostProxy.addAdverbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addAdverbHighlight()})),this._hostProxy.addAdjectivesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addAdjectiveHighlight()})),this._hostProxy.removeSyllablesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeSyllables()})),this._hostProxy.removeNounsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeNounHighlight()})),this._hostProxy.removeVerbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeVerbHighlight()})),this._hostProxy.removeAdjectivesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeAdjectiveHighlight()})),this._hostProxy.removeAdverbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeAdverbHighlight()})),this._hostProxy.setNounsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setNounsColor(e)})),this._hostProxy.setVerbsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setVerbsColor(e)})),this._hostProxy.setAdjectivesColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setAdjectivesColor(e)})),this._hostProxy.setAdverbsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setAdverbsColor(e)})),this._hostProxy.addLineMarkers().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addLineMarkers()})),this._hostProxy.removeLineMarkers().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeLineMarkers()})),this._hostProxy.languageChangeRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onLanguageChangeRequested()})),this._hostProxy.languageChangeRequestCompleted().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onLanguageChangeRequestCompleted()})),this._hostProxy.onContentShifted().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onContentShifted()}))}}},759:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentComprehensionTools=void 0;const n=i(116),o=i(6401),r=i(7734),s=i(3487),a=i(604),l=i(8182),u=i(8945),d=i(6314);class c{constructor(e,t,i,n){this._targetDocument=e,this._rootNode=t,this._localizedPOSLabels=i,this._posColorDataThemeMap=n,this.initializeReleasableHighlights(),this._colorStylesReleasable=null}releaseLearningToolMarkers(e){e===n.LearningToolType.Syllables?this.releaseComprehensionMarkers(this._syllablesReleasableHighlights):e===n.LearningToolType.PartsOfSpeech&&this.releaseComprehensionMarkers(this._posReleasableHighlights)}resetLineMarkers(){this._lineMarkersReleasableHighlights.forEach((e=>{e.release()})),this._lineMarkersReleasableHighlights=[]}initializeReleasableHighlights(){this._syllablesReleasableHighlights=new Map,this._posReleasableHighlights=new Map,this._lineMarkersReleasableHighlights=new Array,this._syllablesReleasableHighlights.set(o.ComprehensionToolType.syllables,[]),this._posReleasableHighlights.set(o.ComprehensionToolType.nouns,[]),this._posReleasableHighlights.set(o.ComprehensionToolType.verbs,[]),this._posReleasableHighlights.set(o.ComprehensionToolType.adjectives,[]),this._posReleasableHighlights.set(o.ComprehensionToolType.adverbs,[])}static getColorIndex(e,t){switch(t){case o.ComprehensionToolType.nouns:return e.nounsColorIndex;case o.ComprehensionToolType.verbs:return e.verbsColorIndex;case o.ComprehensionToolType.adjectives:return e.adjectivesColorIndex;case o.ComprehensionToolType.adverbs:return e.adverbsColorIndex;default:return-1}}static setColorIndex(e,t,i){switch(t){case o.ComprehensionToolType.nouns:e.nounsColorIndex=i;break;case o.ComprehensionToolType.verbs:e.verbsColorIndex=i;break;case o.ComprehensionToolType.adjectives:e.adjectivesColorIndex=i;break;case o.ComprehensionToolType.adverbs:e.adverbsColorIndex=i;break;default:return}}static AdjustColorIndexes(e,t,i){let n=c.getColorIndex(t,e),o=null,r=[n];if(d.POSList.forEach((i=>{if(i!==e){let e=c.getColorIndex(t,i);e===n?o=i:r.push(e)}})),o){let e=n;for(;r.indexOf(e)>=0;)e=(e+1)%i;c.setColorIndex(t,o,e)}}setVisibility(e,t){let i;switch(t){case o.ComprehensionToolType.syllables:i=d.SyllablesActiveClass;break;case o.ComprehensionToolType.nouns:i=d.NounsActiveClass;break;case o.ComprehensionToolType.verbs:i=d.VerbsActiveClass;break;case o.ComprehensionToolType.adjectives:i=d.AdjectivesActiveClass;break;case o.ComprehensionToolType.adverbs:i=d.AdverbsActiveClass}e?this._rootNode.classList.add(i):this._rootNode.classList.remove(i)}setLineMarkersVisibility(e){e?this._rootNode.classList.add(d.LineMarkersActiveClass):this._rootNode.classList.remove(d.LineMarkersActiveClass)}setColor(e){this._colorStylesReleasable&&(this._colorStylesReleasable.release(),this._colorStylesReleasable=null),this._colorStylesReleasable=this.addColorStyles(e)}addLineMarkers(e,t){let i,n=e.value().find((e=>e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&!r.StringUtilities.isNullOrEmpty(e.firstChild.textContent)));if(!n)return;switch(n=n.firstChild,t){case o.ComprehensionToolType.nouns:i=this._localizedPOSLabels.PartsOfSpeech_Nouns_LineMarkers;break;case o.ComprehensionToolType.verbs:i=this._localizedPOSLabels.PartsOfSpeech_Verbs_LineMarkers;break;case o.ComprehensionToolType.adjectives:i=this._localizedPOSLabels.PartsOfSpeech_Adjectives_LineMarkers;break;case o.ComprehensionToolType.adverbs:i=this._localizedPOSLabels.PartsOfSpeech_Adverbs_LineMarkers;break;default:return}let a=this._targetDocument.createRange();a.setStart(n,0),a.setEnd(n,0);let l=new Map([["aria-hidden","true"],["data-label",i]]);this._lineMarkersReleasableHighlights.push(s.Highlighter.surroundTextByTag(d.LineMarkerTag,a,(e=>u.DomUtilties.isChildOfUserInterfaceNode(e)),(()=>{}),[],null,l))}addColorStyles(e){return d.POSList.forEach((t=>{let i;switch(t){case o.ComprehensionToolType.nouns:i=e.nounsColorIndex;break;case o.ComprehensionToolType.verbs:i=e.verbsColorIndex;break;case o.ComprehensionToolType.adjectives:i=e.adjectivesColorIndex;break;case o.ComprehensionToolType.adverbs:i=e.adverbsColorIndex;break;default:return}this._targetDocument.body.setAttribute(d.HighContrastPOSColorAttributes.get(t),i.toString());for(let e of this._posColorDataThemeMap.values())this._targetDocument.body.style.setProperty(e.propertyName+"-"+o.ComprehensionToolType[t],e.colors[i])})),{release:()=>{d.POSList.forEach((e=>{this._targetDocument.body.removeAttribute(d.HighContrastPOSColorAttributes.get(e));for(let t of this._posColorDataThemeMap.values())this._targetDocument.body.style.removeProperty(t.propertyName+"-"+o.ComprehensionToolType[e])}))}}}addSyllableMarkers(e,t){if(t){let i=a.TreeNodeWalker.createTreeTextNodeWalker(this._rootNode),n=0,r=e.newLineOffsets,s=0;i.currentNode=e.startMarker.value()[0],i.nextNode();for(let e=0;eu.DomUtilties.isChildOfUserInterfaceNode(e);let p=this.createRangeAndHighlight(i,d.SyllableTag,i.currentNode,c,i.currentNode,c,g);n+=c,this._syllablesReleasableHighlights.get(o.ComprehensionToolType.syllables).push(p)}}}}addPOSMarkers(e,t){if(t){let i=new l.NlxWordSegmentFinder(this._rootNode,e);for(let e=0;eu.DomUtilties.isValidTextNode(e)&&u.DomUtilties.isChildOfUserInterfaceNode(e);let t=this.createRangeAndHighlight(g.textNodeWalker,n,g.wordStartNode,g.wordOffsetInCurrentNode,g.wordEndNode,g.wordOffsetInEndingNode,e,r);s.push(t),this.addLineMarkers(t,a)}}}}createRangeAndHighlight(e,t,i,n,o,r,a,l){let u=this._targetDocument.createRange();u.setStart(i,n),u.setEnd(o,r);let d=l?new Map([["data-label",l]]):null;return s.Highlighter.surroundTextByTag(t,u,a,((t,i)=>{e.currentNode=i[i.length-1]}),[],null,d)}releaseComprehensionMarkers(e){for(let t of e.keys())e.get(t).forEach((e=>{e.release()})),e.set(t,[])}}t.DocumentComprehensionTools=c},2857:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLDocumentComprehensionTools=void 0;const n=i(116),o=i(6401),r=i(6111),s=i(759),a=i(9636),l=i(8121),u=i(1701),d=i(6314),c=i(6593),h=i(6916);t.HTMLDocumentComprehensionTools=class{constructor(e,t,i,c,g){this.onComprehensionToolResponseReceived=e=>{let t=e.processingState===u.ProcessingState.Processed;const i=e.learningToolType;let r,s=h.LinguisticModelOperationResult.Success;if(t){const t=e.languageError&&e.languageError.size>0;i===n.LearningToolType.Syllables?(this._comprehensionTools.addSyllableMarkers(e.nlxUnit,e.responseData),t&&this._onSyllablesErrorUpdate.trigger(u.NLXProcessor.getNlxStatusForLanguageError(e.languageError)),this._isAnySyllablesRequestSuccessful||(this._isAnySyllablesRequestSuccessful=!0,this._telemetryClient.reportComprehensionToolsUsage(o.ComprehensionToolType.syllables)),r=o.ComprehensionToolType.syllables):i===n.LearningToolType.PartsOfSpeech&&(this._comprehensionTools.addPOSMarkers(e.nlxUnit,e.responseData),this._viewer.executeActionAndMaintainPosition((()=>{this._comprehensionTools.setLineMarkersVisibility(this._isLineMarkersActive),this._viewer.setLineMarkersActive(this._isLineMarkersActive)})),t&&this._onPOSErrorUpdate.trigger(u.NLXProcessor.getNlxStatusForLanguageError(e.languageError)),this._isAnyPOSRequestSuccessful||(this._isAnyPOSRequestSuccessful=!0,this._telemetryClient.reportComprehensionToolsUsage(o.ComprehensionToolType.pos)),r=o.ComprehensionToolType.pos)}else s=this._nlxProcessor.getLinguisticModelOperationResult(e.networkError),this._onNetworkErrorUpdate.trigger(u.NLXProcessor.getNlxStatusForNetworkError(e.networkError));this._telemetryClient.reportComprehensionToolsResultState(r,s,Date.now()-e.toolRequestStartTime)},this._telemetryClient=i,this._contentProvider=t,this._localizedPOSLabels=t.getLocalizedLearningToolsLabels(),this._learningToolSettingsStore=c,this._syllablesComprehensionToolActive=!1,this._verbComprehensionToolActive=!1,this._nounComprehensionToolActive=!1,this._adjectiveComprehensionToolActive=!1,this._adverbComprehensionToolActive=!1,this._isProgressIndicatorVisible=!1,this._syllablesActivationStateChangedEvent=new a.EventSource,this._verbsActivationStateChangedEvent=new a.EventSource,this._nounsActivationStateChangedEvent=new a.EventSource,this._adverbsActivationStateChangedEvent=new a.EventSource,this._adjectivesActivationStateChangedEvent=new a.EventSource,this._paneStateChangedEvent=new a.EventSource,this._onPOSErrorUpdate=new a.EventSource,this._onSyllablesErrorUpdate=new a.EventSource,this._onNetworkErrorUpdate=new a.EventSource,this._onProgressIndicatorVisibilityChanged=new a.EventSource,this._onPOSColorChanged=new a.EventSource,this._onLineMarkersStateChanged=new a.EventSource,this._nlxProcessor=e,this._viewer=g,this._earliestActiveOperationStartTime=0,this._dwellTime=0,this._responseReceivedReleasable=null,this._requestCancelledReleasable=null,this._scrollEndReleasable=null,this._paneStateChangedEvent=new a.EventSource,this._isAnyPOSRequestSuccessful=!1,this._isAnySyllablesRequestSuccessful=!1;let p=t.getCurrentDocument();window.addEventListener("beforeunload",(()=>{this.commitDwellTime()})),this._comprehensionTools=new s.DocumentComprehensionTools(p,p.body,this._localizedPOSLabels,d.PosColorDataThemeMap);let m=l.JsonUtilities.parseJsonOrNull(c.getSetting(r.ComprehensionToolsPOSColors),"ComprehensionTools","POSColors",i);this._posColorIndexes=m?{nounsColorIndex:m.nounsColorIndex,verbsColorIndex:m.verbsColorIndex,adjectivesColorIndex:m.adjectivesColorIndex,adverbsColorIndex:m.adverbsColorIndex}:{nounsColorIndex:d.defaultPOSColorIndexNoun,verbsColorIndex:d.defaultPOSColorIndexVerb,adjectivesColorIndex:d.defaultPOSColorIndexAdjective,adverbsColorIndex:d.defautPOSColorIndexAdverb},this._isLineMarkersActive=c.getSetting(r.ComprehensionToolsLineMarkersEnabled)}getPartsOfSpeechColorsForThemes(){let e=[{colors:d.PosColorDataThemeMap.get(c.ThemeType[c.ThemeType.Light]).colors},{colors:d.PosColorDataThemeMap.get(c.ThemeType[c.ThemeType.Dark]).colors}];return JSON.stringify(e)}addSyllables(){this._syllablesActivationStateChangedEvent.trigger(!0),this.activateComprehensionTool(o.ComprehensionToolType.syllables)}removeSyllables(){this._syllablesActivationStateChangedEvent.trigger(!1),this.deactivateComprehensionTool(o.ComprehensionToolType.syllables)}addVerbHighlight(){this._verbsActivationStateChangedEvent.trigger(!0),this.activateComprehensionTool(o.ComprehensionToolType.verbs)}removeVerbHighlight(){this._verbsActivationStateChangedEvent.trigger(!1),this.deactivateComprehensionTool(o.ComprehensionToolType.verbs)}addNounHighlight(){this._nounsActivationStateChangedEvent.trigger(!0),this.activateComprehensionTool(o.ComprehensionToolType.nouns)}removeNounHighlight(){this._nounsActivationStateChangedEvent.trigger(!1),this.deactivateComprehensionTool(o.ComprehensionToolType.nouns)}addAdjectiveHighlight(){this._adjectivesActivationStateChangedEvent.trigger(!0),this.activateComprehensionTool(o.ComprehensionToolType.adjectives)}removeAdjectiveHighlight(){this._adjectivesActivationStateChangedEvent.trigger(!1),this.deactivateComprehensionTool(o.ComprehensionToolType.adjectives)}addAdverbHighlight(){this._adverbsActivationStateChangedEvent.trigger(!0),this.activateComprehensionTool(o.ComprehensionToolType.adverbs)}removeAdverbHighlight(){this._adverbsActivationStateChangedEvent.trigger(!1),this.deactivateComprehensionTool(o.ComprehensionToolType.adverbs)}setAdjectivesColor(e){this._posColorIndexes.adjectivesColorIndex=e,this.setPOSColor(o.ComprehensionToolType.adjectives)}setVerbsColor(e){this._posColorIndexes.verbsColorIndex=e,this.setPOSColor(o.ComprehensionToolType.verbs)}setNounsColor(e){this._posColorIndexes.nounsColorIndex=e,this.setPOSColor(o.ComprehensionToolType.nouns)}setAdverbsColor(e){this._posColorIndexes.adverbsColorIndex=e,this.setPOSColor(o.ComprehensionToolType.adverbs)}getLineMarkersState(){return this._isLineMarkersActive}addLineMarkers(){this._isLineMarkersActive=!0,this._viewer.executeActionAndMaintainPosition((()=>{this._comprehensionTools.setLineMarkersVisibility(this._isLineMarkersActive),this._viewer.setLineMarkersActive(this._isLineMarkersActive)})),this._learningToolSettingsStore.setSetting(r.ComprehensionToolsLineMarkersEnabled,this._isLineMarkersActive),this._onLineMarkersStateChanged.trigger(this._isLineMarkersActive)}removeLineMarkers(){this._isLineMarkersActive=!1,this._viewer.executeActionAndMaintainPosition((()=>{this._comprehensionTools.setLineMarkersVisibility(this._isLineMarkersActive),this._viewer.setLineMarkersActive(this._isLineMarkersActive)})),this._learningToolSettingsStore.setSetting(r.ComprehensionToolsLineMarkersEnabled,this._isLineMarkersActive),this._onLineMarkersStateChanged.trigger(this._isLineMarkersActive)}getPOSColorIndexes(){return this._posColorIndexes}onSyllablesActivationStateChanged(){return this._syllablesActivationStateChangedEvent}onVerbsActivationStateChanged(){return this._verbsActivationStateChangedEvent}onNounsActivationStateChanged(){return this._nounsActivationStateChangedEvent}onAdjectivesActivationstateChanged(){return this._adjectivesActivationStateChangedEvent}onAdverbsActivationStateChanged(){return this._adverbsActivationStateChangedEvent}onPOSLLanguageErrorUpdate(){return this._onPOSErrorUpdate}onSyllablesLanguageErrorUpdate(){return this._onSyllablesErrorUpdate}onNetworkErrorUpdate(){return this._onNetworkErrorUpdate}onProgressIndicatorVisibilityChanged(){return this._onProgressIndicatorVisibilityChanged}onPOSColorChanged(){return this._onPOSColorChanged}onLineMarkersStateChanged(){return this._onLineMarkersStateChanged}onPaneStateChanged(){return this._paneStateChangedEvent}onLanguageChangeRequested(){this.updateComprehensionPaneStatus(!1),this.resetComprehensionTools(),this._isAnyPOSRequestSuccessful=!1,this._isAnySyllablesRequestSuccessful=!1}onLanguageChangeRequestCompleted(){this.updateComprehensionPaneStatus(!0)}onContentShifted(){this.maybeInitiateRequestsForActiveTools()}updateComprehensionPaneStatus(e){this._paneStateChangedEvent.trigger(e)}resetComprehensionTools(){d.LearningToolsList.forEach((e=>{this._comprehensionTools.releaseLearningToolMarkers(e),this._nlxProcessor.resetLearningToolRequestState(e)})),this.removeHighlights()}removeHighlights(){this.getComprehensionToolActive(o.ComprehensionToolType.syllables)&&this.removeSyllables(),this.getComprehensionToolActive(o.ComprehensionToolType.nouns)&&this.removeNounHighlight(),this.getComprehensionToolActive(o.ComprehensionToolType.verbs)&&this.removeVerbHighlight(),this.getComprehensionToolActive(o.ComprehensionToolType.adjectives)&&this.removeAdjectiveHighlight(),this.getComprehensionToolActive(o.ComprehensionToolType.adverbs)&&this.removeAdverbHighlight()}setPOSColor(e){if(d.PosColorDataThemeMap.size>0){let t=d.PosColorDataThemeMap.values().next().value.colors.length;s.DocumentComprehensionTools.AdjustColorIndexes(e,this._posColorIndexes,t),this._comprehensionTools.setColor(this._posColorIndexes)}this._onPOSColorChanged.trigger(this._posColorIndexes),this._learningToolSettingsStore.setSetting(r.ComprehensionToolsPOSColors,JSON.stringify(this._posColorIndexes))}activateComprehensionTool(e){0===this._earliestActiveOperationStartTime&&(this._earliestActiveOperationStartTime=Date.now()),this.setComprehensionToolActive(e,!0),this.processComprehensionTool(e)}getLearningToolTypeFromComprehensionType(e){switch(e){case o.ComprehensionToolType.adverbs:case o.ComprehensionToolType.nouns:case o.ComprehensionToolType.verbs:case o.ComprehensionToolType.adjectives:return n.LearningToolType.PartsOfSpeech;case o.ComprehensionToolType.syllables:return n.LearningToolType.Syllables}}setComprehensionToolActive(e,t){switch(e){case o.ComprehensionToolType.syllables:this._syllablesComprehensionToolActive=t;break;case o.ComprehensionToolType.verbs:this._verbComprehensionToolActive=t;break;case o.ComprehensionToolType.nouns:this._nounComprehensionToolActive=t;break;case o.ComprehensionToolType.adjectives:this._adjectiveComprehensionToolActive=t;break;case o.ComprehensionToolType.adverbs:this._adverbComprehensionToolActive=t}}getComprehensionToolActive(e){switch(e){case o.ComprehensionToolType.syllables:return this._syllablesComprehensionToolActive;case o.ComprehensionToolType.verbs:return this._verbComprehensionToolActive;case o.ComprehensionToolType.nouns:return this._nounComprehensionToolActive;case o.ComprehensionToolType.adjectives:return this._adjectiveComprehensionToolActive;case o.ComprehensionToolType.adverbs:return this._adverbComprehensionToolActive;default:return!1}}processComprehensionTool(e){let t=this.getLearningToolTypeFromComprehensionType(e);this._comprehensionTools.setVisibility(!0,e),this._comprehensionTools.setColor(this._posColorIndexes),this.maybeRegisterForEvents(),this._nlxProcessor.createAndSendNLXRequests(t)}maybeRegisterForEvents(){this._responseReceivedReleasable||(this._responseReceivedReleasable=this._nlxProcessor.onResponseDataReceived().subscribe((e=>{this.onComprehensionToolResponseReceived(e)}))),this._requestCancelledReleasable||(this._requestCancelledReleasable=this._nlxProcessor.onRequestCancellation().subscribe((e=>{this.onComprehensionToolResponseReceived(e)}))),this._scrollEndReleasable||this._viewer.onScrollEnd().subscribe((()=>{this.maybeInitiateRequestsForActiveTools()}))}maybeInitiateRequestsForActiveTools(){this.isAnyPOSActive()&&this._nlxProcessor.createAndSendNLXRequests(n.LearningToolType.PartsOfSpeech),this.isSyllablesActive()&&this._nlxProcessor.createAndSendNLXRequests(n.LearningToolType.Syllables)}isAnyComprehensionToolTypeActive(){return this.isAnyPOSActive()||this.isSyllablesActive()}isAnyPOSActive(){return this.getComprehensionToolActive(o.ComprehensionToolType.adjectives)||this.getComprehensionToolActive(o.ComprehensionToolType.nouns)||this.getComprehensionToolActive(o.ComprehensionToolType.verbs)||this.getComprehensionToolActive(o.ComprehensionToolType.adverbs)}isSyllablesActive(){return this.getComprehensionToolActive(o.ComprehensionToolType.syllables)}deactivateComprehensionTool(e){this.setComprehensionToolActive(e,!1);const t=this.getLearningToolTypeFromComprehensionType(e);let i;switch((t===n.LearningToolType.PartsOfSpeech&&!this.isAnyPOSActive()||t==n.LearningToolType.Syllables)&&this._nlxProcessor.cancelRequests(t),this.isAnyComprehensionToolTypeActive()||(this._dwellTime+=Date.now()-this._earliestActiveOperationStartTime,this._earliestActiveOperationStartTime=0,this._scrollEndReleasable&&this._scrollEndReleasable.release()),e){case o.ComprehensionToolType.syllables:i=this._syllablesActivationStateChangedEvent;break;case o.ComprehensionToolType.verbs:i=this._verbsActivationStateChangedEvent;break;case o.ComprehensionToolType.nouns:i=this._nounsActivationStateChangedEvent;break;case o.ComprehensionToolType.adjectives:i=this._adjectivesActivationStateChangedEvent;break;case o.ComprehensionToolType.adverbs:i=this._adverbsActivationStateChangedEvent;break;default:return}this._viewer.executeActionAndMaintainPosition((()=>this._comprehensionTools.setVisibility(!1,e))),i.trigger(this.getComprehensionToolActive(e)),this._scrollEndReleasable&&!this.isAnyComprehensionToolTypeActive()&&this._scrollEndReleasable.release()}setProgressIndicatorVisibility(e){e!==this._isProgressIndicatorVisible&&(this._isProgressIndicatorVisible=e,this._onProgressIndicatorVisibilityChanged.trigger(this._isProgressIndicatorVisible))}commitDwellTime(){0!==this._earliestActiveOperationStartTime&&(this._dwellTime+=Date.now()-this._earliestActiveOperationStartTime),this._telemetryClient.reportComprehensionToolsDwellTime(this._dwellTime)}}},5610:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolsViewModel=void 0;const n=i(9636),o=i(6593);t.ComprehensionToolsViewModel=class{constructor(e){this._comprehensionTools=e,this._onComprehensionToolsPaneStatusChanged=new n.EventSource,this._isSyllablesActive=!1,this._isNounsActive=!1,this._isVerbsActive=!1,this._isAdjectivesActive=!1,this._isAdverbsActive=!1,this._isProgressIndicatorVisible=!1,this._posColorIndexes=this._comprehensionTools.getPOSColorIndexes(),this._isLineMarkersActive=this._comprehensionTools.getLineMarkersState(),this._onProgressIndicatorVisibilityChanged=new n.EventSource,this._syllablesLanguageError=o.NlxStatus.Success,this._posLanguageError=o.NlxStatus.Success,this._networkError=o.NlxStatus.Success,this._isPaneDisabled=!1,e&&(e.onSyllablesActivationStateChanged().subscribe((e=>{this._isSyllablesActive=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onNounsActivationStateChanged().subscribe((e=>{this._isNounsActive=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onVerbsActivationStateChanged().subscribe((e=>{this._isVerbsActive=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onAdjectivesActivationstateChanged().subscribe((e=>{this._isAdjectivesActive=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onAdverbsActivationStateChanged().subscribe((e=>{this._isAdverbsActive=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onProgressIndicatorVisibilityChanged().subscribe((e=>{this._isProgressIndicatorVisible=e,this._onProgressIndicatorVisibilityChanged.trigger(e),this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onPOSColorChanged().subscribe((e=>{this._posColorIndexes=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onLineMarkersStateChanged().subscribe((e=>{this._isLineMarkersActive=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onPOSLLanguageErrorUpdate().subscribe((e=>{e!==this._posLanguageError&&(this._posLanguageError=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0))})),e.onSyllablesLanguageErrorUpdate().subscribe((e=>{e!==this._syllablesLanguageError&&(this._syllablesLanguageError=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0))})),e.onNetworkErrorUpdate().subscribe((e=>{e!==this._networkError&&(this._networkError=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0))})),e.onPaneStateChanged().subscribe((e=>{this._isPaneDisabled=!e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})))}getPartsOfSpeechColorsForThemes(){return this._comprehensionTools.getPartsOfSpeechColorsForThemes()}addSyllables(){this._comprehensionTools.addSyllables()}removeSyllables(){this._comprehensionTools.removeSyllables()}addVerbHighlight(){this._comprehensionTools.addVerbHighlight()}removeVerbHighlight(){this._comprehensionTools.removeVerbHighlight()}addNounHighlight(){this._comprehensionTools.addNounHighlight()}removeNounHighlight(){this._comprehensionTools.removeNounHighlight()}addAdjectiveHighlight(){this._comprehensionTools.addAdjectiveHighlight()}removeAdjectiveHighlight(){this._comprehensionTools.removeAdjectiveHighlight()}addAdverbHighlight(){this._comprehensionTools.addAdverbHighlight()}removeAdverbHighlight(){this._comprehensionTools.removeAdverbHighlight()}setNounsColor(e){this._comprehensionTools.setNounsColor(e)}setVerbsColor(e){this._comprehensionTools.setVerbsColor(e)}setAdjectivesColor(e){this._comprehensionTools.setAdjectivesColor(e)}setAdverbsColor(e){this._comprehensionTools.setAdverbsColor(e)}addLineMarkers(){this._comprehensionTools.addLineMarkers()}removeLineMarkers(){this._comprehensionTools.removeLineMarkers()}onComprehensionToolsStatusChanged(){return this._onComprehensionToolsPaneStatusChanged}onProgressIndicatorVisibilityChanged(){return this._onProgressIndicatorVisibilityChanged}onLanguageChangeRequested(){this._comprehensionTools.onLanguageChangeRequested()}onLanguageChangeRequestCompleted(){this._comprehensionTools.onLanguageChangeRequestCompleted()}onContentShifted(){this._comprehensionTools.onContentShifted()}comprehensionToolsPaneStatus(){return{isSyllablesActive:this._isSyllablesActive,isNounsActive:this._isNounsActive,isVerbsActive:this._isVerbsActive,isAdjectivesActive:this._isAdjectivesActive,isAdverbsActive:this._isAdverbsActive,nounsColorIndex:this._posColorIndexes.nounsColorIndex,verbsColorIndex:this._posColorIndexes.verbsColorIndex,adjectivesColorIndex:this._posColorIndexes.adjectivesColorIndex,adverbsColorIndex:this._posColorIndexes.adverbsColorIndex,isLineMarkersActive:this._isLineMarkersActive,isProgressIndicatorVisible:this._isProgressIndicatorVisible,networkError:this._networkError,posLanguageError:this._posLanguageError,syllablesLanguageError:this._syllablesLanguageError,isPaneDisabled:this._isPaneDisabled}}}},995:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Section=t.Match=void 0,t.Match=class{constructor(e){this._sections=[],e&&(this._sections=e)}set sections(e){this._sections=e}get sections(){return this._sections}get nodes(){let e=[];return this._sections.forEach((t=>{e.push(t.node)})),e}},t.Section=class{constructor(e,t,i){this.begin=e,this.end=t,this.node=i}}},8329:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IGNORE_NODE_NAMES=void 0,t.IGNORE_NODE_NAMES=new Set(["SCRIPT","STYLE","EMBED","OBJECT","SELECT","TEXTAREA","IFRAME","NOSCRIPT"])},9274:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FindInPage=void 0;const n=i(7734),o=i(8329),r=i(995),s=i(8945);!function(e){let t="",i=[],a=0;function l(e){let t=0,n=i.length;for(;t=0;--t){let i=u[t];i.nodeType!=Node.ELEMENT_NODE&&i.nodeType!=Node.TEXT_NODE||o.IGNORE_NODE_NAMES.has(i.nodeName)||!e(l)||a.push(i)}if(l.nodeType==Node.TEXT_NODE&&l.parentNode){const e=n.StringUtilities.replaceSpaceAndSpecialChar(l.textContent);i.push(new r.Section(t.length,t.length+e.length,l)),t+=e}}}(u),e){let n=e.exec(t);if(n){let e=n.index,t=e+n[0].length-1,o=l(e),s=l(t);d=new r.Match,d.sections=i.slice(o,s+1)}a=e.lastIndex}return d}(d,u)},e.reset=function(){t="",i=[],a=0}}(t.FindInPage||(t.FindInPage={}))},5114:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsHostProxy=void 0;const n=i(9636),o=i(1342),r=i(6593);class s extends o.HostProxy{constructor(e){super(e),this._initializeComprehensionToolsSettingsRequested=new n.EventSource,this._initializeLineFocusSettingsRequested=new n.EventSource,this._initializePictureDictionarySettingsRequested=new n.EventSource,this._comprehensionToolsInitialPaneStatusRequested=new n.EventSource,this._readingPreferencesInitialPaneStatusRequested=new n.EventSource,this._settingsUpdateRequested=new n.EventSource,this._addSyllablesRequested=new n.EventSource,this._onContentShifted=new n.EventSource,this._addNounsRequested=new n.EventSource,this._addVerbsRequested=new n.EventSource,this._addAdjectivesRequested=new n.EventSource,this._addAdverbsRequested=new n.EventSource,this._removeSyllablesRequested=new n.EventSource,this._removeNounsRequested=new n.EventSource,this._removeVerbsRequested=new n.EventSource,this._removeAdjectivesRequested=new n.EventSource,this._removeAdverbsRequested=new n.EventSource,this._setNounsColorRequested=new n.EventSource,this._setVerbsColorRequested=new n.EventSource,this._setAdjectivesColorRequested=new n.EventSource,this._setAdverbsColorRequested=new n.EventSource,this._nlxResponseReceived=new n.EventSource,this._addLineMarkersRequested=new n.EventSource,this._removeLineMarkersRequested=new n.EventSource,this._enableLineFocusRequested=new n.EventSource,this._disableLineFocusRequested=new n.EventSource,this._setNumberOfLinesInFocusRequested=new n.EventSource,this._upButtonClicked=new n.EventSource,this._downButtonClicked=new n.EventSource,this._enablePictureDictionaryRequested=new n.EventSource,this._disablePictureDictionaryRequested=new n.EventSource,this._hidePictureDictionaryPopupRequested=new n.EventSource,this._pictureDictionaryPopupHidden=new n.EventSource,this._languageChangeRequested=new n.EventSource,this._languageChangeRequestCompleted=new n.EventSource}initializeComprehensionToolsSettingsRequested(){return this._initializeComprehensionToolsSettingsRequested}initializePictureDictionarySettingsRequested(){return this._initializePictureDictionarySettingsRequested}initializeLineFocusSettingsRequested(){return this._initializeLineFocusSettingsRequested}comprehensionToolsInitialPaneStatusRequested(){return this._comprehensionToolsInitialPaneStatusRequested}readingPreferencesInitialPaneStatusRequested(){return this._readingPreferencesInitialPaneStatusRequested}settingsUpdateRequested(){return this._settingsUpdateRequested}addSyllablesRequested(){return this._addSyllablesRequested}addNounsRequested(){return this._addNounsRequested}addVerbsRequested(){return this._addVerbsRequested}addAdjectivesRequested(){return this._addAdjectivesRequested}addAdverbsRequested(){return this._addAdverbsRequested}removeSyllablesRequested(){return this._removeSyllablesRequested}removeNounsRequested(){return this._removeNounsRequested}removeVerbsRequested(){return this._removeVerbsRequested}removeAdjectivesRequested(){return this._removeAdjectivesRequested}removeAdverbsRequested(){return this._removeAdverbsRequested}setNounsColorRequested(){return this._setNounsColorRequested}setVerbsColorRequested(){return this._setVerbsColorRequested}setAdjectivesColorRequested(){return this._setAdjectivesColorRequested}setAdverbsColorRequested(){return this._setAdverbsColorRequested}onNLXResponseReceived(){return this._nlxResponseReceived}addLineMarkers(){return this._addLineMarkersRequested}removeLineMarkers(){return this._removeLineMarkersRequested}sendNLXRequest(e){this.postMessageToHost(s.ProcessNLXRequest,e.contextId,e.requestType,e.metaJson?e.metaJson:"",e.action?e.action:"",e.version?e.version:"",e.optionsJson?e.optionsJson:"",e.dataJson?e.dataJson:"")}sendProgressIndicatorVisibility(e){this.postMessageToHost(s.ProgressIndicatorVisibleHostMessage,e.toString())}sendTelemetryErrorMeasureNoPII(e,t){JSON.stringify({errorType:e,errorContent:t}),"ComprehensionTools"!==e&&super.sendTelemetryErrorMeasureNoPII(e,t)}onContentShifted(){return this._onContentShifted}enableLineFocusRequested(){return this._enableLineFocusRequested}disableLineFocusRequested(){return this._disableLineFocusRequested}setNumberOfLinesInFocusRequested(){return this._setNumberOfLinesInFocusRequested}upButtonClicked(){return this._upButtonClicked}downButtonClicked(){return this._downButtonClicked}enablePictureDictionaryRequested(){return this._enablePictureDictionaryRequested}disablePictureDictionaryRequested(){return this._disablePictureDictionaryRequested}hidePictureDictionaryPopupRequested(){return this._hidePictureDictionaryPopupRequested}pictureDictionaryPopupHidden(){return this._pictureDictionaryPopupHidden}languageChangeRequested(){return this._languageChangeRequested}languageChangeRequestCompleted(){return this._languageChangeRequestCompleted}sendComprehensionToolsPaneStatus(e){const t=e.posLanguageError,i=e.networkError,n=e.syllablesLanguageError;let o=JSON.stringify({isSyllablesActive:e.isSyllablesActive,syllablesError:n,isNounsActive:e.isNounsActive,isVerbsActive:e.isVerbsActive,isAdjectivesActive:e.isAdjectivesActive,isAdverbsActive:e.isAdverbsActive,posError:t,networkError:i,nounsColorIndex:e.nounsColorIndex,verbsColorIndex:e.verbsColorIndex,adjectivesColorIndex:e.adjectivesColorIndex,adverbsColorIndex:e.adverbsColorIndex,isLineMarkersActive:e.isLineMarkersActive,isProgressIndicatorVisible:e.isProgressIndicatorVisible,isPaneDisabled:e.isPaneDisabled});this.postMessageToHost(s.ComprehensionToolsPaneStatusHostMessage,o)}sendReadingPreferencesPaneStatus(e){const t=e.pictureDictionaryLanguageError,i=e.pictureDictionaryNetworkError,n=e.isPictureDictionaryActive&&e.isPictureDictionaryToggleInteractable&&(t!==r.NlxStatus.Success||i!==r.NlxStatus.Success);let o=JSON.stringify({lineFocusButtonVisibility:{isVisible:!0,isActive:e.isLineFocusActive,isEnabled:!0},lineCount:e.lineCount,maxLineCount:e.maxLineCount,isPictureDictionaryActive:e.isPictureDictionaryActive,isPictureDictionaryToggleInteractable:e.isPictureDictionaryToggleInteractable,networkError:i,languageError:t,hasError:n});this.postMessageToHost(s.ReadingPreferencesPaneStatusHostMessage,o)}sendPartsOfSpeechColorsForThemes(e){this.postMessageToHost(s.ComprehensionToolsPanePartsOfSpeechColorsForThemesMessage,e)}sendComprehensionToolsSettings(e){this.postMessageToHost(s.ComprehensionToolsPreferencesHostMessage,e)}sendLineFocusSettings(e){this.postMessageToHost(s.LineFocusPreferencesHostMessage,e)}onLineFocusExit(e){const t=JSON.stringify({top:e.top,bottom:e.bottom,left:e.left,right:e.right,width:e.width,height:e.height});this.postMessageToHost(s.LineFocusExitHostMessage,t)}sendPictureDictionarySettings(e){this.postMessageToHost(s.PictureDictionaryPreferencesHostMessage,e)}onMessageFromHost(e){switch(e[0]){case s.ComprehensionToolsInitializeSettingsCommand:this._initializeComprehensionToolsSettingsRequested.trigger(e);break;case s.ComprehensionToolsFetchInitialPaneStatusCommand:this._comprehensionToolsInitialPaneStatusRequested.trigger(void 0);break;case s.ReadingPreferencesFetchInitialPaneStatusCommand:this._readingPreferencesInitialPaneStatusRequested.trigger(void 0);break;case s.ComprehensionToolsSettingsUpdateCommand:this._settingsUpdateRequested.trigger(e[1]);break;case s.ComprehensionToolsAddSyllablesCommand:this._addSyllablesRequested.trigger();break;case s.ComprehensionToolsAddNounsCommand:this._addNounsRequested.trigger();break;case s.ComprehensionToolsAddVerbsCommand:this._addVerbsRequested.trigger();break;case s.ComprehensionToolsAddAdjectivesCommand:this._addAdjectivesRequested.trigger();break;case s.ComprehensionToolsAddAdverbsCommand:this._addAdverbsRequested.trigger();break;case s.ComprehensionToolsRemoveSyllablesCommand:this._removeSyllablesRequested.trigger(void 0);break;case s.ComprehensionToolsRemoveNounsCommand:this._removeNounsRequested.trigger(void 0);break;case s.ComprehensionToolsRemoveVerbsCommand:this._removeVerbsRequested.trigger(void 0);break;case s.ComprehensionToolsRemoveAdjectivesCommand:this._removeAdjectivesRequested.trigger(void 0);break;case s.ComprehensionToolsRemoveAdverbsCommand:this._removeAdverbsRequested.trigger(void 0);break;case s.ComprehensionToolsSetNounsColorCommand:this._setNounsColorRequested.trigger(Number(e[1]));break;case s.ComprehensionToolsSetVerbsColorCommand:this._setVerbsColorRequested.trigger(Number(e[1]));break;case s.ComprehensionToolsSetAdjectivesColorCommand:this._setAdjectivesColorRequested.trigger(Number(e[1]));break;case s.ComprehensionToolsSetAdverbsColorCommand:this._setAdverbsColorRequested.trigger(Number(e[1]));break;case s.ComprehensionToolsAddLineMarkersCommand:this._addLineMarkersRequested.trigger(void 0);break;case s.ComprehensionToolsRemoveLineMarkersCommand:this._removeLineMarkersRequested.trigger(void 0);break;case s.ProcessNLXResponse:if(e[1]){let t=JSON.parse(e[1]);"Service"===t.processedBy&&t.responseData&&(t=this.convertToExpectedNLXResponseFormat(t)),this._nlxResponseReceived.trigger(t)}break;case s.LineFocusInitializeSettingsCommand:this._initializeLineFocusSettingsRequested.trigger(e);break;case s.LineFocusEnableCommand:this._enableLineFocusRequested.trigger(Number(e[1]));break;case s.LineFocusDisableCommand:this._disableLineFocusRequested.trigger(Number(e[1]));break;case s.LineFocusUpButtonClickedCommand:this._upButtonClicked.trigger(void 0);break;case s.LineFocusDownButtonClickedCommand:this._downButtonClicked.trigger(void 0);break;case s.LineFocusSetNumberOfLinesCommand:let t=Number(e[1]);this._setNumberOfLinesInFocusRequested.trigger(t);break;case s.ReadingViewContentShifted:this._onContentShifted.trigger(void 0);break;case s.PictureDictionaryInitializeSettingsCommand:this._initializePictureDictionarySettingsRequested.trigger(e);break;case s.PictureDictionaryEnableCommand:this._enablePictureDictionaryRequested.trigger(void 0);break;case s.PictureDictionaryDisableCommand:this._disablePictureDictionaryRequested.trigger(void 0);break;case s.LearningToolsLanguageChangeRequestedCommand:this._languageChangeRequested.trigger(void 0);break;case s.PictureDictionaryHidePopupCommand:this._hidePictureDictionaryPopupRequested.trigger(void 0);break;case s.PictureDictionaryPopupHiddenCommand:this._pictureDictionaryPopupHidden.trigger(void 0);break;case s.LearningToolsLanguageChangeRequestCompletedCommand:this._languageChangeRequestCompleted.trigger(void 0);break;default:super.onMessageFromHost(e)}}convertToExpectedNLXResponseFormat(e){let t=JSON.parse(e.responseData);return{contextId:e.contextId,responseType:e.responseType,metaJson:t.meta?JSON.stringify(t.meta):"",version:t.data.version?t.data.version:"",status:t.status?t.status:"",dataJson:t.data?JSON.stringify(t.data):"",errorJson:t.error?JSON.stringify(t.error):"",processedBy:e.processedBy}}}s.ShowProgressIndicatorCommand="ShowProgressIndicator",s.LineFocusEnableCommand="LineFocus_Enable",s.LineFocusDisableCommand="LineFocus_Disable",s.LineFocusSetNumberOfLinesCommand="LineFocus_SetNumberOfLines",s.LineFocusUpButtonClickedCommand="LineFocus_UpButtonClicked",s.LineFocusDownButtonClickedCommand="LineFocus_DownButtonClicked",s.ComprehensionToolsAddSyllablesCommand="ComprehensionTools_AddSyllables",s.ComprehensionToolsAddNounsCommand="ComprehensionTools_AddNouns",s.ComprehensionToolsAddVerbsCommand="ComprehensionTools_AddVerbs",s.ComprehensionToolsAddAdjectivesCommand="ComprehensionTools_AddAdjectives",s.ComprehensionToolsAddAdverbsCommand="ComprehensionTools_AddAdverbs",s.ComprehensionToolsRemoveSyllablesCommand="ComprehensionTools_RemoveSyllables",s.ComprehensionToolsRemoveNounsCommand="ComprehensionTools_RemoveNouns",s.ComprehensionToolsRemoveVerbsCommand="ComprehensionTools_RemoveVerbs",s.ComprehensionToolsRemoveAdjectivesCommand="ComprehensionTools_RemoveAdjectives",s.ComprehensionToolsRemoveAdverbsCommand="ComprehensionTools_RemoveAdverbs",s.ComprehensionToolsSetNounsColorCommand="ComprehensionTools_SetNounsColor",s.ComprehensionToolsSetVerbsColorCommand="ComprehensionTools_SetVerbsColor",s.ComprehensionToolsSetAdjectivesColorCommand="ComprehensionTools_SetAdjectivesColor",s.ComprehensionToolsSetAdverbsColorCommand="ComprehensionTools_SetAdverbsColor",s.ComprehensionToolsAddLineMarkersCommand="ComprehensionTools_AddLineMarkers",s.ComprehensionToolsRemoveLineMarkersCommand="ComprehensionTools_RemoveLineMarkers",s.ProcessNLXResponse="GrammarTools_Response",s.ComprehensionToolsInitializeSettingsCommand="ComprehensionTools_InitializeSettings",s.PictureDictionaryInitializeSettingsCommand="PictureDictionary_InitializeSettings",s.LineFocusInitializeSettingsCommand="LineFocus_InitializeSettings",s.ComprehensionToolsSettingsUpdateCommand="ComprehensionTools_SettingsUpdate",s.ComprehensionToolsFetchInitialPaneStatusCommand="ComprehensionTools_FetchInitialPaneStatus",s.PictureDictionaryEnableCommand="PictureDictionary_Enable",s.PictureDictionaryDisableCommand="PictureDictionary_Disable",s.PictureDictionaryPopupHiddenCommand="PictureDictionary_PopupHidden",s.PictureDictionaryHidePopupCommand="PictureDictionary_HidePopupCommand",s.ReadingViewContentShifted="ReadingView_ContentShifted",s.ReadingPreferencesFetchInitialPaneStatusCommand="ReadingPreference_FetchInitialPaneStatus",s.LearningToolsLanguageChangeRequestedCommand="LearningTools_LanguageChangeRequested",s.LearningToolsLanguageChangeRequestCompletedCommand="LearningTools_LanguageChangeRequestCompleted",s.ComprehensionToolsPreferencesHostMessage="GrammarTools_Preferences",s.ProcessNLXRequest="NLXRequest",s.ComprehensionToolsPaneStatusHostMessage="ComprehensionToolsPane_Status",s.ReadingPreferencesPaneStatusHostMessage="ReadingPreferencesPane_Status",s.ComprehensionToolsPanePartsOfSpeechColorsForThemesMessage="ComprehensionToolsPane_PartsOfSpeechColorsForThemes",s.PictureDictionaryPreferencesHostMessage="PictureDictionary_Preferences",s.LineFocusPreferencesHostMessage="LineFocus_Preferences",s.LineFocusExitHostMessage="LineFocus_ExitedMessage",s.ProgressIndicatorVisibleHostMessage="ComprehensionTools_SetProgressIndicatorVisibility",t.LearningToolsHostProxy=s},5701:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PictureDictionary=t.pictureDictionaryToggleOn=t.pictureDictionaryActive=t.pictureDictionaryCursorClass=t.pictureDictionaryTag=void 0;const n=i(6391),o=i(9636),r=i(3347),s=i(6111),a=i(3487),l=i(8945);t.pictureDictionaryTag="mspd",t.pictureDictionaryCursorClass="mspd-cursor",t.pictureDictionaryActive="mspd-active",t.pictureDictionaryToggleOn="mspd-toggle-on";const u="mspd-listener-attached";class d{constructor(e,i,n,u,c){this.createPictureDictionaryPopup=e=>{e.pictures.length&&e.pictureURL&&(this._popupCreationTimer.start(this.commitPopupCreationTime),this._pictureDictionaryViewer.createPictureDictionaryPopup(e),this._pictureDictionaryCurrentSelectedElement=e.wordUnit.element,this.handlePictureDictionaryCurrentSelectedElementStyles(!0),this._isPictureDictionaryPopupVisible=!0,this._popupCreationTimer.hasTimedOut||(this._popupCreationTimer.stop(),this.commitPopupCreationTime()),this._popupLaunchCount+=1)},this.onResize=e=>{this.hidePictureDictionaryPopup(!1,e.type)},this.onScroll=e=>{this.hidePictureDictionaryPopup(!1,e.type)},this.onDocumentClick=e=>{this.hidePictureDictionaryPopup(!1,e.type)},this.onPictureDictionarySingleClick=e=>{let t,i=e.currentTarget,n=i.closest("a");t=n?n.getAttribute("href"):null,e.preventDefault(),e.stopPropagation(),this.hidePictureDictionaryPopup(!1,e.type);let o=this.createPictureDictionaryUnit(i,t);this.createPictureDictionaryPopup(o)},this.onKeyDown=e=>{"Enter"===e.key&&this.onPictureDictionarySingleClick(e)},this.createRangeAndWrapInTag=(e,i,n,o,r,s)=>{let u=this._targetDocument.createRange();u.setStart(i,n),u.setEnd(o,r);let d="";s.forEach((e=>{d+=e+"$"}));let c=new Map;c.set("pictureids",d),c.set("tabindex","0"),c.set("role","button");let h=a.Highlighter.surroundTextByTag(t.pictureDictionaryTag,u,(e=>l.DomUtilties.isValidTextNode(e)&&l.DomUtilties.isChildOfUserInterfaceNode(e)),((t,i)=>{e.currentNode=i[i.length-1]}),[],null,c,!0);this._releasablePictureDictionaryWordMarkers.push(h)},this.releasePictureDictionaryWordMarkers=()=>{this._releasablePictureDictionaryWordMarkers.forEach((e=>{e.release()})),this._releasablePictureDictionaryWordMarkers=[]},this.hidePictureDictionaryPopup=(e,t)=>{this._hasFocusOnSourceElementBeenHandled=e,(this._isPictureDictionaryPopupVisible||null!=t&&"click"!==t&&this._isPictureDictionaryFirstRunPopupVisible)&&(this._pictureDictionaryViewer.hidePictureDictionaryPopup(),this._isPictureDictionaryPopupVisible&&(this._isPictureDictionaryPopupVisible=!1),this._isPictureDictionaryFirstRunPopupVisible&&(this._isPictureDictionaryFirstRunPopupVisible=!1))},this._targetDocument=c,this._pictureDictionaryViewer=e,this._telemetryClient=n,this._releasablePictureDictionaryWordMarkers=[],this._nlxProcessor=i,this._settings=u,this._networkErrorUpdateEvent=new o.EventSource,this._languageErrorUpdateEvent=new o.EventSource,this._activationStateChangedEvent=new o.EventSource,this._toggleInteractionStateChangedEvent=new o.EventSource,this._pictureDictionaryDataAvailableReleasable=null,this._pictureDictionaryNetworkErrorUpdateReleasable=null,this._pictureDictionaryLanguageErrorsUpdateReleasable=null,this._pictureDictionaryOnScrollEndReleasable=null,this._popupLaunchCount=0,this._popupCreationTimer=new r.Timer("PictureDictionaryPopupCreationTimer",d.PopupCreationTimeoutDuration),this._isPictureDictionaryPopupVisible=!1,this._isPictureDictionaryFirstRunPopupVisible=!1,this._pictureDictionaryCurrentSelectedElement=null,this._hasFocusOnSourceElementBeenHandled=!1,this._settings&&this._settings.getSetting(s.PictureDictionaryEnabled)&&this.onPictureDictionaryEnabled(!1),window.addEventListener("beforeunload",(()=>{this.commitPopupCountTelemetry()}))}handlePictureDictionaryPopupClose(){this._isPictureDictionaryFirstRunPopupVisible?this._isPictureDictionaryFirstRunPopupVisible=!1:this._isPictureDictionaryPopupVisible&&(this._isPictureDictionaryPopupVisible=!1),this.handlePictureDictionaryCurrentSelectedElementFocus(),this.handlePictureDictionaryCurrentSelectedElementStyles(!1)}handlePictureDictionaryCurrentSelectedElementStyles(e){e?this._pictureDictionaryCurrentSelectedElement.classList.add("mspd-active"):this._pictureDictionaryCurrentSelectedElement.classList.remove("mspd-active")}handlePictureDictionaryCurrentSelectedElementFocus(){this._hasFocusOnSourceElementBeenHandled||this._pictureDictionaryCurrentSelectedElement.focus()}isPictureDictionaryActive(){return this._isPictureDictionaryActive}onPictureDictionaryActivationStateChanged(){return this._activationStateChangedEvent}onPictureDictionaryInteractionStateChanged(){return this._toggleInteractionStateChangedEvent}onPictureDictionaryNetworkErrorUpdate(){return this._networkErrorUpdateEvent}onPictureDictionaryLanguageErrorUpdate(){return this._languageErrorUpdateEvent}onPictureDictionaryEnabled(e){this._isPictureDictionaryActive||(this._isPictureDictionaryActive=!0,e&&(this._settings.setSetting(s.PictureDictionaryEnabled,this._isPictureDictionaryActive),this._telemetryClient.reportPictureDictionaryToggleState(this._isPictureDictionaryActive)),this._activationStateChangedEvent.trigger(this._isPictureDictionaryActive),this._pictureDictionaryDataHelper||(this._pictureDictionaryDataHelper=new n.PictureDictionaryDataHelper(this._nlxProcessor,this._telemetryClient,this._targetDocument,this.createRangeAndWrapInTag)),this._pictureDictionaryLanguageErrorsUpdateReleasable=this._pictureDictionaryDataHelper.onLanguageErrorUpdate().subscribe((e=>{this._languageErrorUpdateEvent.trigger(e)})),this._pictureDictionaryNetworkErrorUpdateReleasable=this._pictureDictionaryDataHelper.onNetworkErrorUpdate().subscribe((e=>{this._networkErrorUpdateEvent.trigger(e)})),this._pictureDictionaryDataAvailableReleasable=this._pictureDictionaryDataHelper.picturesDataAvailable().subscribe((()=>{this.registerEvents(),this.maybeRequestFirstRunExperience()})),this._pictureDictionaryOnScrollEndReleasable=this._pictureDictionaryViewer.onScrollEnd().subscribe((e=>{this._pictureDictionaryDataHelper.ensurePictureDictionaryData()})),this._pictureDictionaryDataHelper.ensurePictureDictionaryData(),this._targetDocument.body.classList.add(t.pictureDictionaryCursorClass),document.body.classList.add(t.pictureDictionaryToggleOn))}onPictureDictionaryDisabled(e){this._isPictureDictionaryActive&&(this._isPictureDictionaryActive=!1,e&&(this._settings.setSetting(s.PictureDictionaryEnabled,this._isPictureDictionaryActive),this._telemetryClient.reportPictureDictionaryToggleState(this._isPictureDictionaryActive)),this._activationStateChangedEvent.trigger(this._isPictureDictionaryActive),this._pictureDictionaryDataHelper.cancelPendingDataRequests(),this._pictureDictionaryLanguageErrorsUpdateReleasable.release(),this._pictureDictionaryNetworkErrorUpdateReleasable.release(),this._pictureDictionaryDataAvailableReleasable.release(),this._pictureDictionaryOnScrollEndReleasable.release(),this.unregisterEvents(),this._targetDocument.body.classList.remove(t.pictureDictionaryCursorClass),document.body.classList.remove(t.pictureDictionaryToggleOn))}registerEvents(){if(this._releasablePictureDictionaryWordMarkers){for(let e=0;e0){let e=document.getElementById("__rv_dataSource").getBoundingClientRect(),t=0;for(;te.top&&n.left>e.left&&n.bottom{Object.defineProperty(t,"__esModule",{value:!0}),t.PictureDictionaryDataHelper=void 0;const n=i(1701),o=i(8182),r=i(116),s=i(9636),a=i(6916),l=i(6593);t.PictureDictionaryDataHelper=class{constructor(e,t,i,n){this.onResponseDataReceived=e=>{e.learningToolType===r.LearningToolType.PictureDictionary&&(this._pictureSourceURL||(this._pictureSourceURL=e.nlxResponseMetaData.pictureDictionaryImagesRootUri),this.processPictureDictionaryResponse(e),this.onPictureDictionaryResponseProcessed(e),this.handleTelemetry(e),this.handleErrorUpdates(e))},this._nlxProcessor=e,this._picturesDataAvailable=new s.EventSource,this._telemetryClient=t,this._networkErrorUpdateEvent=new s.EventSource,this._languageErrorUpdateEvent=new s.EventSource,this._targetDocument=i,this._wordResponseProcessedCallback=n,this._pictureSourceURL=null,this._totalWords=0,this._wordsWithPicture=0,this._isAnyDataRequestSuccessful=!1,this.subscribeToNLXProcessorEvents(),window.addEventListener("beforeunload",(()=>{this.commitWordsWithPicturesPercentage()}))}onNetworkErrorUpdate(){return this._networkErrorUpdateEvent}onLanguageErrorUpdate(){return this._languageErrorUpdateEvent}ensurePictureDictionaryData(){this._nlxProcessor.createAndSendNLXRequests(r.LearningToolType.PictureDictionary)}handleTelemetry(e){this.reportPictureDictionaryResultState(e),this._isAnyDataRequestSuccessful||(this._isAnyDataRequestSuccessful=!0,this._telemetryClient.reportPictureDictionaryUsage()),this._wordsWithPicture+=e.responseData.pdr.length,this._totalWords+=e.responseData.wo.length}picturesDataAvailable(){return this._picturesDataAvailable}resetData(){this._nlxProcessor.resetLearningToolRequestState(r.LearningToolType.PictureDictionary),this._languageErrorUpdateEvent.trigger(l.NlxStatus.Success),this._networkErrorUpdateEvent.trigger(l.NlxStatus.Success),this._isAnyDataRequestSuccessful=!1}cancelPendingDataRequests(){this._nlxProcessor.cancelRequests(r.LearningToolType.PictureDictionary)}getPicturesSourceUrl(){return this._pictureSourceURL}commitWordsWithPicturesPercentage(){if(this._totalWords){const e=this._wordsWithPicture/this._totalWords;this._telemetryClient.reportPictureDictionaryWordsWithPicturesPercentage(Math.round(100*e))}}subscribeToNLXProcessorEvents(){this._nlxProcessor.onResponseDataReceived().subscribe((e=>{e.learningToolType===r.LearningToolType.PictureDictionary&&this.onResponseDataReceived(e)})),this._nlxProcessor.onResponseDataPreprocessed().subscribe((e=>{e.learningToolType===r.LearningToolType.PictureDictionary&&this.onPictureDictionaryResponseProcessed(e)})),this._nlxProcessor.onRequestCancellation().subscribe((e=>{e.learningToolType===r.LearningToolType.PictureDictionary&&(this.reportPictureDictionaryResultState(e),this.handleErrorUpdates(e))}))}reportPictureDictionaryResultState(e){const t=Date.now()-e.toolRequestStartTime;e.processingState===n.ProcessingState.Processed?this._telemetryClient.reportPictureDictionaryResultState(a.LinguisticModelOperationResult.Success,t):this._telemetryClient.reportPictureDictionaryResultState(this._nlxProcessor.getLinguisticModelOperationResult(e.networkError),t)}processPictureDictionaryResponse(e){let t=e.responseData;if(t){let i=this._targetDocument?this._targetDocument.body:null,n=new o.NlxWordSegmentFinder(i,e.nlxUnit);for(let e=0;e0&&this._languageErrorUpdateEvent.trigger(n.NLXProcessor.getNlxStatusForLanguageError(e.languageError)),this._networkErrorUpdateEvent.trigger(n.NLXProcessor.getNlxStatusForNetworkError(e.networkError))}}},3875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wandCursor=void 0,t.wandCursor='url(\'data:image/svg+xml;utf8, \'), auto'},1342:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HostProxy=void 0;const n=i(9636),o=i(8121),r=i(8048),s=i(2219),a=i(5249);class l{constructor(e){this._messageRuntime=e,this._readOutLoudOnContextFromFrame=new n.EventSource,this._readOutLoudFocusChanged=new n.EventSource,this._readOutLoudStartRequested=new n.EventSource,this._readOutLoudStopRequested=new n.EventSource,this._readOutLoudPauseRequested=new n.EventSource,this._readOutLoudNextRequested=new n.EventSource,this._readOutLoudPreviousRequested=new n.EventSource,this._readOutLoudPreloadRequest=new n.EventSource,this._readOutLoudChangeRateRequested=new n.EventSource,this._readOutLoudChangeVoiceRequested=new n.EventSource,this._readOutLoudSpeechPrefChanged=new n.EventSource,this._readOutLoudInitializeSettingsRequested=new n.EventSource,this._languageDetected=new n.EventSource,this._sdPrimaryContentFetched=new n.EventSource,this._telemetryClient=new a.TelemetryClient(this),this._messageRuntime.onMessageFromHost().subscribe((e=>{this.onMessageFromHost(e)}))}getTelemetryClient(){return this._telemetryClient}readOutLoudSpeechPrefChanged(){return this._readOutLoudSpeechPrefChanged}readOutLoudFocusChanged(){return this._readOutLoudFocusChanged}readOutLoudOnContextFromFrame(){return this._readOutLoudOnContextFromFrame}readOutLoudStartRequested(){return this._readOutLoudStartRequested}readOutLoudStopRequested(){return this._readOutLoudStopRequested}readOutLoudPauseRequested(){return this._readOutLoudPauseRequested}readOutLoudNextRequested(){return this._readOutLoudNextRequested}readOutLoudPreviousRequested(){return this._readOutLoudPreviousRequested}readOutLoudPreloadRequested(){return this._readOutLoudPreloadRequest}readOutLoudChangeVoiceRequested(){return this._readOutLoudChangeVoiceRequested}readOutLoudChangeRateRequested(){return this._readOutLoudChangeRateRequested}readOutLoudInitializeSettingsRequested(){return this._readOutLoudInitializeSettingsRequested}languageDetected(){return this._languageDetected}sdPrimaryContentFetched(){return this._sdPrimaryContentFetched}ensureReadOutLoudInit(){}onReadAloudInitiated(){}sendSpeechPreferences(e){this.postMessageToHost(l.ReadOutLoudSpeechPreferencesHostMessage,e)}sendReadOutLoudFocusReceived(e){this.postMessageToHost(l.ReadOutLoudFocusReceivedHostMessage,e.frameTreeNodeId.toString(),e.processId.toString())}sendContextToFocusedFrame(e){this.postMessageToHost(l.ReadOutLoudSendContextToFrameHostMessage,JSON.stringify(e))}sendReadOutLoudStatus(e,t,i,n){let o=t===s.ReadingState.Playing,r=t===s.ReadingState.Playing||t===s.ReadingState.Paused||t==s.ReadingState.InteractionsDisabled||t==s.ReadingState.Uninitialized,a=t!=s.ReadingState.InteractionsDisabled&&t!=s.ReadingState.Uninitialized,u=JSON.stringify({previousButtonVisibility:{isVisible:r,isActive:!0,isEnabled:o},nextButtonVisibility:{isVisible:r,isActive:!0,isEnabled:o},togglePlaybackButtonVisibility:{isVisible:r,isActive:!o,isEnabled:a},settingsButtonVisibility:{isVisible:r,isActive:!0,isEnabled:a},settingsButtonWarningVisibility:{isVisible:r&&!i,isActive:!0,isEnabled:!0},closeButtonVisibility:{isVisible:r,isActive:!0,isEnabled:!0},textReadingState:s.ReadingState[t].toLowerCase()}),d="";n&&(d=JSON.stringify({top:n.top,bottom:n.bottom,left:n.left,right:n.right,width:n.width,height:n.height})),this.postMessageToHost(l.ReadOutLoudStatusHostMessage,e.frameTreeNodeId.toString(),e.processId.toString(),u,s.ReadingState[t],d)}sendSpeechSettings(e,t,i){let n=JSON.stringify({supportedVoices:i,currentVoiceURI:t,currentReadingRate:e});this.postMessageToHost(l.ReadOutLoudSpeechSettingsHostMessage,n)}sendTelemetryErrorMeasureNoPII(e,t){let i=JSON.stringify({errorType:e,errorContent:t});this.postMessageToHost(l.ReadOutLoudJsErrorTelemetryHostMessage,i)}sendTelemetry(e,t,i,...n){n&&n.length>0?(n.unshift(i),n.unshift(t),n.unshift(e)):n=[e,t,i],this.postMessageToHost(l.TelemetryMessage,...n)}detectLanguage(e){this.postMessageToHost(l.DetectLanguageHostMessage,e.frameTreeNodeId.toString(),e.processId.toString())}detectTextLanguage(e){return this._messageRuntime.detectTextLanguage(e)}fetchSDPrimaryContent(){this.postMessageToHost(l.ReadAloudFetchSDPrimaryContent)}raiseMessageFromHost(e){this.onMessageFromHost(e)}postMessageToHost(e,...t){this._messageRuntime.postMessageToHost(e,t)}onMessageFromHost(e){switch(e[0]){case l.ReadOutLoudFocusChangedCommand:this._readOutLoudFocusChanged.trigger(void 0);break;case l.ReadOutLoudOnContextFromFrameCommand:let t=o.JsonUtilities.parseJsonOrNull(e[1],"ReadOutLoud",r.ReadAloudErrors[r.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences_ScopeState],this._telemetryClient);this._readOutLoudOnContextFromFrame.trigger(t);break;case l.ReadOutLoudStartCommand:let i=this.parseStartParams(e);this._readOutLoudStartRequested.trigger(i);break;case l.ReadOutLoudStopCommand:this._readOutLoudStopRequested.trigger(void 0);break;case l.ReadOutLoudPauseCommand:this._readOutLoudPauseRequested.trigger(void 0);break;case l.ReadOutLoudNextCommand:this._readOutLoudNextRequested.trigger(void 0);break;case l.ReadOutLoudPreviousCommand:this._readOutLoudPreviousRequested.trigger(void 0);break;case l.ReadOutLoudPreloadCommand:let n=Number(e[1]),s=Number(e[2]);this._readOutLoudPreloadRequest.trigger([n,s]);break;case l.ReadOutLoudChangeVoiceCommand:this._readOutLoudChangeVoiceRequested.trigger(e[1]),this.postMessageToHost(l.ReadAloudExplicitVoiceChangeByUser);break;case l.ReadOutLoudChangeRateCommand:let a=Number(e[1]);this._readOutLoudChangeRateRequested.trigger(a);break;case l.PreferencesChangedCommand:this.handlePreferencesChanged(e);break;case l.ReadOutLoudInitializeSettingsCommand:this._readOutLoudInitializeSettingsRequested.trigger(e);break;case l.LanguageDetected:this._languageDetected.trigger(e[1]);break;case l.ReadOutLoudFirstContentfulPaintLoadedCommand:break;case l.ReadAloudSDPrimaryContentFetched:this._sdPrimaryContentFetched.trigger(e[1]);break;default:throw Error("Unknown Command")}}parseStartParams(e){let t={startRequestTime:0,startType:s.StartType.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},i=parseFloat(e[1]);if(i&&(t.startRequestTime=i),e.length>2){let i=e[2];if(i&&(t.startType=s.StartType[i],t.startType===s.StartType.ReadFromPoint)){let i=parseInt(e[3]);i&&(t.startPosition.x=i);let n=parseInt(e[4]);n&&(t.startPosition.y=n),e[5]&&(t.needsTransformOfStartPosition="true"===e[5])}}return t}handlePreferencesChanged(e){if(e[1]!==l.SpeechPreferences)throw Error("Unknown Preferences");this._readOutLoudSpeechPrefChanged.trigger(e[2])}}l.ReadOutLoudStartCommand="ReadOutLoud_Start",l.ReadOutLoudStopCommand="ReadOutLoud_Stop",l.ReadOutLoudPauseCommand="ReadOutLoud_Pause",l.ReadOutLoudNextCommand="ReadOutLoud_Next",l.ReadOutLoudPreviousCommand="ReadOutLoud_Previous",l.ReadOutLoudPreloadCommand="ReadOutLoud_Preload",l.ReadOutLoudChangeVoiceCommand="ReadOutLoud_ChangeVoice",l.ReadOutLoudChangeRateCommand="ReadOutLoud_ChangeRate",l.ReadOutLoudFirstContentfulPaintLoadedCommand="ReadOutLoud_FirstContentfulPaintLoaded",l.ReadOutLoudFocusChangedCommand="ReadOutLoud_FocusChanged",l.ReadOutLoudOnContextFromFrameCommand="ReadOutLoud_OnContextFromFrame",l.PreferencesChangedCommand="PreferencesChanged",l.ReadOutLoudInitializeSettingsCommand="ReadOutLoud_InitializeSettings",l.LanguageDetected="ReadAloud_DetectedLanguage",l.OpenVoiceOptionsPane="ReadAloud_ShowSettings",l.CloseVoiceOptionsPane="ReadAloud_HideSettings",l.ReadAloudSDPrimaryContentFetched="ReadAloud_SDPrimaryContentFetched",l.ReadOutLoudJsErrorTelemetryHostMessage="ReadOutLoud_Telemetry_JsError",l.TelemetryMessage="Telemetry",l.ReadOutLoudSpeechSettingsHostMessage="ReadOutLoud_SpeechSettings",l.ReadOutLoudSpeechPreferencesHostMessage="ReadOutLoud_SpeechPreferences",l.ReadOutLoudStatusHostMessage="ReadOutLoud_Status",l.ReadOutLoudFocusReceivedHostMessage="ReadOutLoud_FocusReceived",l.ReadOutLoudSendContextToFrameHostMessage="ReadOutLoud_SendContextToFocusedFrame",l.VoiceOptionsPaneOpened="ReadAloud_VoiceOptionsPaneOpened",l.VoiceOptionsPaneClosed="ReadAloud_VoiceOptionsPaneClosed",l.ReadAloudExplicitVoiceChangeByUser="ReadAloud_ExplicitVoiceChangeByUser",l.ReadAloudFetchSDPrimaryContent="ReadAloud_FetchSDPrimaryContent",l.SpeechPreferences="SpeechPreferences",l.DetectLanguageHostMessage="ReadAloud_DetectLanguage",t.HostProxy=l},3565:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CuratedContentReadingUnitNavigator=void 0;const n=i(9274),o=i(3036),r=i(1468),s=i(6747),a=i(9483),l=i(8048),u=i(7734);t.CuratedContentReadingUnitNavigator=class{constructor(e,t){this._readableContent=e,this._telemetryClient=t,this.resetReadingPosition()}setStartingNode(e,t){throw new Error("Method not implemented.")}setEndingNode(e,t=0){throw new Error("Method not implemented.")}resetEndNode(){}getCurrentUnit(){return this._currentStringIndex<0||0===this._readingUnits.length||this._currentStringIndex>=this._readingUnits.length?null:this._readingUnits[this._currentStringIndex]}moveByAUnit(e){if(e===a.UnitDirection.Next){const e=this.findNextUnit(!0);switch(e.status){case s.UnitNavigationStatus.Success:this._currentStringIndex++;break;case s.UnitNavigationStatus.ContentEnded:this._currentStringIndex===this._readableContent.length-1&&this._currentStringIndex++;break;case s.UnitNavigationStatus.Error:this._currentStringIndex=-1}return e.status}if(e===a.UnitDirection.Previous)return this._currentStringIndex<=0?(0===this._currentStringIndex&&this._currentStringIndex--,s.UnitNavigationStatus.ContentEnded):(this._currentStringIndex--,this.resetReadingUnitStartTextOffset(this._currentStringIndex),s.UnitNavigationStatus.Success);throw new Error("moveByAUnit should not be called with Direction as Current")}resetReadingPosition(){this._readingUnits=[],this._currentStringIndex=-1,n.FindInPage.reset()}getNextUnit(){let e=this.findNextUnit(!1);return e.status===s.UnitNavigationStatus.Success?e.unit:null}logContentMismatchTelemetry(){var e,t;null===(e=this._telemetryClient)||void 0===e||e.reportReadOutLoudSmartReadStatus(l.SmartReadStatus.ContentNoMatch);const i=this._readableContent.join("").length;if(i>0){const e=this._readableContent.slice(0,this._currentStringIndex+1).join("").length;null===(t=this._telemetryClient)||void 0===t||t.reportReadOutLoudSmartReadContentMatch(100*e/i)}}findNextUnit(e){const t=this._currentStringIndex+1;if(t>=this._readableContent.length)return{status:s.UnitNavigationStatus.ContentEnded,unit:null};if(this._readingUnits.length&&te)),u=new r.HTMLReadingUnit(l,0);return this._readingUnits.push(u),{status:s.UnitNavigationStatus.Success,unit:this._readingUnits[t]}}nodeFilter(e){return!o.ReadingNavigationUtils.shouldSkipNode(e)}resetReadingUnitStartTextOffset(e){e<0||e>=this._readingUnits.length||(this._readingUnits[e].textStartOffset=0)}mayBeUseH1TagForNavigation(){if(-1===this._currentStringIndex){const e=this._readableContent[this._currentStringIndex+1],t=o.ReadingNavigationUtils.findFirsth1Tag(document);if(!o.ReadingNavigationUtils.shouldSkipNode(t)&&u.StringUtilities.ExactMatchWithoutSpaceAndSpecialChar(t.textContent,e)){const e=o.ReadingNavigationUtils.getTextNodes(t);return new r.HTMLReadingUnit(e,0)}}return null}}},9483:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.UnitDirection=void 0,(i=t.UnitDirection||(t.UnitDirection={}))[i.Next=0]="Next",i[i.Previous=1]="Previous",i[i.Current=2]="Current"},625:function(e,t,i){var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLReadingNavigator=void 0;const o=i(75),r=i(7445),s=i(4680),a=i(6747),l=i(1876),u=i(3565),d=i(9483),c=i(2219),h=i(8945),g=i(6906),p=i(8048),m=i(3036);class _ extends o.ReadingNavigator{constructor(e,t){super(),this._contentProvider=e,this._telemetryClient=t,this._readingUnit=null,this._startParams=null}initializeAsync(e){var t;return this._startParams=e,this.isCuratedContentNavigatorInUse()&&e.startType===c.StartType.ResumeFromSelection&&(null===(t=this._telemetryClient)||void 0===t||t.reportReadOutLoudSmartReadStatus(p.SmartReadStatus.UserInitiatedFallbackContextMenu)),this.isCuratedContentBasedNavigationSupported(e)?this.ensureAndInitializeCuratedContentReadingUnitNavigator(e):this.ensureAndInitializeReadingUnitNavigator(e)}reset(){this._readingUnit=null,this._readingUnitNavigator.resetEndNode()}moveToPreviousUnitAsync(){return n(this,void 0,void 0,(function*(){return this._readingUnit=yield this.moveAndGetReadingUnit(d.UnitDirection.Previous),this._readingUnit?Promise.resolve(!0):Promise.resolve(!1)}))}moveToNextUnitAsync(){return n(this,void 0,void 0,(function*(){return this._readingUnit=yield this.moveAndGetReadingUnit(d.UnitDirection.Next),this._readingUnit?Promise.resolve(!0):Promise.resolve(!1)}))}getCurrentUnit(){return this._readingUnit}getNextUnit(){return this._readingUnitNavigator.getNextUnit()}setCurrentUnitTextOffset(e){this._readingUnit.textStartOffset=e}resetCurrentUnitEndOffset(){this._readingUnit.textEndOffset=null,this._readingUnitNavigator.resetEndNode()}isCuratedContentNavigatorInUse(){return this._readingUnitNavigator instanceof u.CuratedContentReadingUnitNavigator}setStartingNodeAtCoordinates(e,t){let i=e=>e.getBoundingClientRect(),n=h.DomUtilties.getTextNodeFromPoint(e,t.x,t.y,i);if(n){let o=h.DomUtilties.getOffsetInTextNodeForLineAtYPosition(e,n,t.y,i);return this._readingUnitNavigator.setStartingNode(n,o),!0}return!1}isReadAloudCuratedContentEnabled(){return!(this._contentProvider.getContentType()!==s.ContentType.Web||!learningToolsNativeHandler||!learningToolsNativeHandler.isReadAloudCuratedContentEnabled)&&learningToolsNativeHandler.isReadAloudCuratedContentEnabled()}sourceNodeOccursBeforeInViewport(e,t){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}ensureAndInitializeReadingUnitNavigator(e){let t=this._contentProvider.getCurrentDocument();if(this._readingUnitNavigator&&this._readingUnitNavigator instanceof l.ReadingUnitNavigator||(this._readingUnitNavigator=new l.ReadingUnitNavigator),e.startType===c.StartType.ReadFromFirstVisibleElement){let i=window.pageYOffset||document.documentElement.scrollTop;if(e.startPosition.y=i,this.setStartingNodeAtCoordinates(t,e.startPosition))return Promise.resolve(!0)}else if(e.startType===c.StartType.ReadFromPoint&&(e.needsTransformOfStartPosition&&(e.startPosition=g.ScreenCoordinateUtilities.transformPointFromMainToCurrentFrame(e.startPosition),e.needsTransformOfStartPosition=!1),this.setStartingNodeAtCoordinates(t,e.startPosition)))return Promise.resolve(!0);let i=t.getSelection();if(0===i.rangeCount){if(null!==this._readingUnit)return Promise.resolve(!0);this.resetSelection(!1),i=t.getSelection()}if(e.startType===c.StartType.Default)if(this.resetSelection(!0),i=t.getSelection(),this.isReadAloudCuratedContentEnabled()){let e=m.ReadingNavigationUtils.findFirsth1Tag(t);this._readingUnitNavigator.setStartingNode(e&&this.sourceNodeOccursBeforeInViewport(e,t.body)?e:t.body)}else this._readingUnitNavigator.setStartingNode(t.body);if(0!==i.rangeCount){let n=i.getRangeAt(0),o=n.startContainer;if(o.ownerDocument===t){const i=h.DomUtilties.getParentElement(o);if(e.startType===c.StartType.ReadSelection&&(n.endContainer.nodeType===Node.TEXT_NODE?this._readingUnitNavigator.setEndingNode(n.endContainer,n.endOffset):n.endContainer.nodeType===Node.ELEMENT_NODE&&this._readingUnitNavigator.setEndingNode(n.endContainer)),o.nodeType===Node.TEXT_NODE){if(this._readingUnitNavigator.setStartingNode(o,n.startOffset),this.collapseSelectionToNode(i,0),e.startType===c.StartType.Default&&this.isReadAloudCuratedContentEnabled()){let e=m.ReadingNavigationUtils.findFirsth1Tag(t);e&&this.sourceNodeOccursBeforeInViewport(e,i)&&(this._readingUnitNavigator.setStartingNode(e),this.collapseSelectionToNode(i,0))}}else if(o.nodeType===Node.ELEMENT_NODE){const r=h.DomUtilties.getChildNodes(o);if(0===r.length)this._readingUnitNavigator.setStartingNode(o),this.collapseSelectionToNode(o,0);else if(n.startOffset>=r.length)this._readingUnitNavigator.setStartingNode(o.nextSibling),this.collapseSelectionToNode(o,0);else if(this._readingUnitNavigator.setStartingNode(r[n.startOffset]),this.collapseSelectionToNode(o,0),this.collapseSelectionToNode(i,0),e.startType===c.StartType.Default&&this.isReadAloudCuratedContentEnabled()){let e=m.ReadingNavigationUtils.findFirsth1Tag(t);e&&this.sourceNodeOccursBeforeInViewport(e,i)&&(this._readingUnitNavigator.setStartingNode(e),this.collapseSelectionToNode(i,0))}}}else if(e.startType===c.StartType.Default&&this.isReadAloudCuratedContentEnabled()){let e=m.ReadingNavigationUtils.findFirsth1Tag(t),i=this.sourceNodeOccursBeforeInViewport(e,t.body);this._readingUnitNavigator.setStartingNode(e&&i?e:t.body),this.collapseSelectionToNode(e&&i?e:t.body,0)}else this._readingUnitNavigator.setStartingNode(t.body),this.collapseSelectionToNode(t.body,0)}return Promise.resolve(!0)}ensureAndInitializeCuratedContentReadingUnitNavigator(e){var t,i,o,s;return n(this,void 0,void 0,(function*(){if(null===(t=this._telemetryClient)||void 0===t||t.reportReadOutLoudSmartReadStatus(p.SmartReadStatus.Start),!this._readingUnitNavigator||!this.isCuratedContentNavigatorInUse()){let t=[];try{if(t=yield this._contentProvider.getPrimaryContent(),!t||t.length<1)return null===(i=this._telemetryClient)||void 0===i||i.reportReadOutLoudSmartReadStatus(p.SmartReadStatus.ContentEmptyNonPaywalled),this.ensureAndInitializeReadingUnitNavigator(e);if(t.join("").length<500)return null===(o=this._telemetryClient)||void 0===o||o.reportReadOutLoudSmartReadStatus(p.SmartReadStatus.ContentLow),this.ensureAndInitializeReadingUnitNavigator(e)}catch(t){if(t instanceof Error){let e=r.SmartReadAloudUtils.getSmartReadStatusFromError(t);e&&(null===(s=this._telemetryClient)||void 0===s||s.reportReadOutLoudSmartReadStatus(e))}return this.ensureAndInitializeReadingUnitNavigator(e)}this._readingUnitNavigator=new u.CuratedContentReadingUnitNavigator(t,this._telemetryClient)}return this._readingUnitNavigator.resetReadingPosition(),Promise.resolve(!0)}))}moveAndGetReadingUnit(e){return n(this,void 0,void 0,(function*(){return this._readingUnitNavigator.moveByAUnit(e)===a.UnitNavigationStatus.Error&&this.isCuratedContentNavigatorInUse()&&(yield this.overrideAndMoveUsingLegacyUnitNavigator(e)),this._readingUnitNavigator.getCurrentUnit()}))}overrideAndMoveUsingLegacyUnitNavigator(e){return n(this,void 0,void 0,(function*(){this._readingUnit?(this._readingUnitNavigator=new l.ReadingUnitNavigator,this._readingUnitNavigator.setStartingNode(this._readingUnit.contentNodes.pop()),this._readingUnitNavigator.moveByAUnit(e),this._readingUnitNavigator.moveByAUnit(e)):(yield this.ensureAndInitializeReadingUnitNavigator(this._startParams),this._readingUnitNavigator.moveByAUnit(e))}))}}t.HTMLReadingNavigator=_},1468:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLReadingUnit=void 0;const n=i(8890);class o extends n.ReadingUnit{constructor(e,t,i){super(t,i),this._contentNodes=e,this._textContents=this.updateTextContents()}get contentNodes(){return this._textContents=this.updateTextContents(),this._contentNodes}set contentNodes(e){this._contentNodes=e,this._textContents=this.updateTextContents()}get textContents(){return this._textContents}updateTextContents(){return this._contentNodes.map((e=>o.EmptyTagNodeList.includes(e.nodeName.toUpperCase())?" ":e.textContent))}}o.EmptyTagNodeList=["BR","HR","IMG","INPUT"],t.HTMLReadingUnit=o},1816:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationType=void 0,(i=t.DecorationType||(t.DecorationType={}))[i.Word=1]="Word",i[i.Line=2]="Line",i[i.Background=4]="Background",i[i.All=7]="All",i[i.ExceptWord=6]="ExceptWord",i[i.WordAndLine=3]="WordAndLine"},6747:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.UnitNavigationStatus=void 0,(i=t.UnitNavigationStatus||(t.UnitNavigationStatus={}))[i.ContentEnded=0]="ContentEnded",i[i.Error=1]="Error",i[i.Success=2]="Success"},1121:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudHighlighter=void 0;const n=i(3487),o=i(7734),r=i(8945);(t.ReadOutLoudHighlighter||(t.ReadOutLoudHighlighter={})).surroundTextBySpans=function(e,t,i){let s=n.Highlighter.surroundTextByTag("msreadoutspan",t,(t=>o.StringUtilities.NONEMPTY_STRING_REGEX.test(t.textContent)&&e.contentNodes.findIndex((e=>e===t))>=0),((t,i)=>{let n=e.contentNodes.findIndex((e=>e===t));n>=0&&e.contentNodes.splice(n,1,...i)}),i),a={spans:s.value(),readingUnit:e};return{value:()=>a,release:()=>{s.release(),a.readingUnit.contentNodes=a.readingUnit.contentNodes.filter((e=>r.DomUtilties.isInDocument(e,e.ownerDocument)))}}}},75:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingNavigator=void 0,t.ReadingNavigator=class{}},4830:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingRangeManipulations=void 0;const n=i(8945),o=i(3036),r=i(7734);!function(e){function t(e,i){var o=i;if(e.endContainer.nodeType===Node.TEXT_NODE){let t=e.endContainer.textContent.length;if(e.endOffset0){let t=e.endContainer.nodeType===Node.ELEMENT_NODE?n.DomUtilties.getChildNodes(e.endContainer)[e.endOffset-1]:e.endContainer,i=a(t.ownerDocument.body,t);if(i&&!u(i)){let t=Math.min(o,i.textContent.length);o-=t,e.setEnd(i,t)}}var r=o0&&t(e,o),r}function i(e,t){var n=t;if(e.startContainer.nodeType===Node.TEXT_NODE&&e.startOffset>0&&!u(e.startContainer)){let t=Math.max(0,e.startOffset-n);n-=e.startOffset-t,e.setStart(e.startContainer,t)}if(n>0){let t=e.startContainer.nodeType===Node.ELEMENT_NODE?e.startContainer.childNodes[e.startOffset]:e.startContainer,i=s(t.ownerDocument.body,t);if(i&&!u(i)){let t=i.textContent.length,o=Math.max(0,t-n);n-=t-o,e.setStart(i,o)}}var o=n0&&i(e,n),o}function s(e,t){let i=t;do{i=o.ReadingNavigationUtils.shouldSkipNode(i)?o.ReadingNavigationUtils.getPreviousSubtreeNode(e,i):o.ReadingNavigationUtils.getPreviousReadingNode(e,i)}while(i&&(i.nodeType!==Node.TEXT_NODE||u(i)));return i!==t?i:null}function a(e,t){let i=t;do{i=o.ReadingNavigationUtils.shouldSkipNode(i)?o.ReadingNavigationUtils.getNextSubtreeNode(e,i):o.ReadingNavigationUtils.getNextReadingNode(e,i)}while(i&&(i.nodeType!==Node.TEXT_NODE||u(i)));return i!==t?i:null}function l(e,t){if(1===e.length)return 0===e.item(0).top&&0===e.item(0).bottom&&0===e.item(0).left&&0===e.item(0).right;if(e.length>1){let i=e.item(0),n=e.item(e.length-1),o=i.top,r=i.bottom,s=n.top,a=n.bottom,l=i.right,u=n.left,d=i.height,c=n.height;if(d+c<=a-o||a-o<=0)return!0;if(d+c>a-o&&(o!=s||r!=a))return t?i.lefto||u>l:u=s[u].length;)l-=s[u].length,u++;var d=o=u;if(d===a)return null;let c=r[d].length-l;if(i>c){for(i-=c,d++;dr[d].length;)i-=r[d].length,d++;if(d>=a)return null}else i+=l;let h=r[0].ownerDocument;if(n.DomUtilties.isInDocument(r[o],h)&&n.DomUtilties.isInDocument(r[d],h)){let e=h.createRange();return e.setStart(r[o],l),e.setEnd(r[d],i),e}return null},e.expandRangeEnd=t,e.expandRangeStart=i,e.expandToLineRange=function(e,n,o){let r=e.cloneRange();return function(e,t,n){let o=e.startContainer,r=e.startOffset;[10,1].forEach((s=>{for(;i(e,s);){var a=t(e);if(0===a.length||l(a,n))break;o=e.startContainer,r=e.startOffset}e.setStart(o,r)}))}(r,o,n),function(e,i,n){let o=e.endContainer,r=e.endOffset;[10,1].forEach((s=>{for(;t(e,s);){var a=i(e);if(0===a.length||l(a,n))break;o=e.endContainer,r=e.endOffset}e.setEnd(o,r)}))}(r,o,n),r},e.getPreviousExpandableNode=s,e.getNextExpandableNode=a}(t.ReadingRangeManipulations||(t.ReadingRangeManipulations={}))},8890:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingUnit=void 0,t.ReadingUnit=class{constructor(e,t){this._textStartOffset=e,this._textEndOffset=t||null}get textStartOffset(){return this._textStartOffset}set textStartOffset(e){this._textStartOffset=e}get textEndOffset(){return this._textEndOffset}set textEndOffset(e){this._textEndOffset=e}}},1876:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingUnitNavigator=void 0;const n=i(8945),o=i(1468),r=i(6747),s=i(9483),a=i(3036);class l{constructor(){this._currentUnit=null}setStartingNode(e,t){this._direction=s.UnitDirection.Next,this._currentUnit=null,this._rootNode=e?e.ownerDocument.body:null,this._currentUnitContainer=a.ReadingNavigationUtils.getUnitContainer(e),this._currentNode=e;let i=e;for(;i&&i!==this._currentUnitContainer&&!a.ReadingNavigationUtils.isUnitContainer(i);)this._currentNode=i,i=i.previousSibling?i.previousSibling:n.DomUtilties.getParentNode(i);for(;this._currentNode&&a.ReadingNavigationUtils.shouldSkipNode(this._currentNode);)this._currentNode=a.ReadingNavigationUtils.getNextSubtreeNode(this._rootNode,this._currentNode);e&&this._currentNode&&(e===this._currentNode||e.compareDocumentPosition(this._currentNode)&Node.DOCUMENT_POSITION_PRECEDING)&&(this._textStartOffset=t||0,this._offsetNode=this._currentNode===e?null:e)}setEndingNode(e,t=0){this._endNode=e,this._textEndOffset=t}resetEndNode(){this._endNode=null,this._textEndOffset=null}getCurrentUnit(){return this._currentUnit}moveByAUnit(e){let t,i=0,n=!0;if(e===s.UnitDirection.Current)throw new Error("moveByAUnit should not be called with Direction as Current");if(this._rootNode&&this._currentUnitContainer)for(this.adjustCurrentNodeForDirection(e),t=[];this._currentNode;){n&&(n=this._offsetNode&&!!(this._offsetNode.compareDocumentPosition(this._currentNode)&Node.DOCUMENT_POSITION_PRECEDING));var l=!1;if(e===s.UnitDirection.Next&&this._currentNode===this._currentUnitContainer.nextSibling||e===s.UnitDirection.Previous&&this._currentNode===this._currentUnitContainer.previousSibling)this._currentUnitContainer=a.ReadingNavigationUtils.getUnitContainer(this._currentNode),l=!0;else for((this._currentNode.nodeType===Node.TEXT_NODE||o.HTMLReadingUnit.EmptyTagNodeList.includes(this._currentNode.nodeName.toUpperCase()))&&(t.push(this._currentNode),n&&(i+=this._currentNode.textContent.length)),this._currentNode=a.ReadingNavigationUtils.moveByANode(this._rootNode,this._currentNode,e),a.ReadingNavigationUtils.isUnitContainer(this._currentNode)&&(this._currentUnitContainer=this._currentNode,l=!0);this._currentNode&&a.ReadingNavigationUtils.shouldSkipNode(this._currentNode);)this._currentNode=a.ReadingNavigationUtils.moveByASubtree(this._rootNode,this._currentNode,e),a.ReadingNavigationUtils.isUnitContainer(this._currentNode)&&(this._currentUnitContainer=this._currentNode,l=!0);if(l){if(!a.ReadingNavigationUtils.areEmptyOrWhiteSpaceTextNodes(t))break;n=!1,i=0,this._textStartOffset=0,this._offsetNode=null,t=[]}}return t&&t.length>0&&e==s.UnitDirection.Previous&&t.reverse(),this._currentUnit=a.ReadingNavigationUtils.createReadingUnit(t,this._textStartOffset+i),this.setEndOffsetInCurrentUnit(),this._offsetNode=null,this._textStartOffset=0,this._currentUnit?r.UnitNavigationStatus.Success:r.UnitNavigationStatus.ContentEnded}resetReadingPosition(){this.resetEndNode(),this.setStartingNode(document.body),this._currentUnit=null}getNextUnit(){let e=new l;return Object.assign(e,this),e.moveByAUnit(s.UnitDirection.Next)==r.UnitNavigationStatus.Success?e.getCurrentUnit():null}setEndOffsetInCurrentUnit(){if(this._endNode){let e=0,t=!1;for(let i=0;i0?(this._currentNode=e===s.UnitDirection.Next?a.ReadingNavigationUtils.getNextReadingNode(this._rootNode,this._currentUnit.contentNodes[this._currentUnit.contentNodes.length-1]):a.ReadingNavigationUtils.getPreviousReadingNode(this._rootNode,this._currentUnit.contentNodes[this._currentUnit.contentNodes.length-1]),this._currentUnitContainer=a.ReadingNavigationUtils.getUnitContainer(this._currentNode)):this._currentNode=this._rootNode,this._direction=e)}}t.ReadingUnitNavigator=l},714:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudEventHandlers=void 0;const n=i(2219);class o{constructor(e,t,i){this._releasables=[],this._isInitialized=!1,this._hostProxy=e,this._mainViewModel=t,this._previousReadingState=n.ReadingState.Stopped,this._currentFrame=null,this._pendingContext=null,this._speechPreferences=null,this._enableOnlineVoiceFre=!1,i&&window.addEventListener("focus",(()=>{this._hostProxy.sendReadOutLoudFocusReceived(this._currentFrame)})),window.addEventListener("beforeunload",(()=>{if(this._settingsViewModel&&this._readOutLoudViewModel){let e=this._readOutLoudViewModel.getReadingState();e!==n.ReadingState.Playing&&e!==n.ReadingState.Paused||(window.self===window.top?(this._readOutLoudViewModel.stopReading(),this.sendReadOutLoudStatus(n.ReadingState.Stopped,!0)):(this._readOutLoudViewModel.pauseReading(!1),this.sendReadOutLoudStatus(n.ReadingState.Paused,!0)))}})),this.registerHostEventHandlers()}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._readOutLoudViewModel=null,this._settingsViewModel=null,this._isInitialized=!1,this._pendingContext=null}initialize(e){if(this._mainViewModel.initializeReadOutLoud(e,this._enableOnlineVoiceFre),this._readOutLoudViewModel=this._mainViewModel.getReadOutLoudViewModel(),this._settingsViewModel=this._mainViewModel.getReadOutLoudSettingsViewModel(),this._readOutLoudViewModel&&this._settingsViewModel){let e=()=>{let e=this._settingsViewModel.getVoice(),t=this._settingsViewModel.getDropDownOptionsForVoices();e&&t&&this._hostProxy.sendSpeechSettings(this._settingsViewModel.getReadingRate(),e.name,t)},t=e=>{this._readOutLoudViewModel.getReadingState()!==n.ReadingState.Uninitialized&&this._hostProxy.sendSpeechPreferences(e)};this._releasables.push(this._settingsViewModel.rateChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.voiceChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.voicesChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.speechPreferencesChanged().subscribe((e=>{this._speechPreferences=e,t(e)}))),this._releasables.push(this._settingsViewModel.compatibleVoiceAvailableChanged().subscribe((()=>{this.sendReadOutLoudStatus(this._readOutLoudViewModel.getReadingState(),this._settingsViewModel.getCompatibleVoiceAvailable(),this._readOutLoudViewModel.getWordRect())}))),this._releasables.push(this._readOutLoudViewModel.readingStateChanged().subscribe((()=>{this.sendReadOutLoudStatus(this._readOutLoudViewModel.getReadingState(),this._settingsViewModel.getCompatibleVoiceAvailable(),this._readOutLoudViewModel.getWordRect())})))}this._isInitialized=!0}registerHostEventHandlers(){var e;this._hostProxy.readOutLoudInitializeSettingsRequested().subscribe((e=>{5==e.length&&(e[3]&&(this._speechPreferences=e[3]),this._enableOnlineVoiceFre="true"===e[4],this._currentFrame={frameTreeNodeId:Number(e[1]),processId:Number(e[2])})})),null===(e=this._hostProxy.ensureReadOutLoudInit())||void 0===e||e.subscribe((()=>{this._isInitialized||(this._hostProxy.sendReadOutLoudStatus(this._currentFrame,n.ReadingState.InteractionsDisabled,!0),this.initialize(this._speechPreferences)),this._hostProxy.onReadAloudInitiated()})),this._hostProxy.readOutLoudFocusChanged().subscribe((()=>{if(this._isInitialized){let e=this._readOutLoudViewModel.getReadingState();this._pendingContext?this._hostProxy.sendContextToFocusedFrame(this._pendingContext):this._hostProxy.sendContextToFocusedFrame({readingState:e,speechPreferences:this._settingsViewModel?this._settingsViewModel.getSpeechPreferences():null,dwellTime:this._readOutLoudViewModel.getPausedDwellTime()}),this._readOutLoudViewModel.pauseReading(!0)}else this._hostProxy.sendContextToFocusedFrame({readingState:n.ReadingState.Stopped,speechPreferences:null,dwellTime:0})})),this._hostProxy.readOutLoudOnContextFromFrame().subscribe((e=>{this._isInitialized||this.initialize(JSON.stringify(e.speechPreferences)),this._readOutLoudViewModel.setDwellTime(e.dwellTime),e.readingState===n.ReadingState.Playing?this.handleStartReadOutLoud():e.readingState===n.ReadingState.Paused&&this._readOutLoudViewModel.pauseReading(!0)})),this._hostProxy.readOutLoudSpeechPrefChanged().subscribe((e=>{this._speechPreferences=e,this._isInitialized&&this._settingsViewModel.updateSpeechSettings(this._speechPreferences)})),this._hostProxy.readOutLoudStartRequested().subscribe((e=>{this._isInitialized||(this._hostProxy.sendReadOutLoudStatus(this._currentFrame,n.ReadingState.InteractionsDisabled,!0),this.initialize(this._speechPreferences)),this.handleStartReadOutLoud(e)})),this._hostProxy.readOutLoudStopRequested().subscribe((()=>{this._isInitialized&&(this._settingsViewModel.logVoiceChangeTelemetry(this._readOutLoudViewModel.getContentType()),this._settingsViewModel.logRateChangeTelemetry(this._readOutLoudViewModel.getContentType()),this._readOutLoudViewModel.logSpeechSynthesisInvokeTelemetry(),this._readOutLoudViewModel.stopReading())})),this._hostProxy.readOutLoudPauseRequested().subscribe((()=>{this._isInitialized||this.initialize(this._speechPreferences),this._readOutLoudViewModel.logSpeechSynthesisInvokeTelemetry(),this._pendingContext={readingState:n.ReadingState.Paused,speechPreferences:this._settingsViewModel.getSpeechPreferences(),dwellTime:this._readOutLoudViewModel.getPausedDwellTime()},this._readOutLoudViewModel.pauseReading(!1)})),this._hostProxy.readOutLoudNextRequested().subscribe((()=>{this._isInitialized&&this._readOutLoudViewModel.moveToNextUnit()})),this._hostProxy.readOutLoudPreviousRequested().subscribe((()=>{this._isInitialized&&this._readOutLoudViewModel.moveToPreviousUnit()})),this._hostProxy.readOutLoudPreloadRequested().subscribe((e=>{this._isInitialized&&this._readOutLoudViewModel.preloadTheRestUtterances(e[0],1===e[1])})),this._hostProxy.readOutLoudChangeRateRequested().subscribe((e=>{this._isInitialized&&this._settingsViewModel.setReadingRate(e)})),this._hostProxy.readOutLoudChangeVoiceRequested().subscribe((e=>{this._isInitialized&&this._settingsViewModel.setCurrentVoiceFromURI(e)}))}sendReadOutLoudStatus(e,t,i){e!==n.ReadingState.Uninitialized&&(this._pendingContext&&(this._pendingContext=null),this._hostProxy.sendReadOutLoudStatus(this._currentFrame,e,t,i),e!==this._previousReadingState&&e===n.ReadingState.Stopped&&this.reset(),this._previousReadingState=e)}handleStartReadOutLoud(e=o.defaultStartParams){this._pendingContext={readingState:n.ReadingState.Playing,speechPreferences:this._settingsViewModel?this._settingsViewModel.getSpeechPreferences():null,dwellTime:this._readOutLoudViewModel.getPausedDwellTime()},this._readOutLoudViewModel.startReading(e)}}o.defaultStartParams={startRequestTime:0,startType:n.StartType.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},t.ReadOutLoudEventHandlers=o},3036:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingNavigationUtils=void 0;const n=i(1468),o=i(9483),r=i(7734),s=i(8945);class a{static getNextReadingNode(e,t){var i;return null!==(i=s.DomUtilties.getFirstChild(t))&&void 0!==i?i:a.getNextSubtreeNode(e,t)}static getPreviousReadingNode(e,t){var i;return null!==(i=s.DomUtilties.getLastChild(t))&&void 0!==i?i:a.getPreviousSubtreeNode(e,t)}static shouldSkipNode(e){if(!e)return!0;if(e.nodeType===Node.ELEMENT_NODE){if(n.HTMLReadingUnit.EmptyTagNodeList.includes(e.nodeName.toUpperCase()))return!1;if(a.NodeIgnoreList.indexOf(e.nodeName.toUpperCase())>-1)return!0;let t=window.getComputedStyle(e);if(!(r.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)||s.DomUtilties.hasShadowDom(e)||e instanceof HTMLSlotElement))return!0;if("none"===t.display.toLowerCase()||"hidden"===t.visibility.toLowerCase()||e.hidden)return!0;if(parseInt(t.width)<=5&&("hidden"===t.overflow.toLowerCase()||"hidden"===t.overflowX.toLowerCase()))return!0;if(parseInt(t.height)<=5&&("hidden"===t.overflow.toLowerCase()||"hidden"===t.overflowY.toLowerCase()))return!0;if("inline"!==t.display.toLowerCase()&&e.scrollWidth>e.offsetWidth&&"hidden"===t.overflow.toLowerCase())return!0;if(e.hasAttribute("aria-hidden")&&"true"===e.getAttribute("aria-hidden"))return!0}return!1}static getPreviousSubtreeNode(e,t){for(;t&&t!==e&&!t.previousSibling;)t=s.DomUtilties.getParentNode(t);return t&&t!==e?t.previousSibling:null}static getNextSubtreeNode(e,t){for(;t&&t!==e&&!t.nextSibling;)t=s.DomUtilties.getParentNode(t);return t&&t!==e?t.nextSibling:null}static createReadingUnit(e,t){return e&&e.length>0&&!a.areEmptyOrWhiteSpaceTextNodes(e)?new n.HTMLReadingUnit(e,t):null}static areEmptyOrWhiteSpaceTextNodes(e){return 0===e.length||!e.some((e=>r.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)))}static moveByANode(e,t,i){return i===o.UnitDirection.Next?a.getNextReadingNode(e,t):a.getPreviousReadingNode(e,t)}static moveByASubtree(e,t,i){return i===o.UnitDirection.Next?a.getNextSubtreeNode(e,t):a.getPreviousSubtreeNode(e,t)}static getUnitContainer(e){for(;e&&!a.isUnitContainer(e);)e=s.DomUtilties.getParentNode(e);return e}static isUnitContainer(e){if(e&&e.nodeType===Node.ELEMENT_NODE){const t=e.tagName.toLowerCase();return a.unitBoundaryTags.indexOf(t)>-1}return!1}static findFirsth1Tag(e){const t=e.getElementsByTagName("h1");if(0!==t.length)return t[0];for(const t of a.ShadowDomTitleTags){const i=e.querySelectorAll(t);for(const e of i)if(e.shadowRoot&&e.shadowRoot.querySelector("h1"))return e.shadowRoot.querySelector("h1")}return null}static getTextNodes(e){let t=[];const i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>this.shouldSkipNode(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});for(;i.nextNode();)t.push(i.currentNode);return t}}a.NodeIgnoreList=["NOSCRIPT","SCRIPT","STYLE","SELECT"],a.unitBoundaryTags=["body","div","p","address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","nav","section","main","figcaption","ul","ol","dl","li","dt","dd","pre","td","th","caption","summary","details","button","legend","label","textarea"],a.ShadowDomTitleTags=["msnews-views-title"],t.ReadingNavigationUtils=a},7445:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SmartReadAloudUtils=t.SmartReadParseError=void 0;const n=i(8121),o=i(8048);var r;!function(e){e.ContentPaywalled="ContentPaywalled",e.ContentInvalid="ContentInvalid",e.ContentFetchTimeout="ContentFetchTimeout"}(r=t.SmartReadParseError||(t.SmartReadParseError={}));class s{static parseSdPrimaryContent(e,t,i){if(e){try{let o=n.JsonUtilities.parseJsonOrNull(e);if(o.paywall)return void i(new Error(r.ContentPaywalled));if(s.validatePrimaryContent(o))return void t(o.primaryContent)}catch(e){}i(new Error(r.ContentInvalid))}else i(new Error(r.ContentInvalid))}static getSmartReadStatusFromError(e){return e.message===r.ContentFetchTimeout?o.SmartReadStatus.ContentFetchTimedOut:e.message===r.ContentInvalid?o.SmartReadStatus.InvalidResponse:e.message===r.ContentPaywalled?o.SmartReadStatus.ContentEmptyPaywalled:null}static validatePrimaryContent(e){return e&&e.hasOwnProperty("primaryContent")&&Array.isArray(e.primaryContent)&&e.primaryContent.every((e=>"string"==typeof e))}}t.SmartReadAloudUtils=s},9609:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudSettingsViewModel=void 0;const n=i(9636),o=i(8048),r=i(8121);class s{constructor(e,t,i){this._telemetryClient=i,this._currentVoices=[],this._currentVoicesDropDownOptions=null,this._speechPreferences=r.JsonUtilities.parseJsonOrNull(e,"ReadOutLoud",o.ReadAloudErrors[o.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences],this._telemetryClient),this._currentReadingRate=1,this._currentVoice=null,this._compatibleVoiceAvailable=!0,this._voicesChanged=new n.EventSource,this._enableOnlineVoiceFre=t,this._rateChanged=new n.EventSource,this._voiceChanged=new n.EventSource,this._compatibleVoiceAvailableChanged=new n.EventSource,this._speechPreferencesChanged=new n.EventSource,this._preferredDefaultVoiceForLanguage=new Map([["en","Microsoft Aria Online (Natural) - English (United States)"],["zh","Microsoft Xiaoxiao Online (Natural) - Chinese (Mainland)"]]),this._noOfTimesVoiceChanged=0,this._noOfTimesRateChanged=0,this._browserlocale=window.navigator.language,this.setSpeechSynthesis(window.speechSynthesis)}setSpeechSynthesis(e){this._speechSynthesis=e,this._currentVoices=this._speechSynthesis.getVoices(),this._speechSynthesis.onvoiceschanged=()=>{this.isVoicesAvailable()&&this._currentVoice&&(this._currentVoices.find((e=>e.voiceURI===this._currentVoice.voiceURI))||this.updateCurrentVoice(this._language))}}getSpeechSynthesis(){return this._speechSynthesis}getSpeechPreferences(){return this._speechPreferences}updateSpeechSettings(e){if(this._speechPreferences=r.JsonUtilities.parseJsonOrNull(e,"ReadOutLoud",o.ReadAloudErrors[o.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences],this._telemetryClient),this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){let e=this._speechPreferences.languageSettings.find((e=>e.language.toUpperCase().startsWith(this._language.toUpperCase())));if(e){if(this._currentVoice.voiceURI.toUpperCase()!=e.voiceURI.toUpperCase()){let t=this._currentVoices.find((t=>t.voiceURI.toUpperCase()===e.voiceURI.toUpperCase()));t&&(this._currentVoice=t,this._voiceChanged.trigger(void 0))}this._currentReadingRate!=e.rate&&e.rate>=.5&&e.rate<=2&&(this._currentReadingRate=e.rate,this._rateChanged.trigger(void 0))}}}setReadingRate(e){this._currentReadingRate!==e&&(this._currentReadingRate=e,this._rateChanged.trigger(void 0),this._noOfTimesRateChanged+=1,this.updateSpeechPreferences())}getReadingRate(){return this._currentReadingRate}setCurrentVoiceFromURI(e){var t=this._currentVoices.find((t=>t.voiceURI===e));t&&this._currentVoice!==t&&(this._noOfTimesVoiceChanged+=1,this._currentVoice=t,this._voiceChanged.trigger(void 0),this.updateSpeechPreferences())}getVoice(){return this._currentVoice}getDropDownOptionsForVoices(){return this._currentVoicesDropDownOptions}setCompatibleVoiceAvailable(e){this._compatibleVoiceAvailable=e,this._compatibleVoiceAvailableChanged.trigger(void 0)}getCompatibleVoiceAvailable(){return this._compatibleVoiceAvailable}voiceChanged(){return this._voiceChanged}rateChanged(){return this._rateChanged}compatibleVoiceAvailableChanged(){return this._compatibleVoiceAvailableChanged}voicesChanged(){return this._voicesChanged}speechPreferencesChanged(){return this._speechPreferencesChanged}isOnlineVoiceAvailable(){return this._enableOnlineVoiceFre&&null!=this._currentVoices.find((e=>!1===e.localService&&e.lang.toUpperCase().startsWith(this._currentVoice.lang.toUpperCase())))}ensureSpeechSettingsInitializedAsync(e){return new Promise((t=>{if(this._language=e.split("-")[0],this._currentVoice)return t(!0);this.refreshVoicesListAsync().then((e=>(e?e=this.updateCurrentVoice(this._language):(this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.NoLanguagePackageInstalled),this._compatibleVoiceAvailableChanged.trigger(void 0)),this.isOnlineVoiceAvailable()||this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.NoOnlineVoicesAvailable),t(e))))}))}logVoiceChangeTelemetry(e){this._noOfTimesVoiceChanged&&this._telemetryClient.reportReadOutLoudVoiceChange(e,this._noOfTimesVoiceChanged)}logRateChangeTelemetry(e){this._noOfTimesRateChanged&&this._telemetryClient.reportReadOutLoudRateChange(e,this._noOfTimesRateChanged)}setSpeechSettingsForLanguage(e){var t=null,i=null;if(this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){let n=this._speechPreferences.languageSettings.findIndex((t=>-1!=t.language.toUpperCase().indexOf(e.toUpperCase())));if(-1!=n){let o=this._speechPreferences.languageSettings[n];if(this._enableOnlineVoiceFre&&(!o.version||o.version<1)&&this.setOnlineVoiceAsDefault(e))return!0;t||(t=this._currentVoices.find((e=>e.voiceURI.toUpperCase()===o.voiceURI.toUpperCase())),i=o.rate>=.5&&o.rate<=2?o.rate:1,this._speechPreferences.languageSettings.splice(n,1),this._speechPreferences.languageSettings.unshift(o),this._speechPreferencesChanged.trigger(JSON.stringify(this._speechPreferences)))}}if(!t){if(this._enableOnlineVoiceFre&&this.setOnlineVoiceAsDefault(e))return!0;let n=this._currentVoices.filter((t=>0===t.lang.toUpperCase().indexOf(e.toUpperCase())));if(n.length>0){if(!(t=n.find((e=>e.lang.toUpperCase()===this._browserlocale.toUpperCase())))){let i=this._preferredDefaultVoiceForLanguage.get(e);i&&(t=n.find((e=>e.voiceURI===i))),t||(t=n[0])}i=1}}return!(!t||!i||(this._currentVoice=t,this._voiceChanged.trigger(void 0),this._currentReadingRate=i,this._rateChanged.trigger(void 0),0))}setOnlineVoiceAsDefault(e){let t=this._currentVoices.filter((e=>!1===e.localService&&e.lang.toUpperCase().startsWith(this._language.toUpperCase()))),i=null;if(t.length>0&&(i=t.find((e=>e.lang.toUpperCase()===this._browserlocale.toUpperCase())),!i)){let n=this._preferredDefaultVoiceForLanguage.get(e);n&&(i=t.find((e=>e.voiceURI===n))),i||(i=t[0])}return!!i&&(this._currentVoice=i,this._voiceChanged.trigger(void 0),this._currentReadingRate=1,this._rateChanged.trigger(void 0),this.updateSpeechPreferences(!0),!0)}updateCurrentVoice(e){return this._compatibleVoiceAvailable=!0,this.setSpeechSettingsForLanguage(e)||(this._currentVoice=this._currentVoices[0],this._voiceChanged.trigger(void 0),this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.LanguagePackageNotFound),this._compatibleVoiceAvailable=!1),this._compatibleVoiceAvailableChanged.trigger(void 0),this._compatibleVoiceAvailable}updateSpeechPreferences(e=!1){if(this._language&&this._language.length<=s.MaxLanguageLength){if(this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){var t=this._speechPreferences.languageSettings.findIndex((e=>e.language.toUpperCase()===this._language.toUpperCase()));let i=this._enableOnlineVoiceFre?0:1;-1!=t&&(i=this._speechPreferences.languageSettings[t].version,this._speechPreferences.languageSettings.splice(t,1));let n={language:this._language,voiceURI:this._currentVoice.voiceURI,rate:this._currentReadingRate,version:e?1:i};this._speechPreferences.languageSettings.unshift(n),this._speechPreferences.languageSettings.length>15&&(this._speechPreferences.languageSettings.length=15)}else this._speechPreferences={languageSettings:[{language:this._language,voiceURI:this._currentVoice.voiceURI,rate:this._currentReadingRate,version:this._enableOnlineVoiceFre&&e?1:0}]};this._speechPreferencesChanged.trigger(JSON.stringify(this._speechPreferences))}}refreshVoicesListAsync(){return new Promise((e=>{if(this.isVoicesAvailable())return e(!0);let t,i=this._voicesChanged.subscribe((()=>(clearTimeout(t),i&&i.release(),e(!0))));t=window.setTimeout((()=>(this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.NoVoicesAvailable),i.release(),e(this.isVoicesAvailable()))),2e3)}))}isVoicesAvailable(){return this._currentVoices=this._speechSynthesis.getVoices(),!!(this._currentVoices&&this._currentVoices.length>0)&&(this._currentVoicesDropDownOptions=this._currentVoices.map((e=>({uri:e.voiceURI,name:e.name,lang:e.lang}))),this._voicesChanged.trigger(void 0),!0)}}s.MaxLanguageLength=85,t.ReadOutLoudSettingsViewModel=s},2219:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudViewModel=t.maxUtteranceLength=t.seekToStartTimeout=t.StartType=t.ReadingState=void 0;const n=i(8048),o=i(9483),r=i(1816),s=i(7734),a=i(4680),l=i(7413);var u,d;!function(e){e[e.InEligible=0]="InEligible",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused",e[e.Stopped=3]="Stopped",e[e.PlayDisabled=4]="PlayDisabled",e[e.InteractionsDisabled=5]="InteractionsDisabled",e[e.Uninitialized=6]="Uninitialized"}(u=t.ReadingState||(t.ReadingState={})),function(e){e[e.Default=0]="Default",e[e.ReadFromPoint=1]="ReadFromPoint",e[e.ReadFromWordSelection=2]="ReadFromWordSelection",e[e.ReadSelection=3]="ReadSelection",e[e.ResumeFromSelection=4]="ResumeFromSelection",e[e.ReadFromFirstVisibleElement=5]="ReadFromFirstVisibleElement",e[e.ReadFromCurrentPage=6]="ReadFromCurrentPage"}(d=t.StartType||(t.StartType={}));const c="en-US";t.seekToStartTimeout=5e3,t.maxUtteranceLength=1e3;class h{constructor(e,t,i,n,r){this._readingNavigator=e,this._highlighter=t,this._contentProvider=r,this._delimiters=null,this._speechUtterances=[],this._seekToStartForCurrentUnit=!0,this._isProcessingPending=!1,this._telemetryClient=n,this._continueReadingOnUserActionComplete=!1,this._ignoreUserActionEvents=!1,this._startRequestTime=0,this._dwellTimeStart=0,this._dwellTimeDuration=0,this._shouldExitAfterReadingCurrentUnit=!1,this._characterCount=0,this._noOfTimesSpeechSynthesisInvoked=0,this._continueClickCountAfterROLStarted=0,window.addEventListener("beforeunload",(()=>{this.commitDwellTime()})),i&&(this._settings=i,this._settings.voiceChanged().subscribe((()=>{this.getReadingState()===u.Playing&&(this.cancelReading(!1),this.continueReading(o.UnitDirection.Current,h.defaultStartParams));let e=this._settings.getVoice();(!1===e.localService&&!this._isOnlineVoicePlaying||!0===e.localService&&this._isOnlineVoicePlaying)&&(this.commitCharacterCount(),this._logVoiceUsageTelemetry=!0)})),this._settings.rateChanged().subscribe((()=>{this._eventTimeoutReleasable&&(this._eventTimeoutReleasable.release(),this._eventTimeoutReleasable=null);const e=this.getReadingState();let t=window.setTimeout((()=>{e===u.Playing&&(this.cancelReading(!1),this.continueReading(o.UnitDirection.Current,h.defaultStartParams)),this._eventTimeoutReleasable=null}),550);this._eventTimeoutReleasable={release:()=>clearTimeout(t)}})))}preloadTheRestUtterances(e,t){let i=this._speechSynthesis;if(!i.preload||!this._readingNavigator.deepCopy)return;let n=[];const o=this._readingNavigator.deepCopy();let r=()=>{o.moveToNextUnitAsync().then((t=>{let s=o.getCurrentUnit();if(!t||null===s)return void i.preload(e,n);let a=this.createSpeechUtterances(s,!0);n=n.concat(a),r()}))};if(t){let e=()=>{o.moveToPreviousUnitAsync().then((t=>{let i=o.getCurrentUnit();t&&null!==i?e():r()}))};e()}else r()}preloadNextUtterance(e){let t=this._speechSynthesis;if(!t.preload||!this._readingNavigator.getNextUnit)return;const i=this._readingNavigator.getNextUnit();if(i){let n=this.createSpeechUtterances(i,!0);t.preload(e,n)}}startReading(e=h.defaultStartParams){this._startRequestTime=e.startRequestTime,this.ensureSpeechSynthesis();let t=this._speechUtterances.length,i=this.getReadingState();if(this._isProcessingPending||t>0&&i!==u.Paused)return void this._telemetryClient.reportReadOutLoudStartStates(n.ReadAloudStartStates.ReadAloud_StartReadingIgnored);this._isProcessingPending=!0;let s=i===u.Paused&&this.isReadingPositionValid()&&null!==this._readingNavigator.getCurrentUnit()&&!(this._contentProvider.getContentType()===a.ContentType.PDF&&e.startType===d.ResumeFromSelection),c=!s&&i===u.Paused;this.getLanguageAsync().then((t=>{if(this._isProcessingPending){if(this._isProcessingPending=!1,this.ensureDelimiters(t),s)return this.ensureNavigationEventListeners(),void this.resumeReading();i===u.Paused&&this._readingNavigator.getCurrentUnit()&&(this.resetReadSelection(),l.FeatureList.get()&&l.FeatureList.get().isReadAloudSDExtractionEnabled()||(e.startType=this._contentProvider.getContentType()!==a.ContentType.ReadingView&&this._contentProvider.getContentType()!==a.ContentType.PDF||e.startType===d.ResumeFromSelection?d.ReadFromWordSelection:d.ReadFromFirstVisibleElement)),(i===u.Stopped||i===u.Uninitialized||c)&&(this._isProcessingPending=!0,this._settings.ensureSpeechSettingsInitializedAsync(t).then((t=>{this._isProcessingPending&&(this._isProcessingPending=!1,t?(c&&(this.cancelReading(!0),this._highlighter.deactivateDecoration(r.DecorationType.Word)),this.ensureNavigationEventListeners(),this.continueReading(o.UnitDirection.Next,e,!0)):this.pauseReading())})))}}))}pauseReading(e=!1){this.getReadingState()!==u.Paused?(this._speechSynthesis&&this.cancelReading(!1,u.Paused),this.logSuccessTelemetry(u[u.Paused]),this._highlighter.deactivateDecoration(e?r.DecorationType.All:r.DecorationType.ExceptWord),this.handleSetReadingState(u.Paused)):this.getReadingState()===u.Paused&&e&&this._highlighter.deactivateDecoration(r.DecorationType.All)}stopReading(){this.cancelReading(!0,u.Stopped),this._userActionStartedListenerReleasable&&(this._userActionStartedListenerReleasable.release(),this._userActionStartedListenerReleasable=null),this._userActionCompletedListenerReleasable&&(this._userActionCompletedListenerReleasable.release(),this._userActionCompletedListenerReleasable=null)}moveToPreviousUnit(){if(this.resetReadSelection(),this.getReadingState()===u.Playing){this.cancelReading(!1),this._readingNavigator.setCurrentUnitTextOffset(0),this.continueReading(this._seekToStartForCurrentUnit?o.UnitDirection.Current:o.UnitDirection.Previous,h.defaultStartParams),this._seekToStartForCurrentUnit=!1;let e=window.setTimeout((()=>{this._seekToStartForCurrentUnit=!0,this._seekToStartReleasableTimer=null}),t.seekToStartTimeout);this._seekToStartReleasableTimer={release:()=>{window.clearTimeout(e)}}}}moveToNextUnit(){this.resetReadSelection(),this.getReadingState()===u.Playing&&(this.cancelReading(!1),this.continueReading(o.UnitDirection.Next,h.defaultStartParams))}getWordRect(){return this._highlighter.getWordRect()}settingsViewModel(){return this._settings}setDwellTime(e){this._dwellTimeDuration=e}getPausedDwellTime(){return this.pauseDwellTime(),this._dwellTimeDuration}getContentType(){return this._contentProvider.getContentType()}logSpeechSynthesisInvokeTelemetry(){0!==this._noOfTimesSpeechSynthesisInvoked&&(this._telemetryClient.reportReadOutLoudSpeechSynthesisInvoke(this._noOfTimesSpeechSynthesisInvoked),this._noOfTimesSpeechSynthesisInvoked=0)}resetReadSelection(){this._shouldExitAfterReadingCurrentUnit=!1,this._readingNavigator.getCurrentUnit()&&this._readingNavigator.resetCurrentUnitEndOffset()}continueReading(e,t,i){this._isProcessingPending||(this._isProcessingPending=!0,(i?this._readingNavigator.initializeAsync(t):Promise.resolve(!0)).then((t=>{if(!t||!this._isProcessingPending)return this.cancelReading(!0,u.Stopped),this.logErrorTelemetry(n.ReadAloudErrors.ReadingNavigatorInitializeFailure),!1;switch(e){case o.UnitDirection.Previous:return this._readingNavigator.moveToPreviousUnitAsync();case o.UnitDirection.Next:return this.updateCharacterCount(),this._readingNavigator.moveToNextUnitAsync();case o.UnitDirection.Current:return this.getReadingState()===u.Playing&&this.updateCharacterCount(),!0;default:return!0}})).then((i=>{if(this._isProcessingPending)if(i){let i=this.createSpeechUtterances(this._readingNavigator.getCurrentUnit());i&&i.length>0?(i.forEach((e=>{this._noOfTimesSpeechSynthesisInvoked++,this._speechSynthesis.speak(e)})),this._isProcessingPending=!1):(this._isProcessingPending=!1,this.continueReading(e,t,!1))}else this.logSuccessTelemetry(n.ReadAloudStartStates[n.ReadAloudStartStates.ReadAloud_ContentNotAvailable]),this.cancelReading(!0,u.Paused)})))}cancelReading(e,t){(this.getReadingState()===u.Playing||this._speechUtterances.length>0)&&(this._speechSynthesis.pause(),this._speechSynthesis.cancel()),!t||t!==u.Stopped&&t!==u.Paused||this.logSuccessTelemetry(u[t]),this._startRequestTime&&(this._startRequestTime=0),this._speechUtterances.forEach((e=>e.release())),this._speechUtterances=[],e&&(this.updateCharacterCount(),this.commitCharacterCount(),this.commitClickNavCountAfterROLStarted(),this._readingNavigator.reset()),this._seekToStartReleasableTimer&&(this._seekToStartReleasableTimer.release(),this._seekToStartReleasableTimer=null),t&&(this.handleSetReadingState(t),t===u.Stopped?this._highlighter.deactivateDecoration(r.DecorationType.All):t===u.Paused&&this._highlighter.deactivateDecoration(r.DecorationType.ExceptWord)),this._isProcessingPending=!1}commitClickNavCountAfterROLStarted(){0!==this._continueClickCountAfterROLStarted&&(this._telemetryClient.reportReadOutLoudContinueClickCount(this._contentProvider.getContentType(),this._continueClickCountAfterROLStarted),this._continueClickCountAfterROLStarted=0)}getLanguageAsync(){return this._contentProvider.getLanguageAsync(c).then((e=>s.StringUtilities.isNullOrEmpty(e)?c:e))}handleSetReadingState(e){let t=this.getReadingState();this.setReadingState(e),t!==e&&this.handleDwellTimeTelemetry()}resumeReading(){this.getReadingState()===u.Paused&&this._speechSynthesis&&this.continueReading(o.UnitDirection.Current,h.defaultStartParams)}createSpeechUtterances(e,i=!1){let n=[];i||(this._isOnlineVoicePlaying=!this._settings.getVoice().localService);let o=e.textContents;null!==e.textEndOffset&&void 0!==e.textEndOffset&&(i||(this._shouldExitAfterReadingCurrentUnit=!0),o=s.StringUtilities.truncateEnd(o,e.textEndOffset)),o=s.StringUtilities.skipStartText(o,e.textStartOffset);let r=s.StringUtilities.adjustTextByLength(o,t.maxUtteranceLength,this._delimiters),a=e.textStartOffset;return r.forEach((t=>{let o;o=i?this.createSpeechUtteranceWithoutEventHandlers(t):this.createSpeechUtterance(e,t,a),n.push(o),a+=t.length})),n}createSpeechUtteranceWithoutEventHandlers(e){let t=new SpeechSynthesisUtterance;return t.voice=this._settings.getVoice(),t.rate=this._settings.getReadingRate(),t.lang=this._settings.getVoice().lang,t.text="TH-TH"===t.lang.toUpperCase()?e:s.StringUtilities.replaceLinebreaksWithSpaces(e),t}onUtteranceStartOrResume(e){if(this._logVoiceUsageTelemetry||0!=this._startRequestTime){let e=this._settings.getVoice();e.localService&&!this._settings.isOnlineVoiceAvailable()||(this._telemetryClient.reportReadOutLoudVoiceUsage(this._contentProvider.getContentType(),!e.localService),this._logVoiceUsageTelemetry=!1)}this.logSuccessTelemetry(u[u.Playing]),this._highlighter.activateDecoration(r.DecorationType.Background),this.getReadingState()!=u.Playing&&(this._ignoreUserActionEvents=!0),this.handleSetReadingState(u.Playing),this._continueReadingOnUserActionComplete=!1}createSpeechUtterance(e,t,i){let n,s=this.createSpeechUtteranceWithoutEventHandlers(t),d=e=>{let t=l.FeatureList.get();t&&t.isPreloadOnStartUtteranceEnabled()&&this.preloadNextUtterance(e.charIndex),this.onUtteranceStartOrResume(e)},c=e=>{this.onUtteranceStartOrResume(e)},g=e=>{if(this._seekToStartForCurrentUnit=!0,this._seekToStartReleasableTimer&&(this._seekToStartReleasableTimer.release(),this._seekToStartReleasableTimer=null),n){let e=this._speechUtterances.findIndex((e=>e===n));e>=0&&this._speechUtterances.splice(e,1),n.release(),n=null}if(this.getReadingState()===u.Playing&&0===this._speechUtterances.length){if(this._shouldExitAfterReadingCurrentUnit)return this._shouldExitAfterReadingCurrentUnit=!1,void this.stopReading();this.continueReading(o.UnitDirection.Next,h.defaultStartParams)}},p=e=>{this.logErrorTelemetry(this.getTelemetryMessage(e.error,0!==this._startRequestTime)),"synthesis-failed"===e.error?this.continueReading(o.UnitDirection.Next,h.defaultStartParams):this.cancelReading(!0,u.Paused)},m=t=>{this.getReadingState()===u.Playing&&"word"===t.name&&(this._ignoreUserActionEvents=!0,this._contentProvider.getContentType()===a.ContentType.PDF&&this._continueReadingOnUserActionComplete||(this._highlighter.setWordDecorationPosition(e,i,t),this._highlighter.activateDecoration(r.DecorationType.WordAndLine)),this._readingNavigator.setCurrentUnitTextOffset(i+t.charIndex)),this._ignoreUserActionEvents=!1};return s.addEventListener("start",d),s.addEventListener("end",g),s.addEventListener("resume",c),s.addEventListener("error",p),s.addEventListener("boundary",m),n={value:()=>s,release:()=>{s.removeEventListener("start",d),s.removeEventListener("end",g),s.removeEventListener("resume",c),s.removeEventListener("error",p),s.removeEventListener("boundary",m)}},this._speechUtterances.push(n),n.value()}logSuccessTelemetry(e){0!=this._startRequestTime&&(this._settings.getVoice()?this._telemetryClient.reportReadOutLoudSuccess(e,!this._settings.getVoice().localService,Date.now()-this._startRequestTime):this._telemetryClient.reportReadOutLoudSuccess(e,!1,Date.now()-this._startRequestTime),this._startRequestTime=0)}getTelemetryMessage(e,t){switch(e){case"network":return t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_Network_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure_Network;case"synthesis-failed":return t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_SynthesisFailed_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure_SynthesisFailed;case"text-too-long":return t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_TextTooLong_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure_TextTooLong;default:return!1===this._settings.getVoice().localService?t?n.ReadAloudErrors.SpeechUtteranceCreationFailureForOnlineVoice_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailureForOnlineVoice:t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure}}logErrorTelemetry(e){this._telemetryClient.reportReadOutLoudInternalError(e),this._startRequestTime=0}ensureNavigationEventListeners(){this._userActionStartedListenerReleasable||(this._userActionStartedListenerReleasable=this.addUserActionStartedListener()),this._userActionCompletedListenerReleasable||(this._userActionCompletedListenerReleasable=this.addUserActionCompletedListener())}ensureSpeechSynthesis(){this._speechSynthesis||(this._speechSynthesis=this._settings.getSpeechSynthesis())}ensureDelimiters(e){this._delimiters||(this._delimiters=0===e.indexOf("en")?[".",";",","]:[".","。",";",","," ","-"])}handleDwellTimeTelemetry(){switch(this.getReadingState()){case u.Playing:this.startDwellTime();break;case u.Paused:this.pauseDwellTime();break;case u.Stopped:this.commitDwellTime()}}startDwellTime(){this._dwellTimeStart=Date.now()}pauseDwellTime(){0!==this._dwellTimeStart&&(this._dwellTimeDuration+=Date.now()-this._dwellTimeStart,this._dwellTimeStart=0)}commitDwellTime(){this.pauseDwellTime(),0!==this._dwellTimeDuration&&(this._telemetryClient.reportReadOutLoudDwellTime(this._contentProvider.getContentType(),this._dwellTimeDuration),this._dwellTimeDuration=0)}updateCharacterCount(){this._readingNavigator.getCurrentUnit()&&(this._characterCount+=this._readingNavigator.getCurrentUnit().textStartOffset)}commitCharacterCount(){0!==this._characterCount&&(this._telemetryClient.reportReadOutLoudCharacterCount(this._contentProvider.getContentType(),this._characterCount,this._isOnlineVoicePlaying),this._characterCount=0)}}h.defaultStartParams={startRequestTime:0,startType:d.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},t.ReadOutLoudViewModel=h},4715:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineFocus=void 0;const n=i(9636),o=i(6111),r=i(2221);class s{constructor(e,t,i,r,a){this._viewer=e,this._contentProvider=t,this._unitProvider=i,this._settings=r,this._telemetryClient=a,this._isLineFocusActive=!1,this._currentLineCount=this._settings?this._settings.getSetting(o.LineFocusLineCount):s.LineCount[0],this._maxLineCount=this.calculateMaxLineCount(),this._isProcessingBringIntoView=!1,this._releasables=[],this._isCurrentPositionStale=!1,this._onLineFocusStateChanged=new n.EventSource,this._onLineCountChanged=new n.EventSource,this._onMaxLineCountChanged=new n.EventSource,this._dwellTimeStart=0,this._lineFocusExit=new n.EventSource,window.addEventListener("beforeunload",(()=>{this.commitDwellTime(Date.now())}))}getCurrentLineCount(){return this._currentLineCount}getMaxLineCount(){return this._maxLineCount}enterLineFocusMode(e){let t=window.setTimeout((()=>{this._telemetryClient.reportLineFocusStartStatus(!1)}),5e3);this._isLineFocusActive=!0,this._viewer.enterLineFocusMode();let i=this._contentProvider.getDocumentStartRange();i.collapse(!0),this._unitProvider.setCurrentPosition(i),this._unitProvider.setTargetHeight(this.getCurrentTextViewHeightWithMargin()),this.moveToNextUnit(),this._releasables.push(this._viewer.onWheel().subscribe((e=>this.onWheel(e)))),this._releasables.push(this._viewer.onKeyDown().subscribe((e=>this.onKeyDown(e)))),this._releasables.push(this._viewer.onScrollEnd().subscribe((e=>this.onScrollEnd(e)))),this._onLineFocusStateChanged.trigger(this._isLineFocusActive),t&&(clearTimeout(t),this._telemetryClient.reportLineFocusStartStatus(!0),this._dwellTimeStart=e,this._telemetryClient.reportLineFocusTimeToStart(Date.now()-e),this.logLineFocusLineCount())}exitLineFocusMode(e){this._isLineFocusActive=!1,this._unitProvider.reset();const t=this._viewer.getLineFocusViewRect();this._viewer.exitLineFocusMode(),this._isProcessingBringIntoView=!1,this._releasables.forEach((e=>e.release())),this._onLineFocusStateChanged.trigger(this._isLineFocusActive),this._lineFocusExit.trigger(t),e>0&&this.commitDwellTime(e)}moveToNext(){if(!this._isProcessingBringIntoView){if(this._isCurrentPositionStale)return this.refreshCurrentPosition(!0);let e,t=this._viewer.getLineFocusViewRect(),i=this._unitProvider.getCurrentUnit().bottom-t.bottom;return i>2?(e=i>t.height?{top:t.bottom,left:t.left,bottom:t.bottom+t.height,right:t.right,height:t.height,width:t.width,x:0,y:0,toJSON:function(){}}:{top:t.top+i,left:t.left,bottom:t.bottom+i,right:t.right,height:t.height,width:t.width,x:0,y:0,toJSON:function(){}},this.processBringRectIntoView(e,!0)):this.moveToNextUnit()}return new Promise((e=>{}))}moveToPrevious(){if(!this._isProcessingBringIntoView){if(this._isCurrentPositionStale)return this.refreshCurrentPosition(!1);let e,t=this._viewer.getLineFocusViewRect(),i=this._unitProvider.getCurrentUnit(),n=t.top-i.top;return n>2?(e=n>t.height?{top:t.top-t.height,left:t.left,bottom:t.top,right:t.right,height:t.height,width:t.width,x:0,y:0,toJSON:function(){}}:{top:t.top-n,left:t.left,bottom:t.bottom-n,right:t.right,height:t.height,width:t.width,x:0,y:0,toJSON:function(){}},this.processBringRectIntoView(e,!0)):this.moveToPreviousUnit()}return new Promise((e=>{}))}onContentShifted(){this._isLineFocusActive&&setTimeout((()=>{this.adjustLineCount(),this._unitProvider.setTargetHeight(this.getCurrentTextViewHeightWithMargin());let e=this._unitProvider.getCurrentUnit(!0);this._viewer.setLineFocusViewHeight(Math.max(e.height,this.getCurrentTextViewHeight())),this._viewer.bringRectIntoLineFocusView(e,!0).then((()=>this._isCurrentPositionStale=!1))}),0)}setLineCount(e){s.LineCount.indexOf(e)>-1&&(this._currentLineCount=e,this.onContentShifted(),this._settings&&(this._settings.setSetting(o.LineFocusLineCount,this._currentLineCount),this.logLineFocusLineCount()),this._onLineCountChanged.trigger(this._currentLineCount))}onLineFocusStateChanged(){return this._onLineFocusStateChanged}onLineFocusExit(){return this._lineFocusExit}onLineCountChanged(){return this._onLineCountChanged}onMaxLineCountChanged(){return this._onMaxLineCountChanged}getLineFocusRect(){return this._viewer.getLineFocusViewRect()}onLanguageChangeRequested(){this._isLineFocusActive&&this.exitLineFocusMode(-1)}overrideIsBringingInView(){this._isProcessingBringIntoView=!1}moveToNextUnit(){let e={top:0,left:0,bottom:0,right:0,height:0,width:0,x:0,y:0,toJSON:function(){}};for(;e.heighti?(this._viewer.setLineFocusViewHeight(t.height),e=!1):this._viewer.setLineFocusViewHeight(i),this.processBringRectIntoView(t,e)}refreshCurrentPosition(e){this._isCurrentPositionStale=!1;let t=this._viewer.getStartingPosition();return t.collapse(!0),this._unitProvider.setCurrentPosition(t),this._unitProvider.setTargetHeight(this.getCurrentTextViewHeightWithMargin()),e?this.moveToNextUnit():this.moveToPreviousUnit()}adjustLineCount(){let e=this._maxLineCount;this._maxLineCount=this.calculateMaxLineCount(),e!==this._maxLineCount&&this._onMaxLineCountChanged.trigger(this._maxLineCount),this._currentLineCount>this._maxLineCount&&(this._currentLineCount=this._maxLineCount,this._settings&&this._settings.setSetting(o.LineFocusLineCount,this._currentLineCount),this._onLineCountChanged.trigger(this._currentLineCount))}calculateMaxLineCount(){for(let e=s.LineCount.length-1;e>0;e--)if(s.LineCount[e]*this._viewer.getBaseLineHeight()-this._viewer.getLineFocusViewMargins()(this._isProcessingBringIntoView=!1,!0)))}onScrollEnd(e){e!==r.ScrollSource.LineFocus&&(this._isCurrentPositionStale=!0)}onWheel(e){e.preventDefault(),e.deltaY>0?this.moveToNext():e.deltaY<0&&this.moveToPrevious()}onKeyDown(e){switch(e.key){case"ArrowDown":this.moveToNext();break;case"ArrowUp":this.moveToPrevious();break;case"Escape":e.defaultPrevented||(e.preventDefault(),this.exitLineFocusMode(Date.now()));break;case"PageUp":case"PageDown":case"End":case"Home":e.preventDefault(),e.stopPropagation()}}commitDwellTime(e){0!==this._dwellTimeStart&&(this._telemetryClient.reportLineFocusDwellTime(e-this._dwellTimeStart),this._dwellTimeStart=0)}logLineFocusLineCount(){this._telemetryClient.reportLineFocusLineCount(this._currentLineCount)}}s.LineCount=[1,3,5],s.MinUnitHeight=2,s.MinUnitWidth=2,t.LineFocus=s},3762:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineFocusUnitProvider=void 0;const n=i(7734);var o,r;!function(e){e[e.Start=0]="Start",e[e.End=1]="End"}(o||(o={})),function(e){e[e.Next=0]="Next",e[e.Previous=1]="Previous"}(r||(r={}));class s{constructor(){this._startAnchorNode=null,this._endAnchorNode=null,this._document=null,this._treeWalker=null,this._canMoveNext=!1,this._canMovePrevious=!1,this._lastMoveDirection=r.Next}setCurrentPosition(e){this._document=e.startContainer.ownerDocument,this._treeWalker=this._document.createTreeWalker(this._document.body,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,{acceptNode:e=>e.nodeType===Node.TEXT_NODE&&!n.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)||e.nodeType===Node.ELEMENT_NODE&&!this.isNonSplitableNode(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}),this.initializeAnchorNodes(e)}setTargetHeight(e){this._targetHeight=e}moveToNextUnit(){this._lastMoveDirection!==r.Next&&this.getCurrentUnit(!0);let e=!1;this._treeWalker.currentNode=this._endAnchorNode.value();let t=this._treeWalker.nextNode();if(t){let i=this.insertAnchorNode(t);if(this.releaseAnchorNodes(),this._startAnchorNode=i,this._treeWalker.currentNode=this._startAnchorNode.value(),t=this._treeWalker.nextNode(),t){let i=this.createLineFocusRangeFrom(t);this._endAnchorNode=this.insertAnchorNode(i,o.End),e=this._startAnchorNode.value().nextSibling!==this._endAnchorNode.value()}}return this._lastMoveDirection=r.Next,this.updateCanMove(),e}moveToPreviousUnit(){let e=!1;this._treeWalker.currentNode=this._startAnchorNode.value();let t=this._treeWalker.previousNode();if(t){let i=this.getNonSplitableAncestorNode(t),n=this._document.createRange();n.selectNode(i||t);let r=this.insertAnchorNode(n,o.End);if(this.releaseAnchorNodes(),this._endAnchorNode=r,this._treeWalker.currentNode=this._endAnchorNode.value(),t=this._treeWalker.previousNode(),t){let i=this.createLineFocusRangeTo(t);this._startAnchorNode=this.insertAnchorNode(i,o.Start),e=this._startAnchorNode.value().nextSibling!==this._endAnchorNode.value()}}return this._lastMoveDirection=r.Previous,this.updateCanMove(),e}getCurrentUnit(e){let t=null;if(this._startAnchorNode&&this._endAnchorNode){this._treeWalker.currentNode=this._startAnchorNode.value();let i=this._treeWalker.nextNode();if(i)if(this.isNonSplitableNode(i))t=i.getBoundingClientRect();else{let n=null;if(e){n=this.createLineFocusRangeFrom(this._treeWalker.currentNode);let e=this.insertAnchorNode(n,o.End);this._endAnchorNode.release(),this._endAnchorNode=e}n=this._document.createRange(),n.selectNode(i),n.setEndBefore(this._endAnchorNode.value()),t=n.getBoundingClientRect()}}return this.updateCanMove(),t}canMoveNext(){return this._canMoveNext}canMovePrevious(){return this._canMovePrevious}reset(){this.releaseAnchorNodes(),this._document=null,this._treeWalker=null,this._targetHeight=0,this._canMoveNext=!1,this._canMovePrevious=!1,this._lastMoveDirection=r.Next}insertAnchorNode(e,t){let i=this._document.createElement("hr");if(i.style.display="none",void 0!==t){let n=e.cloneRange();n.collapse(t===o.Start),n.surroundContents(i)}else e.parentElement.insertBefore(i,e);return{value:()=>i,release:()=>{let e=i.parentNode;e.removeChild(i),e.normalize()}}}createLineFocusRangeFrom(e){let t=e.ownerDocument.createRange();if(t.selectNode(e),this.isNonSplitableNode(e))return t;this._treeWalker.currentNode=e;let i=e,n=null;for(;i;){if(this.isNonSplitableNode(i))return t;if(t.setEndAfter(i),t.getBoundingClientRect().height>this._targetHeight)break;n=i,i=this._treeWalker.nextNode()}if(i&&i.nodeType===Node.TEXT_NODE){let e=0,o=i.textContent.length;for(;ethis._targetHeight?o=n:e=n+1}1===o&&n?t.setEndAfter(n):o>0?(t.setEnd(i,o),t.getBoundingClientRect().height>this._targetHeight&&t.setEnd(i,o-1)):t.setEndAfter(n||i)}return t}createLineFocusRangeTo(e){let t=this.getNonSplitableAncestorNode(e),i=e.ownerDocument.createRange();if(t)return i.selectNode(t),i;i.selectNode(e),this._treeWalker.currentNode=e;let n=e,o=null;for(;n;){if(t=this.getNonSplitableAncestorNode(n),t)return i;if(i.setStartBefore(n),i.getBoundingClientRect().height>this._targetHeight)break;o=n,n=this._treeWalker.previousNode()}if(n&&n.nodeType===Node.TEXT_NODE){let e=0,t=n.textContent.length;for(;ethis._targetHeight?e=o+1:t=o}t-1}getNonSplitableAncestorNode(e){let t=this.isNonSplitableNode(e)?e:null;for(e=null==e?void 0:e.parentNode;e;)this.isNonSplitableNode(e)&&(t=e),e=e.parentNode;return t}updateCanMove(){let e=!1;this._startAnchorNode&&(this._treeWalker.currentNode=this._startAnchorNode.value(),e=null!==this._treeWalker.previousNode());let t=!1;this._endAnchorNode&&(this._treeWalker.currentNode=this._endAnchorNode.value(),t=null!==this._treeWalker.nextNode()),this._canMoveNext===t&&this._canMovePrevious===e||(this._canMoveNext=t,this._canMovePrevious=e)}}s.NonSplitableNodeList=["TABLE","SVG","IMG","VIDEO","OBJECT","AUDIO","EMBED","MAP","IFRAME"],t.LineFocusUnitProvider=s},8882:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingPreferencesViewModel=void 0;const n=i(9636),o=i(6593);t.ReadingPreferencesViewModel=class{constructor(e,t){this._lineFocus=e,this._lineCount=this._lineFocus.getCurrentLineCount(),this._maxLineCount=this._lineFocus.getMaxLineCount(),this._onReadingPreferencesPaneStatusChanged=new n.EventSource,this._isLineFocusActive=!1,this._pictureDictionary=t,this._isPictureDictionaryActive=this._pictureDictionary.isPictureDictionaryActive(),this._isPictureDictionaryToggleInteractable=!0,this._pictureDictionaryLanguageError=o.NlxStatus.Success,this._pictureDictionaryNetworkError=o.NlxStatus.Success,this._lineFocusExitEvent=new n.EventSource,e&&(e.onLineFocusStateChanged().subscribe((e=>{this._isLineFocusActive=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0)})),e.onLineCountChanged().subscribe((e=>{this._lineCount=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0)})),e.onMaxLineCountChanged().subscribe((e=>{this._maxLineCount=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0)})),e.onLineFocusExit().subscribe((e=>{this._lineFocusExitEvent.trigger(e)}))),t&&(t.onPictureDictionaryActivationStateChanged().subscribe((e=>{e!==this._isPictureDictionaryActive&&(this._isPictureDictionaryActive=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0))})),t.onPictureDictionaryInteractionStateChanged().subscribe((e=>{e!==this._isPictureDictionaryToggleInteractable&&(this._isPictureDictionaryToggleInteractable=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0))})),t.onPictureDictionaryNetworkErrorUpdate().subscribe((e=>{e!==this._pictureDictionaryNetworkError&&(this._pictureDictionaryNetworkError=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0))})),t.onPictureDictionaryLanguageErrorUpdate().subscribe((e=>{e!==this._pictureDictionaryLanguageError&&(this._pictureDictionaryLanguageError=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0))})))}getLineCount(){return this._lineCount}enableLineFocus(e){this._lineFocus.enterLineFocusMode(e)}onContentShifted(){this._pictureDictionary.onContentShifted(),this._lineFocus.onContentShifted()}disableLineFocus(e){this._lineFocus.exitLineFocusMode(e)}setNumberOfLinesInFocus(e){this._lineFocus.setLineCount(e)}moveToNextInLineFocus(){this._lineFocus.moveToNext()}moveToPreviousInLineFocus(){this._lineFocus.moveToPrevious()}onReadingPreferencesStatusChanged(){return this._onReadingPreferencesPaneStatusChanged}onLineFocusExit(){return this._lineFocusExitEvent}enablePictureDictionary(){this._pictureDictionary.onPictureDictionaryEnabled(!0)}disablePictureDictionary(){this._pictureDictionary.onPictureDictionaryDisabled(!0)}hidePictureDictionaryPopupRequested(){this._pictureDictionary.hidePictureDictionaryPopup(!0,null)}handlePictureDictionaryPopupClose(){this._pictureDictionary.handlePictureDictionaryPopupClose()}onLanguageChangeRequested(){this._lineFocus.onLanguageChangeRequested(),this._pictureDictionary.onLanguageChangeRequested()}onLanguageChangeRequestCompleted(){this._pictureDictionary.onLanguageChangeRequestCompleted()}readingPreferencesPaneStatus(){return{isLineFocusActive:this._isLineFocusActive,lineCount:this._lineCount,maxLineCount:this._maxLineCount,isPictureDictionaryActive:this._isPictureDictionaryActive,isPictureDictionaryToggleInteractable:this._isPictureDictionaryToggleInteractable,pictureDictionaryLanguageError:this._pictureDictionaryLanguageError,pictureDictionaryNetworkError:this._pictureDictionaryNetworkError}}}},5546:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingPreferencesEventHandlers=void 0,t.ReadingPreferencesEventHandlers=class{constructor(e,t){this._releasables=[],this._hostProxy=e,this._mainViewModel=t,this._readingPreferencesViewModel=null,this.registerHostEventHandlers(),this._isInitialized=!1}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._readingPreferencesViewModel=null}ensureInitialize(){if(!this._isInitialized&&(this._mainViewModel.initializeLearningTools(),this._readingPreferencesViewModel=this._mainViewModel.getReadingPreferencesViewModel(),this._readingPreferencesViewModel)){let e=()=>{this._hostProxy.sendReadingPreferencesPaneStatus(this._readingPreferencesViewModel.readingPreferencesPaneStatus())};this._releasables.push(this._readingPreferencesViewModel.onReadingPreferencesStatusChanged().subscribe((()=>{e()}))),this._releasables.push(this._readingPreferencesViewModel.onLineFocusExit().subscribe((e=>{this._hostProxy.onLineFocusExit(e)}))),e()}}registerHostEventHandlers(){this._hostProxy.readingPreferencesInitialPaneStatusRequested().subscribe((()=>{this.ensureInitialize(),this._hostProxy.sendReadingPreferencesPaneStatus(this._readingPreferencesViewModel.readingPreferencesPaneStatus())})),this._hostProxy.enableLineFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.enableLineFocus(e)})),this._hostProxy.disableLineFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.disableLineFocus(e)})),this._hostProxy.onContentShifted().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onContentShifted()})),this._hostProxy.setNumberOfLinesInFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.setNumberOfLinesInFocus(e)})),this._hostProxy.upButtonClicked().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.moveToPreviousInLineFocus()})),this._hostProxy.downButtonClicked().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.moveToNextInLineFocus()})),this._hostProxy.enablePictureDictionaryRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.enablePictureDictionary()})),this._hostProxy.disablePictureDictionaryRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.disablePictureDictionary()})),this._hostProxy.languageChangeRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onLanguageChangeRequested()})),this._hostProxy.pictureDictionaryPopupHidden().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.handlePictureDictionaryPopupClose()})),this._hostProxy.hidePictureDictionaryPopupRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.hidePictureDictionaryPopupRequested()})),this._hostProxy.languageChangeRequestCompleted().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onLanguageChangeRequestCompleted()}))}}},3121:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewReadingHighlighter=void 0;const n=i(1468),o=i(1816),r=i(4830),s=i(1121),a=i(8945),l=i(2221);class u{constructor(e,t){this._currentReadingUnit=null,this._currentUtteranceText="",this._isReadingUnitDirty=!1,this._wordDecorationReleasableResource=null,this._lineDecorationReleasable=null,this._readingViewContentProvider=e,this._viewer=t}setWordDecorationPosition(e,t,i){if(!(e instanceof n.HTMLReadingUnit))return;let o=e;this._currentReadingUnit!==o&&(this._currentReadingUnit=o,this._isReadingUnitDirty=!1),this._currentTextOffset=t+i.charIndex,this._currentTextLength=i.charLength,this._currentUtteranceText=i.utterance.text.substr(i.charIndex,this._currentTextLength)}activateDecoration(e){this._isReadingUnitDirty||(e&o.DecorationType.Line&&this.updateLineDecoration(),e&o.DecorationType.Word&&this.updateWordDecoration(),e&o.DecorationType.Background&&this.addBackgroundDecoration())}deactivateDecoration(e){e&o.DecorationType.Word&&(this.removeWordDecoration(),this._wordRect=null),e&o.DecorationType.Line&&this.removeLineDecoration(),e&o.DecorationType.Background&&this.removeBackgroundDecoration()}isWordDecorationValid(){let e=this._wordDecorationReleasableResource?this._wordDecorationReleasableResource.value().spans[0]:null;return!!e&&this._viewer.isElementVisible(e,e.getBoundingClientRect())}getWordRect(){return this._wordRect}addBackgroundDecoration(){this._viewer.addBackgroundDecoration(u.ReadoutActiveBackgroundClass);let e=this._readingViewContentProvider.getCurrentDocument();e.body.classList.remove(u.ReadoutEndTransitionIframeClass),e.body.classList.add(u.ReadoutActiveIFrameClass),a.DomUtilties.redrawDom(e),e.body.classList.add(u.ReadoutStartTransitionIframeClass),e.getSelection().removeAllRanges()}updateWordDecoration(){if(this.removeWordDecoration(),!this._isReadingUnitDirty){let e=r.ReadingRangeManipulations.createRange(this._currentReadingUnit,this._currentTextOffset,this._currentTextLength);if(this._wordDecorationReleasableResource=e?s.ReadOutLoudHighlighter.surroundTextBySpans(this._currentReadingUnit,e,[u.ReadoutActiveWordClass]):null,this._wordDecorationReleasableResource){let e=this._wordDecorationReleasableResource.value().spans[0];this._viewer.isElementVisible(e,this._wordRect)||this._viewer.scrollElementIntoView(e,this._wordRect,null,l.ScrollSource.ReadAloud)}}}updateLineDecoration(){let e=r.ReadingRangeManipulations.createRange(this._currentReadingUnit,this._currentTextOffset,this._currentTextLength);if(this._isReadingUnitDirty=!e||e.toString()!==this._currentUtteranceText,this._isReadingUnitDirty&&e&&(this._isReadingUnitDirty=e.toString().replace(/\s/g,"")!==this._currentUtteranceText.replace(/\s/g,"")),this._isReadingUnitDirty)this.removeLineDecoration();else if(!this.isWordInCurrentLineRange(e)){this.removeLineDecoration(),e=r.ReadingRangeManipulations.createRange(this._currentReadingUnit,this._currentTextOffset,this._currentTextLength);let t=this.getLineRange(e);this._lineDecorationReleasable=s.ReadOutLoudHighlighter.surroundTextBySpans(this._currentReadingUnit,t,[u.ReadoutActiveLineClass])}}getLineRange(e){let t=r.ReadingRangeManipulations.expandToLineRange(e,this._readingViewContentProvider.isRTL(),(e=>e.getClientRects())),i=t.getClientRects();return this._lineTop=i.item(0).top,this._lineBottom=i.item(0).bottom,this._lineLeft=i.item(0).left,this._lineRight=i.item(i.length-1).right,t}isWordInCurrentLineRange(e){return this._wordRect=e.getClientRects().item(0),this._lineTop===this._wordRect.top&&this._lineBottom===this._wordRect.bottom&&!(this._lineRightthis._wordRect.right)}removeBackgroundDecoration(){this._viewer.removeBackgroundDecoration(u.ReadoutActiveBackgroundClass);let e=this._readingViewContentProvider.getCurrentDocument();e.body.classList.contains(u.ReadoutActiveIFrameClass)&&(e.body.classList.remove(u.ReadoutActiveIFrameClass),e.body.classList.add(u.ReadoutEndTransitionIframeClass),e.body.classList.remove(u.ReadoutStartTransitionIframeClass),window.setTimeout((()=>{e.body.classList.remove(u.ReadoutEndTransitionIframeClass)}),800))}removeWordDecoration(){this._wordDecorationReleasableResource&&(this._wordDecorationReleasableResource.release(),this._wordDecorationReleasableResource=null)}removeLineDecoration(){this._lineDecorationReleasable&&(this._lineDecorationReleasable.release(),this._lineDecorationReleasable=null,this._lineTop=null,this._lineRight=null,this._lineLeft=null,this._lineBottom=null)}}u.ReadoutActiveWordClass="msreadout-word-highlight",u.ReadoutActiveLineClass="msreadout-line-highlight",u.ReadoutActiveBackgroundClass="msreadout-active-background",u.ReadoutActiveIFrameClass="msreadout-active",u.ReadoutStartTransitionIframeClass="msreadout-start-transition",u.ReadoutEndTransitionIframeClass="msreadout-end-transition",t.ReadingViewReadingHighlighter=u},7483:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewReadingNavigator=void 0;const n=i(1876),o=i(625);class r extends o.HTMLReadingNavigator{constructor(e){super(e,null),this._readingViewContentProvider=e}deepCopy(){let e=new r(this._readingViewContentProvider);return e._readingUnitNavigator=new n.ReadingUnitNavigator,Object.assign(e._readingUnitNavigator,this._readingUnitNavigator),e._readingUnit=e._readingUnitNavigator.getCurrentUnit(),e}resetSelection(e){this._readingViewContentProvider.resetSelection()}collapseSelectionToNode(e,t){this._readingViewContentProvider.collapseSelectionToNode(e,t)}isCuratedContentBasedNavigationSupported(e){return!1}}t.ReadingViewReadingNavigator=r},9501:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewReadOutLoudViewModel=void 0;const n=i(9636),o=i(1816),r=i(2219),s=i(2219),a=i(9483),l=i(2221);class u extends s.ReadOutLoudViewModel{constructor(e,t,i,o,s,a){super(e,t,i,a,o),this._readingStateChanged=new n.EventSource,this._readingState=r.ReadingState.Uninitialized,this._readOutLoudViewer=s,this._readingHighlighter=t}getReadingState(){return this._readingState}readingStateChanged(){return this._readingStateChanged}getWordRect(){return this._readingHighlighter.getWordRect()}setReadingState(e){this._readingState!==e&&(this._readingState=e,this._readingStateChanged.trigger(void 0))}onUserActionStarted(e){this._ignoreUserActionEvents||this.getReadingState()!==r.ReadingState.Playing||(this._continueReadingOnUserActionComplete=!0,this.cancelReading(!1),this._readingHighlighter.deactivateDecoration(this._readOutLoudViewer.isLineFocusActive()?o.DecorationType.WordAndLine:o.DecorationType.Line))}onUserActionCompleted(e){if(!this._ignoreUserActionEvents&&this._continueReadingOnUserActionComplete){this.resetReadSelection();let e=this.isReadingPositionValid()?a.UnitDirection.Current:a.UnitDirection.Next;this.continueReading(e,{startType:this.getStartTypeOnUserActionCompleted(),startRequestTime:0,startPosition:{x:0,y:this._readOutLoudViewer.getLineFocusViewRect().top},needsTransformOfStartPosition:!0},!0)}}addUserActionStartedListener(){return this._readOutLoudViewer.onScrollStart().subscribe((e=>{e!==l.ScrollSource.ReadAloud&&this.onUserActionStarted()}))}addUserActionCompletedListener(){return this._readOutLoudViewer.onScrollEnd().subscribe((e=>{e!==l.ScrollSource.ReadAloud&&this.onUserActionCompleted()}))}isReadingPositionValid(){return this._readingHighlighter.isWordDecorationValid()&&!this._readOutLoudViewer.getSelectionStartRangeInVisibleRegion()}getStartTypeOnUserActionCompleted(){return this._readOutLoudViewer.isLineFocusActive()?r.StartType.ReadFromPoint:this.isReadingPositionValid()?r.StartType.Default:r.StartType.ReadFromFirstVisibleElement}}t.ReadingViewReadOutLoudViewModel=u},6493:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewContentProvider=void 0;const n=i(4680);t.ReadingViewContentProvider=class{constructor(e,t,i){this._embedder=i,this._hostProxy=e,this._currentFrame=t,this._isRTL=this.isContentDirectionRTL(this.getCurrentDocument())}getCurrentDocument(){return this._embedder.getContentDocument()}getPrimaryContent(){throw new Error("Method not implemented")}getContentType(){return n.ContentType.ReadingView}isRTL(){return this._isRTL}getLocalizedLearningToolsLabels(){return this._embedder.getLocalizedStringResources()}getDocumentStartRange(){return this._embedder.getDocumentStartRange()}getSelectionStartRangeInVisibleRegion(){return this._embedder.getSelectionStartRangeInVisibleRegion()}resetSelection(){this.getCurrentDocument().body&&this.collapseSelectionToNode(this.getCurrentDocument().body,0)}collapseSelectionToNode(e,t){this.getCurrentDocument().getSelection().collapse(e,t)}getLanguageAsync(e){return new Promise((t=>{let i="und";return this.getCurrentDocument().body&&(i=this._hostProxy.detectTextLanguage(this.getCurrentDocument().body.innerText.substring(0,65535))),t("und"!=i?i:e)}))}isContentDirectionRTL(e){return!!e.head&&"rtl"===e.head.dir}}},7626:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.collapsibleTableContainerClass=t.collapsibleInfoboxContainerClass=t.wikiImageAndCaptionContainer=void 0,t.wikiImageAndCaptionContainer="__reading_mode_image_and_caption_container",t.collapsibleInfoboxContainerClass="__reading_mode_infobox_and_collapse_button_container",t.collapsibleTableContainerClass="__reading_mode_table_and_collapse_button_container"},2659:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewLearningToolsRuntime=void 0;const n=i(9636),o=i(5114),r=i(2139),s=i(2681),a=i(1342),l=i(3945),u=i(3748);class d extends r.LearningToolsRuntime{constructor(e){super(),this._embedder=e,this._messageFromLearningToolsModule=new n.EventSource,this._embedder.messageReceivedFromReadingView.subscribe((e=>{if(e&&e.length>0){let t=e.shift();e&&e.length>0?this.handleCommand(t,e):this.handleCommand(t,[""])}}))}postMessageToHost(e,t){switch(e){case o.LearningToolsHostProxy.ReadOutLoudStatusHostMessage:case o.LearningToolsHostProxy.ProcessNLXRequest:case o.LearningToolsHostProxy.ReadOutLoudSpeechPreferencesHostMessage:case o.LearningToolsHostProxy.ComprehensionToolsPreferencesHostMessage:case o.LearningToolsHostProxy.LineFocusPreferencesHostMessage:case o.LearningToolsHostProxy.PictureDictionaryPreferencesHostMessage:case o.LearningToolsHostProxy.DetectLanguageHostMessage:super.postMessageToHost(e,t);break;case o.LearningToolsHostProxy.TelemetryMessage:return void super.postMessageToHost(e,t)}this.sendMessageToReadingView(e,t)}handleCommand(e,t){switch(e){case o.LearningToolsHostProxy.ReadOutLoudStartCommand:case o.LearningToolsHostProxy.ReadOutLoudPauseCommand:case o.LearningToolsHostProxy.ReadOutLoudStopCommand:case o.LearningToolsHostProxy.ReadOutLoudNextCommand:case o.LearningToolsHostProxy.ReadOutLoudPreviousCommand:case o.LearningToolsHostProxy.ReadOutLoudFirstContentfulPaintLoadedCommand:case o.LearningToolsHostProxy.VoiceOptionsPaneOpened:case o.LearningToolsHostProxy.VoiceOptionsPaneClosed:super.postMessageToHost(e,t);break;default:t&&t.length>0?(t.unshift(e),this.raiseMessageFromHost(t)):this.raiseMessageFromHost([e])}}sendMessageToReadingView(e,t){this._embedder.messageFromLearningToolsRuntime(e,t)}initialize(e){super.initialize(e);let t={frameTreeNodeId:Number(e[0]),processId:Number(e[1])},i=new o.LearningToolsHostProxy(this),n=new s.ReadingViewLearningToolsViewer(this._embedder),r=new u.LearningToolsCore(n),c=new l.ReadingViewMainViewModel(i,n,this._embedder,r.getComprehensionToolsSettingsStore(),t);r.initializeReadOutLoud(i,c,!1),r.initializeLearningTools(i,c);let h=[a.HostProxy.ReadOutLoudInitializeSettingsCommand,e[0],e[1],e[3],e[4]];this.raiseMessageFromHost(h);let g=[o.LearningToolsHostProxy.ComprehensionToolsInitializeSettingsCommand,e[0],e[1],e[5]];this.raiseMessageFromHost(g);let p=[o.LearningToolsHostProxy.LineFocusInitializeSettingsCommand,e[0],e[1],e[6]];this.raiseMessageFromHost(p);let m=[o.LearningToolsHostProxy.PictureDictionaryInitializeSettingsCommand,e[0],e[1],e[7]];this.raiseMessageFromHost(m),r.initializeLearningToolsModels(),this._embedder.messageFromLearningToolsRuntime(d.ScriptInjectionSuccessful,[])}raiseMessageFromHost(e){if(!e||0==e.length)return;let t=e.shift();switch(t){case o.LearningToolsHostProxy.OpenVoiceOptionsPane:case o.LearningToolsHostProxy.CloseVoiceOptionsPane:this.sendMessageToReadingView(t,e);break;default:e.unshift(t),super.raiseMessageFromHost(e)}}}d.ScriptInjectionSuccessful="LearningTools_ScriptInjectionSuccessful",t.ReadingViewLearningToolsRuntime=d},2681:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewLearningToolsViewer=void 0;const n=i(8945),o=i(9636),r=i(2221),s=i(7586),a=i(7856),l=i(322);t.ReadingViewLearningToolsViewer=class{constructor(e){this.onScroll=()=>{this._scrollTimeoutReleasable?(this._scrollTimeoutReleasable.release(),this._scrollTimeoutReleasable=null):0===this._scrollSourceList.length&&(this._scrollSourceList.push(r.ScrollSource.Unknown),this._scrollStart.trigger(r.ScrollSource.Unknown));let e=window.setTimeout((()=>{this._scrollSourceList.forEach((e=>this._scrollEnd.trigger(e))),this._scrollSourceList=[],this._scrollTimeoutReleasable=null}),500);this._scrollTimeoutReleasable={release:()=>clearTimeout(e)}},this.resizeLineFocusContainer=()=>{const e=document.getElementById("__rv_dataSource").getBoundingClientRect(),t=document.getElementById("lineFocusContainer");t.style.width=e.width.toString()+"px",t.style.marginLeft=e.left.toString()+"px"},this.hidePictureDictionaryPopup=()=>{this._embedder.hidePictureDictionaryPopup()},this._embedder=e,this._scrollTimeoutReleasable=null,this._scrollEnd=new o.EventSource,this._scrollStart=new o.EventSource,this._scrollSourceList=[],this._isLineFocusActive=!1,this._isLineMarkersActive=!1,this._lineFocusEventReleasables=[],this._onWheel=new o.EventSource,this._onKeyDown=new o.EventSource,this._contentDocument=this._embedder.getContentDocument(),this._embedder.addScrollEventListener(this.onScroll)}isLineFocusActive(){return this._isLineFocusActive}addBackgroundDecoration(e){document.body.classList.add(e)}removeBackgroundDecoration(e){document.body.classList.contains(e)&&document.body.classList.remove(e)}applyLearningToolsStyles(){let e=!1;"function"==typeof this._embedder.isMobileReadingViewReadAloudNewUXEnabled&&(e=this._embedder.isMobileReadingViewReadAloudNewUXEnabled());let t=(0,s.getThemeDataFromReadingViewStyleSheet)(this._embedder.getContentDocumentThemes(),e);this.applyStylesOnContentDocument(t,e),this.applyStylesOnMainDocument(t)}applyStylesOnContentDocument(e,t){let i=this._contentDocument.getElementById("learning_tools_stylesheet");null===i&&(i=document.createElement("style"),i.nonce=this.getNonce(),i.setAttribute("id","learning_tools_stylesheet"),this._contentDocument.head.appendChild(i)),i.textContent=(0,a.createStylesForContentDocument)(e,t)}applyStylesOnMainDocument(e){let t=document.getElementById("learning_tools_stylesheet");null===t&&(t=document.createElement("style"),t.nonce=this.getNonce(),t.setAttribute("id","learning_tools_stylesheet"),document.head.appendChild(t)),t.textContent=(0,l.createStylesForMainDocument)(e)}getNonce(){const e=document.querySelector("meta[property='csp-nonce'][content]");return e?e.content:""}onScrollStart(){return this._scrollStart}onScrollEnd(){return this._scrollEnd}getSelectionStartRangeInVisibleRegion(){return this._embedder.getSelectionStartRangeInVisibleRegion()}getStartingPosition(e){let t=e?this.getSelectionStartRangeInVisibleRegion():null;return t||(t=this.getPageStartRange()),t||(t=this._contentDocument.createRange(),t.selectNode(this._contentDocument.body),t.collapse(!0)),t}isElementVisible(e,t){return this._embedder.isElementVisible(e,t,this._isLineFocusActive?this.getLineFocusViewRect():null)}scrollElementIntoView(e,t,i,n,o=!0,r,s){return this._embedder.scrollClientRectIntoView(e,t,(()=>{void 0!==n&&(this._scrollSourceList.push(n),this._scrollStart.trigger(n))}),o,r,this._isLineFocusActive?this.getLineFocusViewRect():null,s)}setLineMarkersActive(e){this._isLineMarkersActive=e}executeActionAndMaintainPosition(e){this._embedder.executeActionAndMaintainPosition(e)}getPageStartRange(){let e=0;this._isLineFocusActive&&(e=this.getLineFocusViewRect().top+1);let t=this.getBrowserWidth()/2,i=e=>e.getBoundingClientRect(),o=n.DomUtilties.getTextNodeFromPoint(this._contentDocument,t,e,i);if(o){let t=n.DomUtilties.getOffsetInTextNodeForLineAtYPosition(this._contentDocument,o,e,i),r=document.createRange();return r.setStart(o,t),r.collapse(!0),r}return null}enterLineFocusMode(){this._isLineFocusActive||(this._isLineFocusActive=!0,document.body.classList.add("ms-linefocus-active"),this._contentDocument.getElementById("contentContainer").classList.add("ms-linefocus-active"),this._contentDocument.body.classList.add("ms-linefocus-active"),this.resizeLineFocusContainer(),this.addLineFocusDOMEventHandlers())}exitLineFocusMode(){this._isLineFocusActive&&(document.getElementById("lineFocusView").style.height="100%",document.getElementById("lineFocusViewAnimationOverlay").style.height="100%",this._isLineFocusActive=!1,document.body.classList.remove("ms-linefocus-active"),this._contentDocument.getElementById("contentContainer").classList.remove("ms-linefocus-active"),this._contentDocument.body.classList.remove("ms-linefocus-active"),this._contentDocument.body.focus(),this._contentDocument.getElementById("source").focus(),this.removeLineFocusDOMEventHandlers())}bringRectIntoLineFocusView(e,t){return this.scrollElementIntoView(null,e,null,r.ScrollSource.LineFocus,t,!1,!0)}setLineFocusViewHeight(e){let t=this.getLineFocusViewRect();if(Math.abs(e-t.height)>2){let t=this.getMaxLineFocusViewHeight(),i=this.getLineFocusViewMargins(),n=Math.min(e,t)+i;document.getElementById("lineFocusView").style.height=n.toString()+"px",document.getElementById("lineFocusViewAnimationOverlay").style.height=n.toString()+"px"}}getLineFocusViewRect(){if(!this._isLineFocusActive)return{top:0,left:0,bottom:0,right:0,height:0,width:0,x:0,y:0,toJSON:function(){}};let e=document.getElementById("lineFocusViewAnimationOverlay").getBoundingClientRect(),t=Math.floor(this.getLineFocusViewMarginTop()),i=Math.floor(this.getLineFocusViewMarginBottom()),n=document.getElementById("__rv_dataSource").getBoundingClientRect().top;return{top:e.top+t-n,left:e.left,bottom:e.bottom-i-n,right:e.right,height:e.height-(t+i),width:e.width,x:0,y:0,toJSON:function(){}}}getMaxLineFocusViewHeight(){return.7*this._contentDocument.documentElement.clientHeight-this.getLineFocusViewMargins()}getLineFocusViewMargins(){return this.getLineFocusViewMarginTop()+this.getLineFocusViewMarginBottom()}getLineFocusViewMarginTop(){let e=(this.getBaseLineHeight()-this.getFontSize())/2;return this._isLineMarkersActive?this.getFontSize():e}getLineFocusViewMarginBottom(){return this.getBaseLineHeight(),this.getFontSize(),this._isLineMarkersActive?(this.getBaseLineHeight()/2-this.getFontSize())/2:(this.getBaseLineHeight()-this.getFontSize())/2}getBaseLineHeight(){return parseFloat(window.getComputedStyle(this._contentDocument.body).lineHeight)}getFontSize(){return parseFloat(window.getComputedStyle(this._contentDocument.body).fontSize)}onLayoutChanged(){return new o.EventSource}onWheel(){return this._onWheel}onKeyDown(){return this._onKeyDown}getBrowserWidth(){return document.documentElement.clientWidth}addLineFocusDOMEventHandlers(){let e=e=>{this._onWheel.trigger(e)};this._lineFocusEventReleasables.push(n.DomUtilties.addReleasableDomEventListener(document,"wheel",e,!1)),this._lineFocusEventReleasables.push(n.DomUtilties.addReleasableDomEventListener(this._contentDocument,"wheel",e,!1));let t=e=>{this._onKeyDown.trigger(e)};this._lineFocusEventReleasables.push(n.DomUtilties.addReleasableDomEventListener(document,"keydown",t)),this._lineFocusEventReleasables.push(n.DomUtilties.addReleasableDomEventListener(this._contentDocument,"keydown",t));const i=document.getElementById("__rv_dataSource");this._lineFocusEventReleasables.push(n.DomUtilties.addReleasableDomEventListener(i.contentWindow,"resize",this.resizeLineFocusContainer))}removeLineFocusDOMEventHandlers(){this._lineFocusEventReleasables.forEach((e=>e.release()))}createPictureDictionaryPopup(e,t){(t||e&&e.pictures&&0!==e.pictures.length)&&this._embedder.createPictureDictionaryPopup(e,t)}}},3945:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewMainViewModel=void 0;const n=i(2857),o=i(6493),r=i(4715),s=i(3762),a=i(9609),l=i(5249),u=i(5610),d=i(8882),c=i(3121),h=i(7483),g=i(9501),p=i(1701),m=i(2277),_=i(5701);t.ReadingViewMainViewModel=class{constructor(e,t,i,n,o){this._viewer=t,this._hostProxy=e,this._embedder=i,this._readAloudViewModel=null,this._comprehensionToolsViewModel=null,this._readingPreferencesViewModel=null,this._learningToolSettingsStore=n,this._telemetryClient=null,this._currentFrame=o,this._pictureDictionary=null,this._learningToolsInitialized=!1}initializeReadOutLoud(e,t){this.ensureContentProvider(),this.ensureTelemetryClient();var i=new h.ReadingViewReadingNavigator(this._contentProvider),n=new c.ReadingViewReadingHighlighter(this._contentProvider,this._viewer);this._readOutLoudSettingsViewModel=new a.ReadOutLoudSettingsViewModel(e,t,this._telemetryClient),this._readAloudViewModel=new g.ReadingViewReadOutLoudViewModel(i,n,this._readOutLoudSettingsViewModel,this._contentProvider,this._viewer,this._telemetryClient)}initializeLearningTools(){if(!this._learningToolsInitialized){this._learningToolsInitialized=!0,this.ensureContentProvider(),this.ensureTelemetryClient();let e=this._contentProvider.getCurrentDocument(),t=this._hostProxy,i=new m.NLXAppProxy(t.sendNLXRequest.bind(t),t.onNLXResponseReceived()),o=new p.NLXProcessor(e,e.location.href,this._contentProvider,i,this._telemetryClient),a=new n.HTMLDocumentComprehensionTools(o,this._contentProvider,this._telemetryClient,this._learningToolSettingsStore,this._viewer);this._comprehensionToolsViewModel=new u.ComprehensionToolsViewModel(a);let l=new s.LineFocusUnitProvider;this._lineFocus=new r.LineFocus(this._viewer,this._contentProvider,l,this._learningToolSettingsStore,this._telemetryClient),this._pictureDictionary=new _.PictureDictionary(this._viewer,o,this._telemetryClient,this._learningToolSettingsStore,e),this._readingPreferencesViewModel=new d.ReadingPreferencesViewModel(this._lineFocus,this._pictureDictionary)}}getReadOutLoudViewModel(){return this._readAloudViewModel}getReadOutLoudSettingsViewModel(){return this._readOutLoudSettingsViewModel}getComprehensionToolsViewModel(){return this._comprehensionToolsViewModel}getReadingPreferencesViewModel(){return this._readingPreferencesViewModel}ensureContentProvider(){this._contentProvider||(this._contentProvider=new o.ReadingViewContentProvider(this._hostProxy,this._currentFrame,this._embedder))}ensureTelemetryClient(){this._telemetryClient||(this._telemetryClient=new l.TelemetryClient(this._hostProxy))}}},7856:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStylesForContentDocument=void 0;const n=i(4569),o=i(4027),r=i(7586),s=i(3875),a=i(5701),l=i(7626);n.default.setup((0,o.default)());let u={};function d(e="hcblack",t="nouns"){let i={},n=[];"hcblack"===e?(n[0]="#4da4fc !important",n[1]="#6ec136 !important",n[2]="#e4c400 !important",n[3]="#f58f00 !important",n[4]="#ff5e5e !important",n[5]="#c577e4 !important"):(n[0]="#0c4d8a !important",n[1]="#005719 !important",n[2]="#61460f !important",n[3]="#7a3b00 !important",n[4]="#9e0005 !important",n[5]="#731881 !important"),n[6]="#0063c3 !important",n[7]="#008923 !important",n[8]="#c49800 !important",n[9]="#e06a00 !important",n[10]="#d82904 !important",n[11]="#b639d8 !important";let o=".ms-"+t+"-active &";i[o]={msHighContrastAdjust:"none"};for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.createStylesForMainDocument=void 0;const n=i(4569),o=i(4027),r=i(7586),s=i(5701);n.default.setup((0,o.default)());let a={};t.createStylesForMainDocument=function(e){return a={"@global":{".msreadout-active-background:before, .msreadout-active:before":{pointerEvents:"none",position:"fixed",display:"block",height:"100%",width:"100%",top:"0",left:"0"},".msreadout-active-background:before":{zIndex:"-2 !important"},".ms-linefocus-active":{"& #lineFocusContainer":{display:"flex",flexDirection:"column",alignItems:"stretch"}},"#lineFocusContainer":{display:"none",position:"absolute",top:"0",left:"0",height:"100%",width:"100%",pointerEvents:"none",zIndex:"0"},"#lineFocusTopOverlayContainer, #lineFocusBottomOverlayContainer":{alignSelf:"stretch",height:"100%",position:"relative"},"#lineFocusView":{pointerEvents:"auto",flexShrink:"0",transition:"height 0.2s",height:"100%","@media screen and (forced-colors:active)":{borderStyle:"solid",borderWidth:"1px 0px 1px 0px"}},[`.${s.pictureDictionaryToggleOn}`]:{"& #lineFocusView":{pointerEvents:"inherit"}},"#lineFocusViewAnimationOverlay":{position:"absolute",margin:"auto",top:"0px",bottom:"0px",left:"0px",right:"0px",width:"100%",visibility:"hidden"},"#lineFocusArrowButtonsContainer":{pointerEvents:"auto"}}},function(e){if(null==e)return;let t,i,n;for(t in e)if(i=e[t][r.classSelector],n=e[t][r.rolResultant],"Black"===t||"DarkGrey"===t){const o=e[t][r.lineFocusHighlight];a["@global"][i]={"& .msreadout-active-background:before, .msreadout-active:before":{background:n+" !important"},"& #lineFocusView":{boxShadow:"inset 0px 0px 11px 0px "+o},"& #lineFocusTopOverlayContainer,#lineFocusBottomOverlayContainer":{background:"rgba(97,97,97,0.8)"}}}else a["@global"][i]={"& .msreadout-active-background:before, .msreadout-active:before":{background:n+" !important"},"& #lineFocusView":{boxShadow:"inset 0px 0px 11px 0px rgba(0, 0, 0, 0.80)"},"& #lineFocusTopOverlayContainer,#lineFocusBottomOverlayContainer":{background:"rgba(0,0,0,0.8)"}}}(e),n.default.createStyleSheet(a).toString()}},7586:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getThemeDataFromReadingViewStyleSheet=t.pdWordOutline=t.lineFocusHighlight=t.rolWordHighlight=t.rolLineHighlight=t.pdWordBg=t.rolResultant=t.rolOverlay=t.classSelector=t.colorProp=void 0,t.colorProp="bgColor",t.classSelector="selectorName",t.rolOverlay="readOutOverlayColor",t.rolResultant="readOutLoudResultantColor",t.pdWordBg="pictureDictionaryWordBackground",t.rolLineHighlight="readOutLineHighlight",t.rolWordHighlight="readOutWordHighlight",t.lineFocusHighlight="lineFocusHighlight",t.pdWordOutline="pictureDictionaryWordOutline",t.getThemeDataFromReadingViewStyleSheet=function(e,i){if(e.length<23)return;let n;return n=i?{Light:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(222,205,167,0.5)",[t.rolWordHighlight]:"rgba(222,205,167,1)",[t.pdWordBg]:"#F6F6F6"},Sepia:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(222,205,167,0.5)",[t.rolWordHighlight]:"rgba(222,205,167,1)",[t.pdWordBg]:"#FFFBF5"},Lime:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#C8E892"},LightBlue:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#C7DAF6"},Grey:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#E5E5E5"},SkyBlue:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#B6DEF1"},Lavender:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#DED0F3"},LightGreen:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#AFEB97"},Rose:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#FFCACA"},Apricot:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#FBD2C0"},LightOrange:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#FFE5A3"},Yellow:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(203,204,96,0.5)",[t.rolWordHighlight]:"rgba(203,204,96,1)",[t.pdWordBg]:"#FDFDC4"},Black:{[t.rolResultant]:"rgba(97,97,97,0.8)",[t.rolLineHighlight]:"rgba(69,105,142,0.5)",[t.rolWordHighlight]:"rgba(69,105,142,1)",[t.lineFocusHighlight]:"rgba(97,97,97,0.8)",[t.pdWordBg]:"#333333",[t.pdWordOutline]:"white"},DarkGrey:{[t.rolResultant]:"rgba(97,97,97,0.8)",[t.rolLineHighlight]:"rgba(69,105,142,0.5)",[t.rolWordHighlight]:"rgba(69,105,142,1)",[t.lineFocusHighlight]:"rgb(36,36,36,0.8)",[t.pdWordBg]:"#3B3B3B",[t.pdWordOutline]:"#EDEDED"},Green:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#CEF5C7"},Blue:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#C5FCEE"},LightYellow:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#FAF9A8"},LightTeal:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#ACEECF"},Turquoise:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#9BEFEB"},Teal:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#9CE2EB"},Orchid:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#FACCFF"},Pink:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#F9C6E2"},Carnation:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#FFBDD0"}}:{Sepia:{[t.rolOverlay]:"rgba(179,176,167,0.82)",[t.rolResultant]:"#BFBDB2",[t.pdWordBg]:"#FFFBF5"},Light:{[t.rolOverlay]:"rgba(184,184,184,0.82)",[t.rolResultant]:"#C5C5C5",[t.pdWordBg]:"#F6F6F6"},Grey:{[t.rolOverlay]:"rgba(165,165,165,0.82)",[t.rolResultant]:"#B1B1B1",[t.pdWordBg]:"#E5E5E5"},Black:{[t.rolResultant]:"rgba(97,97,97,0.8)",[t.rolLineHighlight]:"rgb(78, 78, 78)",[t.rolWordHighlight]:"rgb(102,102,102)",[t.lineFocusHighlight]:"rgba(97,97,97,0.8)",[t.pdWordBg]:"#333333",[t.pdWordOutline]:"white"},Green:{[t.rolOverlay]:"rgba(104,184,119,0.82)",[t.rolResultant]:"#70C57F",[t.pdWordBg]:"#CEF5C7"},Blue:{[t.rolOverlay]:"rgba(96,179,183,0.82)",[t.rolResultant]:"#68C1C5",[t.pdWordBg]:"#C5FCEE"},Yellow:{[t.rolOverlay]:"rgba(182,183,66,0.82)",[t.rolResultant]:"#C3C547",[t.pdWordBg]:"#FDFDC4"},Rose:{[t.rolOverlay]:"rgba(183,134,134,0.82)",[t.rolResultant]:"#C38F8F",[t.pdWordBg]:"#FFCACA"},Apricot:{[t.rolOverlay]:"rgba(173,137,121,0.82)",[t.rolResultant]:"#B99382",[t.pdWordBg]:"#FBD2C0"},LightOrange:{[t.rolOverlay]:"rgba(173,153,105,0.82)",[t.rolResultant]:"#B9A471",[t.pdWordBg]:"#FFE5A3"},LightYellow:{[t.rolOverlay]:"rgba(170,169,100,0.82)",[t.rolResultant]:"#B6B56B",[t.pdWordBg]:"#FAF9A8"},Lime:{[t.rolOverlay]:"rgba(132,154,96,0.82)",[t.rolResultant]:"#8EA567",[t.pdWordBg]:"#C8E892"},LightGreen:{[t.rolOverlay]:"rgba(119,157,103,0.82)",[t.rolResultant]:"#7FA86E",[t.pdWordBg]:"#AFEB97"},LightTeal:{[t.rolOverlay]:"rgba(106,163,137,0.82)",[t.rolResultant]:"#71AE93",[t.pdWordBg]:"#ACEECF"},Turquoise:{[t.rolOverlay]:"rgba(98,162,159,0.82)",[t.rolResultant]:"#69ADAA",[t.pdWordBg]:"#9BEFEB"},Teal:{[t.rolOverlay]:"rgba(102,153,160,0.82)",[t.rolResultant]:"#6DA4AC",[t.pdWordBg]:"#9CE2EB"},SkyBlue:{[t.rolOverlay]:"rgba(117,149,164,0.82)",[t.rolResultant]:"#7DA0B0",[t.pdWordBg]:"#B6DEF1"},LightBlue:{[t.rolOverlay]:"rgba(129,145,170,0.82)",[t.rolResultant]:"#8A9BB6",[t.pdWordBg]:"#C7DAF6"},Lavender:{[t.rolOverlay]:"rgba(150,137,169,0.82)",[t.rolResultant]:"#A093B5",[t.pdWordBg]:"#DED0F3"},Orchid:{[t.rolOverlay]:"rgba(171,130,175,0.82)",[t.rolResultant]:"#B78BBB",[t.pdWordBg]:"#FACCFF"},Pink:{[t.rolOverlay]:"rgba(177,131,156,0.82)",[t.rolResultant]:"#BE8CA7",[t.pdWordBg]:"#F9C6E2"},Carnation:{[t.rolOverlay]:"rgba(182,124,140,0.82)",[t.rolResultant]:"#C38596",[t.pdWordBg]:"#FFBDD0"},DarkGrey:{[t.rolResultant]:"rgba(97,97,97,0.8)",[t.rolLineHighlight]:"rgb(85,85,85)",[t.rolWordHighlight]:"rgb(74,74,74)",[t.lineFocusHighlight]:"rgb(36,36,36,0.8)",[t.pdWordBg]:"#3B3B3B",[t.pdWordOutline]:"#EDEDED"}},e.forEach((function(e){let i=e.name;n[i][t.colorProp]=e.backgroundColor,n[i][t.classSelector]=e.classSelector})),n}},6593:(e,t)=>{var i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.NlxStatus=t.ThemeType=void 0,(n=t.ThemeType||(t.ThemeType={}))[n.Light=0]="Light",n[n.Dark=1]="Dark",(i=t.NlxStatus||(t.NlxStatus={}))[i.Success=0]="Success",i[i.NetworkErrorInternetDisconnected=1]="NetworkErrorInternetDisconnected",i[i.NetworkErrorRetryAfterSometime=2]="NetworkErrorRetryAfterSometime",i[i.NetworkErrorBrowserNeedsToBeUpdated=3]="NetworkErrorBrowserNeedsToBeUpdated",i[i.NetworkErrorUnexpected=4]="NetworkErrorUnexpected",i[i.NetworkErrorUnknown=5]="NetworkErrorUnknown",i[i.LanguageNotSupported=6]="LanguageNotSupported"}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e=i(2659);let t=window.readingViewController;t&&t.getLearningToolsEmbedder&&(window.learningToolsRuntime=new e.ReadingViewLearningToolsRuntime(t.getLearningToolsEmbedder()))})()})();(()=>{"use strict";var e={2192:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(6144),o=i.n(n),s=i(6688),r=i.n(s)()(o());r.push([e.id,"/* Copyright (C) Microsoft Corporation. All rights reserved. */\r\n\r\n.msreadout-word-highlight:not(.msreadout-inactive-highlight) {\r\n background: #ffff00 !important;\r\n color: black !important;\r\n}\r\n\r\n.msreadout-line-highlight:not(.msreadout-inactive-highlight) {\r\n background: #b2d6f3 !important;\r\n color: black !important;\r\n}\r\n\r\n@media screen and (forced-colors: active) {\r\n .msreadout-word-highlight:not(.msreadout-inactive-highlight) {\r\n forced-color-adjust: none;\r\n background-color: Highlight !important;\r\n color: HighlightText !important;\r\n }\r\n\r\n .msreadout-line-highlight:not(.msreadout-inactive-highlight) {\r\n forced-color-adjust: none;\r\n background: yellow !important;\r\n color: black !important;\r\n }\r\n}","",{version:3,sources:["webpack://./../../css/read_out_loud_web.css"],names:[],mappings:"AAAA,8DAA8D;;AAE9D;IACI,8BAA8B;IAC9B,uBAAuB;AAC3B;;AAEA;IACI,8BAA8B;IAC9B,uBAAuB;AAC3B;;AAEA;IACI;QACI,yBAAyB;QACzB,sCAAsC;QACtC,+BAA+B;IACnC;;IAEA;QACI,yBAAyB;QACzB,6BAA6B;QAC7B,uBAAuB;IAC3B;AACJ",sourcesContent:["/* Copyright (C) Microsoft Corporation. All rights reserved. */\r\n\r\n.msreadout-word-highlight:not(.msreadout-inactive-highlight) {\r\n background: #ffff00 !important;\r\n color: black !important;\r\n}\r\n\r\n.msreadout-line-highlight:not(.msreadout-inactive-highlight) {\r\n background: #b2d6f3 !important;\r\n color: black !important;\r\n}\r\n\r\n@media screen and (forced-colors: active) {\r\n .msreadout-word-highlight:not(.msreadout-inactive-highlight) {\r\n forced-color-adjust: none;\r\n background-color: Highlight !important;\r\n color: HighlightText !important;\r\n }\r\n\r\n .msreadout-line-highlight:not(.msreadout-inactive-highlight) {\r\n forced-color-adjust: none;\r\n background: yellow !important;\r\n color: black !important;\r\n }\r\n}"],sourceRoot:""}]);const a=r},6688:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,n,o,s){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(n)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),i&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=i):u[2]=i),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},6144:e=>{e.exports=function(e){var t=e[1],i=e[3];if(!i)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),s="/*# ".concat(o," */");return[t].concat([s]).join("\n")}return[t].join("\n")}},9046:(e,t,i)=>{var n,o=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),s=[];function r(e){for(var t=-1,i=0;i{i.r(t),i.d(t,{default:()=>r});var n=i(9046),o=i.n(n),s=i(2192);o()(s.A,{insert:"head",singleton:!1});const r=s.A.locals||{}},9919:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtilties=void 0;const n=i(8988);!function(e){const t=["button","input","select"];function i(e){return e&&e instanceof Element?e.shadowRoot:null}function o(e){return e&&e.parentNode instanceof ShadowRoot?e.parentNode.host:null}function s(e){var t;return e instanceof Element&&e.assignedSlot?e.assignedSlot:null!==(t=o(e))&&void 0!==t?t:null==e?void 0:e.parentNode}e.ReadAloudWebHighlighterStyle=".msreadout-word-highlight:not(.msreadout-inactive-highlight)\n {background: #ffff00 !important;color: black !important;} .msreadout-line-highlight:not(.msreadout-inactive-highlight)\n {background: #b2d6f3 !important;color: black !important;}\n @media screen and (forced-colors: active) {\n .msreadout-word-highlight:not(.msreadout-inactive-highlight) {\n forced-color-adjust: none;\n background-color: Highlight !important;\n color: HighlightText !important;\n }\n .msreadout-line-highlight:not(.msreadout-inactive-highlight) {\n forced-color-adjust: none;\n background: yellow !important;\n color: black !important;\n }\n }",e.getTextNodeFromPoint=function(e,t,i,n){var o=e.elementFromPoint(t,i);if(o){var s=e.createTreeWalker(e.body,NodeFilter.SHOW_TEXT);s.currentNode=o;for(var r=s.nextNode(),a=e.createRange();r;){if(a.selectNode(r),n(a).bottom>i)return r;r=s.nextNode()}}return null},e.getOffsetInTextNodeForLineAtYPosition=function(e,t,i,n){for(var o,s=e.createRange(),r=0,a=t.textContent.length;r!==a;)o=Math.floor(r+(a-r)/2),s.setStart(t,o),s.collapse(!0),n(s).bottom>i?a=o:r=o+1;return r},e.addReleasableDomEventListener=function(e,t,i,n=!0){return e.addEventListener(t,i,{passive:n}),{release:()=>{e.removeEventListener(t,i)}}},e.redrawDom=function(e){e.body.offsetHeight},e.isValidTextNode=function(e){return n.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)},e.isChildOfUserInterfaceNode=function(e){let i=e.parentElement,n=5;for(;i&&n;){let e;n--;const o=i.tagName.toLowerCase();for(e of t)if(o===e)return!1;i=i.parentElement}return!0},e.getFirstChild=function(e){var t,n;return e instanceof HTMLSlotElement?e.assignedNodes()[0]:null===(n=null!==(t=i(e))&&void 0!==t?t:e)||void 0===n?void 0:n.firstChild},e.getLastChild=function(e){var t,n;if(e instanceof HTMLSlotElement){let t=e.assignedNodes();return t[t.length-1]}return null===(n=null!==(t=i(e))&&void 0!==t?t:e)||void 0===n?void 0:n.lastChild},e.getChildNodes=function(e){var t,n,o;return e instanceof HTMLSlotElement?e.assignedNodes():Array.from(null!==(o=null===(n=null!==(t=i(e))&&void 0!==t?t:e)||void 0===n?void 0:n.childNodes)&&void 0!==o?o:[])},e.getParentElement=function(e){var t;return e instanceof Element&&e.assignedSlot?e.assignedSlot:null!==(t=o(e))&&void 0!==t?t:null==e?void 0:e.parentElement},e.getParentNode=s,e.isInDocument=function(e,t){for(var i=e;i;){if(i==t)return!0;i=s(i)}return!1},e.addRemoveStyleForElementInShadowRoot=function(t){if(t&&t.getRootNode()){const n=t.getRootNode();if(n instanceof ShadowRoot){var i=document.createElement("style");return i.textContent=e.ReadAloudWebHighlighterStyle,n.append(i),{value:()=>n,release:()=>{n.removeChild(i)}}}}return{value:()=>null,release:()=>{}}},e.getElementFromPoint=function(e,t,i){let n=e.elementFromPoint(t,i);return n.shadowRoot?n.shadowRoot.elementFromPoint(t,i):n},e.hasShadowDom=function e(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;if(i(t))return!0;const n=t;for(let t of n.children)if(e(t))return!0;return!1}}(t.DomUtilties||(t.DomUtilties={}))},4134:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventSource=void 0,t.EventSource=class{constructor(){this._subscribers=[]}subscribe(e){var t=!1,i=i=>{t||e(i)};return this._subscribers.push(i),{release:()=>{t=!0;var e=this._subscribers.indexOf(i);e>-1&&this._subscribers.splice(e,1)}}}trigger(e){for(var t=this._subscribers.slice(0),i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.JsonUtilities=void 0;const n=i(8988);(t.JsonUtilities||(t.JsonUtilities={})).parseJsonOrNull=function(e,t,i,o){if(!n.StringUtilities.isNullOrEmpty(e))try{return JSON.parse(e)}catch(e){o&&o.reportJsonParsingError(t,i)}return null}},9660:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenCoordinateUtilities=void 0,(t.ScreenCoordinateUtilities||(t.ScreenCoordinateUtilities={})).transformPointFromMainToCurrentFrame=function(e,t=self){let i={x:e.x,y:e.y};for(;t.frameElement&&t!==top;){i.x-=t.frameElement.getBoundingClientRect().left;let e=parseInt(t.parent.getComputedStyle(t.frameElement).getPropertyValue("border-left-width"));i.x-=e||0,i.y-=t.frameElement.getBoundingClientRect().top;let n=parseInt(t.parent.getComputedStyle(t.frameElement).getPropertyValue("border-top-width"));i.y-=n||0,t=t.parent}return i}},8988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0,function(e){e.NONEMPTY_STRING_REGEX=new RegExp("\\S");const t=/([.?*+^$[\]\\(){}|-])/g,i=/\s*/g;function n(e){return e&&e.length?e.replace(t,"").replace(i,""):""}e.adjustTextByLength=function(e,t,i){var n=[],o="";return e.forEach((e=>{if(o.length+e.length<=t)o+=e;else{for(var s=function(e,t,i){for(var n=[],o=e,s=i;o.length>0;){if(o.length>i){s=i;for(var r=0;r0){s=a+1;break}}}else s=o.length;n.push(o.substr(0,s)),o=o.substr(s)}return n}(e,i,t),r=0;r0&&(n.push(o),o=""),s.forEach((e=>{n.push(e)}))}})),o.length>0&&n.push(o),n},e.skipStartText=function(e,t){for(var i=0,n=0;n=e[n].length;n++)i++,t-=e[n].length;return i>0&&e.splice(0,i),e.length>0&&t>0&&(e[0]=e[0].substring(t)),e},e.truncateEnd=function(e,t){let i=0;for(;i=e[i].length;i++)t-=e[i].length;return i0&&(e[i]=e[i].substring(0,t),i++),e.splice(i)),e},e.isNullOrEmpty=function(e){return null==e||0===e.length},e.replaceLinebreaksWithSpaces=function(e){return e.replace(/[\r\n]/g," ")},e.removeLineBreaksAndWhiteSpaces=function(e){return e.replace(/(\r\n|\n|\r|\s+)/gm,"")},e.createRegex=function(e){return e=n(e),new RegExp("("+e+")","ig")},e.replaceSpaceAndSpecialChar=n,e.ExactMatchWithoutSpaceAndSpecialChar=function(e,t){return n(e)===n(t)}}(t.StringUtilities||(t.StringUtilities={}))},647:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureList=void 0;class i{static create(e){i._singletonObj=new i(e)}static get(){return i._singletonObj}constructor(e){this._features=e}isReadAloudSDExtractionEnabled(){return Boolean(this._features.readAloudSDExtractionEnabled)}isPreloadOnStartUtteranceEnabled(){return Boolean(this._features.readAloudPreloadOnStartUtterance)}isSmartReadExperienceChangesEnabled(){return Boolean(this._features.smartReadExperienceChangesEnabled)}isPdfReadAloudWithPageTextDataEnabled(){return Boolean(this._features.pdfReadAloudWithPageTextDataEnabled)}}t.FeatureList=i},4409:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Highlighter=void 0;const n=i(9919),o=i(6666);!function(e){const t=["mssyllable"];function i(e,t,i){let o=t.ownerDocument.createElement(e);return i.forEach((e=>{o.classList.add(e)})),o.appendChild(n.DomUtilties.getParentNode(t).replaceChild(o,t)),o}function s(e,t){let i=e.textContent;if(t<0||t>i.length)throw new Error("Bad index for splitText");let n=i.substr(0,t),o=i.substr(t),s=e.ownerDocument.createTextNode(n),r=e.ownerDocument.createTextNode(o);const a=e.parentNode;return a.insertBefore(s,e),a.insertBefore(r,e),a.removeChild(e),{firstPart:s,secondPart:r}}e.surroundTextByTag=function(e,r,a,d,l,u,c,h){let g=r.startContainer,m=r.startOffset,_=r.endContainer,p=r.endOffset,R=g.nodeType===Node.TEXT_NODE?g:n.DomUtilties.getChildNodes(g)[m],S=_.nodeType===Node.TEXT_NODE?_:n.DomUtilties.getChildNodes(g)[p],C=[];for(;R&&((R.nodeType===Node.TEXT_NODE||R.nodeType===Node.ELEMENT_NODE&&t.indexOf(R.tagName.toLowerCase())>-1)&&C.push(R),R!==S);)R=o.ReadingNavigationUtils.getNextReadingNode(r.commonAncestorContainer,R);let T=[];h&&T.push(g.ownerDocument.createElement(e));for(let t=0;t1){let e=C[t];if(e===g&&m>0){let t=e===_&&p>0,i=s(e,m);if(d(e,[i.firstPart,i.secondPart]),e=i.secondPart,t){let t=s(e,p-m);d(e,[t.firstPart,t.secondPart]),e=t.firstPart}}else if(e===_){let t=s(e,p);d(e,[t.firstPart,t.secondPart]),e=t.firstPart}a(e)?C[t]=e:C[t]=null}if(T&&C[t])if(h&&1===T.length){let e=n.DomUtilties.getParentNode(C[t]).replaceChild(T[0],C[t]);T[0].appendChild(e)}else{let n=i(e,C[t],l);T.push(n)}}return u&&T[0]&&T[0].setAttribute("aria-label",u),c&&T[0]&&c.forEach(((e,t)=>{T[0].setAttribute(t,e)})),{value:()=>T,release:()=>{for(let e=0;e{var i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentType=t.UserActionType=void 0,(n=t.UserActionType||(t.UserActionType={}))[n.Selection=0]="Selection",n[n.Scrolling=1]="Scrolling",(i=t.ContentType||(t.ContentType={}))[i.Web=0]="Web",i[i.ReadingView=1]="ReadingView",i[i.PDF=2]="PDF"},2174:(e,t)=>{var i,n,o,s;Object.defineProperty(t,"__esModule",{value:!0}),t.SmartReadStatus=t.ReadAloudStartStates=t.ReadAloudErrors=t.ReadAloudVoiceUsage=void 0,(s=t.ReadAloudVoiceUsage||(t.ReadAloudVoiceUsage={}))[s.kOnlineVoice=0]="kOnlineVoice",s[s.kOfflineVoice=1]="kOfflineVoice",(o=t.ReadAloudErrors||(t.ReadAloudErrors={}))[o.GlobalScriptError=0]="GlobalScriptError",o[o.ScriptInjectionFailure=1]="ScriptInjectionFailure",o[o.SpeechUtteranceCreationFailure=2]="SpeechUtteranceCreationFailure",o[o.NoLanguagePackageInstalled=3]="NoLanguagePackageInstalled",o[o.LanguagePackageNotFound=4]="LanguagePackageNotFound",o[o.ReadingNavigatorInitializeFailure=5]="ReadingNavigatorInitializeFailure",o[o.NoVoicesAvailable=6]="NoVoicesAvailable",o[o.JSONParsing_ReadOutLoudSpeechPreferences=7]="JSONParsing_ReadOutLoudSpeechPreferences",o[o.JSONParsing_ReadOutLoudSpeechPreferences_ScopeState=8]="JSONParsing_ReadOutLoudSpeechPreferences_ScopeState",o[o.JSONParsing_ReadOutLoudStartRequestedTime=9]="JSONParsing_ReadOutLoudStartRequestedTime",o[o.Timeout=10]="Timeout",o[o.SpeechUtteranceCreationFailureForOnlineVoice=11]="SpeechUtteranceCreationFailureForOnlineVoice",o[o.SpeechUtteranceCreationFailure_Network=12]="SpeechUtteranceCreationFailure_Network",o[o.SpeechUtteranceCreationFailure_SynthesisFailed=13]="SpeechUtteranceCreationFailure_SynthesisFailed",o[o.SpeechUtteranceCreationFailure_TextTooLong=14]="SpeechUtteranceCreationFailure_TextTooLong",o[o.SpeechUtteranceCreationFailure_OnStart=15]="SpeechUtteranceCreationFailure_OnStart",o[o.SpeechUtteranceCreationFailureForOnlineVoice_OnStart=16]="SpeechUtteranceCreationFailureForOnlineVoice_OnStart",o[o.SpeechUtteranceCreationFailure_Network_OnStart=17]="SpeechUtteranceCreationFailure_Network_OnStart",o[o.SpeechUtteranceCreationFailure_TextTooLong_OnStart=18]="SpeechUtteranceCreationFailure_TextTooLong_OnStart",o[o.SpeechUtteranceCreationFailure_SynthesisFailed_OnStart=19]="SpeechUtteranceCreationFailure_SynthesisFailed_OnStart",o[o.StartCommandTimeout=20]="StartCommandTimeout",o[o.NoOnlineVoicesAvailable=21]="NoOnlineVoicesAvailable",(n=t.ReadAloudStartStates||(t.ReadAloudStartStates={}))[n.ReadAloud_StartRequested=0]="ReadAloud_StartRequested",n[n.ReadAloud_Initialization=1]="ReadAloud_Initialization",n[n.ReadAloud_Activation=2]="ReadAloud_Activation",n[n.ReadAloud_Pause=3]="ReadAloud_Pause",n[n.ReadAloud_Stop=4]="ReadAloud_Stop",n[n.ReadAloud_Playing=5]="ReadAloud_Playing",n[n.ReadAloud_ContentNotAvailable=6]="ReadAloud_ContentNotAvailable",n[n.ReadAloud_StartReadingIgnored=7]="ReadAloud_StartReadingIgnored",(i=t.SmartReadStatus||(t.SmartReadStatus={}))[i.Start=0]="Start",i[i.ContentEmptyPaywalled=1]="ContentEmptyPaywalled",i[i.ContentEmptyNonPaywalled=2]="ContentEmptyNonPaywalled",i[i.ContentFetchTimedOut=3]="ContentFetchTimedOut",i[i.InvalidResponse=4]="InvalidResponse",i[i.ContentLow=5]="ContentLow",i[i.ContentNoMatch=6]="ContentNoMatch",i[i.UserInitiatedFallbackClick=7]="UserInitiatedFallbackClick",i[i.UserInitiatedFallbackContextMenu=8]="UserInitiatedFallbackContextMenu"},2990:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolType=void 0,(i=t.LearningToolType||(t.LearningToolType={}))[i.Syllables=1]="Syllables",i[i.PartsOfSpeech=2]="PartsOfSpeech",i[i.PictureDictionary=3]="PictureDictionary"},1266:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsCore=void 0;const n=i(4989),o=i(4099),s=i(6860),r=i(2978),a=i(8068);t.LearningToolsCore=class{constructor(e){this._viewer=e||null,this._rolEventHandlers=null,this._learningToolSettingsStore=new n.LearningToolsSettingsStoreProxy,this._learningToolsSettingsEventHandlers=null,this._comprehensionToolsEventHandlers=null,this._readingPreferencesEventHandlers=null,this._viewer&&this._viewer.applyLearningToolsStyles()}initializeReadOutLoud(e,t,i){this._rolEventHandlers=new s.ReadOutLoudEventHandlers(e,t,i)}initializeLearningTools(e,t){this._learningToolsSettingsEventHandlers=new o.LearningToolsSettingsEventHandlers(this._learningToolSettingsStore,e),this._comprehensionToolsEventHandlers=new r.ComprehensionToolsEventHandlers(e,t),this._readingPreferencesEventHandlers=new a.ReadingPreferencesEventHandlers(e,t)}initializeLearningToolsModels(){this._readingPreferencesEventHandlers.ensureInitialize(),this._comprehensionToolsEventHandlers.ensureInitialize()}getComprehensionToolsSettingsStore(){return this._learningToolSettingsStore}}},1553:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsRuntime=void 0;const n=i(4134),o=i(7704),s=i(647);t.LearningToolsRuntime=class{constructor(){this._messageFromHost=new n.EventSource}onMessageFromHost(){return this._messageFromHost}postMessageToHost(e,t){let i=t.length;"Telemetry"===e&&i>0&&"Renderer"===t[0]?(o.TelemetryLogger.logTelemetry(t),i>2&&("ReadOutLoud_LogDwellTime"===t[2]||"ReadOutLoud_LogCharacterCount"===t[2])&&this.sendMessageToHost(e,t)):this.sendMessageToHost(e,t)}detectTextLanguage(e){let t="und";return learningToolsNativeHandler&&learningToolsNativeHandler.detectTextLanguage&&(t=learningToolsNativeHandler.detectTextLanguage(e)),t}initializePDFReader(){learningToolsNativeHandler&&learningToolsNativeHandler.initializePDFReader&&learningToolsNativeHandler.initializePDFReader()}raiseMessageFromHost(e){this._messageFromHost.trigger(e)}initialize(e){if(e[2].length>0){let t=JSON.parse(e[2]);s.FeatureList.create(t)}}sendMessageToHost(e,t){learningToolsNativeHandler&&("Telemetry"===e&&t.shift(),learningToolsNativeHandler.sendMessageToHost(e,t))}}},4099:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsSettingsEventHandlers=void 0;const n=i(4989);t.LearningToolsSettingsEventHandlers=class{constructor(e,t){this._learningToolsSettingsStore=e,this._hostProxy=t,this._hostProxy.initializeComprehensionToolsSettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializeGrammarToolsSettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._hostProxy.initializePictureDictionarySettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializePictureDictionarySettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._hostProxy.initializeLineFocusSettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializeLineFocusSettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._learningToolsSettingsStore.onSettingChanged().subscribe((e=>{switch(e.name){case n.ComprehensionToolsPOSColors:let t=JSON.parse(this._learningToolsSettingsStore.getComprehensionToolsSettings());t[e.name]=e.value,this._hostProxy.sendComprehensionToolsSettings(JSON.stringify(t));break;case n.ComprehensionToolsLineMarkersEnabled:let i=JSON.parse(this._learningToolsSettingsStore.getComprehensionToolsSettings());i[e.name]=e.value,this._hostProxy.sendComprehensionToolsSettings(JSON.stringify(i));break;case n.LineFocusLineCount:let o=JSON.parse(this._learningToolsSettingsStore.getLineCountSettings());o[e.name]=e.value,this._hostProxy.sendLineFocusSettings(JSON.stringify(o));break;case n.PictureDictionaryEnabled:case n.PictureDictionaryFirstRunExperienceCompleted:let s=JSON.parse(this._learningToolsSettingsStore.getPictureDictionarySettings());s[e.name]=e.value,this._hostProxy.sendPictureDictionarySettings(JSON.stringify(s))}})),this._hostProxy.settingsUpdateRequested().subscribe((e=>{this._learningToolsSettingsStore.onSettingsUpdateFromHost(e)}))}}},4989:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsSettingsStoreProxy=t.PictureDictionaryFirstRunExperienceCompleted=t.PictureDictionaryEnabled=t.LineFocusLineCount=t.ComprehensionToolsLineMarkersEnabled=t.ComprehensionToolsPOSColors=void 0;const n=i(4134),o=i(8295),s='{"ComprehensionTools_PartsOfSpeechColors": [ {"nounsColorIndex": 5, "verbsColorIndex": 4, "adjectivesColorIndex": 1, "adverbsColorIndex": 9} ], "ComprehensionTools_LineMarkersEnabled":false}';t.ComprehensionToolsPOSColors="ComprehensionTools_PartsOfSpeechColors",t.ComprehensionToolsLineMarkersEnabled="ComprehensionTools_LineMarkersEnabled",t.LineFocusLineCount="LineFocus_LineCount",t.PictureDictionaryEnabled="PictureDictionary_Enabled",t.PictureDictionaryFirstRunExperienceCompleted="PictureDictionary_FirstRunExperienceCompleted",t.LearningToolsSettingsStoreProxy=class{constructor(){this._onSettingChanged=new n.EventSource}get currentFrame(){return this._currentFrame}getComprehensionToolsSettings(){return JSON.stringify(this._comprehensionToolsSettings)}getPictureDictionarySettings(){return JSON.stringify(this._pictureDictionarySettings)}getLineCountSettings(){return JSON.stringify(this._lineFocusSettings)}onSettingChanged(){return this._onSettingChanged}getSetting(e){let i;switch(e){case t.ComprehensionToolsPOSColors:case t.ComprehensionToolsLineMarkersEnabled:i=this._comprehensionToolsSettings;break;case t.PictureDictionaryEnabled:case t.PictureDictionaryFirstRunExperienceCompleted:i=this._pictureDictionarySettings;break;case t.LineFocusLineCount:i=this._lineFocusSettings}return i&&i.hasOwnProperty(e)?i[e]:null}setSetting(e,i){let n;switch(e){case t.ComprehensionToolsPOSColors:case t.ComprehensionToolsLineMarkersEnabled:n=this._comprehensionToolsSettings;break;case t.PictureDictionaryEnabled:case t.PictureDictionaryFirstRunExperienceCompleted:n=this._pictureDictionarySettings;break;case t.LineFocusLineCount:n=this._lineFocusSettings}n&&n.hasOwnProperty(e)&&(n[e]=i,this._onSettingChanged.trigger({name:e,value:i}))}onSettingsUpdateFromHost(e){}onInitializeGrammarToolsSettingsFromHost(e,i){if(this._currentFrame=e,this._comprehensionToolsSettings=o.JsonUtilities.parseJsonOrNull(i,"ComprehensionTools","InitialSettings"),this._comprehensionToolsSettings)if(this._comprehensionToolsSettings.hasOwnProperty(t.ComprehensionToolsLineMarkersEnabled)&&this._comprehensionToolsSettings.hasOwnProperty(t.ComprehensionToolsPOSColors)){let e=this._comprehensionToolsSettings[t.ComprehensionToolsPOSColors];if(e&&(!e.hasOwnProperty("verbsColorIndex")||!e.hasOwnProperty("nounsColorIndex")||!e.hasOwnProperty("adverbsColorIndex")||!e.hasOwnProperty("adverbsColorIndex")))return void o.JsonUtilities.parseJsonOrNull(s,"ComprehensionTools","InitialSettings")}else this._comprehensionToolsSettings=o.JsonUtilities.parseJsonOrNull(s,"ComprehensionTools","InitialSettings");else this._comprehensionToolsSettings=o.JsonUtilities.parseJsonOrNull(s,"ComprehensionTools","InitialSettings")}onInitializePictureDictionarySettingsFromHost(e,i){this._currentFrame=e,this._pictureDictionarySettings=o.JsonUtilities.parseJsonOrNull(i,"PictureDictionary","InitialSettings"),this._pictureDictionarySettings&&(!this._pictureDictionarySettings||this._pictureDictionarySettings.hasOwnProperty(t.PictureDictionaryEnabled)&&this._pictureDictionarySettings.hasOwnProperty(t.PictureDictionaryFirstRunExperienceCompleted))||(this._pictureDictionarySettings=o.JsonUtilities.parseJsonOrNull('{"PictureDictionary_Enabled":false, "PictureDictionary_FirstRunExperienceCompleted":false}',"PictureDictionary","InitialSettings"))}onInitializeLineFocusSettingsFromHost(e,i){this._currentFrame=e,this._lineFocusSettings=o.JsonUtilities.parseJsonOrNull(i,"LineFocus","InitialSettings"),(!this._lineFocusSettings||this._lineFocusSettings&&!this._lineFocusSettings.hasOwnProperty(t.LineFocusLineCount))&&(this._lineFocusSettings=o.JsonUtilities.parseJsonOrNull('{"LineFocus_LineCount":1}',"LineFocus","InitialSettings"))}}},3590:(e,t)=>{var i,n,o,s;Object.defineProperty(t,"__esModule",{value:!0}),t.LineFocusLineCountType=t.HttpResponseCodeOperationResultMap=t.LinguisticModelOperationResult=t.ReadAloudPdfErrors=t.LearningToolsHistogramNames=void 0,(s=t.LearningToolsHistogramNames||(t.LearningToolsHistogramNames={}))[s.ComprehensionToolsSyllabifyResultHistogram=0]="ComprehensionToolsSyllabifyResultHistogram",s[s.ComprehensionToolsPartsOfSpeechResultHistogram=1]="ComprehensionToolsPartsOfSpeechResultHistogram",s[s.ComprehensionToolsPaneInitializationResultHistogram=2]="ComprehensionToolsPaneInitializationResultHistogram",s[s.ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram=3]="ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram",s[s.ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram=4]="ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram",s[s.ComprehensionToolsPaneInitializationTimeTakenForCompletionHistogram=5]="ComprehensionToolsPaneInitializationTimeTakenForCompletionHistogram",s[s.ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram=6]="ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram",s[s.ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram=7]="ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram",s[s.ComprehensionToolsDwellTimeHistogram=8]="ComprehensionToolsDwellTimeHistogram",s[s.ReadAloudDwellTimeWeb=9]="ReadAloudDwellTimeWeb",s[s.ReadAloudDwellTimeReadingView=10]="ReadAloudDwellTimeReadingView",s[s.ReadAloudDwellTimePDF=11]="ReadAloudDwellTimePDF",s[s.ReadAloudVoiceUsageWeb=12]="ReadAloudVoiceUsageWeb",s[s.ReadAloudVoiceUsageReadingView=13]="ReadAloudVoiceUsageReadingView",s[s.ReadAloudVoiceUsagePDF=14]="ReadAloudVoiceUsagePDF",s[s.LineFocusStartStatus=15]="LineFocusStartStatus",s[s.LineFocusDwellTime=16]="LineFocusDwellTime",s[s.LineFocusTimeToStart=17]="LineFocusTimeToStart",s[s.LineFocusLineCount=18]="LineFocusLineCount",s[s.ReadAloudPdfPageCount=19]="ReadAloudPdfPageCount",s[s.ReadAloudPdfError=20]="ReadAloudPdfError",s[s.PictureDictionaryResultHistogram=21]="PictureDictionaryResultHistogram",s[s.ReadAloudPdfStartTimeToPageRatio=22]="ReadAloudPdfStartTimeToPageRatio",s[s.PictureDictionaryServiceRequestProcessingTimeHistogram=23]="PictureDictionaryServiceRequestProcessingTimeHistogram",s[s.PictureDictionaryPopupLaunchCount=24]="PictureDictionaryPopupLaunchCount",s[s.PictureDictionaryTimeTakenForPopupCreation=25]="PictureDictionaryTimeTakenForPopupCreation",s[s.PictureDictionaryWordsWithPicturesPercentage=26]="PictureDictionaryWordsWithPicturesPercentage",s[s.PictureDictionaryPopupLaunchPercentage=27]="PictureDictionaryPopupLaunchPercentage",s[s.PictureDictionaryToggleState=28]="PictureDictionaryToggleState",s[s.ReadAloudPdfAxTreeLoadTime=29]="ReadAloudPdfAxTreeLoadTime",s[s.ReadingViewToolsUsed=30]="ReadingViewToolsUsed",s[s.ReadingViewSelectionToolsUsed=31]="ReadingViewSelectionToolsUsed",s[s.ReadAloudOnlineCharacterCountWeb=32]="ReadAloudOnlineCharacterCountWeb",s[s.ReadAloudOnlineCharacterCountReadingView=33]="ReadAloudOnlineCharacterCountReadingView",s[s.ReadAloudOnlineCharacterCountPDF=34]="ReadAloudOnlineCharacterCountPDF",s[s.ReadAloudOfflineCharacterCountWeb=35]="ReadAloudOfflineCharacterCountWeb",s[s.ReadAloudOfflineCharacterCountReadingView=36]="ReadAloudOfflineCharacterCountReadingView",s[s.ReadAloudOfflineCharacterCountPDF=37]="ReadAloudOfflineCharacterCountPDF",s[s.ReadAloudStartPageNumberWeb=38]="ReadAloudStartPageNumberWeb",s[s.ReadAloudStartPageNumberReadingView=39]="ReadAloudStartPageNumberReadingView",s[s.ReadAloudStartPageNumberPDF=40]="ReadAloudStartPageNumberPDF",s[s.ReadAloudVoiceChangeCountWeb=41]="ReadAloudVoiceChangeCountWeb",s[s.ReadAloudVoiceChangeCountReadingView=42]="ReadAloudVoiceChangeCountReadingView",s[s.ReadAloudVoiceChangeCountPDF=43]="ReadAloudVoiceChangeCountPDF",s[s.ReadAloudRateChangeCountWeb=44]="ReadAloudRateChangeCountWeb",s[s.ReadAloudRateChangeCountReadingView=45]="ReadAloudRateChangeCountReadingView",s[s.ReadAloudRateChangeCountPDF=46]="ReadAloudRateChangeCountPDF",s[s.ComprehensionToolsPartsOfSpeechUsed=47]="ComprehensionToolsPartsOfSpeechUsed",s[s.ComprehensionToolsSyllablesUsed=48]="ComprehensionToolsSyllablesUsed",s[s.PictureDictionaryUsed=49]="PictureDictionaryUsed",s[s.ReadAloudSpeechSynthesisInvoked=50]="ReadAloudSpeechSynthesisInvoked",s[s.ReadAloudContinueClickCountWeb=51]="ReadAloudContinueClickCountWeb",(o=t.ReadAloudPdfErrors||(t.ReadAloudPdfErrors={}))[o.None=0]="None",o[o.AccessibilityTreeLoadTimeout=1]="AccessibilityTreeLoadTimeout",o[o.AccessibilityTreeUpdateTimeout=2]="AccessibilityTreeUpdateTimeout",o[o.MojoPipeBindingBrowserToRendererFailed=3]="MojoPipeBindingBrowserToRendererFailed",o[o.AccessibilityTreeHelperCreationFailed=4]="AccessibilityTreeHelperCreationFailed",o[o.AccessibilityTreeSerializationFailed=5]="AccessibilityTreeSerializationFailed",o[o.InitialParamsJSONFailure=6]="InitialParamsJSONFailure",o[o.kMaxValue=6]="kMaxValue",function(e){e[e.Success=0]="Success",e[e.TimedOut=1]="TimedOut",e[e.ProcessLinguisticModelRequestFailed=2]="ProcessLinguisticModelRequestFailed",e[e.BuildLiguisticModelRequestContentFailed=3]="BuildLiguisticModelRequestContentFailed",e[e.CreateLinguisticModelResourceRequestFailed=4]="CreateLinguisticModelResourceRequestFailed",e[e.RequestFailedInternetDisconnected=5]="RequestFailedInternetDisconnected",e[e.HttpResponseBadRequest=6]="HttpResponseBadRequest",e[e.HttpResponseUnAuthorized=7]="HttpResponseUnAuthorized",e[e.HttpResponseForbidden=8]="HttpResponseForbidden",e[e.HttpResponseNotFound=9]="HttpResponseNotFound",e[e.HttpResponseMethodNotAllowed=10]="HttpResponseMethodNotAllowed",e[e.HttpResponseRequestTimeout=11]="HttpResponseRequestTimeout",e[e.HttpResponseConflict=12]="HttpResponseConflict",e[e.HttpResponseGone=13]="HttpResponseGone",e[e.HttpResponsePreconditionFailed=14]="HttpResponsePreconditionFailed",e[e.HttpResponseCancelled=15]="HttpResponseCancelled",e[e.HttpResponseRequestEntityTooLarge=16]="HttpResponseRequestEntityTooLarge",e[e.HttpResponseTooManyRequests=17]="HttpResponseTooManyRequests",e[e.HttpResponseInternalServerError=18]="HttpResponseInternalServerError",e[e.HttpResponseServiceUnavailable=19]="HttpResponseServiceUnavailable",e[e.HttpResponseVersionNotSupported=20]="HttpResponseVersionNotSupported",e[e.HttpResponseNotImplemented=21]="HttpResponseNotImplemented",e[e.HttpResponseUnknown=22]="HttpResponseUnknown",e[e.BuildLiguisticModelResponseFailed=23]="BuildLiguisticModelResponseFailed",e[e.LinguisticModelResourceRequestTimedOut=24]="LinguisticModelResourceRequestTimedOut",e[e.kMaxValue=24]="kMaxValue"}(i=t.LinguisticModelOperationResult||(t.LinguisticModelOperationResult={})),t.HttpResponseCodeOperationResultMap=new Map([[0,i.HttpResponseUnknown],[2,i.ProcessLinguisticModelRequestFailed],[3,i.BuildLiguisticModelRequestContentFailed],[4,i.CreateLinguisticModelResourceRequestFailed],[5,i.RequestFailedInternetDisconnected],[23,i.BuildLiguisticModelResponseFailed],[24,i.LinguisticModelResourceRequestTimedOut],[400,i.HttpResponseBadRequest],[401,i.HttpResponseUnAuthorized],[403,i.HttpResponseForbidden],[404,i.HttpResponseNotFound],[405,i.HttpResponseMethodNotAllowed],[408,i.HttpResponseRequestTimeout],[409,i.HttpResponseConflict],[410,i.HttpResponseGone],[412,i.HttpResponsePreconditionFailed],[413,i.HttpResponseRequestEntityTooLarge],[429,i.HttpResponseTooManyRequests],[499,i.HttpResponseCancelled],[500,i.HttpResponseInternalServerError],[501,i.HttpResponseNotImplemented],[503,i.HttpResponseServiceUnavailable],[505,i.HttpResponseVersionNotSupported]]),(n=t.LineFocusLineCountType||(t.LineFocusLineCountType={}))[n.OneLine=0]="OneLine",n[n.ThreeLines=1]="ThreeLines",n[n.FiveLines=2]="FiveLines",n[n.kMaxValue=2]="kMaxValue"},7083:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryClient=void 0;const n=i(3590),o=i(339),s=i(2990),r=i(2174),a=i(1050),d=i(6495);t.TelemetryClient=class{constructor(e){this._hostProxy=e}reportJsonParsingError(e,t){this._hostProxy&&"ReadOutLoud"===e&&this._hostProxy.sendTelemetry("Browser",e,e+"_Error",r.ReadAloudErrors[t].toString())}reportLearningToolNLXRequestProcessTime(e,t,i){e!==s.LearningToolType.PartsOfSpeech&&e!==s.LearningToolType.Syllables||!this._hostProxy?e===s.LearningToolType.PictureDictionary&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_NLXRequestProcessTimeMessage",s.LearningToolType[e],t,i.toString()):this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_NLXRequestProcessTimeMessage",s.LearningToolType[e],t,i.toString())}reportComprehensionToolsResultState(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_OperationResultState",o.ComprehensionToolType[e],n.LinguisticModelOperationResult[t],i.toString())}reportComprehensionToolsDwellTime(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_LogDwellTime",e.toString())}reportComprehensionToolsUsage(e){this._hostProxy&&this._hostProxy.sendTelemetry(d.RendererHost,d.ComprehensionToolsFeatureName,d.ComprehensionToolsLogUsage,o.ComprehensionToolType[e])}reportReadOutLoudDwellTime(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogDwellTime",a.ContentType[e].toString(),t.toString())}reportReadOutLoudSuccess(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_Success",e,t.toString(),i.toString())}reportReadOutLoudVoiceUsage(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_VoiceUsage",a.ContentType[e].toString(),t.toString())}reportReadOutLoudInternalError(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_Error",e.toString())}reportReadOutLoudStartStates(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_StartStates",e.toString())}reportReadOutLoudPDFPageCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogPageCount",e.toString())}reportReadOutLoudStartPageNumber(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogStartPageNumber",a.ContentType[e].toString(),t.toString())}reportReadOutLoudPdfTimeToPageRatio(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogTimeToPageRatio",e.toString())}reportReadOutLoudPdfError(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoudPdf_Error",e.valueOf().toString())}reportReadOutLoudCharacterCount(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogCharacterCount",t.toString(),a.ContentType[e].toString(),i.toString())}reportNoPII(e,t){this._hostProxy&&this._hostProxy.sendTelemetryErrorMeasureNoPII(e,t)}reportLineFocusStartStatus(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_StartStatus",e.toString())}reportLineFocusDwellTime(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_DwellTime",e.toString())}reportLineFocusTimeToStart(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_TimeToStart",e.toString())}reportLineFocusLineCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_LineCount",e.toString())}reportPictureDictionaryResultState(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_OperationResultState",n.LinguisticModelOperationResult[e],t.toString())}reportPictureDictionaryPopupLaunchCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_PopupLaunchCount",e.toString())}reportPictureDictionaryTimeTakenForPopupCreation(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_TimeTakenForPopupCreation",e.toString())}reportPictureDictionaryWordsWithPicturesPercentage(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_WordsWithPicturesPercentage",e.toString())}reportPictureDictionaryPopupLaunchPercentage(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_PopupLaunchPercentage",e.toString())}reportPictureDictionaryToggleState(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_ToggleState",e.toString())}reportPictureDictionaryUsage(){this._hostProxy&&this._hostProxy.sendTelemetry(d.RendererHost,d.PictureDictionaryFeatureName,d.PictureDictionaryLogUsage)}reportReadOutLoudVoiceChange(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesVoiceChanged",a.ContentType[e].toString(),t.toString())}reportReadOutLoudRateChange(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesRateChanged",a.ContentType[e].toString(),t.toString())}reportReadOutLoudSpeechSynthesisInvoke(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesSpeechSynthesisInvoked",e.toString())}reportReadOutLoudContinueClickCount(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogContinueClickCount",t.toString(),a.ContentType[e].toString())}reportReadOutLoudSmartReadStatus(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_SmartReadStatus",e.toString())}reportReadOutLoudSmartReadContentMatch(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_SmartReadContentMatch",e.toString())}}},6495:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PictureDictionaryLogUsage=t.PictureDictionaryFeatureName=t.ComprehensionToolsLogUsage=t.ComprehensionToolsFeatureName=t.RendererHost=void 0,t.RendererHost="Renderer",t.ComprehensionToolsFeatureName="ComprehensionTools",t.ComprehensionToolsLogUsage="ComprehensonTools_LogUsage",t.PictureDictionaryFeatureName="PictureDictionary",t.PictureDictionaryLogUsage="PictureDictionary_LogUsage"},7704:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryLogger=void 0;const n=i(3590),o=i(339),s=i(2174),r=i(2990),a=i(6495);class d{static logTelemetry(e){switch(e[1]){case"ReadOutLoud":d.handleReadAloudTelemetryMessage(e);break;case"ComprehensionTools":d.handleComprehensionToolsTelemetryMessage(e);break;case"LineFocus":d.handleLineFocusTelemetryMessage(e);break;case"PictureDictionary":d.handlePictureDictionaryTelemetryMessage(e);break;default:return}}static handleLineFocusTelemetryMessage(e){e.length<4||("LineFocus_StartStatus"===e[2]?d.logLineFocusStartStatus("true"===e[3]):"LineFocus_TimeToStart"===e[2]?d.logLineFocusTimeToStart(Number(e[3])):"LineFocus_DwellTime"===e[2]?d.logLineFocusDwellTime(Number(e[3])):"LineFocus_LineCount"===e[2]&&d.logLineFocusLineCount(Number(e[3])))}static handleComprehensionToolsTelemetryMessage(e){e.length>=6&&"ComprehensionTools_OperationResultState"===e[2]?d.logComprehensionToolOperationResult(e[3],n.LinguisticModelOperationResult[e[4]],Number(e[5])):e.length>=6&&"ComprehensionTools_NLXRequestProcessTimeMessage"===e[2]?d.logNLXRequestProcessTime(e[3],e[4],Number(e[5])):e.length>=4&&"ComprehensionTools_LogDwellTime"===e[2]?d.logComprehensionToolsDwellTime(Number(e[3])):e.length>=4&&e[2]===a.ComprehensionToolsLogUsage&&d.logComprehensionToolsUsage(e[3])}static handleReadAloudTelemetryMessage(e){"ReadOutLoud_LogDwellTime"===e[2]?d.logReadAloudDwellTime(e[3],Number(e[4])):"ReadOutLoud_VoiceUsage"===e[2]?d.logReadAloudVoiceUsage(e[3],"true"===e[4]):"ReadOutLoud_LogPageCount"===e[2]?isNaN(Number(e[3]))||d.logReadAloudPdfPageCount(Number(e[3])):"ReadOutLoud_LogTimeToPageRatio"===e[2]?isNaN(Number(e[3]))||d.logReadAloudPdfPageToTimeRatio(Number(e[3])):"ReadOutLoudPdf_Error"===e[2]?isNaN(Number(e[3]))||d.logReadAloudPdfError(Number(e[3])):"ReadOutLoud_LogCharacterCount"===e[2]?isNaN(Number(e[3]))||d.logReadAloudCharacterCount(Number(e[3]),e[4],"true"===e[5]):"ReadOutLoud_LogStartPageNumber"===e[2]?isNaN(Number(e[4]))||d.logReadAloudStartPageNumber(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesVoiceChanged"===e[2]?isNaN(Number(e[4]))||d.logReadAloudNoOfTimeVoiceChanged(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesRateChanged"===e[2]?isNaN(Number(e[4]))||d.logReadAloudNoOfTimesRateChanged(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesSpeechSynthesisInvoked"===e[2]?isNaN(Number(e[3]))||d.logReadAloudNoOfTimesSpeechSynthesisInvoked(Number(e[3])):"ReadOutLoud_LogContinueClickCount"===e[2]&&(isNaN(Number(e[3]))||d.logReadAloudContinueClickCountWebAfterROLStarted(Number(e[3]),e[4]))}static handlePictureDictionaryTelemetryMessage(e){"PictureDictionary_ToggleState"===e[2]&&4===e.length?d.logPictureDictionaryToggleState("true"===e[3]):"PictureDictionary_OperationResultState"===e[2]&&5===e.length?d.logPictureDictionaryOperationResult(n.LinguisticModelOperationResult[e[3]],Number(e[4])):"PictureDictionary_NLXRequestProcessTimeMessage"!==e[2]||6!==e.length||isNaN(Number(e[5]))?"PictureDictionary_PopupLaunchCount"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_TimeTakenForPopupCreation"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_WordsWithPicturesPercentage"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_PopupLaunchPercentage"!==e[2]||4!==e.length||isNaN(Number(e[3]))?e[2]===a.PictureDictionaryLogUsage&&d.logPictureDictionaryUsage():d.logPictureDictionaryPopupLaunchPercentage(Number(e[3])):d.logPictureDictionaryWordsWithPicturesPercentage(Number(e[3])):d.logPictureDictionaryTimeTakenForPopupCreation(Number(e[3])):d.logPictureDictionaryPopupLaunchCount(Number(e[3])):d.logNLXRequestProcessTime(e[3],e[4],Number(e[5]))}static logComprehensionToolOperationResult(e,t,i){learningToolsNativeHandler&&(e===o.ComprehensionToolType[o.ComprehensionToolType.syllables]?(learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.ComprehensionToolsSyllabifyResultHistogram,t),t===n.LinguisticModelOperationResult.Success&&learningToolsNativeHandler.logUmaHistogramMediumTimes(n.LearningToolsHistogramNames.ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram,i)):e===o.ComprehensionToolType[o.ComprehensionToolType.pos]&&(learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechResultHistogram,t),t===n.LinguisticModelOperationResult.Success&&learningToolsNativeHandler.logUmaHistogramMediumTimes(n.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram,i)))}static logComprehensionToolsDwellTime(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramLongTimes(n.LearningToolsHistogramNames.ComprehensionToolsDwellTimeHistogram,e)}static logComprehensionToolsUsage(e){if(learningToolsNativeHandler){let t;switch(e){case o.ComprehensionToolType[o.ComprehensionToolType.pos]:t=n.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechUsed;break;case o.ComprehensionToolType[o.ComprehensionToolType.syllables]:t=n.LearningToolsHistogramNames.ComprehensionToolsSyllablesUsed;break;default:return}learningToolsNativeHandler.logUmaHistogramExactLinear(t,0,1)}}static logNLXRequestProcessTime(e,t,i){learningToolsNativeHandler&&(e===r.LearningToolType[r.LearningToolType.Syllables]?"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(n.LearningToolsHistogramNames.ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram,1,18e4,50,i):e===r.LearningToolType[r.LearningToolType.PartsOfSpeech]?"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(n.LearningToolsHistogramNames.ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram,1,18e4,50,i):e===r.LearningToolType[r.LearningToolType.PictureDictionary]&&"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(n.LearningToolsHistogramNames.PictureDictionaryServiceRequestProcessingTimeHistogram,1,18e4,50,i))}static logReadAloudDwellTime(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudDwellTimeWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudDwellTimeReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudDwellTimePDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomTimes(i,1e3,36e5,50,t)}}static logReadAloudVoiceUsage(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudVoiceUsageWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudVoiceUsageReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudVoiceUsagePDF;break;default:return}let o=t?s.ReadAloudVoiceUsage.kOnlineVoice:s.ReadAloudVoiceUsage.kOfflineVoice;learningToolsNativeHandler.logUmaHistogramEnumeration(i,o)}}static logReadAloudPdfPageToTimeRatio(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.ReadAloudPdfStartTimeToPageRatio,0,18e4,50,e)}static logReadAloudPdfPageCount(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.ReadAloudPdfPageCount,0,1e4,20,e)}static logReadAloudCharacterCount(e,t,i){if(learningToolsNativeHandler){let o;if(i)switch(t){case"Web":o=n.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountWeb;break;case"ReadingView":o=n.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountReadingView;break;case"PDF":o=n.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountPDF;break;default:return}else switch(t){case"Web":o=n.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountWeb;break;case"ReadingView":o=n.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountReadingView;break;case"PDF":o=n.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(o,0,1e6,50,e)}}static logReadAloudStartPageNumber(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudStartPageNumberWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudStartPageNumberReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudStartPageNumberPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,1,1e4,40,t)}}static logLineFocusStartStatus(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramBoolean(n.LearningToolsHistogramNames.LineFocusStartStatus,e)}static logLineFocusDwellTime(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramLongTimes(n.LearningToolsHistogramNames.LineFocusDwellTime,e)}static logLineFocusTimeToStart(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramTimes(n.LearningToolsHistogramNames.LineFocusTimeToStart,e)}static logLineFocusLineCount(e){if(learningToolsNativeHandler){let t;switch(e){case 1:t=n.LineFocusLineCountType.OneLine;break;case 3:t=n.LineFocusLineCountType.ThreeLines;break;case 5:t=n.LineFocusLineCountType.FiveLines;break;default:return}learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.LineFocusLineCount,t)}}static logReadAloudPdfError(e){learningToolsNativeHandler&&e>n.ReadAloudPdfErrors.None&&e<=n.ReadAloudPdfErrors.kMaxValue&&learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.ReadAloudPdfError,e)}static logPictureDictionaryOperationResult(e,t){learningToolsNativeHandler&&e<=n.LinguisticModelOperationResult.kMaxValue&&learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.PictureDictionaryResultHistogram,e)}static logPictureDictionaryTimeTakenForPopupCreation(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramTimes(n.LearningToolsHistogramNames.PictureDictionaryTimeTakenForPopupCreation,e)}static logPictureDictionaryPopupLaunchCount(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.PictureDictionaryPopupLaunchCount,0,1e3,50,e)}static logPictureDictionaryWordsWithPicturesPercentage(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramPercentage(n.LearningToolsHistogramNames.PictureDictionaryWordsWithPicturesPercentage,e)}static logPictureDictionaryPopupLaunchPercentage(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.PictureDictionaryPopupLaunchPercentage,0,1e3,50,e)}static logPictureDictionaryToggleState(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramBoolean(n.LearningToolsHistogramNames.PictureDictionaryToggleState,e)}static logPictureDictionaryUsage(){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramExactLinear(n.LearningToolsHistogramNames.PictureDictionaryUsed,0,1)}static logReadAloudNoOfTimeVoiceChanged(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudVoiceChangeCountWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudVoiceChangeCountReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudVoiceChangeCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,t)}}static logReadAloudNoOfTimesRateChanged(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudRateChangeCountWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudRateChangeCountReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudRateChangeCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,t)}}static logReadAloudNoOfTimesSpeechSynthesisInvoked(e){if(learningToolsNativeHandler){let t=n.LearningToolsHistogramNames.ReadAloudSpeechSynthesisInvoked;learningToolsNativeHandler.logUmaHistogramCustomCounts(t,0,1e3,11,e)}}static logReadAloudContinueClickCountWebAfterROLStarted(e,t){if(learningToolsNativeHandler){let i;if("Web"!==t)return;i=n.LearningToolsHistogramNames.ReadAloudContinueClickCountWeb,learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,e)}}}t.TelemetryLogger=d},339:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolType=void 0,(i=t.ComprehensionToolType||(t.ComprehensionToolType={}))[i.syllables=1]="syllables",i[i.nouns=2]="nouns",i[i.verbs=4]="verbs",i[i.adjectives=8]="adjectives",i[i.adverbs=16]="adverbs",i[i.pos=30]="pos"},2978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolsEventHandlers=void 0,t.ComprehensionToolsEventHandlers=class{constructor(e,t){this._releasables=[],this._hostProxy=e,this._mainViewModel=t,this._comprehensionToolsViewModel=null,this.registerHostEventHandlers(),this._isInitialized=!1}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._comprehensionToolsViewModel=null}ensureInitialize(){if(!this._isInitialized&&(this._mainViewModel.initializeLearningTools(),this._comprehensionToolsViewModel=this._mainViewModel.getComprehensionToolsViewModel(),this._comprehensionToolsViewModel)){let e=()=>{this._hostProxy.sendComprehensionToolsPaneStatus(this._comprehensionToolsViewModel.comprehensionToolsPaneStatus())};this._releasables.push(this._comprehensionToolsViewModel.onComprehensionToolsStatusChanged().subscribe((()=>{e()}))),this._releasables.push(this._comprehensionToolsViewModel.onProgressIndicatorVisibilityChanged().subscribe((e=>{e||this._hostProxy.sendProgressIndicatorVisibility(e)}))),e()}}registerHostEventHandlers(){this._hostProxy.comprehensionToolsInitialPaneStatusRequested().subscribe((()=>{this.ensureInitialize(),this._hostProxy.sendPartsOfSpeechColorsForThemes(this._comprehensionToolsViewModel.getPartsOfSpeechColorsForThemes())})),this._hostProxy.addSyllablesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addSyllables()})),this._hostProxy.addNounsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addNounHighlight()})),this._hostProxy.addVerbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addVerbHighlight()})),this._hostProxy.addAdverbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addAdverbHighlight()})),this._hostProxy.addAdjectivesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addAdjectiveHighlight()})),this._hostProxy.removeSyllablesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeSyllables()})),this._hostProxy.removeNounsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeNounHighlight()})),this._hostProxy.removeVerbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeVerbHighlight()})),this._hostProxy.removeAdjectivesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeAdjectiveHighlight()})),this._hostProxy.removeAdverbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeAdverbHighlight()})),this._hostProxy.setNounsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setNounsColor(e)})),this._hostProxy.setVerbsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setVerbsColor(e)})),this._hostProxy.setAdjectivesColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setAdjectivesColor(e)})),this._hostProxy.setAdverbsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setAdverbsColor(e)})),this._hostProxy.addLineMarkers().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addLineMarkers()})),this._hostProxy.removeLineMarkers().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeLineMarkers()})),this._hostProxy.languageChangeRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onLanguageChangeRequested()})),this._hostProxy.languageChangeRequestCompleted().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onLanguageChangeRequestCompleted()})),this._hostProxy.onContentShifted().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onContentShifted()}))}}},4133:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Section=t.Match=void 0,t.Match=class{constructor(e){this._sections=[],e&&(this._sections=e)}set sections(e){this._sections=e}get sections(){return this._sections}get nodes(){let e=[];return this._sections.forEach((t=>{e.push(t.node)})),e}},t.Section=class{constructor(e,t,i){this.begin=e,this.end=t,this.node=i}}},6791:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IGNORE_NODE_NAMES=void 0,t.IGNORE_NODE_NAMES=new Set(["SCRIPT","STYLE","EMBED","OBJECT","SELECT","TEXTAREA","IFRAME","NOSCRIPT"])},5680:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FindInPage=void 0;const n=i(8988),o=i(6791),s=i(4133),r=i(9919);!function(e){let t="",i=[],a=0;function d(e){let t=0,n=i.length;for(;t=0;--t){let i=l[t];i.nodeType!=Node.ELEMENT_NODE&&i.nodeType!=Node.TEXT_NODE||o.IGNORE_NODE_NAMES.has(i.nodeName)||!e(d)||a.push(i)}if(d.nodeType==Node.TEXT_NODE&&d.parentNode){const e=n.StringUtilities.replaceSpaceAndSpecialChar(d.textContent);i.push(new s.Section(t.length,t.length+e.length,d)),t+=e}}}(l),e){let n=e.exec(t);if(n){let e=n.index,t=e+n[0].length-1,o=d(e),r=d(t);u=new s.Match,u.sections=i.slice(o,r+1)}a=e.lastIndex}return u}(u,l)},e.reset=function(){t="",i=[],a=0}}(t.FindInPage||(t.FindInPage={}))},1224:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsHostProxy=void 0;const n=i(4134),o=i(52),s=i(9407);class r extends o.HostProxy{constructor(e){super(e),this._initializeComprehensionToolsSettingsRequested=new n.EventSource,this._initializeLineFocusSettingsRequested=new n.EventSource,this._initializePictureDictionarySettingsRequested=new n.EventSource,this._comprehensionToolsInitialPaneStatusRequested=new n.EventSource,this._readingPreferencesInitialPaneStatusRequested=new n.EventSource,this._settingsUpdateRequested=new n.EventSource,this._addSyllablesRequested=new n.EventSource,this._onContentShifted=new n.EventSource,this._addNounsRequested=new n.EventSource,this._addVerbsRequested=new n.EventSource,this._addAdjectivesRequested=new n.EventSource,this._addAdverbsRequested=new n.EventSource,this._removeSyllablesRequested=new n.EventSource,this._removeNounsRequested=new n.EventSource,this._removeVerbsRequested=new n.EventSource,this._removeAdjectivesRequested=new n.EventSource,this._removeAdverbsRequested=new n.EventSource,this._setNounsColorRequested=new n.EventSource,this._setVerbsColorRequested=new n.EventSource,this._setAdjectivesColorRequested=new n.EventSource,this._setAdverbsColorRequested=new n.EventSource,this._nlxResponseReceived=new n.EventSource,this._addLineMarkersRequested=new n.EventSource,this._removeLineMarkersRequested=new n.EventSource,this._enableLineFocusRequested=new n.EventSource,this._disableLineFocusRequested=new n.EventSource,this._setNumberOfLinesInFocusRequested=new n.EventSource,this._upButtonClicked=new n.EventSource,this._downButtonClicked=new n.EventSource,this._enablePictureDictionaryRequested=new n.EventSource,this._disablePictureDictionaryRequested=new n.EventSource,this._hidePictureDictionaryPopupRequested=new n.EventSource,this._pictureDictionaryPopupHidden=new n.EventSource,this._languageChangeRequested=new n.EventSource,this._languageChangeRequestCompleted=new n.EventSource}initializeComprehensionToolsSettingsRequested(){return this._initializeComprehensionToolsSettingsRequested}initializePictureDictionarySettingsRequested(){return this._initializePictureDictionarySettingsRequested}initializeLineFocusSettingsRequested(){return this._initializeLineFocusSettingsRequested}comprehensionToolsInitialPaneStatusRequested(){return this._comprehensionToolsInitialPaneStatusRequested}readingPreferencesInitialPaneStatusRequested(){return this._readingPreferencesInitialPaneStatusRequested}settingsUpdateRequested(){return this._settingsUpdateRequested}addSyllablesRequested(){return this._addSyllablesRequested}addNounsRequested(){return this._addNounsRequested}addVerbsRequested(){return this._addVerbsRequested}addAdjectivesRequested(){return this._addAdjectivesRequested}addAdverbsRequested(){return this._addAdverbsRequested}removeSyllablesRequested(){return this._removeSyllablesRequested}removeNounsRequested(){return this._removeNounsRequested}removeVerbsRequested(){return this._removeVerbsRequested}removeAdjectivesRequested(){return this._removeAdjectivesRequested}removeAdverbsRequested(){return this._removeAdverbsRequested}setNounsColorRequested(){return this._setNounsColorRequested}setVerbsColorRequested(){return this._setVerbsColorRequested}setAdjectivesColorRequested(){return this._setAdjectivesColorRequested}setAdverbsColorRequested(){return this._setAdverbsColorRequested}onNLXResponseReceived(){return this._nlxResponseReceived}addLineMarkers(){return this._addLineMarkersRequested}removeLineMarkers(){return this._removeLineMarkersRequested}sendNLXRequest(e){this.postMessageToHost(r.ProcessNLXRequest,e.contextId,e.requestType,e.metaJson?e.metaJson:"",e.action?e.action:"",e.version?e.version:"",e.optionsJson?e.optionsJson:"",e.dataJson?e.dataJson:"")}sendProgressIndicatorVisibility(e){this.postMessageToHost(r.ProgressIndicatorVisibleHostMessage,e.toString())}sendTelemetryErrorMeasureNoPII(e,t){JSON.stringify({errorType:e,errorContent:t}),"ComprehensionTools"!==e&&super.sendTelemetryErrorMeasureNoPII(e,t)}onContentShifted(){return this._onContentShifted}enableLineFocusRequested(){return this._enableLineFocusRequested}disableLineFocusRequested(){return this._disableLineFocusRequested}setNumberOfLinesInFocusRequested(){return this._setNumberOfLinesInFocusRequested}upButtonClicked(){return this._upButtonClicked}downButtonClicked(){return this._downButtonClicked}enablePictureDictionaryRequested(){return this._enablePictureDictionaryRequested}disablePictureDictionaryRequested(){return this._disablePictureDictionaryRequested}hidePictureDictionaryPopupRequested(){return this._hidePictureDictionaryPopupRequested}pictureDictionaryPopupHidden(){return this._pictureDictionaryPopupHidden}languageChangeRequested(){return this._languageChangeRequested}languageChangeRequestCompleted(){return this._languageChangeRequestCompleted}sendComprehensionToolsPaneStatus(e){const t=e.posLanguageError,i=e.networkError,n=e.syllablesLanguageError;let o=JSON.stringify({isSyllablesActive:e.isSyllablesActive,syllablesError:n,isNounsActive:e.isNounsActive,isVerbsActive:e.isVerbsActive,isAdjectivesActive:e.isAdjectivesActive,isAdverbsActive:e.isAdverbsActive,posError:t,networkError:i,nounsColorIndex:e.nounsColorIndex,verbsColorIndex:e.verbsColorIndex,adjectivesColorIndex:e.adjectivesColorIndex,adverbsColorIndex:e.adverbsColorIndex,isLineMarkersActive:e.isLineMarkersActive,isProgressIndicatorVisible:e.isProgressIndicatorVisible,isPaneDisabled:e.isPaneDisabled});this.postMessageToHost(r.ComprehensionToolsPaneStatusHostMessage,o)}sendReadingPreferencesPaneStatus(e){const t=e.pictureDictionaryLanguageError,i=e.pictureDictionaryNetworkError,n=e.isPictureDictionaryActive&&e.isPictureDictionaryToggleInteractable&&(t!==s.NlxStatus.Success||i!==s.NlxStatus.Success);let o=JSON.stringify({lineFocusButtonVisibility:{isVisible:!0,isActive:e.isLineFocusActive,isEnabled:!0},lineCount:e.lineCount,maxLineCount:e.maxLineCount,isPictureDictionaryActive:e.isPictureDictionaryActive,isPictureDictionaryToggleInteractable:e.isPictureDictionaryToggleInteractable,networkError:i,languageError:t,hasError:n});this.postMessageToHost(r.ReadingPreferencesPaneStatusHostMessage,o)}sendPartsOfSpeechColorsForThemes(e){this.postMessageToHost(r.ComprehensionToolsPanePartsOfSpeechColorsForThemesMessage,e)}sendComprehensionToolsSettings(e){this.postMessageToHost(r.ComprehensionToolsPreferencesHostMessage,e)}sendLineFocusSettings(e){this.postMessageToHost(r.LineFocusPreferencesHostMessage,e)}onLineFocusExit(e){const t=JSON.stringify({top:e.top,bottom:e.bottom,left:e.left,right:e.right,width:e.width,height:e.height});this.postMessageToHost(r.LineFocusExitHostMessage,t)}sendPictureDictionarySettings(e){this.postMessageToHost(r.PictureDictionaryPreferencesHostMessage,e)}onMessageFromHost(e){switch(e[0]){case r.ComprehensionToolsInitializeSettingsCommand:this._initializeComprehensionToolsSettingsRequested.trigger(e);break;case r.ComprehensionToolsFetchInitialPaneStatusCommand:this._comprehensionToolsInitialPaneStatusRequested.trigger(void 0);break;case r.ReadingPreferencesFetchInitialPaneStatusCommand:this._readingPreferencesInitialPaneStatusRequested.trigger(void 0);break;case r.ComprehensionToolsSettingsUpdateCommand:this._settingsUpdateRequested.trigger(e[1]);break;case r.ComprehensionToolsAddSyllablesCommand:this._addSyllablesRequested.trigger();break;case r.ComprehensionToolsAddNounsCommand:this._addNounsRequested.trigger();break;case r.ComprehensionToolsAddVerbsCommand:this._addVerbsRequested.trigger();break;case r.ComprehensionToolsAddAdjectivesCommand:this._addAdjectivesRequested.trigger();break;case r.ComprehensionToolsAddAdverbsCommand:this._addAdverbsRequested.trigger();break;case r.ComprehensionToolsRemoveSyllablesCommand:this._removeSyllablesRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveNounsCommand:this._removeNounsRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveVerbsCommand:this._removeVerbsRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveAdjectivesCommand:this._removeAdjectivesRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveAdverbsCommand:this._removeAdverbsRequested.trigger(void 0);break;case r.ComprehensionToolsSetNounsColorCommand:this._setNounsColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsSetVerbsColorCommand:this._setVerbsColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsSetAdjectivesColorCommand:this._setAdjectivesColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsSetAdverbsColorCommand:this._setAdverbsColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsAddLineMarkersCommand:this._addLineMarkersRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveLineMarkersCommand:this._removeLineMarkersRequested.trigger(void 0);break;case r.ProcessNLXResponse:if(e[1]){let t=JSON.parse(e[1]);"Service"===t.processedBy&&t.responseData&&(t=this.convertToExpectedNLXResponseFormat(t)),this._nlxResponseReceived.trigger(t)}break;case r.LineFocusInitializeSettingsCommand:this._initializeLineFocusSettingsRequested.trigger(e);break;case r.LineFocusEnableCommand:this._enableLineFocusRequested.trigger(Number(e[1]));break;case r.LineFocusDisableCommand:this._disableLineFocusRequested.trigger(Number(e[1]));break;case r.LineFocusUpButtonClickedCommand:this._upButtonClicked.trigger(void 0);break;case r.LineFocusDownButtonClickedCommand:this._downButtonClicked.trigger(void 0);break;case r.LineFocusSetNumberOfLinesCommand:let t=Number(e[1]);this._setNumberOfLinesInFocusRequested.trigger(t);break;case r.ReadingViewContentShifted:this._onContentShifted.trigger(void 0);break;case r.PictureDictionaryInitializeSettingsCommand:this._initializePictureDictionarySettingsRequested.trigger(e);break;case r.PictureDictionaryEnableCommand:this._enablePictureDictionaryRequested.trigger(void 0);break;case r.PictureDictionaryDisableCommand:this._disablePictureDictionaryRequested.trigger(void 0);break;case r.LearningToolsLanguageChangeRequestedCommand:this._languageChangeRequested.trigger(void 0);break;case r.PictureDictionaryHidePopupCommand:this._hidePictureDictionaryPopupRequested.trigger(void 0);break;case r.PictureDictionaryPopupHiddenCommand:this._pictureDictionaryPopupHidden.trigger(void 0);break;case r.LearningToolsLanguageChangeRequestCompletedCommand:this._languageChangeRequestCompleted.trigger(void 0);break;default:super.onMessageFromHost(e)}}convertToExpectedNLXResponseFormat(e){let t=JSON.parse(e.responseData);return{contextId:e.contextId,responseType:e.responseType,metaJson:t.meta?JSON.stringify(t.meta):"",version:t.data.version?t.data.version:"",status:t.status?t.status:"",dataJson:t.data?JSON.stringify(t.data):"",errorJson:t.error?JSON.stringify(t.error):"",processedBy:e.processedBy}}}r.ShowProgressIndicatorCommand="ShowProgressIndicator",r.LineFocusEnableCommand="LineFocus_Enable",r.LineFocusDisableCommand="LineFocus_Disable",r.LineFocusSetNumberOfLinesCommand="LineFocus_SetNumberOfLines",r.LineFocusUpButtonClickedCommand="LineFocus_UpButtonClicked",r.LineFocusDownButtonClickedCommand="LineFocus_DownButtonClicked",r.ComprehensionToolsAddSyllablesCommand="ComprehensionTools_AddSyllables",r.ComprehensionToolsAddNounsCommand="ComprehensionTools_AddNouns",r.ComprehensionToolsAddVerbsCommand="ComprehensionTools_AddVerbs",r.ComprehensionToolsAddAdjectivesCommand="ComprehensionTools_AddAdjectives",r.ComprehensionToolsAddAdverbsCommand="ComprehensionTools_AddAdverbs",r.ComprehensionToolsRemoveSyllablesCommand="ComprehensionTools_RemoveSyllables",r.ComprehensionToolsRemoveNounsCommand="ComprehensionTools_RemoveNouns",r.ComprehensionToolsRemoveVerbsCommand="ComprehensionTools_RemoveVerbs",r.ComprehensionToolsRemoveAdjectivesCommand="ComprehensionTools_RemoveAdjectives",r.ComprehensionToolsRemoveAdverbsCommand="ComprehensionTools_RemoveAdverbs",r.ComprehensionToolsSetNounsColorCommand="ComprehensionTools_SetNounsColor",r.ComprehensionToolsSetVerbsColorCommand="ComprehensionTools_SetVerbsColor",r.ComprehensionToolsSetAdjectivesColorCommand="ComprehensionTools_SetAdjectivesColor",r.ComprehensionToolsSetAdverbsColorCommand="ComprehensionTools_SetAdverbsColor",r.ComprehensionToolsAddLineMarkersCommand="ComprehensionTools_AddLineMarkers",r.ComprehensionToolsRemoveLineMarkersCommand="ComprehensionTools_RemoveLineMarkers",r.ProcessNLXResponse="GrammarTools_Response",r.ComprehensionToolsInitializeSettingsCommand="ComprehensionTools_InitializeSettings",r.PictureDictionaryInitializeSettingsCommand="PictureDictionary_InitializeSettings",r.LineFocusInitializeSettingsCommand="LineFocus_InitializeSettings",r.ComprehensionToolsSettingsUpdateCommand="ComprehensionTools_SettingsUpdate",r.ComprehensionToolsFetchInitialPaneStatusCommand="ComprehensionTools_FetchInitialPaneStatus",r.PictureDictionaryEnableCommand="PictureDictionary_Enable",r.PictureDictionaryDisableCommand="PictureDictionary_Disable",r.PictureDictionaryPopupHiddenCommand="PictureDictionary_PopupHidden",r.PictureDictionaryHidePopupCommand="PictureDictionary_HidePopupCommand",r.ReadingViewContentShifted="ReadingView_ContentShifted",r.ReadingPreferencesFetchInitialPaneStatusCommand="ReadingPreference_FetchInitialPaneStatus",r.LearningToolsLanguageChangeRequestedCommand="LearningTools_LanguageChangeRequested",r.LearningToolsLanguageChangeRequestCompletedCommand="LearningTools_LanguageChangeRequestCompleted",r.ComprehensionToolsPreferencesHostMessage="GrammarTools_Preferences",r.ProcessNLXRequest="NLXRequest",r.ComprehensionToolsPaneStatusHostMessage="ComprehensionToolsPane_Status",r.ReadingPreferencesPaneStatusHostMessage="ReadingPreferencesPane_Status",r.ComprehensionToolsPanePartsOfSpeechColorsForThemesMessage="ComprehensionToolsPane_PartsOfSpeechColorsForThemes",r.PictureDictionaryPreferencesHostMessage="PictureDictionary_Preferences",r.LineFocusPreferencesHostMessage="LineFocus_Preferences",r.LineFocusExitHostMessage="LineFocus_ExitedMessage",r.ProgressIndicatorVisibleHostMessage="ComprehensionTools_SetProgressIndicatorVisibility",t.LearningToolsHostProxy=r},52:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HostProxy=void 0;const n=i(4134),o=i(8295),s=i(2174),r=i(3525),a=i(7083);class d{constructor(e){this._messageRuntime=e,this._readOutLoudOnContextFromFrame=new n.EventSource,this._readOutLoudFocusChanged=new n.EventSource,this._readOutLoudStartRequested=new n.EventSource,this._readOutLoudStopRequested=new n.EventSource,this._readOutLoudPauseRequested=new n.EventSource,this._readOutLoudNextRequested=new n.EventSource,this._readOutLoudPreviousRequested=new n.EventSource,this._readOutLoudPreloadRequest=new n.EventSource,this._readOutLoudChangeRateRequested=new n.EventSource,this._readOutLoudChangeVoiceRequested=new n.EventSource,this._readOutLoudSpeechPrefChanged=new n.EventSource,this._readOutLoudInitializeSettingsRequested=new n.EventSource,this._languageDetected=new n.EventSource,this._sdPrimaryContentFetched=new n.EventSource,this._telemetryClient=new a.TelemetryClient(this),this._messageRuntime.onMessageFromHost().subscribe((e=>{this.onMessageFromHost(e)}))}getTelemetryClient(){return this._telemetryClient}readOutLoudSpeechPrefChanged(){return this._readOutLoudSpeechPrefChanged}readOutLoudFocusChanged(){return this._readOutLoudFocusChanged}readOutLoudOnContextFromFrame(){return this._readOutLoudOnContextFromFrame}readOutLoudStartRequested(){return this._readOutLoudStartRequested}readOutLoudStopRequested(){return this._readOutLoudStopRequested}readOutLoudPauseRequested(){return this._readOutLoudPauseRequested}readOutLoudNextRequested(){return this._readOutLoudNextRequested}readOutLoudPreviousRequested(){return this._readOutLoudPreviousRequested}readOutLoudPreloadRequested(){return this._readOutLoudPreloadRequest}readOutLoudChangeVoiceRequested(){return this._readOutLoudChangeVoiceRequested}readOutLoudChangeRateRequested(){return this._readOutLoudChangeRateRequested}readOutLoudInitializeSettingsRequested(){return this._readOutLoudInitializeSettingsRequested}languageDetected(){return this._languageDetected}sdPrimaryContentFetched(){return this._sdPrimaryContentFetched}ensureReadOutLoudInit(){}onReadAloudInitiated(){}sendSpeechPreferences(e){this.postMessageToHost(d.ReadOutLoudSpeechPreferencesHostMessage,e)}sendReadOutLoudFocusReceived(e){this.postMessageToHost(d.ReadOutLoudFocusReceivedHostMessage,e.frameTreeNodeId.toString(),e.processId.toString())}sendContextToFocusedFrame(e){this.postMessageToHost(d.ReadOutLoudSendContextToFrameHostMessage,JSON.stringify(e))}sendReadOutLoudStatus(e,t,i,n){let o=t===r.ReadingState.Playing,s=t===r.ReadingState.Playing||t===r.ReadingState.Paused||t==r.ReadingState.InteractionsDisabled||t==r.ReadingState.Uninitialized,a=t!=r.ReadingState.InteractionsDisabled&&t!=r.ReadingState.Uninitialized,l=JSON.stringify({previousButtonVisibility:{isVisible:s,isActive:!0,isEnabled:o},nextButtonVisibility:{isVisible:s,isActive:!0,isEnabled:o},togglePlaybackButtonVisibility:{isVisible:s,isActive:!o,isEnabled:a},settingsButtonVisibility:{isVisible:s,isActive:!0,isEnabled:a},settingsButtonWarningVisibility:{isVisible:s&&!i,isActive:!0,isEnabled:!0},closeButtonVisibility:{isVisible:s,isActive:!0,isEnabled:!0},textReadingState:r.ReadingState[t].toLowerCase()}),u="";n&&(u=JSON.stringify({top:n.top,bottom:n.bottom,left:n.left,right:n.right,width:n.width,height:n.height})),this.postMessageToHost(d.ReadOutLoudStatusHostMessage,e.frameTreeNodeId.toString(),e.processId.toString(),l,r.ReadingState[t],u)}sendSpeechSettings(e,t,i){let n=JSON.stringify({supportedVoices:i,currentVoiceURI:t,currentReadingRate:e});this.postMessageToHost(d.ReadOutLoudSpeechSettingsHostMessage,n)}sendTelemetryErrorMeasureNoPII(e,t){let i=JSON.stringify({errorType:e,errorContent:t});this.postMessageToHost(d.ReadOutLoudJsErrorTelemetryHostMessage,i)}sendTelemetry(e,t,i,...n){n&&n.length>0?(n.unshift(i),n.unshift(t),n.unshift(e)):n=[e,t,i],this.postMessageToHost(d.TelemetryMessage,...n)}detectLanguage(e){this.postMessageToHost(d.DetectLanguageHostMessage,e.frameTreeNodeId.toString(),e.processId.toString())}detectTextLanguage(e){return this._messageRuntime.detectTextLanguage(e)}fetchSDPrimaryContent(){this.postMessageToHost(d.ReadAloudFetchSDPrimaryContent)}raiseMessageFromHost(e){this.onMessageFromHost(e)}postMessageToHost(e,...t){this._messageRuntime.postMessageToHost(e,t)}onMessageFromHost(e){switch(e[0]){case d.ReadOutLoudFocusChangedCommand:this._readOutLoudFocusChanged.trigger(void 0);break;case d.ReadOutLoudOnContextFromFrameCommand:let t=o.JsonUtilities.parseJsonOrNull(e[1],"ReadOutLoud",s.ReadAloudErrors[s.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences_ScopeState],this._telemetryClient);this._readOutLoudOnContextFromFrame.trigger(t);break;case d.ReadOutLoudStartCommand:let i=this.parseStartParams(e);this._readOutLoudStartRequested.trigger(i);break;case d.ReadOutLoudStopCommand:this._readOutLoudStopRequested.trigger(void 0);break;case d.ReadOutLoudPauseCommand:this._readOutLoudPauseRequested.trigger(void 0);break;case d.ReadOutLoudNextCommand:this._readOutLoudNextRequested.trigger(void 0);break;case d.ReadOutLoudPreviousCommand:this._readOutLoudPreviousRequested.trigger(void 0);break;case d.ReadOutLoudPreloadCommand:let n=Number(e[1]),r=Number(e[2]);this._readOutLoudPreloadRequest.trigger([n,r]);break;case d.ReadOutLoudChangeVoiceCommand:this._readOutLoudChangeVoiceRequested.trigger(e[1]),this.postMessageToHost(d.ReadAloudExplicitVoiceChangeByUser);break;case d.ReadOutLoudChangeRateCommand:let a=Number(e[1]);this._readOutLoudChangeRateRequested.trigger(a);break;case d.PreferencesChangedCommand:this.handlePreferencesChanged(e);break;case d.ReadOutLoudInitializeSettingsCommand:this._readOutLoudInitializeSettingsRequested.trigger(e);break;case d.LanguageDetected:this._languageDetected.trigger(e[1]);break;case d.ReadOutLoudFirstContentfulPaintLoadedCommand:break;case d.ReadAloudSDPrimaryContentFetched:this._sdPrimaryContentFetched.trigger(e[1]);break;default:throw Error("Unknown Command")}}parseStartParams(e){let t={startRequestTime:0,startType:r.StartType.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},i=parseFloat(e[1]);if(i&&(t.startRequestTime=i),e.length>2){let i=e[2];if(i&&(t.startType=r.StartType[i],t.startType===r.StartType.ReadFromPoint)){let i=parseInt(e[3]);i&&(t.startPosition.x=i);let n=parseInt(e[4]);n&&(t.startPosition.y=n),e[5]&&(t.needsTransformOfStartPosition="true"===e[5])}}return t}handlePreferencesChanged(e){if(e[1]!==d.SpeechPreferences)throw Error("Unknown Preferences");this._readOutLoudSpeechPrefChanged.trigger(e[2])}}d.ReadOutLoudStartCommand="ReadOutLoud_Start",d.ReadOutLoudStopCommand="ReadOutLoud_Stop",d.ReadOutLoudPauseCommand="ReadOutLoud_Pause",d.ReadOutLoudNextCommand="ReadOutLoud_Next",d.ReadOutLoudPreviousCommand="ReadOutLoud_Previous",d.ReadOutLoudPreloadCommand="ReadOutLoud_Preload",d.ReadOutLoudChangeVoiceCommand="ReadOutLoud_ChangeVoice",d.ReadOutLoudChangeRateCommand="ReadOutLoud_ChangeRate",d.ReadOutLoudFirstContentfulPaintLoadedCommand="ReadOutLoud_FirstContentfulPaintLoaded",d.ReadOutLoudFocusChangedCommand="ReadOutLoud_FocusChanged",d.ReadOutLoudOnContextFromFrameCommand="ReadOutLoud_OnContextFromFrame",d.PreferencesChangedCommand="PreferencesChanged",d.ReadOutLoudInitializeSettingsCommand="ReadOutLoud_InitializeSettings",d.LanguageDetected="ReadAloud_DetectedLanguage",d.OpenVoiceOptionsPane="ReadAloud_ShowSettings",d.CloseVoiceOptionsPane="ReadAloud_HideSettings",d.ReadAloudSDPrimaryContentFetched="ReadAloud_SDPrimaryContentFetched",d.ReadOutLoudJsErrorTelemetryHostMessage="ReadOutLoud_Telemetry_JsError",d.TelemetryMessage="Telemetry",d.ReadOutLoudSpeechSettingsHostMessage="ReadOutLoud_SpeechSettings",d.ReadOutLoudSpeechPreferencesHostMessage="ReadOutLoud_SpeechPreferences",d.ReadOutLoudStatusHostMessage="ReadOutLoud_Status",d.ReadOutLoudFocusReceivedHostMessage="ReadOutLoud_FocusReceived",d.ReadOutLoudSendContextToFrameHostMessage="ReadOutLoud_SendContextToFocusedFrame",d.VoiceOptionsPaneOpened="ReadAloud_VoiceOptionsPaneOpened",d.VoiceOptionsPaneClosed="ReadAloud_VoiceOptionsPaneClosed",d.ReadAloudExplicitVoiceChangeByUser="ReadAloud_ExplicitVoiceChangeByUser",d.ReadAloudFetchSDPrimaryContent="ReadAloud_FetchSDPrimaryContent",d.SpeechPreferences="SpeechPreferences",d.DetectLanguageHostMessage="ReadAloud_DetectLanguage",t.HostProxy=d},8427:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CuratedContentReadingUnitNavigator=void 0;const n=i(5680),o=i(6666),s=i(9250),r=i(2717),a=i(6773),d=i(2174),l=i(8988);t.CuratedContentReadingUnitNavigator=class{constructor(e,t){this._readableContent=e,this._telemetryClient=t,this.resetReadingPosition()}setStartingNode(e,t){throw new Error("Method not implemented.")}setEndingNode(e,t=0){throw new Error("Method not implemented.")}resetEndNode(){}getCurrentUnit(){return this._currentStringIndex<0||0===this._readingUnits.length||this._currentStringIndex>=this._readingUnits.length?null:this._readingUnits[this._currentStringIndex]}moveByAUnit(e){if(e===a.UnitDirection.Next){const e=this.findNextUnit(!0);switch(e.status){case r.UnitNavigationStatus.Success:this._currentStringIndex++;break;case r.UnitNavigationStatus.ContentEnded:this._currentStringIndex===this._readableContent.length-1&&this._currentStringIndex++;break;case r.UnitNavigationStatus.Error:this._currentStringIndex=-1}return e.status}if(e===a.UnitDirection.Previous)return this._currentStringIndex<=0?(0===this._currentStringIndex&&this._currentStringIndex--,r.UnitNavigationStatus.ContentEnded):(this._currentStringIndex--,this.resetReadingUnitStartTextOffset(this._currentStringIndex),r.UnitNavigationStatus.Success);throw new Error("moveByAUnit should not be called with Direction as Current")}resetReadingPosition(){this._readingUnits=[],this._currentStringIndex=-1,n.FindInPage.reset()}getNextUnit(){let e=this.findNextUnit(!1);return e.status===r.UnitNavigationStatus.Success?e.unit:null}logContentMismatchTelemetry(){var e,t;null===(e=this._telemetryClient)||void 0===e||e.reportReadOutLoudSmartReadStatus(d.SmartReadStatus.ContentNoMatch);const i=this._readableContent.join("").length;if(i>0){const e=this._readableContent.slice(0,this._currentStringIndex+1).join("").length;null===(t=this._telemetryClient)||void 0===t||t.reportReadOutLoudSmartReadContentMatch(100*e/i)}}findNextUnit(e){const t=this._currentStringIndex+1;if(t>=this._readableContent.length)return{status:r.UnitNavigationStatus.ContentEnded,unit:null};if(this._readingUnits.length&&te)),l=new s.HTMLReadingUnit(d,0);return this._readingUnits.push(l),{status:r.UnitNavigationStatus.Success,unit:this._readingUnits[t]}}nodeFilter(e){return!o.ReadingNavigationUtils.shouldSkipNode(e)}resetReadingUnitStartTextOffset(e){e<0||e>=this._readingUnits.length||(this._readingUnits[e].textStartOffset=0)}mayBeUseH1TagForNavigation(){if(-1===this._currentStringIndex){const e=this._readableContent[this._currentStringIndex+1],t=o.ReadingNavigationUtils.findFirsth1Tag(document);if(!o.ReadingNavigationUtils.shouldSkipNode(t)&&l.StringUtilities.ExactMatchWithoutSpaceAndSpecialChar(t.textContent,e)){const e=o.ReadingNavigationUtils.getTextNodes(t);return new s.HTMLReadingUnit(e,0)}}return null}}},6773:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.UnitDirection=void 0,(i=t.UnitDirection||(t.UnitDirection={}))[i.Next=0]="Next",i[i.Previous=1]="Previous",i[i.Current=2]="Current"},963:function(e,t,i){var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLReadingNavigator=void 0;const o=i(5157),s=i(4783),r=i(1050),a=i(2717),d=i(7930),l=i(8427),u=i(6773),c=i(3525),h=i(9919),g=i(9660),m=i(2174),_=i(6666);class p extends o.ReadingNavigator{constructor(e,t){super(),this._contentProvider=e,this._telemetryClient=t,this._readingUnit=null,this._startParams=null}initializeAsync(e){var t;return this._startParams=e,this.isCuratedContentNavigatorInUse()&&e.startType===c.StartType.ResumeFromSelection&&(null===(t=this._telemetryClient)||void 0===t||t.reportReadOutLoudSmartReadStatus(m.SmartReadStatus.UserInitiatedFallbackContextMenu)),this.isCuratedContentBasedNavigationSupported(e)?this.ensureAndInitializeCuratedContentReadingUnitNavigator(e):this.ensureAndInitializeReadingUnitNavigator(e)}reset(){this._readingUnit=null,this._readingUnitNavigator.resetEndNode()}moveToPreviousUnitAsync(){return n(this,void 0,void 0,(function*(){return this._readingUnit=yield this.moveAndGetReadingUnit(u.UnitDirection.Previous),this._readingUnit?Promise.resolve(!0):Promise.resolve(!1)}))}moveToNextUnitAsync(){return n(this,void 0,void 0,(function*(){return this._readingUnit=yield this.moveAndGetReadingUnit(u.UnitDirection.Next),this._readingUnit?Promise.resolve(!0):Promise.resolve(!1)}))}getCurrentUnit(){return this._readingUnit}getNextUnit(){return this._readingUnitNavigator.getNextUnit()}setCurrentUnitTextOffset(e){this._readingUnit.textStartOffset=e}resetCurrentUnitEndOffset(){this._readingUnit.textEndOffset=null,this._readingUnitNavigator.resetEndNode()}isCuratedContentNavigatorInUse(){return this._readingUnitNavigator instanceof l.CuratedContentReadingUnitNavigator}setStartingNodeAtCoordinates(e,t){let i=e=>e.getBoundingClientRect(),n=h.DomUtilties.getTextNodeFromPoint(e,t.x,t.y,i);if(n){let o=h.DomUtilties.getOffsetInTextNodeForLineAtYPosition(e,n,t.y,i);return this._readingUnitNavigator.setStartingNode(n,o),!0}return!1}isReadAloudCuratedContentEnabled(){return!(this._contentProvider.getContentType()!==r.ContentType.Web||!learningToolsNativeHandler||!learningToolsNativeHandler.isReadAloudCuratedContentEnabled)&&learningToolsNativeHandler.isReadAloudCuratedContentEnabled()}sourceNodeOccursBeforeInViewport(e,t){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}ensureAndInitializeReadingUnitNavigator(e){let t=this._contentProvider.getCurrentDocument();if(this._readingUnitNavigator&&this._readingUnitNavigator instanceof d.ReadingUnitNavigator||(this._readingUnitNavigator=new d.ReadingUnitNavigator),e.startType===c.StartType.ReadFromFirstVisibleElement){let i=window.pageYOffset||document.documentElement.scrollTop;if(e.startPosition.y=i,this.setStartingNodeAtCoordinates(t,e.startPosition))return Promise.resolve(!0)}else if(e.startType===c.StartType.ReadFromPoint&&(e.needsTransformOfStartPosition&&(e.startPosition=g.ScreenCoordinateUtilities.transformPointFromMainToCurrentFrame(e.startPosition),e.needsTransformOfStartPosition=!1),this.setStartingNodeAtCoordinates(t,e.startPosition)))return Promise.resolve(!0);let i=t.getSelection();if(0===i.rangeCount){if(null!==this._readingUnit)return Promise.resolve(!0);this.resetSelection(!1),i=t.getSelection()}if(e.startType===c.StartType.Default)if(this.resetSelection(!0),i=t.getSelection(),this.isReadAloudCuratedContentEnabled()){let e=_.ReadingNavigationUtils.findFirsth1Tag(t);this._readingUnitNavigator.setStartingNode(e&&this.sourceNodeOccursBeforeInViewport(e,t.body)?e:t.body)}else this._readingUnitNavigator.setStartingNode(t.body);if(0!==i.rangeCount){let n=i.getRangeAt(0),o=n.startContainer;if(o.ownerDocument===t){const i=h.DomUtilties.getParentElement(o);if(e.startType===c.StartType.ReadSelection&&(n.endContainer.nodeType===Node.TEXT_NODE?this._readingUnitNavigator.setEndingNode(n.endContainer,n.endOffset):n.endContainer.nodeType===Node.ELEMENT_NODE&&this._readingUnitNavigator.setEndingNode(n.endContainer)),o.nodeType===Node.TEXT_NODE){if(this._readingUnitNavigator.setStartingNode(o,n.startOffset),this.collapseSelectionToNode(i,0),e.startType===c.StartType.Default&&this.isReadAloudCuratedContentEnabled()){let e=_.ReadingNavigationUtils.findFirsth1Tag(t);e&&this.sourceNodeOccursBeforeInViewport(e,i)&&(this._readingUnitNavigator.setStartingNode(e),this.collapseSelectionToNode(i,0))}}else if(o.nodeType===Node.ELEMENT_NODE){const s=h.DomUtilties.getChildNodes(o);if(0===s.length)this._readingUnitNavigator.setStartingNode(o),this.collapseSelectionToNode(o,0);else if(n.startOffset>=s.length)this._readingUnitNavigator.setStartingNode(o.nextSibling),this.collapseSelectionToNode(o,0);else if(this._readingUnitNavigator.setStartingNode(s[n.startOffset]),this.collapseSelectionToNode(o,0),this.collapseSelectionToNode(i,0),e.startType===c.StartType.Default&&this.isReadAloudCuratedContentEnabled()){let e=_.ReadingNavigationUtils.findFirsth1Tag(t);e&&this.sourceNodeOccursBeforeInViewport(e,i)&&(this._readingUnitNavigator.setStartingNode(e),this.collapseSelectionToNode(i,0))}}}else if(e.startType===c.StartType.Default&&this.isReadAloudCuratedContentEnabled()){let e=_.ReadingNavigationUtils.findFirsth1Tag(t),i=this.sourceNodeOccursBeforeInViewport(e,t.body);this._readingUnitNavigator.setStartingNode(e&&i?e:t.body),this.collapseSelectionToNode(e&&i?e:t.body,0)}else this._readingUnitNavigator.setStartingNode(t.body),this.collapseSelectionToNode(t.body,0)}return Promise.resolve(!0)}ensureAndInitializeCuratedContentReadingUnitNavigator(e){var t,i,o,r;return n(this,void 0,void 0,(function*(){if(null===(t=this._telemetryClient)||void 0===t||t.reportReadOutLoudSmartReadStatus(m.SmartReadStatus.Start),!this._readingUnitNavigator||!this.isCuratedContentNavigatorInUse()){let t=[];try{if(t=yield this._contentProvider.getPrimaryContent(),!t||t.length<1)return null===(i=this._telemetryClient)||void 0===i||i.reportReadOutLoudSmartReadStatus(m.SmartReadStatus.ContentEmptyNonPaywalled),this.ensureAndInitializeReadingUnitNavigator(e);if(t.join("").length<500)return null===(o=this._telemetryClient)||void 0===o||o.reportReadOutLoudSmartReadStatus(m.SmartReadStatus.ContentLow),this.ensureAndInitializeReadingUnitNavigator(e)}catch(t){if(t instanceof Error){let e=s.SmartReadAloudUtils.getSmartReadStatusFromError(t);e&&(null===(r=this._telemetryClient)||void 0===r||r.reportReadOutLoudSmartReadStatus(e))}return this.ensureAndInitializeReadingUnitNavigator(e)}this._readingUnitNavigator=new l.CuratedContentReadingUnitNavigator(t,this._telemetryClient)}return this._readingUnitNavigator.resetReadingPosition(),Promise.resolve(!0)}))}moveAndGetReadingUnit(e){return n(this,void 0,void 0,(function*(){return this._readingUnitNavigator.moveByAUnit(e)===a.UnitNavigationStatus.Error&&this.isCuratedContentNavigatorInUse()&&(yield this.overrideAndMoveUsingLegacyUnitNavigator(e)),this._readingUnitNavigator.getCurrentUnit()}))}overrideAndMoveUsingLegacyUnitNavigator(e){return n(this,void 0,void 0,(function*(){this._readingUnit?(this._readingUnitNavigator=new d.ReadingUnitNavigator,this._readingUnitNavigator.setStartingNode(this._readingUnit.contentNodes.pop()),this._readingUnitNavigator.moveByAUnit(e),this._readingUnitNavigator.moveByAUnit(e)):(yield this.ensureAndInitializeReadingUnitNavigator(this._startParams),this._readingUnitNavigator.moveByAUnit(e))}))}}t.HTMLReadingNavigator=p},9250:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLReadingUnit=void 0;const n=i(6984);class o extends n.ReadingUnit{constructor(e,t,i){super(t,i),this._contentNodes=e,this._textContents=this.updateTextContents()}get contentNodes(){return this._textContents=this.updateTextContents(),this._contentNodes}set contentNodes(e){this._contentNodes=e,this._textContents=this.updateTextContents()}get textContents(){return this._textContents}updateTextContents(){return this._contentNodes.map((e=>o.EmptyTagNodeList.includes(e.nodeName.toUpperCase())?" ":e.textContent))}}o.EmptyTagNodeList=["BR","HR","IMG","INPUT"],t.HTMLReadingUnit=o},190:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationType=void 0,(i=t.DecorationType||(t.DecorationType={}))[i.Word=1]="Word",i[i.Line=2]="Line",i[i.Background=4]="Background",i[i.All=7]="All",i[i.ExceptWord=6]="ExceptWord",i[i.WordAndLine=3]="WordAndLine"},2717:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.UnitNavigationStatus=void 0,(i=t.UnitNavigationStatus||(t.UnitNavigationStatus={}))[i.ContentEnded=0]="ContentEnded",i[i.Error=1]="Error",i[i.Success=2]="Success"},9907:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudHighlighter=void 0;const n=i(4409),o=i(8988),s=i(9919);(t.ReadOutLoudHighlighter||(t.ReadOutLoudHighlighter={})).surroundTextBySpans=function(e,t,i){let r=n.Highlighter.surroundTextByTag("msreadoutspan",t,(t=>o.StringUtilities.NONEMPTY_STRING_REGEX.test(t.textContent)&&e.contentNodes.findIndex((e=>e===t))>=0),((t,i)=>{let n=e.contentNodes.findIndex((e=>e===t));n>=0&&e.contentNodes.splice(n,1,...i)}),i),a={spans:r.value(),readingUnit:e};return{value:()=>a,release:()=>{r.release(),a.readingUnit.contentNodes=a.readingUnit.contentNodes.filter((e=>s.DomUtilties.isInDocument(e,e.ownerDocument)))}}}},5157:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingNavigator=void 0,t.ReadingNavigator=class{}},9508:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingRangeManipulations=void 0;const n=i(9919),o=i(6666),s=i(8988);!function(e){function t(e,i){var o=i;if(e.endContainer.nodeType===Node.TEXT_NODE){let t=e.endContainer.textContent.length;if(e.endOffset0){let t=e.endContainer.nodeType===Node.ELEMENT_NODE?n.DomUtilties.getChildNodes(e.endContainer)[e.endOffset-1]:e.endContainer,i=a(t.ownerDocument.body,t);if(i&&!l(i)){let t=Math.min(o,i.textContent.length);o-=t,e.setEnd(i,t)}}var s=o0&&t(e,o),s}function i(e,t){var n=t;if(e.startContainer.nodeType===Node.TEXT_NODE&&e.startOffset>0&&!l(e.startContainer)){let t=Math.max(0,e.startOffset-n);n-=e.startOffset-t,e.setStart(e.startContainer,t)}if(n>0){let t=e.startContainer.nodeType===Node.ELEMENT_NODE?e.startContainer.childNodes[e.startOffset]:e.startContainer,i=r(t.ownerDocument.body,t);if(i&&!l(i)){let t=i.textContent.length,o=Math.max(0,t-n);n-=t-o,e.setStart(i,o)}}var o=n0&&i(e,n),o}function r(e,t){let i=t;do{i=o.ReadingNavigationUtils.shouldSkipNode(i)?o.ReadingNavigationUtils.getPreviousSubtreeNode(e,i):o.ReadingNavigationUtils.getPreviousReadingNode(e,i)}while(i&&(i.nodeType!==Node.TEXT_NODE||l(i)));return i!==t?i:null}function a(e,t){let i=t;do{i=o.ReadingNavigationUtils.shouldSkipNode(i)?o.ReadingNavigationUtils.getNextSubtreeNode(e,i):o.ReadingNavigationUtils.getNextReadingNode(e,i)}while(i&&(i.nodeType!==Node.TEXT_NODE||l(i)));return i!==t?i:null}function d(e,t){if(1===e.length)return 0===e.item(0).top&&0===e.item(0).bottom&&0===e.item(0).left&&0===e.item(0).right;if(e.length>1){let i=e.item(0),n=e.item(e.length-1),o=i.top,s=i.bottom,r=n.top,a=n.bottom,d=i.right,l=n.left,u=i.height,c=n.height;if(u+c<=a-o||a-o<=0)return!0;if(u+c>a-o&&(o!=r||s!=a))return t?i.lefto||l>d:l=r[l].length;)d-=r[l].length,l++;var u=o=l;if(u===a)return null;let c=s[u].length-d;if(i>c){for(i-=c,u++;us[u].length;)i-=s[u].length,u++;if(u>=a)return null}else i+=d;let h=s[0].ownerDocument;if(n.DomUtilties.isInDocument(s[o],h)&&n.DomUtilties.isInDocument(s[u],h)){let e=h.createRange();return e.setStart(s[o],d),e.setEnd(s[u],i),e}return null},e.expandRangeEnd=t,e.expandRangeStart=i,e.expandToLineRange=function(e,n,o){let s=e.cloneRange();return function(e,t,n){let o=e.startContainer,s=e.startOffset;[10,1].forEach((r=>{for(;i(e,r);){var a=t(e);if(0===a.length||d(a,n))break;o=e.startContainer,s=e.startOffset}e.setStart(o,s)}))}(s,o,n),function(e,i,n){let o=e.endContainer,s=e.endOffset;[10,1].forEach((r=>{for(;t(e,r);){var a=i(e);if(0===a.length||d(a,n))break;o=e.endContainer,s=e.endOffset}e.setEnd(o,s)}))}(s,o,n),s},e.getPreviousExpandableNode=r,e.getNextExpandableNode=a}(t.ReadingRangeManipulations||(t.ReadingRangeManipulations={}))},6984:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingUnit=void 0,t.ReadingUnit=class{constructor(e,t){this._textStartOffset=e,this._textEndOffset=t||null}get textStartOffset(){return this._textStartOffset}set textStartOffset(e){this._textStartOffset=e}get textEndOffset(){return this._textEndOffset}set textEndOffset(e){this._textEndOffset=e}}},7930:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingUnitNavigator=void 0;const n=i(9919),o=i(9250),s=i(2717),r=i(6773),a=i(6666);class d{constructor(){this._currentUnit=null}setStartingNode(e,t){this._direction=r.UnitDirection.Next,this._currentUnit=null,this._rootNode=e?e.ownerDocument.body:null,this._currentUnitContainer=a.ReadingNavigationUtils.getUnitContainer(e),this._currentNode=e;let i=e;for(;i&&i!==this._currentUnitContainer&&!a.ReadingNavigationUtils.isUnitContainer(i);)this._currentNode=i,i=i.previousSibling?i.previousSibling:n.DomUtilties.getParentNode(i);for(;this._currentNode&&a.ReadingNavigationUtils.shouldSkipNode(this._currentNode);)this._currentNode=a.ReadingNavigationUtils.getNextSubtreeNode(this._rootNode,this._currentNode);e&&this._currentNode&&(e===this._currentNode||e.compareDocumentPosition(this._currentNode)&Node.DOCUMENT_POSITION_PRECEDING)&&(this._textStartOffset=t||0,this._offsetNode=this._currentNode===e?null:e)}setEndingNode(e,t=0){this._endNode=e,this._textEndOffset=t}resetEndNode(){this._endNode=null,this._textEndOffset=null}getCurrentUnit(){return this._currentUnit}moveByAUnit(e){let t,i=0,n=!0;if(e===r.UnitDirection.Current)throw new Error("moveByAUnit should not be called with Direction as Current");if(this._rootNode&&this._currentUnitContainer)for(this.adjustCurrentNodeForDirection(e),t=[];this._currentNode;){n&&(n=this._offsetNode&&!!(this._offsetNode.compareDocumentPosition(this._currentNode)&Node.DOCUMENT_POSITION_PRECEDING));var d=!1;if(e===r.UnitDirection.Next&&this._currentNode===this._currentUnitContainer.nextSibling||e===r.UnitDirection.Previous&&this._currentNode===this._currentUnitContainer.previousSibling)this._currentUnitContainer=a.ReadingNavigationUtils.getUnitContainer(this._currentNode),d=!0;else for((this._currentNode.nodeType===Node.TEXT_NODE||o.HTMLReadingUnit.EmptyTagNodeList.includes(this._currentNode.nodeName.toUpperCase()))&&(t.push(this._currentNode),n&&(i+=this._currentNode.textContent.length)),this._currentNode=a.ReadingNavigationUtils.moveByANode(this._rootNode,this._currentNode,e),a.ReadingNavigationUtils.isUnitContainer(this._currentNode)&&(this._currentUnitContainer=this._currentNode,d=!0);this._currentNode&&a.ReadingNavigationUtils.shouldSkipNode(this._currentNode);)this._currentNode=a.ReadingNavigationUtils.moveByASubtree(this._rootNode,this._currentNode,e),a.ReadingNavigationUtils.isUnitContainer(this._currentNode)&&(this._currentUnitContainer=this._currentNode,d=!0);if(d){if(!a.ReadingNavigationUtils.areEmptyOrWhiteSpaceTextNodes(t))break;n=!1,i=0,this._textStartOffset=0,this._offsetNode=null,t=[]}}return t&&t.length>0&&e==r.UnitDirection.Previous&&t.reverse(),this._currentUnit=a.ReadingNavigationUtils.createReadingUnit(t,this._textStartOffset+i),this.setEndOffsetInCurrentUnit(),this._offsetNode=null,this._textStartOffset=0,this._currentUnit?s.UnitNavigationStatus.Success:s.UnitNavigationStatus.ContentEnded}resetReadingPosition(){this.resetEndNode(),this.setStartingNode(document.body),this._currentUnit=null}getNextUnit(){let e=new d;return Object.assign(e,this),e.moveByAUnit(r.UnitDirection.Next)==s.UnitNavigationStatus.Success?e.getCurrentUnit():null}setEndOffsetInCurrentUnit(){if(this._endNode){let e=0,t=!1;for(let i=0;i0?(this._currentNode=e===r.UnitDirection.Next?a.ReadingNavigationUtils.getNextReadingNode(this._rootNode,this._currentUnit.contentNodes[this._currentUnit.contentNodes.length-1]):a.ReadingNavigationUtils.getPreviousReadingNode(this._rootNode,this._currentUnit.contentNodes[this._currentUnit.contentNodes.length-1]),this._currentUnitContainer=a.ReadingNavigationUtils.getUnitContainer(this._currentNode)):this._currentNode=this._rootNode,this._direction=e)}}t.ReadingUnitNavigator=d},6860:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudEventHandlers=void 0;const n=i(3525);class o{constructor(e,t,i){this._releasables=[],this._isInitialized=!1,this._hostProxy=e,this._mainViewModel=t,this._previousReadingState=n.ReadingState.Stopped,this._currentFrame=null,this._pendingContext=null,this._speechPreferences=null,this._enableOnlineVoiceFre=!1,i&&window.addEventListener("focus",(()=>{this._hostProxy.sendReadOutLoudFocusReceived(this._currentFrame)})),window.addEventListener("beforeunload",(()=>{if(this._settingsViewModel&&this._readOutLoudViewModel){let e=this._readOutLoudViewModel.getReadingState();e!==n.ReadingState.Playing&&e!==n.ReadingState.Paused||(window.self===window.top?(this._readOutLoudViewModel.stopReading(),this.sendReadOutLoudStatus(n.ReadingState.Stopped,!0)):(this._readOutLoudViewModel.pauseReading(!1),this.sendReadOutLoudStatus(n.ReadingState.Paused,!0)))}})),this.registerHostEventHandlers()}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._readOutLoudViewModel=null,this._settingsViewModel=null,this._isInitialized=!1,this._pendingContext=null}initialize(e){if(this._mainViewModel.initializeReadOutLoud(e,this._enableOnlineVoiceFre),this._readOutLoudViewModel=this._mainViewModel.getReadOutLoudViewModel(),this._settingsViewModel=this._mainViewModel.getReadOutLoudSettingsViewModel(),this._readOutLoudViewModel&&this._settingsViewModel){let e=()=>{let e=this._settingsViewModel.getVoice(),t=this._settingsViewModel.getDropDownOptionsForVoices();e&&t&&this._hostProxy.sendSpeechSettings(this._settingsViewModel.getReadingRate(),e.name,t)},t=e=>{this._readOutLoudViewModel.getReadingState()!==n.ReadingState.Uninitialized&&this._hostProxy.sendSpeechPreferences(e)};this._releasables.push(this._settingsViewModel.rateChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.voiceChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.voicesChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.speechPreferencesChanged().subscribe((e=>{this._speechPreferences=e,t(e)}))),this._releasables.push(this._settingsViewModel.compatibleVoiceAvailableChanged().subscribe((()=>{this.sendReadOutLoudStatus(this._readOutLoudViewModel.getReadingState(),this._settingsViewModel.getCompatibleVoiceAvailable(),this._readOutLoudViewModel.getWordRect())}))),this._releasables.push(this._readOutLoudViewModel.readingStateChanged().subscribe((()=>{this.sendReadOutLoudStatus(this._readOutLoudViewModel.getReadingState(),this._settingsViewModel.getCompatibleVoiceAvailable(),this._readOutLoudViewModel.getWordRect())})))}this._isInitialized=!0}registerHostEventHandlers(){var e;this._hostProxy.readOutLoudInitializeSettingsRequested().subscribe((e=>{5==e.length&&(e[3]&&(this._speechPreferences=e[3]),this._enableOnlineVoiceFre="true"===e[4],this._currentFrame={frameTreeNodeId:Number(e[1]),processId:Number(e[2])})})),null===(e=this._hostProxy.ensureReadOutLoudInit())||void 0===e||e.subscribe((()=>{this._isInitialized||(this._hostProxy.sendReadOutLoudStatus(this._currentFrame,n.ReadingState.InteractionsDisabled,!0),this.initialize(this._speechPreferences)),this._hostProxy.onReadAloudInitiated()})),this._hostProxy.readOutLoudFocusChanged().subscribe((()=>{if(this._isInitialized){let e=this._readOutLoudViewModel.getReadingState();this._pendingContext?this._hostProxy.sendContextToFocusedFrame(this._pendingContext):this._hostProxy.sendContextToFocusedFrame({readingState:e,speechPreferences:this._settingsViewModel?this._settingsViewModel.getSpeechPreferences():null,dwellTime:this._readOutLoudViewModel.getPausedDwellTime()}),this._readOutLoudViewModel.pauseReading(!0)}else this._hostProxy.sendContextToFocusedFrame({readingState:n.ReadingState.Stopped,speechPreferences:null,dwellTime:0})})),this._hostProxy.readOutLoudOnContextFromFrame().subscribe((e=>{this._isInitialized||this.initialize(JSON.stringify(e.speechPreferences)),this._readOutLoudViewModel.setDwellTime(e.dwellTime),e.readingState===n.ReadingState.Playing?this.handleStartReadOutLoud():e.readingState===n.ReadingState.Paused&&this._readOutLoudViewModel.pauseReading(!0)})),this._hostProxy.readOutLoudSpeechPrefChanged().subscribe((e=>{this._speechPreferences=e,this._isInitialized&&this._settingsViewModel.updateSpeechSettings(this._speechPreferences)})),this._hostProxy.readOutLoudStartRequested().subscribe((e=>{this._isInitialized||(this._hostProxy.sendReadOutLoudStatus(this._currentFrame,n.ReadingState.InteractionsDisabled,!0),this.initialize(this._speechPreferences)),this.handleStartReadOutLoud(e)})),this._hostProxy.readOutLoudStopRequested().subscribe((()=>{this._isInitialized&&(this._settingsViewModel.logVoiceChangeTelemetry(this._readOutLoudViewModel.getContentType()),this._settingsViewModel.logRateChangeTelemetry(this._readOutLoudViewModel.getContentType()),this._readOutLoudViewModel.logSpeechSynthesisInvokeTelemetry(),this._readOutLoudViewModel.stopReading())})),this._hostProxy.readOutLoudPauseRequested().subscribe((()=>{this._isInitialized||this.initialize(this._speechPreferences),this._readOutLoudViewModel.logSpeechSynthesisInvokeTelemetry(),this._pendingContext={readingState:n.ReadingState.Paused,speechPreferences:this._settingsViewModel.getSpeechPreferences(),dwellTime:this._readOutLoudViewModel.getPausedDwellTime()},this._readOutLoudViewModel.pauseReading(!1)})),this._hostProxy.readOutLoudNextRequested().subscribe((()=>{this._isInitialized&&this._readOutLoudViewModel.moveToNextUnit()})),this._hostProxy.readOutLoudPreviousRequested().subscribe((()=>{this._isInitialized&&this._readOutLoudViewModel.moveToPreviousUnit()})),this._hostProxy.readOutLoudPreloadRequested().subscribe((e=>{this._isInitialized&&this._readOutLoudViewModel.preloadTheRestUtterances(e[0],1===e[1])})),this._hostProxy.readOutLoudChangeRateRequested().subscribe((e=>{this._isInitialized&&this._settingsViewModel.setReadingRate(e)})),this._hostProxy.readOutLoudChangeVoiceRequested().subscribe((e=>{this._isInitialized&&this._settingsViewModel.setCurrentVoiceFromURI(e)}))}sendReadOutLoudStatus(e,t,i){e!==n.ReadingState.Uninitialized&&(this._pendingContext&&(this._pendingContext=null),this._hostProxy.sendReadOutLoudStatus(this._currentFrame,e,t,i),e!==this._previousReadingState&&e===n.ReadingState.Stopped&&this.reset(),this._previousReadingState=e)}handleStartReadOutLoud(e=o.defaultStartParams){this._pendingContext={readingState:n.ReadingState.Playing,speechPreferences:this._settingsViewModel?this._settingsViewModel.getSpeechPreferences():null,dwellTime:this._readOutLoudViewModel.getPausedDwellTime()},this._readOutLoudViewModel.startReading(e)}}o.defaultStartParams={startRequestTime:0,startType:n.StartType.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},t.ReadOutLoudEventHandlers=o},6666:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingNavigationUtils=void 0;const n=i(9250),o=i(6773),s=i(8988),r=i(9919);class a{static getNextReadingNode(e,t){var i;return null!==(i=r.DomUtilties.getFirstChild(t))&&void 0!==i?i:a.getNextSubtreeNode(e,t)}static getPreviousReadingNode(e,t){var i;return null!==(i=r.DomUtilties.getLastChild(t))&&void 0!==i?i:a.getPreviousSubtreeNode(e,t)}static shouldSkipNode(e){if(!e)return!0;if(e.nodeType===Node.ELEMENT_NODE){if(n.HTMLReadingUnit.EmptyTagNodeList.includes(e.nodeName.toUpperCase()))return!1;if(a.NodeIgnoreList.indexOf(e.nodeName.toUpperCase())>-1)return!0;let t=window.getComputedStyle(e);if(!(s.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)||r.DomUtilties.hasShadowDom(e)||e instanceof HTMLSlotElement))return!0;if("none"===t.display.toLowerCase()||"hidden"===t.visibility.toLowerCase()||e.hidden)return!0;if(parseInt(t.width)<=5&&("hidden"===t.overflow.toLowerCase()||"hidden"===t.overflowX.toLowerCase()))return!0;if(parseInt(t.height)<=5&&("hidden"===t.overflow.toLowerCase()||"hidden"===t.overflowY.toLowerCase()))return!0;if("inline"!==t.display.toLowerCase()&&e.scrollWidth>e.offsetWidth&&"hidden"===t.overflow.toLowerCase())return!0;if(e.hasAttribute("aria-hidden")&&"true"===e.getAttribute("aria-hidden"))return!0}return!1}static getPreviousSubtreeNode(e,t){for(;t&&t!==e&&!t.previousSibling;)t=r.DomUtilties.getParentNode(t);return t&&t!==e?t.previousSibling:null}static getNextSubtreeNode(e,t){for(;t&&t!==e&&!t.nextSibling;)t=r.DomUtilties.getParentNode(t);return t&&t!==e?t.nextSibling:null}static createReadingUnit(e,t){return e&&e.length>0&&!a.areEmptyOrWhiteSpaceTextNodes(e)?new n.HTMLReadingUnit(e,t):null}static areEmptyOrWhiteSpaceTextNodes(e){return 0===e.length||!e.some((e=>s.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)))}static moveByANode(e,t,i){return i===o.UnitDirection.Next?a.getNextReadingNode(e,t):a.getPreviousReadingNode(e,t)}static moveByASubtree(e,t,i){return i===o.UnitDirection.Next?a.getNextSubtreeNode(e,t):a.getPreviousSubtreeNode(e,t)}static getUnitContainer(e){for(;e&&!a.isUnitContainer(e);)e=r.DomUtilties.getParentNode(e);return e}static isUnitContainer(e){if(e&&e.nodeType===Node.ELEMENT_NODE){const t=e.tagName.toLowerCase();return a.unitBoundaryTags.indexOf(t)>-1}return!1}static findFirsth1Tag(e){const t=e.getElementsByTagName("h1");if(0!==t.length)return t[0];for(const t of a.ShadowDomTitleTags){const i=e.querySelectorAll(t);for(const e of i)if(e.shadowRoot&&e.shadowRoot.querySelector("h1"))return e.shadowRoot.querySelector("h1")}return null}static getTextNodes(e){let t=[];const i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>this.shouldSkipNode(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});for(;i.nextNode();)t.push(i.currentNode);return t}}a.NodeIgnoreList=["NOSCRIPT","SCRIPT","STYLE","SELECT"],a.unitBoundaryTags=["body","div","p","address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","nav","section","main","figcaption","ul","ol","dl","li","dt","dd","pre","td","th","caption","summary","details","button","legend","label","textarea"],a.ShadowDomTitleTags=["msnews-views-title"],t.ReadingNavigationUtils=a},4783:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SmartReadAloudUtils=t.SmartReadParseError=void 0;const n=i(8295),o=i(2174);var s;!function(e){e.ContentPaywalled="ContentPaywalled",e.ContentInvalid="ContentInvalid",e.ContentFetchTimeout="ContentFetchTimeout"}(s=t.SmartReadParseError||(t.SmartReadParseError={}));class r{static parseSdPrimaryContent(e,t,i){if(e){try{let o=n.JsonUtilities.parseJsonOrNull(e);if(o.paywall)return void i(new Error(s.ContentPaywalled));if(r.validatePrimaryContent(o))return void t(o.primaryContent)}catch(e){}i(new Error(s.ContentInvalid))}else i(new Error(s.ContentInvalid))}static getSmartReadStatusFromError(e){return e.message===s.ContentFetchTimeout?o.SmartReadStatus.ContentFetchTimedOut:e.message===s.ContentInvalid?o.SmartReadStatus.InvalidResponse:e.message===s.ContentPaywalled?o.SmartReadStatus.ContentEmptyPaywalled:null}static validatePrimaryContent(e){return e&&e.hasOwnProperty("primaryContent")&&Array.isArray(e.primaryContent)&&e.primaryContent.every((e=>"string"==typeof e))}}t.SmartReadAloudUtils=r},6475:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudSettingsViewModel=void 0;const n=i(4134),o=i(2174),s=i(8295);class r{constructor(e,t,i){this._telemetryClient=i,this._currentVoices=[],this._currentVoicesDropDownOptions=null,this._speechPreferences=s.JsonUtilities.parseJsonOrNull(e,"ReadOutLoud",o.ReadAloudErrors[o.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences],this._telemetryClient),this._currentReadingRate=1,this._currentVoice=null,this._compatibleVoiceAvailable=!0,this._voicesChanged=new n.EventSource,this._enableOnlineVoiceFre=t,this._rateChanged=new n.EventSource,this._voiceChanged=new n.EventSource,this._compatibleVoiceAvailableChanged=new n.EventSource,this._speechPreferencesChanged=new n.EventSource,this._preferredDefaultVoiceForLanguage=new Map([["en","Microsoft Aria Online (Natural) - English (United States)"],["zh","Microsoft Xiaoxiao Online (Natural) - Chinese (Mainland)"]]),this._noOfTimesVoiceChanged=0,this._noOfTimesRateChanged=0,this._browserlocale=window.navigator.language,this.setSpeechSynthesis(window.speechSynthesis)}setSpeechSynthesis(e){this._speechSynthesis=e,this._currentVoices=this._speechSynthesis.getVoices(),this._speechSynthesis.onvoiceschanged=()=>{this.isVoicesAvailable()&&this._currentVoice&&(this._currentVoices.find((e=>e.voiceURI===this._currentVoice.voiceURI))||this.updateCurrentVoice(this._language))}}getSpeechSynthesis(){return this._speechSynthesis}getSpeechPreferences(){return this._speechPreferences}updateSpeechSettings(e){if(this._speechPreferences=s.JsonUtilities.parseJsonOrNull(e,"ReadOutLoud",o.ReadAloudErrors[o.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences],this._telemetryClient),this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){let e=this._speechPreferences.languageSettings.find((e=>e.language.toUpperCase().startsWith(this._language.toUpperCase())));if(e){if(this._currentVoice.voiceURI.toUpperCase()!=e.voiceURI.toUpperCase()){let t=this._currentVoices.find((t=>t.voiceURI.toUpperCase()===e.voiceURI.toUpperCase()));t&&(this._currentVoice=t,this._voiceChanged.trigger(void 0))}this._currentReadingRate!=e.rate&&e.rate>=.5&&e.rate<=2&&(this._currentReadingRate=e.rate,this._rateChanged.trigger(void 0))}}}setReadingRate(e){this._currentReadingRate!==e&&(this._currentReadingRate=e,this._rateChanged.trigger(void 0),this._noOfTimesRateChanged+=1,this.updateSpeechPreferences())}getReadingRate(){return this._currentReadingRate}setCurrentVoiceFromURI(e){var t=this._currentVoices.find((t=>t.voiceURI===e));t&&this._currentVoice!==t&&(this._noOfTimesVoiceChanged+=1,this._currentVoice=t,this._voiceChanged.trigger(void 0),this.updateSpeechPreferences())}getVoice(){return this._currentVoice}getDropDownOptionsForVoices(){return this._currentVoicesDropDownOptions}setCompatibleVoiceAvailable(e){this._compatibleVoiceAvailable=e,this._compatibleVoiceAvailableChanged.trigger(void 0)}getCompatibleVoiceAvailable(){return this._compatibleVoiceAvailable}voiceChanged(){return this._voiceChanged}rateChanged(){return this._rateChanged}compatibleVoiceAvailableChanged(){return this._compatibleVoiceAvailableChanged}voicesChanged(){return this._voicesChanged}speechPreferencesChanged(){return this._speechPreferencesChanged}isOnlineVoiceAvailable(){return this._enableOnlineVoiceFre&&null!=this._currentVoices.find((e=>!1===e.localService&&e.lang.toUpperCase().startsWith(this._currentVoice.lang.toUpperCase())))}ensureSpeechSettingsInitializedAsync(e){return new Promise((t=>{if(this._language=e.split("-")[0],this._currentVoice)return t(!0);this.refreshVoicesListAsync().then((e=>(e?e=this.updateCurrentVoice(this._language):(this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.NoLanguagePackageInstalled),this._compatibleVoiceAvailableChanged.trigger(void 0)),this.isOnlineVoiceAvailable()||this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.NoOnlineVoicesAvailable),t(e))))}))}logVoiceChangeTelemetry(e){this._noOfTimesVoiceChanged&&this._telemetryClient.reportReadOutLoudVoiceChange(e,this._noOfTimesVoiceChanged)}logRateChangeTelemetry(e){this._noOfTimesRateChanged&&this._telemetryClient.reportReadOutLoudRateChange(e,this._noOfTimesRateChanged)}setSpeechSettingsForLanguage(e){var t=null,i=null;if(this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){let n=this._speechPreferences.languageSettings.findIndex((t=>-1!=t.language.toUpperCase().indexOf(e.toUpperCase())));if(-1!=n){let o=this._speechPreferences.languageSettings[n];if(this._enableOnlineVoiceFre&&(!o.version||o.version<1)&&this.setOnlineVoiceAsDefault(e))return!0;t||(t=this._currentVoices.find((e=>e.voiceURI.toUpperCase()===o.voiceURI.toUpperCase())),i=o.rate>=.5&&o.rate<=2?o.rate:1,this._speechPreferences.languageSettings.splice(n,1),this._speechPreferences.languageSettings.unshift(o),this._speechPreferencesChanged.trigger(JSON.stringify(this._speechPreferences)))}}if(!t){if(this._enableOnlineVoiceFre&&this.setOnlineVoiceAsDefault(e))return!0;let n=this._currentVoices.filter((t=>0===t.lang.toUpperCase().indexOf(e.toUpperCase())));if(n.length>0){if(!(t=n.find((e=>e.lang.toUpperCase()===this._browserlocale.toUpperCase())))){let i=this._preferredDefaultVoiceForLanguage.get(e);i&&(t=n.find((e=>e.voiceURI===i))),t||(t=n[0])}i=1}}return!(!t||!i||(this._currentVoice=t,this._voiceChanged.trigger(void 0),this._currentReadingRate=i,this._rateChanged.trigger(void 0),0))}setOnlineVoiceAsDefault(e){let t=this._currentVoices.filter((e=>!1===e.localService&&e.lang.toUpperCase().startsWith(this._language.toUpperCase()))),i=null;if(t.length>0&&(i=t.find((e=>e.lang.toUpperCase()===this._browserlocale.toUpperCase())),!i)){let n=this._preferredDefaultVoiceForLanguage.get(e);n&&(i=t.find((e=>e.voiceURI===n))),i||(i=t[0])}return!!i&&(this._currentVoice=i,this._voiceChanged.trigger(void 0),this._currentReadingRate=1,this._rateChanged.trigger(void 0),this.updateSpeechPreferences(!0),!0)}updateCurrentVoice(e){return this._compatibleVoiceAvailable=!0,this.setSpeechSettingsForLanguage(e)||(this._currentVoice=this._currentVoices[0],this._voiceChanged.trigger(void 0),this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.LanguagePackageNotFound),this._compatibleVoiceAvailable=!1),this._compatibleVoiceAvailableChanged.trigger(void 0),this._compatibleVoiceAvailable}updateSpeechPreferences(e=!1){if(this._language&&this._language.length<=r.MaxLanguageLength){if(this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){var t=this._speechPreferences.languageSettings.findIndex((e=>e.language.toUpperCase()===this._language.toUpperCase()));let i=this._enableOnlineVoiceFre?0:1;-1!=t&&(i=this._speechPreferences.languageSettings[t].version,this._speechPreferences.languageSettings.splice(t,1));let n={language:this._language,voiceURI:this._currentVoice.voiceURI,rate:this._currentReadingRate,version:e?1:i};this._speechPreferences.languageSettings.unshift(n),this._speechPreferences.languageSettings.length>15&&(this._speechPreferences.languageSettings.length=15)}else this._speechPreferences={languageSettings:[{language:this._language,voiceURI:this._currentVoice.voiceURI,rate:this._currentReadingRate,version:this._enableOnlineVoiceFre&&e?1:0}]};this._speechPreferencesChanged.trigger(JSON.stringify(this._speechPreferences))}}refreshVoicesListAsync(){return new Promise((e=>{if(this.isVoicesAvailable())return e(!0);let t,i=this._voicesChanged.subscribe((()=>(clearTimeout(t),i&&i.release(),e(!0))));t=window.setTimeout((()=>(this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.NoVoicesAvailable),i.release(),e(this.isVoicesAvailable()))),2e3)}))}isVoicesAvailable(){return this._currentVoices=this._speechSynthesis.getVoices(),!!(this._currentVoices&&this._currentVoices.length>0)&&(this._currentVoicesDropDownOptions=this._currentVoices.map((e=>({uri:e.voiceURI,name:e.name,lang:e.lang}))),this._voicesChanged.trigger(void 0),!0)}}r.MaxLanguageLength=85,t.ReadOutLoudSettingsViewModel=r},3525:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudViewModel=t.maxUtteranceLength=t.seekToStartTimeout=t.StartType=t.ReadingState=void 0;const n=i(2174),o=i(6773),s=i(190),r=i(8988),a=i(1050),d=i(647);var l,u;!function(e){e[e.InEligible=0]="InEligible",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused",e[e.Stopped=3]="Stopped",e[e.PlayDisabled=4]="PlayDisabled",e[e.InteractionsDisabled=5]="InteractionsDisabled",e[e.Uninitialized=6]="Uninitialized"}(l=t.ReadingState||(t.ReadingState={})),function(e){e[e.Default=0]="Default",e[e.ReadFromPoint=1]="ReadFromPoint",e[e.ReadFromWordSelection=2]="ReadFromWordSelection",e[e.ReadSelection=3]="ReadSelection",e[e.ResumeFromSelection=4]="ResumeFromSelection",e[e.ReadFromFirstVisibleElement=5]="ReadFromFirstVisibleElement",e[e.ReadFromCurrentPage=6]="ReadFromCurrentPage"}(u=t.StartType||(t.StartType={}));const c="en-US";t.seekToStartTimeout=5e3,t.maxUtteranceLength=1e3;class h{constructor(e,t,i,n,s){this._readingNavigator=e,this._highlighter=t,this._contentProvider=s,this._delimiters=null,this._speechUtterances=[],this._seekToStartForCurrentUnit=!0,this._isProcessingPending=!1,this._telemetryClient=n,this._continueReadingOnUserActionComplete=!1,this._ignoreUserActionEvents=!1,this._startRequestTime=0,this._dwellTimeStart=0,this._dwellTimeDuration=0,this._shouldExitAfterReadingCurrentUnit=!1,this._characterCount=0,this._noOfTimesSpeechSynthesisInvoked=0,this._continueClickCountAfterROLStarted=0,window.addEventListener("beforeunload",(()=>{this.commitDwellTime()})),i&&(this._settings=i,this._settings.voiceChanged().subscribe((()=>{this.getReadingState()===l.Playing&&(this.cancelReading(!1),this.continueReading(o.UnitDirection.Current,h.defaultStartParams));let e=this._settings.getVoice();(!1===e.localService&&!this._isOnlineVoicePlaying||!0===e.localService&&this._isOnlineVoicePlaying)&&(this.commitCharacterCount(),this._logVoiceUsageTelemetry=!0)})),this._settings.rateChanged().subscribe((()=>{this._eventTimeoutReleasable&&(this._eventTimeoutReleasable.release(),this._eventTimeoutReleasable=null);const e=this.getReadingState();let t=window.setTimeout((()=>{e===l.Playing&&(this.cancelReading(!1),this.continueReading(o.UnitDirection.Current,h.defaultStartParams)),this._eventTimeoutReleasable=null}),550);this._eventTimeoutReleasable={release:()=>clearTimeout(t)}})))}preloadTheRestUtterances(e,t){let i=this._speechSynthesis;if(!i.preload||!this._readingNavigator.deepCopy)return;let n=[];const o=this._readingNavigator.deepCopy();let s=()=>{o.moveToNextUnitAsync().then((t=>{let r=o.getCurrentUnit();if(!t||null===r)return void i.preload(e,n);let a=this.createSpeechUtterances(r,!0);n=n.concat(a),s()}))};if(t){let e=()=>{o.moveToPreviousUnitAsync().then((t=>{let i=o.getCurrentUnit();t&&null!==i?e():s()}))};e()}else s()}preloadNextUtterance(e){let t=this._speechSynthesis;if(!t.preload||!this._readingNavigator.getNextUnit)return;const i=this._readingNavigator.getNextUnit();if(i){let n=this.createSpeechUtterances(i,!0);t.preload(e,n)}}startReading(e=h.defaultStartParams){this._startRequestTime=e.startRequestTime,this.ensureSpeechSynthesis();let t=this._speechUtterances.length,i=this.getReadingState();if(this._isProcessingPending||t>0&&i!==l.Paused)return void this._telemetryClient.reportReadOutLoudStartStates(n.ReadAloudStartStates.ReadAloud_StartReadingIgnored);this._isProcessingPending=!0;let r=i===l.Paused&&this.isReadingPositionValid()&&null!==this._readingNavigator.getCurrentUnit()&&!(this._contentProvider.getContentType()===a.ContentType.PDF&&e.startType===u.ResumeFromSelection),c=!r&&i===l.Paused;this.getLanguageAsync().then((t=>{if(this._isProcessingPending){if(this._isProcessingPending=!1,this.ensureDelimiters(t),r)return this.ensureNavigationEventListeners(),void this.resumeReading();i===l.Paused&&this._readingNavigator.getCurrentUnit()&&(this.resetReadSelection(),d.FeatureList.get()&&d.FeatureList.get().isReadAloudSDExtractionEnabled()||(e.startType=this._contentProvider.getContentType()!==a.ContentType.ReadingView&&this._contentProvider.getContentType()!==a.ContentType.PDF||e.startType===u.ResumeFromSelection?u.ReadFromWordSelection:u.ReadFromFirstVisibleElement)),(i===l.Stopped||i===l.Uninitialized||c)&&(this._isProcessingPending=!0,this._settings.ensureSpeechSettingsInitializedAsync(t).then((t=>{this._isProcessingPending&&(this._isProcessingPending=!1,t?(c&&(this.cancelReading(!0),this._highlighter.deactivateDecoration(s.DecorationType.Word)),this.ensureNavigationEventListeners(),this.continueReading(o.UnitDirection.Next,e,!0)):this.pauseReading())})))}}))}pauseReading(e=!1){this.getReadingState()!==l.Paused?(this._speechSynthesis&&this.cancelReading(!1,l.Paused),this.logSuccessTelemetry(l[l.Paused]),this._highlighter.deactivateDecoration(e?s.DecorationType.All:s.DecorationType.ExceptWord),this.handleSetReadingState(l.Paused)):this.getReadingState()===l.Paused&&e&&this._highlighter.deactivateDecoration(s.DecorationType.All)}stopReading(){this.cancelReading(!0,l.Stopped),this._userActionStartedListenerReleasable&&(this._userActionStartedListenerReleasable.release(),this._userActionStartedListenerReleasable=null),this._userActionCompletedListenerReleasable&&(this._userActionCompletedListenerReleasable.release(),this._userActionCompletedListenerReleasable=null)}moveToPreviousUnit(){if(this.resetReadSelection(),this.getReadingState()===l.Playing){this.cancelReading(!1),this._readingNavigator.setCurrentUnitTextOffset(0),this.continueReading(this._seekToStartForCurrentUnit?o.UnitDirection.Current:o.UnitDirection.Previous,h.defaultStartParams),this._seekToStartForCurrentUnit=!1;let e=window.setTimeout((()=>{this._seekToStartForCurrentUnit=!0,this._seekToStartReleasableTimer=null}),t.seekToStartTimeout);this._seekToStartReleasableTimer={release:()=>{window.clearTimeout(e)}}}}moveToNextUnit(){this.resetReadSelection(),this.getReadingState()===l.Playing&&(this.cancelReading(!1),this.continueReading(o.UnitDirection.Next,h.defaultStartParams))}getWordRect(){return this._highlighter.getWordRect()}settingsViewModel(){return this._settings}setDwellTime(e){this._dwellTimeDuration=e}getPausedDwellTime(){return this.pauseDwellTime(),this._dwellTimeDuration}getContentType(){return this._contentProvider.getContentType()}logSpeechSynthesisInvokeTelemetry(){0!==this._noOfTimesSpeechSynthesisInvoked&&(this._telemetryClient.reportReadOutLoudSpeechSynthesisInvoke(this._noOfTimesSpeechSynthesisInvoked),this._noOfTimesSpeechSynthesisInvoked=0)}resetReadSelection(){this._shouldExitAfterReadingCurrentUnit=!1,this._readingNavigator.getCurrentUnit()&&this._readingNavigator.resetCurrentUnitEndOffset()}continueReading(e,t,i){this._isProcessingPending||(this._isProcessingPending=!0,(i?this._readingNavigator.initializeAsync(t):Promise.resolve(!0)).then((t=>{if(!t||!this._isProcessingPending)return this.cancelReading(!0,l.Stopped),this.logErrorTelemetry(n.ReadAloudErrors.ReadingNavigatorInitializeFailure),!1;switch(e){case o.UnitDirection.Previous:return this._readingNavigator.moveToPreviousUnitAsync();case o.UnitDirection.Next:return this.updateCharacterCount(),this._readingNavigator.moveToNextUnitAsync();case o.UnitDirection.Current:return this.getReadingState()===l.Playing&&this.updateCharacterCount(),!0;default:return!0}})).then((i=>{if(this._isProcessingPending)if(i){let i=this.createSpeechUtterances(this._readingNavigator.getCurrentUnit());i&&i.length>0?(i.forEach((e=>{this._noOfTimesSpeechSynthesisInvoked++,this._speechSynthesis.speak(e)})),this._isProcessingPending=!1):(this._isProcessingPending=!1,this.continueReading(e,t,!1))}else this.logSuccessTelemetry(n.ReadAloudStartStates[n.ReadAloudStartStates.ReadAloud_ContentNotAvailable]),this.cancelReading(!0,l.Paused)})))}cancelReading(e,t){(this.getReadingState()===l.Playing||this._speechUtterances.length>0)&&(this._speechSynthesis.pause(),this._speechSynthesis.cancel()),!t||t!==l.Stopped&&t!==l.Paused||this.logSuccessTelemetry(l[t]),this._startRequestTime&&(this._startRequestTime=0),this._speechUtterances.forEach((e=>e.release())),this._speechUtterances=[],e&&(this.updateCharacterCount(),this.commitCharacterCount(),this.commitClickNavCountAfterROLStarted(),this._readingNavigator.reset()),this._seekToStartReleasableTimer&&(this._seekToStartReleasableTimer.release(),this._seekToStartReleasableTimer=null),t&&(this.handleSetReadingState(t),t===l.Stopped?this._highlighter.deactivateDecoration(s.DecorationType.All):t===l.Paused&&this._highlighter.deactivateDecoration(s.DecorationType.ExceptWord)),this._isProcessingPending=!1}commitClickNavCountAfterROLStarted(){0!==this._continueClickCountAfterROLStarted&&(this._telemetryClient.reportReadOutLoudContinueClickCount(this._contentProvider.getContentType(),this._continueClickCountAfterROLStarted),this._continueClickCountAfterROLStarted=0)}getLanguageAsync(){return this._contentProvider.getLanguageAsync(c).then((e=>r.StringUtilities.isNullOrEmpty(e)?c:e))}handleSetReadingState(e){let t=this.getReadingState();this.setReadingState(e),t!==e&&this.handleDwellTimeTelemetry()}resumeReading(){this.getReadingState()===l.Paused&&this._speechSynthesis&&this.continueReading(o.UnitDirection.Current,h.defaultStartParams)}createSpeechUtterances(e,i=!1){let n=[];i||(this._isOnlineVoicePlaying=!this._settings.getVoice().localService);let o=e.textContents;null!==e.textEndOffset&&void 0!==e.textEndOffset&&(i||(this._shouldExitAfterReadingCurrentUnit=!0),o=r.StringUtilities.truncateEnd(o,e.textEndOffset)),o=r.StringUtilities.skipStartText(o,e.textStartOffset);let s=r.StringUtilities.adjustTextByLength(o,t.maxUtteranceLength,this._delimiters),a=e.textStartOffset;return s.forEach((t=>{let o;o=i?this.createSpeechUtteranceWithoutEventHandlers(t):this.createSpeechUtterance(e,t,a),n.push(o),a+=t.length})),n}createSpeechUtteranceWithoutEventHandlers(e){let t=new SpeechSynthesisUtterance;return t.voice=this._settings.getVoice(),t.rate=this._settings.getReadingRate(),t.lang=this._settings.getVoice().lang,t.text="TH-TH"===t.lang.toUpperCase()?e:r.StringUtilities.replaceLinebreaksWithSpaces(e),t}onUtteranceStartOrResume(e){if(this._logVoiceUsageTelemetry||0!=this._startRequestTime){let e=this._settings.getVoice();e.localService&&!this._settings.isOnlineVoiceAvailable()||(this._telemetryClient.reportReadOutLoudVoiceUsage(this._contentProvider.getContentType(),!e.localService),this._logVoiceUsageTelemetry=!1)}this.logSuccessTelemetry(l[l.Playing]),this._highlighter.activateDecoration(s.DecorationType.Background),this.getReadingState()!=l.Playing&&(this._ignoreUserActionEvents=!0),this.handleSetReadingState(l.Playing),this._continueReadingOnUserActionComplete=!1}createSpeechUtterance(e,t,i){let n,r=this.createSpeechUtteranceWithoutEventHandlers(t),u=e=>{let t=d.FeatureList.get();t&&t.isPreloadOnStartUtteranceEnabled()&&this.preloadNextUtterance(e.charIndex),this.onUtteranceStartOrResume(e)},c=e=>{this.onUtteranceStartOrResume(e)},g=e=>{if(this._seekToStartForCurrentUnit=!0,this._seekToStartReleasableTimer&&(this._seekToStartReleasableTimer.release(),this._seekToStartReleasableTimer=null),n){let e=this._speechUtterances.findIndex((e=>e===n));e>=0&&this._speechUtterances.splice(e,1),n.release(),n=null}if(this.getReadingState()===l.Playing&&0===this._speechUtterances.length){if(this._shouldExitAfterReadingCurrentUnit)return this._shouldExitAfterReadingCurrentUnit=!1,void this.stopReading();this.continueReading(o.UnitDirection.Next,h.defaultStartParams)}},m=e=>{this.logErrorTelemetry(this.getTelemetryMessage(e.error,0!==this._startRequestTime)),"synthesis-failed"===e.error?this.continueReading(o.UnitDirection.Next,h.defaultStartParams):this.cancelReading(!0,l.Paused)},_=t=>{this.getReadingState()===l.Playing&&"word"===t.name&&(this._ignoreUserActionEvents=!0,this._contentProvider.getContentType()===a.ContentType.PDF&&this._continueReadingOnUserActionComplete||(this._highlighter.setWordDecorationPosition(e,i,t),this._highlighter.activateDecoration(s.DecorationType.WordAndLine)),this._readingNavigator.setCurrentUnitTextOffset(i+t.charIndex)),this._ignoreUserActionEvents=!1};return r.addEventListener("start",u),r.addEventListener("end",g),r.addEventListener("resume",c),r.addEventListener("error",m),r.addEventListener("boundary",_),n={value:()=>r,release:()=>{r.removeEventListener("start",u),r.removeEventListener("end",g),r.removeEventListener("resume",c),r.removeEventListener("error",m),r.removeEventListener("boundary",_)}},this._speechUtterances.push(n),n.value()}logSuccessTelemetry(e){0!=this._startRequestTime&&(this._settings.getVoice()?this._telemetryClient.reportReadOutLoudSuccess(e,!this._settings.getVoice().localService,Date.now()-this._startRequestTime):this._telemetryClient.reportReadOutLoudSuccess(e,!1,Date.now()-this._startRequestTime),this._startRequestTime=0)}getTelemetryMessage(e,t){switch(e){case"network":return t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_Network_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure_Network;case"synthesis-failed":return t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_SynthesisFailed_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure_SynthesisFailed;case"text-too-long":return t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_TextTooLong_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure_TextTooLong;default:return!1===this._settings.getVoice().localService?t?n.ReadAloudErrors.SpeechUtteranceCreationFailureForOnlineVoice_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailureForOnlineVoice:t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure}}logErrorTelemetry(e){this._telemetryClient.reportReadOutLoudInternalError(e),this._startRequestTime=0}ensureNavigationEventListeners(){this._userActionStartedListenerReleasable||(this._userActionStartedListenerReleasable=this.addUserActionStartedListener()),this._userActionCompletedListenerReleasable||(this._userActionCompletedListenerReleasable=this.addUserActionCompletedListener())}ensureSpeechSynthesis(){this._speechSynthesis||(this._speechSynthesis=this._settings.getSpeechSynthesis())}ensureDelimiters(e){this._delimiters||(this._delimiters=0===e.indexOf("en")?[".",";",","]:[".","。",";",","," ","-"])}handleDwellTimeTelemetry(){switch(this.getReadingState()){case l.Playing:this.startDwellTime();break;case l.Paused:this.pauseDwellTime();break;case l.Stopped:this.commitDwellTime()}}startDwellTime(){this._dwellTimeStart=Date.now()}pauseDwellTime(){0!==this._dwellTimeStart&&(this._dwellTimeDuration+=Date.now()-this._dwellTimeStart,this._dwellTimeStart=0)}commitDwellTime(){this.pauseDwellTime(),0!==this._dwellTimeDuration&&(this._telemetryClient.reportReadOutLoudDwellTime(this._contentProvider.getContentType(),this._dwellTimeDuration),this._dwellTimeDuration=0)}updateCharacterCount(){this._readingNavigator.getCurrentUnit()&&(this._characterCount+=this._readingNavigator.getCurrentUnit().textStartOffset)}commitCharacterCount(){0!==this._characterCount&&(this._telemetryClient.reportReadOutLoudCharacterCount(this._contentProvider.getContentType(),this._characterCount,this._isOnlineVoicePlaying),this._characterCount=0)}}h.defaultStartParams={startRequestTime:0,startType:u.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},t.ReadOutLoudViewModel=h},8068:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingPreferencesEventHandlers=void 0,t.ReadingPreferencesEventHandlers=class{constructor(e,t){this._releasables=[],this._hostProxy=e,this._mainViewModel=t,this._readingPreferencesViewModel=null,this.registerHostEventHandlers(),this._isInitialized=!1}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._readingPreferencesViewModel=null}ensureInitialize(){if(!this._isInitialized&&(this._mainViewModel.initializeLearningTools(),this._readingPreferencesViewModel=this._mainViewModel.getReadingPreferencesViewModel(),this._readingPreferencesViewModel)){let e=()=>{this._hostProxy.sendReadingPreferencesPaneStatus(this._readingPreferencesViewModel.readingPreferencesPaneStatus())};this._releasables.push(this._readingPreferencesViewModel.onReadingPreferencesStatusChanged().subscribe((()=>{e()}))),this._releasables.push(this._readingPreferencesViewModel.onLineFocusExit().subscribe((e=>{this._hostProxy.onLineFocusExit(e)}))),e()}}registerHostEventHandlers(){this._hostProxy.readingPreferencesInitialPaneStatusRequested().subscribe((()=>{this.ensureInitialize(),this._hostProxy.sendReadingPreferencesPaneStatus(this._readingPreferencesViewModel.readingPreferencesPaneStatus())})),this._hostProxy.enableLineFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.enableLineFocus(e)})),this._hostProxy.disableLineFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.disableLineFocus(e)})),this._hostProxy.onContentShifted().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onContentShifted()})),this._hostProxy.setNumberOfLinesInFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.setNumberOfLinesInFocus(e)})),this._hostProxy.upButtonClicked().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.moveToPreviousInLineFocus()})),this._hostProxy.downButtonClicked().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.moveToNextInLineFocus()})),this._hostProxy.enablePictureDictionaryRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.enablePictureDictionary()})),this._hostProxy.disablePictureDictionaryRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.disablePictureDictionary()})),this._hostProxy.languageChangeRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onLanguageChangeRequested()})),this._hostProxy.pictureDictionaryPopupHidden().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.handlePictureDictionaryPopupClose()})),this._hostProxy.hidePictureDictionaryPopupRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.hidePictureDictionaryPopupRequested()})),this._hostProxy.languageChangeRequestCompleted().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onLanguageChangeRequestCompleted()}))}}},4273:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebContentProvider=void 0;const n=i(9919),o=i(1050),s=i(4134),r=i(8988),a=i(6666),d=i(4783);t.WebContentProvider=class{constructor(e,t,i){this.onSelectionChange=e=>{if(this._isMouseLeftKeyDown||!this._document.getSelection().isCollapsed){this._selectionTimeoutReleasable?(this._selectionTimeoutReleasable.release(),this._selectionTimeoutReleasable=null):this._selectionStart.trigger(void 0);let e=window.setTimeout((()=>{this._selectionEnd.trigger(void 0),this._selectionTimeoutReleasable=null}),500);this._selectionTimeoutReleasable={release:()=>{clearTimeout(e)}}}},this.onScroll=e=>{this._scrollTimeoutReleasable?(this._scrollTimeoutReleasable.release(),this._scrollTimeoutReleasable=null):this._scrollStart.trigger(void 0);let t=window.setTimeout((()=>{this._scrollEnd.trigger(void 0),this._scrollTimeoutReleasable=null}),500);this._scrollTimeoutReleasable={release:()=>clearTimeout(t)}},this.onMouseUp=e=>{this._isMouseLeftKeyDown=!1},this.onMouseDown=e=>{0===e.button&&(this._isMouseLeftKeyDown=!0)},this._document=i,this._hostProxy=e,this._currentFrame=t,this._selectionTimeoutReleasable=null,this._selectionStart=new s.EventSource,this._selectionEnd=new s.EventSource,this._scrollTimeoutReleasable=null,this._scrollStart=new s.EventSource,this._scrollEnd=new s.EventSource,this._isRTL=this.isContentDirectionRTL(i),this._isMouseLeftKeyDown=!1,this._document.addEventListener("selectionchange",this.onSelectionChange),this._document.addEventListener("scroll",this.onScroll,!0),this._document.addEventListener("mousedown",this.onMouseDown),this._document.addEventListener("mouseup",this.onMouseUp)}getContentType(){return o.ContentType.Web}isRTL(){return this._isRTL}getCurrentDocument(){return this._document}getLocalizedLearningToolsLabels(){throw new Error("Method not implemented.")}getDocumentStartRange(){throw new Error("Method not implemented.")}onSelectionStart(){return this._selectionStart}onSelectionEnd(){return this._selectionEnd}collapseSelectionToNode(e,t){this._document.getSelection().collapse(e,t)}resetSelection(e){(e||this._document.getSelection().isCollapsed)&&this.resetSelectionInternal()}onScrollStart(){return this._scrollStart}onScrollEnd(){return this._scrollEnd}isElementVisible(e,t,i){return!(t.top<0||t.left<0||t.bottom>this._document.defaultView.innerHeight||t.right>this._document.defaultView.innerWidth||i&&n.DomUtilties.getElementFromPoint(this._document,(t.left+t.right)/2,(t.top+t.bottom)/2)!==e)}scrollElementIntoView(e,t,i){return new Promise((n=>this.isElementVisible(e,t,!0)?n(!0):(i=i||this.getScrollContainer(e))===this._document.body?(this.scrollToElementRectInBody(t),n(!0)):(this.scrollElementInContainer(e,t,i),i=this.getScrollContainer(i),void this.scrollElementIntoView(e,e.getBoundingClientRect(),i).then((e=>n(e))))))}getLanguageAsync(e){return new Promise((t=>{let i,n=this._hostProxy.languageDetected().subscribe((o=>(n.release(),window.clearTimeout(i),t("und"!=o?o:e))));i=window.setTimeout((()=>(n.release(),t(e))),2e3),this._hostProxy.detectLanguage(this._currentFrame)}))}getPrimaryContent(){return new Promise(((e,t)=>{let i,n=this._hostProxy.sdPrimaryContentFetched().subscribe((o=>(n.release(),window.clearTimeout(i),d.SmartReadAloudUtils.parseSdPrimaryContent(o,e,t))));i=window.setTimeout((()=>(n.release(),t(new Error(d.SmartReadParseError.ContentFetchTimeout)))),3e3),this._hostProxy.fetchSDPrimaryContent()}))}isContentDirectionRTL(e){let t,i=null;return t=e.querySelector("main"),t&&(i=t.getAttribute("dir")),r.StringUtilities.isNullOrEmpty(i)&&e.body&&(i=e.body.dir),r.StringUtilities.isNullOrEmpty(i)&&e.head&&(i=e.head.dir),!(r.StringUtilities.isNullOrEmpty(i)&&e.documentElement&&(i=e.documentElement.dir,r.StringUtilities.isNullOrEmpty(i)))&&"rtl"===i}resetSelectionInternal(){let e=document.querySelector("main");for(;e&&(e.nodeType!==Node.TEXT_NODE||!r.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent));)e=a.ReadingNavigationUtils.shouldSkipNode(e)?a.ReadingNavigationUtils.getNextSubtreeNode(e.ownerDocument.body,e):a.ReadingNavigationUtils.getNextReadingNode(e.ownerDocument.body,e);e?this.collapseSelectionToNode(e,0):this._document.body&&this.collapseSelectionToNode(this._document.body,0)}scrollElementInContainer(e,t,i){let n=i.getBoundingClientRect();(t.topn.bottom)&&(i.scrollTop=i.scrollTop+t.top-n.top),(t.leftn.right)&&(this._isRTL?i.scrollLeft=i.scrollLeft+n.right-t.right:i.scrollLeft=i.scrollLeft+t.left-n.left)}scrollToElementRectInBody(e){let t=e.top-this._document.defaultView.innerHeight/2;this._isRTL?this._document.defaultView.scrollBy(e.right-window.innerWidth,t):this._document.defaultView.scrollBy(e.left,t)}getScrollContainer(e){for(e=n.DomUtilties.getParentElement(e);e&&e!==this._document.body;){let t=e.clientHeight>0&&e.scrollHeight>e.clientHeight,i=e.clientWidth>0&&e.scrollWidth>e.clientWidth;if(t||i)return e;e=n.DomUtilties.getParentElement(e)}return this._document.body}}},6752:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebReadingHighlighter=void 0;const n=i(9250),o=i(190),s=i(9508),r=i(9907),a=i(9919);class d{constructor(e){this._currentReadingUnit=null,this._currentUtteranceText="",this._isReadingUnitDirty=!1,this._wordDecorationReleasableResource=null,this._lineDecorationReleasableResource=null,this._isLineDecorationHidden=!1,this._webContentProvider=e,this._isScrolling=!1,this._shouldScrollIntoView=!0,this._scrollStartReleasable=null,this._scrollEndReleasable=null}setWordDecorationPosition(e,t,i){if(!(e instanceof n.HTMLReadingUnit))return;let o=e;this._currentReadingUnit!==o&&(this._lineTop=null,this._currentReadingUnit=o,this._isReadingUnitDirty=!1,this._isLineDecorationHidden&&this._lineDecorationReleasableResource&&this.areEqualReadingUnits(this._currentReadingUnit,this._lineDecorationReleasableResource.value().readingUnit)&&(this._lineDecorationReleasableResource.value().readingUnit=this._currentReadingUnit,this._wordDecorationReleasableResource.value().readingUnit=this._currentReadingUnit),this.updateShadowDomStyleElement()),this._currentTextOffset=t+i.charIndex,this._currentTextLength=i.charLength,this._currentUtteranceText=i.utterance.text.substr(i.charIndex,this._currentTextLength)}activateDecoration(e){this.ensureScrollListenersInitialized(),this.updateShadowDomStyleElement(),this._isReadingUnitDirty||(e&o.DecorationType.Line&&this.updateLineDecoration(),e&o.DecorationType.Word&&this.updateWordDecoration())}deactivateDecoration(e){this._shouldScrollIntoView=!0,this.removeScrollListeners(),this.removeShadowDomStyleElement(),e&o.DecorationType.Word&&(e===o.DecorationType.All?(this.removeWordDecoration(),this._wordRect=null):this.hideDecoration(o.DecorationType.Word)),e&o.DecorationType.Line&&(e===o.DecorationType.All?this.removeLineDecoration():this.hideDecoration(o.DecorationType.Line))}isWordDecorationValid(){return!!this._wordDecorationReleasableResource}getWordRect(){return this._wordRect}updateWordDecoration(){if(this.removeWordDecoration(),!this._isReadingUnitDirty){let t=s.ReadingRangeManipulations.createRange(this._currentReadingUnit,this._currentTextOffset,this._currentTextLength);if(this._wordDecorationReleasableResource=t?r.ReadOutLoudHighlighter.surroundTextBySpans(this._currentReadingUnit,t,[d.ReadoutActiveWordClass]):null,this._wordDecorationReleasableResource){var e=this._wordDecorationReleasableResource.value().spans[0];this._shouldScrollIntoView||this._isScrolling||!this._wordRect||(this._shouldScrollIntoView=this._webContentProvider.isElementVisible(this._wordDecorationReleasableResource.value().spans[0],this._wordRect,!1)),this._shouldScrollIntoView&&this._webContentProvider.scrollElementIntoView(e,this._wordRect)}}}updateLineDecoration(){let e=s.ReadingRangeManipulations.createRange(this._currentReadingUnit,this._currentTextOffset,this._currentTextLength);if(this._isReadingUnitDirty=!e||e.toString()!==this._currentUtteranceText,this._isReadingUnitDirty&&e&&(this._isReadingUnitDirty=e.toString().replace(/\s/g,"")!==this._currentUtteranceText.replace(/\s/g,"")),this._isReadingUnitDirty)this.removeLineDecoration();else if(this._wordRect=e.getClientRects().item(0),this._isLineDecorationHidden||!this.isWordInCurrentLineRange()){this.removeLineDecoration(),this._isLineDecorationHidden=!1,e=s.ReadingRangeManipulations.createRange(this._currentReadingUnit,this._currentTextOffset,this._currentTextLength);let t=this.getLineRange(e);this._lineDecorationReleasableResource=r.ReadOutLoudHighlighter.surroundTextBySpans(this._currentReadingUnit,t,[d.ReadoutActiveLineClass])}}updateShadowDomStyleElement(){if(this._currentReadingUnit)for(const e of this._currentReadingUnit.contentNodes)if(e.getRootNode()instanceof ShadowRoot)return void(this._styleElementToShadowRootResource?e.getRootNode()!=this._styleElementToShadowRootResource.value()&&(this.removeShadowDomStyleElement(),this._styleElementToShadowRootResource=a.DomUtilties.addRemoveStyleForElementInShadowRoot(e)):this._styleElementToShadowRootResource=a.DomUtilties.addRemoveStyleForElementInShadowRoot(e));this.removeShadowDomStyleElement()}getLineRange(e){let t=s.ReadingRangeManipulations.expandToLineRange(e,this._webContentProvider.isRTL(),(e=>e.getClientRects())),i=t.getClientRects();return this._lineTop=i.item(0).top,this._lineBottom=i.item(0).bottom,this._lineLeft=i.item(0).left,this._lineRight=i.item(i.length-1).right,t}isWordInCurrentLineRange(){return this._lineTop===this._wordRect.top&&this._lineBottom===this._wordRect.bottom&&!(this._lineRightthis._wordRect.right)}hideDecoration(e){e&o.DecorationType.Line&&this._lineDecorationReleasableResource&&(this._lineDecorationReleasableResource.value().spans.forEach((e=>{e.classList.add(d.ReadoutInactiveClass)})),this._isLineDecorationHidden=!0),e&o.DecorationType.Word&&this._wordDecorationReleasableResource&&this._wordDecorationReleasableResource.value().spans.forEach((e=>{e.classList.add(d.ReadoutInactiveClass)}))}removeWordDecoration(){this._wordDecorationReleasableResource&&(this._wordDecorationReleasableResource.release(),this._wordDecorationReleasableResource=null)}removeLineDecoration(){this._lineDecorationReleasableResource&&(this._lineDecorationReleasableResource.release(),this._lineDecorationReleasableResource=null,this._lineTop=null,this._lineRight=null,this._lineLeft=null,this._lineBottom=null)}removeShadowDomStyleElement(){this._styleElementToShadowRootResource&&(this._styleElementToShadowRootResource.release(),this._styleElementToShadowRootResource=null)}ensureScrollListenersInitialized(){null===this._scrollStartReleasable&&(this._scrollStartReleasable=this._webContentProvider.onScrollStart().subscribe((()=>{this._shouldScrollIntoView=!1,this._isScrolling=!0}))),null===this._scrollEndReleasable&&(this._scrollEndReleasable=this._webContentProvider.onScrollEnd().subscribe((()=>{this._isScrolling=!1,this._wordDecorationReleasableResource&&this._wordRect&&(this._shouldScrollIntoView=this._webContentProvider.isElementVisible(this._wordDecorationReleasableResource.value().spans[0],this._wordRect,!1))})))}removeScrollListeners(){this._scrollStartReleasable&&(this._scrollStartReleasable.release(),this._scrollStartReleasable=null),this._scrollEndReleasable&&(this._scrollEndReleasable.release(),this._scrollEndReleasable=null)}areEqualReadingUnits(e,t){if(e&&t){var i=e.contentNodes,n=t.contentNodes;return i.length===n.length&&i.every(((e,t)=>e===n[t]))}return!1}}d.ReadoutActiveWordClass="msreadout-word-highlight",d.ReadoutActiveLineClass="msreadout-line-highlight",d.ReadoutInactiveClass="msreadout-inactive-highlight",t.WebReadingHighlighter=d},66:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebReadingNavigator=void 0;const n=i(963),o=i(3525),s=i(7930),r=i(647);class a extends n.HTMLReadingNavigator{constructor(e,t){super(e,t);const i=r.FeatureList.get();this._isReadAloudSemanticDocumentReadingEnabled=i&&i.isReadAloudSDExtractionEnabled(),this._isSmartReadExperienceChangesEnabled=i&&i.isSmartReadExperienceChangesEnabled(),this._webContentProvider=e}deepCopy(){let e=new a(this._webContentProvider,this._telemetryClient);return e._readingUnitNavigator=new s.ReadingUnitNavigator,Object.assign(e._readingUnitNavigator,this._readingUnitNavigator),e._readingUnit=e._readingUnitNavigator.getCurrentUnit(),e}resetSelection(e){this._webContentProvider.resetSelection(e)}collapseSelectionToNode(e,t){this._webContentProvider.collapseSelectionToNode(e,t)}isCuratedContentBasedNavigationSupported(e){return!!this._isReadAloudSemanticDocumentReadingEnabled&&(e.startType===o.StartType.Default||this._isSmartReadExperienceChangesEnabled&&e.startType===o.StartType.ReadFromPoint)}}t.WebReadingNavigator=a},2026:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebMainViewModel=void 0;const n=i(6475),o=i(66),s=i(6752),r=i(4273),a=i(746);t.WebMainViewModel=class{constructor(e,t){this._readOutLoudViewModel=null,this._settingsViewModel=null,this._hostProxy=e,this._currentFrame=t}initializeReadOutLoud(e,t){let i=this._hostProxy.getTelemetryClient();this._webContentProvider=new r.WebContentProvider(this._hostProxy,this._currentFrame,document);var d=new o.WebReadingNavigator(this._webContentProvider,i),l=new s.WebReadingHighlighter(this._webContentProvider);this._settingsViewModel=new n.ReadOutLoudSettingsViewModel(e,t,i),this._readOutLoudViewModel=new a.WebReadOutLoudViewModel(d,l,this._settingsViewModel,this._webContentProvider,i)}initializeLearningTools(){throw new Error("Method not implemented.")}getComprehensionToolsViewModel(){throw new Error("Method not implemented.")}getReadingPreferencesViewModel(){throw new Error("Method not implemented.")}getReadOutLoudViewModel(){return this._readOutLoudViewModel}getReadOutLoudSettingsViewModel(){return this._settingsViewModel}}},746:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebReadOutLoudViewModel=void 0;const n=i(3525),o=i(2174),s=i(6773),r=i(4134),a=i(190),d=i(647);class l extends n.ReadOutLoudViewModel{constructor(e,t,i,o,s){super(e,t,i,s,o);const a=d.FeatureList.get();this._isSmartReadExperienceChangesEnabled=a&&a.isSmartReadExperienceChangesEnabled(),this._readingStateChanged=new r.EventSource,this._readingState=n.ReadingState.Uninitialized,this._webContentProvider=o,this._webReadingHighlighter=t,this._overrideIsPositionValid=!1}getReadingState(){return this._readingState}readingStateChanged(){return this._readingStateChanged}setReadingState(e){this._readingState!==e&&(this._readingState=e,this._readingStateChanged.trigger(void 0))}onUserActionStarted(e){this._isSmartReadExperienceChangesEnabled||this._ignoreUserActionEvents||this.getReadingState()!==n.ReadingState.Playing||(this._continueReadingOnUserActionComplete=!0,this.cancelReading(!1),this._webReadingHighlighter.deactivateDecoration(a.DecorationType.Line))}onUserActionCompleted(e){this._isSmartReadExperienceChangesEnabled||this._ignoreUserActionEvents||!this._continueReadingOnUserActionComplete||(this.resetReadSelection(),this._continueClickCountAfterROLStarted++,this._readingNavigator.isCuratedContentNavigatorInUse()&&this._telemetryClient.reportReadOutLoudSmartReadStatus(o.SmartReadStatus.UserInitiatedFallbackClick),this.continueReading(s.UnitDirection.Next,{startType:n.StartType.ReadFromWordSelection,startRequestTime:0,startPosition:{x:0,y:0},needsTransformOfStartPosition:!0},!0))}addUserActionStartedListener(){return this._webContentProvider.onSelectionStart().subscribe((()=>{this._readingState===n.ReadingState.Playing&&(this._overrideIsPositionValid=!0),this.onUserActionStarted()}))}addUserActionCompletedListener(){return this._webContentProvider.onSelectionEnd().subscribe((()=>{this.onUserActionCompleted(),this._overrideIsPositionValid=!1}))}isReadingPositionValid(){return!this._overrideIsPositionValid&&this._webContentProvider.getCurrentDocument().getSelection().isCollapsed&&this._webReadingHighlighter.isWordDecorationValid()}}t.WebReadOutLoudViewModel=l},9407:(e,t)=>{var i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.NlxStatus=t.ThemeType=void 0,(n=t.ThemeType||(t.ThemeType={}))[n.Light=0]="Light",n[n.Dark=1]="Dark",(i=t.NlxStatus||(t.NlxStatus={}))[i.Success=0]="Success",i[i.NetworkErrorInternetDisconnected=1]="NetworkErrorInternetDisconnected",i[i.NetworkErrorRetryAfterSometime=2]="NetworkErrorRetryAfterSometime",i[i.NetworkErrorBrowserNeedsToBeUpdated=3]="NetworkErrorBrowserNeedsToBeUpdated",i[i.NetworkErrorUnexpected=4]="NetworkErrorUnexpected",i[i.NetworkErrorUnknown=5]="NetworkErrorUnknown",i[i.LanguageNotSupported=6]="LanguageNotSupported"}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0,(()=>{const e=i(52),t=i(2026),n=i(2174),o=i(1553),s=i(1266),r=i(1224);i(8669);class a extends o.LearningToolsRuntime{constructor(){super()}initialize(i){super.initialize(i),window.addEventListener("error",(t=>{var i=JSON.stringify({hostName:"Browser",featureName:"ReadOutLoud",eventName:"ReadOutLoud_Error",errorID:n.ReadAloudErrors.GlobalScriptError.toString()});this.postMessageToHost(e.HostProxy.TelemetryMessage,[i])}));var o={frameTreeNodeId:Number(i[0]),processId:Number(i[1])},a=new r.LearningToolsHostProxy(this),d=new s.LearningToolsCore,l=new t.WebMainViewModel(a,o);d.initializeReadOutLoud(a,l,!0);let u=[e.HostProxy.ReadOutLoudInitializeSettingsCommand,i[0],i[1],i[3],i[4]];this.raiseMessageFromHost(u)}}let d=new a;window.learningToolsRuntime=d})()})();(()=>{"use strict";var e={134:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventSource=void 0,t.EventSource=class{constructor(){this._subscribers=[]}subscribe(e){var t=!1,i=i=>{t||e(i)};return this._subscribers.push(i),{release:()=>{t=!0;var e=this._subscribers.indexOf(i);e>-1&&this._subscribers.splice(e,1)}}}trigger(e){for(var t=this._subscribers.slice(0),i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.JsonUtilities=void 0;const o=i(988);(t.JsonUtilities||(t.JsonUtilities={})).parseJsonOrNull=function(e,t,i,n){if(!o.StringUtilities.isNullOrEmpty(e))try{return JSON.parse(e)}catch(e){n&&n.reportJsonParsingError(t,i)}return null}},227:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollSource=void 0,(i=t.ScrollSource||(t.ScrollSource={}))[i.ReadAloud=0]="ReadAloud",i[i.LineFocus=1]="LineFocus",i[i.Zoom=2]="Zoom",i[i.Unknown=3]="Unknown"},988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0,function(e){e.NONEMPTY_STRING_REGEX=new RegExp("\\S");const t=/([.?*+^$[\]\\(){}|-])/g,i=/\s*/g;function o(e){return e&&e.length?e.replace(t,"").replace(i,""):""}e.adjustTextByLength=function(e,t,i){var o=[],n="";return e.forEach((e=>{if(n.length+e.length<=t)n+=e;else{for(var s=function(e,t,i){for(var o=[],n=e,s=i;n.length>0;){if(n.length>i){s=i;for(var r=0;r0){s=a+1;break}}}else s=n.length;o.push(n.substr(0,s)),n=n.substr(s)}return o}(e,i,t),r=0;r0&&(o.push(n),n=""),s.forEach((e=>{o.push(e)}))}})),n.length>0&&o.push(n),o},e.skipStartText=function(e,t){for(var i=0,o=0;o=e[o].length;o++)i++,t-=e[o].length;return i>0&&e.splice(0,i),e.length>0&&t>0&&(e[0]=e[0].substring(t)),e},e.truncateEnd=function(e,t){let i=0;for(;i=e[i].length;i++)t-=e[i].length;return i0&&(e[i]=e[i].substring(0,t),i++),e.splice(i)),e},e.isNullOrEmpty=function(e){return null==e||0===e.length},e.replaceLinebreaksWithSpaces=function(e){return e.replace(/[\r\n]/g," ")},e.removeLineBreaksAndWhiteSpaces=function(e){return e.replace(/(\r\n|\n|\r|\s+)/gm,"")},e.createRegex=function(e){return e=o(e),new RegExp("("+e+")","ig")},e.replaceSpaceAndSpecialChar=o,e.ExactMatchWithoutSpaceAndSpecialChar=function(e,t){return o(e)===o(t)}}(t.StringUtilities||(t.StringUtilities={}))},647:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureList=void 0;class i{static create(e){i._singletonObj=new i(e)}static get(){return i._singletonObj}constructor(e){this._features=e}isReadAloudSDExtractionEnabled(){return Boolean(this._features.readAloudSDExtractionEnabled)}isPreloadOnStartUtteranceEnabled(){return Boolean(this._features.readAloudPreloadOnStartUtterance)}isSmartReadExperienceChangesEnabled(){return Boolean(this._features.smartReadExperienceChangesEnabled)}isPdfReadAloudWithPageTextDataEnabled(){return Boolean(this._features.pdfReadAloudWithPageTextDataEnabled)}}t.FeatureList=i},50:(e,t)=>{var i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentType=t.UserActionType=void 0,(o=t.UserActionType||(t.UserActionType={}))[o.Selection=0]="Selection",o[o.Scrolling=1]="Scrolling",(i=t.ContentType||(t.ContentType={}))[i.Web=0]="Web",i[i.ReadingView=1]="ReadingView",i[i.PDF=2]="PDF"},174:(e,t)=>{var i,o,n,s;Object.defineProperty(t,"__esModule",{value:!0}),t.SmartReadStatus=t.ReadAloudStartStates=t.ReadAloudErrors=t.ReadAloudVoiceUsage=void 0,(s=t.ReadAloudVoiceUsage||(t.ReadAloudVoiceUsage={}))[s.kOnlineVoice=0]="kOnlineVoice",s[s.kOfflineVoice=1]="kOfflineVoice",(n=t.ReadAloudErrors||(t.ReadAloudErrors={}))[n.GlobalScriptError=0]="GlobalScriptError",n[n.ScriptInjectionFailure=1]="ScriptInjectionFailure",n[n.SpeechUtteranceCreationFailure=2]="SpeechUtteranceCreationFailure",n[n.NoLanguagePackageInstalled=3]="NoLanguagePackageInstalled",n[n.LanguagePackageNotFound=4]="LanguagePackageNotFound",n[n.ReadingNavigatorInitializeFailure=5]="ReadingNavigatorInitializeFailure",n[n.NoVoicesAvailable=6]="NoVoicesAvailable",n[n.JSONParsing_ReadOutLoudSpeechPreferences=7]="JSONParsing_ReadOutLoudSpeechPreferences",n[n.JSONParsing_ReadOutLoudSpeechPreferences_ScopeState=8]="JSONParsing_ReadOutLoudSpeechPreferences_ScopeState",n[n.JSONParsing_ReadOutLoudStartRequestedTime=9]="JSONParsing_ReadOutLoudStartRequestedTime",n[n.Timeout=10]="Timeout",n[n.SpeechUtteranceCreationFailureForOnlineVoice=11]="SpeechUtteranceCreationFailureForOnlineVoice",n[n.SpeechUtteranceCreationFailure_Network=12]="SpeechUtteranceCreationFailure_Network",n[n.SpeechUtteranceCreationFailure_SynthesisFailed=13]="SpeechUtteranceCreationFailure_SynthesisFailed",n[n.SpeechUtteranceCreationFailure_TextTooLong=14]="SpeechUtteranceCreationFailure_TextTooLong",n[n.SpeechUtteranceCreationFailure_OnStart=15]="SpeechUtteranceCreationFailure_OnStart",n[n.SpeechUtteranceCreationFailureForOnlineVoice_OnStart=16]="SpeechUtteranceCreationFailureForOnlineVoice_OnStart",n[n.SpeechUtteranceCreationFailure_Network_OnStart=17]="SpeechUtteranceCreationFailure_Network_OnStart",n[n.SpeechUtteranceCreationFailure_TextTooLong_OnStart=18]="SpeechUtteranceCreationFailure_TextTooLong_OnStart",n[n.SpeechUtteranceCreationFailure_SynthesisFailed_OnStart=19]="SpeechUtteranceCreationFailure_SynthesisFailed_OnStart",n[n.StartCommandTimeout=20]="StartCommandTimeout",n[n.NoOnlineVoicesAvailable=21]="NoOnlineVoicesAvailable",(o=t.ReadAloudStartStates||(t.ReadAloudStartStates={}))[o.ReadAloud_StartRequested=0]="ReadAloud_StartRequested",o[o.ReadAloud_Initialization=1]="ReadAloud_Initialization",o[o.ReadAloud_Activation=2]="ReadAloud_Activation",o[o.ReadAloud_Pause=3]="ReadAloud_Pause",o[o.ReadAloud_Stop=4]="ReadAloud_Stop",o[o.ReadAloud_Playing=5]="ReadAloud_Playing",o[o.ReadAloud_ContentNotAvailable=6]="ReadAloud_ContentNotAvailable",o[o.ReadAloud_StartReadingIgnored=7]="ReadAloud_StartReadingIgnored",(i=t.SmartReadStatus||(t.SmartReadStatus={}))[i.Start=0]="Start",i[i.ContentEmptyPaywalled=1]="ContentEmptyPaywalled",i[i.ContentEmptyNonPaywalled=2]="ContentEmptyNonPaywalled",i[i.ContentFetchTimedOut=3]="ContentFetchTimedOut",i[i.InvalidResponse=4]="InvalidResponse",i[i.ContentLow=5]="ContentLow",i[i.ContentNoMatch=6]="ContentNoMatch",i[i.UserInitiatedFallbackClick=7]="UserInitiatedFallbackClick",i[i.UserInitiatedFallbackContextMenu=8]="UserInitiatedFallbackContextMenu"},990:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolType=void 0,(i=t.LearningToolType||(t.LearningToolType={}))[i.Syllables=1]="Syllables",i[i.PartsOfSpeech=2]="PartsOfSpeech",i[i.PictureDictionary=3]="PictureDictionary"},266:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsCore=void 0;const o=i(989),n=i(99),s=i(860),r=i(978),a=i(68);t.LearningToolsCore=class{constructor(e){this._viewer=e||null,this._rolEventHandlers=null,this._learningToolSettingsStore=new o.LearningToolsSettingsStoreProxy,this._learningToolsSettingsEventHandlers=null,this._comprehensionToolsEventHandlers=null,this._readingPreferencesEventHandlers=null,this._viewer&&this._viewer.applyLearningToolsStyles()}initializeReadOutLoud(e,t,i){this._rolEventHandlers=new s.ReadOutLoudEventHandlers(e,t,i)}initializeLearningTools(e,t){this._learningToolsSettingsEventHandlers=new n.LearningToolsSettingsEventHandlers(this._learningToolSettingsStore,e),this._comprehensionToolsEventHandlers=new r.ComprehensionToolsEventHandlers(e,t),this._readingPreferencesEventHandlers=new a.ReadingPreferencesEventHandlers(e,t)}initializeLearningToolsModels(){this._readingPreferencesEventHandlers.ensureInitialize(),this._comprehensionToolsEventHandlers.ensureInitialize()}getComprehensionToolsSettingsStore(){return this._learningToolSettingsStore}}},553:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsRuntime=void 0;const o=i(134),n=i(704),s=i(647);t.LearningToolsRuntime=class{constructor(){this._messageFromHost=new o.EventSource}onMessageFromHost(){return this._messageFromHost}postMessageToHost(e,t){let i=t.length;"Telemetry"===e&&i>0&&"Renderer"===t[0]?(n.TelemetryLogger.logTelemetry(t),i>2&&("ReadOutLoud_LogDwellTime"===t[2]||"ReadOutLoud_LogCharacterCount"===t[2])&&this.sendMessageToHost(e,t)):this.sendMessageToHost(e,t)}detectTextLanguage(e){let t="und";return learningToolsNativeHandler&&learningToolsNativeHandler.detectTextLanguage&&(t=learningToolsNativeHandler.detectTextLanguage(e)),t}initializePDFReader(){learningToolsNativeHandler&&learningToolsNativeHandler.initializePDFReader&&learningToolsNativeHandler.initializePDFReader()}raiseMessageFromHost(e){this._messageFromHost.trigger(e)}initialize(e){if(e[2].length>0){let t=JSON.parse(e[2]);s.FeatureList.create(t)}}sendMessageToHost(e,t){learningToolsNativeHandler&&("Telemetry"===e&&t.shift(),learningToolsNativeHandler.sendMessageToHost(e,t))}}},99:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsSettingsEventHandlers=void 0;const o=i(989);t.LearningToolsSettingsEventHandlers=class{constructor(e,t){this._learningToolsSettingsStore=e,this._hostProxy=t,this._hostProxy.initializeComprehensionToolsSettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializeGrammarToolsSettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._hostProxy.initializePictureDictionarySettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializePictureDictionarySettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._hostProxy.initializeLineFocusSettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializeLineFocusSettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._learningToolsSettingsStore.onSettingChanged().subscribe((e=>{switch(e.name){case o.ComprehensionToolsPOSColors:let t=JSON.parse(this._learningToolsSettingsStore.getComprehensionToolsSettings());t[e.name]=e.value,this._hostProxy.sendComprehensionToolsSettings(JSON.stringify(t));break;case o.ComprehensionToolsLineMarkersEnabled:let i=JSON.parse(this._learningToolsSettingsStore.getComprehensionToolsSettings());i[e.name]=e.value,this._hostProxy.sendComprehensionToolsSettings(JSON.stringify(i));break;case o.LineFocusLineCount:let n=JSON.parse(this._learningToolsSettingsStore.getLineCountSettings());n[e.name]=e.value,this._hostProxy.sendLineFocusSettings(JSON.stringify(n));break;case o.PictureDictionaryEnabled:case o.PictureDictionaryFirstRunExperienceCompleted:let s=JSON.parse(this._learningToolsSettingsStore.getPictureDictionarySettings());s[e.name]=e.value,this._hostProxy.sendPictureDictionarySettings(JSON.stringify(s))}})),this._hostProxy.settingsUpdateRequested().subscribe((e=>{this._learningToolsSettingsStore.onSettingsUpdateFromHost(e)}))}}},989:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsSettingsStoreProxy=t.PictureDictionaryFirstRunExperienceCompleted=t.PictureDictionaryEnabled=t.LineFocusLineCount=t.ComprehensionToolsLineMarkersEnabled=t.ComprehensionToolsPOSColors=void 0;const o=i(134),n=i(295),s='{"ComprehensionTools_PartsOfSpeechColors": [ {"nounsColorIndex": 5, "verbsColorIndex": 4, "adjectivesColorIndex": 1, "adverbsColorIndex": 9} ], "ComprehensionTools_LineMarkersEnabled":false}';t.ComprehensionToolsPOSColors="ComprehensionTools_PartsOfSpeechColors",t.ComprehensionToolsLineMarkersEnabled="ComprehensionTools_LineMarkersEnabled",t.LineFocusLineCount="LineFocus_LineCount",t.PictureDictionaryEnabled="PictureDictionary_Enabled",t.PictureDictionaryFirstRunExperienceCompleted="PictureDictionary_FirstRunExperienceCompleted",t.LearningToolsSettingsStoreProxy=class{constructor(){this._onSettingChanged=new o.EventSource}get currentFrame(){return this._currentFrame}getComprehensionToolsSettings(){return JSON.stringify(this._comprehensionToolsSettings)}getPictureDictionarySettings(){return JSON.stringify(this._pictureDictionarySettings)}getLineCountSettings(){return JSON.stringify(this._lineFocusSettings)}onSettingChanged(){return this._onSettingChanged}getSetting(e){let i;switch(e){case t.ComprehensionToolsPOSColors:case t.ComprehensionToolsLineMarkersEnabled:i=this._comprehensionToolsSettings;break;case t.PictureDictionaryEnabled:case t.PictureDictionaryFirstRunExperienceCompleted:i=this._pictureDictionarySettings;break;case t.LineFocusLineCount:i=this._lineFocusSettings}return i&&i.hasOwnProperty(e)?i[e]:null}setSetting(e,i){let o;switch(e){case t.ComprehensionToolsPOSColors:case t.ComprehensionToolsLineMarkersEnabled:o=this._comprehensionToolsSettings;break;case t.PictureDictionaryEnabled:case t.PictureDictionaryFirstRunExperienceCompleted:o=this._pictureDictionarySettings;break;case t.LineFocusLineCount:o=this._lineFocusSettings}o&&o.hasOwnProperty(e)&&(o[e]=i,this._onSettingChanged.trigger({name:e,value:i}))}onSettingsUpdateFromHost(e){}onInitializeGrammarToolsSettingsFromHost(e,i){if(this._currentFrame=e,this._comprehensionToolsSettings=n.JsonUtilities.parseJsonOrNull(i,"ComprehensionTools","InitialSettings"),this._comprehensionToolsSettings)if(this._comprehensionToolsSettings.hasOwnProperty(t.ComprehensionToolsLineMarkersEnabled)&&this._comprehensionToolsSettings.hasOwnProperty(t.ComprehensionToolsPOSColors)){let e=this._comprehensionToolsSettings[t.ComprehensionToolsPOSColors];if(e&&(!e.hasOwnProperty("verbsColorIndex")||!e.hasOwnProperty("nounsColorIndex")||!e.hasOwnProperty("adverbsColorIndex")||!e.hasOwnProperty("adverbsColorIndex")))return void n.JsonUtilities.parseJsonOrNull(s,"ComprehensionTools","InitialSettings")}else this._comprehensionToolsSettings=n.JsonUtilities.parseJsonOrNull(s,"ComprehensionTools","InitialSettings");else this._comprehensionToolsSettings=n.JsonUtilities.parseJsonOrNull(s,"ComprehensionTools","InitialSettings")}onInitializePictureDictionarySettingsFromHost(e,i){this._currentFrame=e,this._pictureDictionarySettings=n.JsonUtilities.parseJsonOrNull(i,"PictureDictionary","InitialSettings"),this._pictureDictionarySettings&&(!this._pictureDictionarySettings||this._pictureDictionarySettings.hasOwnProperty(t.PictureDictionaryEnabled)&&this._pictureDictionarySettings.hasOwnProperty(t.PictureDictionaryFirstRunExperienceCompleted))||(this._pictureDictionarySettings=n.JsonUtilities.parseJsonOrNull('{"PictureDictionary_Enabled":false, "PictureDictionary_FirstRunExperienceCompleted":false}',"PictureDictionary","InitialSettings"))}onInitializeLineFocusSettingsFromHost(e,i){this._currentFrame=e,this._lineFocusSettings=n.JsonUtilities.parseJsonOrNull(i,"LineFocus","InitialSettings"),(!this._lineFocusSettings||this._lineFocusSettings&&!this._lineFocusSettings.hasOwnProperty(t.LineFocusLineCount))&&(this._lineFocusSettings=n.JsonUtilities.parseJsonOrNull('{"LineFocus_LineCount":1}',"LineFocus","InitialSettings"))}}},590:(e,t)=>{var i,o,n,s;Object.defineProperty(t,"__esModule",{value:!0}),t.LineFocusLineCountType=t.HttpResponseCodeOperationResultMap=t.LinguisticModelOperationResult=t.ReadAloudPdfErrors=t.LearningToolsHistogramNames=void 0,(s=t.LearningToolsHistogramNames||(t.LearningToolsHistogramNames={}))[s.ComprehensionToolsSyllabifyResultHistogram=0]="ComprehensionToolsSyllabifyResultHistogram",s[s.ComprehensionToolsPartsOfSpeechResultHistogram=1]="ComprehensionToolsPartsOfSpeechResultHistogram",s[s.ComprehensionToolsPaneInitializationResultHistogram=2]="ComprehensionToolsPaneInitializationResultHistogram",s[s.ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram=3]="ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram",s[s.ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram=4]="ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram",s[s.ComprehensionToolsPaneInitializationTimeTakenForCompletionHistogram=5]="ComprehensionToolsPaneInitializationTimeTakenForCompletionHistogram",s[s.ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram=6]="ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram",s[s.ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram=7]="ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram",s[s.ComprehensionToolsDwellTimeHistogram=8]="ComprehensionToolsDwellTimeHistogram",s[s.ReadAloudDwellTimeWeb=9]="ReadAloudDwellTimeWeb",s[s.ReadAloudDwellTimeReadingView=10]="ReadAloudDwellTimeReadingView",s[s.ReadAloudDwellTimePDF=11]="ReadAloudDwellTimePDF",s[s.ReadAloudVoiceUsageWeb=12]="ReadAloudVoiceUsageWeb",s[s.ReadAloudVoiceUsageReadingView=13]="ReadAloudVoiceUsageReadingView",s[s.ReadAloudVoiceUsagePDF=14]="ReadAloudVoiceUsagePDF",s[s.LineFocusStartStatus=15]="LineFocusStartStatus",s[s.LineFocusDwellTime=16]="LineFocusDwellTime",s[s.LineFocusTimeToStart=17]="LineFocusTimeToStart",s[s.LineFocusLineCount=18]="LineFocusLineCount",s[s.ReadAloudPdfPageCount=19]="ReadAloudPdfPageCount",s[s.ReadAloudPdfError=20]="ReadAloudPdfError",s[s.PictureDictionaryResultHistogram=21]="PictureDictionaryResultHistogram",s[s.ReadAloudPdfStartTimeToPageRatio=22]="ReadAloudPdfStartTimeToPageRatio",s[s.PictureDictionaryServiceRequestProcessingTimeHistogram=23]="PictureDictionaryServiceRequestProcessingTimeHistogram",s[s.PictureDictionaryPopupLaunchCount=24]="PictureDictionaryPopupLaunchCount",s[s.PictureDictionaryTimeTakenForPopupCreation=25]="PictureDictionaryTimeTakenForPopupCreation",s[s.PictureDictionaryWordsWithPicturesPercentage=26]="PictureDictionaryWordsWithPicturesPercentage",s[s.PictureDictionaryPopupLaunchPercentage=27]="PictureDictionaryPopupLaunchPercentage",s[s.PictureDictionaryToggleState=28]="PictureDictionaryToggleState",s[s.ReadAloudPdfAxTreeLoadTime=29]="ReadAloudPdfAxTreeLoadTime",s[s.ReadingViewToolsUsed=30]="ReadingViewToolsUsed",s[s.ReadingViewSelectionToolsUsed=31]="ReadingViewSelectionToolsUsed",s[s.ReadAloudOnlineCharacterCountWeb=32]="ReadAloudOnlineCharacterCountWeb",s[s.ReadAloudOnlineCharacterCountReadingView=33]="ReadAloudOnlineCharacterCountReadingView",s[s.ReadAloudOnlineCharacterCountPDF=34]="ReadAloudOnlineCharacterCountPDF",s[s.ReadAloudOfflineCharacterCountWeb=35]="ReadAloudOfflineCharacterCountWeb",s[s.ReadAloudOfflineCharacterCountReadingView=36]="ReadAloudOfflineCharacterCountReadingView",s[s.ReadAloudOfflineCharacterCountPDF=37]="ReadAloudOfflineCharacterCountPDF",s[s.ReadAloudStartPageNumberWeb=38]="ReadAloudStartPageNumberWeb",s[s.ReadAloudStartPageNumberReadingView=39]="ReadAloudStartPageNumberReadingView",s[s.ReadAloudStartPageNumberPDF=40]="ReadAloudStartPageNumberPDF",s[s.ReadAloudVoiceChangeCountWeb=41]="ReadAloudVoiceChangeCountWeb",s[s.ReadAloudVoiceChangeCountReadingView=42]="ReadAloudVoiceChangeCountReadingView",s[s.ReadAloudVoiceChangeCountPDF=43]="ReadAloudVoiceChangeCountPDF",s[s.ReadAloudRateChangeCountWeb=44]="ReadAloudRateChangeCountWeb",s[s.ReadAloudRateChangeCountReadingView=45]="ReadAloudRateChangeCountReadingView",s[s.ReadAloudRateChangeCountPDF=46]="ReadAloudRateChangeCountPDF",s[s.ComprehensionToolsPartsOfSpeechUsed=47]="ComprehensionToolsPartsOfSpeechUsed",s[s.ComprehensionToolsSyllablesUsed=48]="ComprehensionToolsSyllablesUsed",s[s.PictureDictionaryUsed=49]="PictureDictionaryUsed",s[s.ReadAloudSpeechSynthesisInvoked=50]="ReadAloudSpeechSynthesisInvoked",s[s.ReadAloudContinueClickCountWeb=51]="ReadAloudContinueClickCountWeb",(n=t.ReadAloudPdfErrors||(t.ReadAloudPdfErrors={}))[n.None=0]="None",n[n.AccessibilityTreeLoadTimeout=1]="AccessibilityTreeLoadTimeout",n[n.AccessibilityTreeUpdateTimeout=2]="AccessibilityTreeUpdateTimeout",n[n.MojoPipeBindingBrowserToRendererFailed=3]="MojoPipeBindingBrowserToRendererFailed",n[n.AccessibilityTreeHelperCreationFailed=4]="AccessibilityTreeHelperCreationFailed",n[n.AccessibilityTreeSerializationFailed=5]="AccessibilityTreeSerializationFailed",n[n.InitialParamsJSONFailure=6]="InitialParamsJSONFailure",n[n.kMaxValue=6]="kMaxValue",function(e){e[e.Success=0]="Success",e[e.TimedOut=1]="TimedOut",e[e.ProcessLinguisticModelRequestFailed=2]="ProcessLinguisticModelRequestFailed",e[e.BuildLiguisticModelRequestContentFailed=3]="BuildLiguisticModelRequestContentFailed",e[e.CreateLinguisticModelResourceRequestFailed=4]="CreateLinguisticModelResourceRequestFailed",e[e.RequestFailedInternetDisconnected=5]="RequestFailedInternetDisconnected",e[e.HttpResponseBadRequest=6]="HttpResponseBadRequest",e[e.HttpResponseUnAuthorized=7]="HttpResponseUnAuthorized",e[e.HttpResponseForbidden=8]="HttpResponseForbidden",e[e.HttpResponseNotFound=9]="HttpResponseNotFound",e[e.HttpResponseMethodNotAllowed=10]="HttpResponseMethodNotAllowed",e[e.HttpResponseRequestTimeout=11]="HttpResponseRequestTimeout",e[e.HttpResponseConflict=12]="HttpResponseConflict",e[e.HttpResponseGone=13]="HttpResponseGone",e[e.HttpResponsePreconditionFailed=14]="HttpResponsePreconditionFailed",e[e.HttpResponseCancelled=15]="HttpResponseCancelled",e[e.HttpResponseRequestEntityTooLarge=16]="HttpResponseRequestEntityTooLarge",e[e.HttpResponseTooManyRequests=17]="HttpResponseTooManyRequests",e[e.HttpResponseInternalServerError=18]="HttpResponseInternalServerError",e[e.HttpResponseServiceUnavailable=19]="HttpResponseServiceUnavailable",e[e.HttpResponseVersionNotSupported=20]="HttpResponseVersionNotSupported",e[e.HttpResponseNotImplemented=21]="HttpResponseNotImplemented",e[e.HttpResponseUnknown=22]="HttpResponseUnknown",e[e.BuildLiguisticModelResponseFailed=23]="BuildLiguisticModelResponseFailed",e[e.LinguisticModelResourceRequestTimedOut=24]="LinguisticModelResourceRequestTimedOut",e[e.kMaxValue=24]="kMaxValue"}(i=t.LinguisticModelOperationResult||(t.LinguisticModelOperationResult={})),t.HttpResponseCodeOperationResultMap=new Map([[0,i.HttpResponseUnknown],[2,i.ProcessLinguisticModelRequestFailed],[3,i.BuildLiguisticModelRequestContentFailed],[4,i.CreateLinguisticModelResourceRequestFailed],[5,i.RequestFailedInternetDisconnected],[23,i.BuildLiguisticModelResponseFailed],[24,i.LinguisticModelResourceRequestTimedOut],[400,i.HttpResponseBadRequest],[401,i.HttpResponseUnAuthorized],[403,i.HttpResponseForbidden],[404,i.HttpResponseNotFound],[405,i.HttpResponseMethodNotAllowed],[408,i.HttpResponseRequestTimeout],[409,i.HttpResponseConflict],[410,i.HttpResponseGone],[412,i.HttpResponsePreconditionFailed],[413,i.HttpResponseRequestEntityTooLarge],[429,i.HttpResponseTooManyRequests],[499,i.HttpResponseCancelled],[500,i.HttpResponseInternalServerError],[501,i.HttpResponseNotImplemented],[503,i.HttpResponseServiceUnavailable],[505,i.HttpResponseVersionNotSupported]]),(o=t.LineFocusLineCountType||(t.LineFocusLineCountType={}))[o.OneLine=0]="OneLine",o[o.ThreeLines=1]="ThreeLines",o[o.FiveLines=2]="FiveLines",o[o.kMaxValue=2]="kMaxValue"},83:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryClient=void 0;const o=i(590),n=i(339),s=i(990),r=i(174),a=i(50),d=i(495);t.TelemetryClient=class{constructor(e){this._hostProxy=e}reportJsonParsingError(e,t){this._hostProxy&&"ReadOutLoud"===e&&this._hostProxy.sendTelemetry("Browser",e,e+"_Error",r.ReadAloudErrors[t].toString())}reportLearningToolNLXRequestProcessTime(e,t,i){e!==s.LearningToolType.PartsOfSpeech&&e!==s.LearningToolType.Syllables||!this._hostProxy?e===s.LearningToolType.PictureDictionary&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_NLXRequestProcessTimeMessage",s.LearningToolType[e],t,i.toString()):this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_NLXRequestProcessTimeMessage",s.LearningToolType[e],t,i.toString())}reportComprehensionToolsResultState(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_OperationResultState",n.ComprehensionToolType[e],o.LinguisticModelOperationResult[t],i.toString())}reportComprehensionToolsDwellTime(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_LogDwellTime",e.toString())}reportComprehensionToolsUsage(e){this._hostProxy&&this._hostProxy.sendTelemetry(d.RendererHost,d.ComprehensionToolsFeatureName,d.ComprehensionToolsLogUsage,n.ComprehensionToolType[e])}reportReadOutLoudDwellTime(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogDwellTime",a.ContentType[e].toString(),t.toString())}reportReadOutLoudSuccess(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_Success",e,t.toString(),i.toString())}reportReadOutLoudVoiceUsage(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_VoiceUsage",a.ContentType[e].toString(),t.toString())}reportReadOutLoudInternalError(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_Error",e.toString())}reportReadOutLoudStartStates(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_StartStates",e.toString())}reportReadOutLoudPDFPageCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogPageCount",e.toString())}reportReadOutLoudStartPageNumber(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogStartPageNumber",a.ContentType[e].toString(),t.toString())}reportReadOutLoudPdfTimeToPageRatio(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogTimeToPageRatio",e.toString())}reportReadOutLoudPdfError(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoudPdf_Error",e.valueOf().toString())}reportReadOutLoudCharacterCount(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogCharacterCount",t.toString(),a.ContentType[e].toString(),i.toString())}reportNoPII(e,t){this._hostProxy&&this._hostProxy.sendTelemetryErrorMeasureNoPII(e,t)}reportLineFocusStartStatus(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_StartStatus",e.toString())}reportLineFocusDwellTime(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_DwellTime",e.toString())}reportLineFocusTimeToStart(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_TimeToStart",e.toString())}reportLineFocusLineCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_LineCount",e.toString())}reportPictureDictionaryResultState(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_OperationResultState",o.LinguisticModelOperationResult[e],t.toString())}reportPictureDictionaryPopupLaunchCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_PopupLaunchCount",e.toString())}reportPictureDictionaryTimeTakenForPopupCreation(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_TimeTakenForPopupCreation",e.toString())}reportPictureDictionaryWordsWithPicturesPercentage(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_WordsWithPicturesPercentage",e.toString())}reportPictureDictionaryPopupLaunchPercentage(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_PopupLaunchPercentage",e.toString())}reportPictureDictionaryToggleState(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_ToggleState",e.toString())}reportPictureDictionaryUsage(){this._hostProxy&&this._hostProxy.sendTelemetry(d.RendererHost,d.PictureDictionaryFeatureName,d.PictureDictionaryLogUsage)}reportReadOutLoudVoiceChange(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesVoiceChanged",a.ContentType[e].toString(),t.toString())}reportReadOutLoudRateChange(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesRateChanged",a.ContentType[e].toString(),t.toString())}reportReadOutLoudSpeechSynthesisInvoke(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesSpeechSynthesisInvoked",e.toString())}reportReadOutLoudContinueClickCount(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogContinueClickCount",t.toString(),a.ContentType[e].toString())}reportReadOutLoudSmartReadStatus(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_SmartReadStatus",e.toString())}reportReadOutLoudSmartReadContentMatch(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_SmartReadContentMatch",e.toString())}}},495:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PictureDictionaryLogUsage=t.PictureDictionaryFeatureName=t.ComprehensionToolsLogUsage=t.ComprehensionToolsFeatureName=t.RendererHost=void 0,t.RendererHost="Renderer",t.ComprehensionToolsFeatureName="ComprehensionTools",t.ComprehensionToolsLogUsage="ComprehensonTools_LogUsage",t.PictureDictionaryFeatureName="PictureDictionary",t.PictureDictionaryLogUsage="PictureDictionary_LogUsage"},704:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryLogger=void 0;const o=i(590),n=i(339),s=i(174),r=i(990),a=i(495);class d{static logTelemetry(e){switch(e[1]){case"ReadOutLoud":d.handleReadAloudTelemetryMessage(e);break;case"ComprehensionTools":d.handleComprehensionToolsTelemetryMessage(e);break;case"LineFocus":d.handleLineFocusTelemetryMessage(e);break;case"PictureDictionary":d.handlePictureDictionaryTelemetryMessage(e);break;default:return}}static handleLineFocusTelemetryMessage(e){e.length<4||("LineFocus_StartStatus"===e[2]?d.logLineFocusStartStatus("true"===e[3]):"LineFocus_TimeToStart"===e[2]?d.logLineFocusTimeToStart(Number(e[3])):"LineFocus_DwellTime"===e[2]?d.logLineFocusDwellTime(Number(e[3])):"LineFocus_LineCount"===e[2]&&d.logLineFocusLineCount(Number(e[3])))}static handleComprehensionToolsTelemetryMessage(e){e.length>=6&&"ComprehensionTools_OperationResultState"===e[2]?d.logComprehensionToolOperationResult(e[3],o.LinguisticModelOperationResult[e[4]],Number(e[5])):e.length>=6&&"ComprehensionTools_NLXRequestProcessTimeMessage"===e[2]?d.logNLXRequestProcessTime(e[3],e[4],Number(e[5])):e.length>=4&&"ComprehensionTools_LogDwellTime"===e[2]?d.logComprehensionToolsDwellTime(Number(e[3])):e.length>=4&&e[2]===a.ComprehensionToolsLogUsage&&d.logComprehensionToolsUsage(e[3])}static handleReadAloudTelemetryMessage(e){"ReadOutLoud_LogDwellTime"===e[2]?d.logReadAloudDwellTime(e[3],Number(e[4])):"ReadOutLoud_VoiceUsage"===e[2]?d.logReadAloudVoiceUsage(e[3],"true"===e[4]):"ReadOutLoud_LogPageCount"===e[2]?isNaN(Number(e[3]))||d.logReadAloudPdfPageCount(Number(e[3])):"ReadOutLoud_LogTimeToPageRatio"===e[2]?isNaN(Number(e[3]))||d.logReadAloudPdfPageToTimeRatio(Number(e[3])):"ReadOutLoudPdf_Error"===e[2]?isNaN(Number(e[3]))||d.logReadAloudPdfError(Number(e[3])):"ReadOutLoud_LogCharacterCount"===e[2]?isNaN(Number(e[3]))||d.logReadAloudCharacterCount(Number(e[3]),e[4],"true"===e[5]):"ReadOutLoud_LogStartPageNumber"===e[2]?isNaN(Number(e[4]))||d.logReadAloudStartPageNumber(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesVoiceChanged"===e[2]?isNaN(Number(e[4]))||d.logReadAloudNoOfTimeVoiceChanged(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesRateChanged"===e[2]?isNaN(Number(e[4]))||d.logReadAloudNoOfTimesRateChanged(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesSpeechSynthesisInvoked"===e[2]?isNaN(Number(e[3]))||d.logReadAloudNoOfTimesSpeechSynthesisInvoked(Number(e[3])):"ReadOutLoud_LogContinueClickCount"===e[2]&&(isNaN(Number(e[3]))||d.logReadAloudContinueClickCountWebAfterROLStarted(Number(e[3]),e[4]))}static handlePictureDictionaryTelemetryMessage(e){"PictureDictionary_ToggleState"===e[2]&&4===e.length?d.logPictureDictionaryToggleState("true"===e[3]):"PictureDictionary_OperationResultState"===e[2]&&5===e.length?d.logPictureDictionaryOperationResult(o.LinguisticModelOperationResult[e[3]],Number(e[4])):"PictureDictionary_NLXRequestProcessTimeMessage"!==e[2]||6!==e.length||isNaN(Number(e[5]))?"PictureDictionary_PopupLaunchCount"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_TimeTakenForPopupCreation"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_WordsWithPicturesPercentage"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_PopupLaunchPercentage"!==e[2]||4!==e.length||isNaN(Number(e[3]))?e[2]===a.PictureDictionaryLogUsage&&d.logPictureDictionaryUsage():d.logPictureDictionaryPopupLaunchPercentage(Number(e[3])):d.logPictureDictionaryWordsWithPicturesPercentage(Number(e[3])):d.logPictureDictionaryTimeTakenForPopupCreation(Number(e[3])):d.logPictureDictionaryPopupLaunchCount(Number(e[3])):d.logNLXRequestProcessTime(e[3],e[4],Number(e[5]))}static logComprehensionToolOperationResult(e,t,i){learningToolsNativeHandler&&(e===n.ComprehensionToolType[n.ComprehensionToolType.syllables]?(learningToolsNativeHandler.logUmaHistogramEnumeration(o.LearningToolsHistogramNames.ComprehensionToolsSyllabifyResultHistogram,t),t===o.LinguisticModelOperationResult.Success&&learningToolsNativeHandler.logUmaHistogramMediumTimes(o.LearningToolsHistogramNames.ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram,i)):e===n.ComprehensionToolType[n.ComprehensionToolType.pos]&&(learningToolsNativeHandler.logUmaHistogramEnumeration(o.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechResultHistogram,t),t===o.LinguisticModelOperationResult.Success&&learningToolsNativeHandler.logUmaHistogramMediumTimes(o.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram,i)))}static logComprehensionToolsDwellTime(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramLongTimes(o.LearningToolsHistogramNames.ComprehensionToolsDwellTimeHistogram,e)}static logComprehensionToolsUsage(e){if(learningToolsNativeHandler){let t;switch(e){case n.ComprehensionToolType[n.ComprehensionToolType.pos]:t=o.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechUsed;break;case n.ComprehensionToolType[n.ComprehensionToolType.syllables]:t=o.LearningToolsHistogramNames.ComprehensionToolsSyllablesUsed;break;default:return}learningToolsNativeHandler.logUmaHistogramExactLinear(t,0,1)}}static logNLXRequestProcessTime(e,t,i){learningToolsNativeHandler&&(e===r.LearningToolType[r.LearningToolType.Syllables]?"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(o.LearningToolsHistogramNames.ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram,1,18e4,50,i):e===r.LearningToolType[r.LearningToolType.PartsOfSpeech]?"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(o.LearningToolsHistogramNames.ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram,1,18e4,50,i):e===r.LearningToolType[r.LearningToolType.PictureDictionary]&&"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(o.LearningToolsHistogramNames.PictureDictionaryServiceRequestProcessingTimeHistogram,1,18e4,50,i))}static logReadAloudDwellTime(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=o.LearningToolsHistogramNames.ReadAloudDwellTimeWeb;break;case"ReadingView":i=o.LearningToolsHistogramNames.ReadAloudDwellTimeReadingView;break;case"PDF":i=o.LearningToolsHistogramNames.ReadAloudDwellTimePDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomTimes(i,1e3,36e5,50,t)}}static logReadAloudVoiceUsage(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=o.LearningToolsHistogramNames.ReadAloudVoiceUsageWeb;break;case"ReadingView":i=o.LearningToolsHistogramNames.ReadAloudVoiceUsageReadingView;break;case"PDF":i=o.LearningToolsHistogramNames.ReadAloudVoiceUsagePDF;break;default:return}let n=t?s.ReadAloudVoiceUsage.kOnlineVoice:s.ReadAloudVoiceUsage.kOfflineVoice;learningToolsNativeHandler.logUmaHistogramEnumeration(i,n)}}static logReadAloudPdfPageToTimeRatio(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(o.LearningToolsHistogramNames.ReadAloudPdfStartTimeToPageRatio,0,18e4,50,e)}static logReadAloudPdfPageCount(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(o.LearningToolsHistogramNames.ReadAloudPdfPageCount,0,1e4,20,e)}static logReadAloudCharacterCount(e,t,i){if(learningToolsNativeHandler){let n;if(i)switch(t){case"Web":n=o.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountWeb;break;case"ReadingView":n=o.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountReadingView;break;case"PDF":n=o.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountPDF;break;default:return}else switch(t){case"Web":n=o.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountWeb;break;case"ReadingView":n=o.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountReadingView;break;case"PDF":n=o.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(n,0,1e6,50,e)}}static logReadAloudStartPageNumber(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=o.LearningToolsHistogramNames.ReadAloudStartPageNumberWeb;break;case"ReadingView":i=o.LearningToolsHistogramNames.ReadAloudStartPageNumberReadingView;break;case"PDF":i=o.LearningToolsHistogramNames.ReadAloudStartPageNumberPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,1,1e4,40,t)}}static logLineFocusStartStatus(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramBoolean(o.LearningToolsHistogramNames.LineFocusStartStatus,e)}static logLineFocusDwellTime(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramLongTimes(o.LearningToolsHistogramNames.LineFocusDwellTime,e)}static logLineFocusTimeToStart(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramTimes(o.LearningToolsHistogramNames.LineFocusTimeToStart,e)}static logLineFocusLineCount(e){if(learningToolsNativeHandler){let t;switch(e){case 1:t=o.LineFocusLineCountType.OneLine;break;case 3:t=o.LineFocusLineCountType.ThreeLines;break;case 5:t=o.LineFocusLineCountType.FiveLines;break;default:return}learningToolsNativeHandler.logUmaHistogramEnumeration(o.LearningToolsHistogramNames.LineFocusLineCount,t)}}static logReadAloudPdfError(e){learningToolsNativeHandler&&e>o.ReadAloudPdfErrors.None&&e<=o.ReadAloudPdfErrors.kMaxValue&&learningToolsNativeHandler.logUmaHistogramEnumeration(o.LearningToolsHistogramNames.ReadAloudPdfError,e)}static logPictureDictionaryOperationResult(e,t){learningToolsNativeHandler&&e<=o.LinguisticModelOperationResult.kMaxValue&&learningToolsNativeHandler.logUmaHistogramEnumeration(o.LearningToolsHistogramNames.PictureDictionaryResultHistogram,e)}static logPictureDictionaryTimeTakenForPopupCreation(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramTimes(o.LearningToolsHistogramNames.PictureDictionaryTimeTakenForPopupCreation,e)}static logPictureDictionaryPopupLaunchCount(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(o.LearningToolsHistogramNames.PictureDictionaryPopupLaunchCount,0,1e3,50,e)}static logPictureDictionaryWordsWithPicturesPercentage(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramPercentage(o.LearningToolsHistogramNames.PictureDictionaryWordsWithPicturesPercentage,e)}static logPictureDictionaryPopupLaunchPercentage(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(o.LearningToolsHistogramNames.PictureDictionaryPopupLaunchPercentage,0,1e3,50,e)}static logPictureDictionaryToggleState(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramBoolean(o.LearningToolsHistogramNames.PictureDictionaryToggleState,e)}static logPictureDictionaryUsage(){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramExactLinear(o.LearningToolsHistogramNames.PictureDictionaryUsed,0,1)}static logReadAloudNoOfTimeVoiceChanged(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=o.LearningToolsHistogramNames.ReadAloudVoiceChangeCountWeb;break;case"ReadingView":i=o.LearningToolsHistogramNames.ReadAloudVoiceChangeCountReadingView;break;case"PDF":i=o.LearningToolsHistogramNames.ReadAloudVoiceChangeCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,t)}}static logReadAloudNoOfTimesRateChanged(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=o.LearningToolsHistogramNames.ReadAloudRateChangeCountWeb;break;case"ReadingView":i=o.LearningToolsHistogramNames.ReadAloudRateChangeCountReadingView;break;case"PDF":i=o.LearningToolsHistogramNames.ReadAloudRateChangeCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,t)}}static logReadAloudNoOfTimesSpeechSynthesisInvoked(e){if(learningToolsNativeHandler){let t=o.LearningToolsHistogramNames.ReadAloudSpeechSynthesisInvoked;learningToolsNativeHandler.logUmaHistogramCustomCounts(t,0,1e3,11,e)}}static logReadAloudContinueClickCountWebAfterROLStarted(e,t){if(learningToolsNativeHandler){let i;if("Web"!==t)return;i=o.LearningToolsHistogramNames.ReadAloudContinueClickCountWeb,learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,e)}}}t.TelemetryLogger=d},339:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolType=void 0,(i=t.ComprehensionToolType||(t.ComprehensionToolType={}))[i.syllables=1]="syllables",i[i.nouns=2]="nouns",i[i.verbs=4]="verbs",i[i.adjectives=8]="adjectives",i[i.adverbs=16]="adverbs",i[i.pos=30]="pos"},978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolsEventHandlers=void 0,t.ComprehensionToolsEventHandlers=class{constructor(e,t){this._releasables=[],this._hostProxy=e,this._mainViewModel=t,this._comprehensionToolsViewModel=null,this.registerHostEventHandlers(),this._isInitialized=!1}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._comprehensionToolsViewModel=null}ensureInitialize(){if(!this._isInitialized&&(this._mainViewModel.initializeLearningTools(),this._comprehensionToolsViewModel=this._mainViewModel.getComprehensionToolsViewModel(),this._comprehensionToolsViewModel)){let e=()=>{this._hostProxy.sendComprehensionToolsPaneStatus(this._comprehensionToolsViewModel.comprehensionToolsPaneStatus())};this._releasables.push(this._comprehensionToolsViewModel.onComprehensionToolsStatusChanged().subscribe((()=>{e()}))),this._releasables.push(this._comprehensionToolsViewModel.onProgressIndicatorVisibilityChanged().subscribe((e=>{e||this._hostProxy.sendProgressIndicatorVisibility(e)}))),e()}}registerHostEventHandlers(){this._hostProxy.comprehensionToolsInitialPaneStatusRequested().subscribe((()=>{this.ensureInitialize(),this._hostProxy.sendPartsOfSpeechColorsForThemes(this._comprehensionToolsViewModel.getPartsOfSpeechColorsForThemes())})),this._hostProxy.addSyllablesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addSyllables()})),this._hostProxy.addNounsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addNounHighlight()})),this._hostProxy.addVerbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addVerbHighlight()})),this._hostProxy.addAdverbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addAdverbHighlight()})),this._hostProxy.addAdjectivesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addAdjectiveHighlight()})),this._hostProxy.removeSyllablesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeSyllables()})),this._hostProxy.removeNounsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeNounHighlight()})),this._hostProxy.removeVerbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeVerbHighlight()})),this._hostProxy.removeAdjectivesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeAdjectiveHighlight()})),this._hostProxy.removeAdverbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeAdverbHighlight()})),this._hostProxy.setNounsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setNounsColor(e)})),this._hostProxy.setVerbsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setVerbsColor(e)})),this._hostProxy.setAdjectivesColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setAdjectivesColor(e)})),this._hostProxy.setAdverbsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setAdverbsColor(e)})),this._hostProxy.addLineMarkers().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addLineMarkers()})),this._hostProxy.removeLineMarkers().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeLineMarkers()})),this._hostProxy.languageChangeRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onLanguageChangeRequested()})),this._hostProxy.languageChangeRequestCompleted().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onLanguageChangeRequestCompleted()})),this._hostProxy.onContentShifted().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onContentShifted()}))}}},224:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsHostProxy=void 0;const o=i(134),n=i(52),s=i(407);class r extends n.HostProxy{constructor(e){super(e),this._initializeComprehensionToolsSettingsRequested=new o.EventSource,this._initializeLineFocusSettingsRequested=new o.EventSource,this._initializePictureDictionarySettingsRequested=new o.EventSource,this._comprehensionToolsInitialPaneStatusRequested=new o.EventSource,this._readingPreferencesInitialPaneStatusRequested=new o.EventSource,this._settingsUpdateRequested=new o.EventSource,this._addSyllablesRequested=new o.EventSource,this._onContentShifted=new o.EventSource,this._addNounsRequested=new o.EventSource,this._addVerbsRequested=new o.EventSource,this._addAdjectivesRequested=new o.EventSource,this._addAdverbsRequested=new o.EventSource,this._removeSyllablesRequested=new o.EventSource,this._removeNounsRequested=new o.EventSource,this._removeVerbsRequested=new o.EventSource,this._removeAdjectivesRequested=new o.EventSource,this._removeAdverbsRequested=new o.EventSource,this._setNounsColorRequested=new o.EventSource,this._setVerbsColorRequested=new o.EventSource,this._setAdjectivesColorRequested=new o.EventSource,this._setAdverbsColorRequested=new o.EventSource,this._nlxResponseReceived=new o.EventSource,this._addLineMarkersRequested=new o.EventSource,this._removeLineMarkersRequested=new o.EventSource,this._enableLineFocusRequested=new o.EventSource,this._disableLineFocusRequested=new o.EventSource,this._setNumberOfLinesInFocusRequested=new o.EventSource,this._upButtonClicked=new o.EventSource,this._downButtonClicked=new o.EventSource,this._enablePictureDictionaryRequested=new o.EventSource,this._disablePictureDictionaryRequested=new o.EventSource,this._hidePictureDictionaryPopupRequested=new o.EventSource,this._pictureDictionaryPopupHidden=new o.EventSource,this._languageChangeRequested=new o.EventSource,this._languageChangeRequestCompleted=new o.EventSource}initializeComprehensionToolsSettingsRequested(){return this._initializeComprehensionToolsSettingsRequested}initializePictureDictionarySettingsRequested(){return this._initializePictureDictionarySettingsRequested}initializeLineFocusSettingsRequested(){return this._initializeLineFocusSettingsRequested}comprehensionToolsInitialPaneStatusRequested(){return this._comprehensionToolsInitialPaneStatusRequested}readingPreferencesInitialPaneStatusRequested(){return this._readingPreferencesInitialPaneStatusRequested}settingsUpdateRequested(){return this._settingsUpdateRequested}addSyllablesRequested(){return this._addSyllablesRequested}addNounsRequested(){return this._addNounsRequested}addVerbsRequested(){return this._addVerbsRequested}addAdjectivesRequested(){return this._addAdjectivesRequested}addAdverbsRequested(){return this._addAdverbsRequested}removeSyllablesRequested(){return this._removeSyllablesRequested}removeNounsRequested(){return this._removeNounsRequested}removeVerbsRequested(){return this._removeVerbsRequested}removeAdjectivesRequested(){return this._removeAdjectivesRequested}removeAdverbsRequested(){return this._removeAdverbsRequested}setNounsColorRequested(){return this._setNounsColorRequested}setVerbsColorRequested(){return this._setVerbsColorRequested}setAdjectivesColorRequested(){return this._setAdjectivesColorRequested}setAdverbsColorRequested(){return this._setAdverbsColorRequested}onNLXResponseReceived(){return this._nlxResponseReceived}addLineMarkers(){return this._addLineMarkersRequested}removeLineMarkers(){return this._removeLineMarkersRequested}sendNLXRequest(e){this.postMessageToHost(r.ProcessNLXRequest,e.contextId,e.requestType,e.metaJson?e.metaJson:"",e.action?e.action:"",e.version?e.version:"",e.optionsJson?e.optionsJson:"",e.dataJson?e.dataJson:"")}sendProgressIndicatorVisibility(e){this.postMessageToHost(r.ProgressIndicatorVisibleHostMessage,e.toString())}sendTelemetryErrorMeasureNoPII(e,t){JSON.stringify({errorType:e,errorContent:t}),"ComprehensionTools"!==e&&super.sendTelemetryErrorMeasureNoPII(e,t)}onContentShifted(){return this._onContentShifted}enableLineFocusRequested(){return this._enableLineFocusRequested}disableLineFocusRequested(){return this._disableLineFocusRequested}setNumberOfLinesInFocusRequested(){return this._setNumberOfLinesInFocusRequested}upButtonClicked(){return this._upButtonClicked}downButtonClicked(){return this._downButtonClicked}enablePictureDictionaryRequested(){return this._enablePictureDictionaryRequested}disablePictureDictionaryRequested(){return this._disablePictureDictionaryRequested}hidePictureDictionaryPopupRequested(){return this._hidePictureDictionaryPopupRequested}pictureDictionaryPopupHidden(){return this._pictureDictionaryPopupHidden}languageChangeRequested(){return this._languageChangeRequested}languageChangeRequestCompleted(){return this._languageChangeRequestCompleted}sendComprehensionToolsPaneStatus(e){const t=e.posLanguageError,i=e.networkError,o=e.syllablesLanguageError;let n=JSON.stringify({isSyllablesActive:e.isSyllablesActive,syllablesError:o,isNounsActive:e.isNounsActive,isVerbsActive:e.isVerbsActive,isAdjectivesActive:e.isAdjectivesActive,isAdverbsActive:e.isAdverbsActive,posError:t,networkError:i,nounsColorIndex:e.nounsColorIndex,verbsColorIndex:e.verbsColorIndex,adjectivesColorIndex:e.adjectivesColorIndex,adverbsColorIndex:e.adverbsColorIndex,isLineMarkersActive:e.isLineMarkersActive,isProgressIndicatorVisible:e.isProgressIndicatorVisible,isPaneDisabled:e.isPaneDisabled});this.postMessageToHost(r.ComprehensionToolsPaneStatusHostMessage,n)}sendReadingPreferencesPaneStatus(e){const t=e.pictureDictionaryLanguageError,i=e.pictureDictionaryNetworkError,o=e.isPictureDictionaryActive&&e.isPictureDictionaryToggleInteractable&&(t!==s.NlxStatus.Success||i!==s.NlxStatus.Success);let n=JSON.stringify({lineFocusButtonVisibility:{isVisible:!0,isActive:e.isLineFocusActive,isEnabled:!0},lineCount:e.lineCount,maxLineCount:e.maxLineCount,isPictureDictionaryActive:e.isPictureDictionaryActive,isPictureDictionaryToggleInteractable:e.isPictureDictionaryToggleInteractable,networkError:i,languageError:t,hasError:o});this.postMessageToHost(r.ReadingPreferencesPaneStatusHostMessage,n)}sendPartsOfSpeechColorsForThemes(e){this.postMessageToHost(r.ComprehensionToolsPanePartsOfSpeechColorsForThemesMessage,e)}sendComprehensionToolsSettings(e){this.postMessageToHost(r.ComprehensionToolsPreferencesHostMessage,e)}sendLineFocusSettings(e){this.postMessageToHost(r.LineFocusPreferencesHostMessage,e)}onLineFocusExit(e){const t=JSON.stringify({top:e.top,bottom:e.bottom,left:e.left,right:e.right,width:e.width,height:e.height});this.postMessageToHost(r.LineFocusExitHostMessage,t)}sendPictureDictionarySettings(e){this.postMessageToHost(r.PictureDictionaryPreferencesHostMessage,e)}onMessageFromHost(e){switch(e[0]){case r.ComprehensionToolsInitializeSettingsCommand:this._initializeComprehensionToolsSettingsRequested.trigger(e);break;case r.ComprehensionToolsFetchInitialPaneStatusCommand:this._comprehensionToolsInitialPaneStatusRequested.trigger(void 0);break;case r.ReadingPreferencesFetchInitialPaneStatusCommand:this._readingPreferencesInitialPaneStatusRequested.trigger(void 0);break;case r.ComprehensionToolsSettingsUpdateCommand:this._settingsUpdateRequested.trigger(e[1]);break;case r.ComprehensionToolsAddSyllablesCommand:this._addSyllablesRequested.trigger();break;case r.ComprehensionToolsAddNounsCommand:this._addNounsRequested.trigger();break;case r.ComprehensionToolsAddVerbsCommand:this._addVerbsRequested.trigger();break;case r.ComprehensionToolsAddAdjectivesCommand:this._addAdjectivesRequested.trigger();break;case r.ComprehensionToolsAddAdverbsCommand:this._addAdverbsRequested.trigger();break;case r.ComprehensionToolsRemoveSyllablesCommand:this._removeSyllablesRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveNounsCommand:this._removeNounsRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveVerbsCommand:this._removeVerbsRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveAdjectivesCommand:this._removeAdjectivesRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveAdverbsCommand:this._removeAdverbsRequested.trigger(void 0);break;case r.ComprehensionToolsSetNounsColorCommand:this._setNounsColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsSetVerbsColorCommand:this._setVerbsColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsSetAdjectivesColorCommand:this._setAdjectivesColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsSetAdverbsColorCommand:this._setAdverbsColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsAddLineMarkersCommand:this._addLineMarkersRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveLineMarkersCommand:this._removeLineMarkersRequested.trigger(void 0);break;case r.ProcessNLXResponse:if(e[1]){let t=JSON.parse(e[1]);"Service"===t.processedBy&&t.responseData&&(t=this.convertToExpectedNLXResponseFormat(t)),this._nlxResponseReceived.trigger(t)}break;case r.LineFocusInitializeSettingsCommand:this._initializeLineFocusSettingsRequested.trigger(e);break;case r.LineFocusEnableCommand:this._enableLineFocusRequested.trigger(Number(e[1]));break;case r.LineFocusDisableCommand:this._disableLineFocusRequested.trigger(Number(e[1]));break;case r.LineFocusUpButtonClickedCommand:this._upButtonClicked.trigger(void 0);break;case r.LineFocusDownButtonClickedCommand:this._downButtonClicked.trigger(void 0);break;case r.LineFocusSetNumberOfLinesCommand:let t=Number(e[1]);this._setNumberOfLinesInFocusRequested.trigger(t);break;case r.ReadingViewContentShifted:this._onContentShifted.trigger(void 0);break;case r.PictureDictionaryInitializeSettingsCommand:this._initializePictureDictionarySettingsRequested.trigger(e);break;case r.PictureDictionaryEnableCommand:this._enablePictureDictionaryRequested.trigger(void 0);break;case r.PictureDictionaryDisableCommand:this._disablePictureDictionaryRequested.trigger(void 0);break;case r.LearningToolsLanguageChangeRequestedCommand:this._languageChangeRequested.trigger(void 0);break;case r.PictureDictionaryHidePopupCommand:this._hidePictureDictionaryPopupRequested.trigger(void 0);break;case r.PictureDictionaryPopupHiddenCommand:this._pictureDictionaryPopupHidden.trigger(void 0);break;case r.LearningToolsLanguageChangeRequestCompletedCommand:this._languageChangeRequestCompleted.trigger(void 0);break;default:super.onMessageFromHost(e)}}convertToExpectedNLXResponseFormat(e){let t=JSON.parse(e.responseData);return{contextId:e.contextId,responseType:e.responseType,metaJson:t.meta?JSON.stringify(t.meta):"",version:t.data.version?t.data.version:"",status:t.status?t.status:"",dataJson:t.data?JSON.stringify(t.data):"",errorJson:t.error?JSON.stringify(t.error):"",processedBy:e.processedBy}}}r.ShowProgressIndicatorCommand="ShowProgressIndicator",r.LineFocusEnableCommand="LineFocus_Enable",r.LineFocusDisableCommand="LineFocus_Disable",r.LineFocusSetNumberOfLinesCommand="LineFocus_SetNumberOfLines",r.LineFocusUpButtonClickedCommand="LineFocus_UpButtonClicked",r.LineFocusDownButtonClickedCommand="LineFocus_DownButtonClicked",r.ComprehensionToolsAddSyllablesCommand="ComprehensionTools_AddSyllables",r.ComprehensionToolsAddNounsCommand="ComprehensionTools_AddNouns",r.ComprehensionToolsAddVerbsCommand="ComprehensionTools_AddVerbs",r.ComprehensionToolsAddAdjectivesCommand="ComprehensionTools_AddAdjectives",r.ComprehensionToolsAddAdverbsCommand="ComprehensionTools_AddAdverbs",r.ComprehensionToolsRemoveSyllablesCommand="ComprehensionTools_RemoveSyllables",r.ComprehensionToolsRemoveNounsCommand="ComprehensionTools_RemoveNouns",r.ComprehensionToolsRemoveVerbsCommand="ComprehensionTools_RemoveVerbs",r.ComprehensionToolsRemoveAdjectivesCommand="ComprehensionTools_RemoveAdjectives",r.ComprehensionToolsRemoveAdverbsCommand="ComprehensionTools_RemoveAdverbs",r.ComprehensionToolsSetNounsColorCommand="ComprehensionTools_SetNounsColor",r.ComprehensionToolsSetVerbsColorCommand="ComprehensionTools_SetVerbsColor",r.ComprehensionToolsSetAdjectivesColorCommand="ComprehensionTools_SetAdjectivesColor",r.ComprehensionToolsSetAdverbsColorCommand="ComprehensionTools_SetAdverbsColor",r.ComprehensionToolsAddLineMarkersCommand="ComprehensionTools_AddLineMarkers",r.ComprehensionToolsRemoveLineMarkersCommand="ComprehensionTools_RemoveLineMarkers",r.ProcessNLXResponse="GrammarTools_Response",r.ComprehensionToolsInitializeSettingsCommand="ComprehensionTools_InitializeSettings",r.PictureDictionaryInitializeSettingsCommand="PictureDictionary_InitializeSettings",r.LineFocusInitializeSettingsCommand="LineFocus_InitializeSettings",r.ComprehensionToolsSettingsUpdateCommand="ComprehensionTools_SettingsUpdate",r.ComprehensionToolsFetchInitialPaneStatusCommand="ComprehensionTools_FetchInitialPaneStatus",r.PictureDictionaryEnableCommand="PictureDictionary_Enable",r.PictureDictionaryDisableCommand="PictureDictionary_Disable",r.PictureDictionaryPopupHiddenCommand="PictureDictionary_PopupHidden",r.PictureDictionaryHidePopupCommand="PictureDictionary_HidePopupCommand",r.ReadingViewContentShifted="ReadingView_ContentShifted",r.ReadingPreferencesFetchInitialPaneStatusCommand="ReadingPreference_FetchInitialPaneStatus",r.LearningToolsLanguageChangeRequestedCommand="LearningTools_LanguageChangeRequested",r.LearningToolsLanguageChangeRequestCompletedCommand="LearningTools_LanguageChangeRequestCompleted",r.ComprehensionToolsPreferencesHostMessage="GrammarTools_Preferences",r.ProcessNLXRequest="NLXRequest",r.ComprehensionToolsPaneStatusHostMessage="ComprehensionToolsPane_Status",r.ReadingPreferencesPaneStatusHostMessage="ReadingPreferencesPane_Status",r.ComprehensionToolsPanePartsOfSpeechColorsForThemesMessage="ComprehensionToolsPane_PartsOfSpeechColorsForThemes",r.PictureDictionaryPreferencesHostMessage="PictureDictionary_Preferences",r.LineFocusPreferencesHostMessage="LineFocus_Preferences",r.LineFocusExitHostMessage="LineFocus_ExitedMessage",r.ProgressIndicatorVisibleHostMessage="ComprehensionTools_SetProgressIndicatorVisibility",t.LearningToolsHostProxy=r},52:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HostProxy=void 0;const o=i(134),n=i(295),s=i(174),r=i(525),a=i(83);class d{constructor(e){this._messageRuntime=e,this._readOutLoudOnContextFromFrame=new o.EventSource,this._readOutLoudFocusChanged=new o.EventSource,this._readOutLoudStartRequested=new o.EventSource,this._readOutLoudStopRequested=new o.EventSource,this._readOutLoudPauseRequested=new o.EventSource,this._readOutLoudNextRequested=new o.EventSource,this._readOutLoudPreviousRequested=new o.EventSource,this._readOutLoudPreloadRequest=new o.EventSource,this._readOutLoudChangeRateRequested=new o.EventSource,this._readOutLoudChangeVoiceRequested=new o.EventSource,this._readOutLoudSpeechPrefChanged=new o.EventSource,this._readOutLoudInitializeSettingsRequested=new o.EventSource,this._languageDetected=new o.EventSource,this._sdPrimaryContentFetched=new o.EventSource,this._telemetryClient=new a.TelemetryClient(this),this._messageRuntime.onMessageFromHost().subscribe((e=>{this.onMessageFromHost(e)}))}getTelemetryClient(){return this._telemetryClient}readOutLoudSpeechPrefChanged(){return this._readOutLoudSpeechPrefChanged}readOutLoudFocusChanged(){return this._readOutLoudFocusChanged}readOutLoudOnContextFromFrame(){return this._readOutLoudOnContextFromFrame}readOutLoudStartRequested(){return this._readOutLoudStartRequested}readOutLoudStopRequested(){return this._readOutLoudStopRequested}readOutLoudPauseRequested(){return this._readOutLoudPauseRequested}readOutLoudNextRequested(){return this._readOutLoudNextRequested}readOutLoudPreviousRequested(){return this._readOutLoudPreviousRequested}readOutLoudPreloadRequested(){return this._readOutLoudPreloadRequest}readOutLoudChangeVoiceRequested(){return this._readOutLoudChangeVoiceRequested}readOutLoudChangeRateRequested(){return this._readOutLoudChangeRateRequested}readOutLoudInitializeSettingsRequested(){return this._readOutLoudInitializeSettingsRequested}languageDetected(){return this._languageDetected}sdPrimaryContentFetched(){return this._sdPrimaryContentFetched}ensureReadOutLoudInit(){}onReadAloudInitiated(){}sendSpeechPreferences(e){this.postMessageToHost(d.ReadOutLoudSpeechPreferencesHostMessage,e)}sendReadOutLoudFocusReceived(e){this.postMessageToHost(d.ReadOutLoudFocusReceivedHostMessage,e.frameTreeNodeId.toString(),e.processId.toString())}sendContextToFocusedFrame(e){this.postMessageToHost(d.ReadOutLoudSendContextToFrameHostMessage,JSON.stringify(e))}sendReadOutLoudStatus(e,t,i,o){let n=t===r.ReadingState.Playing,s=t===r.ReadingState.Playing||t===r.ReadingState.Paused||t==r.ReadingState.InteractionsDisabled||t==r.ReadingState.Uninitialized,a=t!=r.ReadingState.InteractionsDisabled&&t!=r.ReadingState.Uninitialized,l=JSON.stringify({previousButtonVisibility:{isVisible:s,isActive:!0,isEnabled:n},nextButtonVisibility:{isVisible:s,isActive:!0,isEnabled:n},togglePlaybackButtonVisibility:{isVisible:s,isActive:!n,isEnabled:a},settingsButtonVisibility:{isVisible:s,isActive:!0,isEnabled:a},settingsButtonWarningVisibility:{isVisible:s&&!i,isActive:!0,isEnabled:!0},closeButtonVisibility:{isVisible:s,isActive:!0,isEnabled:!0},textReadingState:r.ReadingState[t].toLowerCase()}),u="";o&&(u=JSON.stringify({top:o.top,bottom:o.bottom,left:o.left,right:o.right,width:o.width,height:o.height})),this.postMessageToHost(d.ReadOutLoudStatusHostMessage,e.frameTreeNodeId.toString(),e.processId.toString(),l,r.ReadingState[t],u)}sendSpeechSettings(e,t,i){let o=JSON.stringify({supportedVoices:i,currentVoiceURI:t,currentReadingRate:e});this.postMessageToHost(d.ReadOutLoudSpeechSettingsHostMessage,o)}sendTelemetryErrorMeasureNoPII(e,t){let i=JSON.stringify({errorType:e,errorContent:t});this.postMessageToHost(d.ReadOutLoudJsErrorTelemetryHostMessage,i)}sendTelemetry(e,t,i,...o){o&&o.length>0?(o.unshift(i),o.unshift(t),o.unshift(e)):o=[e,t,i],this.postMessageToHost(d.TelemetryMessage,...o)}detectLanguage(e){this.postMessageToHost(d.DetectLanguageHostMessage,e.frameTreeNodeId.toString(),e.processId.toString())}detectTextLanguage(e){return this._messageRuntime.detectTextLanguage(e)}fetchSDPrimaryContent(){this.postMessageToHost(d.ReadAloudFetchSDPrimaryContent)}raiseMessageFromHost(e){this.onMessageFromHost(e)}postMessageToHost(e,...t){this._messageRuntime.postMessageToHost(e,t)}onMessageFromHost(e){switch(e[0]){case d.ReadOutLoudFocusChangedCommand:this._readOutLoudFocusChanged.trigger(void 0);break;case d.ReadOutLoudOnContextFromFrameCommand:let t=n.JsonUtilities.parseJsonOrNull(e[1],"ReadOutLoud",s.ReadAloudErrors[s.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences_ScopeState],this._telemetryClient);this._readOutLoudOnContextFromFrame.trigger(t);break;case d.ReadOutLoudStartCommand:let i=this.parseStartParams(e);this._readOutLoudStartRequested.trigger(i);break;case d.ReadOutLoudStopCommand:this._readOutLoudStopRequested.trigger(void 0);break;case d.ReadOutLoudPauseCommand:this._readOutLoudPauseRequested.trigger(void 0);break;case d.ReadOutLoudNextCommand:this._readOutLoudNextRequested.trigger(void 0);break;case d.ReadOutLoudPreviousCommand:this._readOutLoudPreviousRequested.trigger(void 0);break;case d.ReadOutLoudPreloadCommand:let o=Number(e[1]),r=Number(e[2]);this._readOutLoudPreloadRequest.trigger([o,r]);break;case d.ReadOutLoudChangeVoiceCommand:this._readOutLoudChangeVoiceRequested.trigger(e[1]),this.postMessageToHost(d.ReadAloudExplicitVoiceChangeByUser);break;case d.ReadOutLoudChangeRateCommand:let a=Number(e[1]);this._readOutLoudChangeRateRequested.trigger(a);break;case d.PreferencesChangedCommand:this.handlePreferencesChanged(e);break;case d.ReadOutLoudInitializeSettingsCommand:this._readOutLoudInitializeSettingsRequested.trigger(e);break;case d.LanguageDetected:this._languageDetected.trigger(e[1]);break;case d.ReadOutLoudFirstContentfulPaintLoadedCommand:break;case d.ReadAloudSDPrimaryContentFetched:this._sdPrimaryContentFetched.trigger(e[1]);break;default:throw Error("Unknown Command")}}parseStartParams(e){let t={startRequestTime:0,startType:r.StartType.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},i=parseFloat(e[1]);if(i&&(t.startRequestTime=i),e.length>2){let i=e[2];if(i&&(t.startType=r.StartType[i],t.startType===r.StartType.ReadFromPoint)){let i=parseInt(e[3]);i&&(t.startPosition.x=i);let o=parseInt(e[4]);o&&(t.startPosition.y=o),e[5]&&(t.needsTransformOfStartPosition="true"===e[5])}}return t}handlePreferencesChanged(e){if(e[1]!==d.SpeechPreferences)throw Error("Unknown Preferences");this._readOutLoudSpeechPrefChanged.trigger(e[2])}}d.ReadOutLoudStartCommand="ReadOutLoud_Start",d.ReadOutLoudStopCommand="ReadOutLoud_Stop",d.ReadOutLoudPauseCommand="ReadOutLoud_Pause",d.ReadOutLoudNextCommand="ReadOutLoud_Next",d.ReadOutLoudPreviousCommand="ReadOutLoud_Previous",d.ReadOutLoudPreloadCommand="ReadOutLoud_Preload",d.ReadOutLoudChangeVoiceCommand="ReadOutLoud_ChangeVoice",d.ReadOutLoudChangeRateCommand="ReadOutLoud_ChangeRate",d.ReadOutLoudFirstContentfulPaintLoadedCommand="ReadOutLoud_FirstContentfulPaintLoaded",d.ReadOutLoudFocusChangedCommand="ReadOutLoud_FocusChanged",d.ReadOutLoudOnContextFromFrameCommand="ReadOutLoud_OnContextFromFrame",d.PreferencesChangedCommand="PreferencesChanged",d.ReadOutLoudInitializeSettingsCommand="ReadOutLoud_InitializeSettings",d.LanguageDetected="ReadAloud_DetectedLanguage",d.OpenVoiceOptionsPane="ReadAloud_ShowSettings",d.CloseVoiceOptionsPane="ReadAloud_HideSettings",d.ReadAloudSDPrimaryContentFetched="ReadAloud_SDPrimaryContentFetched",d.ReadOutLoudJsErrorTelemetryHostMessage="ReadOutLoud_Telemetry_JsError",d.TelemetryMessage="Telemetry",d.ReadOutLoudSpeechSettingsHostMessage="ReadOutLoud_SpeechSettings",d.ReadOutLoudSpeechPreferencesHostMessage="ReadOutLoud_SpeechPreferences",d.ReadOutLoudStatusHostMessage="ReadOutLoud_Status",d.ReadOutLoudFocusReceivedHostMessage="ReadOutLoud_FocusReceived",d.ReadOutLoudSendContextToFrameHostMessage="ReadOutLoud_SendContextToFocusedFrame",d.VoiceOptionsPaneOpened="ReadAloud_VoiceOptionsPaneOpened",d.VoiceOptionsPaneClosed="ReadAloud_VoiceOptionsPaneClosed",d.ReadAloudExplicitVoiceChangeByUser="ReadAloud_ExplicitVoiceChangeByUser",d.ReadAloudFetchSDPrimaryContent="ReadAloud_FetchSDPrimaryContent",d.SpeechPreferences="SpeechPreferences",d.DetectLanguageHostMessage="ReadAloud_DetectLanguage",t.HostProxy=d},773:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.UnitDirection=void 0,(i=t.UnitDirection||(t.UnitDirection={}))[i.Next=0]="Next",i[i.Previous=1]="Previous",i[i.Current=2]="Current"},190:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationType=void 0,(i=t.DecorationType||(t.DecorationType={}))[i.Word=1]="Word",i[i.Line=2]="Line",i[i.Background=4]="Background",i[i.All=7]="All",i[i.ExceptWord=6]="ExceptWord",i[i.WordAndLine=3]="WordAndLine"},467:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfReadingUnit=void 0;const o=i(984);class n extends o.ReadingUnit{constructor(e,t,i){super(t,i),this._contentNodes=e}get contentNodes(){return this._contentNodes}set contentNodes(e){this._contentNodes=e}get textContents(){return this._contentNodes.map((e=>e.text))}}t.PdfReadingUnit=n},157:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingNavigator=void 0,t.ReadingNavigator=class{}},984:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingUnit=void 0,t.ReadingUnit=class{constructor(e,t){this._textStartOffset=e,this._textEndOffset=t||null}get textStartOffset(){return this._textStartOffset}set textStartOffset(e){this._textStartOffset=e}get textEndOffset(){return this._textEndOffset}set textEndOffset(e){this._textEndOffset=e}}},860:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudEventHandlers=void 0;const o=i(525);class n{constructor(e,t,i){this._releasables=[],this._isInitialized=!1,this._hostProxy=e,this._mainViewModel=t,this._previousReadingState=o.ReadingState.Stopped,this._currentFrame=null,this._pendingContext=null,this._speechPreferences=null,this._enableOnlineVoiceFre=!1,i&&window.addEventListener("focus",(()=>{this._hostProxy.sendReadOutLoudFocusReceived(this._currentFrame)})),window.addEventListener("beforeunload",(()=>{if(this._settingsViewModel&&this._readOutLoudViewModel){let e=this._readOutLoudViewModel.getReadingState();e!==o.ReadingState.Playing&&e!==o.ReadingState.Paused||(window.self===window.top?(this._readOutLoudViewModel.stopReading(),this.sendReadOutLoudStatus(o.ReadingState.Stopped,!0)):(this._readOutLoudViewModel.pauseReading(!1),this.sendReadOutLoudStatus(o.ReadingState.Paused,!0)))}})),this.registerHostEventHandlers()}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._readOutLoudViewModel=null,this._settingsViewModel=null,this._isInitialized=!1,this._pendingContext=null}initialize(e){if(this._mainViewModel.initializeReadOutLoud(e,this._enableOnlineVoiceFre),this._readOutLoudViewModel=this._mainViewModel.getReadOutLoudViewModel(),this._settingsViewModel=this._mainViewModel.getReadOutLoudSettingsViewModel(),this._readOutLoudViewModel&&this._settingsViewModel){let e=()=>{let e=this._settingsViewModel.getVoice(),t=this._settingsViewModel.getDropDownOptionsForVoices();e&&t&&this._hostProxy.sendSpeechSettings(this._settingsViewModel.getReadingRate(),e.name,t)},t=e=>{this._readOutLoudViewModel.getReadingState()!==o.ReadingState.Uninitialized&&this._hostProxy.sendSpeechPreferences(e)};this._releasables.push(this._settingsViewModel.rateChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.voiceChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.voicesChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.speechPreferencesChanged().subscribe((e=>{this._speechPreferences=e,t(e)}))),this._releasables.push(this._settingsViewModel.compatibleVoiceAvailableChanged().subscribe((()=>{this.sendReadOutLoudStatus(this._readOutLoudViewModel.getReadingState(),this._settingsViewModel.getCompatibleVoiceAvailable(),this._readOutLoudViewModel.getWordRect())}))),this._releasables.push(this._readOutLoudViewModel.readingStateChanged().subscribe((()=>{this.sendReadOutLoudStatus(this._readOutLoudViewModel.getReadingState(),this._settingsViewModel.getCompatibleVoiceAvailable(),this._readOutLoudViewModel.getWordRect())})))}this._isInitialized=!0}registerHostEventHandlers(){var e;this._hostProxy.readOutLoudInitializeSettingsRequested().subscribe((e=>{5==e.length&&(e[3]&&(this._speechPreferences=e[3]),this._enableOnlineVoiceFre="true"===e[4],this._currentFrame={frameTreeNodeId:Number(e[1]),processId:Number(e[2])})})),null===(e=this._hostProxy.ensureReadOutLoudInit())||void 0===e||e.subscribe((()=>{this._isInitialized||(this._hostProxy.sendReadOutLoudStatus(this._currentFrame,o.ReadingState.InteractionsDisabled,!0),this.initialize(this._speechPreferences)),this._hostProxy.onReadAloudInitiated()})),this._hostProxy.readOutLoudFocusChanged().subscribe((()=>{if(this._isInitialized){let e=this._readOutLoudViewModel.getReadingState();this._pendingContext?this._hostProxy.sendContextToFocusedFrame(this._pendingContext):this._hostProxy.sendContextToFocusedFrame({readingState:e,speechPreferences:this._settingsViewModel?this._settingsViewModel.getSpeechPreferences():null,dwellTime:this._readOutLoudViewModel.getPausedDwellTime()}),this._readOutLoudViewModel.pauseReading(!0)}else this._hostProxy.sendContextToFocusedFrame({readingState:o.ReadingState.Stopped,speechPreferences:null,dwellTime:0})})),this._hostProxy.readOutLoudOnContextFromFrame().subscribe((e=>{this._isInitialized||this.initialize(JSON.stringify(e.speechPreferences)),this._readOutLoudViewModel.setDwellTime(e.dwellTime),e.readingState===o.ReadingState.Playing?this.handleStartReadOutLoud():e.readingState===o.ReadingState.Paused&&this._readOutLoudViewModel.pauseReading(!0)})),this._hostProxy.readOutLoudSpeechPrefChanged().subscribe((e=>{this._speechPreferences=e,this._isInitialized&&this._settingsViewModel.updateSpeechSettings(this._speechPreferences)})),this._hostProxy.readOutLoudStartRequested().subscribe((e=>{this._isInitialized||(this._hostProxy.sendReadOutLoudStatus(this._currentFrame,o.ReadingState.InteractionsDisabled,!0),this.initialize(this._speechPreferences)),this.handleStartReadOutLoud(e)})),this._hostProxy.readOutLoudStopRequested().subscribe((()=>{this._isInitialized&&(this._settingsViewModel.logVoiceChangeTelemetry(this._readOutLoudViewModel.getContentType()),this._settingsViewModel.logRateChangeTelemetry(this._readOutLoudViewModel.getContentType()),this._readOutLoudViewModel.logSpeechSynthesisInvokeTelemetry(),this._readOutLoudViewModel.stopReading())})),this._hostProxy.readOutLoudPauseRequested().subscribe((()=>{this._isInitialized||this.initialize(this._speechPreferences),this._readOutLoudViewModel.logSpeechSynthesisInvokeTelemetry(),this._pendingContext={readingState:o.ReadingState.Paused,speechPreferences:this._settingsViewModel.getSpeechPreferences(),dwellTime:this._readOutLoudViewModel.getPausedDwellTime()},this._readOutLoudViewModel.pauseReading(!1)})),this._hostProxy.readOutLoudNextRequested().subscribe((()=>{this._isInitialized&&this._readOutLoudViewModel.moveToNextUnit()})),this._hostProxy.readOutLoudPreviousRequested().subscribe((()=>{this._isInitialized&&this._readOutLoudViewModel.moveToPreviousUnit()})),this._hostProxy.readOutLoudPreloadRequested().subscribe((e=>{this._isInitialized&&this._readOutLoudViewModel.preloadTheRestUtterances(e[0],1===e[1])})),this._hostProxy.readOutLoudChangeRateRequested().subscribe((e=>{this._isInitialized&&this._settingsViewModel.setReadingRate(e)})),this._hostProxy.readOutLoudChangeVoiceRequested().subscribe((e=>{this._isInitialized&&this._settingsViewModel.setCurrentVoiceFromURI(e)}))}sendReadOutLoudStatus(e,t,i){e!==o.ReadingState.Uninitialized&&(this._pendingContext&&(this._pendingContext=null),this._hostProxy.sendReadOutLoudStatus(this._currentFrame,e,t,i),e!==this._previousReadingState&&e===o.ReadingState.Stopped&&this.reset(),this._previousReadingState=e)}handleStartReadOutLoud(e=n.defaultStartParams){this._pendingContext={readingState:o.ReadingState.Playing,speechPreferences:this._settingsViewModel?this._settingsViewModel.getSpeechPreferences():null,dwellTime:this._readOutLoudViewModel.getPausedDwellTime()},this._readOutLoudViewModel.startReading(e)}}n.defaultStartParams={startRequestTime:0,startType:o.StartType.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},t.ReadOutLoudEventHandlers=n},475:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudSettingsViewModel=void 0;const o=i(134),n=i(174),s=i(295);class r{constructor(e,t,i){this._telemetryClient=i,this._currentVoices=[],this._currentVoicesDropDownOptions=null,this._speechPreferences=s.JsonUtilities.parseJsonOrNull(e,"ReadOutLoud",n.ReadAloudErrors[n.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences],this._telemetryClient),this._currentReadingRate=1,this._currentVoice=null,this._compatibleVoiceAvailable=!0,this._voicesChanged=new o.EventSource,this._enableOnlineVoiceFre=t,this._rateChanged=new o.EventSource,this._voiceChanged=new o.EventSource,this._compatibleVoiceAvailableChanged=new o.EventSource,this._speechPreferencesChanged=new o.EventSource,this._preferredDefaultVoiceForLanguage=new Map([["en","Microsoft Aria Online (Natural) - English (United States)"],["zh","Microsoft Xiaoxiao Online (Natural) - Chinese (Mainland)"]]),this._noOfTimesVoiceChanged=0,this._noOfTimesRateChanged=0,this._browserlocale=window.navigator.language,this.setSpeechSynthesis(window.speechSynthesis)}setSpeechSynthesis(e){this._speechSynthesis=e,this._currentVoices=this._speechSynthesis.getVoices(),this._speechSynthesis.onvoiceschanged=()=>{this.isVoicesAvailable()&&this._currentVoice&&(this._currentVoices.find((e=>e.voiceURI===this._currentVoice.voiceURI))||this.updateCurrentVoice(this._language))}}getSpeechSynthesis(){return this._speechSynthesis}getSpeechPreferences(){return this._speechPreferences}updateSpeechSettings(e){if(this._speechPreferences=s.JsonUtilities.parseJsonOrNull(e,"ReadOutLoud",n.ReadAloudErrors[n.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences],this._telemetryClient),this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){let e=this._speechPreferences.languageSettings.find((e=>e.language.toUpperCase().startsWith(this._language.toUpperCase())));if(e){if(this._currentVoice.voiceURI.toUpperCase()!=e.voiceURI.toUpperCase()){let t=this._currentVoices.find((t=>t.voiceURI.toUpperCase()===e.voiceURI.toUpperCase()));t&&(this._currentVoice=t,this._voiceChanged.trigger(void 0))}this._currentReadingRate!=e.rate&&e.rate>=.5&&e.rate<=2&&(this._currentReadingRate=e.rate,this._rateChanged.trigger(void 0))}}}setReadingRate(e){this._currentReadingRate!==e&&(this._currentReadingRate=e,this._rateChanged.trigger(void 0),this._noOfTimesRateChanged+=1,this.updateSpeechPreferences())}getReadingRate(){return this._currentReadingRate}setCurrentVoiceFromURI(e){var t=this._currentVoices.find((t=>t.voiceURI===e));t&&this._currentVoice!==t&&(this._noOfTimesVoiceChanged+=1,this._currentVoice=t,this._voiceChanged.trigger(void 0),this.updateSpeechPreferences())}getVoice(){return this._currentVoice}getDropDownOptionsForVoices(){return this._currentVoicesDropDownOptions}setCompatibleVoiceAvailable(e){this._compatibleVoiceAvailable=e,this._compatibleVoiceAvailableChanged.trigger(void 0)}getCompatibleVoiceAvailable(){return this._compatibleVoiceAvailable}voiceChanged(){return this._voiceChanged}rateChanged(){return this._rateChanged}compatibleVoiceAvailableChanged(){return this._compatibleVoiceAvailableChanged}voicesChanged(){return this._voicesChanged}speechPreferencesChanged(){return this._speechPreferencesChanged}isOnlineVoiceAvailable(){return this._enableOnlineVoiceFre&&null!=this._currentVoices.find((e=>!1===e.localService&&e.lang.toUpperCase().startsWith(this._currentVoice.lang.toUpperCase())))}ensureSpeechSettingsInitializedAsync(e){return new Promise((t=>{if(this._language=e.split("-")[0],this._currentVoice)return t(!0);this.refreshVoicesListAsync().then((e=>(e?e=this.updateCurrentVoice(this._language):(this._telemetryClient.reportReadOutLoudInternalError(n.ReadAloudErrors.NoLanguagePackageInstalled),this._compatibleVoiceAvailableChanged.trigger(void 0)),this.isOnlineVoiceAvailable()||this._telemetryClient.reportReadOutLoudInternalError(n.ReadAloudErrors.NoOnlineVoicesAvailable),t(e))))}))}logVoiceChangeTelemetry(e){this._noOfTimesVoiceChanged&&this._telemetryClient.reportReadOutLoudVoiceChange(e,this._noOfTimesVoiceChanged)}logRateChangeTelemetry(e){this._noOfTimesRateChanged&&this._telemetryClient.reportReadOutLoudRateChange(e,this._noOfTimesRateChanged)}setSpeechSettingsForLanguage(e){var t=null,i=null;if(this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){let o=this._speechPreferences.languageSettings.findIndex((t=>-1!=t.language.toUpperCase().indexOf(e.toUpperCase())));if(-1!=o){let n=this._speechPreferences.languageSettings[o];if(this._enableOnlineVoiceFre&&(!n.version||n.version<1)&&this.setOnlineVoiceAsDefault(e))return!0;t||(t=this._currentVoices.find((e=>e.voiceURI.toUpperCase()===n.voiceURI.toUpperCase())),i=n.rate>=.5&&n.rate<=2?n.rate:1,this._speechPreferences.languageSettings.splice(o,1),this._speechPreferences.languageSettings.unshift(n),this._speechPreferencesChanged.trigger(JSON.stringify(this._speechPreferences)))}}if(!t){if(this._enableOnlineVoiceFre&&this.setOnlineVoiceAsDefault(e))return!0;let o=this._currentVoices.filter((t=>0===t.lang.toUpperCase().indexOf(e.toUpperCase())));if(o.length>0){if(!(t=o.find((e=>e.lang.toUpperCase()===this._browserlocale.toUpperCase())))){let i=this._preferredDefaultVoiceForLanguage.get(e);i&&(t=o.find((e=>e.voiceURI===i))),t||(t=o[0])}i=1}}return!(!t||!i||(this._currentVoice=t,this._voiceChanged.trigger(void 0),this._currentReadingRate=i,this._rateChanged.trigger(void 0),0))}setOnlineVoiceAsDefault(e){let t=this._currentVoices.filter((e=>!1===e.localService&&e.lang.toUpperCase().startsWith(this._language.toUpperCase()))),i=null;if(t.length>0&&(i=t.find((e=>e.lang.toUpperCase()===this._browserlocale.toUpperCase())),!i)){let o=this._preferredDefaultVoiceForLanguage.get(e);o&&(i=t.find((e=>e.voiceURI===o))),i||(i=t[0])}return!!i&&(this._currentVoice=i,this._voiceChanged.trigger(void 0),this._currentReadingRate=1,this._rateChanged.trigger(void 0),this.updateSpeechPreferences(!0),!0)}updateCurrentVoice(e){return this._compatibleVoiceAvailable=!0,this.setSpeechSettingsForLanguage(e)||(this._currentVoice=this._currentVoices[0],this._voiceChanged.trigger(void 0),this._telemetryClient.reportReadOutLoudInternalError(n.ReadAloudErrors.LanguagePackageNotFound),this._compatibleVoiceAvailable=!1),this._compatibleVoiceAvailableChanged.trigger(void 0),this._compatibleVoiceAvailable}updateSpeechPreferences(e=!1){if(this._language&&this._language.length<=r.MaxLanguageLength){if(this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){var t=this._speechPreferences.languageSettings.findIndex((e=>e.language.toUpperCase()===this._language.toUpperCase()));let i=this._enableOnlineVoiceFre?0:1;-1!=t&&(i=this._speechPreferences.languageSettings[t].version,this._speechPreferences.languageSettings.splice(t,1));let o={language:this._language,voiceURI:this._currentVoice.voiceURI,rate:this._currentReadingRate,version:e?1:i};this._speechPreferences.languageSettings.unshift(o),this._speechPreferences.languageSettings.length>15&&(this._speechPreferences.languageSettings.length=15)}else this._speechPreferences={languageSettings:[{language:this._language,voiceURI:this._currentVoice.voiceURI,rate:this._currentReadingRate,version:this._enableOnlineVoiceFre&&e?1:0}]};this._speechPreferencesChanged.trigger(JSON.stringify(this._speechPreferences))}}refreshVoicesListAsync(){return new Promise((e=>{if(this.isVoicesAvailable())return e(!0);let t,i=this._voicesChanged.subscribe((()=>(clearTimeout(t),i&&i.release(),e(!0))));t=window.setTimeout((()=>(this._telemetryClient.reportReadOutLoudInternalError(n.ReadAloudErrors.NoVoicesAvailable),i.release(),e(this.isVoicesAvailable()))),2e3)}))}isVoicesAvailable(){return this._currentVoices=this._speechSynthesis.getVoices(),!!(this._currentVoices&&this._currentVoices.length>0)&&(this._currentVoicesDropDownOptions=this._currentVoices.map((e=>({uri:e.voiceURI,name:e.name,lang:e.lang}))),this._voicesChanged.trigger(void 0),!0)}}r.MaxLanguageLength=85,t.ReadOutLoudSettingsViewModel=r},525:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudViewModel=t.maxUtteranceLength=t.seekToStartTimeout=t.StartType=t.ReadingState=void 0;const o=i(174),n=i(773),s=i(190),r=i(988),a=i(50),d=i(647);var l,u;!function(e){e[e.InEligible=0]="InEligible",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused",e[e.Stopped=3]="Stopped",e[e.PlayDisabled=4]="PlayDisabled",e[e.InteractionsDisabled=5]="InteractionsDisabled",e[e.Uninitialized=6]="Uninitialized"}(l=t.ReadingState||(t.ReadingState={})),function(e){e[e.Default=0]="Default",e[e.ReadFromPoint=1]="ReadFromPoint",e[e.ReadFromWordSelection=2]="ReadFromWordSelection",e[e.ReadSelection=3]="ReadSelection",e[e.ResumeFromSelection=4]="ResumeFromSelection",e[e.ReadFromFirstVisibleElement=5]="ReadFromFirstVisibleElement",e[e.ReadFromCurrentPage=6]="ReadFromCurrentPage"}(u=t.StartType||(t.StartType={}));const c="en-US";t.seekToStartTimeout=5e3,t.maxUtteranceLength=1e3;class h{constructor(e,t,i,o,s){this._readingNavigator=e,this._highlighter=t,this._contentProvider=s,this._delimiters=null,this._speechUtterances=[],this._seekToStartForCurrentUnit=!0,this._isProcessingPending=!1,this._telemetryClient=o,this._continueReadingOnUserActionComplete=!1,this._ignoreUserActionEvents=!1,this._startRequestTime=0,this._dwellTimeStart=0,this._dwellTimeDuration=0,this._shouldExitAfterReadingCurrentUnit=!1,this._characterCount=0,this._noOfTimesSpeechSynthesisInvoked=0,this._continueClickCountAfterROLStarted=0,window.addEventListener("beforeunload",(()=>{this.commitDwellTime()})),i&&(this._settings=i,this._settings.voiceChanged().subscribe((()=>{this.getReadingState()===l.Playing&&(this.cancelReading(!1),this.continueReading(n.UnitDirection.Current,h.defaultStartParams));let e=this._settings.getVoice();(!1===e.localService&&!this._isOnlineVoicePlaying||!0===e.localService&&this._isOnlineVoicePlaying)&&(this.commitCharacterCount(),this._logVoiceUsageTelemetry=!0)})),this._settings.rateChanged().subscribe((()=>{this._eventTimeoutReleasable&&(this._eventTimeoutReleasable.release(),this._eventTimeoutReleasable=null);const e=this.getReadingState();let t=window.setTimeout((()=>{e===l.Playing&&(this.cancelReading(!1),this.continueReading(n.UnitDirection.Current,h.defaultStartParams)),this._eventTimeoutReleasable=null}),550);this._eventTimeoutReleasable={release:()=>clearTimeout(t)}})))}preloadTheRestUtterances(e,t){let i=this._speechSynthesis;if(!i.preload||!this._readingNavigator.deepCopy)return;let o=[];const n=this._readingNavigator.deepCopy();let s=()=>{n.moveToNextUnitAsync().then((t=>{let r=n.getCurrentUnit();if(!t||null===r)return void i.preload(e,o);let a=this.createSpeechUtterances(r,!0);o=o.concat(a),s()}))};if(t){let e=()=>{n.moveToPreviousUnitAsync().then((t=>{let i=n.getCurrentUnit();t&&null!==i?e():s()}))};e()}else s()}preloadNextUtterance(e){let t=this._speechSynthesis;if(!t.preload||!this._readingNavigator.getNextUnit)return;const i=this._readingNavigator.getNextUnit();if(i){let o=this.createSpeechUtterances(i,!0);t.preload(e,o)}}startReading(e=h.defaultStartParams){this._startRequestTime=e.startRequestTime,this.ensureSpeechSynthesis();let t=this._speechUtterances.length,i=this.getReadingState();if(this._isProcessingPending||t>0&&i!==l.Paused)return void this._telemetryClient.reportReadOutLoudStartStates(o.ReadAloudStartStates.ReadAloud_StartReadingIgnored);this._isProcessingPending=!0;let r=i===l.Paused&&this.isReadingPositionValid()&&null!==this._readingNavigator.getCurrentUnit()&&!(this._contentProvider.getContentType()===a.ContentType.PDF&&e.startType===u.ResumeFromSelection),c=!r&&i===l.Paused;this.getLanguageAsync().then((t=>{if(this._isProcessingPending){if(this._isProcessingPending=!1,this.ensureDelimiters(t),r)return this.ensureNavigationEventListeners(),void this.resumeReading();i===l.Paused&&this._readingNavigator.getCurrentUnit()&&(this.resetReadSelection(),d.FeatureList.get()&&d.FeatureList.get().isReadAloudSDExtractionEnabled()||(e.startType=this._contentProvider.getContentType()!==a.ContentType.ReadingView&&this._contentProvider.getContentType()!==a.ContentType.PDF||e.startType===u.ResumeFromSelection?u.ReadFromWordSelection:u.ReadFromFirstVisibleElement)),(i===l.Stopped||i===l.Uninitialized||c)&&(this._isProcessingPending=!0,this._settings.ensureSpeechSettingsInitializedAsync(t).then((t=>{this._isProcessingPending&&(this._isProcessingPending=!1,t?(c&&(this.cancelReading(!0),this._highlighter.deactivateDecoration(s.DecorationType.Word)),this.ensureNavigationEventListeners(),this.continueReading(n.UnitDirection.Next,e,!0)):this.pauseReading())})))}}))}pauseReading(e=!1){this.getReadingState()!==l.Paused?(this._speechSynthesis&&this.cancelReading(!1,l.Paused),this.logSuccessTelemetry(l[l.Paused]),this._highlighter.deactivateDecoration(e?s.DecorationType.All:s.DecorationType.ExceptWord),this.handleSetReadingState(l.Paused)):this.getReadingState()===l.Paused&&e&&this._highlighter.deactivateDecoration(s.DecorationType.All)}stopReading(){this.cancelReading(!0,l.Stopped),this._userActionStartedListenerReleasable&&(this._userActionStartedListenerReleasable.release(),this._userActionStartedListenerReleasable=null),this._userActionCompletedListenerReleasable&&(this._userActionCompletedListenerReleasable.release(),this._userActionCompletedListenerReleasable=null)}moveToPreviousUnit(){if(this.resetReadSelection(),this.getReadingState()===l.Playing){this.cancelReading(!1),this._readingNavigator.setCurrentUnitTextOffset(0),this.continueReading(this._seekToStartForCurrentUnit?n.UnitDirection.Current:n.UnitDirection.Previous,h.defaultStartParams),this._seekToStartForCurrentUnit=!1;let e=window.setTimeout((()=>{this._seekToStartForCurrentUnit=!0,this._seekToStartReleasableTimer=null}),t.seekToStartTimeout);this._seekToStartReleasableTimer={release:()=>{window.clearTimeout(e)}}}}moveToNextUnit(){this.resetReadSelection(),this.getReadingState()===l.Playing&&(this.cancelReading(!1),this.continueReading(n.UnitDirection.Next,h.defaultStartParams))}getWordRect(){return this._highlighter.getWordRect()}settingsViewModel(){return this._settings}setDwellTime(e){this._dwellTimeDuration=e}getPausedDwellTime(){return this.pauseDwellTime(),this._dwellTimeDuration}getContentType(){return this._contentProvider.getContentType()}logSpeechSynthesisInvokeTelemetry(){0!==this._noOfTimesSpeechSynthesisInvoked&&(this._telemetryClient.reportReadOutLoudSpeechSynthesisInvoke(this._noOfTimesSpeechSynthesisInvoked),this._noOfTimesSpeechSynthesisInvoked=0)}resetReadSelection(){this._shouldExitAfterReadingCurrentUnit=!1,this._readingNavigator.getCurrentUnit()&&this._readingNavigator.resetCurrentUnitEndOffset()}continueReading(e,t,i){this._isProcessingPending||(this._isProcessingPending=!0,(i?this._readingNavigator.initializeAsync(t):Promise.resolve(!0)).then((t=>{if(!t||!this._isProcessingPending)return this.cancelReading(!0,l.Stopped),this.logErrorTelemetry(o.ReadAloudErrors.ReadingNavigatorInitializeFailure),!1;switch(e){case n.UnitDirection.Previous:return this._readingNavigator.moveToPreviousUnitAsync();case n.UnitDirection.Next:return this.updateCharacterCount(),this._readingNavigator.moveToNextUnitAsync();case n.UnitDirection.Current:return this.getReadingState()===l.Playing&&this.updateCharacterCount(),!0;default:return!0}})).then((i=>{if(this._isProcessingPending)if(i){let i=this.createSpeechUtterances(this._readingNavigator.getCurrentUnit());i&&i.length>0?(i.forEach((e=>{this._noOfTimesSpeechSynthesisInvoked++,this._speechSynthesis.speak(e)})),this._isProcessingPending=!1):(this._isProcessingPending=!1,this.continueReading(e,t,!1))}else this.logSuccessTelemetry(o.ReadAloudStartStates[o.ReadAloudStartStates.ReadAloud_ContentNotAvailable]),this.cancelReading(!0,l.Paused)})))}cancelReading(e,t){(this.getReadingState()===l.Playing||this._speechUtterances.length>0)&&(this._speechSynthesis.pause(),this._speechSynthesis.cancel()),!t||t!==l.Stopped&&t!==l.Paused||this.logSuccessTelemetry(l[t]),this._startRequestTime&&(this._startRequestTime=0),this._speechUtterances.forEach((e=>e.release())),this._speechUtterances=[],e&&(this.updateCharacterCount(),this.commitCharacterCount(),this.commitClickNavCountAfterROLStarted(),this._readingNavigator.reset()),this._seekToStartReleasableTimer&&(this._seekToStartReleasableTimer.release(),this._seekToStartReleasableTimer=null),t&&(this.handleSetReadingState(t),t===l.Stopped?this._highlighter.deactivateDecoration(s.DecorationType.All):t===l.Paused&&this._highlighter.deactivateDecoration(s.DecorationType.ExceptWord)),this._isProcessingPending=!1}commitClickNavCountAfterROLStarted(){0!==this._continueClickCountAfterROLStarted&&(this._telemetryClient.reportReadOutLoudContinueClickCount(this._contentProvider.getContentType(),this._continueClickCountAfterROLStarted),this._continueClickCountAfterROLStarted=0)}getLanguageAsync(){return this._contentProvider.getLanguageAsync(c).then((e=>r.StringUtilities.isNullOrEmpty(e)?c:e))}handleSetReadingState(e){let t=this.getReadingState();this.setReadingState(e),t!==e&&this.handleDwellTimeTelemetry()}resumeReading(){this.getReadingState()===l.Paused&&this._speechSynthesis&&this.continueReading(n.UnitDirection.Current,h.defaultStartParams)}createSpeechUtterances(e,i=!1){let o=[];i||(this._isOnlineVoicePlaying=!this._settings.getVoice().localService);let n=e.textContents;null!==e.textEndOffset&&void 0!==e.textEndOffset&&(i||(this._shouldExitAfterReadingCurrentUnit=!0),n=r.StringUtilities.truncateEnd(n,e.textEndOffset)),n=r.StringUtilities.skipStartText(n,e.textStartOffset);let s=r.StringUtilities.adjustTextByLength(n,t.maxUtteranceLength,this._delimiters),a=e.textStartOffset;return s.forEach((t=>{let n;n=i?this.createSpeechUtteranceWithoutEventHandlers(t):this.createSpeechUtterance(e,t,a),o.push(n),a+=t.length})),o}createSpeechUtteranceWithoutEventHandlers(e){let t=new SpeechSynthesisUtterance;return t.voice=this._settings.getVoice(),t.rate=this._settings.getReadingRate(),t.lang=this._settings.getVoice().lang,t.text="TH-TH"===t.lang.toUpperCase()?e:r.StringUtilities.replaceLinebreaksWithSpaces(e),t}onUtteranceStartOrResume(e){if(this._logVoiceUsageTelemetry||0!=this._startRequestTime){let e=this._settings.getVoice();e.localService&&!this._settings.isOnlineVoiceAvailable()||(this._telemetryClient.reportReadOutLoudVoiceUsage(this._contentProvider.getContentType(),!e.localService),this._logVoiceUsageTelemetry=!1)}this.logSuccessTelemetry(l[l.Playing]),this._highlighter.activateDecoration(s.DecorationType.Background),this.getReadingState()!=l.Playing&&(this._ignoreUserActionEvents=!0),this.handleSetReadingState(l.Playing),this._continueReadingOnUserActionComplete=!1}createSpeechUtterance(e,t,i){let o,r=this.createSpeechUtteranceWithoutEventHandlers(t),u=e=>{let t=d.FeatureList.get();t&&t.isPreloadOnStartUtteranceEnabled()&&this.preloadNextUtterance(e.charIndex),this.onUtteranceStartOrResume(e)},c=e=>{this.onUtteranceStartOrResume(e)},g=e=>{if(this._seekToStartForCurrentUnit=!0,this._seekToStartReleasableTimer&&(this._seekToStartReleasableTimer.release(),this._seekToStartReleasableTimer=null),o){let e=this._speechUtterances.findIndex((e=>e===o));e>=0&&this._speechUtterances.splice(e,1),o.release(),o=null}if(this.getReadingState()===l.Playing&&0===this._speechUtterances.length){if(this._shouldExitAfterReadingCurrentUnit)return this._shouldExitAfterReadingCurrentUnit=!1,void this.stopReading();this.continueReading(n.UnitDirection.Next,h.defaultStartParams)}},m=e=>{this.logErrorTelemetry(this.getTelemetryMessage(e.error,0!==this._startRequestTime)),"synthesis-failed"===e.error?this.continueReading(n.UnitDirection.Next,h.defaultStartParams):this.cancelReading(!0,l.Paused)},p=t=>{this.getReadingState()===l.Playing&&"word"===t.name&&(this._ignoreUserActionEvents=!0,this._contentProvider.getContentType()===a.ContentType.PDF&&this._continueReadingOnUserActionComplete||(this._highlighter.setWordDecorationPosition(e,i,t),this._highlighter.activateDecoration(s.DecorationType.WordAndLine)),this._readingNavigator.setCurrentUnitTextOffset(i+t.charIndex)),this._ignoreUserActionEvents=!1};return r.addEventListener("start",u),r.addEventListener("end",g),r.addEventListener("resume",c),r.addEventListener("error",m),r.addEventListener("boundary",p),o={value:()=>r,release:()=>{r.removeEventListener("start",u),r.removeEventListener("end",g),r.removeEventListener("resume",c),r.removeEventListener("error",m),r.removeEventListener("boundary",p)}},this._speechUtterances.push(o),o.value()}logSuccessTelemetry(e){0!=this._startRequestTime&&(this._settings.getVoice()?this._telemetryClient.reportReadOutLoudSuccess(e,!this._settings.getVoice().localService,Date.now()-this._startRequestTime):this._telemetryClient.reportReadOutLoudSuccess(e,!1,Date.now()-this._startRequestTime),this._startRequestTime=0)}getTelemetryMessage(e,t){switch(e){case"network":return t?o.ReadAloudErrors.SpeechUtteranceCreationFailure_Network_OnStart:o.ReadAloudErrors.SpeechUtteranceCreationFailure_Network;case"synthesis-failed":return t?o.ReadAloudErrors.SpeechUtteranceCreationFailure_SynthesisFailed_OnStart:o.ReadAloudErrors.SpeechUtteranceCreationFailure_SynthesisFailed;case"text-too-long":return t?o.ReadAloudErrors.SpeechUtteranceCreationFailure_TextTooLong_OnStart:o.ReadAloudErrors.SpeechUtteranceCreationFailure_TextTooLong;default:return!1===this._settings.getVoice().localService?t?o.ReadAloudErrors.SpeechUtteranceCreationFailureForOnlineVoice_OnStart:o.ReadAloudErrors.SpeechUtteranceCreationFailureForOnlineVoice:t?o.ReadAloudErrors.SpeechUtteranceCreationFailure_OnStart:o.ReadAloudErrors.SpeechUtteranceCreationFailure}}logErrorTelemetry(e){this._telemetryClient.reportReadOutLoudInternalError(e),this._startRequestTime=0}ensureNavigationEventListeners(){this._userActionStartedListenerReleasable||(this._userActionStartedListenerReleasable=this.addUserActionStartedListener()),this._userActionCompletedListenerReleasable||(this._userActionCompletedListenerReleasable=this.addUserActionCompletedListener())}ensureSpeechSynthesis(){this._speechSynthesis||(this._speechSynthesis=this._settings.getSpeechSynthesis())}ensureDelimiters(e){this._delimiters||(this._delimiters=0===e.indexOf("en")?[".",";",","]:[".","。",";",","," ","-"])}handleDwellTimeTelemetry(){switch(this.getReadingState()){case l.Playing:this.startDwellTime();break;case l.Paused:this.pauseDwellTime();break;case l.Stopped:this.commitDwellTime()}}startDwellTime(){this._dwellTimeStart=Date.now()}pauseDwellTime(){0!==this._dwellTimeStart&&(this._dwellTimeDuration+=Date.now()-this._dwellTimeStart,this._dwellTimeStart=0)}commitDwellTime(){this.pauseDwellTime(),0!==this._dwellTimeDuration&&(this._telemetryClient.reportReadOutLoudDwellTime(this._contentProvider.getContentType(),this._dwellTimeDuration),this._dwellTimeDuration=0)}updateCharacterCount(){this._readingNavigator.getCurrentUnit()&&(this._characterCount+=this._readingNavigator.getCurrentUnit().textStartOffset)}commitCharacterCount(){0!==this._characterCount&&(this._telemetryClient.reportReadOutLoudCharacterCount(this._contentProvider.getContentType(),this._characterCount,this._isOnlineVoicePlaying),this._characterCount=0)}}h.defaultStartParams={startRequestTime:0,startType:u.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},t.ReadOutLoudViewModel=h},68:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingPreferencesEventHandlers=void 0,t.ReadingPreferencesEventHandlers=class{constructor(e,t){this._releasables=[],this._hostProxy=e,this._mainViewModel=t,this._readingPreferencesViewModel=null,this.registerHostEventHandlers(),this._isInitialized=!1}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._readingPreferencesViewModel=null}ensureInitialize(){if(!this._isInitialized&&(this._mainViewModel.initializeLearningTools(),this._readingPreferencesViewModel=this._mainViewModel.getReadingPreferencesViewModel(),this._readingPreferencesViewModel)){let e=()=>{this._hostProxy.sendReadingPreferencesPaneStatus(this._readingPreferencesViewModel.readingPreferencesPaneStatus())};this._releasables.push(this._readingPreferencesViewModel.onReadingPreferencesStatusChanged().subscribe((()=>{e()}))),this._releasables.push(this._readingPreferencesViewModel.onLineFocusExit().subscribe((e=>{this._hostProxy.onLineFocusExit(e)}))),e()}}registerHostEventHandlers(){this._hostProxy.readingPreferencesInitialPaneStatusRequested().subscribe((()=>{this.ensureInitialize(),this._hostProxy.sendReadingPreferencesPaneStatus(this._readingPreferencesViewModel.readingPreferencesPaneStatus())})),this._hostProxy.enableLineFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.enableLineFocus(e)})),this._hostProxy.disableLineFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.disableLineFocus(e)})),this._hostProxy.onContentShifted().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onContentShifted()})),this._hostProxy.setNumberOfLinesInFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.setNumberOfLinesInFocus(e)})),this._hostProxy.upButtonClicked().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.moveToPreviousInLineFocus()})),this._hostProxy.downButtonClicked().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.moveToNextInLineFocus()})),this._hostProxy.enablePictureDictionaryRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.enablePictureDictionary()})),this._hostProxy.disablePictureDictionaryRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.disablePictureDictionary()})),this._hostProxy.languageChangeRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onLanguageChangeRequested()})),this._hostProxy.pictureDictionaryPopupHidden().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.handlePictureDictionaryPopupClose()})),this._hostProxy.hidePictureDictionaryPopupRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.hidePictureDictionaryPopupRequested()})),this._hostProxy.languageChangeRequestCompleted().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onLanguageChangeRequestCompleted()}))}}},131:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfContentProvider=void 0;const o=i(134),n=i(50);t.PdfContentProvider=class{constructor(e,t,i){this._document=i,this._hostProxy=e,this._currentFrame=t,this._accTreeLoadCompleteRequested=new o.EventSource,this._pdfContentReadyForLanguageDetection=new o.EventSource,this._hostProxy.readAloudPDFAccTreeLoadComplete().subscribe((()=>{this._accTreeLoaded=!0,this._accTreeLoadCompleteRequested.trigger(void 0)})),this._hostProxy.readAloudContentReadyForLanguageDetectionCommand().subscribe((()=>{this._pdfContentReadyForLanguageDetectionReceived=!0,this._pdfContentReadyForLanguageDetection.trigger(void 0)}))}getContentType(){return n.ContentType.PDF}isRTL(){return!1}getCurrentDocument(){return this._document}getPrimaryContent(){throw new Error("Method not implemented")}getLocalizedLearningToolsLabels(){throw new Error("Method not implemented.")}getDocumentStartRange(){throw new Error("Method not implemented.")}getLanguageAsync(e){return new Promise((t=>{if(this._accTreeLoaded||this._pdfContentReadyForLanguageDetectionReceived)return t(this.getLanguageOfDocument(e));let i,o;i=this._accTreeLoadCompleteRequested.subscribe((()=>(i.release(),o&&o.release(),t(this.getLanguageOfDocument(e))))),o=this._pdfContentReadyForLanguageDetection.subscribe((()=>(o.release(),i.release(),t(this.getLanguageOfDocument(e)))))}))}getLanguageOfDocument(e){let t="und";return t=this._hostProxy.detectLanguage(),"und"!==t?t:e}}},837:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfHostProxy=t.ReadAloudState=void 0;const o=i(134),n=i(50),s=i(52),r=i(224);var a;!function(e){e[e.NONE=0]="NONE",e[e.INITIALIZE=1]="INITIALIZE",e[e.READY=2]="READY",e[e.START=3]="START",e[e.STOP=4]="STOP",e[e.PAUSE=5]="PAUSE"}(a=t.ReadAloudState||(t.ReadAloudState={}));class d extends s.HostProxy{constructor(e){super(e),this.handleScrollOffsetEvents=e=>{var t,i,o,n;void 0!==(null===(i=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.eventData)||void 0===i?void 0:i.x)&&void 0!==(null===(n=null===(o=null==e?void 0:e.detail)||void 0===o?void 0:o.eventData)||void 0===n?void 0:n.y)&&learningToolsPdfReaderHandler.updateScrollOffset(e.detail.eventData.x,e.detail.eventData.y)},this.handleEmbedTopOffsetEvents=e=>{null!=e.detail.eventData.height&&learningToolsPdfReaderHandler.updateEmbedTopOffset(e.detail.eventData.height)},this.handleReadAloudBarEvents=e=>{let t=e.detail.eventData.value;if(!t||0==t.length)return;let i=t.shift();switch(i){case r.LearningToolsHostProxy.ReadOutLoudStopCommand:const e=document.getElementById("ui-container");e.removeEventListener("pdf-read-aloud-bar-event",this.handleReadAloudBarEvents),e.removeEventListener("pdf-viewport-scroll-offset-event",this.handleScrollOffsetEvents),e.removeEventListener("pdf-embed-top-offset-event",this.handleEmbedTopOffsetEvents),d.BarEventHandlersAdded=!1;case r.LearningToolsHostProxy.ReadOutLoudStartCommand:case r.LearningToolsHostProxy.ReadOutLoudPauseCommand:case r.LearningToolsHostProxy.ReadOutLoudNextCommand:case r.LearningToolsHostProxy.ReadOutLoudPreviousCommand:case r.LearningToolsHostProxy.ReadOutLoudFirstContentfulPaintLoadedCommand:case r.LearningToolsHostProxy.VoiceOptionsPaneOpened:case r.LearningToolsHostProxy.VoiceOptionsPaneClosed:super.postMessageToHost(i,...t);break;default:t&&t.length>0?(t.unshift(i),this.raiseMessageFromHost(t)):this.raiseMessageFromHost([i])}},this._readAloudPDFAccTreeLoadCompleteRequested=new o.EventSource,this._readAloudPDFRequiredAccTreeUpdateLoadedCommand=new o.EventSource,this._readAloudPDFUpdateReadingUnitCommand=new o.EventSource,this._readAloudPDFAccTreeLoadInProgressRequested=new o.EventSource,this._readAloudPDFPageInformationCommand=new o.EventSource,this._readAloudPDFTimeToStartCommand=new o.EventSource,this._readAloudPDFStartPageNumberInformationCommand=new o.EventSource,this._readAloudContentReadyForLanguageDetectionCommand=new o.EventSource,this._readAloudViewportCoordinatesRequested=new o.EventSource,this._ensureReadOutLoudInit=new o.EventSource,super.readOutLoudStartRequested().subscribe((()=>{const e={newState:a.START};this.sendUiEventToPdfAdaptor("read-aloud-state-changed",e)})),super.readOutLoudStopRequested().subscribe((()=>{const e={newState:a.STOP};this.sendUiEventToPdfAdaptor("read-aloud-state-changed",e)})),super.readOutLoudPauseRequested().subscribe((()=>{const e={newState:a.PAUSE};this.sendUiEventToPdfAdaptor("read-aloud-state-changed",e)})),this.addListenerToPdfViewerEvents()}readAloudPDFAccTreeLoadComplete(){return this._readAloudPDFAccTreeLoadCompleteRequested}readAloudPDFUpdateReadingUnitCommand(){return this._readAloudPDFUpdateReadingUnitCommand}readAloudPDFAccTreeLoadInProgress(){return this._readAloudPDFAccTreeLoadInProgressRequested}readAloudPDFRequiredAccTreeUpdateLoadedCommand(){return this._readAloudPDFRequiredAccTreeUpdateLoadedCommand}readAloudPDFPageInformationCommand(){return this._readAloudPDFPageInformationCommand}readAloudPDFTimeToStartCommand(){return this._readAloudPDFTimeToStartCommand}readAloudPDFStartPageNumberInformationCommand(){return this._readAloudPDFStartPageNumberInformationCommand}readAloudContentReadyForLanguageDetectionCommand(){return this._readAloudContentReadyForLanguageDetectionCommand}readAloudViewportCoordinatesRequested(){return this._readAloudViewportCoordinatesRequested}ensureReadOutLoudInit(){return this._ensureReadOutLoudInit}detectLanguage(){return learningToolsPdfReaderHandler?learningToolsPdfReaderHandler.detectTextLanguage():"und"}sendUiEventToPdfAdaptor(e,t){document.getElementById("ui-container").dispatchEvent(this.createUiEventToPdfAdaptor(e,t))}sendReadAloudActionToPdfViewer(e,t){document.getElementById("ui-container").dispatchEvent(this.createReadAloudActionForPdfViewer(e,t))}sendReadAloudBarActionToPdfViewer(e,t){document.getElementById("ui-container").dispatchEvent(this.createReadAloudBarActionForPdfViewer(e,t))}raiseMessageFromHost(e){if(!e||0==e.length)return;let t=e.shift();switch(t){case r.LearningToolsHostProxy.OpenVoiceOptionsPane:case r.LearningToolsHostProxy.CloseVoiceOptionsPane:break;default:e.unshift(t),super.raiseMessageFromHost(e)}}postMessageToHost(e,...t){switch(e){case r.LearningToolsHostProxy.ReadOutLoudStatusHostMessage:case r.LearningToolsHostProxy.ReadOutLoudSpeechPreferencesHostMessage:case r.LearningToolsHostProxy.DetectLanguageHostMessage:super.postMessageToHost(e,...t);break;case r.LearningToolsHostProxy.TelemetryMessage:return void super.postMessageToHost(e,...t)}const i={commandName:e,params:t};this.sendReadAloudBarActionToPdfViewer("read-aloud-bar-action",i)}onReadAloudInitiated(){this._readAloudPDFAccTreeLoadCompleteRequested.trigger(void 0),this._readAloudViewportCoordinatesRequested.trigger(void 0),this.requestViewportScrollOffsetFromPdfViewer(),this.requestEmbedTopOffsetFromPdfViewer()}onMessageFromHost(e){if(!(e.length<1))switch(e[0]){case s.HostProxy.ReadOutLoudStartCommand:d.BarEventHandlersAdded||this.addListenerToPdfViewerEvents(),super.onMessageFromHost(e);break;case d.ReadAloudPDFAccTreeLoadCompleteCommand:this._ensureReadOutLoudInit.trigger(void 0);break;case d.ReadAloudPDFRequiredAccTreeUpdateLoadedCommand:this._readAloudPDFRequiredAccTreeUpdateLoadedCommand.trigger(void 0);case d.ReadAloudPDFUpdateReadingUnitCommand:this._readAloudPDFUpdateReadingUnitCommand.trigger(void 0);break;case d.ReadAloudPDFAccTreeLoadInProgressCommand:this._readAloudPDFAccTreeLoadInProgressRequested.trigger(void 0);break;case d.ReadAloudPDFAccTreeReset:super.postMessageToHost(d.ReadAloudPDFAccTreeReset,n.ContentType.PDF.toString());break;case d.ReadAloudPDFInitialized:this.sendReadAloudActionToPdfViewer("read-aloud-start",{});break;case d.ReadAloudPDFPageInformationCommand:e[1]&&this._readAloudPDFPageInformationCommand.trigger([e[1]]);break;case d.ReadAloudPDFTimeToStartCommand:e[1]&&this._readAloudPDFTimeToStartCommand.trigger([e[1]]);break;case d.ReadAloudPDFStartPageNumberInformationCommand:e[1]&&this._readAloudPDFStartPageNumberInformationCommand.trigger([e[1]]);break;case d.ReadAloudContentReadyForLanguageDetectionCommand:this._readAloudContentReadyForLanguageDetectionCommand.trigger(void 0),this._readAloudViewportCoordinatesRequested.trigger(void 0),this.requestViewportScrollOffsetFromPdfViewer(),this.requestEmbedTopOffsetFromPdfViewer();break;default:super.onMessageFromHost(e)}}createUiEventToPdfAdaptor(e,t){return new CustomEvent("pdf-ui-event",{detail:{eventName:e,eventData:t}})}createReadAloudActionForPdfViewer(e,t){return new CustomEvent("read-aloud-action",{detail:{eventName:e,eventData:t}})}createReadAloudBarActionForPdfViewer(e,t){return new CustomEvent("read-aloud-bar-action",{detail:{eventName:e,eventData:t}})}addListenerToPdfViewerEvents(){const e=document.getElementById("ui-container");e&&(e.addEventListener("pdf-read-aloud-bar-event",this.handleReadAloudBarEvents),e.addEventListener("pdf-viewport-scroll-offset-event",this.handleScrollOffsetEvents),e.addEventListener("pdf-embed-top-offset-event",this.handleEmbedTopOffsetEvents)),d.BarEventHandlersAdded=!0}requestViewportScrollOffsetFromPdfViewer(){const e=document.getElementById("ui-container");e&&e.dispatchEvent(new CustomEvent("read-aloud-scroll-offset-request"))}requestEmbedTopOffsetFromPdfViewer(){const e=document.getElementById("ui-container");e&&e.dispatchEvent(new CustomEvent("read-aloud-embed-top-offset-request"))}}d.ReadAloudPDFAccTreeLoadCompleteCommand="ReadAloud_PDFAccTreeLoadComplete",d.ReadAloudPDFAccTreeLoadInProgressCommand="ReadAloud_PDFAccTreeLoadInProgress",d.ReadAloudPDFRequiredAccTreeUpdateLoadedCommand="ReadAloud_PDFRequiredAccTreeUpdateLoaded",d.ReadAloudPDFUpdateReadingUnitCommand="ReadAloud_PDFUpdateReadingUnit",d.ReadAloudPDFPageInformationCommand="ReadAloud_PDFPageInformation",d.ReadAloudPDFStartPageNumberInformationCommand="ReadAloud_PDFStartPageNumberInfo",d.ReadAloudPDFTimeToStartCommand="ReadAloud_PDFTimeToStart",d.ReadAloudContentReadyForLanguageDetectionCommand="ReadAloud_PDFContentReadyForLanguageDetection",d.ReadAloudPDFAccTreeReset="ReadAloud_PDFAccTreeReset",d.ReadAloudPDFInitialized="ReadOutLoud_Initialized",d.BarEventHandlersAdded=!1,t.PdfHostProxy=d},593:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfLearningToolsRuntime=void 0;const o=i(50),n=i(174),s=i(266),r=i(553),a=i(837),d=i(745),l=i(52),u=i(95),c=i(508);class h extends r.LearningToolsRuntime{constructor(){super()}initialize(e){super.initialize(e),window.addEventListener("error",(e=>{var t=JSON.stringify({hostName:"Browser",featureName:"ReadOutLoud",eventName:"ReadOutLoud_Error",errorID:n.ReadAloudErrors.GlobalScriptError.toString()});this.postMessageToHost(l.HostProxy.TelemetryMessage,[t])}));var t={frameTreeNodeId:Number(e[0]),processId:Number(e[1])};let i;i=(0,c.isPdfReadAloudWithPageTextDataEnabled)()?new d.PdfPageTextHostProxy(this):new a.PdfHostProxy(this);var r=new u.PdfMainViewModel(i,t);(new s.LearningToolsCore).initializeReadOutLoud(i,r,!0);let g=[l.HostProxy.ReadOutLoudInitializeSettingsCommand,e[0],e[1],e[3],e[4]];this.raiseMessageFromHost(g),this.postMessageToHost(h.ScriptInjectionSuccessful,[o.ContentType.PDF.toString()]),(0,c.isPdfReadAloudWithPageTextDataEnabled)()||this.initializePDFReader()}}h.ScriptInjectionSuccessful="LearningTools_ScriptInjectionSuccessful",t.PdfLearningToolsRuntime=h},95:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfMainViewModel=void 0;const o=i(475),n=i(83),s=i(131),r=i(158),a=i(520),d=i(218),l=i(835),u=i(926),c=i(943),h=i(770),g=i(508);t.PdfMainViewModel=class{constructor(e,t){this._readOutLoudViewModel=null,this._settingsViewModel=null,this._hostProxy=e,this._currentFrame=t,this._viewer=null}initializeReadOutLoud(e,t){let i=new n.TelemetryClient(this._hostProxy);(0,g.isPdfReadAloudWithPageTextDataEnabled)()?(this._readingUnitHelper=new h.PdfPageTextReadingUnitHelper(this._hostProxy,i),this._pdfContentProvider=new c.PdfPageTextContentProvider(this._hostProxy,this._currentFrame,document)):(this._readingUnitHelper=new u.PdfReadingUnitHelper(this._hostProxy,i),this._pdfContentProvider=new s.PdfContentProvider(this._hostProxy,this._currentFrame,document)),this._viewer=new l.PdfReadOutLoudViewer(this._hostProxy,this._pdfContentProvider);var m=new d.PdfReadingNavigator(this._readingUnitHelper),p=new a.PdfReadingHighlighter(this._viewer);this._settingsViewModel=new o.ReadOutLoudSettingsViewModel(e,t,i),this._readOutLoudViewModel=new r.PdfReadOutLoudViewModel(m,p,this._settingsViewModel,this._pdfContentProvider,this._viewer,i,this._readingUnitHelper)}initializeLearningTools(){throw new Error("Method not implemented.")}getComprehensionToolsViewModel(){throw new Error("Method not implemented.")}getReadingPreferencesViewModel(){throw new Error("Method not implemented.")}getReadOutLoudViewModel(){return this._readOutLoudViewModel}getReadOutLoudSettingsViewModel(){return this._settingsViewModel}}},943:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfPageTextContentProvider=void 0;const o=i(50);t.PdfPageTextContentProvider=class{constructor(e,t,i){this._document=i,this._hostProxy=e,this._currentFrame=t,this._hostProxy.pdfLanguageDetected().subscribe((e=>{this._languageDetected=e[0]}))}getContentType(){return o.ContentType.PDF}isRTL(){return!1}getCurrentDocument(){return this._document}getPrimaryContent(){throw new Error("Method not implemented")}getLocalizedLearningToolsLabels(){throw new Error("Method not implemented.")}getDocumentStartRange(){throw new Error("Method not implemented.")}getLanguageAsync(e){const t=t=>"und"!==t?t:e;return new Promise((e=>{if(this._languageDetected)return e(t(this._languageDetected));let i;i=this._hostProxy.pdfLanguageDetected().subscribe((o=>(i.release(),e(t(o[0])))))}))}}},745:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfPageTextHostProxy=t.ReadAloudState=void 0;const o=i(134),n=i(52),s=i(224);var r;!function(e){e[e.NONE=0]="NONE",e[e.INITIALIZE=1]="INITIALIZE",e[e.READY=2]="READY",e[e.START=3]="START",e[e.STOP=4]="STOP",e[e.PAUSE=5]="PAUSE"}(r=t.ReadAloudState||(t.ReadAloudState={}));class a extends n.HostProxy{constructor(e){super(e),this.handlePdfDataEvents=e=>{if(e.detail.eventData)switch(e.detail.eventName){case"page-text-data-initial":void 0!==e.detail.eventData.pageIndex&&void 0!==e.detail.eventData.pageTextData&&void 0!==e.detail.eventData.selectionData&&void 0!==e.detail.eventData.pageLayoutRect&&this._onPdfInitialPageTextDataReceived.trigger([e.detail.eventData.pageIndex,e.detail.eventData.pageTextData,e.detail.eventData.selectionData,e.detail.eventData.pageLayoutRect]);break;case"page-text-data-on-navigation":void 0!==e.detail.eventData.pageIndex&&void 0!==e.detail.eventData.pageTextData&&void 0!==e.detail.eventData.pageLayoutRect&&this._onPdfAdjacentPageTextDataReceived.trigger([e.detail.eventData.pageIndex,e.detail.eventData.pageTextData,e.detail.eventData.pageLayoutRect]);break;case"pdf-language-data":void 0!==e.detail.eventData.language&&this._onPdfLanguageDetected.trigger([e.detail.eventData.language]);break;case"pdf-page-count":void 0!==e.detail.eventData.pdfPageCount&&this._onPdfPageCountReceived.trigger(e.detail.eventData.pdfPageCount);break;case"pdf-viewport-info":void 0!==e.detail.eventData.zoom&&void 0!==e.detail.eventData.xOffsetLayout&&void 0!==e.detail.eventData.yOffsetLayout&&void 0!==e.detail.eventData.viewportRect&&this._onPdfViewportInfoReceived.trigger([e.detail.eventData.zoom,e.detail.eventData.xOffsetLayout,e.detail.eventData.yOffsetLayout,e.detail.eventData.viewportRect])}},this.handleReadAloudBarEvents=e=>{let t=e.detail.eventData.value;if(!t||0==t.length)return;let i=t.shift();switch(i){case s.LearningToolsHostProxy.ReadOutLoudStopCommand:const e=document.getElementById("ui-container");e.removeEventListener("pdf-read-aloud-bar-event",this.handleReadAloudBarEvents),e.removeEventListener("pdf-read-aloud-data-event",this.handlePdfDataEvents),a.BarEventHandlersAdded=!1;case s.LearningToolsHostProxy.ReadOutLoudStartCommand:case s.LearningToolsHostProxy.ReadOutLoudPauseCommand:case s.LearningToolsHostProxy.ReadOutLoudNextCommand:case s.LearningToolsHostProxy.ReadOutLoudPreviousCommand:case s.LearningToolsHostProxy.ReadOutLoudFirstContentfulPaintLoadedCommand:case s.LearningToolsHostProxy.VoiceOptionsPaneOpened:case s.LearningToolsHostProxy.VoiceOptionsPaneClosed:super.postMessageToHost(i,...t);break;default:t&&t.length>0?(t.unshift(i),this.raiseMessageFromHost(t)):this.raiseMessageFromHost([i])}},this._readAloudPDFTimeToStartCommand=new o.EventSource,this._onPdfLanguageDetected=new o.EventSource,this._onPdfInitialPageTextDataReceived=new o.EventSource,this._onPdfAdjacentPageTextDataReceived=new o.EventSource,this._onPdfPageCountReceived=new o.EventSource,this._onPdfViewportInfoReceived=new o.EventSource,super.readOutLoudStartRequested().subscribe((()=>{const e={newState:r.START};this.sendUiEventToPdfAdaptor("read-aloud-state-changed",e)})),super.readOutLoudStopRequested().subscribe((()=>{const e={newState:r.STOP};this.sendUiEventToPdfAdaptor("read-aloud-state-changed",e)})),super.readOutLoudPauseRequested().subscribe((()=>{const e={newState:r.PAUSE};this.sendUiEventToPdfAdaptor("read-aloud-state-changed",e)})),this.addListenerToPdfViewerEvents()}readAloudPDFTimeToStartCommand(){return this._readAloudPDFTimeToStartCommand}pdfLanguageDetected(){return this._onPdfLanguageDetected}pdfInitialPageTextDataReceived(){return this._onPdfInitialPageTextDataReceived}pdfAdjacentPageTextDataReceived(){return this._onPdfAdjacentPageTextDataReceived}readAloudPDFPageCountReceived(){return this._onPdfPageCountReceived}readAloudPDFViewportInfoReceived(){return this._onPdfViewportInfoReceived}sendUiEventToPdfAdaptor(e,t){document.getElementById("ui-container").dispatchEvent(this.createUiEventToPdfAdaptor(e,t))}sendReadAloudActionToPdfViewer(e,t){document.getElementById("ui-container").dispatchEvent(this.createReadAloudActionForPdfViewer(e,t))}sendReadAloudDataEventToPdfViewer(e,t){document.getElementById("ui-container").dispatchEvent(this.createReadAloudDataEventForPdfViewer(e,t))}sendReadAloudBarActionToPdfViewer(e,t){document.getElementById("ui-container").dispatchEvent(this.createReadAloudBarActionForPdfViewer(e,t))}raiseMessageFromHost(e){if(!e||0==e.length)return;let t=e.shift();switch(t){case s.LearningToolsHostProxy.OpenVoiceOptionsPane:case s.LearningToolsHostProxy.CloseVoiceOptionsPane:break;default:e.unshift(t),super.raiseMessageFromHost(e)}}postMessageToHost(e,...t){switch(e){case s.LearningToolsHostProxy.ReadOutLoudStatusHostMessage:case s.LearningToolsHostProxy.ReadOutLoudSpeechPreferencesHostMessage:case s.LearningToolsHostProxy.DetectLanguageHostMessage:super.postMessageToHost(e,...t);break;case s.LearningToolsHostProxy.TelemetryMessage:return void super.postMessageToHost(e,...t)}const i={commandName:e,params:t};this.sendReadAloudBarActionToPdfViewer("read-aloud-bar-action",i)}onMessageFromHost(e){if(!(e.length<1))switch(e[0]){case n.HostProxy.ReadOutLoudStartCommand:a.BarEventHandlersAdded||this.addListenerToPdfViewerEvents(),super.onMessageFromHost(e);break;case a.ReadAloudPDFInitialized:this.sendReadAloudActionToPdfViewer("read-aloud-start",{});break;case a.ReadAloudPDFTimeToStartCommand:e[1]&&this._readAloudPDFTimeToStartCommand.trigger([e[1]]);break;default:super.onMessageFromHost(e)}}createUiEventToPdfAdaptor(e,t){return new CustomEvent("pdf-ui-event",{detail:{eventName:e,eventData:t}})}createReadAloudActionForPdfViewer(e,t){return new CustomEvent("read-aloud-action",{detail:{eventName:e,eventData:t}})}createReadAloudBarActionForPdfViewer(e,t){return new CustomEvent("read-aloud-bar-action",{detail:{eventName:e,eventData:t}})}createReadAloudDataEventForPdfViewer(e,t){return new CustomEvent("read-aloud-data-event",{detail:{eventName:e,eventData:t}})}addListenerToPdfViewerEvents(){const e=document.getElementById("ui-container");e&&(e.addEventListener("pdf-read-aloud-bar-event",this.handleReadAloudBarEvents),e.addEventListener("pdf-read-aloud-data-event",this.handlePdfDataEvents)),a.BarEventHandlersAdded=!0}}a.ReadAloudPDFTimeToStartCommand="ReadAloud_PDFTimeToStart",a.ReadAloudPDFInitialized="ReadOutLoud_Initialized",a.BarEventHandlersAdded=!1,t.PdfPageTextHostProxy=a},770:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfPageTextReadingUnitHelper=void 0;const o=i(50),n=i(467),s=i(134),r=i(508),a=i(547),d=i(525);t.PdfPageTextReadingUnitHelper=class{constructor(e,t){this._pdfHostProxy=e,this._telemetryClient=t,this.setDefaultPageState(),this._nextPageReadingUnitsReceived=new s.EventSource,this._previousPageReadingUnitsReceived=new s.EventSource,this._pdfHostProxy.readAloudPDFPageCountReceived().subscribe((e=>{this._pdfPageCount=e,this._telemetryClient.reportReadOutLoudPDFPageCount(this._pdfPageCount)})),this._pdfHostProxy.sendReadAloudDataEventToPdfViewer(a.REQUEST_PDF_PAGE_COUNT,{}),this._pdfHostProxy.readAloudPDFTimeToStartCommand().subscribe((e=>{let t=Number(e[0]);t&&this._pdfPageCount&&this._telemetryClient.reportReadOutLoudPdfTimeToPageRatio(Math.floor(t/this._pdfPageCount))}))}getCurrentUnit(){return 0===this._currentPageReadingUnits.length?new n.PdfReadingUnit([],0,0):this.isReadingUnitIndexValid(this._currentUnitIndex)?this._currentPageReadingUnits[this._currentUnitIndex]:null}reset(){this.setDefaultPageState(),this._nextPageReadingUnitsReceived=new s.EventSource,this._previousPageReadingUnitsReceived=new s.EventSource}moveToPreviousUnit(){return this.isReadingUnitIndexValid(this._currentUnitIndex-1)?(this.setCurrentUnitTextOffset(0),this._currentUnitIndex--,Promise.resolve(this.getCurrentUnit())):0===this._currentUnitIndex&&this._currentPageIndex-1>=0?null!=this._previousPageIndex?(this.moveToPreviousPage(),Promise.resolve(this.getCurrentUnit())):(this._previousPageReadingUnitsRequested||(this._previousPageReadingUnitsRequested=!0,this.fetchPageTextDataForAdjacentPage(this._currentPageIndex-1)),new Promise((e=>{let t;t=this._previousPageReadingUnitsReceived.subscribe((()=>{t.release(),this.moveToPreviousPage(),e(this.getCurrentUnit())}))}))):Promise.resolve(null)}moveToNextUnit(){return this._isReadAloudStarted?this.isReadingUnitIndexValid(this._currentUnitIndex+1)?(this.setCurrentUnitTextOffset(0),this._currentUnitIndex++,Promise.resolve(this.getCurrentUnit())):this.isAtTheEndOfCurrentPage()&&this._currentPageIndex+1{let t;t=this._nextPageReadingUnitsReceived.subscribe((()=>{t.release(),this.moveToNextPage(),e(this.getCurrentUnit())}))}))):Promise.resolve(null):(this._isReadAloudStarted=!0,this.isReadingUnitIndexValid(this._currentUnitIndex)?Promise.resolve(this.getCurrentUnit()):Promise.resolve(new n.PdfReadingUnit([],0,0)))}isAtTheEndOfCurrentPage(){return!this.isReadingUnitIndexValid(this._currentUnitIndex)||0===this._currentPageReadingUnits.length||this._currentUnitIndex===this._currentPageReadingUnits.length-1}setDefaultPageState(){this._startType=d.StartType.Default,this._isReadAloudStarted=!1,this._currentPageReadingUnits=[],this._currentUnitIndex=null,this._currentPageIndex=null,this._pdfPageCount=null,this._nextPageIndex=null,this._nextPageReadingUnits=[],this._nextPageReadingUnitsRequested=!1,this._previousPageIndex=null,this._previousPageReadingUnits=[],this._previousPageReadingUnitsRequested=!1,this._selectionStart={pageIndex:-1,charOffset:-1},this._selectionEnd={pageIndex:-1,charOffset:-1}}moveToNextPage(){this._previousPageIndex=this._currentPageIndex,this._previousPageReadingUnits=this._currentPageReadingUnits,this._previousPageReadingUnitsRequested=!0,this._currentPageReadingUnits=this._nextPageReadingUnits,this._currentUnitIndex=0,this._currentPageIndex=this._nextPageIndex,this._nextPageIndex=null,this._nextPageReadingUnits=[],this._nextPageReadingUnitsRequested=!1,this._startType===d.StartType.ReadSelection&&this._currentPageIndex===this._selectionEnd.pageIndex&&this.setEndUnitForSelectedText()}moveToPreviousPage(){this._nextPageIndex=this._currentPageIndex,this._nextPageReadingUnits=this._currentPageReadingUnits,this._nextPageReadingUnitsRequested=!0,this._currentPageReadingUnits=this._previousPageReadingUnits,this._currentUnitIndex=this._currentPageReadingUnits.length>0?this._currentPageReadingUnits.length-1:0,this._currentPageIndex=this._previousPageIndex,this._previousPageIndex=null,this._previousPageReadingUnits=[],this._previousPageReadingUnitsRequested=!1}fetchPageTextDataForAdjacentPage(e){if(!this._pdfPageCount||e<0||e>=this._pdfPageCount||e===this._currentPageIndex)return;let t;t=this._pdfHostProxy.pdfAdjacentPageTextDataReceived().subscribe((e=>{t.release();const[i,o,n]=e,s=parseInt(i);s>this._currentPageIndex?(this._nextPageIndex=s,this._nextPageReadingUnits=this.createReadingUnitsFromPageTextData(o,n),this._nextPageReadingUnitsReceived.trigger(void 0)):s{if(0===e.length)return t(!1);let i;try{i=JSON.parse(e)}catch(e){return t(!1)}this._startType=(0,r.parseStartType)(i.startType),this._startType===d.StartType.ReadFromPoint&&(this._point={x:i.x,y:i.y}),this._startType===d.StartType.Default?this.setCurrentReadingUnitForDefaultStartType(t):this.setCurrentReadingUnitForCustomStartType(t)}))}setCurrentReadingUnitForDefaultStartType(e){let t;t=this._pdfHostProxy.pdfInitialPageTextDataReceived().subscribe((i=>{t.release();const[n,s,r,a]=i;this._currentPageIndex=parseInt(n),this._telemetryClient.reportReadOutLoudStartPageNumber(o.ContentType.PDF,this._currentPageIndex+1),this._currentPageReadingUnits=this.createReadingUnitsFromPageTextData(s,a),this._currentUnitIndex=0,e(!0)})),this.requestPageTextDataInitial()}setCurrentReadingUnitForCustomStartType(e){let t=!1,i=!1,o=null,n=null;const s=()=>{t&&i&&(this.processStartWithViewportInfo(n,o),e(!0))},r=this._pdfHostProxy.readAloudPDFViewportInfoReceived().subscribe((e=>{r.release(),o=e,t=!0,s()})),d=this._pdfHostProxy.pdfInitialPageTextDataReceived().subscribe((e=>{d.release(),n=e,i=!0,s()}));this._pdfHostProxy.sendReadAloudDataEventToPdfViewer(a.REQUEST_PDF_VIEWPORT_INFO,{}),this.requestPageTextDataInitial()}processStartWithViewportInfo(e,t){const[i,n,s,a]=e,[l,u,c,h]=t;this._currentPageIndex=parseInt(i),this._telemetryClient.reportReadOutLoudStartPageNumber(o.ContentType.PDF,this._currentPageIndex+1),this._currentPageReadingUnits=this.createReadingUnitsFromPageTextData(n,a);const g=(0,r.parseSelectionData)(s);if(g.isValid&&(this._selectionStart=g.selectionStart,this._selectionEnd=g.selectionEnd,this._startType!==d.StartType.ReadSelection))return this.setStartUnitForSelectedText(),void(this._currentUnitIndex=void 0!==this._selectionStart.readingUnitIndex?this._selectionStart.readingUnitIndex:0);const m={zoom:parseFloat(l),xOffsetLayout:parseFloat(u),yOffsetLayout:parseFloat(c),viewportRect:(0,r.parseRectData)(h)},p=this.getStartUnitInfo(m);this._currentUnitIndex=p.unitIndex,this.isReadingUnitIndexValid(this._currentUnitIndex)&&this.setCurrentUnitTextOffset(p.startOffset)}getStartUnitInfo(e){switch(this._startType){case d.StartType.ReadFromFirstVisibleElement:case d.StartType.ReadFromCurrentPage:return this.getStartUnitForFirstVisibleElement(e);case d.StartType.ReadSelection:case d.StartType.ReadFromWordSelection:this.setStartUnitForSelectedText(),this._startType===d.StartType.ReadSelection&&this._currentPageIndex===this._selectionEnd.pageIndex&&this.setEndUnitForSelectedText();const t=void 0!==this._selectionStart.readingUnitIndex?this._selectionStart.readingUnitIndex:0;return{unitIndex:t,startOffset:this._currentPageReadingUnits[t].textStartOffset};case d.StartType.ReadFromPoint:const i=new DOMRect(this._point.x+e.viewportRect.x,this._point.y+e.viewportRect.y,0,0),o=this.findFirstReadingUnitIntersectingRect(i,e);return this.isReadingUnitIndexValid(o.unitIndex)?o:this.getStartUnitForFirstVisibleElement(e);default:return this.getStartUnitForDefaultType()}}getStartUnitForDefaultType(){return{unitIndex:0,startOffset:0}}getStartUnitForFirstVisibleElement(e){const t=new DOMRect(e.viewportRect.x,e.viewportRect.y+e.yOffsetLayout,e.viewportRect.width,e.viewportRect.height-e.yOffsetLayout);return this.findFirstReadingUnitIntersectingRect(t,e)}findFirstReadingUnitIntersectingRect(e,t){let i=0,o=0;for(let n=0;n{const t=e.map((e=>{const t=e.bound,i=this.transformPageSpaceRectToViewportRect(new DOMRect(t[0],t[1],t[2],t[3]),s),o=e.characterBounds.map((e=>this.transformPageSpaceRectToViewportRect(new DOMRect(e[0],e[1],e[2],e[3]),s)));return{text:"string"==typeof e.text&&e.text.trim().length>0?e.text:"",bound:i,characterBounds:o}}));return new n.PdfReadingUnit(t,0,0)}))}catch(e){return[new n.PdfReadingUnit([],0,0)]}return i}isReadingUnitIndexValid(e){return e>=0&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfReadOutLoudViewer=t.eventWaitTime=void 0;const o=i(134),n=i(227),s=i(837),r=i(508);t.eventWaitTime=600,t.PdfReadOutLoudViewer=class{constructor(e,i){this.onResize=()=>{this.addBackgroundDecoration(),this._scrollSourceList.includes(n.ScrollSource.Zoom)||(this._scrollSourceList.push(n.ScrollSource.Zoom),this._scrollStart.trigger(n.ScrollSource.Zoom)),this.onScrollOrZoom()},this.onScrollOrZoom=()=>{this._eventTimeoutReleasable?(this._eventTimeoutReleasable.release(),this._eventTimeoutReleasable=null):0===this._scrollSourceList.length&&(this._scrollSourceList.push(n.ScrollSource.Unknown),this._scrollStart.trigger(n.ScrollSource.Unknown));let e=window.setTimeout((()=>{(0,r.isPdfReadAloudWithPageTextDataEnabled)()||this.sendViewportCoordinatesToAccHelper(),this._scrollSourceList.forEach((e=>this._scrollEnd.trigger(e))),this._scrollSourceList=[],this._eventTimeoutReleasable=null,this._isReadAloudScrollInProgress=!1}),t.eventWaitTime);this._eventTimeoutReleasable={release:()=>clearTimeout(e)}},(0,r.isPdfReadAloudWithPageTextDataEnabled)(),this._hostProxy=e,this._pdfContentProvider=i,this._isReadAloudScrollInProgress=!1,this._scrollSourceList=[],this._eventTimeoutReleasable=null,this._pluginContainer=null,this._scrollEnd=new o.EventSource,this._scrollStart=new o.EventSource,document.body.addEventListener("zoom",this.onResize),window.addEventListener("resize",this.onResize),(0,r.isPdfReadAloudWithPageTextDataEnabled)()||window.addEventListener("scroll",this.onScrollOrZoom),!(0,r.isPdfReadAloudWithPageTextDataEnabled)()&&this._hostProxy instanceof s.PdfHostProxy&&this._hostProxy.readAloudViewportCoordinatesRequested().subscribe((()=>{this.sendViewportCoordinatesToAccHelper()}))}addBackgroundDecoration(){this._hostProxy.sendReadAloudActionToPdfViewer("add-background-decoration",null)}removeBackgroundDecoration(){this._hostProxy.sendReadAloudActionToPdfViewer("remove-background-decoration",null)}addLineDecoration(e){const t={value:e};this._hostProxy.sendReadAloudActionToPdfViewer("add-line-decoration",t)}removeLineDecoration(){this._hostProxy.sendReadAloudActionToPdfViewer("remove-line-decoration",null)}addWordDecoration(e){const t={value:e};this._hostProxy.sendReadAloudActionToPdfViewer("add-word-decoration",t)}removeWordDecoration(){this._hostProxy.sendReadAloudActionToPdfViewer("remove-word-decoration",null)}scrollPdfContentIntoView(e){this._hostProxy.sendReadAloudActionToPdfViewer("scroll-content",e)}onScrollStart(){return this._scrollStart}onScrollEnd(){return this._scrollEnd}isElementVisible(e,t){if((0,r.isPdfReadAloudWithPageTextDataEnabled)())return!1;let i=this.getViewportRects();return!!i&&t.left>=i.left&&t.right<=i.right&&t.top>=i.top&&t.bottom<=i.bottom}scrollElementIntoView(e,t,i){return(0,r.isPdfReadAloudWithPageTextDataEnabled)()?Promise.resolve(!1):new Promise((e=>{if(!this._isReadAloudScrollInProgress){if(this.isElementVisible(null,t)||this.maxVolumeInsideViewport(t))return e(!0);this._scrollSourceList.includes(n.ScrollSource.ReadAloud)||(this._scrollSourceList.push(n.ScrollSource.ReadAloud),this._scrollStart.trigger(n.ScrollSource.ReadAloud)),this._isReadAloudScrollInProgress=!0;let i=this.getViewportRects();if(!i)return e(!1);let o=this.isElementOutsideViewportHeight(t,i)?t.top-i.top:0,s=0;return this.isElementOutsideViewportWidth(t,i)&&(s=this._pdfContentProvider.isRTL()?t.left-i.left:t.right-i.right),this.scrollPdfContentIntoView({top:o,left:s,behavior:"smooth"}),e(!0)}}))}getStartingPosition(e){throw new Error("Method is not used for ROL PDF")}getSelectionStartRangeInVisibleRegion(){throw new Error("Method is not used for ROL PDF")}maxVolumeInsideViewport(e){if((0,r.isPdfReadAloudWithPageTextDataEnabled)())return!1;let t=this.getViewportRects();if(!t)return!1;let i=Math.max(0,Math.min(e.right,t.right)-Math.max(e.left,t.left))*Math.max(0,Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top)),o=(e.right-e.left)*(e.bottom-e.top);return!o||i>Math.round(.8*o)}getViewportRects(){if((0,r.isPdfReadAloudWithPageTextDataEnabled)())return null;if(!this._pluginContainer&&(this._pluginContainer=document.getElementById("plugin"),!this._pluginContainer))return null;let e=this._pluginContainer.offsetTop,t=this._pluginContainer.offsetLeft;return new DOMRect(t,e,window.innerWidth-t,window.innerHeight-e)}isElementOutsideViewportHeight(e,t){return e.bottom>t.bottom||e.topt.right}sendViewportCoordinatesToAccHelper(){if((0,r.isPdfReadAloudWithPageTextDataEnabled)())return;let e=this.getViewportRects();e&&learningToolsPdfReaderHandler&&learningToolsPdfReaderHandler.UpdateViewportCoordinate(e.left,e.top,e.width,e.height)}}},926:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfReadingUnitHelper=t.pdfEventBasedUpdateTime=t.pdfDocumentLoadTime=void 0;const o=i(590),n=i(50),s=i(134),r=i(467);t.pdfDocumentLoadTime=5e3,t.pdfEventBasedUpdateTime=1500,t.PdfReadingUnitHelper=class{constructor(e,t){this._pdfHostProxy=e,this._telemetryClient=t,this._currentReadingUnit=null,this._pdfPageCount=null,this._accTreeLoadCompleteRequested=new s.EventSource,this._accTreeRequiredUpdateReceivedRequested=new s.EventSource,this._readingUnitRefreshRequested=new s.EventSource,this._pdfHostProxy.readAloudPDFAccTreeLoadComplete().subscribe((()=>{this._accTreeLoaded=!0,this._accTreeLoadCompleteRequested.trigger(void 0)})),this._pdfHostProxy.readAloudPDFRequiredAccTreeUpdateLoadedCommand().subscribe((()=>{this._accTreeRequiredUpdateReceived=!0,this._accTreeRequiredUpdateReceivedRequested.trigger(void 0)})),this._pdfHostProxy.readAloudPDFUpdateReadingUnitCommand().subscribe((()=>{this._updatedAccTreeAvailable=!0,this._readingUnitRefreshRequested.trigger(void 0)})),this._pdfHostProxy.readAloudPDFPageInformationCommand().subscribe((e=>{isNaN(Number(e[0]))||(this._pdfPageCount=Number(e[0]),this._telemetryClient.reportReadOutLoudPDFPageCount(this._pdfPageCount))})),this._pdfHostProxy.readAloudPDFTimeToStartCommand().subscribe((e=>{let t=Number(e[0]);t&&this._pdfPageCount&&this._telemetryClient.reportReadOutLoudPdfTimeToPageRatio(Math.floor(t/this._pdfPageCount))})),this._pdfHostProxy.readAloudPDFStartPageNumberInformationCommand().subscribe((e=>{isNaN(Number(e[0]))||this._telemetryClient.reportReadOutLoudStartPageNumber(n.ContentType.PDF,Number(e[0]))}))}getCurrentUnit(){return this._currentReadingUnit}reset(){this._currentReadingUnit=null,learningToolsPdfReaderHandler.reset()}moveToPreviousUnit(){if(learningToolsPdfReaderHandler){let e=learningToolsPdfReaderHandler.moveToPrevious();return this.createReadingUnitFromJsonString(e)}return null}moveToNextUnit(){if(learningToolsPdfReaderHandler){let e=learningToolsPdfReaderHandler.moveToNext();return this.createReadingUnitFromJsonString(e)}return null}setCurrentUnitTextOffset(e){this._currentReadingUnit.textStartOffset=e}resetCurrentUnitEndOffset(){this._currentReadingUnit.textEndOffset=null}initializeStartParams(e){return new Promise((t=>{if(this._accTreeLoaded||this._accTreeRequiredUpdateReceived)return this.initializeParams(e),t(!0);let i=this._accTreeRequiredUpdateReceivedRequested.subscribe((()=>(i.release(),t(!0)))),o=this._accTreeLoadCompleteRequested.subscribe((()=>(o.release(),t(!0))));this.initializeParams(e)}))}onAccTreeUpdateFromLayoutChangeReceived(){return new Promise((e=>{let i;if(this._updatedAccTreeAvailable)return this.updateReadingUnit(),e(!0);let n=this._readingUnitRefreshRequested.subscribe((()=>(window.clearTimeout(i),e(this.updateReadingUnit()))));i=window.setTimeout((()=>{n.release();let t=this.updateReadingUnit();return t||this._telemetryClient.reportReadOutLoudPdfError(o.ReadAloudPdfErrors.AccessibilityTreeUpdateTimeout),e(t)}),t.pdfEventBasedUpdateTime)}))}requestReadingUnitUpdate(){learningToolsPdfReaderHandler.checkForUpdatedReadingUnit()}createReadingUnitFromJsonString(e){if(e.length>0){let t=JSON.parse(e);return this._currentReadingUnit=new r.PdfReadingUnit(t.contentNodes,t.textStartOffset,0===t.textEndOffset?null:t.textEndOffset),this._currentReadingUnit}return null}updateReadingUnit(){let e=learningToolsPdfReaderHandler.getUpdatedReadingUnit();if(e.length>0){let t=JSON.parse(e);return this._currentReadingUnit.contentNodes=t.contentNodes,this._updatedAccTreeAvailable=!1,!0}return!1}initializeParams(e){let t=learningToolsPdfReaderHandler.initializeStartParams(e),i=Number(t);i&&i<=o.ReadAloudPdfErrors.kMaxValue&&this._telemetryClient.reportReadOutLoudPdfError(i)}}},520:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfReadingHighlighter=void 0;const o=i(467),n=i(190),s=i(508);t.PdfReadingHighlighter=class{constructor(e){this._pdfReadOutLoudViewer=e,this._currentReadingUnit=null,this._currentLineNode=-1,this._currentCumulativeSum=0}setWordDecorationPosition(e,t,i){if(e instanceof o.PdfReadingUnit){let o=e;this._currentReadingUnit!==o&&(this._currentReadingUnit=o),this._currentTextOffset=t+i.charIndex,this._currentTextLength=i.charLength,this._currentLineNode=this.findContentNodeIndex()}}activateDecoration(e){e&n.DecorationType.Background&&this._pdfReadOutLoudViewer.addBackgroundDecoration(),e&n.DecorationType.Line&&this.updateLineDecoration(),e&n.DecorationType.Word&&this.updateWordDecoration()}deactivateDecoration(e){e&n.DecorationType.Word&&this._pdfReadOutLoudViewer.removeWordDecoration(),e&n.DecorationType.Line&&this._pdfReadOutLoudViewer.removeLineDecoration(),e&n.DecorationType.Background&&this._pdfReadOutLoudViewer.removeBackgroundDecoration()}isWordDecorationValid(){if(this._currentReadingUnit){let e=this.findContentNodeIndex();if(e>=0&&ethis._currentTextOffset){i=t,this._currentCumulativeSum=e-n.length;break}return i}wrapRects(e){if((0,s.isPdfReadAloudWithPageTextDataEnabled)())return e;let t=this._pdfReadOutLoudViewer.getViewportRects();if(!t)return null;let i=Math.max(e.top,t.top),o=Math.min(e.bottom,t.bottom),n=Math.max(e.left,t.left),r=Math.min(e.right,t.right);return new DOMRect(n,i,r-n,o-i)}}},218:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfReadingNavigator=void 0;const o=i(157),n=i(926),s=i(770),r=i(525),a=i(508);class d extends o.ReadingNavigator{constructor(e){super(),this._readingUnitHelper=e}initializeAsync(e){let t;return t=e.startType===r.StartType.ReadFromPoint?JSON.stringify({startType:e.startType.toString(),x:e.startPosition.x,y:e.startPosition.y}):JSON.stringify({startType:e.startType.toString()}),this._readingUnitHelper.initializeStartParams(t)}reset(){this._readingUnit=null,this._readingUnitHelper.reset()}moveToPreviousUnitAsync(){return!(0,a.isPdfReadAloudWithPageTextDataEnabled)()&&this._readingUnitHelper instanceof n.PdfReadingUnitHelper?(this._readingUnit=this._readingUnitHelper.moveToPreviousUnit(),this._readingUnit?Promise.resolve(!0):Promise.resolve(!1)):(0,a.isPdfReadAloudWithPageTextDataEnabled)()&&this._readingUnitHelper instanceof s.PdfPageTextReadingUnitHelper?this._readingUnitHelper.moveToPreviousUnit().then((e=>(this._readingUnit=e,!!this._readingUnit))):void 0}moveToNextUnitAsync(){return!(0,a.isPdfReadAloudWithPageTextDataEnabled)()&&this._readingUnitHelper instanceof n.PdfReadingUnitHelper?(this._readingUnit=this._readingUnitHelper.moveToNextUnit(),this._readingUnit?Promise.resolve(!0):Promise.resolve(!1)):(0,a.isPdfReadAloudWithPageTextDataEnabled)()&&this._readingUnitHelper instanceof s.PdfPageTextReadingUnitHelper?this._readingUnitHelper.moveToNextUnit().then((e=>(this._readingUnit=e,!!this._readingUnit))):void 0}getCurrentUnit(){return this._readingUnit}setCurrentUnitTextOffset(e){this._readingUnitHelper.setCurrentUnitTextOffset(e)}resetCurrentUnitEndOffset(){this._readingUnitHelper.resetCurrentUnitEndOffset()}}t.PdfReadingNavigator=d},547:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.REQUEST_PDF_VIEWPORT_INFO=t.REQUEST_PDF_PAGE_COUNT=t.REQUEST_PAGE_TEXT_DATA_ON_NAVIGATION=t.REQUEST_PAGE_TEXT_DATA_INITIAL=void 0,t.REQUEST_PAGE_TEXT_DATA_INITIAL="request-page-text-data-initial",t.REQUEST_PAGE_TEXT_DATA_ON_NAVIGATION="request-page-text-data-on-navigation",t.REQUEST_PDF_PAGE_COUNT="request-pdf-page-count",t.REQUEST_PDF_VIEWPORT_INFO="request-pdf-viewport-info"},508:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSelectionData=t.isRectVisible=t.parseRectData=t.parseStartType=t.isPdfReadAloudWithPageTextDataEnabled=void 0;const o=i(647),n=i(525);t.isPdfReadAloudWithPageTextDataEnabled=function(){return!0===(o.FeatureList.get()&&o.FeatureList.get().isPdfReadAloudWithPageTextDataEnabled())},t.parseStartType=function(e){const t=parseInt(e.trim(),10),i=Object.values(n.StartType).filter((e=>"number"==typeof e)),o=Math.min(...i),s=Math.max(...i);return!isNaN(t)&&t>=o&&t<=s?t:n.StartType.Default},t.parseRectData=function(e){const t=e;return t&&"number"==typeof t.x&&"number"==typeof t.y&&"number"==typeof t.width&&"number"==typeof t.height?new DOMRect(t.x,t.y,t.width,t.height):new DOMRect(0,0,0,0)},t.isRectVisible=function(e,t){return!(e.right<=t.left||e.left>=t.right||e.bottom<=t.top||e.top>=t.bottom)},t.parseSelectionData=function(e){return e&&"number"==typeof e.startPageIndex&&"number"==typeof e.startCharIndex&&"number"==typeof e.endPageIndex&&"number"==typeof e.endCharIndex?0===e.startPageIndex&&0===e.startCharIndex&&0===e.endPageIndex&&0===e.endCharIndex?{selectionStart:{pageIndex:-1,charOffset:-1},selectionEnd:{pageIndex:-1,charOffset:-1},isValid:!1}:{selectionStart:{pageIndex:e.startPageIndex,charOffset:e.startCharIndex},selectionEnd:{pageIndex:e.endPageIndex,charOffset:e.endCharIndex},isValid:!0}:{selectionStart:{pageIndex:-1,charOffset:-1},selectionEnd:{pageIndex:-1,charOffset:-1},isValid:!1}}},158:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfReadOutLoudViewModel=void 0;const o=i(525),n=i(773),s=i(134),r=i(926),a=i(227),d=i(525),l=i(190),u=i(508);class c extends o.ReadOutLoudViewModel{constructor(e,t,i,n,r,a,d){super(e,t,i,a,n),this.onScrollOrZoom=e=>{this.getReadingState()===o.ReadingState.Paused&&this._pdfReadingHighlighter.deactivateDecoration(l.DecorationType.All)},this._readingStateChanged=new s.EventSource,this._readingState=o.ReadingState.Uninitialized,this._pdfReadingHighlighter=t,this._readOutLoudViewer=r,this._readingUnitHelper=d,document.addEventListener("scroll",this.onScrollOrZoom),document.body.addEventListener("zoom",this.onScrollOrZoom),window.addEventListener("resize",this.onScrollOrZoom)}getReadingState(){return this._readingState}readingStateChanged(){return this._readingStateChanged}setReadingState(e){this._readingState!==e&&(this._readingState=e,this._readingStateChanged.trigger(void 0))}onUserActionStarted(e){this.getReadingState()===o.ReadingState.Playing&&(this._continueReadingOnUserActionComplete=!0,e&&this.cancelReading(!1),this._pdfReadingHighlighter.deactivateDecoration(l.DecorationType.WordAndLine))}onUserActionCompleted(e){if(this._continueReadingOnUserActionComplete)if(this.resetReadSelection(),e){let e=this.isReadingPositionValid()?n.UnitDirection.Current:n.UnitDirection.Next;this.continueReading(e,{startType:this.getStartTypeOnUserActionCompleted(),startRequestTime:0,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},!0)}else this.continueReading(n.UnitDirection.Current,null,!1)}addUserActionStartedListener(){return this._readOutLoudViewer.onScrollStart().subscribe((e=>{this.onUserActionStarted(e!==a.ScrollSource.ReadAloud),(0,u.isPdfReadAloudWithPageTextDataEnabled)()||this._readingUnitHelper.requestReadingUnitUpdate()}))}addUserActionCompletedListener(){return this._readOutLoudViewer.onScrollEnd().subscribe((e=>{!(0,u.isPdfReadAloudWithPageTextDataEnabled)()&&this._readingUnitHelper instanceof r.PdfReadingUnitHelper?this._readingUnitHelper.onAccTreeUpdateFromLayoutChangeReceived().then((t=>{t?e===a.ScrollSource.ReadAloud?this._continueReadingOnUserActionComplete=!1:this.onUserActionCompleted(e!==a.ScrollSource.Zoom):this.cancelReading(!1,o.ReadingState.Paused)})):this.onUserActionCompleted(e!==a.ScrollSource.Zoom)}))}isReadingPositionValid(){return this._pdfReadingHighlighter.isWordDecorationValid()}getStartTypeOnUserActionCompleted(){return this.isReadingPositionValid()?d.StartType.Default:d.StartType.ReadFromFirstVisibleElement}}t.PdfReadOutLoudViewModel=c},407:(e,t)=>{var i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.NlxStatus=t.ThemeType=void 0,(o=t.ThemeType||(t.ThemeType={}))[o.Light=0]="Light",o[o.Dark=1]="Dark",(i=t.NlxStatus||(t.NlxStatus={}))[i.Success=0]="Success",i[i.NetworkErrorInternetDisconnected=1]="NetworkErrorInternetDisconnected",i[i.NetworkErrorRetryAfterSometime=2]="NetworkErrorRetryAfterSometime",i[i.NetworkErrorBrowserNeedsToBeUpdated=3]="NetworkErrorBrowserNeedsToBeUpdated",i[i.NetworkErrorUnexpected=4]="NetworkErrorUnexpected",i[i.NetworkErrorUnknown=5]="NetworkErrorUnknown",i[i.LanguageNotSupported=6]="LanguageNotSupported"}},t={};function i(o){var n=t[o];if(void 0!==n)return n.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,i),s.exports}(()=>{let e=new(i(593).PdfLearningToolsRuntime);window.learningToolsRuntime=e})()})();(()=>{"use strict";var t={821:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExtractionResult=void 0;const i=n(990);e.ExtractionResult=class{constructor(t,e,n,o,a){if(null!=t){const e=t.RawNode;this.TitleInHtml=i.StringUtility.KeepSingleSpace(e.textContent),this.TitleInText=i.StringUtility.GetMeaningfulChars(e.textContent)}else this.TitleInHtml="",this.TitleInText="";null!=e&&(this.Direction=o,this.BodyInHtml=e,this.TitleAndBodyText=this.TitleInText+"\n\n"+n,this.TableOfContents=JSON.stringify(a))}}},231:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.VisualizationConfig=void 0,function(t){t[t.none=0]="none",t[t.paragraphNode=1]="paragraphNode",t[t.mainBlockCandidate=2]="mainBlockCandidate",t[t.mainBlock=3]="mainBlock",t[t.logData=4]="logData"}(n||(n={})),e.VisualizationConfig=n},8:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.readProtocol=e.blockReadingModeFlagContent=e.blockReadingModeFlagName=e.readableElementAttribute=void 0,e.readableElementAttribute="edgeReadable",e.blockReadingModeFlagName="IE_RM_OFF",e.blockReadingModeFlagContent="true",e.readProtocol="read://"},804:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BlockInfo=void 0,e.BlockInfo=class{constructor(){this.MaxImageSize=-1,this.LengthOfInnerText=-1,this.LengthOfLinkText=-1,this.LengthOfPlainText=-1,this.LengthOfContent=-1,this.LengthOfImageContent=-1,this.LengthOfUnStableHtml=-1,this.LengthOfSafeText=-1,this.NumberOfBr=-1,this.NumberOfBlockNodes=-1,this.NumberOfParagraph=-1,this.NumberOfChildNodes=-1,this.NumberOfLinkNodes=-1,this.NumberOfImageNodes=-1,this.IsGroupElement=!1}}},280:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DebugUtility=void 0;const i=n(353),o=n(231),a=n(727);class r{static HighlightParagraphs(t){return!(!window.extractionInternal.visualizationConfigLevel||window.extractionInternal.visualizationConfigLevel!==o.VisualizationConfig.paragraphNode||(r.HighlightNodes(t),0))}static HighlightMainBlockCandidateAndAddParagraphInfo(t,e){return!(!window.extractionInternal.visualizationConfigLevel||window.extractionInternal.visualizationConfigLevel!==o.VisualizationConfig.mainBlockCandidate||(r.AddParagraphInfo(e),r.HighlightNodes(t),0))}static HighlightMainBlock(t){return!(!window.extractionInternal.visualizationConfigLevel||window.extractionInternal.visualizationConfigLevel!==o.VisualizationConfig.mainBlock||(r.HighlightNodes([t]),0))}static InitLogData(){r.IsLogDataEnabled()&&(window.extractionInternal.logData={})}static IsVisualizationConfigSetForHighlighting(){return window.extractionInternal.visualizationConfigLevel&&(window.extractionInternal.visualizationConfigLevel===o.VisualizationConfig.mainBlock||window.extractionInternal.visualizationConfigLevel===o.VisualizationConfig.mainBlockCandidate||window.extractionInternal.visualizationConfigLevel===o.VisualizationConfig.paragraphNode)}static LogOriginalTextLength(t){r.IsLogDataEnabled()&&(window.extractionInternal.logData.originalTextLength=a.DocUtility.OutputText$0(t.innerHTML).length)}static LogExtractionData(t,e){r.IsLogDataEnabled()&&(window.extractionInternal.logData.url=t,window.extractionInternal.logData.extractionExperiment=window.extractionInternal.extraction_experiment_version,window.extractionInternal.logData.extractedContentLength=e.TitleAndBodyText?e.TitleAndBodyText.length:0,window.extractionInternal.logData.extractedContent=e.TitleAndBodyText,window.extractionInternal.logData.title=e.TitleInHtml,window.extractionInternal.logData.extractedInnerHtmlLength=e.BodyInHtml.length)}static LogMainBlockData(t,e){r.IsLogDataEnabled()&&(window.extractionInternal.logData.mainBlockScoreOfPlainTextRatio=t.MainBlockInfo.ScoreOfPlainTextRatio,window.extractionInternal.logData.mainBlockScoreOfPosition=t.MainBlockInfo.ScoreOfPosition,window.extractionInternal.logData.mainBlockScoreOfChildrenContent=t.MainBlockInfo.ScoreOfChildrenContent,window.extractionInternal.logData.mainBlockScore=t.MainBlockInfo.Score,window.extractionInternal.logData.mainBlockTextLength=t.BlockInfo.LengthOfInnerText,r.LogParagraphText(e),r.LogImageData(e))}static IsLogDataEnabled(){return window.extractionInternal.visualizationConfigLevel&&window.extractionInternal.visualizationConfigLevel===o.VisualizationConfig.logData}static HighlightNodes(t){null!=t&&0!==t.length&&t.forEach((function(t,e,n){i.NodeUtility.IsElementNode(t)?(t.RawNode.style.backgroundColor="#FDFF47",t.RawNode.style.outline="#f00 solid 3px"):t.Parent&&(t.Parent.RawNode.style.backgroundColor="#FDFF47",t.Parent.RawNode.style.outline="#f00 solid 3px")}))}static AddParagraphInfo(t){null!=t&&0!==t.length&&t.forEach((function(t,e,n){i.NodeUtility.IsElementNode(t)?t.RawNode.setAttribute("IndexOfBlockNode",t.NodeInfo.IndexOfBlockNode.toString()):t.Parent&&t.Parent.RawNode.setAttribute("IndexOfBlockNode",t.NodeInfo.IndexOfBlockNode.toString())}))}static LogParagraphText(t){const e=[];a.DocUtility.Travel(t,(t=>!(i.NodeUtility.IsTagEqualTo(t,"p")&&t.InnerText.length>0&&(e.push(t.InnerText.replace(/\s+/g," ").substr(0,100)),1))),null),window.extractionInternal.logData.paraText=e}static LogImageData(t){const e=[];a.DocUtility.Travel(t,(t=>!i.NodeUtility.IsNodeWithImgTag(t)||(e.push(t.Src),!1)),null),window.extractionInternal.logData.imageUrls=e}}e.DebugUtility=r},727:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DocUtility=void 0;const i=n(32),o=n(353),a=n(139),r=n(274),l=n(494),s=n(990),c=n(499),u=n(8),d=n(280),f=n(785);class h{static Travel(t,e,n){null!=t&&(null!=e&&!1===e(t)||(null!=t.Children&&t.Children.forEach((function(t,i,o){h.Travel(t,e,n)})),null!=n&&n(t)))}static RightestChild(t){let e=t;for(;null!=e&&null!=e.Children&&e.Children.length>0;)e=e.Children[e.Children.length-1];return e}static LoadDebugHtml_OutputContentLength(t){return null}static UpdateNodeInfo(t){let e=0,n=0,i=0,l=0,s=0,c=0,u=0,d=0,f=0,g=0,I=0;h.Travel(t,(function(t){return t.NodeInfo.FontSize=h.GetFontSize(t),t.NodeInfo.IsNodePositionAbsoluteOrFix=o.NodeUtility.IsNodePositionAbsuluteOrFix(t),o.NodeUtility.IsLinkNode(t)&&(++c,++f),++e,-1===a.TagConfig.NonLevelTag.indexOf(t.TagName)&&++d,o.NodeUtility.IsTextNode(t)&&(++n,g+=t.InnerTextLength,0===f&&(++i,I+=t.InnerTextLength)),o.NodeUtility.IsBlockNode(t)&&++l,t.IsTagEqualTo("br")&&++s,o.NodeUtility.IsImageNode(t)&&(t.ImageInfo=r.ImageUtility.GetImageInfo(t),++u),t.NodeInfo.Index=e,t.NodeInfo.IndexOfTextNode=n,t.NodeInfo.IndexOfPlainTextNode=i,t.NodeInfo.IndexOfBlockNode=l,t.NodeInfo.IndexOfBr=s,t.NodeInfo.IndexOfLinkNode=c,t.NodeInfo.IndexOfImageNode=u,t.NodeInfo.LinkLevel=f,t.NodeInfo.PositionOfText=g,t.NodeInfo.PositionOfPlainText=I,t.NodeInfo.Level=d,!0}),(function(t){return o.NodeUtility.IsLinkNode(t)&&--f,-1===a.TagConfig.NonLevelTag.indexOf(t.TagName)&&--d,!0}))}static UpdateBlockInfo(t){h.Travel(t,null,(function(t){if(t.BlockInfo.LengthOfInnerText=0,t.BlockInfo.LengthOfLinkText=0,t.BlockInfo.LengthOfPlainText=0,t.BlockInfo.LengthOfContent=0,t.BlockInfo.LengthOfImageContent=0,t.BlockInfo.LengthOfUnStableHtml=0,t.BlockInfo.LengthOfSafeText=0,t.BlockInfo.NumberOfBr=0,t.BlockInfo.NumberOfBlockNodes=0,t.BlockInfo.NumberOfParagraph=0,t.BlockInfo.NumberOfChildNodes=0,t.BlockInfo.NumberOfLinkNodes=0,t.BlockInfo.NumberOfImageNodes=0,t.BlockInfo.MaxImageSize=0,o.NodeUtility.IsTextNode(t))t.BlockInfo.LengthOfInnerText=t.InnerTextLength,t.BlockInfo.LengthOfLinkText=o.NodeUtility.IsLinkChildNode(t)?t.InnerTextLength:0,t.BlockInfo.LengthOfContent=t.InnerTextLength;else if(null!=t.Children&&t.Children.length>0)for(let e=0,n=t.Children.length;e0){const t=o.NodeUtility.GetAttribute(e[0],"href");let n;try{n=new URL(t)}catch(t){return null}if("http:"===n.protocol||"https:"===n.protocol)return t}return null}static IsMediaWikiBasePage(t,e){return!1}static FirstBlockParent(t){for(;null!=t&&-1===a.TagConfig.BlockTags.indexOf(t.TagName);)t=t.Parent;return t}static GetExtractedText(t,e){return null}static OutputText$0(t){if(s.StringUtility.IsNullOrWhiteSpace(t))return"";const e=document.createElement("div");return e.innerHTML=t,h.OutputText$1(e)}static OutputText$1(t){let e="",n=!1;const i=["div","p","li","td","br","h1","h2","h3"];return h.TravelOnRawNode(t,(function(t){return null!=t&&(t.nodeType===Node.TEXT_NODE&&!1===s.StringUtility.IsNullOrEmpty(t.textContent)&&(e+=t.textContent,n=!1),t.nodeType===Node.ELEMENT_NODE&&"script"!==t.nodeName.toLowerCase())}),(function(t){return!1===s.StringUtility.IsNullOrEmpty(t.nodeName)&&-1!==i.indexOf(t.nodeName.toLowerCase())&&(n||(e+="\n",n=!0)),!0})),e}static GetFontSize(t){let e=o.NodeUtility.GetStyle$1(t,"font-size");const n=null==t.Parent?a.TagConfig.DefaultFontSize:t.Parent.NodeInfo.FontSize;let i=a.TagConfig.DefaultFontSize;if(a.TagConfig.TagFontSize.hasOwnProperty(t.TagName))return a.TagConfig.TagFontSize[t.TagName];if(s.StringUtility.IsNullOrEmpty(e))return n;switch(e=e.toUpperCase(),e){case"XX-SMALL":e="12PX";break;case"X-SMALL":e="15PX";break;case"SMALL":e="18PX";break;case"MEDIUM":e="20PX";break;case"LARGE":e="24PX";break;case"X-LARGE":e="30PX";break;case"XX-LARGE":e="40PX";break;case"LARGER":e=Math.round(1.2*n)+"PX";break;case"SMALLER":e=Math.round(.8*n)+"PX"}if(e.indexOf("%")>=0){const t=e.replace("%","");isNaN(parseInt(t))||(i=Number(t)*n/100)}else if(e.indexOf("EM")>=0){const t=e.replace("EM","");isNaN(parseInt(t))||Number(t)<1e3&&(i=Number(t)*n)}else if(e.indexOf("PT")>=0){const t=e.replace("PT","");isNaN(parseInt(t))||(i=Number(t))}else if(e.indexOf("PX")>=0){const t=e.replace("PX","");isNaN(parseInt(t))||(i=Number(t))}else i=a.TagConfig.DefaultFontSize;return(i<0||i>1e3)&&(i=a.TagConfig.DefaultFontSize),i}static GetMainBlockCandidates(t){const e=[];if(null==t||t.length<2)return e;const n={};for(let e=0;e5)}static CommonRootOf2(t,e){const n=[];for(;null!=t;)-1===n.indexOf(t.NodeInfo.Index)&&n.push(t.NodeInfo.Index),t=t.Parent;for(;null!=e&&-1===n.indexOf(e.NodeInfo.Index);)e=e.Parent;return e}static GetNodesByTagName(t,e){const n=[];return h.Travel(t,(function(t){return t.IsTagEqualTo(e)&&n.push(t),!0}),null),n}static GetNodeList(t){const e=[];return h.Travel(t,(function(t){return e.push(t),!0}),null),e}static RemoveComment(t){const e=[];h.TravelOnRawNode(t,(function(t){return!(t.nodeType===Node.COMMENT_NODE&&null!=t.parentNode||t.nodeType===Node.ELEMENT_NODE&&a.TagConfig.IsNonContentTag(t.nodeName.toLowerCase())||t.nodeType===Node.ELEMENT_NODE&&"iframe"===t.nodeName.toLowerCase()&&!a.TagConfig.IsYoutubeIframe(t))||(e.push(t),!1)}),null);for(const t of e)t.parentNode&&t.parentNode.removeChild(t);return t}static TravelOnRawNode(t,e,n){if(null!=t&&(null==e||!1!==e(t))){if(t.hasChildNodes()){const i=t.childNodes;for(const t of i)h.TravelOnRawNode(t,e,n)}null!=n&&n(t)}}static ParseWithInnerHtml(t){const e=document.implementation.createHTMLDocument("");return e.documentElement.innerHTML=t,this.ParseWithDocument(e)}static ParseWithDocument(t){let e=t.querySelector("body");if(null==e)return null;if(e=h.RemoveComment(e),null==e)return null;d.DebugUtility.LogOriginalTextLength(e);const n=h.Wrap(e,null);return h.UpdateInnerTextLength(n),n}static UpdateInnerTextLength(t){h.Travel(t,null,(t=>(null!=t.Children&&t.Children.length>0?t.Children.forEach((function(e,n,i){t.InnerTextLength+=e.InnerTextLength})):t.InnerTextLength=t.IsTextNode?t.InnerText.length:0,!0)))}static Wrap(t,e){const n=new i.WrappedNode(t);if(n.Parent=e,o.NodeUtility.IsNodeInvisible(n))return null;if(a.TagConfig.IsRiskyNodeByTagNameAndAttribute(n))return null;const r=n.Children,l=[];return window.extractionInternal.extraction_experiment_version&f.ExtractionExperimentVersion.ExtractShadowDom&&t instanceof HTMLElement&&null!==t.shadowRoot&&l.push(...t.shadowRoot.childNodes),t.hasChildNodes()&&l.push(...t.childNodes),l.forEach((t=>{const e=h.Wrap(t,n);null!=e&&r.push(e)})),o.NodeUtility.IsEmptyNode(n)?null:n}static GetImageParent(t){let e=t;for(;null!=e&&!e.IsTagEqualTo("figure");)e=e.Parent;if(null==e)for(e=t.Parent;null!=e;){if(e.BlockInfo.LengthOfInnerText>l.Magic.SmallContentLength||e.BlockInfo.NumberOfImageNodes>1){e=null;break}if(e.BlockInfo.LengthOfInnerText>0){const n=h.GetTextLevel(e);(-1===n||Math.abs(n-t.NodeInfo.Level)>3&&e.BlockInfo.NumberOfBlockNodes>4)&&(e=null);break}e=e.Parent}return e}static GetParagraphList(t){const e=[];return h.Travel(t,(t=>{if(o.NodeUtility.IsImageNode(t)||o.NodeUtility.IsTextNode(t)||t.BlockInfo.IsGroupElement){const n=o.NodeUtility.IsTextNode(t)?t.Parent:t;return e.push(n),!1}return"section"===t.TagName&&e.push(t),!0}),null),e}static GetTextLevel(t,e=!0){const n={};if(null==t)return 0;if(h.Travel(t,(function(t){const i=e?t.BlockInfo.LengthOfPlainText:t.BlockInfo.LengthOfInnerText;return t.IsTextNode&&i>0&&(n.hasOwnProperty(String(t.NodeInfo.Level))||(n[String(t.NodeInfo.Level)]=0),n[String(t.NodeInfo.Level)]+=i),!0}),null),0===Object.keys(n).length)return-1;let i,o=0;for(const t in n)n.hasOwnProperty(t)&&n[t]>o&&(o=n[t],i=t);return Number(i)}static CloneNode(t){const e=t.RawNode.cloneNode(!1);return o.NodeUtility.IsElementNode(t)&&(s.StringUtility.IsNullOrEmpty(e.getAttribute("style")||"")||e.removeAttribute("style")),e}static Clone(t){return null}static UpdateUrlFromRelativeToAbsolute(t,e){null!=e&&h.Travel(t,(function(t){if(t.IsTagEqualTo("a")&&o.NodeUtility.GetAttribute(t.RawNode,"href")){const n=s.StringUtility.UrlFromRelative2Absolute(e,t.Href);t.Href=n,t.RawNode.setAttribute("href",n)}else if(o.NodeUtility.IsNodeWithImgTag(t)){if(!s.StringUtility.IsNullOrEmpty(t.RawNode.getAttribute("src")||"")){const n=s.StringUtility.UrlFromRelative2Absolute(e,t.Src);t.Src=n,t.RawNode.setAttribute("src",n)}if(!s.StringUtility.IsNullOrEmpty(t.RawNode.getAttribute("srcset"))){const n=t.RawNode.getAttribute("srcset").split(",");let i="";n.forEach((t=>{const n=t.trim().split(/\s+/),o=n[0],a=2===n.length?n[1]:"";i+=s.StringUtility.UrlFromRelative2Absolute(e,o),i+=" ",i+=a,i+=", "})),t.RawNode.setAttribute("srcset",i)}}return!0}),null)}static Trim(t,e){let n=h.DoTrim(t,e);if(null==n)return null;for(;1===n.Children.length;)n=n.Children[0];return n}static DoTrim(t,e){const n=e(t);if(-1===n)return null;if(1===n)return t;let i;const o=[];for(const n of t.Children){const a=h.DoTrim(n,e);null!=a&&(o.push(a),i=t)}return t.Children=[].concat(o),i}static UpdateInnerText(t){h.Travel(t,null,(t=>{if(t.HasInnerTextCalculated)return!0;let e="";return null!=t.Children&&t.Children.length>0?(t.Children.forEach((function(t,n,i){e+=t.InnerText+" "})),e=s.StringUtility.GetMeaningfulChars(e)):t.IsTextNode&&(e=s.StringUtility.GetMeaningfulChars(t.RawNode.textContent)),t.InnerText=e,!0}))}static CleanStyle(t){h.Travel(t,(t=>(s.StringUtility.IsNullOrEmpty(o.NodeUtility.GetAttribute(t.RawNode,"style"))||t.RawNode.removeAttribute("style"),!0)),null)}static FirstLinkNode(t){for(;null!=t&&"a"!==t.TagName;)t=t.Parent;return t}static GetTextDirection(t){return null!=t.getElementsByTagName("html")[0].getAttribute("dir")?t.getElementsByTagName("html")[0].getAttribute("dir"):0!==t.getElementsByTagName("body").length&&null!=t.getElementsByTagName("body")[0].getAttribute("dir")?t.getElementsByTagName("body")[0].getAttribute("dir"):"auto"}static IsElementWithAttributePresent(t,e){return null!=t.querySelector(`[${e}]`)}static GetAllElementsWithAttribute(t,e){return t.querySelectorAll(`[${e}]`)}static IsBlockReadingModeFlagPresent(t){return null!==t.querySelector(`meta[name="${u.blockReadingModeFlagName}"][content="${u.blockReadingModeFlagContent}"]`)}static GetSmallButtonImagesParent(t,e){if(null==t||null==t||0===t.length)return[];const n=[];t.forEach((function(t,e,i){const o=h.FirstLinkNode(t);null!=o&&o.BlockInfo.LengthOfInnerText<20&&o.BlockInfo.MaxImageSize<1e4&&n.push(o)}));const i=[];for(let t=0;t1&&t.BlockInfo.NumberOfLinkNodes>1&&t.BlockInfo.LengthOfInnerText<50){let n=t;for(;n.Parent!==e&&n.Parent.BlockInfo.MaxImageSize<1e4&&(n.Parent.BlockInfo.LengthOfInnerText<50||n.Parent.BlockInfo.NumberOfBlockNodes>n.BlockInfo.NumberOfBlockNodes+10&&n.Parent.BlockInfo.LengthOfLinkText>2*n.BlockInfo.LengthOfLinkText&&2*n.Parent.BlockInfo.LengthOfInnerText{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ExtractionExperimentVersion=void 0,(n=e.ExtractionExperimentVersion||(e.ExtractionExperimentVersion={}))[n.Original=0]="Original",n[n.RiskyTagAuthorIconAd=1]="RiskyTagAuthorIconAd",n[n.LoadErrorFix=2]="LoadErrorFix",n[n.RiskyTagExclusionList=4]="RiskyTagExclusionList",n[n.ExtractShadowDom=8]="ExtractShadowDom"},472:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ImageInfo=void 0,e.ImageInfo=class{}},274:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ImageUtility=void 0;const i=n(472),o=n(727),a=n(353),r=n(990);class l{static UpdateGuidImageSrc(t){const e={};return o.DocUtility.TravelOnRawNode(t,(function(t){return null!=t&&(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_NODE)&&"script"!==t.nodeName.toLowerCase()}),(function(t){if(t.nodeType===Node.ELEMENT_NODE&&a.NodeUtility.IsHtmlNodeWithImgTag(t)){const n=a.NodeUtility.GetAttribute(t,"src");if(!r.StringUtility.IsNullOrWhiteSpace(n)){let i=l.generateUUID();for(;e.hasOwnProperty(i);)i=l.generateUUID();e[i]=n,t.setAttribute("src",i)}}return!0})),e}static generateUUID(){let t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:3&n|8).toString(16)}))}static GetImageInfo(t){let e,n,o;return e=a.NodeUtility.GetStyle$1(t,"width").toUpperCase().replace("PT","").replace("PX",""),n=a.NodeUtility.GetStyle$1(t,"height").toUpperCase().replace("PT","").replace("PX",""),isNaN(parseInt(e))||isNaN(parseInt(n))?(e=a.NodeUtility.GetAttribute(t.RawNode,"width"),n=a.NodeUtility.GetAttribute(t.RawNode,"height"),isNaN(parseInt(e))||isNaN(parseInt(n))?(e=a.NodeUtility.GetAttribute(t.RawNode,"data-width"),n=a.NodeUtility.GetAttribute(t.RawNode,"data-height"),isNaN(parseInt(e))||isNaN(parseInt(n))?null:(o=new i.ImageInfo,o.Width=Number(e),o.Height=Number(n),o)):(o=new i.ImageInfo,o.Width=Number(e),o.Height=Number(n),o)):(o=new i.ImageInfo,o.Width=Number(e),o.Height=Number(n),o)}static IsBigImage(t){return!1}static IsSmallImage(t){return!(t.Width>250||t.Height>250)}static IsEmptyImage(t){return!!(null!=t.ImageInfo&&t.ImageInfo.Height>100&&t.ImageInfo.Width>100&&r.StringUtility.StartsWith(t.Src.toUpperCase(),"DATA:IMAGE")&&t.Src.length<100)}}e.ImageUtility=l},494:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Magic=void 0;class n{}e.Magic=n,n.SmallContentRatio=.1,n.BigContentRatio=.5,n.MinTitleTextLength=3,n.MaxTitleTextLength=300,n.MaxTitleValidTextLength=200,n.MaxParagraphPlainTextRatio=.3,n.PageTextLength=800,n.MinScoreOfPosition=.4,n.MaxLengthForInnerPlanText=2e3,n.SmallContentLength=1e3,n.MaxLinkHrefAsContentLength=0,n.MaxChildrenContentLength=2e3,n.MinImageSizeOutOfMainBlock=300,n.MinImageSizeInsideOfMainBlock=150,n.MinMainBlockPlainTextLength=250,n.MinSmallMainBlockImageSize=4e4,n.MinBigMainBlockImageSize=6e4,n.MaxMainBlockCandidateNum=10,n.ContentEndWords=["VOTES:","RELATED STORIES:","RELATED ARTICLES:","MORE ON","RELATED POSTS","SUBSCRIBE NOW"],n.EnglishPunctuations=["!",'"',"#","%","&","'","(",")","*",",","-",".","/",":",";","?","@","[","\\","]","_","{","}"],n.CopyRightWords=["ALL RIGHTS RESERVED","COPYRIGHT","©","©"],n.NoiseWordList=["BY","EMAIL","PRINT"],n.EnlargeTextList=["ENLARGE","LAUNCH","VIEWER"],n.MonthNameList=["JANUARY","JAN","FEBRUARY","FEB","MARCH","MAR","APRIL","APR","MAY","MAY","JUNE","JUN","JULY","JUL","AUGUST","AUG","SEPTEMBER","SEP","OCTOBER","OCT","NOVEMBER","NOV","DECEMBER","DEC"],n.DayNameList=["MONDAY","MON","TUESDAY","TUES","WEDNESDAY","WEDS","THURSDAY","THURS","FRIDAY","FRI","SATURDAY","SAT","SUNDAY","SUN"]},73:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MainBlockChildInfo=void 0,e.MainBlockChildInfo=class{constructor(){this.Score=-1,this.UnStableScore=-1,this.ContentLength=-1,this.ContentLengthWithImage=-1,this.HtmlLength=-1,this.PositiveHtmlLengthAsHeader=-1,this.IsPositive=!1}}},855:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MainBlockInfo=void 0,e.MainBlockInfo=class{constructor(){this.ScoreOfPlainTextRatio=-1,this.ScoreOfPosition=-1,this.ScoreOfBlock=-1,this.ScoreOfPlainText2HtmlRatio=-1,this.MaxChildrenContentLength=-1,this.Score=-1,this.ScoreOfChildrenContent=-1}}},499:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MainBlockUtility=void 0;const i=n(990),o=n(727),a=n(353),r=n(494),l=n(32),s=n(139),c=n(274);class u{static FilterMainBlocks(t,e){let n=[];if(n=n.concat(t),null!=e&&e.length>0){let t=Number.MAX_VALUE;e.forEach((function(e,n,i){e.NodeInfo.Indext&&i.push(e)})),n=i}if(n.length>1&&a.NodeUtility.IsParentChild(n[0],n[1])){const t=n[0];2*t.BlockInfo.LengthOfLinkText>t.BlockInfo.LengthOfPlainText&&t.BlockInfo.NumberOfBlockNodes>50&&t.BlockInfo.LengthOfContent/t.BlockInfo.NumberOfBlockNodes<10&&n.splice(n.indexOf(t),1)}return n}static SelectHighScoreMainBlock(t){if(null==t||0===t.length)return null;let e=t[0];const n=Math.min(t.length,r.Magic.MaxMainBlockCandidateNum);for(let i=1;it[0].MainBlockInfo.ScoreOfPosition&&t[i].NodeInfo.Indexr.Magic.PageTextLength&&(1===i&&!a.NodeUtility.IsParentChild(t[i],t[0])||t[0].MainBlockInfo.Score/t[i].MainBlockInfo.Score<10&&t[i].BlockInfo.NumberOfChildNodes<200&&t[i].BlockInfo.LengthOfUnStableHtml/(t[i].BlockInfo.LengthOfPlainText+1)<1&&a.NodeUtility.IsParentOfMultipleGoodChildren(t,i,n))){e=t[i];break}return e}static TrimNoiseChildren(t,e){if(null==t)return null;let n=u.GetNoiseChildrenInMainBlock(t,e);const i=[];return n.forEach((function(t,n,o){null!=e&&(a.NodeUtility.IsParentChild(e,t)||a.NodeUtility.IsParentChild(t,e))||i.push(t)})),n=i,o.DocUtility.Trim(t,(e=>-1!==n.indexOf(e)&&e!==t?-1:null!=e.Children&&e.Children.length>0?0:1))}static TrimNonMainContentBody(t,e,n,i,r){if(null==t)return null;t.ResultType=l.ResultType.Content;const s=[];i.forEach((function(t,n,i){null!=e&&(a.NodeUtility.IsParentChild(e,t)||a.NodeUtility.IsParentChild(t,e))||s.push(t)})),(i=s).forEach((function(t,e,n){t.ResultType=l.ResultType.ContentBetweenTitleAndMainBlock})),r.forEach((function(t,e,n){t.ResultType=l.ResultType.ImageContentOutOfMainBlock}));const c=o.DocUtility.Trim(n,(t=>t.ResultType>l.ResultType.None?1:t.ResultType0?0:-1));return this.TrimExtractedNodesFromMainBody([l.ResultType.Title],c)}static TrimExtractedNodesFromMainBody(t,e){return o.DocUtility.Trim(e,(e=>{let n;for(n of t)if(e.ResultType===n)return-1;return e.Children.length>0?0:1}))}static UpdateMainBlockCandidatesInfo(t){for(const e of t){const t=o.DocUtility.RightestChild(e);e.MainBlockInfo.ScoreOfPlainTextRatio=1-1*e.BlockInfo.LengthOfLinkText/(e.BlockInfo.LengthOfInnerText+1),e.MainBlockInfo.ScoreOfPosition=1*e.BlockInfo.LengthOfPlainText/(t.NodeInfo.PositionOfPlainText+1),u.UpdateMainBlockChildInfoOfChildren(e),e.MainBlockInfo.ScoreOfChildrenContent=u.GetScoreOfChildrenContent(e),e.MainBlockInfo.Score=1*e.MainBlockInfo.ScoreOfPlainTextRatio*e.MainBlockInfo.ScoreOfPosition*e.MainBlockInfo.ScoreOfChildrenContent}}static UpdateMainBlockChildInfoOfChildren(t){for(const e of t.Children)0!==e.BlockInfo.LengthOfInnerText||0!==e.BlockInfo.NumberOfImageNodes?(e.MainBlockChildInfo.Score=u.GetMainBlockChildInfoStableScore(e),e.MainBlockChildInfo.UnStableScore=u.GetMainBlockChildInfoScore(e)):(e.MainBlockChildInfo.Score=-1,e.MainBlockChildInfo.UnStableScore=-1)}static GetScoreOfChildrenContent(t){let e=0;if(null!=t&&null!=t.Children&&t.Children.length>0){const n=u.GetMaxChildrenValidContentLength(t);for(const i of t.Children){const t=Math.min(i.BlockInfo.LengthOfContent,n);e+=Math.min(i.BlockInfo.LengthOfPlainText,n)*t/Math.max(a.NodeUtility.GetHtmlLength(i),t+1)}}return e}static GetMaxChildrenValidContentLength(t){let e=.1*r.Magic.MaxChildrenContentLength,n=[];t.Children.forEach((function(t,e,i){t.MainBlockChildInfo.UnStableScore>.3&&n.push(t.BlockInfo.LengthOfContent)}));const i=[];if(t.Children.forEach((function(t,e,n){t.MainBlockChildInfo.UnStableScore>0&&t.MainBlockChildInfo.UnStableScore<.3&&i.push(t.BlockInfo.LengthOfContent)})),n.length>0&&i.length>0&&2*n.reduce((function(t,e){return t+e}),0)1)if(n.sort((function(t,e){return e-t})),e=n.slice(0,2).reduce((function(t,e){return t+e}),0)/2,n[1]>800){const t=i.reduce((function(t,e){return t+e}),0),o=n.reduce((function(t,e){return t+e}),0);e=1*o/(t+o)*n[0]}else e>r.Magic.MaxChildrenContentLength&&n[0]>5*n[1]&&(e=r.Magic.MaxChildrenContentLength);return t.MainBlockInfo.MaxChildrenContentLength=Number(e),Number(e)}static IsGroupElement(t,e){const n=t.TagName;let i=0,a=0,l=0;return-1!==s.TagConfig.GroupElementTags.indexOf(n)&&(o.DocUtility.Travel(t,(t=>{const e=t.TagName;return-1!==s.TagConfig.BlockTags.indexOf(e)&&("td"===e&&++l,"li"===e&&++a,++i),!0}),null),!("table"===n&&1.2*l.5*r.Magic.MinMainBlockPlainTextLength||t.InnerHtml.length>r.Magic.BigContentRatio*e||("ul"===n||"ol"===n||"dl"===n)&&5*a1e4||t.InnerHtml.length>r.Magic.BigContentRatio*e||"p"===n&&i>2))}static GetNoiseChildrenInMainBlock(t,e){if(null==t||null==t.Children||1===t.Children.length)return[];const n=t.Children,i=u.GetMostFrequencyTagOfChildren(t);u.CalculatePositiveHtmlAsHeader(t,i);const o=[],a=u.GetIndexOfWorstChild(n);return u.ChildrenAfterWorstChildTrimable(n,a)&&n.forEach((function(t,e,n){e>=a&&o.push(t)})),u.GetNoiseActionLinks(t).forEach((function(t,e,n){o.push(t)})),u.GetNoiseChildrenByTag(n,t).forEach((function(t,e,n){o.push(t)})),u.GetNoiseContentBeforeTitle(e,n,a,t).forEach((function(t,e,n){o.push(t)})),u.GetNoiseContentInChildrenByScore(t,n,i).forEach((function(t,e,n){o.push(t)})),u.GetFloatNoiseNodes(t).forEach((function(t,e,n){o.push(t)})),u.GetEmptyListChild(t).forEach((function(t,e,n){o.push(t)})),u.GetContentEnd(t,o).forEach((function(t,e,n){o.push(t)})),u.GetNoiseInBigImageChild(t).forEach((function(t,e,n){o.push(t)})),u.GetSpecialParagraph(t,e,i).forEach((function(t,e,n){o.push(t)})),u.GetAdvertisementChild(t).forEach((function(t,e,n){o.push(t)})),o}static GetNoiseActionLinks(t){const e=[],n=[];if(o.DocUtility.Travel(t,(t=>("a"===t.TagName&&a.NodeUtility.IsActionLink(t)&&n.push(t),!0)),null),0===n.length)return e;if(n.length>1)for(let t=0;t!(n.InnerTextLength>20||a.NodeUtility.IsSmallPureTextParagraph(n))||!u.IsContentBetweenTitleAndMainBlock(n,e,t)||(l.push(n),!1)),null),l.forEach((function(i,o,r){for(;null!=i&&null!=i.Parent;){if(a.NodeUtility.IsParentChild(i.Parent,t)||a.NodeUtility.IsParentChild(i.Parent,e)){n.push(i);break}i=i.Parent}}));const s=[];return n.forEach((function(t,e,n){if(t.MainBlockChildInfo.Score>=0&&t.MainBlockChildInfo.Score<.2||i.StringUtility.IsDateOrAuthorString(t.InnerText))return;const o=i.StringUtility.GetPunctuationAndDigitNum(t.InnerText);4*(t.BlockInfo.LengthOfLinkText+o)>t.BlockInfo.LengthOfPlainText||s.push(t)})),n=s,n}static RecallImageBeforeMainBlock(t,e,n){const l=[];if(null==t||null==e)return l;let s=n;const c=Math.max(t.NodeInfo.PositionOfPlainText-r.Magic.SmallContentLength,0),d=e.NodeInfo.PositionOfPlainText,f=[],h=s;o.DocUtility.Travel(s,(n=>{if(n.NodeInfo.PositionOfPlainText>d)return!1;if(!a.NodeUtility.IsNodeWithImgTag(n)||n.NodeInfo.PositionOfPlainText10&&r.InnerTextLength<250&&(r.BlockInfo.LengthOfLinkText+r.InnerText.split("").filter((t=>i.StringUtility.IsEnglishPunctuation(t)||i.StringUtility.isNumeric(t))).length)/(r.InnerTextLength+.1)<.05){let t=0,e=!0;o.DocUtility.Travel(r,(n=>n.Children.length>3?(e=!1,!1):(t+=n.Children.length,!0)),null),e&&t<10&&f.push(n)}}return!0}),null);for(let n=0,i=f.length;ne.NodeInfo.Index?t:null}static IsNearBefore(t,e){return!(e.NodeInfo.Index-t.NodeInfo.Index>30||e.NodeInfo.IndexOfBlockNode-t.NodeInfo.IndexOfBlockNode>5)}static IsGoodImageParent(t,e,n){return!(t.MainBlockChildInfo.Score<.3||u.IsNoiseChildWithLink(t,"",!1)||i.StringUtility.IsDateOrAuthorString(t.InnerText)||a.NodeUtility.IsParentChild(t,e)||a.NodeUtility.IsParentChild(t,n))}static GetMostFrequencyTagOfChildren(t){const e=t.Children,n={};for(let t=0,i=e.length;t.3){const i=e[t].TagName;n.hasOwnProperty(i)||(n[i]=0),n[i]+=1}let i=-1,o="";for(const t of Object.keys(n))n[t]>i&&(i=n[t],o=t);return o}static CalculatePositiveHtmlAsHeader(t,e){const n=t.Children;let i=0;for(let t=n.length-1;t>=0;--t){const o=n[t].TagName,a=n[t].MainBlockChildInfo.Score;a<0?n[t].MainBlockChildInfo.PositiveHtmlLengthAsHeader=i:-1===s.TagConfig.SafeTags.indexOf(o)?((-1!==s.TagConfig.GroupElementTags.indexOf(o)||o===e)&&a<.1||-1===s.TagConfig.GroupElementTags.indexOf(o)&&o!==e&&a<.3||a<.01?n[t].BlockInfo.NumberOfImageNodes>4||n[t].BlockInfo.LengthOfLinkText>0?(i-=1-a,n[t].MainBlockChildInfo.IsPositive=!1):(n[t].MainBlockChildInfo.Score=.001,i+=.001,n[t].MainBlockChildInfo.IsPositive=!0):t=e&&(i+=t[o].BlockInfo.LengthOfPlainText));return t[e].MainBlockChildInfo.PositiveHtmlLengthAsHeader<0&&1*i/n<.7}static GetNoiseContentBeforeTitle(t,e,n,i){const o=[];for(let i=0;i<=n;++i)null!=t&&e[i].NodeInfo.Index=0&&e[i].MainBlockChildInfo.Score<=.1&&o.push(e[i]);let a=0;return o.forEach((function(t,e,n){a+=t.BlockInfo.LengthOfPlainText})),2*a"ul"!==t.TagName&&"ol"!==t.TagName||(0===t.BlockInfo.LengthOfInnerText&&0===t.BlockInfo.NumberOfImageNodes&&e.push(t),!1)),null),e}static GetAdvertisementChild(t){const e=[];return o.DocUtility.Travel(t,(t=>!a.NodeUtility.IsAdvertisementNode(t)||(e.push(t),!1)),null),e}static GetFloatNoiseNodes(t){const e=[];return o.DocUtility.Travel(t,(n=>!(n.NodeInfo.IsNodePositionAbsoluteOrFix&&3*n.InnerTextLength0;--t){const n=o[t];if(n.BlockInfo.LengthOfInnerText>=5&&-1===e.indexOf(n)&&(a.push(n),a.length>=2))break}return a.forEach((function(e,a,r){if(i.StringUtility.ContainEndWord(e.InnerText)&&4*e.BlockInfo.LengthOfInnerTextt.BlockInfo.LengthOfInnerText&&(n=[])}})),n}static GetNoiseInBigImageChild(t){let e=[],n=o.DocUtility.GetNodesByTagName(t,"img");const r=o.DocUtility.GetSmallButtonImagesParent(n,t);e=e.concat(r);const l=[];n.forEach((function(t,e,n){let i=!1;r.forEach((function(e,n,o){a.NodeUtility.IsParentChild(e,t)&&(i=!0)})),!1===i&&l.push(t)})),n=l;for(const a of n){let n=a,r=null;for(;n.Parent!==t;)n=n.Parent;if(null!=a.ImageInfo&&c.ImageUtility.IsSmallImage(a.ImageInfo)&&n.BlockInfo.MaxImageSize>5*a.BlockInfo.MaxImageSize||i.StringUtility.IsEnlargeText(n.InnerText)||c.ImageUtility.IsEmptyImage(a)){e=e.concat(u.GetTrimNodes(a,null,t));continue}const l=o.DocUtility.GetImageParent(a);null!=l&&i.StringUtility.IsEnlargeText(l.InnerText)&&(e=e.concat(u.GetTrimNodes(l,a,t))),(n.MainBlockChildInfo.Score<0||n.MainBlockChildInfo.Score>.3)&&(0===n.BlockInfo.NumberOfLinkNodes||n.BlockInfo.LengthOfLinkText.3&&(l.BlockInfo.LengthOfLinkText<=l.BlockInfo.LengthOfPlainText||l.BlockInfo.LengthOfLinkText<=50)&&(r=l),null==r&&(null!=l&&0===l.BlockInfo.LengthOfLinkText||n.BlockInfo.LengthOfLinkText<=n.BlockInfo.LengthOfPlainText||n.BlockInfo.LengthOfLinkText<=50||0===a.NodeInfo.LinkLevel||null!=l&&i.StringUtility.IsEnlargeText(l.InnerText))&&(r=a),e=e.concat(u.GetTrimNodes(n,r,t)))}return e}static GetTrimNodes(t,e,n){let i=[];return null==e?i.push(t):o.DocUtility.Travel(t,(t=>t!==e&&(t.BlockInfo.NumberOfImageNodes>0||(i.push(t),!1))),null),2*t.BlockInfo.LengthOfInnerText>=n.BlockInfo.LengthOfInnerText&&(i=[]),i}static GetMainBlockChildInfoStableScore(t){const e=t.BlockInfo.LengthOfContent+t.BlockInfo.LengthOfImageContent,n=t.InnerHtml.length-t.BlockInfo.LengthOfUnStableHtml;return t.MainBlockChildInfo.ContentLengthWithImage=e,t.MainBlockChildInfo.StableHtmlLength=n,1*(e+20)/(n+20)}static GetMainBlockChildInfoScore(t){return t.MainBlockChildInfo.ContentLength=t.BlockInfo.LengthOfContent,t.MainBlockChildInfo.HtmlLength=Math.max(t.MainBlockChildInfo.ContentLength,a.NodeUtility.GetHtmlLength(t)),1*(t.MainBlockChildInfo.ContentLength+20)/(t.MainBlockChildInfo.HtmlLength+20)}static GetSpecialParagraph(t,e,n){const o=[];if(null==t)return o;for(const r of t.Children)if(r.InnerTextLength>0&&!a.NodeUtility.IsParentChild(r,e)){if(!i.StringUtility.IsNullOrEmpty(n)&&r.TagName===n)break;if(r.InnerTextLength<40&&i.StringUtility.StartsWith(r.InnerText.trim().toUpperCase(),"BY")||i.StringUtility.IsDateOrAuthorString(r.InnerText)){o.push(r);continue}break}return o}static IsContentBetweenTitleAndMainBlock(t,e,n){if(a.NodeUtility.IsParentChild(t,e)||a.NodeUtility.IsParentChild(t,n))return!1;if(t.NodeInfo.Indexe.NodeInfo.Index)return!1;if(-1===s.TagConfig.HeaderTags.indexOf(t.TagName)&&!a.NodeUtility.IsTagEqualTo(t,"p")&&!a.NodeUtility.IsTagEqualTo(t,"article"))return!1;const o=i.StringUtility.GetPunctuationAndDigitNum(t.InnerText);return!(4*(t.BlockInfo.LengthOfLinkText+o)>t.BlockInfo.LengthOfInnerText)}static IsNoiseChildWithLink(t,e,n=!0){return!(t.MainBlockChildInfo.Score<0||0===t.BlockInfo.NumberOfLinkNodes||t.MainBlockChildInfo.Score>.6)&&(t.MainBlockChildInfo.Score<.3&&t.BlockInfo.LengthOfLinkText>t.BlockInfo.LengthOfPlainText&&(t.BlockInfo.NumberOfLinkNodes>5||t.BlockInfo.LengthOfLinkText>200)||t.BlockInfo.NumberOfLinkNodes>=3&&0===t.BlockInfo.NumberOfBr&&1===t.BlockInfo.NumberOfBlockNodes&&t.BlockInfo.LengthOfPlainText<5&&5*t.BlockInfo.LengthOfPlainText=20):1!==t.BlockInfo.NumberOfBlockNodes?u.IsMultiBlockLinkChild(t,n):t.BlockInfo.LengthOfLinkText>20&&t.BlockInfo.LengthOfLinkText>.8*t.BlockInfo.LengthOfInnerText&&(-1!==s.TagConfig.GroupElementTags.indexOf(t.TagName)&&t.MainBlockChildInfo.Score<.2||-1===s.TagConfig.GroupElementTags.indexOf(t.TagName)&&t.TagName!==e&&t.MainBlockChildInfo.Score<.1)))}static IsMultiBlockLinkChild(t,e){if(2*t.BlockInfo.LengthOfLinkText>t.BlockInfo.LengthOfPlainText&&(!e||t.BlockInfo.MaxImageSize("tr"===t.TagName&&i++,"td"===t.TagName&&t.InnerTextLength>1&&(a++,t.BlockInfo.LengthOfLinkText>5&&.5*t.BlockInfo.LengthOfInnerText<=t.BlockInfo.LengthOfLinkText&&r++),!0)),null),i>=3&&a>=3&&r>=.8*a)return!0;if(a>20)return!1;if(o.DocUtility.Travel(t,(t=>{if(t.BlockInfo.LengthOfInnerText<20||0===t.BlockInfo.NumberOfBlockNodes)return!1;if(-1!==s.TagConfig.BlockTags.indexOf(t.TagName)&&1===t.BlockInfo.NumberOfBlockNodes){const i=t.BlockInfo.LengthOfLinkText>.8*t.BlockInfo.LengthOfInnerText;n+=i?1:0,e+=i?0:1}return!0}),null),n>=1&&3*n>e)return!0}return!1}static IsContainsSingleBigImage(t){return null!=t&&1===t.BlockInfo.NumberOfImageNodes&&t.BlockInfo.MaxImageSize>r.Magic.MinBigMainBlockImageSize}}e.MainBlockUtility=u},365:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NodeInfo=void 0;const i=n(139);e.NodeInfo=class{constructor(){this.FirstBlockParent=null,this.FontSize=i.TagConfig.DefaultFontSize,this.Index=-1,this.IndexOfTextNode=-1,this.IndexOfPlainTextNode=-1,this.IndexOfBlockNode=-1,this.IndexOfBr=-1,this.IndexOfLinkNode=-1,this.Level=-1,this.IsNodePositionAbsoluteOrFix=!1,this.IndexOfImageNode=-1,this.LinkLevel=-1,this.PositionOfText=-1,this.PositionOfPlainText=-1}}},353:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NodeUtility=void 0;const i=n(990),o=n(139),a=n(727),r=n(494);class l{static GetAttribute(t,e){return t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute(e)?t.getAttribute(e).trim():""}static IsTagEqualTo(t,e){return t.TagName.toLowerCase()===e.toLowerCase()}static IsNameEqualTo(t,e){return t.nodeName.toLowerCase()===e.toLowerCase()}static IsParentChild(t,e){if(null==t)return!1;for(;null!=e;){if(e===t)return!0;e=e.Parent}return!1}static IsNodeInvisible(t){if(t.NodeType!==Node.ELEMENT_NODE)return!1;if(l.IsStyleContainsKeyValuePair(t,"opacity","0")||l.IsStyleContainsKeyValuePair(t,"display","none")||l.IsStyleContainsKeyValuePair(t,"visibility","hidden"))return!0;const e=l.GetStyle$1(t,"width").replace("PX",""),n=l.GetStyle$1(t,"left").replace("PX","");return!isNaN(parseInt(e))&&!isNaN(parseInt(n))&&Number(e)+Number(n)<=0}static IsEmptyNode(t){return-1!==o.TagConfig.PotentialEmptyNodeTag.indexOf(t.TagName.toLowerCase())&&0===t.RawNode.textContent.trim().length&&0===t.Children.length}static IsNodePositionAbsuluteOrFix(t){return t.NodeType===Node.ELEMENT_NODE&&!(!l.IsStyleContainsKeyValuePair(t,"position","absolute")&&!l.IsStyleContainsKeyValuePair(t,"position","fixed"))}static IsStyleContainsKeyValuePair(t,e,n){if(t.RawNode.nodeType===Node.ELEMENT_NODE){const i=t.RawNode.style.getPropertyValue(e);if(i)return i.toLowerCase()===n.toLowerCase()}return!1}static GetSrc(t){if(!(t.parentNode&&"picture"===t.parentNode.nodeName.toLowerCase()&&t.parentElement.getElementsByTagName("img").length>1))for(const e of o.TagConfig.PotentialImageSrcAttribute){const n=l.GetAttribute(t,e);if(""!==n&&i.StringUtility.CheckImageURL(n))return t.setAttribute("src",n),n}return l.GetAttribute(t,"src")}static GetHtmlLength(t){return t.InnerHtml.length}static GetStyle$0(t){const e={};if(t.nodeType!==Node.ELEMENT_NODE)return e;const n=l.GetAttribute(t,"style");if(i.StringUtility.IsNullOrEmpty(n))return e;const o=t.style;for(const t in o)o.hasOwnProperty(t)&&(e[t]=o[t]);return e}static GetStyle$1(t,e){return t.RawNode.nodeType!==Node.ELEMENT_NODE?"":t.RawNode.style.getPropertyValue(e)||""}static IsTextNode(t){return null!=t&&t.NodeType===Node.TEXT_NODE}static IsElementNode(t){return null!=t&&t.NodeType===Node.ELEMENT_NODE}static IsImageNode(t){return l.IsNodeWithImgTag(t)||t.IsTagEqualTo("figure")}static IsNodeWithImgTag(t){return t.IsTagEqualTo("img")||t.IsTagEqualTo("amp-img")}static IsHtmlNodeWithImgTag(t){return"img"===t.nodeName.toLowerCase()||"amp-img"===t.nodeName.toLocaleLowerCase()}static IsBlockNode(t){return-1!==o.TagConfig.BlockTags.indexOf(t.TagName)}static IsLinkNode(t){return null!=t&&t.IsTagEqualTo("a")}static IsListNode(t){return this.IsOrderedListNode(t)||this.IsUnorderedListNode(t)}static IsOrderedListNode(t){return null!=t&&t.IsTagEqualTo("ol")}static IsUnorderedListNode(t){return null!=t&&t.IsTagEqualTo("ul")}static IsLinkChildNode(t){return t.NodeInfo.LinkLevel>0}static IsContainsSingleNoiseImage(t){return!(t.MainBlockChildInfo.Score>.3||1!==t.BlockInfo.NumberOfImageNodes||t.BlockInfo.MaxImageSize<=0||t.BlockInfo.MaxImageSize>=4e4)&&t.BlockInfo.NumberOfBlockNodes>=2*t.BlockInfo.NumberOfImageNodes&&t.BlockInfo.NumberOfLinkNodes>0&&t.BlockInfo.LengthOfInnerText<250}static IsContainsMultiSmallImages(t){return!(t.BlockInfo.NumberOfImageNodes<=3)&&(t.MainBlockChildInfo.Score>0&&(t.MainBlockChildInfo.Score<.6&&t.BlockInfo.LengthOfLinkText>0||t.MainBlockChildInfo.Score<.3)||t.BlockInfo.MaxImageSize>0&&t.BlockInfo.MaxImageSize<1e4&&t.BlockInfo.NumberOfBlockNodes>3&&t.BlockInfo.NumberOfLinkNodes>=t.BlockInfo.NumberOfImageNodes)}static IsRelatedBlock(t,e){if(t.BlockInfo.NumberOfLinkNodes<=2||t.BlockInfo.NumberOfImageNodes<=0||t.BlockInfo.LengthOfLinkText<20||3*t.BlockInfo.LengthOfLinkTextr.Magic.SmallContentLength||5*t.BlockInfo.LengthOfInnerText>e.BlockInfo.LengthOfInnerText)return!1;if(t.BlockInfo.NumberOfChildNodes>10&&t.BlockInfo.NumberOfBlockNodes>1&&t.BlockInfo.MaxImageSize<2e4&&(t.MainBlockChildInfo.UnStableScore<.1&&-1!==o.TagConfig.GroupElementTags.indexOf(t.TagName)||t.MainBlockChildInfo.UnStableScore<.3&&-1===o.TagConfig.GroupElementTags.indexOf(t.TagName))){let e=!1;return a.DocUtility.Travel(t,(t=>(l.IsNodeWithImgTag(t)&&t.NodeInfo.LinkLevel>0&&(e=!0),!e)),null),e}return!1}static IsSocialBlock(t){return t.BlockInfo.NumberOfImageNodes>=2&&t.BlockInfo.MaxImageSize>0&&t.BlockInfo.MaxImageSize<=900&&t.BlockInfo.LengthOfPlainText<10||0===t.BlockInfo.NumberOfImageNodes&&t.BlockInfo.NumberOfChildNodes>=4&&t.BlockInfo.LengthOfInnerText<15&&t.BlockInfo.LengthOfUnStableHtml>200&&!(1.5*t.BlockInfo.LengthOfSafeText>t.BlockInfo.LengthOfInnerText)}static IsEmptyBlock(t){return t.MainBlockChildInfo.Score<0&&0===t.BlockInfo.LengthOfInnerText&&0===t.BlockInfo.NumberOfImageNodes&&t.BlockInfo.NumberOfBlockNodes>3}static IsDiffLevelContent(t,e){if(e.BlockInfo.NumberOfBlockNodes<=3||e.MainBlockChildInfo.Score<0||e.MainBlockChildInfo.Score>.6||-1===t)return!1;const n=a.DocUtility.GetTextLevel(e,!1);return-1!==n&&e.BlockInfo.LengthOfInnerText=3&&e.BlockInfo.LengthOfPlainText<=4*e.BlockInfo.LengthOfLinkText&&e.BlockInfo.MaxImageSize<4e4}static IsActionLink(t){if(null==t||"a"!==t.TagName||t.InnerTextLength>20)return!1;const e=l.GetAttribute(t.RawNode,"href");if(i.StringUtility.StartsWith(e,"javascript:"))return!0;const n=l.GetAttribute(t.RawNode,"onclick");return!("#"!==e&&!i.StringUtility.IsNullOrWhiteSpace(e)||i.StringUtility.IsNullOrWhiteSpace(n))}static IsSmallPureTextParagraph(t){return t.BlockInfo.LengthOfPlainText>0&&"p"===t.TagName&&0===t.BlockInfo.NumberOfImageNodes&&0===t.BlockInfo.LengthOfLinkText&&i.StringUtility.GetPunctuationNumber(t.InnerText)>0}static IsAdvertisementNode(t){return"advertisement"===t.InnerText.toLowerCase()}static GetOurterHtml(t){return l.getOuterHtml(t)}static GetInnerText(t){let e="",n=!1;const o=["div","p","li","td","br","h1","h2","h3"];return a.DocUtility.Travel(t,(function(t){return null!=t&&(t.RawNode.nodeType===Node.TEXT_NODE&&""!==t.RawNode.textContent.trim()&&(e+=t.RawNode.textContent.trim(),n=!1),t.RawNode.nodeType===Node.ELEMENT_NODE)}),(function(t){return!1===i.StringUtility.IsNullOrEmpty(t.RawNode.nodeName)&&-1!==o.indexOf(t.RawNode.nodeName.toLowerCase())&&(n||(e+="\n",n=!0)),!0})),e.trim()}static getInnerHtml(t){let e="";if(t.Children.length>0)for(const n of t.Children)e+=l.getOuterHtml(n);return e}static getOuterHtml(t){if(!t)return"";switch(t.RawNode.nodeType){case Node.DOCUMENT_NODE:return l.getInnerHtml(t);case Node.TEXT_NODE:return i.StringUtility.EncodeToHtmlEntities(t.RawNode.textContent);case Node.ELEMENT_NODE:{const e=t.RawNode;if(l.IsNodeWithImgTag(t)&&(l.cleanImageElement(e),!e.hasAttribute("src")))return"";"VIDEO"===e.tagName&&l.tryFixVideoElement(e),"IFRAME"===e.tagName&&l.removeIframeRiskyAttributes(e);let n="<"+e.nodeName.toLowerCase();return e.hasAttributes()&&(n+=l.getStringifiedAttributes(e)),n+=">",-1===["link","track","param","area","command","col","base","meta","hr","source","img","amp-img","keygen","br","wbr","input"].indexOf(e.nodeName.toLowerCase())&&(t.Children.length>0&&(n+=l.getInnerHtml(t)),n+=""),n}}return""}static getStringifiedAttributes(t){let e="";const n=t.attributes;for(let o=n.length-1;o>=0;o--){const a=n[o];"data"===a.name.substr(0,4)||"target"===a.name&&-1!==["a","base","form","area"].indexOf(t.tagName.toLowerCase())||(e+=" "+a.name+"='"+i.StringUtility.EncodeToHtmlEntities(a.value)+"'")}return e}static tryFixVideoElement(t){t.hasAttribute("autoplay")&&t.removeAttribute("autoplay"),t.hasAttribute("controls")||t.setAttribute("controls",""),t.setAttribute("preload","metadata")}static removeIframeRiskyAttributes(t){t.hasAttribute("sandbox")&&""!==t.getAttributeNode("sandbox").value&&t.removeAttribute("sandbox"),t.hasAttribute("srcdoc")&&t.removeAttribute("srcdoc")}static cleanImageElement(t){t.removeAttribute("width"),t.removeAttribute("height"),t.removeAttribute("sizes"),t.removeAttribute("style")}static cleanTableElement(t){o.TagConfig.NoisyTableAttributes.forEach((e=>{t.removeAttribute(e)}))}static IsParentOfMultipleGoodChildren(t,e,n){const i=t[e],o=t[0];if(t[0].NodeInfo.Level-1!==i.NodeInfo.Level&&t[0].NodeInfo.Level-2!==i.NodeInfo.Level||!l.IsParentChild(i,t[0]))return!1;for(let n=1;n{if(t.IsTagEqualTo("a")&&1===t.Children.length&&t.Children[0].RawNode.nodeType===Node.TEXT_NODE){let e=t.RawNode.textContent.replace(/\]$/," ");e=e.replace(/^\[/,"");const n=t.Children[0];n.InnerText=e,n.RawNode.textContent=e}}))}}e.NodeUtility=l},990:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtility=void 0;const i=n(494),o=n(8);class a{static GetMeaningfulChars(t){return(t=a.HtmlDecode(t)).replace(new RegExp("\\s+")," ").trim()}static IsEnlargeText(t){t=t.toUpperCase();let e=!1;return i.Magic.EnlargeTextList.forEach((function(n,i,o){-1!==t.indexOf(n)&&(e=!0)})),t.length<30&&e}static KeepSingleSpace(t){return t.replace(new RegExp("\\s+")," ").trim()}static GetTrimmedTextLength(t){return t.replace(/\s+/g," ").length}static GetPunctuationAndDigitNum(t){if(a.IsNullOrEmpty(t))return 0;let e=0;for(let n=0;n120||t.length<10)return!1;t=t.toUpperCase();let e=0;i.Magic.NoiseWordList.forEach((function(n,i,o){-1!==t.indexOf(n)&&(e+=15)}));const n=a.GetDateChars(t);return e+=n,4*e>t.length}static GetDateChars(t){let e=0;for(const n of i.Magic.MonthNameList)if(-1!==t.indexOf(n)){e+=n.length;break}for(const n of i.Magic.DayNameList)if(-1!==t.indexOf(n)){e+=n.length;break}return e+=a.GetDigitNum(t),e}static IsDateString(t){return a.GetDigitNum(t)>8&&t.length<60}static GetDigitNum(t){if(a.IsNullOrEmpty(t))return 0;let e=0;for(let n=0;ni.Magic.MaxTitleValidTextLength&&(t=t.substring(0,i.Magic.MaxTitleValidTextLength)),e.length>i.Magic.MaxTitleValidTextLength&&(e=e.substring(0,i.Magic.MaxTitleValidTextLength));const o=t.split(/\s+/).filter(Boolean),r=e.split(/\s+/).filter(Boolean);if(o.length>3&&r.length>3){const t=a.LongestCommonWords(o,r);return null==t||0===t.length?0:1*t.length/Math.max(o.length,r.length)}const l=a.LongestCommonChars(t,e,n);return a.MatchScore(e,l)*l.length/Math.max(t.length,e.length)}static LongestCommonWords(t,e){const n=t.length+1,i=e.length+1,o=new Array(n);for(let t=0;to[n-1][i]?o[n][i]=o[n][i-1]:o[n][i]=o[n-1][i];let a=t.length,r=e.length;const l=[];for(;a>0&&r>0;)o[a][r]!==o[a-1][r]?o[a][r]!==o[a][r-1]?(l.unshift(t[a-1]),a-=1,r-=1):r-=1:a-=1;return l}static MatchScore(t,e){if(a.IsNullOrEmpty(t)||a.IsNullOrEmpty(e))return 0;let n=0,i=0,o=0;for(let a=0;an[i-1][o]?n[i][o]=n[i][o-1]:n[i][o]=n[i-1][o];let i=t.length,o=e.length,r="";for(;i>0&&o>0;)n[i][o]!==n[i-1][o]?n[i][o]!==n[i][o-1]?(r=t[i-1]+r,i-=1,o-=1):o-=1:i-=1;return r}static UrlFromRelative2Absolute(t,e){if(a.StartsWith(e,"http"))return e;if(a.StartsWith(e,o.readProtocol))return e;if(a.StartsWith(e,"data:"))return e;if(a.StartsWith(e,"javascript:"))return e;if(a.StartsWith(e,"#"))return e;if(0===e.indexOf("/"))return 1===e.indexOf("/",1)?t.substr(0,t.indexOf(":")+1)+e:t.lastIndexOf("/")<=8?t+"/"+e:t.substr(0,t.indexOf("/",8))+e;{const n=t.indexOf("#");return-1!==n&&(t=t.substr(0,n)),t.lastIndexOf("/")<=8?t+"/"+e:t.substr(0,t.lastIndexOf("/"))+"/"+e}}static GetReadingViewURLFromAbsoluteURL(t){const e=t.substring(t.indexOf("//")+2),n=t.substring(0,t.indexOf(":")),i=e.substring(0,e.indexOf("/"));return o.readProtocol+n+"_"+i+"/?url="+encodeURIComponent(t)}static CheckImageURL(t){return null!=t.split("?")[0].match(/\.(jpeg|jpg|gif|png)$/i)}static IsNullOrEmpty(t){return!Boolean(t)}static IsNullOrWhiteSpace(t){return!(Boolean(t)&&Boolean(t.trim()))}static StartsWith(t,e,n){return n=n||0,t.substr(n,e.length)===e}static HtmlDecode(t){const e=document.createElement("textarea");return e.innerHTML=t,e.value}static HtmlEncode(t){return t.replace(/[\u00A0-\u9999<>\&]/gim,(function(t){return"&#"+t.charCodeAt(0)+";"}))}static EncodeToHtmlEntities(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}static IsPunctuation(t){return t<256&&-1!==[33,34,35,37,38,39,40,41,42,44,45,46,47,58,59,63,64,91,92,93,95,123,125,161,171,173,183,187,191].indexOf(t)}static IsDigit(t){return t<256&&t>=48&&t<=57}static EndsWith(t,e){const n=t.length-e.length,i=t.indexOf(e,n);return-1!==i&&i===n}}e.StringUtility=a},139:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TagConfig=void 0;const i=n(990),o=n(353),a=n(785);var r;!function(t){t[t.SubString=0]="SubString",t[t.ExactString=1]="ExactString",t[t.Prefix=2]="Prefix",t[t.Suffix=3]="Suffix",t[t.None=4]="None"}(r||(r={}));class l{static IsNonContentTag(t){return!i.StringUtility.IsNullOrEmpty(t)&&-1!==l.NonContentTag.indexOf(t)}static IsYoutubeIframe(t){const e=(t.getAttribute("src")||"").toLowerCase();for(let t=l.YoutubeEmbedSrcHints.length-1;t>=0;t--)if(e.startsWith(l.YoutubeEmbedSrcHints[t]))return!0;return!1}static IsRiskyNodeByTagNameAndAttribute(t){const e=t.TagName;if(!l.DisallowTagsTable.hasOwnProperty(e))return!1;const n=l.DisallowTagsTable[e];for(const e of n){const n=e.attributeName,a=o.NodeUtility.GetAttribute(t.RawNode,n).toLowerCase();if(!i.StringUtility.IsNullOrEmpty(a))if("class"===n){const n=a.split(" ");for(let o=n.length-1;o>=0;o--){const a=n[o];if(!i.StringUtility.IsNullOrEmpty(a)&&l.CheckForDisallowPatternMatch(t.RawNode,a,e))return!0}}else if(l.CheckForDisallowPatternMatch(t.RawNode,a,e))return!0}return!1}static CheckForDisallowPatternMatch(t,e,n){const o=n.attributeValuePattern,l=n.matchPattern;if(l===r.SubString&&e.length>2*o.length&&e.length>20&&"robots-nocontent"!==o)return!1;if(l===r.None&&window.extractionInternal.extraction_experiment_version&a.ExtractionExperimentVersion.LoadErrorFix)return!0;if(l===r.SubString&&-1!==e.indexOf(o)||l===r.ExactString&&e===o||l===r.Prefix&&0===e.indexOf(o)||l===r.Suffix&&i.StringUtility.EndsWith(e,o)){if(window.extractionInternal.extraction_experiment_version&a.ExtractionExperimentVersion.RiskyTagExclusionList&&n.exclusionList&&-1!==n.exclusionList.indexOf(e))return!1;if(!(window.extractionInternal.extraction_experiment_version&a.ExtractionExperimentVersion.RiskyTagAuthorIconAd))return!0;if(!n.thresholdTextLength||n.thresholdTextLength>=i.StringUtility.GetTrimmedTextLength(t.textContent))return!0}return!1}}e.TagConfig=l,l.HeaderTags=["h1","h2","h3","h4","h5"],l.NonContentTag=["script","input","textarea","style","noscript","select","embed","object","button"],l.YoutubeEmbedSrcHints=["http://www.youtube.com/embed","https://www.youtube.com/embed","//www.youtube.com/embed","//youtube.com/embed"],l.TagFontSize={h1:24,h2:22,h3:18,h4:16,h5:12,h6:10},l.DefaultFontSize=12,l.BlockTags=["address","article","blockquote","br","center","dir","div","dd","dl","dt","fieldset","form","footer","h1","h2","h3","h4","h5","h6","hr","isindex","li","main","menu","noframes","noscript","ol","p","pre","table","td","ul"],l.GroupElementTags=["aside","blockquote","dl","figure","footer","h1","h2","h3","h4","h5","h6","menu","ol","p","pre","select","table","ul"],l.UnStableAttributeList=["style","title","id","class","alt","itemprop","data-width","data-height"],l.SafeTags=["pre"],l.RiskyTags=["aside"],l.NonLevelTag=["tr","td"],l.DisallowTagsTable={div:[{attributeName:"class",attributeValuePattern:"mboxdefault",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"controls",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"buttons",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"button",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"share",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"hidden",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"hide",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"left-ear",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"right-ear",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"rel_inactive",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"ad",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"ad_",matchPattern:r.Prefix},{attributeName:"class",attributeValuePattern:"ad-",matchPattern:r.Prefix,thresholdTextLength:2e3},{attributeName:"class",attributeValuePattern:"nocontent",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"promo_holder",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"promo-component",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"comment",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"sharebar",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"share-tool",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"sharetool",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"articletool",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"sociable",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"share-article",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"utilities",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"liveblog_",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"action-overlay",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"robots-nocontent",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"map",matchPattern:r.Suffix},{attributeName:"class",attributeValuePattern:"gmsc",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"footer",matchPattern:r.Prefix},{attributeName:"id",attributeValuePattern:"googlead",matchPattern:r.ExactString},{attributeName:"id",attributeValuePattern:"sky_ad",matchPattern:r.ExactString},{attributeName:"id",attributeValuePattern:"comment",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"sharebar",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"share-tool",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"sharetool",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"liveblog_",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"map",matchPattern:r.Suffix},{attributeName:"class",attributeValuePattern:"icon",matchPattern:r.SubString,thresholdTextLength:250},{attributeName:"class",attributeValuePattern:"author",matchPattern:r.SubString,thresholdTextLength:1e3},{attributeName:"class",attributeValuePattern:"expanded-authors",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"logo",matchPattern:r.Suffix},{attributeName:"id",attributeValuePattern:"article-side-rail",matchPattern:r.Prefix},{attributeName:"id",attributeValuePattern:"basic-modal-disclaimer",matchPattern:r.Prefix},{attributeName:"id",attributeValuePattern:"wtbchart",matchPattern:r.Prefix},{attributeName:"id",attributeValuePattern:"livefyre",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"footer",matchPattern:r.Prefix},{attributeName:"id",attributeValuePattern:"tc-tag-item-bing",matchPattern:r.ExactString},{attributeName:"id",attributeValuePattern:"tc-tag-item-advertising-tech",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"livefyre",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"tc-tag-item-bing",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"mod-ad-4 ad-container",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"post-gallery",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"video-transcript",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"jw-overlays",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"jw-controls",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"jw-title",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"overlay",matchPattern:r.Prefix},{attributeName:"class",attributeValuePattern:"vjs-control",matchPattern:r.Prefix},{attributeName:"class",attributeValuePattern:"vjs-hidden",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"newsletter",matchPattern:r.Prefix},{attributeName:"class",attributeValuePattern:"inline-slideshow",matchPattern:r.ExactString},{attributeName:"role",attributeValuePattern:"banner",matchPattern:r.ExactString},{attributeName:"data-nativead-tracking",attributeValuePattern:"",matchPattern:r.None}],a:[{attributeName:"class",attributeValuePattern:"hide",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.Suffix},{attributeName:"id",attributeValuePattern:"logo",matchPattern:r.Suffix}],ul:[{attributeName:"class",attributeValuePattern:"comment",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"sharebar",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"share-tool",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"sharetool",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"comment",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"sharebar",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"share-tool",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"sharetool",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"gallery-thumbnails",matchPattern:r.ExactString}],dl:[{attributeName:"class",attributeValuePattern:"comment",matchPattern:r.SubString}],li:[{attributeName:"class",attributeValuePattern:"gallery-thumbnail",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"hidden",matchPattern:r.ExactString}],h1:[{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.Suffix},{attributeName:"id",attributeValuePattern:"logo",matchPattern:r.Suffix}],h2:[{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.Suffix},{attributeName:"id",attributeValuePattern:"logo",matchPattern:r.Suffix}],h3:[{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.Suffix},{attributeName:"id",attributeValuePattern:"logo",matchPattern:r.Suffix}],section:[{attributeName:"class",attributeValuePattern:"comment",matchPattern:r.SubString,exclusionList:["no-full-comments","full-comments"]},{attributeName:"id",attributeValuePattern:"comment",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"js_replies",matchPattern:r.ExactString}],span:[{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.SubString}],p:[{attributeName:"class",attributeValuePattern:"story-image-text",matchPattern:r.SubString}],img:[{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.Suffix},{attributeName:"class",attributeValuePattern:"spinner",matchPattern:r.SubString}]},l.WikipediaNoisyElementsAttributeValuePairs=new Map([["class",["mw-jump-link","catlinks","mw-editsection","mw-indicators","mw-collapsible-toggle","printfooter","noprint","subpages","ombox-notice","CategoryTreeBullet","CategoryTreeEmptyBullet","tmbox-notice","mw-footer","mw-empty-elt","ambox","navbox","navbar","m-box","sidebar","mbox","notice","editlink","mw-header","mw-body-header","vector-page-toolbar"]],["role",["navigation"]],["id",["mw-navigation","siteNotice"]]]),l.WikipediaNoisyElementsTagList=["hr"],l.NoisyTableAttributes=["cellpadding","border","cellspacing"],l.PotentialEmptyNodeTag=["div","section","header","h1","h2","h3","h4","h5","h6","aside","span","td","th","tr"],l.PotentialImageSrcAttribute=["data-src","data-layzr","data-original","data-lazy-src","data-mediaviewer-src","data-ezsrc"]},563:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TitleInfo=void 0,e.TitleInfo=class{}},935:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TitleUtility=void 0;const i=n(32),o=n(990),a=n(494),r=n(563),l=n(727),s=n(353),c=n(139);class u{static GetMetaTitles(t){const e=t.rootNode,n={};if(t.rootNode.nodeType!==Node.ELEMENT_NODE)return n;const i=e.querySelectorAll("meta[content]");let a=e.querySelectorAll("head > title");if(a||(a=e.querySelectorAll("body > title")),null!=i)for(const t of i)u.AddMetaInfo(t,"property","og:title","content",n),u.AddMetaInfo(t,"itemprop","headline","content",n),u.AddMetaInfo(t,"itemprop","alternativeHeadline","content",n),u.AddMetaInfo(t,"name","title","content",n),u.AddMetaInfo(t,"name","twitter:title","content",n),u.AddMetaInfo(t,"name","fb_title","content",n);if(null!=a)for(const t of a)if(null!=t.textContent&&!1===o.StringUtility.IsNullOrWhiteSpace(t.textContent)){n.title=t.textContent.trim();break}return n}static GetTitleCandidates(t,e){const n=u.GetTextCandidates(t,e);return u.GetTitlesFromTextCandidates(n)}static AddMetaInfo(t,e,n,i,a){let r="";t.hasAttribute(e)&&t.getAttribute(e)===n&&t.hasAttribute(i)&&(r=t.getAttribute(i).trim()),!1===o.StringUtility.IsNullOrWhiteSpace(r)&&(a[n]=r)}static GetTextCandidates(t,e){if(0===Object.keys(e).length)return[];const n=u.GetTextList(t),i=n.length,o=i>0?n[i-1].NodeInfo.PositionOfPlainText+1:0;let s=0;for(const t in e)e.hasOwnProperty(t)&&e[t].length>s&&(s=e[t].length);const c=[],d=[];for(const t in e)e.hasOwnProperty(t)&&d.push(e[t]);for(const t of n){if(t.NodeInfo.PositionOfPlainText>.6*o||t.InnerTextLength2*s&&t.InnerTextLength>100||t.InnerTextLength>a.Magic.MaxTitleTextLength)continue;const e=new r.TitleInfo;e.FontSize=t.NodeInfo.FontSize,t.TitleInfo=e;const n=t.Parent;if(null!=n&&n.InnerTextLength>a.Magic.MaxTitleTextLength)continue;t.TitleInfo.Similarity=u.GetSimilarity(t,d);const i=l.DocUtility.FirstBlockParent(t);null==i||i.InnerTextLength!==t.InnerTextLength||"title"!==i.Class&&"title"!==i.Id||(t.TitleInfo.FontSize+=6,t.TitleInfo.Similarity+=.2,t.TitleInfo.Similarity=Math.min(t.TitleInfo.Similarity,1)),(t.TitleInfo.Similarity>=.1&&t.TitleInfo.FontSize>=12||t.TitleInfo.Similarity>=.4||t.TitleInfo.FontSize>=16)&&c.push(t)}return c}static GetTitlesFromTextCandidates(t){let e=[];if(null==t||0===t.length)return e;if(t.sort((function(t,e){return e.TitleInfo.FontSize!==t.TitleInfo.FontSize?e.TitleInfo.FontSize-t.TitleInfo.FontSize:e.TitleInfo.Similarity>t.TitleInfo.Similarity?1:e.TitleInfo.Similarity.001?e.TitleInfo.Similarity>t.TitleInfo.Similarity?1:e.TitleInfo.Similarity1&&t[0].TitleInfo.Similarity-t[1].TitleInfo.Similarity<.2&&t[1].TitleInfo.Similarity>.4&&t[1].TitleInfo.FontSize+6>=e[0].TitleInfo.FontSize&&e.push(t[1]),e.length>2){const t=e;t.sort(((t,e)=>{const n=t.TitleInfo.Similarity*t.TitleInfo.FontSize,i=e.TitleInfo.Similarity*e.TitleInfo.FontSize;return i>n?1:i(s.NodeUtility.IsTextNode(t)&&e.push(t),!0)),null),e}static SelectTitle(t,e,n){let o=null;if(t&&t.length&&e){const i=t.length;if(1===i)o=t[0];else if(2===i){const n=t[0].TitleInfo.Similarity>t[1].TitleInfo.Similarity?t[0]:t[1],i=t[0].TitleInfo.FontSize>t[1].TitleInfo.FontSize?t[0]:t[1],a=e.NodeInfo.PositionOfPlainText,r=Math.abs(t[0].NodeInfo.PositionOfPlainText-a).3&&n.InnerTextLength>15?n:r}o=u.AdjustTitle(o,n)}return o||(o=u.GetTitleFromMeta(n)),o&&(o.ResultType=i.ResultType.Title),o}static AdjustTitle(t,e){let n=t;for(;null!=n;){if(-1!==c.TagConfig.HeaderTags.indexOf(n.TagName)&&n.BlockInfo.LengthOfInnerText<100)return n;const i=[];for(const t in e)e.hasOwnProperty(t)&&i.push(e[t]);if(u.GetSimilarity(n,i)>t.TitleInfo.Similarity&&n.BlockInfo.LengthOfInnerText<100)return n;if(-1!==c.TagConfig.HeaderTags.indexOf(n.TagName)||n.IsTagEqualTo("b")||n.IsTagEqualTo("strong"))break;n=n.Parent}return t}static GetSimilarity(t,e){const n=a.Magic.MaxTitleValidTextLength+1,i=new Array(n);for(let t=0;tr&&(r=l)})),r}static GetTitleFromMeta(t){let e,n=null;if(null!=t&&Object.keys(t).length>0){const a=t[Object.keys(t)[0]];e=document.createElement("h1"),e.innerHTML=o.StringUtility.HtmlEncode(a),n=new i.WrappedNode(e)}return n}}e.TitleUtility=u},32:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedNode=e.ResultType=void 0;const i=n(365),o=n(804),a=n(855),r=n(73),l=n(353),s=n(727),c=n(990);var u;!function(t){t[t.Noise=-1]="Noise",t[t.None=0]="None",t[t.Title=1]="Title",t[t.Content=2]="Content",t[t.Image=3]="Image",t[t.ImageContentOutOfMainBlock=4]="ImageContentOutOfMainBlock",t[t.ContentBetweenTitleAndMainBlock=5]="ContentBetweenTitleAndMainBlock",t[t.TableOfContents=6]="TableOfContents"}(u||(u={})),e.ResultType=u,e.WrappedNode=class{get InnerText(){return null!=this._InnerText||s.DocUtility.UpdateInnerText(this),this._InnerText}set InnerText(t){this._InnerText=t,this.HasInnerTextCalculated=!0}get InnerHtml(){return null==this._innerHtml&&null!==this.RawNode&&(this.RawNode.nodeType===Node.ELEMENT_NODE?this._innerHtml=c.StringUtility.KeepSingleSpace(this.RawNode.innerHTML)||"":this._innerHtml=c.StringUtility.KeepSingleSpace(this.RawNode.textContent)||""),this._innerHtml}get IsTextNode(){return this.NodeType===Node.TEXT_NODE}get rootNode(){let t=this.RawNode;for(;t.parentElement;)t=t.parentElement;return t}constructor(t){this.InnerTextLength=0,this.Id=l.NodeUtility.GetAttribute(t,"id"),this._InnerText=null,this.HasInnerTextCalculated=!1,this._innerHtml=null,this.TagName=t.nodeName.toLowerCase(),this.Parent=null,this.Children=[],this.NodeType=t.nodeType,this.Class=l.NodeUtility.GetAttribute(t,"class"),this.Href=l.NodeUtility.GetAttribute(t,"href"),this.Src=l.NodeUtility.GetSrc(t),t.nodeType===Node.ELEMENT_NODE?this.Style=t.style:this.Style=null,this.RawNode=t,this.ClonedRawNode=null,this.ResultType=u.None,this.NodeInfo=new i.NodeInfo,this.BlockInfo=new o.BlockInfo,this.MainBlockInfo=new a.MainBlockInfo,this.MainBlockChildInfo=new r.MainBlockChildInfo,this.TitleInfo=null,this.ImageInfo=null}IsTagEqualTo(t){return l.NodeUtility.IsTagEqualTo(this,t)}}},223:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TableOfContentsExtractorByElementId=void 0;const i=n(32),o=n(727),a=n(353);e.TableOfContentsExtractorByElementId=class{constructor(t){this.FindNodeWithMatchingId=t=>!t||!this.tocElementIds.includes(t.Id.toLowerCase())||(this.tableOfContentsRootNode=t,!1),this.tocElementIds=t.map((t=>t.toLowerCase()))}ExtractTableOfContents(t){try{this.FindTableOfContentsRootNode(t),this.ParseTOCNode()}catch(t){throw new Error("TableOfContentsExtractionError")}return this.result&&(this.tableOfContentsRootNode.ResultType=i.ResultType.TableOfContents),this.result}FindTableOfContentsRootNode(t){t&&o.DocUtility.Travel(t,this.FindNodeWithMatchingId,null)}ParseTOCNode(){if(!this.tableOfContentsRootNode)return;let t;t=a.NodeUtility.IsListNode(this.tableOfContentsRootNode)?this.tableOfContentsRootNode:this.GetFirstChildListNode(this.tableOfContentsRootNode),t&&(this.result=this.ParseListToGenerateTOC(t,0))}ParseListToGenerateTOC(t,e){const n=[];return t&&a.NodeUtility.IsListNode(t)&&t.Children.forEach((t=>{t.IsTextNode||n.push(this.ParseNodeToGenerateTOCItem(t,e))})),n}ParseNodeToGenerateTOCItem(t,e){const n={},i=this.GetFirstChildAnchorNode(t);if(i&&(n.label=this.GetLabel(i),n.href=i.Href,n.level=e+1,n.index=this.GetIndex(i),t.Children.length>1)){const e=this.GetFirstChildListNode(t);n.children=this.ParseListToGenerateTOC(e,n.level)}return n}GetLabel(t){if(!t)return"";const e=t.InnerText.split(" ");return e.shift(),e.join(" ")}GetIndex(t){return t?t.InnerText.split(" ")[0]:""}GetFirstChildListNode(t){let e;return t&&t.Children&&t.Children.some((t=>!!a.NodeUtility.IsListNode(t)&&(e=t,!0))),e}GetFirstChildAnchorNode(t){let e;return t&&t.Children&&t.Children.some((t=>!!a.NodeUtility.IsLinkNode(t)&&(e=t,!0))),e}}},294:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExtractorBase=void 0;const i=n(821),o=n(727),a=n(353),r=n(785),l=n(280);e.ExtractorBase=class{GetWrappedBody(t){return o.DocUtility.IsBlockReadingModeFlagPresent(t)?null:this.Parse(t)}Extract(t,e,n){return this.ConfigExtractionExperimentVersion(e,n),l.DebugUtility.InitLogData(),this.WrappedBody=this.GetWrappedBody(t),null==this.WrappedBody?new i.ExtractionResult(null,null,null,""):(o.DocUtility.UpdateNodeInfo(this.WrappedBody),o.DocUtility.UpdateBlockInfo(this.WrappedBody),this.Extract_Implement(),this.updateAndCleanExtractedContent(e),this.SaveResult(o.DocUtility.GetTextDirection(t)))}Parse(t){return o.DocUtility.ParseWithInnerHtml(this.GetHtmlContentForExtraction(t))}updateAndCleanExtractedContent(t){let e=o.DocUtility.GetBaseUrl(this.WrappedBody.rootNode);null==e&&(e=t),this.PageUrl=e,o.DocUtility.UpdateUrlFromRelativeToAbsolute(this.WrappedBody,this.PageUrl),l.DebugUtility.IsVisualizationConfigSetForHighlighting()||o.DocUtility.CleanStyle(this.WrappedBody)}SaveResult(t){const e=a.NodeUtility.GetOurterHtml(this.WrappedBody),n=a.NodeUtility.GetInnerText(this.WrappedBody);return this.TextDirection=t,new i.ExtractionResult(this.Title,e,n,this.TextDirection,this.TableOfContents)}ConfigExtractionExperimentVersion(t,e){window.extractionInternal=window.extractionInternal||{},window.extractionInternal.extraction_experiment_version=e||r.ExtractionExperimentVersion.Original}}},533:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExtractorFactory=void 0;const i=n(447),o=n(945),a=n(977),r=n(727),l=n(8),s=n(559);e.ExtractorFactory=class{static GetExtractor(t,e,n){return n.isForSelection?new a.SelectionExtractor:n.isDistillableWikipediaArticle?new i.WikiExtractor:n.isSpecificNodesEnabled&&0!==r.DocUtility.GetAllElementsWithAttribute(t,l.readableElementAttribute).length?new s.SpecificNodeExtractor:new o.MainBlockExtractor}}},945:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MainBlockExtractor=void 0;const i=n(294),o=n(727),a=n(935),r=n(499),l=n(280),s=n(785);class c extends i.ExtractorBase{GetHtmlContentForExtraction(t){return t.documentElement.innerHTML}Extract_Implement(){const t=a.TitleUtility.GetMetaTitles(this.WrappedBody),e=a.TitleUtility.GetTitleCandidates(this.WrappedBody,t);o.DocUtility.MarkGroupElements(this.WrappedBody);const n=o.DocUtility.GetParagraphList(this.WrappedBody);if(l.DebugUtility.HighlightParagraphs(n))return;let i=o.DocUtility.GetMainBlockCandidates(n);if(r.MainBlockUtility.UpdateMainBlockCandidatesInfo(i),i.sort((function(t,e){const n=e.MainBlockInfo.Score,i=t.MainBlockInfo.Score;return n>i?1:n{Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionExtractor=void 0;const i=n(294);class o extends i.ExtractorBase{GetHtmlContentForExtraction(t){if(t.getSelection().rangeCount>0){const e=t.getSelection().getRangeAt(0).cloneContents(),n=document.createElement("div");return n.appendChild(e),n.innerHTML}return null}Extract_Implement(){}}e.SelectionExtractor=o},559:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SpecificNodeExtractor=void 0;const i=n(294),o=n(727),a=n(8);class r extends i.ExtractorBase{GetHtmlContentForExtraction(t){const e=o.DocUtility.GetAllElementsWithAttribute(t,a.readableElementAttribute),n=document.createElement("div");return e.forEach((t=>{n.appendChild(t.cloneNode(!0))})),n.innerHTML}Extract_Implement(){}}e.SpecificNodeExtractor=r},447:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WikiExtractor=e.WikiGalleryImageCaptionReadingViewClass=e.WikiThumbImageCaptionReadingViewClass=e.WikiInfoboxReadingViewClass=e.WikiGalleryImageCaptionSourcePageClass=e.WikiThumbImageCaptionSourcePageClass=e.WikiSuperscriptReferenceClass=e.WikiTableOfContentSourcePageIds=e.WikiInfoboxSourcePageClass=void 0;const i=n(294),o=n(727),a=n(32),r=n(353),l=n(139),s=n(935),c=n(499),u=n(223);e.WikiInfoboxSourcePageClass="infobox",e.WikiTableOfContentSourcePageIds=["mw-panel-toc-list","toc"],e.WikiSuperscriptReferenceClass="reference",e.WikiThumbImageCaptionSourcePageClass="thumbcaption",e.WikiGalleryImageCaptionSourcePageClass="gallerytext",e.WikiInfoboxReadingViewClass="__reading_mode_wiki_infobox",e.WikiThumbImageCaptionReadingViewClass="__reading_mode_wiki_thumbcaption",e.WikiGalleryImageCaptionReadingViewClass="__reading_mode_wiki_gallerytext";class d extends i.ExtractorBase{GetHtmlContentForExtraction(t){return t.documentElement.innerHTML}Extract_Implement(){const t=s.TitleUtility.GetMetaTitles(this.WrappedBody),n=s.TitleUtility.GetTitleCandidates(this.WrappedBody,t);this.Title=s.TitleUtility.SelectTitle(n,this.WrappedBody,t);const i=new u.TableOfContentsExtractorByElementId(e.WikiTableOfContentSourcePageIds);this.TableOfContents=i.ExtractTableOfContents(this.WrappedBody),this.TableOfContents&&this.TableOfContents.length>0&&"#"===this.TableOfContents[0].href&&this.TableOfContents.shift(),this.WrappedBody=c.MainBlockUtility.TrimExtractedNodesFromMainBody([a.ResultType.Title,a.ResultType.TableOfContents],this.WrappedBody),this.removeNoise(),this.identifySpecialElements()}identifySpecialElements(){o.DocUtility.Travel(this.WrappedBody,(t=>(this.identifyInfobox(t),this.identifyImageCaptions(t),!0)),null)}identifyInfobox(t){t.IsTagEqualTo("table")&&t.RawNode.classList&&t.RawNode.classList.contains(e.WikiInfoboxSourcePageClass)&&t.RawNode.classList.add(e.WikiInfoboxReadingViewClass)}identifyImageCaptions(t){const n=t.RawNode;n&&n.classList&&n.classList.contains(e.WikiThumbImageCaptionSourcePageClass)?n.classList.add(e.WikiThumbImageCaptionReadingViewClass):n&&n.classList&&n.classList.contains(e.WikiGalleryImageCaptionSourcePageClass)&&n.classList.add(e.WikiGalleryImageCaptionReadingViewClass)}removeNoise(){const t=c.MainBlockUtility.GetNoiseActionLinks(this.WrappedBody);this.WrappedBody=o.DocUtility.Trim(this.WrappedBody,(n=>{if(-1!==t.indexOf(n)||-1!==l.TagConfig.WikipediaNoisyElementsTagList.indexOf(n.TagName))return-1;let i,o;if(!n.IsTagEqualTo("body"))for([i,o]of l.TagConfig.WikipediaNoisyElementsAttributeValuePairs){const t=r.NodeUtility.GetAttribute(n.RawNode,i);let e;for(e of o)if(-1!==t.indexOf(e))return-1}return n.IsTagEqualTo("sup")&&n.RawNode.classList.contains(e.WikiSuperscriptReferenceClass)&&r.NodeUtility.RemoveBracketsFromSuperScripts(n),n.IsTagEqualTo("table")&&r.NodeUtility.cleanTableElement(n.RawNode),n.Children.length>0?0:1}))}}e.WikiExtractor=d}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var a=e[i]={exports:{}};return t[i](a,a.exports,n),a.exports}(()=>{const t=n(533),e=n(280);window.extract=function(n,i,o){const a=t.ExtractorFactory.GetExtractor(n,i,o).Extract(n,i,o.ExtractionExperiment);return e.DebugUtility.LogExtractionData(i,a),{title:a.TitleInHtml,body:a.BodyInHtml,dir:a.Direction,bodyTextContentLength:a.TitleAndBodyText?a.TitleAndBodyText.length:0,tableOfContents:a.TableOfContents}}})()})();(()=>{"use strict";var t={919:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DomUtilties=void 0;const i=n(988);!function(t){const e=["button","input","select"];function n(t){return t&&t instanceof Element?t.shadowRoot:null}function o(t){return t&&t.parentNode instanceof ShadowRoot?t.parentNode.host:null}function r(t){var e;return t instanceof Element&&t.assignedSlot?t.assignedSlot:null!==(e=o(t))&&void 0!==e?e:null==t?void 0:t.parentNode}t.ReadAloudWebHighlighterStyle=".msreadout-word-highlight:not(.msreadout-inactive-highlight)\n {background: #ffff00 !important;color: black !important;} .msreadout-line-highlight:not(.msreadout-inactive-highlight)\n {background: #b2d6f3 !important;color: black !important;}\n @media screen and (forced-colors: active) {\n .msreadout-word-highlight:not(.msreadout-inactive-highlight) {\n forced-color-adjust: none;\n background-color: Highlight !important;\n color: HighlightText !important;\n }\n .msreadout-line-highlight:not(.msreadout-inactive-highlight) {\n forced-color-adjust: none;\n background: yellow !important;\n color: black !important;\n }\n }",t.getTextNodeFromPoint=function(t,e,n,i){var o=t.elementFromPoint(e,n);if(o){var r=t.createTreeWalker(t.body,NodeFilter.SHOW_TEXT);r.currentNode=o;for(var l=r.nextNode(),s=t.createRange();l;){if(s.selectNode(l),i(s).bottom>n)return l;l=r.nextNode()}}return null},t.getOffsetInTextNodeForLineAtYPosition=function(t,e,n,i){for(var o,r=t.createRange(),l=0,s=e.textContent.length;l!==s;)o=Math.floor(l+(s-l)/2),r.setStart(e,o),r.collapse(!0),i(r).bottom>n?s=o:l=o+1;return l},t.addReleasableDomEventListener=function(t,e,n,i=!0){return t.addEventListener(e,n,{passive:i}),{release:()=>{t.removeEventListener(e,n)}}},t.redrawDom=function(t){t.body.offsetHeight},t.isValidTextNode=function(t){return i.StringUtilities.NONEMPTY_STRING_REGEX.test(t.textContent)},t.isChildOfUserInterfaceNode=function(t){let n=t.parentElement,i=5;for(;n&&i;){let t;i--;const o=n.tagName.toLowerCase();for(t of e)if(o===t)return!1;n=n.parentElement}return!0},t.getFirstChild=function(t){var e,i;return t instanceof HTMLSlotElement?t.assignedNodes()[0]:null===(i=null!==(e=n(t))&&void 0!==e?e:t)||void 0===i?void 0:i.firstChild},t.getLastChild=function(t){var e,i;if(t instanceof HTMLSlotElement){let e=t.assignedNodes();return e[e.length-1]}return null===(i=null!==(e=n(t))&&void 0!==e?e:t)||void 0===i?void 0:i.lastChild},t.getChildNodes=function(t){var e,i,o;return t instanceof HTMLSlotElement?t.assignedNodes():Array.from(null!==(o=null===(i=null!==(e=n(t))&&void 0!==e?e:t)||void 0===i?void 0:i.childNodes)&&void 0!==o?o:[])},t.getParentElement=function(t){var e;return t instanceof Element&&t.assignedSlot?t.assignedSlot:null!==(e=o(t))&&void 0!==e?e:null==t?void 0:t.parentElement},t.getParentNode=r,t.isInDocument=function(t,e){for(var n=t;n;){if(n==e)return!0;n=r(n)}return!1},t.addRemoveStyleForElementInShadowRoot=function(e){if(e&&e.getRootNode()){const i=e.getRootNode();if(i instanceof ShadowRoot){var n=document.createElement("style");return n.textContent=t.ReadAloudWebHighlighterStyle,i.append(n),{value:()=>i,release:()=>{i.removeChild(n)}}}}return{value:()=>null,release:()=>{}}},t.getElementFromPoint=function(t,e,n){let i=t.elementFromPoint(e,n);return i.shadowRoot?i.shadowRoot.elementFromPoint(e,n):i},t.hasShadowDom=function t(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;if(n(e))return!0;const i=e;for(let e of i.children)if(t(e))return!0;return!1}}(e.DomUtilties||(e.DomUtilties={}))},988:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtilities=void 0,function(t){t.NONEMPTY_STRING_REGEX=new RegExp("\\S");const e=/([.?*+^$[\]\\(){}|-])/g,n=/\s*/g;function i(t){return t&&t.length?t.replace(e,"").replace(n,""):""}t.adjustTextByLength=function(t,e,n){var i=[],o="";return t.forEach((t=>{if(o.length+t.length<=e)o+=t;else{for(var r=function(t,e,n){for(var i=[],o=t,r=n;o.length>0;){if(o.length>n){r=n;for(var l=0;l0){r=s+1;break}}}else r=o.length;i.push(o.substr(0,r)),o=o.substr(r)}return i}(t,n,e),l=0;l0&&(i.push(o),o=""),r.forEach((t=>{i.push(t)}))}})),o.length>0&&i.push(o),i},t.skipStartText=function(t,e){for(var n=0,i=0;i=t[i].length;i++)n++,e-=t[i].length;return n>0&&t.splice(0,n),t.length>0&&e>0&&(t[0]=t[0].substring(e)),t},t.truncateEnd=function(t,e){let n=0;for(;n=t[n].length;n++)e-=t[n].length;return n0&&(t[n]=t[n].substring(0,e),n++),t.splice(n)),t},t.isNullOrEmpty=function(t){return null==t||0===t.length},t.replaceLinebreaksWithSpaces=function(t){return t.replace(/[\r\n]/g," ")},t.removeLineBreaksAndWhiteSpaces=function(t){return t.replace(/(\r\n|\n|\r|\s+)/gm,"")},t.createRegex=function(t){return t=i(t),new RegExp("("+t+")","ig")},t.replaceSpaceAndSpecialChar=i,t.ExactMatchWithoutSpaceAndSpecialChar=function(t,e){return i(t)===i(e)}}(e.StringUtilities||(e.StringUtilities={}))},409:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Highlighter=void 0;const i=n(919),o=n(666);!function(t){const e=["mssyllable"];function n(t,e,n){let o=e.ownerDocument.createElement(t);return n.forEach((t=>{o.classList.add(t)})),o.appendChild(i.DomUtilties.getParentNode(e).replaceChild(o,e)),o}function r(t,e){let n=t.textContent;if(e<0||e>n.length)throw new Error("Bad index for splitText");let i=n.substr(0,e),o=n.substr(e),r=t.ownerDocument.createTextNode(i),l=t.ownerDocument.createTextNode(o);const s=t.parentNode;return s.insertBefore(r,t),s.insertBefore(l,t),s.removeChild(t),{firstPart:r,secondPart:l}}t.surroundTextByTag=function(t,l,s,a,d,c,h,u){let g=l.startContainer,f=l.startOffset,m=l.endContainer,S=l.endOffset,p=g.nodeType===Node.TEXT_NODE?g:i.DomUtilties.getChildNodes(g)[f],N=m.nodeType===Node.TEXT_NODE?m:i.DomUtilties.getChildNodes(g)[S],v=[];for(;p&&((p.nodeType===Node.TEXT_NODE||p.nodeType===Node.ELEMENT_NODE&&e.indexOf(p.tagName.toLowerCase())>-1)&&v.push(p),p!==N);)p=o.ReadingNavigationUtils.getNextReadingNode(l.commonAncestorContainer,p);let R=[];u&&R.push(g.ownerDocument.createElement(t));for(let e=0;e1){let t=v[e];if(t===g&&f>0){let e=t===m&&S>0,n=r(t,f);if(a(t,[n.firstPart,n.secondPart]),t=n.secondPart,e){let e=r(t,S-f);a(t,[e.firstPart,e.secondPart]),t=e.firstPart}}else if(t===m){let e=r(t,S);a(t,[e.firstPart,e.secondPart]),t=e.firstPart}s(t)?v[e]=t:v[e]=null}if(R&&v[e])if(u&&1===R.length){let t=i.DomUtilties.getParentNode(v[e]).replaceChild(R[0],v[e]);R[0].appendChild(t)}else{let i=n(t,v[e],d);R.push(i)}}return c&&R[0]&&R[0].setAttribute("aria-label",c),h&&R[0]&&h.forEach(((t,e)=>{R[0].setAttribute(e,t)})),{value:()=>R,release:()=>{for(let t=0;t{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.UnitDirection=void 0,(n=e.UnitDirection||(e.UnitDirection={}))[n.Next=0]="Next",n[n.Previous=1]="Previous",n[n.Current=2]="Current"},250:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLReadingUnit=void 0;const i=n(984);class o extends i.ReadingUnit{constructor(t,e,n){super(e,n),this._contentNodes=t,this._textContents=this.updateTextContents()}get contentNodes(){return this._textContents=this.updateTextContents(),this._contentNodes}set contentNodes(t){this._contentNodes=t,this._textContents=this.updateTextContents()}get textContents(){return this._textContents}updateTextContents(){return this._contentNodes.map((t=>o.EmptyTagNodeList.includes(t.nodeName.toUpperCase())?" ":t.textContent))}}o.EmptyTagNodeList=["BR","HR","IMG","INPUT"],e.HTMLReadingUnit=o},984:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReadingUnit=void 0,e.ReadingUnit=class{constructor(t,e){this._textStartOffset=t,this._textEndOffset=e||null}get textStartOffset(){return this._textStartOffset}set textStartOffset(t){this._textStartOffset=t}get textEndOffset(){return this._textEndOffset}set textEndOffset(t){this._textEndOffset=t}}},666:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReadingNavigationUtils=void 0;const i=n(250),o=n(773),r=n(988),l=n(919);class s{static getNextReadingNode(t,e){var n;return null!==(n=l.DomUtilties.getFirstChild(e))&&void 0!==n?n:s.getNextSubtreeNode(t,e)}static getPreviousReadingNode(t,e){var n;return null!==(n=l.DomUtilties.getLastChild(e))&&void 0!==n?n:s.getPreviousSubtreeNode(t,e)}static shouldSkipNode(t){if(!t)return!0;if(t.nodeType===Node.ELEMENT_NODE){if(i.HTMLReadingUnit.EmptyTagNodeList.includes(t.nodeName.toUpperCase()))return!1;if(s.NodeIgnoreList.indexOf(t.nodeName.toUpperCase())>-1)return!0;let e=window.getComputedStyle(t);if(!(r.StringUtilities.NONEMPTY_STRING_REGEX.test(t.textContent)||l.DomUtilties.hasShadowDom(t)||t instanceof HTMLSlotElement))return!0;if("none"===e.display.toLowerCase()||"hidden"===e.visibility.toLowerCase()||t.hidden)return!0;if(parseInt(e.width)<=5&&("hidden"===e.overflow.toLowerCase()||"hidden"===e.overflowX.toLowerCase()))return!0;if(parseInt(e.height)<=5&&("hidden"===e.overflow.toLowerCase()||"hidden"===e.overflowY.toLowerCase()))return!0;if("inline"!==e.display.toLowerCase()&&t.scrollWidth>t.offsetWidth&&"hidden"===e.overflow.toLowerCase())return!0;if(t.hasAttribute("aria-hidden")&&"true"===t.getAttribute("aria-hidden"))return!0}return!1}static getPreviousSubtreeNode(t,e){for(;e&&e!==t&&!e.previousSibling;)e=l.DomUtilties.getParentNode(e);return e&&e!==t?e.previousSibling:null}static getNextSubtreeNode(t,e){for(;e&&e!==t&&!e.nextSibling;)e=l.DomUtilties.getParentNode(e);return e&&e!==t?e.nextSibling:null}static createReadingUnit(t,e){return t&&t.length>0&&!s.areEmptyOrWhiteSpaceTextNodes(t)?new i.HTMLReadingUnit(t,e):null}static areEmptyOrWhiteSpaceTextNodes(t){return 0===t.length||!t.some((t=>r.StringUtilities.NONEMPTY_STRING_REGEX.test(t.textContent)))}static moveByANode(t,e,n){return n===o.UnitDirection.Next?s.getNextReadingNode(t,e):s.getPreviousReadingNode(t,e)}static moveByASubtree(t,e,n){return n===o.UnitDirection.Next?s.getNextSubtreeNode(t,e):s.getPreviousSubtreeNode(t,e)}static getUnitContainer(t){for(;t&&!s.isUnitContainer(t);)t=l.DomUtilties.getParentNode(t);return t}static isUnitContainer(t){if(t&&t.nodeType===Node.ELEMENT_NODE){const e=t.tagName.toLowerCase();return s.unitBoundaryTags.indexOf(e)>-1}return!1}static findFirsth1Tag(t){const e=t.getElementsByTagName("h1");if(0!==e.length)return e[0];for(const e of s.ShadowDomTitleTags){const n=t.querySelectorAll(e);for(const t of n)if(t.shadowRoot&&t.shadowRoot.querySelector("h1"))return t.shadowRoot.querySelector("h1")}return null}static getTextNodes(t){let e=[];const n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode:t=>this.shouldSkipNode(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});for(;n.nextNode();)e.push(n.currentNode);return e}}s.NodeIgnoreList=["NOSCRIPT","SCRIPT","STYLE","SELECT"],s.unitBoundaryTags=["body","div","p","address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","nav","section","main","figcaption","ul","ol","dl","li","dt","dd","pre","td","th","caption","summary","details","button","legend","label","textarea"],s.ShadowDomTitleTags=["msnews-views-title"],e.ReadingNavigationUtils=s},998:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveRolRuntime=void 0;const i=n(721);e.InteractiveRolRuntime=class{getReadingUnits(){return i.InteractiveRolManager.getReadingUnits()}highlightReadingUnit(t){return i.InteractiveRolManager.highlightReadingUnit(t)}highlightReadingUnitByWord(t,e){return i.InteractiveRolManager.highlightReadingUnitByWord(t,e)}handlePlaybackState(t){i.InteractiveRolManager.handlePlaybackState(t)}cancelHighlights(){i.InteractiveRolManager.cancelHighlights()}}},319:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveRolExternalReadingUnit=void 0,e.InteractiveRolExternalReadingUnit=class{constructor(t,e){this.id=t,this.text=e}}},653:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveRolInternalReadingUnit=void 0;class n{constructor(t){this.contentNodesCached=t,this.textContentsCached=this.updateTextContents()}get textContents(){return this.textContentsCached}get contentNodes(){return this.contentNodesCached}set contentNodes(t){this.contentNodesCached=t,this.textContentsCached=this.updateTextContents()}updateTextContents(){return this.contentNodesCached.map((t=>{const e=t.nodeName.toUpperCase();return n.EMPTY_TAG_NODE_LIST.includes(e)?" ":t.textContent}))}}n.EMPTY_TAG_NODE_LIST=["BR","HR","IMG","INPUT"],e.InteractiveRolInternalReadingUnit=n},837:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReadingUnitsProvider=void 0;const i=n(666),o=n(319),r=n(653);class l{static getInstance(){return null===l.instance&&(l.instance=new l),l.instance}constructor(){this.internalReadingUnits=null,this.externalReadingUnits=null,this.extractionCompleted=!1}getExternalReadingUnits(){return this.extractionCompleted&&null!==this.externalReadingUnits||this.extractReadingUnits(),this.externalReadingUnits}getInternalReadingUnit(t){this.extractionCompleted&&null!==this.internalReadingUnits||this.extractReadingUnits();const e=parseInt(t,10);return isNaN(e)||e<0||e>=this.internalReadingUnits.length?null:this.internalReadingUnits[e]}extractReadingUnits(){if(this.extractionCompleted=!1,this.internalReadingUnits=[],this.externalReadingUnits=[],!document||!document.body)return;const t=document.body;let e=t,n=i.ReadingNavigationUtils.getUnitContainer(e),o=[];for(;e&&i.ReadingNavigationUtils.shouldSkipNode(e);)e=i.ReadingNavigationUtils.getNextSubtreeNode(t,e);for(;e;){let l=!1;if(e===(null==n?void 0:n.nextSibling))n=i.ReadingNavigationUtils.getUnitContainer(e),l=!0;else{const s=e.nodeName.toUpperCase();for((e.nodeType===Node.TEXT_NODE||r.InteractiveRolInternalReadingUnit.EMPTY_TAG_NODE_LIST.includes(s))&&o.push(e),e=i.ReadingNavigationUtils.getNextReadingNode(t,e),i.ReadingNavigationUtils.isUnitContainer(e)&&(n=e,l=!0);e&&i.ReadingNavigationUtils.shouldSkipNode(e);)e=i.ReadingNavigationUtils.getNextSubtreeNode(t,e),i.ReadingNavigationUtils.isUnitContainer(e)&&(n=e,l=!0)}l&&(this.createAndStoreReadingUnits(o),o=[])}this.createAndStoreReadingUnits(o),this.extractionCompleted=!0}createAndStoreReadingUnits(t){if(i.ReadingNavigationUtils.areEmptyOrWhiteSpaceTextNodes(t))return;const e=new r.InteractiveRolInternalReadingUnit(t),n=this.internalReadingUnits.length.toString(),l=e.textContents.join(""),s=new o.InteractiveRolExternalReadingUnit(n,l);this.internalReadingUnits.push(e),this.externalReadingUnits.push(s)}}l.instance=null,e.ReadingUnitsProvider=l},266:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.expandToLineRange=e.createRangeForWord=e.getScrollContainer=e.isElementVisible=e.SCROLL_DEBOUNCE_MS=void 0;const i=n(919);function o(t,e,n){if(t.startContainer.nodeType===Node.TEXT_NODE&&t.startOffset>0){const n=Math.max(0,t.startOffset-e);if(n!==t.startOffset)return t.setStart(t.startContainer,n),!0}const i=function(t,e){var n,i,o;if(e){const i=Array.from(e),o=i.indexOf(t);if(-1===o)return null;for(let e=o-1;e>=0;e--)if(i[e]!==t&&(null!==(n=i[e].textContent)&&void 0!==n?n:"").trim().length>0)return i[e];return null}let r=t;const l=null===(i=t.ownerDocument)||void 0===i?void 0:i.body;if(!l)return null;for(;r&&r!==l;)if(r.previousSibling){for(r=r.previousSibling;r.lastChild;)r=r.lastChild;if(r.nodeType===Node.TEXT_NODE&&(null!==(o=r.textContent)&&void 0!==o?o:"").trim().length>0)return r}else r=r.parentNode;return null}(t.startContainer,n);if(i&&i.textContent){const n=Math.max(0,i.textContent.length-e);return t.setStart(i,n),!0}return!1}function r(t,e,n){var i,o;if(t.endContainer.nodeType===Node.TEXT_NODE){const n=null!==(o=null===(i=t.endContainer.textContent)||void 0===i?void 0:i.length)&&void 0!==o?o:0;if(t.endOffset0)return i[e];return null}let r=t;const l=null===(i=t.ownerDocument)||void 0===i?void 0:i.body;if(!l)return null;for(;r&&r!==l;)if(r.nextSibling){for(r=r.nextSibling;r.firstChild;)r=r.firstChild;if(r.nodeType===Node.TEXT_NODE&&(null!==(o=r.textContent)&&void 0!==o?o:"").trim().length>0)return r}else r=r.parentNode;return null}(t.endContainer,n);if(r&&r.textContent){const n=Math.min(e,r.textContent.length);return t.setEnd(r,n),!0}return!1}function l(t,e){if(0===t.length)return!1;if(1===t.length){const e=t[0];return 0===e.top&&0===e.bottom&&0===e.left&&0===e.right}const n=t[0],i=t[t.length-1],o=n.height,r=i.height,l=n.top,s=n.bottom,a=i.top,d=i.bottom;return o+r<=d-l||d-l<=0||o+r>d-l&&(l!==a||s!==d)&&(e?n.leftl||i.left>n.right:i.left=0&&e.left>=0&&e.bottom<=n.innerHeight&&e.right<=n.innerWidth},e.getScrollContainer=function(t,e){let n=i.DomUtilties.getParentElement(t);for(;n&&n!==e.body;){const t=n.clientHeight>0&&n.scrollHeight>n.clientHeight,e=n.clientWidth>0&&n.scrollWidth>n.clientWidth;if(t||e)return n;n=i.DomUtilties.getParentElement(n)}return e.body},e.createRangeForWord=function(t,e,n){const o=t.contentNodes,r=o.length;if(0===r||n<=0||e<0)return null;let l=e,s=0;for(;s=o[s].length;)l-=o[s].length,s++;if(s>=r)return null;let a,d=s;const c=o[d].length-l;if(n>c){let t=n-c;for(d++;do[d].length;)t-=o[d].length,d++;if(d>=r)return null;a=t}else a=l+n;const h=o[0].ownerDocument;if(!i.DomUtilties.isInDocument(o[s],h)||!i.DomUtilties.isInDocument(o[d],h))return null;const u=h.createRange();return u.setStart(o[s],l),u.setEnd(o[d],a),u},e.expandToLineRange=function(t,e){const n=t.cloneRange(),i=e?new Set(e):void 0,s=t.startContainer.ownerDocument,a=!!s&&function(t){var e,n,i,o;return"rtl"===((null===(e=t.documentElement)||void 0===e?void 0:e.getAttribute("dir"))||(null===(n=t.body)||void 0===n?void 0:n.getAttribute("dir"))||(null===(o=null===(i=t.defaultView)||void 0===i?void 0:i.getComputedStyle(t.documentElement))||void 0===o?void 0:o.direction))}(s);return function(t,e,n){const i=[10,1];for(const r of i){let i=t.startContainer,s=t.startOffset;for(;o(t,r,n);){const n=t.getClientRects();if(0===n.length||l(n,e)){t.setStart(i,s);break}i=t.startContainer,s=t.startOffset}}}(n,a,i),function(t,e,n){const i=[10,1];for(const o of i){let i=t.endContainer,s=t.endOffset;for(;r(t,o,n);){const n=t.getClientRects();if(0===n.length||l(n,e)){t.setEnd(i,s);break}i=t.endContainer,s=t.endOffset}}}(n,a,i),n}},721:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveRolManager=void 0;const i=n(837),o=n(22);e.InteractiveRolManager=class{static getReadingUnits(){return i.ReadingUnitsProvider.getInstance().getExternalReadingUnits()}static highlightReadingUnit(t){const e=i.ReadingUnitsProvider.getInstance().getInternalReadingUnit(t);return!!e&&o.InteractiveRolReadingUnitsHighlighter.getInstance().highlightAndScroll(e)}static highlightReadingUnitByWord(t,e){const n=i.ReadingUnitsProvider.getInstance().getInternalReadingUnit(t);return!!n&&o.InteractiveRolReadingUnitsHighlighter.getInstance().highlightReadingUnitByWord(t,n,e)}static handlePlaybackState(t){o.InteractiveRolReadingUnitsHighlighter.getInstance().handlePlaybackState(t)}static cancelHighlights(){o.InteractiveRolReadingUnitsHighlighter.getInstance().dispose()}}},22:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveRolReadingUnitsHighlighter=void 0;const i=n(919),o=n(988),r=n(409),l=n(266),s=n(219);class a{static getInstance(){return a.instance||(a.instance=new a),a.instance}constructor(){this.highlightSpans=[],this.lineResource=null,this.wordResource=null,this.lineTop=-1,this.lineBottom=-1,this.styleElement=null,this.currentUnit=null,this.scroller=new s.InteractiveRolReadingUnitsScroller,this.wordSyncUnit=null,this.wordSyncUnitId=null,this.wordSyncOffsets=null,this.wordSyncStartTime=0,this.wordSyncTimerId=null,this.wordSyncCurrentIndex=0,this.wordSyncPaused=!1,this.wordSyncPauseElapsed=0}highlightAndScroll(t){if(this.currentUnit===t&&this.highlightSpans.length>0)return!0;this.clearHighlight(),this.currentUnit=t,this.ensureStyleElement();const e=t.contentNodes.filter((t=>{var e;return i.DomUtilties.isInDocument(t,t.ownerDocument)&&(null!==(e=t.textContent)&&void 0!==e?e:"").trim().length>0}));if(0===e.length)return!1;for(const t of e){const e=document.createElement(a.HIGHLIGHT_SPAN_TAG);e.className=a.HIGHLIGHT_ACTIVE_CLASS,t.parentNode.insertBefore(e,t),e.appendChild(t),this.highlightSpans.push(e)}return this.highlightSpans.length>0&&this.scroller.scrollToElementIfEnabled(this.highlightSpans[0]),!0}highlightWordAndLine(t,e,n){this.currentUnit!==t?(this.clearHighlight(),this.currentUnit=t,this.lineTop=-1,this.lineBottom=-1):this.clearWordHighlight(),this.ensureStyleElement(),this.updateLineHighlight(t,e,n),this.updateWordHighlight(t,e,n)}highlightReadingUnitByWord(t,e,n){let i;null!==this.wordSyncTimerId&&(clearTimeout(this.wordSyncTimerId),this.wordSyncTimerId=null);try{i=JSON.parse(n)}catch(t){return!1}return!(!Array.isArray(i)||0===i.length||(i=i.filter((t=>Number.isFinite(t.textOffset)&&Number.isFinite(t.textLength)&&Number.isFinite(t.audioOffsetMilliseconds)&&t.textLength>0)),0===i.length||(this.wordSyncUnit=e,this.wordSyncUnitId=t,this.wordSyncOffsets=i,this.wordSyncStartTime=performance.now(),this.wordSyncCurrentIndex=0,this.wordSyncPaused=!1,this.scheduleNextWordSync(0),0)))}handlePlaybackState(t){if(t)null!==this.wordSyncTimerId&&(clearTimeout(this.wordSyncTimerId),this.wordSyncTimerId=null),this.wordSyncPauseElapsed=performance.now()-this.wordSyncStartTime,this.wordSyncPaused=!0;else{if(!this.wordSyncPaused||!this.wordSyncOffsets||this.wordSyncCurrentIndex>=this.wordSyncOffsets.length)return this.wordSyncPaused=!1,void(this.wordSyncPauseElapsed=0);this.wordSyncPaused=!1,this.wordSyncStartTime=performance.now()-this.wordSyncPauseElapsed,this.scheduleNextWordSync(this.wordSyncCurrentIndex)}}cancelWordByWordHighlight(){null!==this.wordSyncTimerId&&(clearTimeout(this.wordSyncTimerId),this.wordSyncTimerId=null),this.clearLineHighlight(),this.clearWordHighlight(),this.wordSyncUnit=null,this.wordSyncUnitId=null,this.wordSyncOffsets=null,this.wordSyncStartTime=0,this.wordSyncCurrentIndex=0,this.wordSyncPaused=!1,this.wordSyncPauseElapsed=0}clearUnitHighlight(){for(const t of this.highlightSpans)if(t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}this.highlightSpans=[]}clearHighlight(){this.clearUnitHighlight(),this.clearLineHighlight(),this.clearWordHighlight(),this.scroller.resetTrackedElement(),this.currentUnit&&(this.currentUnit.contentNodes=this.currentUnit.contentNodes.filter((t=>i.DomUtilties.isInDocument(t,t.ownerDocument)))),this.currentUnit=null}dispose(){this.cancelWordByWordHighlight(),this.clearHighlight(),this.scroller.dispose(),this.removeStyleElement(),a.instance=null}updateLineHighlight(t,e,n){const i=(0,l.createRangeForWord)(t,e,n);if(!i)return;const o=i.getBoundingClientRect();if(null!==this.lineResource&&o.top>=this.lineTop&&o.bottom<=this.lineBottom)return;this.clearLineHighlight();const r=(0,l.createRangeForWord)(t,e,n);if(!r)return;const s=r.getBoundingClientRect(),d=(0,l.expandToLineRange)(r,t.contentNodes);d&&(this.lineResource=this.surroundRange(t,d,[a.LINE_HIGHLIGHT_CLASS]),this.lineTop=s.top,this.lineBottom=s.bottom)}updateWordHighlight(t,e,n){const i=(0,l.createRangeForWord)(t,e,n);if(!i)return;this.wordResource=this.surroundRange(t,i,[a.WORD_HIGHLIGHT_CLASS]);const o=this.wordResource.value();o&&o.length>0&&this.scroller.scrollToElementIfEnabled(o[0])}surroundRange(t,e,n){const i=new Set(t.contentNodes);return r.Highlighter.surroundTextByTag(a.HIGHLIGHT_SPAN_TAG,e,(t=>{var e;return o.StringUtilities.NONEMPTY_STRING_REGEX.test(null!==(e=t.textContent)&&void 0!==e?e:"")&&i.has(t)}),((e,n)=>{const o=t.contentNodes,r=o.indexOf(e);if(r>=0){o.splice(r,1,...n),i.delete(e);for(const t of n)i.add(t)}}),n)}clearLineHighlight(){this.lineResource&&(this.lineResource.release(),this.lineResource=null,this.filterStaleContentNodes())}clearWordHighlight(){this.wordResource&&(this.wordResource.release(),this.wordResource=null,this.filterStaleContentNodes())}filterStaleContentNodes(){var t;const e=null!==(t=this.currentUnit)&&void 0!==t?t:this.wordSyncUnit;e&&(e.contentNodes=e.contentNodes.filter((t=>i.DomUtilties.isInDocument(t,t.ownerDocument))))}scheduleNextWordSync(t){const e=this.wordSyncOffsets;if(!e||t>=e.length||null===this.wordSyncUnitId||!this.wordSyncUnit)return void(this.wordSyncTimerId=null);const n=e[t],i=performance.now()-this.wordSyncStartTime,o=Math.max(0,n.audioOffsetMilliseconds+a.HIGHLIGHT_DELAY_MS-i);this.wordSyncTimerId=setTimeout((()=>{null!==this.wordSyncUnitId&&this.wordSyncUnit&&(this.wordSyncCurrentIndex=t+1,this.highlightWordAndLine(this.wordSyncUnit,n.textOffset,n.textLength),this.scheduleNextWordSync(t+1))}),o)}ensureStyleElement(){this.styleElement||(this.styleElement=document.createElement("style"),this.styleElement.textContent=a.HIGHLIGHT_STYLE,document.head.appendChild(this.styleElement))}removeStyleElement(){this.styleElement&&this.styleElement.parentNode&&this.styleElement.parentNode.removeChild(this.styleElement),this.styleElement=null}}a.instance=null,a.HIGHLIGHT_SPAN_TAG="msinteractiverolspan",a.HIGHLIGHT_ACTIVE_CLASS="msinteractiverol-highlight",a.LINE_HIGHLIGHT_CLASS="msinteractiverol-line-highlight",a.WORD_HIGHLIGHT_CLASS="msinteractiverol-word-highlight",a.HIGHLIGHT_DELAY_MS=300,a.HIGHLIGHT_STYLE=`.${a.HIGHLIGHT_ACTIVE_CLASS}{background: #b2d6f3 !important;color: black !important;}.${a.LINE_HIGHLIGHT_CLASS}{background:#b2d6f3 !important;color:black !important;}.${a.WORD_HIGHLIGHT_CLASS}{background:#ffff00 !important;color:black !important;}@media screen and (forced-colors: active) {.${a.HIGHLIGHT_ACTIVE_CLASS}{forced-color-adjust: none;background: yellow !important;color: black !important;}.${a.LINE_HIGHLIGHT_CLASS}{forced-color-adjust:none;background:highlight !important;color:highlighttext !important;}.${a.WORD_HIGHLIGHT_CLASS}{forced-color-adjust:none;background:yellow !important;color:black !important;}}`,e.InteractiveRolReadingUnitsHighlighter=a},219:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveRolReadingUnitsScroller=void 0;const i=n(266);e.InteractiveRolReadingUnitsScroller=class{constructor(){this.shouldScrollIntoView=!0,this.isScrolling=!1,this.scrollDebounceHandle=null,this.scrollListener=null,this.trackedElement=null}scrollToElementIfEnabled(t){this.ensureScrollListenerInitialized(),this.trackedElement=t,this.shouldScrollIntoView||this.isScrolling||(this.shouldScrollIntoView=(0,i.isElementVisible)(t)),this.shouldScrollIntoView&&this.scrollElementIntoView(t)}dispose(){this.removeScrollListener(),this.trackedElement=null,this.shouldScrollIntoView=!0,this.isScrolling=!1}resetTrackedElement(){this.trackedElement=null}ensureScrollListenerInitialized(){this.scrollListener||(this.scrollListener=t=>{null===this.scrollDebounceHandle?(this.shouldScrollIntoView=!1,this.isScrolling=!0):window.clearTimeout(this.scrollDebounceHandle),this.scrollDebounceHandle=window.setTimeout((()=>{this.isScrolling=!1,this.scrollDebounceHandle=null,this.trackedElement&&(this.shouldScrollIntoView=(0,i.isElementVisible)(this.trackedElement))}),i.SCROLL_DEBOUNCE_MS)},document.addEventListener("scroll",this.scrollListener,!0))}removeScrollListener(){this.scrollListener&&(document.removeEventListener("scroll",this.scrollListener,!0),this.scrollListener=null),null!==this.scrollDebounceHandle&&(window.clearTimeout(this.scrollDebounceHandle),this.scrollDebounceHandle=null)}scrollElementIntoView(t){const e=t.ownerDocument,n=e.defaultView;if(!n)return;if((0,i.isElementVisible)(t))return;const o=(0,i.getScrollContainer)(t,e);if(o&&o!==e.body&&(this.scrollElementInContainer(t.getBoundingClientRect(),o),(0,i.isElementVisible)(t)))return;const r=t.getBoundingClientRect().top-n.innerHeight/2;n.scrollBy(0,r)}scrollElementInContainer(t,e){const n=e.getBoundingClientRect();t.topn.bottom&&(e.scrollTop+=t.bottom-n.bottom),t.leftn.right&&(e.scrollLeft+=t.right-n.right)}}}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={exports:{}};return t[i](r,r.exports,n),r.exports}(()=>{const t=new(n(998).InteractiveRolRuntime);window.interactiveRolRuntime=t})()})();{"0":{"themeName":"Sepia","bgColor":{"color":"#F9F5E9","cssVariable":"--sepia-color"},"link":{"default":{"color":"#0072C9","cssVariable":"--sepia_default-link-color"},"active":{"color":"#097DD5","cssVariable":"--sepia_active-link-color"}}},"1":{"themeName":"Light","bgColor":{"color":"#FCFCFC","cssVariable":"--light-color"},"link":{"default":{"color":"#0075CF","cssVariable":"--light_default-link-color"},"active":{"color":"#0D7FD6","cssVariable":"--light_active-link-color"}}},"2":{"themeName":"Grey","bgColor":{"color":"#E6E6E6","cssVariable":"--grey-color"},"link":{"default":{"color":"#0069B9","cssVariable":"--grey_default-link-color"},"active":{"color":"#0075CF","cssVariable":"--grey_active-link-color"}}},"3":{"themeName":"Black","bgColor":{"color":"#000000","cssVariable":"--black-color"},"link":{"default":{"color":"#0078D4","cssVariable":"--black_default-link-color"},"active":{"color":"#006CBE","cssVariable":"--black_active-link-color"}}},"4":{"themeName":"Green","bgColor":{"color":"#91ffa6","cssVariable":"--green-color"},"link":{"default":{"color":"#0069B9","cssVariable":"--green_default-link-color"},"active":{"color":"#0075CF","cssVariable":"--green_active-link-color"}}},"5":{"themeName":"Blue","bgColor":{"color":"#87faff","cssVariable":"--blue-color"},"link":{"default":{"color":"#0069B9","cssVariable":"--blue_default-link-color"},"active":{"color":"#0075CF","cssVariable":"--blue_active-link-color"}}},"6":{"themeName":"Yellow","bgColor":{"color":"#feff5c","cssVariable":"--yellow-color"},"link":{"default":{"color":"#0072C9","cssVariable":"--yellow_default-link-color"},"active":{"color":"#097DD5","cssVariable":"--yellow_active-link-color"}}},"7":{"themeName":"Rose","bgColor":{"color":"#febaba","cssVariable":"--rose-color"},"link":{"default":{"color":"#005699","cssVariable":"--rose_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--rose_active-link-color"}}},"8":{"themeName":"Apricot","bgColor":{"color":"#f1bfa9","cssVariable":"--apricot-color"},"link":{"default":{"color":"#005699","cssVariable":"--apricot_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--apricot_active-link-color"}}},"9":{"themeName":"LightOrange","bgColor":{"color":"#f0d592","cssVariable":"--light-orange-color"},"link":{"default":{"color":"#0060A9","cssVariable":"--light-orange_default-link-color"},"active":{"color":"#006CBE","cssVariable":"--light-orange_active-link-color"}}},"10":{"themeName":"LightYellow","bgColor":{"color":"#eceb8b","cssVariable":"--light-yellow-color"},"link":{"default":{"color":"#0069B9","cssVariable":"--light-yellow_default-link-color"},"active":{"color":"#0075CF","cssVariable":"--light-yellow_active-link-color"}}},"11":{"themeName":"Lime","bgColor":{"color":"#b8d686","cssVariable":"--lime-color"},"link":{"default":{"color":"#005699","cssVariable":"--lime_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--lime_active-link-color"}}},"12":{"themeName":"LightGreen","bgColor":{"color":"#a5da90","cssVariable":"--light-green-color"},"link":{"default":{"color":"#005699","cssVariable":"--light-green_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--light-green_active-link-color"}}},"13":{"themeName":"LightTeal","bgColor":{"color":"#94e2be","cssVariable":"--light-teal-color"},"link":{"default":{"color":"#005CA3","cssVariable":"--light-teal_default-link-color"},"active":{"color":"#0069B9","cssVariable":"--light-teal_active-link-color"}}},"14":{"themeName":"Turquoise","bgColor":{"color":"#89e1dd","cssVariable":"--turquoise-color"},"link":{"default":{"color":"#005CA3","cssVariable":"--turquoise_default-link-color"},"active":{"color":"#0069B9","cssVariable":"--turquoise_active-link-color"}}},"15":{"themeName":"Teal","bgColor":{"color":"#8ed5de","cssVariable":"--teal-color"},"link":{"default":{"color":"#005699","cssVariable":"--teal_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--teal_active-link-color"}}},"16":{"themeName":"SkyBlue","bgColor":{"color":"#a3cfe4","cssVariable":"--sky-blue-color"},"link":{"default":{"color":"#005699","cssVariable":"--sky-blue_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--sky-blue_active-link-color"}}},"17":{"themeName":"LightBlue","bgColor":{"color":"#b3caec","cssVariable":"--light-blue-color"},"link":{"default":{"color":"#005699","cssVariable":"--light-blue_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--light-blue_active-link-color"}}},"18":{"themeName":"Lavender","bgColor":{"color":"#d1bfeb","cssVariable":"--lavender-color"},"link":{"default":{"color":"#005393","cssVariable":"--lavender_default-link-color"},"active":{"color":"#0060A9","cssVariable":"--lavender_active-link-color"}}},"19":{"themeName":"Orchid","bgColor":{"color":"#edb5f3","cssVariable":"--orchid-color"},"link":{"default":{"color":"#005393","cssVariable":"--orchid_default-link-color"},"active":{"color":"#0060A9","cssVariable":"--orchid_active-link-color"}}},"20":{"themeName":"Pink","bgColor":{"color":"#f6b6d9","cssVariable":"--pink-color"},"link":{"default":{"color":"#005699","cssVariable":"--pink_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--pink_active-link-color"}}},"21":{"themeName":"Carnation","bgColor":{"color":"#fdacc3","cssVariable":"--carnation-color"},"link":{"default":{"color":"#00508E","cssVariable":"--carnation_default-link-color"},"active":{"color":"#005CA3","cssVariable":"--carnation_active-link-color"}}},"22":{"themeName":"DarkGrey","bgColor":{"color":"#242424","cssVariable":"--dark-grey-color"},"link":{"default":{"color":"#3091DC","cssVariable":"--dark-grey_default-link-color"},"active":{"color":"#1E88D9","cssVariable":"--dark-grey_active-link-color"}}}}var Microsoft;(()=>{"use strict";var e,t={d:(e,n)=>{for(var s in n)t.o(n,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{Translator:()=>Ye}),function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=4]="Info",e[e.Debug=8]="Debug",e[e.Assert=16]="Assert",e[e.All=4294967295]="All"}(e||(e={}));let s=null,r=0;class i{constructor(e,t,n){if(this.authorizationUrl=e,this.translationUrl=t,this.issueTokenUrl=n,null==e||0===e.length||null==t||0===t.length||null==n||0===n.length)throw new Error("The URL can not be empty")}getAuthorizationTokenAsync(){return function(){if(null==s||0==r)return!1;const e=((new Date).getTime()-r)/6e4;return Math.round(e)<=8}()?Promise.resolve(s):(r=(new Date).getTime(),null!=this.translateServiceSubscriptionKey&&""!=this.translateServiceSubscriptionKey?et(Ke.POST,this.issueTokenUrl,{headers:{"Ocp-Apim-Subscription-Key":this.translateServiceSubscriptionKey,"Content-Type":"application/x-www-form-urlencoded"}}):et(Ke.GET,this.authorizationUrl,{}))}asyncFetchHelper(e,t,n,r,i,o){if(null==t||0===t.length)return Promise.reject(new Ze("toLang cannot be null or empty"));if(null==n)return Promise.reject(new Ze("Must specify an array of text items to translate"));s=r;const a={from:e||"",to:t};let l;a["api-version"]="3.0",a.includeSentenceLength="true";let u=0;const h=[];for(l=0;lr?this.translateAsyncHelper(e,t,n,r,i.NETWORK_ATTEMPTS,s,!1):Promise.reject("Invalid auth token"))).catch((e=>Promise.reject(e)))}translateAsyncHelper(e,t,n,s,r,i,o){return this.asyncFetchHelper(e,t,n,s,i,o).then((e=>e)).catch((o=>1===r||0!==o.status?Promise.reject(o):this.translateAsyncHelper(e,t,n,s,r-1,i,!0)))}}i.NETWORK_ATTEMPTS=5,i.TEXT_CONTENT="text/plain",i.XML_CONTENT="text/xml",i.HTML_CONTENT="text/html";class o{getAuthorizationTokenAsync(){return Promise.resolve("null")}translateAsync(e,t,n,s){if(null==t||0===t.length)return Promise.reject(new Ze("toLang cannot be null or empty"));if(null==n)return Promise.reject(new Ze("Must specify an array of text items to translate"));""==e&&(e=t);let r=0;n.forEach((e=>{r+=e.length})),s({charactersToTranslateCount:r,isRetry:!1});const i=[];for(const s of n)if(window.mockApiMap[s]&&window.mockApiMap[s][t]){const n=window.mockApiMap[s][t];i.push({TranslatedText:n,From:e})}else a.error("Could not translate: "+s+" from "+e+" to "+t),i.push({From:e,TranslatedText:""});return Promise.resolve(i)}}const a={info(...t){l.logLevel&e.Info&&console.info(...t)},warning(...t){l.logLevel&e.Warning&&console.warn(...t)},error(...t){l.logLevel&e.Error&&console.error(...t)},assert(t,...n){l.logLevel&e.Debug&&(n.unshift(t),console.assert(t,...n))},debug(...t){l.logLevel&e.Debug&&console.debug(...t)}},l={logLevel:e.Error,debug:!1},u={translationStartTime:0,requestsInitiated:!1};let h;function d(e){h=e}var c;function m(e){switch(e){case c.AzureAPIV3:return a.debug("Using Translate V3 APIs"),new i("https://edge.microsoft.com/translate/auth","https://api.cognitive.microsofttranslator.com/translate","https://api.cognitive.microsoft.com/sts/v1.0/issueToken");case c.TranslateTestAPI:return a.debug("Using Translate Test Client"),new o;case c.WebXtServerTranslateAPI:return a.debug("Using WebXt Server Translate API"),new i("https://edge.microsoft.com/translate/auth","https://api-edge.cognitive.microsofttranslator.com/translate","https://api.cognitive.microsoft.com/sts/v1.0/issueToken");default:return void a.debug("Incorrect translate version passed from CPP !")}}let f;function g(e){return Object.freeze(new Map(Object.entries(e)))}function p(e){return Object.freeze(e)}!function(e){e[e.BingAPIV2=1]="BingAPIV2",e[e.AzureAPIV3=2]="AzureAPIV3",e[e.EdgeTranslateAPI=3]="EdgeTranslateAPI",e[e.TranslateTestAPI=4]="TranslateTestAPI",e[e.WebXtServerTranslateAPI=5]="WebXtServerTranslateAPI"}(c||(c={})),f=m(Number("$$VERSIONTOUSE"))??m(c.AzureAPIV3);const T=g({head:1,script:1,style:1,code:1,samp:1,var:1,kbd:1,pre:1,object:1,address:1,noscript:1,embed:1,map:1}),b=g({textarea:1});var E;!function(e){e[e.Inherit=0]="Inherit",e[e.On=1]="On",e[e.Off=2]="Off"}(E||(E={}));const N=Object.assign(g({hr:1,input:1,title:1,br:1,frame:1,iframe:1,textarea:1}),T),_=()=>!0,y=g({INPUT:[{predicate:e=>["button","submit","reset"].includes(e?.type),attributes:["value"]},{predicate:e=>["image"].includes(e?.type),attributes:["alt"]},{predicate:_,attributes:["placeholder"]}],TEXTAREA:[{predicate:_,attributes:["placeholder"]}],IMG:[{predicate:_,attributes:["alt"]}],AREA:[{predicate:_,attributes:["alt"]}],OPTION:[{predicate:_,attributes:["label"]}],OPTGROUP:[{predicate:_,attributes:["label"]}],TRACK:[{predicate:_,attributes:["label"]}]}),A=g({true:E.On,yes:E.On,false:E.Off,no:E.Off,skip:E.Off}),v=g({translate:A}),S=g({skiptranslate:E.Off,notranslate:E.Off}),C="_mstHidden",w="_mstVisible",O=p(["_mstTextHash","_msthash",C,w,...new Set(Object.values(y).flat().map((e=>e.attributes)).flat().map((e=>"_mst"+e)))]),k=p(["style","class"]);var x;!function(e){e[e.Auto=0]="Auto",e[e.Scrolled=1]="Scrolled",e[e.Mutation=2]="Mutation",e[e.VisibilityChange=3]="VisibilityChange"}(x||(x={}));const M=-1;function D(e,t){if(e.nodeType!=Node.ELEMENT_NODE)return"";const n=window.getComputedStyle(e);return n&&n[t=t.replace(/([A-Z])/g,"-$1").toLowerCase()]||""}function L(e){return e?encodeURIComponent(e).replace(/%\w\w/g," ").length:0}function R(e,t){return e.nodeType===Node.ELEMENT_NODE?e.getAttribute(t)||e[t]:null}function P(e,...t){Promise.resolve().then((()=>e(...t)))}const I=window;let V,F;function H(e){j(),V=new AbortController,I.addEventListener("scroll",e,{capture:!0,once:!0,signal:V.signal})}function j(){V?.abort(),V=void 0}function B(){F?.abort(),F=void 0}const q=10;function U(e){try{let t=0,n=e.contentWindow;for(;n&&n!=top;)t++,n=n.parent;return t}catch(e){return a.debug(e),q+1}}function J(e){try{return e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&e.contentWindow.document.body&&U(e)<=q}catch(e){}return!1}function z(e){try{return e&&e.contentWindow&&e.contentWindow.document||!1}catch(e){}return!1}const W={ar:!0,fa:!0,he:!0,ku:!0,ps:!0,ur:!0};class X{constructor(e,t){this.name=t,this.code=X.normalizeCode(e)}toString(){return`${this.code}: ${this.name}`}static isRtl(e){return(e=X.normalizeCode(e)).toLowerCase()in W}static equals(e,t){return null!=e&&null!=t&&e.code===t.code}static normalizeCode(e){let t="",n="",s="";const r=e.split("-");t=r[0].toLowerCase();for(let e=1;e/g,Y=/<\s*(\/)?\s*(\w+)\s*(\d*)\s*>/g,Z=/&/gi,ee=/</gi,te=/>/gi,ne=/<\/?\w+>/g,se=/<(?!\/?b\d+>)[^>]*>/g,re=new Set;function ie(e){if(!e||"string"!=typeof e.nodeName)return[];const t=new Set,n=y.get(e.nodeName);for(let s=0;n&&s0&&i.trim().length>0&&t.add(n[s].attributes[r])}if(e.hasAttribute("aria-label")){const n=e.getAttribute("aria-label");n&&n.length>0&&t.add("aria-label")}return[...t]}function oe(e){if(e.nodeType==Node.TEXT_NODE||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!0;if(e.nodeType!=Node.ELEMENT_NODE)return!1;const t=e;return!!(J(t)||t.hasChildNodes()||t.nodeName in y)&&(!T.has(t.nodeName.toLowerCase())&&(ae(t)!=E.Off&&(!!J(t)||function(e,t){if(!e||!e.children&&!e.shadowRoot)return!1;const n=[0];for(;n.length>0&&e;){if(n.length>=5)return!0;const t=n.length-1;if(e.shadowRoot)return!0;if(!e.children||n[t]>=e.children.length){if(n.pop(),0===n.length)break;e=e.parentNode}else{if(J(e.children[n[t]]))return!0;if(ie(e.children[n[t]]).length>0)return!0;e=e.children[n[t]],n[t]=n[t]+1,n.push(0)}}const s=e?.textContent;return!!s&&ue(s)}(t))))}function ae(e){let t=E.Inherit;if(!e||e.nodeType!=Node.ELEMENT_NODE)return t;for(const n of v.keys()){const s=R(e,n);if(null!=s){const e=v.get(n);if(t=e&&e.get(s.toString().toLowerCase())||t,t==E.Off)return t}}const n=R(e,"class")||R(e,"className");if(null!=n){const e=n.toString().split(" ");for(let n=0;n{if(t.contains(e))return!0})),!1}function ue(e){return new RegExp("[a-zA-Z0-9\\?!"+String.fromCodePoint(191)+String.fromCodePoint(161)+".,:\\|"+String.fromCodePoint(192)+"-"+String.fromCodePoint(65535)+"]").test(e)}function he(e){return e.nodeType==Node.TEXT_NODE||!(!e.nodeName||!N.has(e.nodeName.toLowerCase()))||e.nodeType==Node.ELEMENT_NODE&&!e._mstChunk&&"inline"==D(e,"display").toLowerCase()&&"static"==D(e,"position").toLowerCase()&&![...e.childNodes].some((e=>!he(e)))}function de(e,t,n=1){if(n>9)return"";const s=[];let r=0;for(let i=0;i"),a!=E.Off&&s.push(de(e.childNodes[i],t,n+1)),s.push("")),++r;break}case Node.TEXT_NODE:{const t=e.childNodes[i].nodeValue;t&&s.push(ce(t));break}}return s.join("")}function ce(e){if(!e)return e;const t=e.replace($,"&").replace(G,"<").replace(K,">").replace(Q," "),n=/^\s/.test(t),s=/\s$/.test(t);return(n?" ":"")+t.trim()+(s?" ":"")}function me(e){return e?.replace(se,(function(e){return e.replace($,"&").replace(G,"<").replace(K,">")}))}function fe(e){if(e){if(e.shadowRoot)for(const t of e.shadowRoot.children)fe(t);if("frame"==e.nodeName.toLowerCase()||"iframe"==e.nodeName.toLowerCase()){const t=e.contentWindow?.document.documentElement;try{t&&fe(t)}catch(e){}}else{if(e._mstStyle)for(const t in e._mstStyle)try{e.style[t]=e._mstStyle[t]}catch(e){a.error(e)}if(e._mstStyle=null,e._mstSrcAttribute)for(const t in e._mstSrcAttribute)ge(e,t,e._mstSrcAttribute[t]);if(O.forEach((t=>e.removeAttribute?.(t))),e._mstSrcHtml&&e._mstSrcHtml.childNodes.length>0){for(;e.childNodes.length>0&&e.lastChild;)e.removeChild(e.lastChild);for(;e._mstSrcHtml.childNodes.length>0;)e.appendChild(e._mstSrcHtml.childNodes[0]);e._mstSrcHtml=void 0}else for(let t=0;t9))for(const s of e.childNodes)s.nodeType==Node.ELEMENT_NODE&&(t(s),pe(s,t,n+1))}let Te=0;const be=/[\s\xA0]/g;function Ee(e){let t=0;if(e){e=e.replace(be,"");for(let n=0;n0&&this._iActiveJobs{this._iActiveJobs-=1,e.onSuccess(t),this.startProcessing()}),(t=>{this._iActiveJobs-=1,e.onError(t),this.startProcessing()})),this._iActiveJobs+=1,this._iTotalTriggeredJobs+=1,this.optimizeParallelRequestsAmount()}}processBufferedRequest(e){const t=function(e,t){const n=[];for(;e.length>t;)n.push(e.substr(0,t)),e=e.substr(t);return 0==e.length&&0!=n.length||n.push(e),n}(e._aTextArray[0],this._iMaxChunkSize),n={};let s=!1;t.forEach(((r,i)=>{const o=new _e(e._sFrom,e._sTo,[r],i,((r,i)=>{if(n[r]=i,!s&&Object.keys(n).length==t.length){const s=[{From:"",TranslatedText:""}];for(let e=0;e{s=!0,e.onError(n),this.startProcessing()}));this.addJob(o)}))}numOfTotalJobsInQueue(){return this._aJobs.length+this._iActiveJobs}optimizeParallelRequestsAmount(){this._iTotalTriggeredJobs>33?this._iMaxParallelJobs=2:this._iMaxParallelJobs>3&&this._iTotalTriggeredJobs%10==0&&(this._iMaxParallelJobs=this._iMaxParallelJobs-this._iMaxParallelJobs/3)}}(4,Se,((...e)=>xe&&xe(...e)));function De(e,t){for(const n of e)ke.get(n.originalText)?.reject(t),ke.delete(n.originalText)}function Le(e,t){t.TranslatedText=me(t.TranslatedText),function(e,t){for(ye.set(e,t),ve+=e.length+t.TranslatedText.length;!(ye.size<=1e3&&ve<=4e6);){const e=ye.keys().next().value;ve-=e.length+ye.get(e)?.TranslatedText.length,ye.delete(e)}}(e.originalText,at(t));const n=ke.get(e.originalText);n?n.resolve(t):a.error("Promise does not exist for the provided text."),ke.delete(e.originalText)}function Re(){return Me.numOfTotalJobsInQueue()}class Pe{constructor(e=[]){this.pop=()=>this.items.pop(),this.shift=()=>this.items.shift(),this.push=e=>this.items.push(e),this.items=[...e]}get first(){return 0==this.length?void 0:this.items[0]}get top(){return 0==this.length?void 0:this.items[this.length-1]}get length(){return this.items.length}*[Symbol.iterator](){for(const e of this.items)yield e}get(e){return this.length<=e?void 0:this.items[e]}clear(){this.items.length=0}isEmpty(){return 0==this.items.length}}const Ie=Object.freeze({outsideView:1,insideView:2,hidden:4,unknown:64});function Ve(e){try{const t=(e=function(e){return e&&e.nodeType==Node.ELEMENT_NODE&&["option","optgroup"].includes(e.nodeName.toLowerCase())&&(e=e.closest("select")),e}(e)).nodeType===Node.ELEMENT_NODE?e:e.parentElement;let n;if(!["title"].includes(e.nodeName.toLowerCase())&&t&&t.nodeType===Node.ELEMENT_NODE&&(n=t.getBoundingClientRect())){if(0===n.height||0===n.width)return Ie.hidden;const e=window.innerHeight||document.documentElement.clientHeight;return n.top>=0&&n.top<=e+1e3||n.bottom>=0&&n.bottom<=e+1e3?Ie.insideView:Ie.outsideView}return Ie.insideView}catch(e){return Ie.insideView}}function Fe(e){return Ve(e)==Ie.insideView}function He(e,t,n){e&Ie.unknown||(n.items[n.length-1]++,e&Ie.hidden&&t.items[t.length-1]++)}function je(e,t,n){t.top&&t.top>0&&t.top===n.top&&e.length>0&&e.top?.nodeType==Node.ELEMENT_NODE&&e.top.setAttribute(C,t.top.toString());let s=t.pop();t.length>0&&(t.items[t.length-1]+=s),s=n.pop(),n.length>0&&(n.items[n.length-1]+=s)}function Be(e,t,n,s){const r=new Pe;r.push({node:e,depth:0});let i=0;for(;!r.isEmpty();){const e=r.pop();if(e.node.hasAttribute(w))continue;e.node.setAttribute(w,e.depth.toString()),e.node.removeAttribute(C);const o=s.getElementChunk(e.node);if(s.removeElementChunk(e.node),o){for(const n of o.getAllAttributes())t(e.node,n,o.getAttribute(n));i++}if(o&&o.elementText)n(e.node,o.elementText),i++;else{if(e.node.shadowRoot)for(const t of e.node.shadowRoot.children)r.push({node:t,depth:e.depth+1});for(let t=0;t5&&a.debug("Element contains children deeper than threshold while marking visible. Depth: "+n),r.push({node:e.node.children[t],depth:n})}}}return i}var qe;!function(e){e[e.ELEMENT_REQUEST=0]="ELEMENT_REQUEST",e[e.ATTRIBUTE_REQUEST=1]="ATTRIBUTE_REQUEST"}(qe||(qe={}));class Ue{constructor(e){this.element=e,this.text=null,this.attributes=new Map,this.numBytes=0}getAllAttributes(){return this.attributes.keys()}get elementText(){return this.text}set elementText(e){this.numBytes-=L(this.text),this.text=e,this.numBytes+=L(e)}addAttribute(e,t){this.numBytes-=L(this.getAttribute(e)),this.attributes.set(e,t),this.numBytes+=L(t)}removeAttribute(e){this.numBytes-=L(this.getAttribute(e)),this.attributes.delete(e)}getAttribute(e){return this.attributes.get(e)}getStringBytes(){return this.numBytes}getNextAttribute(){const e=this.getAllAttributes().next();return e.done?null:e.value}removeNextAttribute(){const e=this.getNextAttribute();e&&this.removeAttribute(e)}isEmpty(){return!this.text&&0==this.attributes.size}removeElementText(){this.numBytes-=L(this.text),this.text=null}}class Je{constructor(){this.elementChunkMap=new Map}ensureElementChunk(e){const t=function(e){let t=Ne(e);return null==t&&(t=(Te++).toString(),e.setAttribute("_mstHash",t)),t}(e);let n=this.elementChunkMap.get(t);return null==n&&(n=new Ue(e),this.elementChunkMap.set(t,n)),n}addElementText(e,t){this.ensureElementChunk(e).elementText=t}addElementAttributes(e,t,n){this.ensureElementChunk(e).addAttribute(t,n)}removeElementChunk(e){const t=Ne(e);t&&this.elementChunkMap.delete(t)}getElementChunk(e){let t;const n=Ne(e);return n&&(t=this.elementChunkMap.get(n)),t}getNextElementChunk(){const e=this.getAllElementChunks().next();return e.done?null:e.value}getAllElementChunks(){return this.elementChunkMap.values()}get size(){return this.elementChunkMap.size}}class ze{constructor(e,t,n,s,r,i,o,l,u){var h,d,c,m,f;this._allDetectedLanguages={},this.bTranslateSelectedTextOnly=!1,this.bTranslateFullPageInOneGo=!1,this.iScrolledElementsTranslated=0,this.iHiddenElementsTranslated=0,this.bOnIntermediateCompleteCalled=!1,this.bAutoTraversalCompleted=!1,this._oMObservers=[],this.oTranslateMutationTask=null,this._maxIframeDepthSupported=10,this._maxTraversalIterations=1e4,this._aTranslatedNodes=[],this.bFlushedStartTerminalNode=!1,this.isTraverseDOMActive=!1,this.bSentTranslationComplete=!1,this.bSentTranslationError=!1,this._iVisibleTxtLength=0,this._bAborted=!1,this.outsideElementChunks=new Je,this.visibleElementChunks=new Je,this.hiddenElementChunks=new Je,this._bScrollingStopped=!1,this._bTxtChunksFlushed=!1,this.fontMutation=new Map,this.translateMutation=new Map,this.attributeMutation=new Map,this.traverseDOMRecursive=(e,t,n)=>{const s=e.domStack,r=e.properties,i=e.offsetFromStart,o=e.hidden,a=e.elements,l=e=>{He(this.flushChunk([e],!0),o,a)};let u=0;for(;u0&&(this._iVisibleTxtLength{P(this.traverseDOMRecursive,e,t,n)})),this._bScrollingStopped)break;return}u++}if(u!=this._maxTraversalIterations)if(this.isTranslationPaused()||this.migrateOutsideChunksToVisible(),this.visibleElementChunks.size>0||this._bTxtChunksFlushed||this._bScrollingStopped)this._bTxtChunksFlushed=!1,this._bScrollingStopped=!1,this.translate(e,t);else{if(this.bAutoTraversalCompleted=this.bAutoTraversalCompleted||t===x.Auto&&0===s.length,Re()>0)return;this.isTraverseDOMActive=!1,this.bAutoTraversalCompleted&&this.translationComplete()}else this.traverseDOMRecursive(e,t,n)},this.traverseDOM=(e,t)=>{try{const n=[];this._eDomRoot&&he(this._eDomRoot)&&!this.bFlushedStartTerminalNode&&(this.bFlushedStartTerminalNode=!0,this.flushChunk([this._eDomRoot])),P(this.traverseDOMRecursive,e,t,n)}catch(e){a.error("Unknown error in traverseDom.",e)}},this._sFrom=t,this._sTo=n,this._eDomRoot=e,this._fComplete=s,this._fVisibleComplete=l,this._fTranslateCallbacks=u,this._fError=function(e){if("function"==typeof r)try{r(Ge(e))}catch(e){a.error("Encountered exception while calling error handler",e)}},this.bTranslateSelectedTextOnly=!0===i,this.bTranslateFullPageInOneGo=!0===o,h=u.onTranslateApiCalled,xe=h,this._oApplyStyle=(c=this._sFrom,m=this._sTo,X.isRtl(c)===X.isRtl(m)?null:(f=m,X.isRtl(f)?{direction:"rtl",textAlign:"right"}:{direction:"ltr",textAlign:"left"})),d=n,null!=Ae&&Ae==d||(Ae=d,ye.clear())}getFromLanguage(){return this._sFrom}getToLanguage(){return this._sTo}translationComplete(){if(u.requestsInitiated&&(a.info("Took "+(performance.now()-u.translationStartTime)+" ms to translate"),u.translationStartTime=performance.now(),u.requestsInitiated=!1),!this.bSentTranslationComplete){if(this.bSentTranslationComplete=!0,this._eDomRoot&&this.bTranslateSelectedTextOnly&&this._aTranslatedNodes.length){!function(e,t){if(!e||!t||!t.length)return;const n=new ot;let s=0;for(n.push(0);s=0){const i=t[s];t[s]=t[r],t[r]=i,s++,e=e.parentNode,n.pop()}else n.top{this.addVisibleElementAttribute(e,t,n)}),((e,t)=>{this.addVisibleElementText(e,t)}),this.hiddenElementChunks)}markNodesAsOutsideView(e){return Be(e,((e,t,n)=>{this.outsideElementChunks.addElementAttributes(e,t,n)}),((e,t)=>{this.outsideElementChunks.addElementText(e,t)}),this.hiddenElementChunks)}pushIntoTraversalStack(e,t,n){e.domStack.push(t),e.properties.push({isRoot:!0,traverseTerminalOnly:n}),e.offsetFromStart.push(0),e.hidden.push(0),e.elements.push(0),this.flushChunk([t],!0)}updateAddedIframe(e){U(e)>this._maxIframeDepthSupported||(e.contentWindow.document.body?this.updateAddedIframeBody(e):e.contentWindow.onload=()=>this.updateAddedIframeBody(e))}updateAddedIframeBody(e){"complete"==e.contentWindow?.document.readyState?this.addIframeForTranslation(e):e.contentWindow.document.body.onload=()=>this.addIframeForTranslation(e)}addIframeForTranslation(e){const t=this.getTraversalStack();this.pushIntoTraversalStack(t,e,!1),this.isTraverseDOMActive||(this.isTraverseDOMActive=!0,u.translationStartTime=performance.now()),P(this.traverseDOM,t,x.Mutation),this.setMutationObserversForDocument(e.contentWindow)}addMutationObserver(e){const t=new Map,n=new Map;this._oMObservers.push(new MutationObserver((s=>{let r=!1;t.clear(),n.clear(),s.forEach((s=>{switch(s.type){case"characterData":{if(this.translateMutation.has(s.target)){const e=this.translateMutation.get(s.target);1===e?this.translateMutation.delete(s.target):this.translateMutation.set(s.target,e-1);break}if(le(s.target))break;let e=!0,i=s.target;for(;he(i);){if(null===i.parentNode||void 0===i.parentNode){e=!1;break}i=i.parentNode}if(!e){r=!0,this.flushChunk([s.target]);break}const o=i;if(i.nodeType===Node.ELEMENT_NODE&&i.hasAttribute("_mstHash")){o.hasAttribute("_mstTextHash")&&o.getAttribute("_mstTextHash")==Ee(i.textContent)||(r=!0,this.flushChunk([s.target]));break}t.has(i)||n.has(i)||(r=!0,t.set(i,1));break}case"attributes":if(k.some((e=>e===s.attributeName))){const t=s.target;if(s.target.nodeType==Node.ELEMENT_NODE&&t.getAttribute(C)){const n=Ve(t);let s=0;if(n&Ie.insideView){if(e.hidden){this.markNodesAsOutsideView(t);break}s=this.markNodesAsVisible(t),0===s?a.debug("A previously marked hidden chunk became visible but could not be located."):this.oTranslateMutationTask=(i=()=>{this.translate(this.getTraversalStack(),x.VisibilityChange)},(o=this.oTranslateMutationTask)&&!o.isCompleted||(o={rafRequestId:null,isCompleted:!1}),null!==o.rafRequestId&&cancelAnimationFrame(o.rafRequestId),o.rafRequestId=requestAnimationFrame((function(){P(i),o.isCompleted=!0})),o)}else n&Ie.outsideView&&(s=this.markNodesAsOutsideView(t),0===s&&a.debug("A previously marked hidden chunk became un-hidden but could not be located."))}break}if(this.attributeMutation.has(s.target)){const e=this.attributeMutation.get(s.target),t=s.attributeName;if(t&&t in e){1===e[t]?delete e[t]:e[t]-=1;break}}if(le(s.target))break;r=!0,this.flushChunk([s.target],!0);break;case"childList":for(let e=0;e{this.pushIntoTraversalStack(i,e,!0)})),Array.from(n.keys()).forEach((e=>{this.pushIntoTraversalStack(i,e,!1)})),r&&(r=!1,this.isTraverseDOMActive||(this.isTraverseDOMActive=!0,u.translationStartTime=performance.now()),P(this.traverseDOM,i,x.Mutation))}))),this._oMObservers[this._oMObservers.length-1].observe(e.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0,attributeFilter:["value","placeholder","aria-label",...k]})}triggerTraverseDom(e){this._bScrollingStopped=!0,this.isTraverseDOMActive||(this.isTraverseDOMActive=!0,u.translationStartTime=performance.now()),this.traverseDOM(this.getTraversalStack(),e)}setMutationObserversForDocument(e){if("MutationObserver"in e&&!this.bTranslateSelectedTextOnly&&!this.bTranslateFullPageInOneGo){const t=e.document;this.addMutationObserver(t);const n=t.querySelectorAll("iframe");for(let e=0;ee.disconnect())),j(),B()}onDocumentVisibilityChange(){document.hidden||this._bAborted||this.triggerTraverseDom(x.Scrolled)}cancel(){const e=performance.now();this.deRegisterEventListeners(),this._eDomRoot&&(this._bAborted=!0,we=[],Oe=0,ke.clear(),function(){const e=document.querySelector("head > title");e&&fe(e)}(),this.bTranslateSelectedTextOnly?fe(document.body):fe(this._eDomRoot),this._eDomRoot=null,a.info("Took "+(performance.now()-e)+" ms to untranslate."))}getDetectedLanguage(){return this._detectedLanguage}getAllDetectedLanguages(){return this._allDetectedLanguages}isTranslationPaused(){return this.bOnIntermediateCompleteCalled&&document.hidden}migrateOutsideChunksToVisible(){const e=()=>!(this._iVisibleTxtLength0&&(n=Ve(e),n&Ie.hidden&&e.setAttribute(C,"A"));for(const t of s){const s=ce(e.getAttribute(t));if(!s)continue;const r=Ee(s),i="_mst"+t;if(e.hasAttribute(i)&&e.getAttribute(i)==r)continue;ge(e,i,r);const o=this.getChunkStoreBasedOnVisibility(n);o==this.visibleElementChunks?document.hidden?this.outsideElementChunks.addElementAttributes(e,t,s):this.addVisibleElementAttribute(e,t,s):o.addElementAttributes(e,t,s),this._bTxtChunksFlushed=!0}}if(t)return n;if(e[0]&&e[0].parentNode&&e[0].parentNode.nodeType==Node.ELEMENT_NODE&&e[0].parentNode.hasAttribute("_mstTextHash")&&e[0].parentNode.getAttribute("_mstTextHash")==Ee(e[0].parentNode.textContent))return e.length=0,n;if(this.trimChunk(e),0===e.length)return n;const s=this.chunkify(e);if((r=s).nodeName&&b.has(r.nodeName.toLowerCase()))return n;var r;const i=s.textContent,o=Ee(i);if(s.hasAttribute("_mstTextHash")&&s.getAttribute("_mstTextHash")==o)return n;if(s&&oe(s)){const e=de(s,"b");if(ue(e)){i&&!i.isBlank()&&s.setAttribute("_mstTextHash",o),n=Ve(s);let t=this.visibleElementChunks;this.bTranslateFullPageInOneGo||this.bTranslateSelectedTextOnly||(t=this.getChunkStoreBasedOnVisibility(n)),t==this.hiddenElementChunks&&s.setAttribute(C,"1"),t==this.visibleElementChunks?document.hidden?this.outsideElementChunks.addElementText(s,e):this.addVisibleElementText(s,e):t.addElementText(s,e),this._bTxtChunksFlushed=!0,this.bTranslateSelectedTextOnly&&this._aTranslatedNodes.push(s)}}return n}flush(e,t,n){if(e.length)try{He(this.flushChunk(e),t,n)}catch(e){a.error(e)}}identifySingleTranslatableElementNode(e,t=1){if(e.nodeType!=Node.ELEMENT_NODE||t>9)return e;const n=Array.from(e.childNodes);for(;n.length>1&&this.canTrimNode(n[n.length-1]);)n.pop();for(;n.length>1&&this.canTrimNode(n[0]);)n.shift();return 1==n.length&&n[0].nodeType==Node.ELEMENT_NODE?this.identifySingleTranslatableElementNode(n[0],t+1):e}chunkify(e){let t=null;if(e.length>0){let n=e[0];if(1==e.length&&n.nodeType==Node.ELEMENT_NODE)t=this.identifySingleTranslatableElementNode(e.pop());else if(n.parentNode&&e.length==n.parentNode.childNodes.length)t=e.pop().parentNode,e.length=0;else for(t=n.ownerDocument.createElement("font"),t.setAttribute("_mstMutation","1"),t._mstChunk=!0,n.parentNode&&n.parentNode.insertBefore(t,n);e.length>0;)n=e[0],n.nodeType==Node.ELEMENT_NODE&&n.setAttribute("_mstMutation","1"),n.nodeType==Node.TEXT_NODE&&this.fontMutation.set(n,1),t.appendChild(e.shift())}return t}trimChunk(e){let t=!0;for(;t;){if(t=!1,1==e.length&&!oe(e[0]))return;if(1==e.length&&e[0].nodeType==Node.ELEMENT_NODE&&!he(e[0])&&e[0].childNodes.length>0){const n=e.pop();for(let t=0;t0&&(this.canTrimNode(e[0])?(e.shift(),t=!0):this.canTrimNode(e[e.length-1])&&(e.pop(),t=!0))}1==e.length&&this.canTrimNode(e[0])&&e.pop()}canTrimNode(e){if(this._eDomRoot&&this.bTranslateSelectedTextOnly){if(e.nodeType===Node.TEXT_NODE&&!this._eDomRoot.ownerDocument.defaultView?.getSelection()?.containsNode(e,!1))return!0;if(e.nodeType===Node.ELEMENT_NODE&&!this._eDomRoot.ownerDocument.defaultView?.getSelection()?.containsNode(e,!0))return!0}let t="";switch(e.nodeType){case Node.ELEMENT_NODE:t=e.textContent||"";break;case Node.TEXT_NODE:t=e.nodeValue||"";break;default:return!0}return!ue(t)}denormalizeElementRecursive(e,t,n,s){if(!e||!t||"string"!=typeof n||"number"!=typeof s)return;if(s>9)return;let r=0;const i=[],o=[];for(let t=0;t0){h=o.shift();const e=this.translateMutation.has(h)?this.translateMutation.get(h)+1:1;this.translateMutation.set(h,e),h.nodeValue=u.nodeValue}else h=document.createTextNode(u.nodeValue);if(this.bTranslateSelectedTextOnly&&this._detectedLanguage&&X.isRtl(this._detectedLanguage)!==X.isRtl(this._sTo)){const e=X.isRtl(this._sTo)?String.fromCodePoint(8207):String.fromCodePoint(8206);h.nodeValue=e+h.nodeValue+e}}else if(u.nodeType===Node.ELEMENT_NODE){const e=u.nodeName;if(e.length=0&&o")})(s,t),this.denormalizeElementRecursive(e,s,n,1)}checkForVisibleTranslationCompletion(e){this.bOnIntermediateCompleteCalled||this.bTranslateFullPageInOneGo||(e.requestType==qe.ATTRIBUTE_REQUEST||function(e){let t=!0;const n=performance.now();try{const s=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;let r;if(s&&(r=s.getBoundingClientRect()))if(0===r.height||0===r.width)t=!0,s._mstScrolledData=!0,s._mstScrolledTime=n;else{const e=window.innerHeight||document.documentElement.clientHeight;t=r.top<=e||r.bottom<=e}}catch(e){}return t}(e.element)?this.iScrolledElementsTranslated++:this.iScrolledElementsTranslated>0&&this.iHiddenElementsTranslated++,this.iHiddenElementsTranslated>0&&(this.bOnIntermediateCompleteCalled=!0,this._fVisibleComplete(!1)))}processTranslateRequest(e){(function(e){const t=L(e);if(t>Ce)return function(e){if(!h)return Promise.reject();const t=We();return Me.addJob(new _e(h.getFromLanguage(),h.getToLanguage(),[e],[e],((e,n)=>{e.length!=n.length&&(a.error("Invalid results from Translate Service"),t.reject(e));const s=n[0];s.TranslatedText=me(s.TranslatedText),t.resolve(s)}),((e,n)=>{t.reject(n)}),!0)),t.promise}(e);const n=function(e){const t=ye.get(e);return null!=t&&(ye.delete(e),ye.set(e,t)),t}(e);if(n)return Promise.resolve(n);let s=ke.get(e);return s||(we.push({originalText:e}),Oe+=t,s=We(),ke.set(e,s)),s.promise})(e.text).then((t=>{this._bAborted||(this.checkForVisibleTranslationCompletion(e),this._fTranslateCallbacks.incrementTotalCharacterTranslated(e.text.length),this.updateDetectedLanguage(t),this._oApplyStyle&&function(e,t,n,s){try{if(t)return;if(e&&"x-mst-element"in e&&(e=e["x-mst-element"],s=!0),!n||!e||!e.getAttribute)return;if(e.adjustAlign=e.getAttribute("adjustalign")&&"false"!=e.getAttribute("adjustalign").toLowerCase(),null==e.adjustAlign&&e.parentNode&&(e.adjustAlign=e.parentNode.adjustAlign),null!=e.adjustAlign&&null!=e.adjustAlign||(e.adjustAlign=!0),e.style&&(s||oe(e))&&e.adjustAlign){for(;!s&&"inline"===D(e,"display");)e=e.parentNode;for(const t in n)if(t in n)try{const s=D(e,t);if(s!=n[t]){if("textAlign"==t&&(s&&-1!=s.toLowerCase().indexOf("center")||e.tagName&&"center"==e.tagName.toLowerCase()))continue;e._mstStyle||(e._mstStyle={}),e.style&&e.style[t]?e._mstStyle[t]=e.style[t]:e._mstStyle[t]=s,e.style&&(e.style[t]=n[t])}}catch(e){a.error(e)}}}catch(e){a.error(e)}}(e.element,this.bTranslateSelectedTextOnly,this._oApplyStyle,e.requestType==qe.ATTRIBUTE_REQUEST),e.requestType==qe.ATTRIBUTE_REQUEST?this.translateElementAttributes(e.element,e.attributeName,e.text,t.TranslatedText):this.translateElement(e.element,e.text,t.TranslatedText))}))}translate(e,t){const n=()=>{const e=this.visibleElementChunks.getNextElementChunk();if(!e)return null;if(e.elementText)return{element:e.element,requestType:qe.ELEMENT_REQUEST,text:e.elementText};const t=e.getNextAttribute();return t?{element:e.element,requestType:qe.ATTRIBUTE_REQUEST,text:e.getAttribute(t),attributeName:t}:null};let s=n(),r=L(s?.text);do{if(!s)break;this._iVisibleTxtLength-=r;const e=this.visibleElementChunks.getElementChunk(s.element);e&&s.requestType==qe.ATTRIBUTE_REQUEST?e.removeNextAttribute():e&&s.requestType==qe.ELEMENT_REQUEST&&e.removeElementText(),e?.isEmpty()&&this.visibleElementChunks.removeElementChunk(s.element),this.processTranslateRequest(s),s=n(),r=L(s?.text)}while(s&&Oe+re.originalText)),e,((e,t)=>{e.length!=t.length&&(a.error("Invalid results from Translate Service"),De(e,"Inconsistent Data"));for(let n=0;n{De(e,t),n.reject(t)}),t>Ce)),n.promise})().then((()=>{this.onNetworkRequestCompletion(e,t)})).catch((e=>{this.onNetworkRequestFailure(e)})),0==Re()&&P(this.traverseDOM,e,t)}updateDetectedLanguage(e){const t=e.From;null==t||t.isBlank()||(this._allDetectedLanguages[t]=(this._allDetectedLanguages[t]||0)+1,(null==this._detectedLanguage||this._detectedLanguage.isBlank()||this._allDetectedLanguages[t]>this._allDetectedLanguages[this._detectedLanguage])&&(this._detectedLanguage=t))}onNetworkRequestCompletion(e,t){this._bAborted||(u.requestsInitiated=!0,P(this.traverseDOM,e,t))}onNetworkRequestFailure(e){try{if(u.requestsInitiated=!0,this.bSentTranslationError||this._bAborted)return;this._fError&&this._fError(e),this.bSentTranslationError=!0}catch(e){a.error("Error in translateError. ",e)}this.bSentTranslationComplete||this.bOnIntermediateCompleteCalled||this.cancel()}translateElementAttributes(e,t,n,s){if(n===s)return;if(void 0===e._mstSrcAttribute&&(e._mstSrcAttribute={}),e._mstSrcAttribute[t]=e.getAttribute(t),this.attributeMutation.has(e)){const n=this.attributeMutation.get(e);t in n?n[t]+=1:n[t]=1}else{const n={[t]:1};this.attributeMutation.set(e,n)}const r="_mst"+t;n.isBlank()||ge(e,r,Ee(n)),ge(e,t,s.replace(ne,"").replace(te,">").replace(ee,"<").replace(Z,"&"))}translateElement(e,t,n){if(t!==n)if(e._mstSrcHtml=e.cloneNode(!0),"option"!=e.nodeName.toLowerCase())try{this.denormalizeElement(e,n,"b");const t=e.textContent;t&&!t.isBlank()&&e.setAttribute("_mstTextHash",Ee(t))}catch(e){}else this.denormalizeElement(e,n,"b")}executeTranslation(){if(this._eDomRoot?.nodeType!==Node.ELEMENT_NODE)throw new Error("Invalid input type");const e=ae(document.documentElement);if(this._sFrom===this._sTo||!this._eDomRoot.hasChildNodes()||e==E.Off)return this.translationComplete(),this;if(d(this),this.bTranslateSelectedTextOnly||this.bTranslateFullPageInOneGo||function(e){const t=()=>{let n=window.scrollX,s=window.scrollY,r=0;const i=()=>{const o=window.scrollX,l=window.scrollY;n==o&&s==l?r++:(n=o,s=l,r=0),r>=6?(a.debug("Scrolling has stopped."),H(t),P(e)):I.requestAnimationFrame(i)};I.requestAnimationFrame(i)};H(t)}((()=>{0==Re()&&this.triggerTraverseDom(x.Scrolled)})),this.setMutationObserversForDocument(window),function(e,t){B(),F=new AbortController,e.addEventListener("visibilitychange",t,{signal:F.signal})}(document,(()=>this.onDocumentVisibilityChange())),!this.bTranslateSelectedTextOnly){const e=document.querySelector("head > title");e&&this.flushChunk([e])}return this.isTraverseDOMActive=!0,this.traverseDOM(this.getTraversalStack(this._eDomRoot),x.Auto),this}}const We=()=>{let e,t;const n=new Promise(((n,s)=>{e=n,t=s}));return{resolve:e,reject:t,promise:n}};function Xe(e){let t=typeof e;return"object"===t&&(e?"[object Array]"==Object.prototype.toString.call(e)&&(t="array"):t="null"),t}String.prototype.isBlank=String.prototype.isBlank||function(){return null==this||"string"!=typeof this||0===this.trim().length},String.prototype.htmlEscape=String.prototype.htmlEscape||function(){if(!this)return"";const e=document.createElement("span");return e.innerText=this,e.innerHTML};let Qe,$e=null;function Ge(e){switch(Xe(e)){case"object":case"array":return JSON.stringify(e);case"null":return"null";case"undefined":return"undefined";default:return e.toString()}}var Ke,Ye;!function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.HEAD=2]="HEAD",e[e.PUT=3]="PUT",e[e.DELETE=4]="DELETE"}(Ke||(Ke={}));class Ze{constructor(e,t=0,n=null){this.message=e,this.status=t,this.details=n}get isHttpError(){return!0}get isBadRequest(){return null!=this.status&&this.status>=400&&this.status<500}get isServerError(){return null!=this.status&&this.status>=500&&this.status<600}get isServiceUnavailable(){return 503===this.status}get isOverQuota(){return 429===this.status}}function et(e,t,n){return n=n||{},null==e||null==t?Promise.reject(new Ze("HTTP method or URL are not set")):null!=n.timeoutInMs&&n.timeoutInMs<0?Promise.reject(new Ze("Cannot have a negative timeout. Set to 0 to have no timeout")):new Promise((function(s,r){const i=new XMLHttpRequest;!function(e,t,n,s){if(s.query){const e=function(e){let t="",n=0;if(e)for(const s in e)n++&&(t+="&"),t+=encodeURIComponent(s),null!=e[s]&&(t+="="+encodeURIComponent(e[s]));return t}(s.query);e.length>0&&(t+=(t.indexOf("?")<0?"?":"&")+e)}if(s.timeoutInMs&&"number"===Xe(s.timeoutInMs)&&(e.timeout=s.timeoutInMs),e.open(Ke[n],t,!0),s.headers)for(const t in s.headers)e.setRequestHeader(t,s.headers[t]);s.contentType&&e.setRequestHeader("Content-Type",s.contentType)}(i,t,e,n);let o=null;e!=Ke.GET&&e!=Ke.HEAD&&(o=n.body),i.send(o),i.onload=function(){if(i.status>=200&&i.status<300){let e=i.response;if(n.parser)try{e=n.parser(i)}catch(e){return a.debug(e),void r(e)}s(e)}else r(new Ze(i.statusText,i.status,i))},i.onerror=function(){const e=i.statusText||"Failed to send the request";r(new Ze(e,i.status,i))},i.ontimeout=function(){r(new Ze("Timed out",M,i))}}))}function tt(e){Qe=e}function nt(e,t){function n(){$e&&clearTimeout($e)}function s(e){n(),st().then((()=>{t.onError(e)}))}$e&&clearTimeout($e),e.translateFullPageInOneGo||($e=window.setTimeout((()=>{a.error("20000ms completed now. Translation timed out."),s(JSON.stringify({status:-2}))}),2e4)),a.info("Beginning page translation..."),st().then((()=>function(e,t,n,s){const r=e=>{a.debug("Intermidiate complete called with "+e),t&&t()},i=e=>{a.error("Error occurred while translating. Details: "+e),d(null),s&&s(e)};return f.translateServiceSubscriptionKey=Qe,u.translationStartTime=performance.now(),new Promise((function(t){d(new ze(document.body,e.fromLang,e.toLang,t,i,!1,e.translateFullPageInOneGo,r,n)),h.executeTranslation()})).then((function(){a.info("Successfully completed translation.")})).catch((function(e){a.error("Failed to translate the page",e),s&&s(e)}))}(e,(()=>{n(),t.onComplete()}),t,(e=>{n(),t.onError(e)})))).catch((e=>{a.error("Failed to translate page."),s(e)}))}function st(){return null==h?Promise.resolve():new Promise((e=>{h?.cancel(),d(null),a.info("Successfully completed untranslation."),e()}))}function rt(e){if(!e)return null;const t=e.getSelection();let n;const s=e.document.activeElement;if(s&&t&&s.nodeType===Node.ELEMENT_NODE&&"A"===s.nodeName&&!t.containsNode(s,!0))return n=e.document.createRange(),n.selectNode(s),t.removeAllRanges(),t.addRange(n),s;if(!t||t.isCollapsed||t.rangeCount<1)return null;n=t.getRangeAt(0);const r=n.startContainer,i=n.endContainer,o=n.startOffset;let a=n.endOffset;return r.nodeType===Node.TEXT_NODE&&0!==o&&r.parentNode&&r.nodeValue&&(r.parentNode.insertBefore(document.createTextNode(r.nodeValue.substring(0,o)),r),r.nodeValue=r.nodeValue.substring(o),n.setStart(r,0),r===i&&(a-=o)),i.nodeType===Node.TEXT_NODE&&i.nodeValue&&a!==i.nodeValue.length&&(i.parentNode?.insertBefore(document.createTextNode(i.nodeValue.substring(a)),i.nextSibling),i.nodeValue=i.nodeValue.substring(0,a),n.setEnd(i,i.nodeValue.length)),t.removeAllRanges(),t.addRange(n),n.commonAncestorContainer.nodeType===Node.TEXT_NODE?n.commonAncestorContainer.parentNode:n.commonAncestorContainer}function it(e,t){f.translateServiceSubscriptionKey=Qe,u.translationStartTime=performance.now();const n=[];let s=rt(window);s&&n.push(s);const r=document.querySelectorAll("iframe");for(let e=0;e{a.error("Error occurred while translating selection. Details: "+e),d(null),"function"==typeof t.onError&&t.onError(e)};function o(n){return new Promise((function(s,r){d(new ze(n,"",e.toLang,s,(function(e){i(e),r(e)}),!0,!1,t.onComplete,t)),h.executeTranslation()}))}let l=Promise.resolve(null);for(let e=0;e{"use strict";var e,t={d:(e,n)=>{for(var s in n)t.o(n,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{Translator:()=>Ye}),function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=4]="Info",e[e.Debug=8]="Debug",e[e.Assert=16]="Assert",e[e.All=4294967295]="All"}(e||(e={}));let s=null,r=0;class i{constructor(e,t,n){if(this.authorizationUrl=e,this.translationUrl=t,this.issueTokenUrl=n,null==e||0===e.length||null==t||0===t.length||null==n||0===n.length)throw new Error("The URL can not be empty")}getAuthorizationTokenAsync(){return function(){if(null==s||0==r)return!1;const e=((new Date).getTime()-r)/6e4;return Math.round(e)<=8}()?Promise.resolve(s):(r=(new Date).getTime(),null!=this.translateServiceSubscriptionKey&&""!=this.translateServiceSubscriptionKey?et(Ke.POST,this.issueTokenUrl,{headers:{"Ocp-Apim-Subscription-Key":this.translateServiceSubscriptionKey,"Content-Type":"application/x-www-form-urlencoded"}}):et(Ke.GET,this.authorizationUrl,{}))}asyncFetchHelper(e,t,n,r,i,o){if(null==t||0===t.length)return Promise.reject(new Ze("toLang cannot be null or empty"));if(null==n)return Promise.reject(new Ze("Must specify an array of text items to translate"));s=r;const a={from:e||"",to:t};let l;a["api-version"]="3.0",a.includeSentenceLength="true";let u=0;const h=[];for(l=0;lr?this.translateAsyncHelper(e,t,n,r,i.NETWORK_ATTEMPTS,s,!1):Promise.reject("Invalid auth token"))).catch((e=>Promise.reject(e)))}translateAsyncHelper(e,t,n,s,r,i,o){return this.asyncFetchHelper(e,t,n,s,i,o).then((e=>e)).catch((o=>1===r||0!==o.status?Promise.reject(o):this.translateAsyncHelper(e,t,n,s,r-1,i,!0)))}}i.NETWORK_ATTEMPTS=5,i.TEXT_CONTENT="text/plain",i.XML_CONTENT="text/xml",i.HTML_CONTENT="text/html";class o{getAuthorizationTokenAsync(){return Promise.resolve("null")}translateAsync(e,t,n,s){if(null==t||0===t.length)return Promise.reject(new Ze("toLang cannot be null or empty"));if(null==n)return Promise.reject(new Ze("Must specify an array of text items to translate"));let r=0;n.forEach((e=>{r+=e.length})),s({charactersToTranslateCount:r,isRetry:!1});const i=[];for(const s of n)if(window.mockApiMap[s]&&window.mockApiMap[s][t]){const e=window.mockApiMap[s][t];i.push({TranslatedText:e,From:window.mockApiMap[s].detectedLang})}else a.error("Could not translate: "+s+" from "+e+" to "+t),i.push({From:e,TranslatedText:""});return Promise.resolve(i)}}const a={info(...t){l.logLevel&e.Info&&console.info(...t)},warning(...t){l.logLevel&e.Warning&&console.warn(...t)},error(...t){l.logLevel&e.Error&&console.error(...t)},assert(t,...n){l.logLevel&e.Debug&&(n.unshift(t),console.assert(t,...n))},debug(...t){l.logLevel&e.Debug&&console.debug(...t)}},l={logLevel:e.Error,debug:!1},u={translationStartTime:0,requestsInitiated:!1};let h;function d(e){h=e}var c;function m(e){switch(e){case c.AzureAPIV3:return a.debug("Using Translate V3 APIs"),new i("https://edge.microsoft.com/translate/auth","https://api.cognitive.microsofttranslator.com/translate","https://api.cognitive.microsoft.com/sts/v1.0/issueToken");case c.TranslateTestAPI:return a.debug("Using Translate Test Client"),new o;case c.WebXtServerTranslateAPI:return a.debug("Using WebXt Server Translate API"),new i("https://edge.microsoft.com/translate/auth","https://api-edge.cognitive.microsofttranslator.com/translate","https://api.cognitive.microsoft.com/sts/v1.0/issueToken");default:return void a.debug("Incorrect translate version passed from CPP !")}}let f;function g(e){return Object.freeze(new Map(Object.entries(e)))}function p(e){return Object.freeze(e)}!function(e){e[e.BingAPIV2=1]="BingAPIV2",e[e.AzureAPIV3=2]="AzureAPIV3",e[e.EdgeTranslateAPI=3]="EdgeTranslateAPI",e[e.TranslateTestAPI=4]="TranslateTestAPI",e[e.WebXtServerTranslateAPI=5]="WebXtServerTranslateAPI"}(c||(c={})),f=m(Number("$$VERSIONTOUSE"))??m(c.WebXtServerTranslateAPI);const T=g({head:1,script:1,style:1,code:1,samp:1,var:1,kbd:1,pre:1,object:1,address:1,noscript:1,embed:1,map:1}),b=g({textarea:1});var E;!function(e){e[e.Inherit=0]="Inherit",e[e.On=1]="On",e[e.Off=2]="Off"}(E||(E={}));const N=Object.assign(g({hr:1,input:1,title:1,br:1,frame:1,iframe:1,textarea:1}),T),_=()=>!0,y=g({INPUT:[{predicate:e=>["button","submit","reset"].includes(e?.type),attributes:["value"]},{predicate:e=>["image"].includes(e?.type),attributes:["alt"]},{predicate:_,attributes:["placeholder"]}],TEXTAREA:[{predicate:_,attributes:["placeholder"]}],IMG:[{predicate:_,attributes:["alt"]}],AREA:[{predicate:_,attributes:["alt"]}],OPTION:[{predicate:_,attributes:["label"]}],OPTGROUP:[{predicate:_,attributes:["label"]}],TRACK:[{predicate:_,attributes:["label"]}]}),A=g({true:E.On,yes:E.On,false:E.Off,no:E.Off,skip:E.Off}),v=g({translate:A}),S=g({skiptranslate:E.Off,notranslate:E.Off}),C="_mstHidden",w="_mstVisible",O=p(["_mstTextHash","_msthash",C,w,...new Set(Object.values(y).flat().map((e=>e.attributes)).flat().map((e=>"_mst"+e)))]),k=p(["style","class"]);var x;function M(e,t){if(e.nodeType!=Node.ELEMENT_NODE)return"";const n=window.getComputedStyle(e);return n&&n[t=t.replace(/([A-Z])/g,"-$1").toLowerCase()]||""}function D(e){return e?encodeURIComponent(e).replace(/%\w\w/g," ").length:0}function L(e,t){return e.nodeType===Node.ELEMENT_NODE?e.getAttribute(t)||e[t]:null}function R(e,...t){Promise.resolve().then((()=>e(...t)))}!function(e){e[e.Auto=0]="Auto",e[e.Scrolled=1]="Scrolled",e[e.Mutation=2]="Mutation",e[e.VisibilityChange=3]="VisibilityChange"}(x||(x={}));const P=window;let I,V;function F(e){H(),I=new AbortController,P.addEventListener("scroll",e,{capture:!0,once:!0,signal:I.signal})}function H(){I?.abort(),I=void 0}function j(){V?.abort(),V=void 0}function B(e){try{let t=0,n=e.contentWindow;for(;n&&n!=top;)t++,n=n.parent;return t}catch(e){return a.debug(e),11}}function q(e){try{return e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&e.contentWindow.document.body&&B(e)<=10}catch(e){}return!1}function U(e){try{return e&&e.contentWindow&&e.contentWindow.document||!1}catch(e){}return!1}const J={ar:!0,fa:!0,he:!0,ku:!0,ps:!0,ur:!0};class z{constructor(e,t){this.name=t,this.code=z.normalizeCode(e)}toString(){return`${this.code}: ${this.name}`}static isRtl(e){return(e=z.normalizeCode(e)).toLowerCase()in J}static equals(e,t){return null!=e&&null!=t&&e.code===t.code}static normalizeCode(e){let t="",n="",s="";const r=e.split("-");t=r[0].toLowerCase();for(let e=1;e/g,G=/<\s*(\/)?\s*(\w+)\s*(\d*)\s*>/g,K=/&/gi,Y=/</gi,Z=/>/gi,ee=/<\/?\w+>/g,te=/<(?!\/?b\d+>)[^>]*>/g,ne=new Set;function se(e){if(!e||"string"!=typeof e.nodeName)return[];const t=new Set,n=y.get(e.nodeName);for(let s=0;n&&s0&&i.trim().length>0&&t.add(n[s].attributes[r])}if(e.hasAttribute("aria-label")){const n=e.getAttribute("aria-label");n&&n.length>0&&t.add("aria-label")}return[...t]}function re(e){if(e.nodeType==Node.TEXT_NODE||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!0;if(e.nodeType!=Node.ELEMENT_NODE)return!1;const t=e;return!!(q(t)||t.hasChildNodes()||t.nodeName in y)&&(!T.has(t.nodeName.toLowerCase())&&(ie(t)!=E.Off&&(!!q(t)||function(e,t){if(!e||!e.children&&!e.shadowRoot)return!1;const n=[0];for(;n.length>0&&e;){if(n.length>=5)return!0;const t=n.length-1;if(e.shadowRoot)return!0;if(!e.children||n[t]>=e.children.length){if(n.pop(),0===n.length)break;e=e.parentNode}else{if(q(e.children[n[t]]))return!0;if(se(e.children[n[t]]).length>0)return!0;e=e.children[n[t]],n[t]=n[t]+1,n.push(0)}}const s=e?.textContent;return!!s&&ae(s)}(t))))}function ie(e){let t=E.Inherit;if(!e||e.nodeType!=Node.ELEMENT_NODE)return t;for(const n of v.keys()){const s=L(e,n);if(null!=s){const e=v.get(n);if(t=e&&e.get(s.toString().toLowerCase())||t,t==E.Off)return t}}const n=L(e,"class")||L(e,"className");if(null!=n){const e=n.toString().split(" ");for(let n=0;n{if(t.contains(e))return!0})),!1}function ae(e){return new RegExp("[a-zA-Z0-9\\?!"+String.fromCodePoint(191)+String.fromCodePoint(161)+".,:\\|"+String.fromCodePoint(192)+"-"+String.fromCodePoint(65535)+"]").test(e)}function le(e){return e.nodeType==Node.TEXT_NODE||!(!e.nodeName||!N.has(e.nodeName.toLowerCase()))||e.nodeType==Node.ELEMENT_NODE&&!e._mstChunk&&"inline"==M(e,"display").toLowerCase()&&"static"==M(e,"position").toLowerCase()&&![...e.childNodes].some((e=>!le(e)))}function ue(e,t,n=1){if(n>9)return"";const s=[];let r=0;for(let i=0;i"),a!=E.Off&&s.push(ue(e.childNodes[i],t,n+1)),s.push("")),++r;break}case Node.TEXT_NODE:{const t=e.childNodes[i].nodeValue;t&&s.push(he(t));break}}return s.join("")}function he(e){if(!e)return e;const t=e.replace(X,"&").replace(Q,"<").replace($,">").replace(W," "),n=/^\s/.test(t),s=/\s$/.test(t);return(n?" ":"")+t.trim()+(s?" ":"")}function de(e){return e?.replace(te,(function(e){return e.replace(X,"&").replace(Q,"<").replace($,">")}))}function ce(e){if(e){if(e.shadowRoot)for(const t of e.shadowRoot.children)ce(t);if("frame"==e.nodeName.toLowerCase()||"iframe"==e.nodeName.toLowerCase()){const t=e.contentWindow?.document.documentElement;try{t&&ce(t)}catch(e){}}else{if(e._mstStyle)for(const t in e._mstStyle)try{e.style[t]=e._mstStyle[t]}catch(e){a.error(e)}if(e._mstStyle=null,e._mstSrcAttribute)for(const t in e._mstSrcAttribute)me(e,t,e._mstSrcAttribute[t]);if(O.forEach((t=>e.removeAttribute?.(t))),e._mstSrcHtml&&e._mstSrcHtml.childNodes.length>0){for(;e.childNodes.length>0&&e.lastChild;)e.removeChild(e.lastChild);for(;e._mstSrcHtml.childNodes.length>0;)e.appendChild(e._mstSrcHtml.childNodes[0]);e._mstSrcHtml=void 0}else for(let t=0;t9))for(const s of e.childNodes)s.nodeType==Node.ELEMENT_NODE&&(t(s),fe(s,t,n+1))}let ge=0;const pe=/[\s\xA0]/g;function Te(e){let t=0;if(e){e=e.replace(pe,"");for(let n=0;n0&&this._iActiveJobs{this._iActiveJobs-=1,e.onSuccess(t),this.startProcessing()}),(t=>{this._iActiveJobs-=1,e.onError(t),this.startProcessing()})),this._iActiveJobs+=1,this._iTotalTriggeredJobs+=1,this.optimizeParallelRequestsAmount()}}processBufferedRequest(e){const t=function(e,t){const n=[];for(;e.length>t;)n.push(e.substr(0,t)),e=e.substr(t);return 0==e.length&&0!=n.length||n.push(e),n}(e._aTextArray[0],this._iMaxChunkSize),n={};let s=!1;t.forEach(((r,i)=>{const o=new Ee(e._sFrom,e._sTo,[r],i,((r,i)=>{if(n[r]=i,!s&&Object.keys(n).length==t.length){const s=[{From:"",TranslatedText:""}];for(let e=0;e{s=!0,e.onError(n),this.startProcessing()}));this.addJob(o)}))}numOfTotalJobsInQueue(){return this._aJobs.length+this._iActiveJobs}optimizeParallelRequestsAmount(){this._iTotalTriggeredJobs>33?this._iMaxParallelJobs=2:this._iMaxParallelJobs>3&&this._iTotalTriggeredJobs%10==0&&(this._iMaxParallelJobs=this._iMaxParallelJobs-this._iMaxParallelJobs/3)}}(4,Se,((...e)=>xe&&xe(...e)));function De(e,t){for(const n of e)ke.get(n.originalText)?.reject(t),ke.delete(n.originalText)}function Le(e,t){t.TranslatedText=de(t.TranslatedText),Ae(e.originalText,lt(t));const n=ke.get(e.originalText);n?n.resolve(t):a.error("Promise does not exist for the provided text."),ke.delete(e.originalText)}function Re(){return Me.numOfTotalJobsInQueue()}class Pe{constructor(e=[]){this.pop=()=>this.items.pop(),this.shift=()=>this.items.shift(),this.push=e=>this.items.push(e),this.items=[...e]}get first(){return 0==this.length?void 0:this.items[0]}get top(){return 0==this.length?void 0:this.items[this.length-1]}get length(){return this.items.length}*[Symbol.iterator](){for(const e of this.items)yield e}get(e){return this.length<=e?void 0:this.items[e]}clear(){this.items.length=0}isEmpty(){return 0==this.items.length}}const Ie=Object.freeze({outsideView:1,insideView:2,hidden:4,unknown:64});function Ve(e){try{const t=(e=function(e){return e&&e.nodeType==Node.ELEMENT_NODE&&["option","optgroup"].includes(e.nodeName.toLowerCase())&&(e=e.closest("select")),e}(e)).nodeType===Node.ELEMENT_NODE?e:e.parentElement;let n;if(!["title"].includes(e.nodeName.toLowerCase())&&t&&t.nodeType===Node.ELEMENT_NODE&&(n=t.getBoundingClientRect())){if(0===n.height||0===n.width)return Ie.hidden;const e=window.innerHeight||document.documentElement.clientHeight;return n.top>=0&&n.top<=e+1e3||n.bottom>=0&&n.bottom<=e+1e3?Ie.insideView:Ie.outsideView}return Ie.insideView}catch(e){return Ie.insideView}}function Fe(e){return Ve(e)==Ie.insideView}function He(e,t,n){e&Ie.unknown||(n.items[n.length-1]++,e&Ie.hidden&&t.items[t.length-1]++)}function je(e,t,n){t.top&&t.top>0&&t.top===n.top&&e.length>0&&e.top?.nodeType==Node.ELEMENT_NODE&&e.top.setAttribute(C,t.top.toString());let s=t.pop();t.length>0&&(t.items[t.length-1]+=s),s=n.pop(),n.length>0&&(n.items[n.length-1]+=s)}function Be(e,t,n,s){const r=new Pe;r.push({node:e,depth:0});let i=0;for(;!r.isEmpty();){const e=r.pop();if(e.node.hasAttribute(w))continue;e.node.setAttribute(w,e.depth.toString()),e.node.removeAttribute(C);const o=s.getElementChunk(e.node);if(s.removeElementChunk(e.node),o){for(const n of o.getAllAttributes())t(e.node,n,o.getAttribute(n));i++}if(o&&o.elementText)n(e.node,o.elementText),i++;else{if(e.node.shadowRoot)for(const t of e.node.shadowRoot.children)r.push({node:t,depth:e.depth+1});for(let t=0;t5&&a.debug("Element contains children deeper than threshold while marking visible. Depth: "+n),r.push({node:e.node.children[t],depth:n})}}}return i}var qe;!function(e){e[e.ELEMENT_REQUEST=0]="ELEMENT_REQUEST",e[e.ATTRIBUTE_REQUEST=1]="ATTRIBUTE_REQUEST"}(qe||(qe={}));class Ue{constructor(e){this.element=e,this.text=null,this.attributes=new Map,this.numBytes=0}getAllAttributes(){return this.attributes.keys()}get elementText(){return this.text}set elementText(e){this.numBytes-=D(this.text),this.text=e,this.numBytes+=D(e)}addAttribute(e,t){this.numBytes-=D(this.getAttribute(e)),this.attributes.set(e,t),this.numBytes+=D(t)}removeAttribute(e){this.numBytes-=D(this.getAttribute(e)),this.attributes.delete(e)}getAttribute(e){return this.attributes.get(e)}getStringBytes(){return this.numBytes}getNextAttribute(){const e=this.getAllAttributes().next();return e.done?null:e.value}removeNextAttribute(){const e=this.getNextAttribute();e&&this.removeAttribute(e)}isEmpty(){return!this.text&&0==this.attributes.size}removeElementText(){this.numBytes-=D(this.text),this.text=null}}class Je{constructor(){this.elementChunkMap=new Map}ensureElementChunk(e){const t=function(e){let t=be(e);return null==t&&(t=(ge++).toString(),e.setAttribute("_mstHash",t)),t}(e);let n=this.elementChunkMap.get(t);return null==n&&(n=new Ue(e),this.elementChunkMap.set(t,n)),n}addElementText(e,t){this.ensureElementChunk(e).elementText=t}addElementAttributes(e,t,n){this.ensureElementChunk(e).addAttribute(t,n)}removeElementChunk(e){const t=be(e);t&&this.elementChunkMap.delete(t)}getElementChunk(e){let t;const n=be(e);return n&&(t=this.elementChunkMap.get(n)),t}getNextElementChunk(){const e=this.getAllElementChunks().next();return e.done?null:e.value}getAllElementChunks(){return this.elementChunkMap.values()}get size(){return this.elementChunkMap.size}}class ze{constructor(e,t,n,s,r,i,o,l,u){var h,d,c,m;this._allDetectedLanguages={},this.bTranslateSelectedTextOnly=!1,this.bTranslateFullPageInOneGo=!1,this.iScrolledElementsTranslated=0,this.iHiddenElementsTranslated=0,this.bOnIntermediateCompleteCalled=!1,this.bAutoTraversalCompleted=!1,this._oMObservers=[],this.oTranslateMutationTask=null,this._maxIframeDepthSupported=10,this._maxTraversalIterations=1e4,this._aTranslatedNodes=[],this.bFlushedStartTerminalNode=!1,this.isTraverseDOMActive=!1,this.bSentTranslationComplete=!1,this.bSentTranslationError=!1,this._iVisibleTxtLength=0,this._bAborted=!1,this.outsideElementChunks=new Je,this.visibleElementChunks=new Je,this.hiddenElementChunks=new Je,this._bScrollingStopped=!1,this._bTxtChunksFlushed=!1,this.fontMutation=new Map,this.translateMutation=new Map,this.attributeMutation=new Map,this.traverseDOMRecursive=(e,t,n)=>{const s=e.domStack,r=e.properties,i=e.offsetFromStart,o=e.hidden,a=e.elements,l=e=>{He(this.flushChunk([e],!0),o,a)};let u=0;for(;u0&&(this._iVisibleTxtLength{R(this.traverseDOMRecursive,e,t,n)})),this._bScrollingStopped)break;return}u++}if(u!=this._maxTraversalIterations)if(this.isTranslationPaused()||this.migrateOutsideChunksToVisible(),this.visibleElementChunks.size>0||this._bTxtChunksFlushed||this._bScrollingStopped)this._bTxtChunksFlushed=!1,this._bScrollingStopped=!1,this.translate(e,t);else{if(this.bAutoTraversalCompleted=this.bAutoTraversalCompleted||t===x.Auto&&0===s.length,Re()>0)return;this.isTraverseDOMActive=!1,this.bAutoTraversalCompleted&&this.translationComplete()}else this.traverseDOMRecursive(e,t,n)},this.traverseDOM=(e,t)=>{try{const n=[];this._eDomRoot&&le(this._eDomRoot)&&!this.bFlushedStartTerminalNode&&(this.bFlushedStartTerminalNode=!0,this.flushChunk([this._eDomRoot])),R(this.traverseDOMRecursive,e,t,n)}catch(e){a.error("Unknown error in traverseDom.",e)}},this._sFrom=t,this._sTo=n,this._eDomRoot=e,this._fComplete=s,this._fVisibleComplete=l,this._fTranslateCallbacks=u,this._fError=function(e){if("function"==typeof r)try{r(Ge(e))}catch(e){a.error("Encountered exception while calling error handler",e)}},this.bTranslateSelectedTextOnly=!0===i,this.bTranslateFullPageInOneGo=!0===o,h=u.onTranslateApiCalled,xe=h,this._oApplyStyle=(d=this._sFrom,c=this._sTo,z.isRtl(d)===z.isRtl(c)?null:(m=c,z.isRtl(m)?{direction:"rtl",textAlign:"right"}:{direction:"ltr",textAlign:"left"}))}getFromLanguage(){return this._sFrom}getToLanguage(){return this._sTo}translationComplete(){if(u.requestsInitiated&&(a.info("Took "+(performance.now()-u.translationStartTime)+" ms to translate"),u.translationStartTime=performance.now(),u.requestsInitiated=!1),!this.bSentTranslationComplete){if(this.bSentTranslationComplete=!0,this._eDomRoot&&this.bTranslateSelectedTextOnly&&this._aTranslatedNodes.length){!function(e,t){if(!e||!t||!t.length)return;const n=new at;let s=0;for(n.push(0);s=0){const i=t[s];t[s]=t[r],t[r]=i,s++,e=e.parentNode,n.pop()}else n.top{this.addVisibleElementAttribute(e,t,n)}),((e,t)=>{this.addVisibleElementText(e,t)}),this.hiddenElementChunks)}markNodesAsOutsideView(e){return Be(e,((e,t,n)=>{this.outsideElementChunks.addElementAttributes(e,t,n)}),((e,t)=>{this.outsideElementChunks.addElementText(e,t)}),this.hiddenElementChunks)}pushIntoTraversalStack(e,t,n){e.domStack.push(t),e.properties.push({isRoot:!0,traverseTerminalOnly:n}),e.offsetFromStart.push(0),e.hidden.push(0),e.elements.push(0),this.flushChunk([t],!0)}updateAddedIframe(e){B(e)>this._maxIframeDepthSupported||(e.contentWindow.document.body?this.updateAddedIframeBody(e):e.contentWindow.onload=()=>this.updateAddedIframeBody(e))}updateAddedIframeBody(e){"complete"==e.contentWindow?.document.readyState?this.addIframeForTranslation(e):e.contentWindow.document.body.onload=()=>this.addIframeForTranslation(e)}addIframeForTranslation(e){const t=this.getTraversalStack();this.pushIntoTraversalStack(t,e,!1),this.isTraverseDOMActive||(this.isTraverseDOMActive=!0,u.translationStartTime=performance.now()),R(this.traverseDOM,t,x.Mutation),this.setMutationObserversForDocument(e.contentWindow)}addMutationObserver(e){const t=new Map,n=new Map;this._oMObservers.push(new MutationObserver((s=>{let r=!1;t.clear(),n.clear(),s.forEach((s=>{switch(s.type){case"characterData":{if(this.translateMutation.has(s.target)){const e=this.translateMutation.get(s.target);1===e?this.translateMutation.delete(s.target):this.translateMutation.set(s.target,e-1);break}if(oe(s.target))break;let e=!0,i=s.target;for(;le(i);){if(null===i.parentNode||void 0===i.parentNode){e=!1;break}i=i.parentNode}if(!e){r=!0,this.flushChunk([s.target]);break}const o=i;if(i.nodeType===Node.ELEMENT_NODE&&i.hasAttribute("_mstHash")){o.hasAttribute("_mstTextHash")&&o.getAttribute("_mstTextHash")==Te(i.textContent)||(r=!0,this.flushChunk([s.target]));break}t.has(i)||n.has(i)||(r=!0,t.set(i,1));break}case"attributes":if(k.some((e=>e===s.attributeName))){const t=s.target;if(s.target.nodeType==Node.ELEMENT_NODE&&t.getAttribute(C)){const n=Ve(t);let s=0;if(n&Ie.insideView){if(e.hidden){this.markNodesAsOutsideView(t);break}s=this.markNodesAsVisible(t),0===s?a.debug("A previously marked hidden chunk became visible but could not be located."):this.oTranslateMutationTask=(i=()=>{this.translate(this.getTraversalStack(),x.VisibilityChange)},(o=this.oTranslateMutationTask)&&!o.isCompleted||(o={rafRequestId:null,isCompleted:!1}),null!==o.rafRequestId&&cancelAnimationFrame(o.rafRequestId),o.rafRequestId=requestAnimationFrame((function(){R(i),o.isCompleted=!0})),o)}else n&Ie.outsideView&&(s=this.markNodesAsOutsideView(t),0===s&&a.debug("A previously marked hidden chunk became un-hidden but could not be located."))}break}if(this.attributeMutation.has(s.target)){const e=this.attributeMutation.get(s.target),t=s.attributeName;if(t&&t in e){1===e[t]?delete e[t]:e[t]-=1;break}}if(oe(s.target))break;r=!0,this.flushChunk([s.target],!0);break;case"childList":for(let e=0;e{this.pushIntoTraversalStack(i,e,!0)})),Array.from(n.keys()).forEach((e=>{this.pushIntoTraversalStack(i,e,!1)})),r&&(r=!1,this.isTraverseDOMActive||(this.isTraverseDOMActive=!0,u.translationStartTime=performance.now()),R(this.traverseDOM,i,x.Mutation))}))),this._oMObservers[this._oMObservers.length-1].observe(e.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0,attributeFilter:["value","placeholder","aria-label",...k]})}triggerTraverseDom(e){this._bScrollingStopped=!0,this.isTraverseDOMActive||(this.isTraverseDOMActive=!0,u.translationStartTime=performance.now()),this.traverseDOM(this.getTraversalStack(),e)}setMutationObserversForDocument(e){if("MutationObserver"in e&&!this.bTranslateSelectedTextOnly&&!this.bTranslateFullPageInOneGo){const t=e.document;this.addMutationObserver(t);const n=t.querySelectorAll("iframe");for(let e=0;ee.disconnect())),H(),j()}onDocumentVisibilityChange(){document.hidden||this._bAborted||this.triggerTraverseDom(x.Scrolled)}cancel(){const e=performance.now();this.deRegisterEventListeners(),this._eDomRoot&&(this._bAborted=!0,we=[],Oe=0,ke.clear(),function(){const e=document.querySelector("head > title");e&&ce(e)}(),this.bTranslateSelectedTextOnly?ce(document.body):ce(this._eDomRoot),this._eDomRoot=null,a.info("Took "+(performance.now()-e)+" ms to untranslate."))}getDetectedLanguage(){return this._detectedLanguage}getAllDetectedLanguages(){return this._allDetectedLanguages}isTranslationPaused(){return this.bOnIntermediateCompleteCalled&&document.hidden}migrateOutsideChunksToVisible(){const e=()=>!(this._iVisibleTxtLength0&&(n=Ve(e),n&Ie.hidden&&e.setAttribute(C,"A"));for(const t of s){const s=he(e.getAttribute(t));if(!s)continue;const r=Te(s),i="_mst"+t;if(e.hasAttribute(i)&&e.getAttribute(i)==r)continue;me(e,i,r);const o=this.getChunkStoreBasedOnVisibility(n);o==this.visibleElementChunks?document.hidden?this.outsideElementChunks.addElementAttributes(e,t,s):this.addVisibleElementAttribute(e,t,s):o.addElementAttributes(e,t,s),this._bTxtChunksFlushed=!0}}if(t)return n;if(e[0]&&e[0].parentNode&&e[0].parentNode.nodeType==Node.ELEMENT_NODE&&e[0].parentNode.hasAttribute("_mstTextHash")&&e[0].parentNode.getAttribute("_mstTextHash")==Te(e[0].parentNode.textContent))return e.length=0,n;if(this.trimChunk(e),0===e.length)return n;const s=this.chunkify(e);if((r=s).nodeName&&b.has(r.nodeName.toLowerCase()))return n;var r;const i=s.textContent,o=Te(i);if(s.hasAttribute("_mstTextHash")&&s.getAttribute("_mstTextHash")==o)return n;if(s&&re(s)){const e=ue(s,"b");if(ae(e)){i&&!i.isBlank()&&s.setAttribute("_mstTextHash",o),n=Ve(s);let t=this.visibleElementChunks;this.bTranslateFullPageInOneGo||this.bTranslateSelectedTextOnly||(t=this.getChunkStoreBasedOnVisibility(n)),t==this.hiddenElementChunks&&s.setAttribute(C,"1"),t==this.visibleElementChunks?document.hidden?this.outsideElementChunks.addElementText(s,e):this.addVisibleElementText(s,e):t.addElementText(s,e),this._bTxtChunksFlushed=!0,this.bTranslateSelectedTextOnly&&this._aTranslatedNodes.push(s)}}return n}flush(e,t,n){if(e.length)try{He(this.flushChunk(e),t,n)}catch(e){a.error(e)}}identifySingleTranslatableElementNode(e,t=1){if(e.nodeType!=Node.ELEMENT_NODE||t>9)return e;const n=Array.from(e.childNodes);for(;n.length>1&&this.canTrimNode(n[n.length-1]);)n.pop();for(;n.length>1&&this.canTrimNode(n[0]);)n.shift();return 1==n.length&&n[0].nodeType==Node.ELEMENT_NODE?this.identifySingleTranslatableElementNode(n[0],t+1):e}chunkify(e){let t=null;if(e.length>0){let n=e[0];if(1==e.length&&n.nodeType==Node.ELEMENT_NODE)t=this.identifySingleTranslatableElementNode(e.pop());else if(n.parentNode&&e.length==n.parentNode.childNodes.length)t=e.pop().parentNode,e.length=0;else for(t=n.ownerDocument.createElement("font"),t.setAttribute("_mstMutation","1"),t._mstChunk=!0,n.parentNode&&n.parentNode.insertBefore(t,n);e.length>0;)n=e[0],n.nodeType==Node.ELEMENT_NODE&&n.setAttribute("_mstMutation","1"),n.nodeType==Node.TEXT_NODE&&this.fontMutation.set(n,1),t.appendChild(e.shift())}return t}trimChunk(e){let t=!0;for(;t;){if(t=!1,1==e.length&&!re(e[0]))return;if(1==e.length&&e[0].nodeType==Node.ELEMENT_NODE&&!le(e[0])&&e[0].childNodes.length>0){const n=e.pop();for(let t=0;t0&&(this.canTrimNode(e[0])?(e.shift(),t=!0):this.canTrimNode(e[e.length-1])&&(e.pop(),t=!0))}1==e.length&&this.canTrimNode(e[0])&&e.pop()}canTrimNode(e){if(this._eDomRoot&&this.bTranslateSelectedTextOnly){if(e.nodeType===Node.TEXT_NODE&&!this._eDomRoot.ownerDocument.defaultView?.getSelection()?.containsNode(e,!1))return!0;if(e.nodeType===Node.ELEMENT_NODE&&!this._eDomRoot.ownerDocument.defaultView?.getSelection()?.containsNode(e,!0))return!0}let t="";switch(e.nodeType){case Node.ELEMENT_NODE:t=e.textContent||"";break;case Node.TEXT_NODE:t=e.nodeValue||"";break;default:return!0}return!ae(t)}denormalizeElementRecursive(e,t,n,s){if(!e||!t||"string"!=typeof n||"number"!=typeof s)return;if(s>9)return;let r=0;const i=[],o=[];for(let t=0;t0){h=o.shift();const e=this.translateMutation.has(h)?this.translateMutation.get(h)+1:1;this.translateMutation.set(h,e),h.nodeValue=u.nodeValue}else h=document.createTextNode(u.nodeValue);if(this.bTranslateSelectedTextOnly&&this._detectedLanguage&&z.isRtl(this._detectedLanguage)!==z.isRtl(this._sTo)){const e=z.isRtl(this._sTo)?String.fromCodePoint(8207):String.fromCodePoint(8206);h.nodeValue=e+h.nodeValue+e}}else if(u.nodeType===Node.ELEMENT_NODE){const e=u.nodeName;if(e.length=0&&o")})(s,t),this.denormalizeElementRecursive(e,s,n,1)}checkForVisibleTranslationCompletion(e){this.bOnIntermediateCompleteCalled||this.bTranslateFullPageInOneGo||(e.requestType==qe.ATTRIBUTE_REQUEST||function(e){let t=!0;const n=performance.now();try{const s=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;let r;if(s&&(r=s.getBoundingClientRect()))if(0===r.height||0===r.width)t=!0,s._mstScrolledData=!0,s._mstScrolledTime=n;else{const e=window.innerHeight||document.documentElement.clientHeight;t=r.top<=e||r.bottom<=e}}catch(e){}return t}(e.element)?this.iScrolledElementsTranslated++:this.iScrolledElementsTranslated>0&&this.iHiddenElementsTranslated++,this.iHiddenElementsTranslated>0&&(this.bOnIntermediateCompleteCalled=!0,this._fVisibleComplete(!1)))}processTranslateRequest(e){(function(e){const t=D(e);if(t>Ce)return function(e){if(!h)return Promise.reject();const t=We();return Me.addJob(new Ee(h.getFromLanguage(),h.getToLanguage(),[e],[e],((e,n)=>{e.length!=n.length&&(a.error("Invalid results from Translate Service"),t.reject(e));const s=n[0];s.TranslatedText=de(s.TranslatedText),t.resolve(s)}),((e,n)=>{t.reject(n)}),!0)),t.promise}(e);const n=function(e){const t=Ne.get(e);return null!=t&&(Ne.delete(e),Ne.set(e,t)),t}(e);if(n)return n.ServedFromCache=!0,Promise.resolve(n);let s=ke.get(e);return s||(we.push({originalText:e}),Oe+=t,s=We(),ke.set(e,s)),s.promise})(e.text).then((t=>{if(this._bAborted)return;this.checkForVisibleTranslationCompletion(e),this._fTranslateCallbacks.incrementTotalCharacterTranslated(e.text.length),this.updateDetectedLanguage(t),this._oApplyStyle&&function(e,t,n,s){try{if(t)return;if(e&&"x-mst-element"in e&&(e=e["x-mst-element"],s=!0),!n||!e||!e.getAttribute)return;if(e.adjustAlign=e.getAttribute("adjustalign")&&"false"!=e.getAttribute("adjustalign").toLowerCase(),null==e.adjustAlign&&e.parentNode&&(e.adjustAlign=e.parentNode.adjustAlign),null!=e.adjustAlign&&null!=e.adjustAlign||(e.adjustAlign=!0),e.style&&(s||re(e))&&e.adjustAlign){for(;!s&&"inline"===M(e,"display");)e=e.parentNode;for(const t in n)if(t in n)try{const s=M(e,t);if(s!=n[t]){if("textAlign"==t&&(s&&-1!=s.toLowerCase().indexOf("center")||e.tagName&&"center"==e.tagName.toLowerCase()))continue;e._mstStyle||(e._mstStyle={}),e.style&&e.style[t]?e._mstStyle[t]=e.style[t]:e._mstStyle[t]=s,e.style&&(e.style[t]=n[t])}}catch(e){a.error(e)}}}catch(e){a.error(e)}}(e.element,this.bTranslateSelectedTextOnly,this._oApplyStyle,e.requestType==qe.ATTRIBUTE_REQUEST);const n=e.text;this._fTranslateCallbacks.onElementTextTranslated({originalText:n,translatedText:t.TranslatedText}),e.requestType==qe.ATTRIBUTE_REQUEST?this.translateElementAttributes(e.element,e.attributeName,e.text,t.TranslatedText):this.translateElement(e.element,e.text,t.TranslatedText)}))}translate(e,t){const n=()=>{const e=this.visibleElementChunks.getNextElementChunk();if(!e)return null;if(e.elementText)return{element:e.element,requestType:qe.ELEMENT_REQUEST,text:e.elementText};const t=e.getNextAttribute();return t?{element:e.element,requestType:qe.ATTRIBUTE_REQUEST,text:e.getAttribute(t),attributeName:t}:null};let s=n(),r=D(s?.text);do{if(!s)break;this._iVisibleTxtLength-=r;const e=this.visibleElementChunks.getElementChunk(s.element);e&&s.requestType==qe.ATTRIBUTE_REQUEST?e.removeNextAttribute():e&&s.requestType==qe.ELEMENT_REQUEST&&e.removeElementText(),e?.isEmpty()&&this.visibleElementChunks.removeElementChunk(s.element),this.processTranslateRequest(s),s=n(),r=D(s?.text)}while(s&&Oe+re.originalText)),e,((e,t)=>{e.length!=t.length&&(a.error("Invalid results from Translate Service"),De(e,"Inconsistent Data"));for(let n=0;n{De(e,t),n.reject(t)}),t>Ce)),n.promise})().then((()=>{this.onNetworkRequestCompletion(e,t)})).catch((e=>{this.onNetworkRequestFailure(e)})),0==Re()&&R(this.traverseDOM,e,t)}updateDetectedLanguage(e){const t=e.From;null==t||t.isBlank()||(this._allDetectedLanguages[t]=(this._allDetectedLanguages[t]||0)+1,(null==this._detectedLanguage||this._detectedLanguage.isBlank()||this._allDetectedLanguages[t]>this._allDetectedLanguages[this._detectedLanguage])&&(this._detectedLanguage=t))}onNetworkRequestCompletion(e,t){this._bAborted||(u.requestsInitiated=!0,R(this.traverseDOM,e,t))}onNetworkRequestFailure(e){try{if(u.requestsInitiated=!0,this.bSentTranslationError||this._bAborted)return;this._fError&&this._fError(e),this.bSentTranslationError=!0}catch(e){a.error("Error in translateError. ",e)}this.bSentTranslationComplete||this.bOnIntermediateCompleteCalled||this.cancel()}translateElementAttributes(e,t,n,s){if(n===s)return;if(void 0===e._mstSrcAttribute&&(e._mstSrcAttribute={}),e._mstSrcAttribute[t]=e.getAttribute(t),this.attributeMutation.has(e)){const n=this.attributeMutation.get(e);t in n?n[t]+=1:n[t]=1}else{const n={[t]:1};this.attributeMutation.set(e,n)}const r="_mst"+t;n.isBlank()||me(e,r,Te(n)),me(e,t,s.replace(ee,"").replace(Z,">").replace(Y,"<").replace(K,"&"))}translateElement(e,t,n){if(t!==n)if(e._mstSrcHtml=e.cloneNode(!0),"option"!=e.nodeName.toLowerCase())try{this.denormalizeElement(e,n,"b");const t=e.textContent;t&&!t.isBlank()&&e.setAttribute("_mstTextHash",Te(t))}catch(e){}else this.denormalizeElement(e,n,"b")}executeTranslation(){if(this._eDomRoot?.nodeType!==Node.ELEMENT_NODE)throw new Error("Invalid input type");const e=ie(document.documentElement);if(this._sFrom===this._sTo||!this._eDomRoot.hasChildNodes()||e==E.Off)return this.translationComplete(),this;if(d(this),this.bTranslateSelectedTextOnly||this.bTranslateFullPageInOneGo||function(e){const t=()=>{let n=window.scrollX,s=window.scrollY,r=0;const i=()=>{const o=window.scrollX,l=window.scrollY;n==o&&s==l?r++:(n=o,s=l,r=0),r>=6?(a.debug("Scrolling has stopped."),F(t),R(e)):P.requestAnimationFrame(i)};P.requestAnimationFrame(i)};F(t)}((()=>{0==Re()&&this.triggerTraverseDom(x.Scrolled)})),this.setMutationObserversForDocument(window),function(e,t){j(),V=new AbortController,e.addEventListener("visibilitychange",t,{signal:V.signal})}(document,(()=>this.onDocumentVisibilityChange())),!this.bTranslateSelectedTextOnly){const e=document.querySelector("head > title");e&&this.flushChunk([e])}return this.isTraverseDOMActive=!0,this.traverseDOM(this.getTraversalStack(this._eDomRoot),x.Auto),this}}const We=()=>{let e,t;const n=new Promise(((n,s)=>{e=n,t=s}));return{resolve:e,reject:t,promise:n}};function Xe(e){let t=typeof e;return"object"===t&&(e?"[object Array]"==Object.prototype.toString.call(e)&&(t="array"):t="null"),t}String.prototype.isBlank=String.prototype.isBlank||function(){return null==this||"string"!=typeof this||0===this.trim().length},String.prototype.htmlEscape=String.prototype.htmlEscape||function(){if(!this)return"";const e=document.createElement("span");return e.innerText=this,e.innerHTML};let Qe,$e=null;function Ge(e){switch(Xe(e)){case"object":case"array":return JSON.stringify(e);case"null":return"null";case"undefined":return"undefined";default:return e.toString()}}var Ke,Ye;!function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.HEAD=2]="HEAD",e[e.PUT=3]="PUT",e[e.DELETE=4]="DELETE"}(Ke||(Ke={}));class Ze{constructor(e,t=0,n=null){this.message=e,this.status=t,this.details=n}get isHttpError(){return!0}get isBadRequest(){return null!=this.status&&this.status>=400&&this.status<500}get isServerError(){return null!=this.status&&this.status>=500&&this.status<600}get isServiceUnavailable(){return 503===this.status}get isOverQuota(){return 429===this.status}}function et(e,t,n){return n=n||{},null==e||null==t?Promise.reject(new Ze("HTTP method or URL are not set")):null!=n.timeoutInMs&&n.timeoutInMs<0?Promise.reject(new Ze("Cannot have a negative timeout. Set to 0 to have no timeout")):new Promise((function(s,r){const i=new XMLHttpRequest;!function(e,t,n,s){if(s.query){const e=function(e){let t="",n=0;if(e)for(const s in e)n++&&(t+="&"),t+=encodeURIComponent(s),null!=e[s]&&(t+="="+encodeURIComponent(e[s]));return t}(s.query);e.length>0&&(t+=(t.indexOf("?")<0?"?":"&")+e)}if(s.timeoutInMs&&"number"===Xe(s.timeoutInMs)&&(e.timeout=s.timeoutInMs),e.open(Ke[n],t,!0),s.headers)for(const t in s.headers)e.setRequestHeader(t,s.headers[t]);s.contentType&&e.setRequestHeader("Content-Type",s.contentType)}(i,t,e,n);let o=null;e!=Ke.GET&&e!=Ke.HEAD&&(o=n.body),i.send(o),i.onload=function(){if(i.status>=200&&i.status<300){let e=i.response;if(n.parser)try{e=n.parser(i)}catch(e){return a.debug(e),void r(e)}s(e)}else r(new Ze(i.statusText,i.status,i))},i.onerror=function(){const e=i.statusText||"Failed to send the request";r(new Ze(e,i.status,i))},i.ontimeout=function(){r(new Ze("Timed out",-1,i))}}))}function tt(e){Qe=e}function nt(e,t,n){if(ve(t))try{const t=JSON.parse(e);for(const e in t)Ae(String(e),{TranslatedText:t[e]})}catch(e){n&&n()}}function st(e,t){function n(){$e&&clearTimeout($e)}function s(e){n(),rt().then((()=>{t.onError(e)}))}$e&&clearTimeout($e),e.translateFullPageInOneGo||($e=window.setTimeout((()=>{a.error("20000ms completed now. Translation timed out."),s(JSON.stringify({status:-2}))}),2e4)),a.info("Beginning page translation..."),rt().then((()=>function(e,t,n,s){const r=e=>{a.debug("Intermidiate complete called with "+e),t&&t()},i=e=>{a.error("Error occurred while translating. Details: "+e),d(null),s&&s(e)};return f.translateServiceSubscriptionKey=Qe,u.translationStartTime=performance.now(),new Promise((function(t){d(new ze(document.body,e.fromLang,e.toLang,t,i,!1,e.translateFullPageInOneGo,r,n)),h.executeTranslation()})).then((function(){a.info("Successfully completed translation.")})).catch((function(e){a.error("Failed to translate the page",e),s&&s(e)}))}(e,(()=>{n(),t.onComplete()}),t,(e=>{n(),t.onError(e)})))).catch((e=>{a.error("Failed to translate page."),s(e)}))}function rt(){return null==h?Promise.resolve():new Promise((e=>{h?.cancel(),d(null),a.info("Successfully completed untranslation."),e()}))}function it(e){if(!e)return null;const t=e.getSelection();let n;const s=e.document.activeElement;if(s&&t&&s.nodeType===Node.ELEMENT_NODE&&"A"===s.nodeName&&!t.containsNode(s,!0))return n=e.document.createRange(),n.selectNode(s),t.removeAllRanges(),t.addRange(n),s;if(!t||t.isCollapsed||t.rangeCount<1)return null;n=t.getRangeAt(0);const r=n.startContainer,i=n.endContainer,o=n.startOffset;let a=n.endOffset;return r.nodeType===Node.TEXT_NODE&&0!==o&&r.parentNode&&r.nodeValue&&(r.parentNode.insertBefore(document.createTextNode(r.nodeValue.substring(0,o)),r),r.nodeValue=r.nodeValue.substring(o),n.setStart(r,0),r===i&&(a-=o)),i.nodeType===Node.TEXT_NODE&&i.nodeValue&&a!==i.nodeValue.length&&(i.parentNode?.insertBefore(document.createTextNode(i.nodeValue.substring(a)),i.nextSibling),i.nodeValue=i.nodeValue.substring(0,a),n.setEnd(i,i.nodeValue.length)),t.removeAllRanges(),t.addRange(n),n.commonAncestorContainer.nodeType===Node.TEXT_NODE?n.commonAncestorContainer.parentNode:n.commonAncestorContainer}function ot(e,t){f.translateServiceSubscriptionKey=Qe,u.translationStartTime=performance.now();const n=[];let s=it(window);s&&n.push(s);const r=document.querySelectorAll("iframe");for(let e=0;e{a.error("Error occurred while translating selection. Details: "+e),d(null),"function"==typeof t.onError&&t.onError(e)};function o(n){return new Promise((function(s,r){d(new ze(n,"",e.toLang,s,(function(e){i(e),r(e)}),!0,!1,t.onComplete,t)),h.executeTranslation()}))}let l=Promise.resolve(null);for(let e=0;e~SbOǠ>>̢Ȟ؟FȞȡo ݱ%A>:r {-Ubad allocationunknown error %dbzbb`b4cKcbbLddcdddddd%e%e%e%e%eddddddddddFeefeeeeeeefffffeeeeeeeeeeggggg g g g g gggggg%g%g%g%g%g}g}g}g}g}ggggggggggghhhhhhhhhhhhhhhhhhhhhhhhhiiiii!i!i!i!i!i1i1i1i1i1iAiAiAiAiAiiiiiiii)jkKk9ktkdkGk5kkkkykpk`kCk1klllllllllmm}mvmomem[mQmGmsnlnen^nWnPnInBn;n q0p`8xp@`pؿp@ؿAi/Ai 0AiRSDS ƠHLLD PDB.learning_tools.dll.pdbOGPk .text$text$b.text$_00hot@|..text$_01T.text$mn@bA.text$mn$00b.text$mn$21q.text$sep.zzzz~r.text$unlikelyYt{ .text$x}.text$zzzz0o| .rdata$rdataX.rdata$00(.rdata$T8.rdata$r,.rdata8.00cfg .CRT$XCA(.CRT$XCA001008.CRT$XCZ@.CRT$XIAH(.CRT$XICp.CRT$XIZx.CRT$XLA.CRT$XLZ.CRT$XPA.CRT$XPX.CRT$XPXA.CRT$XPZ.CRT$XTA.CRT$XTZ$(.idata$2P.idata$48.idata$5 .idata$6 .idata$7.rtc$IAA.rtc$IZZ.rtc$TAA .rtc$TZZ(i.xdataCT.xdata$xPa.data$datap(.data$rp .data$rspH.bss8.pdata$pdata.fptable$fptable.tls$tls.tls$.tls$ZZZ _RDATA$RDATA0X.rsrc$01`0X.rsrc$020@P`p&P30@PLSp_m@|P||0ЧЫ0@ 00P0@`|0P`  7p709@>p>I JpJJ KPKKM0N{`pP@ pPPBIIJJK NVP\]PbpbbbPc@dPdjjnoo`pr}~ ~0~~@0 0@` ` @p`0pP`@ `pЗ``@P0P`p0``  `"p$&++> >p>?@0BC0QQRS@UV`bcccdd du0`0P`0p0@` P`P p0@PPPp p@pP`@`@ ` @0Pb0pbpbPd|@PBIP\V`;learning_tools.dll`p@P0Ko BuildLinguisticModelResourceRequestGetInteractiveReadAloudScriptGetPdfReadAloudScriptGetReadingViewExtractionScriptGetReadingViewLearningToolsScriptGetReadingViewThemesGetTranslateScriptGetWebReadAloudScriptP8 :HZh .B\jt 8HVfx 6Hbx6Jfx :Nh|2FR\jx :HZh .B\jt 8HVfx 6Hbx6Jfx :Nh|2FR\jxAcquireSRWLockExclusiveCloseHandleCompareStringWCreateFileW.DeleteCriticalSectionREncodePointerVEnterCriticalSectionzEnumSystemLocalesWExitProcessFindCloseFindFirstFileExWFindNextFileWFlsAllocFlsFreeFlsGetValueFlsSetValueFlushFileBuffersFreeEnvironmentStringsWFreeLibraryGetACPGetCPInfoGetCommandLineAGetCommandLineW$GetConsoleMode(GetConsoleOutputCP@GetCurrentProcessAGetCurrentProcessIdEGetCurrentThreadIdKGetDateFormatWaGetEnvironmentStringsWwGetFileSizeExyGetFileTypeGetLastErrorGetLocaleInfoWGetModuleFileNameWGetModuleHandleExWGetModuleHandleWGetOEMCPGetProcAddressGetProcessHeapGetStartupInfoWGetStdHandleGetStringTypeWGetSystemTimeAsFileTime@GetTimeFormatWBGetTimeZoneInformationHGetUserDefaultLCID{HeapAllocHeapFreeHeapQueryInformationHeapReAllocHeapSizeInitializeCriticalSectionAndSpinCountInitializeCriticalSectionExInitializeSListHeadInterlockedFlushSListIsDebuggerPresentIsProcessorFeaturePresentIsValidCodePageIsValidLocaleLCMapStringWLeaveCriticalSectionLoadLibraryExW"MultiByteToWideCharQueryPerformanceCounterRaiseExceptionReadConsoleWReadFileReleaseSRWLockExclusiveRtlCaptureContextRtlLookupFunctionEntryRtlPcToFileHeaderRtlUnwindRtlUnwindExRtlVirtualUnwindYSetEnvironmentVariableWhSetFilePointerExwSetLastErrorSetStdHandleSetUnhandledExceptionFilterSleepConditionVariableSRWTerminateProcessTlsAllocTlsFreeTlsGetValueTlsSetValueUnhandledExceptionFilterVirtualProtect,WakeAllConditionVariableKWideCharToMultiByte^WriteConsoleW_WriteFileKERNEL32.dll20B " Yt PdT42pdT4p4PxH D  BxH `  20xH \42 px0B  b  4 rprp`0t d42Dt!t2P  4 Rp[}tPttt 4rp`5tRPd42 p  4 RP  4 2pd4 p  ϿuϿBP0 dT4rptd T4  t4 d T 4 2pP))htdT4d T 4 rpdT4p 0jTvrpP0 0u`pp1 dT4p t dT42p0P+  p`0P2p!4! d T 42p t d T 4Rd T 4 Rpb5 't#d4 PLwh=S1  4 Rpd4  p3 "t"d"4"P" "t "d"T"4"20 "d4 pPLw=S42 p w dT 4 Rp4( d'4$  p P D p`P0!C !  4R p ` P d T4p0 4 p`P0   4 Rpd42 p  4 rp td4P T4 R p ` 4m hp0 dT4 Rp 4r p`P  r04 r pB  4 2p t dT42  4 2p 4r p`P dT4p 4 2 p`P dT4rpB  4 2p  4 2ptd42 dT4rp dT4p 4 2 p`P dT4rp  4 2p20vv0w2P  4 2pw4wFw2PR0Sw4  PSx R0!yoyvwy42 pyy\w42 p{{wd 4R p *0@2 0}}x}~+x P t d T 42- M p`0PPp`P0d T 4Rp d T 4 Rp0 4qf p`P ) 4MB p`PB  4 pt d42T 4 R p `* 4 p`Pd 4Rpוw42 pEPw  20qzw4 R p`Pr P bU؛42 pٞDx42 p^xt d4td42d42pt d 4R^xxB8{Σգգ b(W42 pt4 P# #t#d#4#Pd T 4 rp  4 p d 4 2p  dT42t4 P4  Pr0 dT4 Rpt4 Pt4 P$ $d T4r phXQ T4r p`Xd 4R p4 R p)6x  rP42 px4 p `0x42 px4 p`P@d 4RpxP42 py4 R pL/y/y42 pIy d4R p Pr P d4r p P42 pq|ay 4 p ` P42 p{y42 p;Iy$t d 4 rਸ਼8# 4r p`P8p0PT 4 rp`  4 2py tdT4 42p`PRp`0=L{b{-3b{ p`0yM z+ h  p`0 t {t * { p`0  z   z  z   z 42 p ` Pr0fyrP  t d 4 Rм  t d 4 Rм td42& td42]s dT4p t d T 4 ' % p`0P* 1 p`0Pp 4p ` P! !4#!p`P' ' p`0P(20  20$  p`P0- Etd4C Ph- 5td43 PXd4 p- Utd4S PX bf4RpfR0f4Rpg  20  P  rP42 pU<e<{42 p<<{42 p< = |42 p==K={dT 4 pd4 p d T 4 2p42 pI J&|B20bKyK@| tdT4% T4r p `8d42 p8{RSs|% %dS%4R%NpP+t4 Pp4 r pWLYY|. d4 p Pd42 p  4 P d4r p_:`|``|42 p``|  20  4 RpbMc|20d 4  p t d T 4 R tdT 4  dT4p tT 4 T4 rp`r p`P00  4 2p(td4Ppd 4 R pbB td4rP2 0T42`  d 2p!4f!4f  4 2p|* tT4$d*4)& p  4! p 4 rp8 r p`0P0' T*4)$ p `$d(4'$ p) d)T(4'$pd T42p 4 p`P t d T 4 r+ h p`0P0+tX4WT Pd 4 r pdT42pOOt rP0! d p!p4R`8{^|  d 4 2м5l} 4 p ` P 4R p`P 4R p`P4p d4 p P td4P' E4C p`P`  p`0P4R`Y'}3 %4" p`PLw- T4 p `@1 T4 p ``b42 p>}d T42pd T42pB  4 2pT4r p`(% d T 4 Rp"  p`0P` d T 4 2pBB0 h~ p`0P4`!t11!11R0`P! t 4 55! 55!!))tdT4P77!P77  d 4 pb   4 rpBBBX}4 Rp`Pd4 pR p`0P$dK4JH p0  B  hB  t d 4R8{TTq}TTq}  4 2pXX}Xt T42!dYYt!YYt(h!`0P0  h BC^N^}N^t d42P  B 0p`2` 5b 0 p ` Pl B0p` Pl"0@x@>q E rP 2P 2P"@X8:l@X817X % B`P B`P B`P"D v0@HLt E rP 2P 2P"8@@^8 2^20p`Bp` h# 0 P p `2 0 p `!T5 b0p`PB 0 p ` P"0a % B`P B`P"8@ r~rrrbp`^@^p^^  ^(`_  B0p`! !L2 0 Pp``` `a(p a(0 r` % B0p`Px B 0p`P" %$%%%!%&0p` % B`P B`P"$, }*}v}} 5b 0 p ` P| B0p` P"0€}!~'~ 5 RP 2P"(ʍ~čh  p`PTh Rp`P"|\ 5 b0p`P B 0p`P"0 % B`P, B`P"T\ B9?E r0p`P2 0 p `P"86 !؄$0p`  0 P p ` 5 b`P< B`P"dl0n؄5BE r0p`P2 0 p `P"8L  0Pp` 5 b`P, B`P"T\0E r0p`P2 0 p `P"8DЇ!0$ 5 b`P B`P"@H0E r0p`P2 0 p `P"8HÉ 5 b`P B`P"$0̊>0  0 p ` P b0p` P b0p` P b0p` P b0p` P" VtHUǞ3]2:@  0 p ` P B0p` P" # 0 p ` P@ B0p` P B0p` P"hxNVʥץs # 0 p ` P B0p` P B0p` P"$ 4 h³'í^d # 0 p ` P  B0p` P B0p` P"  ޺5z # 0 p ` Pt  B0p` P B0p` P"  6S # 0 p ` P0  B0p` P B0p` P"X h Vs" "h1 0 p ` P ! !hb0p` P! !hb0p` P! !hb0p` P"<  T h`222&{*,,--|./11" "h1 0 p ` P ! !hb0p` P! !hb0p` P! !hb0p` P"H  ` h:??>V3p7O::;<;==>>" "h5 0 p ` P ! !h0p` P"$fw  0Pp`  0 p ` P b0p` P b0p` P b0p` P b0p` P" (^:%-P  0 p ` P B0p` P"q" "h- 0 p ` Pd! !hb0p` P! !hb0p` P"HWc{" "h- 0 p ` P<! !hb0p` P! !hb0p` P"dtH:v06" "h- 0 p ` P! !hb0p` P! !hb0p` P"<LHjJVn`f" "h- 0 p ` P! !hb0p` P! !hb0p` P"$H6w" "h- 0 p ` P! !hb0p` P! !hb0p` P"H<f" "h9 0 p ` P! !h0p` P"HYJ" "h9 0 p ` P! !h0p` P"DLf " "h9 0 p ` P! !h0p` P"V &   A  U 0p`P<2 0 p `P"dlH! B 0 P p `5 R0p`P2 0 p `P"(R? CQU 0p`Pdb 0 p ` Pb 0 p ` P"P(xŽ &  0 p ` P  b0p` P b0p` P"HXKK0@PEEFGG@JtK  0 p ` P b0p` P b0p` P"$LSSVL*OOPPQR  0 p ` P b0p` P b0p` P" _^SwXXwwww e 0 p`Pd,r0p ` P",,Xzxyy b 0 P p ` 5b 0 p ` P, B0p` P"$-,-0}}}} 5b 0 p ` P|- B0p` P"--0~~`" "h!E 0 p ` Pd.! !h0p` P! !h0p` P! !h0p` P! !h0p` P". .ʃfeÁ8Y{ Y 0 p ` PH/ 0p` P 0p` P"p//8„ /0p`P0 0 p ` P 0 p ` P 0 p ` P",0D0p 0f e 0 p`P0r0p ` P"00X$T/; 5b 0 p ` P01 B0p` P"X1`10^eIS" "h+Y 0 p ` P2% %h0p` P% %h0p` P% %h0p` P% %h0p` P"82 X2fG<ٞן  0p`!>2 E `P2 B`P"33@>Ęݘ  0 P p ` U 0 p ` P3 B0p` P"33Pͧ=J" "h7 0 p ` PD4$ $h0p` P$ $h0p` P$ $h0p` P"l44F6k" "h7q 0 p ` P\5% %h0p` P% %h0p` P% %h0p` P% %h0p` P"5 5h`ױȲhUo E 0 p ` P46 B0p` P"\6d6@Yi ? 0 p ` P6 0p` P 0p` P 0p` P"7 (7b"0aQ e 0p`P72 0 p `P"77XA E `P@8 B`P B`P B`P B`P B`P B`P"h8 8@ءj"FHbB] E rp`P9 2p`P"<9D988A % B`P|9 B`P"99  lkk l 5 Rp`P9 2p`P"::(H ) 0 P p ` % B`Ph: B`P":: lDlll  0 P p `  0 P p ` U `P; B`P"(;0;Pdj!Ȧ, E rPt; 2P";;8XBK  0p`0Pp`  0 P p `0Pp`p`  20p` 5 RP0< 2P"X<`<( 5 RP< 2P"<<(tEYe 0p`P=2 0 p `P"0=8=X _ eh 0p`P=hR 0 p `P"==HY+D eh 0p`P>hR 0 p `P"(>0>H%trss h 0Pp`  hR` 5 Rp`P> 2p`P">>(*u  20Pp` >0 ?  0p` U p`Px? 2p`P 2p`P"??HSAe 0p`P?2 0 p `P"$@,@Xe 0p`Pp@R 0 p `P"@@Xm e 0p`P@ B 0p`P"AA`De 0p`PTAR 0 p `P"|AAX+e 0p`PA2 0 p `P"AAX m e 0p`P8B B 0p`P"`BhB`Oe 0p`PB2 0 p `P"BBX#nt  b 0p`  0 p ` PDC b0p` P"lCtCϩ.4pCCp2-+] f   @5B:D: `RxxxxxxxxxdRxxxxxxxQ..  abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`y!@~ڣ @ڣ AϢ[@~QQ^ _j21~@5YYYYYQ7@9o XRCuPSTPDTPSTPDTZZ0[[0.?AV?$basic_ios@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@0.?AV?$basic_streambuf@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@0.?AV?$basic_istream@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@0.?AV?$basic_ostream@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@C_  D :sQ0.?AVlogic_error@std@@0.?AVexception@std@@0.?AVbad_array_new_length@std@@0.?AVbad_alloc@std@@0.?AVsystem_error@__Cr@std@@0.?AVruntime_error@std@@0.?AV__shared_count@__Cr@std@@0.?AV?$basic_istream@DU?$char_traits@D@__Cr@std@@@__Cr@std@@0.?AV?$basic_ios@DU?$char_traits@D@__Cr@std@@@__Cr@std@@0.?AVios_base@__Cr@std@@0.?AV?$basic_streambuf@DU?$char_traits@D@__Cr@std@@@__Cr@std@@0.?AVbad_cast@std@@0.?AV?$basic_ostream@DU?$char_traits@D@__Cr@std@@@__Cr@std@@0.?AV__do_message@__Cr@std@@0.?AVerror_category@__Cr@std@@0.?AVfuture_error@__Cr@std@@0.?AV__iostream_category@__Cr@std@@0.?AVfailure@ios_base@__Cr@std@@0.?AV?$__stdinbuf@D@__Cr@std@@0.?AV?$__stdoutbuf@D@__Cr@std@@0.?AV?$__stdinbuf@_W@__Cr@std@@0.?AV?$__stdoutbuf@_W@__Cr@std@@%m/%d/%y%m/%d/%y%H:%M:%S%H:%M:%S%a %b %d %H:%M:%S %Y%I:%M:%S %p 0.?AV?$collate@D@__Cr@std@@0.?AVfacet@locale@__Cr@std@@0.?AV?$collate@_W@__Cr@std@@0.?AV?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@__Cr@std@@@__Cr@std@@@__Cr@std@@0.?AU?$__num_get@D@__Cr@std@@0.?AU__num_get_base@__Cr@std@@0.?AV?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@@__Cr@std@@0.?AU?$__num_get@_W@__Cr@std@@0.?AV?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@__Cr@std@@@__Cr@std@@@__Cr@std@@0.?AU?$__num_put@D@__Cr@std@@0.?AU__num_put_base@__Cr@std@@0.?AV?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@@__Cr@std@@0.?AU?$__num_put@_W@__Cr@std@@0.?AV?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@__Cr@std@@@__Cr@std@@@__Cr@std@@0.?AVtime_base@__Cr@std@@0.?AV?$__time_get_c_storage@D@__Cr@std@@0.?AV?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@@__Cr@std@@0.?AV?$__time_get_c_storage@_W@__Cr@std@@0.?AV?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@__Cr@std@@@__Cr@std@@@__Cr@std@@0.?AV__time_put@__Cr@std@@0.?AV?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@@__Cr@std@@0.?AV?$moneypunct@D$0A@@__Cr@std@@0.?AVmoney_base@__Cr@std@@0.?AV?$moneypunct@D$00@__Cr@std@@0.?AV?$moneypunct@_W$0A@@__Cr@std@@0.?AV?$moneypunct@_W$00@__Cr@std@@0.?AV?$money_get@DV?$istreambuf_iterator@DU?$char_traits@D@__Cr@std@@@__Cr@std@@@__Cr@std@@0.?AV?$__money_get@D@__Cr@std@@0.?AV?$money_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@@__Cr@std@@0.?AV?$__money_get@_W@__Cr@std@@0.?AV?$money_put@DV?$ostreambuf_iterator@DU?$char_traits@D@__Cr@std@@@__Cr@std@@@__Cr@std@@0.?AV?$__money_put@D@__Cr@std@@0.?AV?$money_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@@__Cr@std@@0.?AV?$__money_put@_W@__Cr@std@@0.?AV?$messages@D@__Cr@std@@0.?AVmessages_base@__Cr@std@@0.?AV?$messages@_W@__Cr@std@@0.?AV?$codecvt@DDU_Mbstatet@@@__Cr@std@@0.?AVcodecvt_base@__Cr@std@@0.?AV?$codecvt@_WDU_Mbstatet@@@__Cr@std@@0.?AV?$codecvt@_SDU_Mbstatet@@@__Cr@std@@0.?AV?$codecvt@_UDU_Mbstatet@@@__Cr@std@@0.?AV?$codecvt@_S_QU_Mbstatet@@@__Cr@std@@0.?AV?$codecvt@_U_QU_Mbstatet@@@__Cr@std@@0.?A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ufP(2+~djO@]%3y0 H`0TT4VS_VERSION_INFOaaStringFileInfo040904b0LCompanyNameMicrosoft CorporationFFileDescriptionMicrosoft Edge<FileVersion146.0.3856.97>InternalNamelearning_tools6LegalCopyrightCopyright Microsoft Corporation. All rights reserved.NOriginalFilenamelearning_tools.dll>ProductNameMicrosoft Edge@ProductVersion146.0.3856.97< CompanyShortNameMicrosoft2ProductShortNameEdgen)LastChange79f6730cd02cfe9f19d33d1db200bfcdea57cf21(Official Build1DVarFileInfo$Translation 0`HPXpx0ȡС@P`hpxȣУأ (08@ȩЩة (08@HPX`hpxȪЪت (08@HPX`hpxȫЫث (08@HPX`hP P`hpxȤФؤШ 0@P`pЩ 0@P`pЪ 0@P`pЫ 0@P`pЬ 0@P`pЭ 0@P`pЮ 0@P`p``@HPX`hpxȧЧا (0ȯЯدph (08@HPX`hpxȠР (08@HPX`hpxȡСء (08 (08@HPX`hpx 0@P`pЧ 0@P`pШ 0@P`pЩ 0@P`pЪ 0@P`pЫ 0@P`PX`8HXhxȨب(8HXhxȩة(8HXhxȪت(8HXhxȫث(8HXhxȬج(8HXhxȭح(8HXhxȮخ(8HXhxȯد(8HXhxȠؠ(8HXhxȡء(8HXhxȢآ(8HXhxȣأ(8HXhxȤؤ(8HXhxȥإ(8HXhТ 0@P`pУ 0@P`pФ 0@P`pХ 0@P`pЦ 0@P`pЧ 0@P`pШ 0@P`pЩ 0@P`pЪ 0@P`pЫ 0@P`pЬ 0@P`pЭ 0@P`pЮ 0@P`pЯ$ 0@P`p@HP`hpȦЦ 08@HPX`hpxЧا 08@PX`hpxШب`hЩة (08@HPX`hpxȪЪت (08@HPX`hЫث (08`hpȬЬ (08@HPX`hpxȭЭح (08@HPX`hpxȮЮخ (08@PX`hpxȯЯدt (08@HPX`hpxȠРؠ (08@HPX`hpxȡСء (08@HPX`hpxȢТآ (08@PX`hpxУأ (08@PX`hpxȤФؤ (08@HPX`hpxȥХإ (((0HPX`hPȡСء (08@HPX hȨ08@x08@H0Эح@pЮ0``00`@p``0`Х0Ц@p `Шp `@P P ` `p P((0( *H ( 0(10  `He0\ +7N0L0 +70 010  `He BGzAZP) ܤp_}g0 v00ܠ3/B*sS0  *H  0~1 0 UUS10U Washington10URedmond10U Microsoft Corporation1(0&UMicrosoft Code Signing PCA 20110 250515184910Z 260515184910Z0t1 0 UUS10U Washington10URedmond10U Microsoft Corporation10UMicrosoft Corporation0"0  *H 0 R_(?%]<]`|cɬץSQ4¶|zA鲌(?Q i՜yQ["^Uț1—c|Yͭ\q\V11o<*1.~2U#:-ڑz_Nv-HZ7oC#_o\ ΄>s0o0U%0 +7 +0U_&$Yzhtfa0EU>0<:0810U Microsoft Corporation10U 230217+5049070U#0HndPӂ77"mu0TUM0K0IGEChttp://www.microsoft.com/pkiops/crl/MicCodSigPCA2011_2011-07-08.crl0a+U0S0Q+0Ehttp://www.microsoft.com/pkiops/certs/MicCodSigPCA2011_2011-07-08.crt0 U00  *H  en;88_p=ԪH{ok#A@HwfW; aXg/U>6V`ɫXc4 J8@8gcNwt#2h]Zeaf"Tvm; 6$x B6Hgw*=¦z!J,- FMi1v~#w⏽~nY^@rt/Z_ ~Ac +;p;_Ի ChEr^F}KNN1PPzlC~= #`uI)jKX=NӊIW*nq"/"N{o'W$K y٠J_0z0b a0  *H  01 0 UUS10U Washington10URedmond10U Microsoft Corporation1200U)Microsoft Root Certificate Authority 20110 110708205909Z 260708210909Z0~1 0 UUS10U Washington10URedmond10U Microsoft Corporation1(0&UMicrosoft Code Signing PCA 20110"0  *H 0 r.nM4X!B*kZP8I 7k 8™91BӉ yd~`$lIh^ߛS ,ï٩+z זY`fv2R&/PϳD].uhm:\F8dnd5xc-@ \yI) w=+ZMV(zr:I^C{{>]O/Y;-3Xŷ>2ӳ=8~ҝ,NV!5%9ndS#_R!t%_('(8%9J6|#faj(I_%]!K>RĵW?$z[/#p]QFwἬ_UK9#ID|Erzr$߿FWۃMI0[ݰf{KI)(}gbx_/W\w((m(,@7OD LԥC/tnx X,]`>O3ڰޞNFlֈ 00 +70UHndPӂ77"mu0 +7  SubCA0 U0U00U#0r-:1CN1#40ZUS0Q0OMKIhttp://crl.microsoft.com/pki/crl/products/MicRooCerAut2011_2011_03_22.crl0^+R0P0N+0Bhttp://www.microsoft.com/pki/certs/MicRooCerAut2011_2011_03_22.crt0U 00 +7.00?+3http://www.microsoft.com/pkiops/docs/primarycps.htm0@+042 Legal_policy_statement. 0  *H  g򆥘Ty.tg" cB}y e_.,>rm? ;Gic"5]e}FPU |K.)=Եw9dD=xz#}t&F*Š hh.*?*kXIc inZF+;н5n%'(M= 2-[I9 ƭQEX82q'',: iYhnot@*(>?Mf Mo}Ev@*e]Rbc6'ͥ]cA[>wuaaA(e/\֡FY KH)ű?Ew5Ңzz"HG#kKux7yKֳ#hu i;0Lumc=ѝVNOW"x2!zA ?̤]WqVNHEBɛv[ HkymmjRs zP1000~1 0 UUS10U Washington10URedmond10U Microsoft Corporation1(0&UMicrosoft Code Signing PCA 20113/B*sS0  `He0 *H  1  +70 +7 10  +70/ *H  1" @\c1IYv a`rDeȎ0N +7 1@0>Microsoft Edgehttps://www.microsoft.com 0  *H ɴ 4x|/ ZUSzF]y`CWn<؋H] 8>7, zG9V`INѴnipuᘰ7Eo-vAvd+/Z15zm}$B&0 +710~ *H o0k10  `He0Q *H  @<08 +Y 010  `He _XY Sֶ\GPƭGOXiK20260401031830.52Z0Ѥ01 0 UUS10U Washington10URedmond10U Microsoft Corporation1%0#U Microsoft America Operations1'0%U nShield TSS ESN:8603-05E0-D9471%0#UMicrosoft Time-Stamp Service0 03%7ͪwI%0  *H  0|1 0 UUS10U Washington10URedmond10U Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100 260219194001Z 270517194001Z01 0 UUS10U Washington10URedmond10U Microsoft Corporation1%0#U Microsoft America Operations1'0%U nShield TSS ESN:8603-05E0-D9471%0#UMicrosoft Time-Stamp Service0"0  *H 0 \/j"SzIZew.z`BZ? i]dQv H K$$"D 7 h1zW SxxտF'*LP Aں!ɜ-|0NAD,V[\wtmptYkW^/?ν_%Vщlz8"W( %9IhQ1"f Z9<&Z-gj Pd'l KH+6D@d,  oxϑ @rNJt>^0'.AtuXj-XdϺه"ީQ(' F.UAKz>< #|,iP W Ol]_9k(Aq+og0 6Dm{NNQrgD;rTs\f2Q.l9݆} Jux`n|~DG?p\ߘ$ErXI0E0U8ҪN_peKw0U#0]^b]eS5r0_UX0V0TRPNhttp://www.microsoft.com/pkiops/crl/Microsoft%20Time-Stamp%20PCA%202010(1).crl0l+`0^0\+0Phttp://www.microsoft.com/pkiops/certs/Microsoft%20Time-Stamp%20PCA%202010(1).crt0 U00U% 0 +0U0  *H  6L%J|qiIZ!2esxGܓ:_~K/tH2xZֹ[+| B>, &MPgkęyZDt\+?9B6a> iJ 2"yuy,58blo wLVht&f$ G߁J<}/Rv`)ZAI!YvF2 4ĨUZ5RK GmJNWBGBɷųڗbw5= +gM%6F%R<>u>"TlGtCzl[1dZxW cB:8&T>OGpPTI ΠVN(Aw2Cؔ{xem̶;ȈV0@"gs ύo3~|{=HJfS,дj.0q0Y3kI0  *H  01 0 UUS10U Washington10URedmond10U Microsoft Corporation1200U)Microsoft Root Certificate Authority 20100 210930182225Z 300930183225Z0|1 0 UUS10U Washington10URedmond10U Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100"0  *H 0 Lr! y$yՂҩlNu5WlJ⽹>`3\OfSqZ~JZ6gF# w2`}jRDFkvPDq\Q17 8n&S|9azĪri65&dژ;{3[~Rb%j]SVMݼ㑏9,Qpi 6-p15(㴇$ɏ~TUmh;Fz)7EFn20\O,b͹⍈䖬Jq[g`= s}AFu_4 }~ٞE߶r/}_۪~66L+nQsM7t4G|?Lۯ^s=CN39LBh.QFѽjZasg^(v3rק  co 6d[!]_0tعP a65Gk\RQ]%PzlrRą<7?xE^ڏriƮ{>j.00 +70# +7*RdĚhttp://www.microsoft.com/pki/certs/MicRooCerAut_2010-06-23.crt0  *H  U}*,g1$[rKo\>NGdx=139q6?dl|u9m1lѡ"fg:SMݘx6.Vi {jo)n?Hum m#TxSu$Wݟ=heV(U'$@]='@8)üTB  jBRu6as.,k{n?, x鑲[It 쑀=J>f;O2ٖtLrou04zP X@1Q{p( 6ںL 4$5g+ 挙"'B=%tt[jў>~13}{8pDѐȫ::bpcSMmqjU3XpfP080Ѥ01 0 UUS10U Washington10URedmond10U Microsoft Corporation1%0#U Microsoft America Operations1'0%U nShield TSS ESN:8603-05E0-D9471%0#UMicrosoft Time-Stamp Service# 0+So8#<9pnIl^0~0|1 0 UUS10U Washington10URedmond10U Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100  *H  v0"20260401021231Z20260402021231Z0w0= +Y 1/0-0 v0 0,0 xO06 +Y 1(0&0  +Y  0 00  *H  yB<@K/wRlxtk=r3o‚\]!rn|Ii{"d#꥙"HԬ#xѦ!sprm Ć%I w҇~~ :mpBY `0P>"~0.(?qyCd缂YjfQ3m_'3;Z(~<##xNfMg7(iʣdq b1+ )6A1 0 00|1 0 UUS10U Washington10URedmond10U Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103%7ͪwI%0  `HeJ0 *H  1  *H  0/ *H  1" I,WpfV_/41z34[=wE6Uj70 *H  /1000 V z8`_@¸Yt%1j300~0|1 0 UUS10U Washington10URedmond10U Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103%7ͪwI%0" "B1n M~ !.G)sCvZ0  *H   !ޟ6qYэjeThy*_Vʾt"(d\$̳z%b3wӟ$zJh6ޕ0\=ʼ&1N}6ק|{ -Ǜx܎:Qf=.M)ͩOqS 52oYv p8#G2W) 1VR$,_p J]{*Ma `1!f&%q@jz2&?t)5Z'Ef-_%ꊦph`?X9"/x"@_Vh~D09n=ymM|郞uNoQIN*f'(ڑ N+ZWc<']d% >;gɝm;2z0||tFZ>6>Hʤ:2P9z`Q